Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Invalid sort byte in header" #31

Open
codelean666 opened this issue Jul 22, 2024 · 0 comments
Open

"Invalid sort byte in header" #31

codelean666 opened this issue Jul 22, 2024 · 0 comments

Comments

@codelean666
Copy link

I'm trying to insert a row, but it is not inserted at the end. Also, the properties of the database change and when I try to restore it through Paradox Data Editor, the error “Invalid sort byte in header” appears.

Code:

from pypxlib import Table
from datetime import datetime

i = ['2024-07-22', '05:35:00', 0, 'REVOLVER', 'BULOW', '']

table = Table("C:\\Users\\codelean\\PycharmProjects\\MegaDobivatel\\AdvAddHard.db")
table.insert((datetime.strptime(i[0], '%Y-%m-%d'), datetime.strptime(i[1], '%H:%M:%S').time(), int(i[2]), i[3], i[4], i[5]))
table.close()

Error in Paradox Data Editor:
Error

Properties before insert:
BeforeInsert

Properties after insert:
AfterInsert

DB:
AdvAddHard.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant