[Tutor] Python and database firebird
Григор
grigor.kolev at gmail.com
Tue Dec 15 17:42:24 CET 2009
Hi
I have a damaged database and try to fix it.
How do I delete the bad record.
When you run the following code:
---------------------------------
base=connect(dsn=r'C:\python26\vmv.gdb', user='eltrade',
password='gdelchev', dialect=1, charset='win1251')
cur = base.cursor()
cur.execute('select * from posbills_plu')
cur.fetchall()
--------------------------------
Error is:
Traceback (most recent call last):
File "C:\Python26\base.py", line 9, in <module>
test()
File "C:\Python26\base.py", line 7, in test
cur.fetchall()
ProgrammingError: (-902, 'fetch: \n database file appears corrupt ()\n bad
checksum\n checksum error on database page 12839')
--
Криле имат само тия, дето дето сърцето им иска да лети !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091215/e5da9221/attachment.htm>
More information about the Tutor
mailing list