Skip to content
Snippets Groups Projects

#3358609 - PostgeSQL escape column name in field constraint

Open #3358609 - PostgeSQL escape column name in field constraint
All threads resolved!
All threads resolved!
Files
2
@@ -358,7 +358,7 @@ protected function createFieldSql($name, $spec) {
}
if (!empty($spec['unsigned'])) {
$sql .= " CHECK ($name >= 0)";
$sql .= ' CHECK ("' . $name . '" >= 0)';
}
if (isset($spec['not null'])) {
Loading