|
autoincrement in PostgreSQL: msg#00047jakarta.turbine.torque.user
Hello! I found that autoincrement flag on the column is ignored in PostgreSQL backend. So I created a patch. Here's new columns.vm I created for PostgreSQL. ==================================================== #foreach ($col in $table.Columns) #set ( $type = $col.Domain.SqlType ) #set ( $size = $col.printSize() ) #set ( $default = $col.DefaultSetting ) #set ( $autoIncrement = $col.isAutoIncrement() ) #if ( $autoIncrement ) #if ( $type == "INT8" ) #set ( $type = "SERIAL8" ) #elseif ( $type == "INT" ) #set ( $type = "SERIAL4" ) #elseif ( $type == "INT4" ) #set ( $type = "SERIAL4" ) #end #end #set ( $entry = "$col.Name $type $size $default $col.NotNullString," ) $strings.sub($strings.collapseSpaces($entry)," ,",",") #end ==================================================== Can this patch be commited to CVS repository? best regards, alik. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | You must specify KeyDef attributes for this TableDataSet in order to create a Record for update.: 00047, Fabian . Epp |
|---|---|
| Next by Date: | Re: autoincrement in PostgreSQL: 00047, T E Schmitz |
| Previous by Thread: | You must specify KeyDef attributes for this TableDataSet in order to create a Record for update.i: 00047, Fabian . Epp |
| Next by Thread: | Re: autoincrement in PostgreSQL: 00047, T E Schmitz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |