V3.0.3.1148 Entering "; in search bar causes Error dialog

Beta Testing for Windows Products and plugins

Moderator: Gurus

chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

V3.0.3.1148 Entering "; in search bar causes Error dialog

Post by chrisjj »

... saying:
There was a problem querying the database:
Error executing SQL "SELECT Songs.*
FROM Songs WHERE (((Songs.SongTitle like '%;%' OR Songs.Custom1 like '%;%' OR Songs.Custom2 like '%;%' OR
Songs.Custom3 like '%;%' OR Songs.Custom4 like '%;%' OR Songs.Custom5 like '%;%' OR () OR Songs.Copyright like
'%;%' OR Songs.Publisher like '%;%' OR Songs.Encoder like '%;%' OR Songs.InvolvedPeople like '%;%' OR
Songs.OrigTitle like '%;%' OR Songs.OrigArtist like '%;%' OR Songs.OrigLyricist like '%;%' OR Songs.GroupDesc like
'%;%' OR Songs.SubTitle like '%;%' OR Songs.ISRC like '%;%' OR Songs.MediaType like '%;%' OR Songs.ID in
(SELECT ArtistsSongs.IDSong FROM ArtistsSongs,Artists WHERE ArtistsSongs.IDArtist=Artists.ID AND (Artists.Artist
like '%;%' OR Artists.Comment like '%;%')UNION SELECT GenresSongs.IDSong FROM GenresSongs,Genres WHERE
GenresSongs.IDGenre=Genres.IDGenre AND Genres.GenreName like '%;%' UNION SELECT ListsSongs.IDSong FROM
ListsSongs,Lists WHERE ListsSongs.IDList=Lists.ID AND Lists.TextData like '%;%' UNION SELECT Songs.ID FROM
Songs WHERE Songs.IDAlbum in (SELECT ArtistsAlbums.IDAlbum FROM ArtistsAlbums,Artists WHERE
ArtistsAlbums.IDArtist=Artists.ID AND Artists.Artist like '%;%' UNION SELECT ID FROM Albums WHERE Albums.Album
like '%;%' OR Albums.Comment like '%;%')))))
" : near ")": syntax error (1, 1)
Chris
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

There was a problem querying the database:
Error executing SQL "SELECT Songs.*
FROM Songs WHERE (((Songs.SongTitle like '%;%' OR Songs.Custom1 like '%;%' OR Songs.Custom2 like '%;%' OR
Songs.Custom3 like '%;%' OR Songs.Custom4 like '%;%' OR Songs.Custom5 like '%;%' OR () OR Songs.Copyright like
'%;%' OR Songs.Publisher like '%;%' OR Songs.Encoder like '%;%' OR Songs.InvolvedPeople like '%;%' OR
Songs.OrigTitle like '%;%' OR Songs.OrigArtist like '%;%' OR Songs.OrigLyricist like '%;%' OR Songs.GroupDesc like
'%;%' OR Songs.SubTitle like '%;%' OR Songs.ISRC like '%;%' OR Songs.MediaType like '%;%' OR Songs.ID in
(SELECT ArtistsSongs.IDSong FROM ArtistsSongs,Artists WHERE ArtistsSongs.IDArtist=Artists.ID AND (Artists.Artist
like '%;%' OR Artists.Comment like '%;%')UNION SELECT GenresSongs.IDSong FROM GenresSongs,Genres WHERE
GenresSongs.IDGenre=Genres.IDGenre AND Genres.GenreName like '%;%' UNION SELECT ListsSongs.IDSong FROM
ListsSongs,Lists WHERE ListsSongs.IDList=Lists.ID AND Lists.TextData like '%;%' UNION SELECT Songs.ID FROM
Songs WHERE Songs.IDAlbum in (SELECT ArtistsAlbums.IDAlbum FROM ArtistsAlbums,Artists WHERE
ArtistsAlbums.IDArtist=Artists.ID AND Artists.Artist like '%;%' UNION SELECT ID FROM Albums WHERE Albums.Album
like '%;%' OR Albums.Comment like '%;%')))))
" : near ")": syntax error (1, 1)
I highlighted the error (OR () OR)
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
Ludek
Posts: 5107
Joined: Fri Mar 09, 2007 9:00 am

Post by Ludek »

Thank you for reporting this. It is a regression. Will be fixed in the next beta release.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Post by chrisjj »

You're welcome!
Chris
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Post by chrisjj »

> 4570 Fixed Searching with a quote triggers an SQL error for some fields

Confirmed on 1159 this search no longer causes any error. Thanks.
Chris
Post Reply