I need some help in debugging sqlobject.
I'm working with Turbogears.
I get errors when i try to use 'tg-admin sql create' for a
Firebird database.
I tried to debug this. I even tried to get the test-enviroment
for sqlobject working.
I didn't get much further.
This isn't crucial for me, as i wrote my own tool for
database creation.
It's just that i wanted to help to get sqlobject for firebird
working again.
Please give some hints on what i can do, to get this thing debugged.
Here is the debug output from the database creation:
------------------------------------------------------------
Using database URI
firebird://SYSDBA:[EMAIL PROTECTED]/opt/firebird/data/fbtool-dev.fdb?debug=1
2/QueryOne: SELECT COUNT(rdb$relation_name) FROM rdb$relations WHERE
rdb$relation_name = 'ENUM'
2/QueryR : SELECT COUNT(rdb$relation_name) FROM rdb$relations WHERE
rdb$relation_name = 'ENUM'
2/Query : CREATE TABLE enum (
id INT NOT NULL PRIMARY KEY,
crestamp TIMESTAMP,
creuser VARCHAR(40),
updstamp TIMESTAMP,
upduser VARCHAR(40),
e_tok VARCHAR(40) NOT NULL,
e_val VARCHAR(200) NOT NULL,
e_str1 VARCHAR(200),
sort_order INT,
etyp_id INT
)
2/QueryR : CREATE TABLE enum (
id INT NOT NULL PRIMARY KEY,
crestamp TIMESTAMP,
creuser VARCHAR(40),
updstamp TIMESTAMP,
upduser VARCHAR(40),
e_tok VARCHAR(40) NOT NULL,
e_val VARCHAR(200) NOT NULL,
e_str1 VARCHAR(200),
sort_order INT,
etyp_id INT
)
2/Query : CREATE GENERATOR GEN_enum
2/QueryR : CREATE GENERATOR GEN_enum
2/QueryOne: SELECT COUNT(rdb$relation_name) FROM rdb$relations WHERE
rdb$relation_name = 'ETYP'
2/QueryR : SELECT COUNT(rdb$relation_name) FROM rdb$relations WHERE
rdb$relation_name = 'ETYP'
2/Query : CREATE TABLE etyp (
id INT NOT NULL PRIMARY KEY,
crestamp TIMESTAMP,
creuser VARCHAR(40),
updstamp TIMESTAMP,
upduser VARCHAR(40),
e_tok VARCHAR(40) NOT NULL,
e_val VARCHAR(200) NOT NULL
)
2/QueryR : CREATE TABLE etyp (
id INT NOT NULL PRIMARY KEY,
crestamp TIMESTAMP,
creuser VARCHAR(40),
updstamp TIMESTAMP,
upduser VARCHAR(40),
e_tok VARCHAR(40) NOT NULL,
e_val VARCHAR(200) NOT NULL
)
2/Query : CREATE GENERATOR GEN_etyp
2/QueryR : CREATE GENERATOR GEN_etyp
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method Transaction.__del__ of <sqlobject.dbconnection.Transaction
object at 0x40b4a94c>> ignored
1/ROLLBACK:
----------------------------------------------------------
I do not see a commit between the table creation and the generator
creation. Maybe this is a problem. In my private tool i do a commit
after every object.
Any help much appreciated,
Uwe
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss