Module:Songs: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
Line 56: Line 56:
if not horseName then return end
if not horseName then return end
local escaped = string.gsub(horseName, "'", "\\'")
local escaped = string.gsub(horseName, "'", "\\'")
local query = "SELECT song_title, album FROM Album_Songs WHERE singers HOLDS '" .. escaped .. "'"
local query = {
limit = '1000',
where = 'Album_Songs.singers HOLDS "' .. escaped .. '"',
fields = Album_Songs.song_title, Album_Songs.album
}
local results = cargo.query(query)
local results = cargo.query(query)
959

edits

Navigation menu