1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00

- fixed Oracle driver

This commit is contained in:
David Grudl
2009-01-10 22:33:29 +00:00
parent c24f2b8705
commit 7c0c4db0f6
2 changed files with 2 additions and 2 deletions

View File

@@ -275,7 +275,7 @@ class DibiOracleDriver extends DibiObject implements IDibiDriver
*/
public function rowCount()
{
return oci_num_rows($this->resultSet);
throw new DibiDriverException('Row count is not available for unbuffered queries.');
}

View File

@@ -477,7 +477,7 @@ class DibiColumnInfo extends DibiObject
{
static $patterns = array(
'BYTE|COUNTER|SERIAL|INT|LONG' => dibi::FIELD_INTEGER,
'CURRENCY|REAL|MONEY|FLOAT|DOUBLE|DECIMAL|NUMERIC' => dibi::FIELD_FLOAT,
'CURRENCY|REAL|MONEY|FLOAT|DOUBLE|DECIMAL|NUMERIC|NUMBER' => dibi::FIELD_FLOAT,
'^TIME$' => dibi::FIELD_TIME,
'TIME' => dibi::FIELD_DATETIME, // DATETIME, TIMESTAMP
'YEAR|DATE' => dibi::FIELD_DATE,