# x.xxxxx xxxx-xx-xx
# ----------------------------------------------------------
* Properly quote absolute table names in the MySQL producer
+* Added semi-colon for (DROP|CREATE) TYPE statements in the Pg producer (wreis)
# ----------------------------------------------------------
# 0.09004 2009-02-13
if ($add_drop_table) {
if ($postgres_version >= 8.2) {
$create_statement .= qq[DROP TABLE IF EXISTS $qt$table_name_ur$qt CASCADE;\n];
- $create_statement .= join ("\n", @type_drops) . "\n"
- if $postgres_version >= 8.3;
+ $create_statement .= join (";\n", @type_drops) . ";\n"
+ if $postgres_version >= 8.3 && scalar @type_drops;
} else {
$create_statement .= qq[DROP TABLE $qt$table_name_ur$qt CASCADE;\n];
}
}
- $create_statement .= join("\n", @type_defs) . "\n"
- if $postgres_version >= 8.3;
+ $create_statement .= join(";\n", @type_defs) . ";\n"
+ if $postgres_version >= 8.3 && scalar @type_defs;
$create_statement .= qq[CREATE ${temporary}TABLE $qt$table_name_ur$qt (\n].
join( ",\n", map { " $_" } @field_defs, @constraint_defs ).
"\n)"