1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 05:37:39 +02:00

DibiConnection: fixed loadFromFile() and loading file without semicolon [Closes #63]

This commit is contained in:
David Grudl
2012-04-03 15:30:10 +02:00
parent 997f5a98f8
commit 43f5e08296

View File

@@ -688,6 +688,10 @@ class DibiConnection extends DibiObject
$count++;
}
}
if (trim($sql) !== '') {
$this->driver->query($sql);
$count++;
}
fclose($handle);
return $count;
}