aboutsummaryrefslogtreecommitdiff
path: root/app/Models/EntryDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2016-09-06 09:15:32 +0200
committerGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2016-09-06 09:15:32 +0200
commit9f04e2bf3246ec5a65280908f017533d6f622a88 (patch)
tree4436eef7f9502fd75d2b3b45fafce1e62bb30da3 /app/Models/EntryDAO.php
parent2fa5ef354c82b036e146c178edf495bf8e08d0ee (diff)
MySQL use unhex instead of hex litteral
X' syntax did not work well with bind values
Diffstat (limited to 'app/Models/EntryDAO.php')
-rw-r--r--app/Models/EntryDAO.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php
index d39f0237c..159f9673b 100644
--- a/app/Models/EntryDAO.php
+++ b/app/Models/EntryDAO.php
@@ -11,7 +11,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo implements FreshRSS_Searchable {
}
public function sqlHexDecode($x) {
- return 'X' . $x;
+ return 'unhex(' . $x . ')';
}
public function sqlHexEncode($x) {