[Twisted-Python] Questions about class KeyFactory.
Thomas Kristensen
thomas at copyleft.no
Wed Dec 8 06:52:49 MST 2004
> What happens if you set the id to a zero value of some sort, such as 0,
> '', NULL ?
I have tried that aswell, they either gives an invalid sql, or is rejected
by PG :(
b.assignKeyAttr("testId", None) =
libpq.OperationalError: ERROR: null value in column "testid" violates
not-null constraint
b.assignKeyAttr("testId", 0) =
libpq.OperationalError: ERROR: duplicate key violates unique constraint
"dummytable_pkey"
b.assignKeyAttr("testId", "NULL") =
libpq.OperationalError: ERROR: null value in column "testid" violates
not-null constraint
b.assignKeyAttr("testId", "") =
libpq.OperationalError: ERROR: syntax error at or near "," at character
62
--tkk
More information about the Twisted-Python
mailing list