[AppDB] Fix TableVE::make_option_list's WHERE handling

Alexander Nicolaysen Sørnes alex at thehandofagony.com
Tue Apr 24 10:35:27 CDT 2007

It was trying to do something like this
query_parameters("SELECT * ? ", $sWhere);
which is obviously wrong since the purpose of query_parameters is to filter 
out SQL commands.

Replace the $where parameter with an array $aWhere, where the first element is 
the variable and the second is the value, so that passing

array("versionId", "65");

will result in 'WHERE versionId = '65'"


Alexander N. Sørnes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tableve.diff
Type: text/x-diff
Size: 2012 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070424/ae8ed8be/tableve.bin

More information about the wine-patches mailing list