From a051e31700c5ff82c30db9568f4546a84ee4311c Mon Sep 17 00:00:00 2001 From: paca70 Date: Mon, 1 Dec 2003 22:28:36 +0000 Subject: [PATCH] To fix postgres column renaming. --- lib/datalib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datalib.php b/lib/datalib.php index c5dc1ba7f4..f8e74f101c 100644 --- a/lib/datalib.php +++ b/lib/datalib.php @@ -135,8 +135,8 @@ function table_column($table, $oldfield, $field, $type="integer", $size="10", $dbinfo = $db->ServerInfo(); $dbver = substr($dbinfo['version'],0,3); - $field = "$field"; //to prevent conflicts with reserved words + $field = "\"$field\""; $oldfield = "\"$oldfield\""; switch (strtolower($type)) { -- 2.39.5