Skip to content
Snippets Groups Projects
Commit d195292e authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Sql.sqlite: Throw an error in list_fields() if no such table.

Fixes testsuite failures.
parent 26704adc
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,10 @@ array list_fields(string n, string|void wild)
array r = query(qry);
if (!r || !sizeof(r)) {
predef::error("Unknown table: %s\n", n);
}
// now, we weed out the ones that don't match wild, if provided
if(wild)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment