1
0
mirror of https://github.com/dg/dibi.git synced 2025-09-02 02:22:33 +02:00

support for 64bit numbers on 32bit platform [Closes #253] (BC break)

throws exception when given argument is not a number
This commit is contained in:
David Grudl
2017-07-21 23:20:30 +02:00
parent be3a0aa57d
commit 3253a5b092
18 changed files with 86 additions and 41 deletions

View File

@@ -142,10 +142,9 @@ if ($config['system'] === 'mysql') {
->limit(' 1; DROP TABLE users')
->offset(' 1; DROP TABLE users');
Assert::same(
reformat(' SELECT * LIMIT 1 OFFSET 1'),
(string) $fluent
);
Assert::error(function () use ($fluent) {
(string) $fluent;
}, E_USER_ERROR, "Expected number, ' 1; DROP TABLE users' given.");
}