mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-06-02 05:30:48 +00:00
PostgreSQL - error apply/revert a patch
as reported #47 you are unable to apply a patch on postgresql the issue arise cause we are using LIKE on a bigint field ```pull_id``` ``` WHERE ("a"."title" LIKE '%6263%') OR ("a"."pull_id" LIKE '%6263%') ``` we need to use ``` = ``` instead
This commit is contained in:
parent
72b50e2a96
commit
ae836de99c
|
@ -128,10 +128,11 @@ class PullsModel extends \JModelDatabase
|
|||
|
||||
if (!empty($search))
|
||||
{
|
||||
$searchid = $search;
|
||||
$search = $db->quote('%' . $db->escape($search, true) . '%');
|
||||
$query->where(
|
||||
'(' . $db->quoteName('a.title') . ' LIKE ' . $search . ') OR ' .
|
||||
'(' . $db->quoteName('a.pull_id') . ' LIKE ' . $search . ') '
|
||||
'(' . $db->quoteName('a.pull_id') . ' = ' . $searchid . ') '
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user