summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/idiorm.php b/idiorm.php
index 9ca1de1..ad5d5e5 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -1143,7 +1143,12 @@
return $part;
}
$quote_character = self::$_config['identifier_quote_character'];
- return $quote_character . $part . $quote_character;
+ // double up any identifier quotes to escape them
+ return $quote_character .
+ str_replace($quote_character,
+ $quote_character . $quote_character,
+ $part
+ ) . $quote_character;
}
/**