1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-27 07:54:21 +02:00
This commit is contained in:
David Grudl
2010-01-11 17:03:20 +01:00
parent d61bd79982
commit 9d4a887e7a
3 changed files with 21 additions and 68 deletions

View File

@@ -135,7 +135,7 @@ class DibiOracleDriver extends DibiObject implements IDibiDriver
{
$this->query("SELECT $sequence.CURRVAL AS ID FROM DUAL");
$row = $this->fetch(TRUE);
return isset($row['ID']) : (int) $row['ID'] : FALSE;
return isset($row['ID']) ? (int) $row['ID'] : FALSE;
}

View File

@@ -349,7 +349,7 @@ class DibiSqlite3Driver extends DibiObject implements IDibiDriver
{
$count = $this->resultSet->numColumns();
$res = array();
static $types = array(SQLITE3_INTEGER => 'int', SQLITE3_FLOAT => 'float', SQLITE3_TEXT => 'text', SQLITE3_BLOB => 'blob', or SQLITE3_NULL => 'null');
static $types = array(SQLITE3_INTEGER => 'int', SQLITE3_FLOAT => 'float', SQLITE3_TEXT => 'text', SQLITE3_BLOB => 'blob', SQLITE3_NULL => 'null');
for ($i = 0; $i < $count; $i++) {
$res[] = array(
'name' => $this->resultSet->columnName($i),