1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-30 01:09:50 +02:00

* added dibi::date & dibi::datetime

* DibiConnection::insertId && affectedRows throws exception on failure
* added protected throwException() to drivers
* DibiPostgreDriver - can build connection string
* DibiSqliteDriver - support for parameters 'format:date' & 'format:datetime'
* fixed query errors in DibiSqliteDriver
* DibiConnection prevents serialization and multiple transactions
This commit is contained in:
David Grudl
2007-11-23 23:27:14 +00:00
parent 3f42b2cf55
commit 7c6947a019
18 changed files with 419 additions and 176 deletions

View File

@@ -14,7 +14,7 @@ try {
echo 'OK';
} catch (DibiException $e) {
echo get_class($e), ': ', $e->getMessage();
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";
@@ -28,7 +28,7 @@ try {
echo 'OK';
} catch (DibiException $e) {
echo get_class($e), ': ', $e->getMessage();
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";
@@ -49,7 +49,7 @@ try {
echo 'OK';
} catch (DibiException $e) {
echo get_class($e), ': ', $e->getMessage();
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";
@@ -68,7 +68,7 @@ try {
echo 'OK';
} catch (DibiException $e) {
echo get_class($e), ': ', $e->getMessage();
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";
@@ -86,7 +86,7 @@ try {
echo 'OK';
} catch (DibiException $e) {
echo get_class($e), ': ', $e->getMessage();
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";
@@ -103,7 +103,7 @@ try {
echo 'OK';
} catch (DibiException $e) {
echo get_class($e), ': ', $e->getMessage();
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";
@@ -121,7 +121,7 @@ try {
echo 'OK';
} catch (DibiException $e) {
echo get_class($e), ': ', $e->getMessage();
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";
@@ -139,6 +139,6 @@ try {
echo 'OK';
} catch (DibiException $e) {
echo get_class($e), ': ', $e->getMessage();
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";