WIP enable auto adding of backticks
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 2 Jan 2020 22:28:38 +0000 (22:28 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 2 Jan 2020 22:28:38 +0000 (22:28 +0000)
CRM/Core/DAO.php

index 80045ca09ae442a7c33053aadb1131a1832775b2..fcb2070c8ebab0fb9157cd0dd1c4d52f419ee33f 100644 (file)
@@ -144,6 +144,7 @@ class CRM_Core_DAO extends DB_DataObject {
     Civi::$statics[__CLASS__]['init'] = 1;
     $options = &PEAR::getStaticProperty('DB_DataObject', 'options');
     $options['database'] = $dsn;
+    $options['quote_identifiers'] = TRUE;
     if (defined('CIVICRM_DAO_DEBUG')) {
       self::DebugLevel(CIVICRM_DAO_DEBUG);
     }