From 417e015ab2791e464da032df400d3ba9c09ec6af Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Fri, 22 May 2009 10:12:12 +0000 Subject: [PATCH] adding table name protection git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@280936 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pdo_4d/sql4d.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/reference/pdo_4d/sql4d.xml b/reference/pdo_4d/sql4d.xml index e9d64c657e..991459acfc 100644 --- a/reference/pdo_4d/sql4d.xml +++ b/reference/pdo_4d/sql4d.xml @@ -1,5 +1,5 @@ - + @@ -85,6 +85,17 @@ and _USER_SCHEMAS. + + SQL structure delimiter + To escape SQL elements (tables, fields, users, groups, schema, + primary key, etc.), closing brackets must be doubled, and the whole + identifier must be between square brackets. + + Use the following function to protect SQL objects, and then, + put it between square brackets : + str_replace(']',']]', $table). + +