Update SQL bindings for wildcard matching

Accidently removed them during refactor. Sri!
This commit is contained in:
Joerg (DJ7NT)
2026-02-08 11:48:06 +01:00
committed by GitHub
parent 51d79d07dc
commit 85accb60a8

View File

@@ -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
];