Hi,
I'd like to use torque's sql generator for hsqldb (hypersonic) and
postgres databases. I'm using "native" id creation method.
Part of columns.vm for postgres:
#if (($table.IdMethod == "native") && ($col.isPrimaryKey()))
#set ( $default = "DEFAULT nextval('$table.SequenceName')" )
Part of columns.vm for hsqldb:
#if ($col.isAutoIncrement() && $table.IdMethod == "native")
#set ( $autoIncrement = $dbprops.get("AUTOINCREMENT") )
Postgres checks for primarity keyness of the column, hsqldb checks for
autoincrement flag. Why is the difference?
Thx,
Sala
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]