summaryrefslogtreecommitdiff
path: root/vendor/PicoDb/Database.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/PicoDb/Database.php')
-rw-r--r--vendor/PicoDb/Database.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/PicoDb/Database.php b/vendor/PicoDb/Database.php
index 5d0beb8a..c09d8a92 100644
--- a/vendor/PicoDb/Database.php
+++ b/vendor/PicoDb/Database.php
@@ -86,6 +86,11 @@ class Database
public function escapeIdentifier($value)
{
+ // Do not escape custom query
+ if (strpos($value, '.') !== false || strpos($value, ' ') !== false) {
+ return $value;
+ }
+
return $this->pdo->escapeIdentifier($value);
}