tests added MySQL quotes

This commit is contained in:
silverqx
2023-01-10 12:07:12 +01:00
parent d31a9dc810
commit cb803fede6
2 changed files with 2 additions and 2 deletions

View File

@@ -2224,7 +2224,7 @@ const QString &tst_MySql_QDateTime::utcTimezoneString() const
bool tst_MySql_QDateTime::mysqlTimezoneTablesNotPopulated() const
{
auto qtQuery = DB::select(
QStringLiteral("select count(*) from mysql.time_zone_name"),
QStringLiteral("select count(*) from `mysql`.`time_zone_name`"),
{}, m_connection);
if (!qtQuery.first())

View File

@@ -1345,7 +1345,7 @@ bool
tst_Model_QDateTime::mysqlTimezoneTablesNotPopulated(const QString &connection)
{
auto qtQuery = DB::select(
QStringLiteral("select count(*) from mysql.time_zone_name"),
QStringLiteral("select count(*) from `mysql`.`time_zone_name`"),
{}, connection);
if (!qtQuery.first())