mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
[MIRROR] Fixes library visitor console sql concat (#518)
* fixes visitor console sql concat (#53170) Co-authored-by: Jordie0608 <=> * Fixes library visitor console sql concat Co-authored-by: Jordie <4343468+Jordie0608@users.noreply.github.com>
This commit is contained in:
@@ -56,8 +56,8 @@
|
||||
var/datum/db_query/query_library_count_books = SSdbcore.NewQuery({"
|
||||
SELECT COUNT(id) FROM [format_table_name("library")]
|
||||
WHERE isnull(deleted)
|
||||
AND author LIKE '%' + :author + '%'
|
||||
AND title LIKE '%' + :title + '%'
|
||||
AND author LIKE CONCAT('%',:author,'%')
|
||||
AND title LIKE CONCAT('%',:title,'%')
|
||||
AND (:category = 'Any' OR category = :category)
|
||||
"}, list("author" = author, "title" = title, "category" = category))
|
||||
if(!query_library_count_books.warn_execute())
|
||||
@@ -80,8 +80,8 @@
|
||||
SELECT author, title, category, id
|
||||
FROM [format_table_name("library")]
|
||||
WHERE isnull(deleted)
|
||||
AND author LIKE '%' + :author + '%'
|
||||
AND title LIKE '%' + :title + '%'
|
||||
AND author LIKE CONCAT('%',:author,'%')
|
||||
AND title LIKE CONCAT('%',:title,'%')
|
||||
AND (:category = 'Any' OR category = :category)
|
||||
LIMIT :skip, :take
|
||||
"}, list("author" = author, "title" = title, "category" = category, "skip" = booksperpage * search_page, "take" = booksperpage))
|
||||
|
||||
Reference in New Issue
Block a user