[Jaws-commits] r12431 - trunk/jaws/html/libraries/pear/MDB2/Driver/Manager

afz at jaws-project.com afz at jaws-project.com
Mon Jan 16 15:35:12 UTC 2012


Author: afz
Date: 2012-01-16 15:35:12 +0000 (Mon, 16 Jan 2012)
New Revision: 12431

Modified:
   trunk/jaws/html/libraries/pear/MDB2/Driver/Manager/sqlite.php
Log:
Fixed createIndex not using quoteIdentifier in SQLite driver

Modified: trunk/jaws/html/libraries/pear/MDB2/Driver/Manager/sqlite.php
===================================================================
--- trunk/jaws/html/libraries/pear/MDB2/Driver/Manager/sqlite.php	2012-01-16 15:34:22 UTC (rev 12430)
+++ trunk/jaws/html/libraries/pear/MDB2/Driver/Manager/sqlite.php	2012-01-16 15:35:12 UTC (rev 12431)
@@ -964,11 +964,11 @@
         }
 
         $table = $db->quoteIdentifier($table, true);
-        $name  = $db->getIndexName($name);
+        $name  = $db->quoteIdentifier($db->getIndexName($name), true);
         $query = "CREATE INDEX $name ON $table";
         $fields = array();
         foreach ($definition['fields'] as $field_name => $field) {
-            $field_string = $field_name;
+            $field_string = $db->quoteIdentifier($field_name, true);
             if (!empty($field['sorting'])) {
                 switch ($field['sorting']) {
                 case 'ascending':



More information about the Jaws-commits mailing list