1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-30 17:29:53 +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

@@ -12,7 +12,7 @@
* @license GNU GENERAL PUBLIC LICENSE version 2
* @package dibi
* @category Database
* @version 0.8 (Revision: $WCREV$, Date: $WCDATE$)
* @version 0.8b (Revision: $WCREV$, Date: $WCDATE$)
*/
@@ -26,7 +26,7 @@
*/
define('DIBI', '0.8 (Revision: $WCREV$, Date: $WCDATE$)');
define('DIBI', '0.8b (Revision: $WCREV$, Date: $WCDATE$)');
if (version_compare(PHP_VERSION , '5.0.3', '<'))
@@ -240,7 +240,10 @@ class dibi
*/
static public function query($args)
{
$args = func_get_args();
// receive arguments
if (!is_array($args))
$args = func_get_args();
return self::getConnection()->query($args);
}