1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-30 17:29:53 +02:00

+ DibiResult::fetchAll()

* changed year in headers (2007)
This commit is contained in:
David Grudl
2007-01-08 00:55:11 +00:00
parent 3b8766d376
commit ac980fe8c9
14 changed files with 143 additions and 49 deletions

View File

@@ -10,7 +10,7 @@
*
* @author David Grudl aka -dgx- <dave@dgx.cz>
* @link http://dibi.texy.info/
* @copyright Copyright (c) 2005-2006 David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl
* @license GNU GENERAL PUBLIC LICENSE v2
* @package dibi
* @category Database
@@ -178,7 +178,7 @@ class dibi
/** like $conn = $className::connect($config); */
self::$conn = self::$registry[$name] = call_user_func(array($className, 'connect'), $config);
dibi::log("Successfully connected to DB '$config[driver]'");
if (dibi::$debug) dibi::log("Successfully connected to DB '$config[driver]'");
}
@@ -280,6 +280,13 @@ class dibi
);
}
if (dibi::$debug)
{
echo self::$error ? "\n[ERROR] " : "\n[OK] ";
echo htmlSpecialChars(trim(strtr(self::$sql, "\r\n\t", ' ')));
echo "\n<br />";
}
if (self::$error && dibi::$errorMode === self::ERR_EXCEPTION)
throw self::$error;