This is an updated version of the adapter originally posted by idlesign. It has been enhanced and tested with gii from yii 1.1.9.
PHP 5.3.10 is required. Previous versions of PDO_Firebird do not return the number of rows affected by a dml statement.
This version is marked 1.0RC3
Summary of new features and fixes ¶
FirebirdSchema
- Forced all metadata objects to lowercase for compatibility with gii
- Changed system table queries to use JOINS instead of WHERE conditions. This is partly a matter of style but WHERE joins are deprecated.
- Support of composite primary keys
- Fixed 'findColumns' of 'CFirebirdSchema' that always returns true, even if the table does not exist.
- Added support for Alter column from NULL to NOT NULL and vice versa
FirebirdCommandBuilder
- Fixed applyLImit to correctly handle all variations of $limit and $offset
- Fixed getLastInsertID for inserting records
Installation ¶
- Unpack the adapter to
protected/extensions
- In your
protected/config/main.php
, add the following:
...
'components' => array(
...
'db' => array(
'connectionString' => 'firebird:dbname=localhost:C:\Path\To\Db\MyDB.GDB',
'class' => 'ext.YiiFirebird.CFirebirdConnection',
),
...
),
...
Resources ¶
Thanks to ¶
@idlesign, @edgardmessias, @mr-rfh, @mlorentz75
demo
demo be good :)
Demo
Not sure if demo is useful, but if I decide to publish one, a notification will be published here.
i have problems
i need to help when try use this extension y have this message
PHP warning
include(C:\wamp\www\yii\framework/db/schema/firebird/CFirebirdPdoAdapter.php) [function.include]: failed to open stream: No such file or directory
Can't update or insert a record
I'm having the following error when inserting or updating a record
CDbCommand failed to prepare the SQL statement: SQLSTATE[HY000]: General error: -151 attempted update of read-only column
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.