From f613c0aa4a03d06d6c9ac2f014b295ca84b48188 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Fri, 5 Nov 2004 10:22:03 +0000 Subject: [PATCH] tableName: change backticks into double quotes for parent-transformed table names --- includes/DatabasePostgreSQL.php | 3 +++ 1 file changed, 3 insertions(+) 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': -- 2.20.1