mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
2021-04-19 Fred Gleason <fredg@paravelsystems.com>
* Escaped all SQL identifiers in 'rdcartslots/'. * Replaced " with ' delimiters in all SQL literal strings in 'rdcartslots/'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -21487,3 +21487,7 @@
|
|||||||
* Escaped all SQL identifiers in 'rdairplay/'.
|
* Escaped all SQL identifiers in 'rdairplay/'.
|
||||||
* Replaced " with ' delimiters in all SQL literal strings in
|
* Replaced " with ' delimiters in all SQL literal strings in
|
||||||
'rdairplay/'.
|
'rdairplay/'.
|
||||||
|
2021-04-19 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Escaped all SQL identifiers in 'rdcartslots/'.
|
||||||
|
* Replaced " with ' delimiters in all SQL literal strings in
|
||||||
|
'rdcartslots/'.
|
||||||
|
@@ -141,8 +141,8 @@ void MainWidget::caeConnectedData(bool state)
|
|||||||
{
|
{
|
||||||
QList<int> cards;
|
QList<int> cards;
|
||||||
|
|
||||||
QString sql=QString("select CARD from CARTSLOTS where ")+
|
QString sql=QString("select `CARD` from `CARTSLOTS` where ")+
|
||||||
"STATION_NAME=\""+RDEscapeString(rda->config()->stationName())+"\"";
|
"`STATION_NAME`='"+RDEscapeString(rda->config()->stationName())+"'";
|
||||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||||
while(q->next()) {
|
while(q->next()) {
|
||||||
cards.push_back(q->value(0).toInt());
|
cards.push_back(q->value(0).toInt());
|
||||||
|
Reference in New Issue
Block a user