From: Domas Mituzas Date: Fri, 5 Nov 2004 10:22:03 +0000 (+0000) Subject: tableName: change backticks into double quotes for parent-transformed table names X-Git-Tag: 1.5.0alpha1~1396 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=f613c0aa4a03d06d6c9ac2f014b295ca84b48188;p=lhc%2Fweb%2Fwiklou.git tableName: change backticks into double quotes for parent-transformed table names --- diff --git a/includes/DatabasePostgreSQL.php b/includes/DatabasePostgreSQL.php index e0257612ba..63c500a186 100644 --- a/includes/DatabasePostgreSQL.php +++ b/includes/DatabasePostgreSQL.php @@ -244,6 +244,9 @@ class DatabasePgsql extends Database { # First run any transformations from the parent object $name = parent::tableName( $name ); + # Replace backticks into double quotes + $name = strtr($name,'`','"'); + # Now quote PG reserved keywords switch( $name ) { case 'user':