mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 07:06:52 +02:00
- fixed Oracle driver
This commit is contained in:
@@ -275,7 +275,7 @@ class DibiOracleDriver extends DibiObject implements IDibiDriver
|
|||||||
*/
|
*/
|
||||||
public function rowCount()
|
public function rowCount()
|
||||||
{
|
{
|
||||||
return oci_num_rows($this->resultSet);
|
throw new DibiDriverException('Row count is not available for unbuffered queries.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -477,7 +477,7 @@ class DibiColumnInfo extends DibiObject
|
|||||||
{
|
{
|
||||||
static $patterns = array(
|
static $patterns = array(
|
||||||
'BYTE|COUNTER|SERIAL|INT|LONG' => dibi::FIELD_INTEGER,
|
'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_TIME,
|
||||||
'TIME' => dibi::FIELD_DATETIME, // DATETIME, TIMESTAMP
|
'TIME' => dibi::FIELD_DATETIME, // DATETIME, TIMESTAMP
|
||||||
'YEAR|DATE' => dibi::FIELD_DATE,
|
'YEAR|DATE' => dibi::FIELD_DATE,
|
||||||
|
Reference in New Issue
Block a user