Re: [SQLObject] foreignkey constraint not set (Firebird)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2009-08-22 17:28:57
|
On Sat, Aug 22, 2009 at 09:19:59PM +0400, Oleg Broytmann wrote: > On Sat, Aug 22, 2009 at 06:55:30PM +0200, Petr Jake?? wrote: > > I am just wondering why the foreignkey constraint is not created > > Because SQLObject hasn't got an FK implementation for Firebird. FOREIGN > KEYs require different dialects. See col.py, class SOForeignKey. Add a > method _firebirdType(). Oops, no. First, add necessary call in FirebirdConnection.createReferenceConstraint(), then SOForeignKey.firebirdCreateReferenceConstraint(). Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |