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

bugfix, enhanced error reporting, better examples

This commit is contained in:
David Grudl
2007-05-11 22:25:32 +00:00
parent d03f60c43c
commit f766827219
19 changed files with 123 additions and 230 deletions

View File

@@ -1,140 +1,24 @@
OK: connected to DB 'mysql'
OK: connected to DB 'sqlite'
OK: SELECT * FROM `mytable` WHERE `inumber` = 38;
-- result: object(DibiMySqlResult) rows: 0
-- takes: 1.109 ms
-- 2007-02-02 04:38:34
OK: SELECT * FROM [customers] WHERE [customer_id] = 1;
-- result: object(DibiSqliteResult) rows: 1
-- takes: 0.331 ms
-- driver: sqlite
-- 2007-05-12 00:14:11
OK: SELECT * FROM `mytable` WHERE `inumber` < 38;
-- result: object(DibiMySqlResult) rows: 12
-- takes: 1.492 ms
-- 2007-02-02 04:38:34
OK: SELECT * FROM [customers] WHERE [customer_id] < 5;
-- result: object(DibiSqliteResult) rows: 4
-- takes: 0.324 ms
-- driver: sqlite
-- 2007-05-12 00:14:11
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:38:34
ERROR: [1] SQL logic error or missing database
-- SQL: SELECT FROM [customers] WHERE [customer_id] < 5
-- driver: sqlite;
-- 2007-05-12 00:14:11
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:38:34
OK: connected to DB 'mysql'
OK: SELECT * FROM `mytable` WHERE `inumber` = 38;
-- result: object(DibiMySqlResult) rows: 0
-- takes: 1.565 ms
-- 2007-02-02 04:47:37
OK: SELECT * FROM `mytable` WHERE `inumber` < 38;
-- result: object(DibiMySqlResult) rows: 12
-- takes: 1.347 ms
-- 2007-02-02 04:47:37
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:47:37
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:47:37
OK: connected to DB 'mysql'
OK: SELECT * FROM `mytable` WHERE `inumber` = 38;
-- result: object(DibiMySqlResult) rows: 0
-- takes: 1.147 ms
-- 2007-02-02 04:47:56
OK: SELECT * FROM `mytable` WHERE `inumber` < 38;
-- result: object(DibiMySqlResult) rows: 12
-- takes: 1.085 ms
-- 2007-02-02 04:47:56
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:47:56
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:47:57
OK: connected to DB 'mysql'
OK: SELECT * FROM `mytable` WHERE `inumber` = 38;
-- result: object(DibiMySqlResult) rows: 0
-- takes: 0.944 ms
-- 2007-02-02 04:48:23
OK: SELECT * FROM `mytable` WHERE `inumber` < 38;
-- result: object(DibiMySqlResult) rows: 12
-- takes: 1.258 ms
-- 2007-02-02 04:48:23
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:48:23
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:48:23
OK: connected to DB 'mysql'
OK: SELECT * FROM `mytable` WHERE `inumber` = 38;
-- result: object(DibiMySqlResult) rows: 0
-- takes: 1.039 ms
-- 2007-02-02 04:50:46
OK: SELECT * FROM `mytable` WHERE `inumber` < 38;
-- result: object(DibiMySqlResult) rows: 12
-- takes: 1.499 ms
-- 2007-02-02 04:50:46
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:50:46
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-02-02 04:50:46
OK: connected to DB 'mysql'
OK: SELECT * FROM `mytable` WHERE `inumber` = 38;
-- result: object(DibiMySqlResult) rows: 0
-- takes: 1.518 ms
-- 2007-03-28 00:45:27
OK: SELECT * FROM `mytable` WHERE `inumber` < 38;
-- result: object(DibiMySqlResult) rows: 12
-- takes: 6.385 ms
-- 2007-03-28 00:45:27
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-03-28 00:45:27
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-03-28 00:45:27
OK: connected to DB 'mysql'
OK: SELECT * FROM `mytable` WHERE `inumber` = 38;
-- result: object(DibiMySqlResult) rows: 0
-- takes: 1.124 ms
-- 2007-03-28 01:06:07
OK: SELECT * FROM `mytable` WHERE `inumber` < 38;
-- result: object(DibiMySqlResult) rows: 12
-- takes: 1.607 ms
-- 2007-03-28 01:06:07
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-03-28 01:06:07
ERROR: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `mytable` WHERE `inumber` < 38' at line 1
-- SQL: SELECT FROM `mytable` WHERE `inumber` < 38;
-- 2007-03-28 01:06:07
ERROR: [1] SQL logic error or missing database
-- SQL: SELECT FROM [customers] WHERE [customer_id] < 38
-- driver: sqlite;
-- 2007-05-12 00:14:11