25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Make sql query in testsuite compatible with pg9.1

This commit is contained in:
Paweł Chmielowski 2024-07-03 12:38:27 +02:00
parent 6c2dfd3d31
commit 35042ebc6a

View File

@ -186,7 +186,7 @@ end_per_group(mssql, Config) ->
end,
ok;
end_per_group(pgsql, Config) ->
Query = "SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = 'mqtt_pub');",
Query = "SELECT EXISTS (SELECT 0 FROM information_schema.tables WHERE table_name = 'mqtt_pub');",
case catch ejabberd_sql:sql_query(?PGSQL_VHOST, [Query]) of
{selected, [t]} ->
clear_sql_tables(pgsql, Config);