فهرست منبع

MySQL use unhex instead of hex litteral

X' syntax did not work well with bind values
Alexandre Alapetite 10 سال پیش
والد
کامیت
9f04e2bf32
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Models/EntryDAO.php

+ 1 - 1
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) {