mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Update SQL bindings for wildcard matching
Accidently removed them during refactor. Sri!
This commit is contained in:
@@ -718,9 +718,9 @@ class Logbook extends CI_Controller {
|
||||
|
||||
$bindings = [
|
||||
$lookupcall, // Exact match: COL_CALL = ?
|
||||
'/' . $lookupcall, // Starts with /: COL_CALL LIKE '/ABC'
|
||||
$lookupcall . '/', // Ends with /: COL_CALL LIKE 'ABC/'
|
||||
'/' . $lookupcall . '/', // Both sides: COL_CALL LIKE '/ABC/'
|
||||
'%/' . $lookupcall, // Starts with /: COL_CALL LIKE '/ABC'
|
||||
$lookupcall . '/%', // Ends with /: COL_CALL LIKE 'ABC/'
|
||||
'%/' . $lookupcall . '/%', // Both sides: COL_CALL LIKE '/ABC/'
|
||||
(int)$count // LIMIT
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user