Welcome Guest, Not a member yet? Register   Sign In
Firebird drivers for CI 1.7
#21

[eluser]rasaliad[/eluser]
Sorry JJB

I forgot to mention an error, the first time i unzip your source code and execute my test I get the following error:


A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_DB_ibase_driver::$char_set
Filename: ibase/ibase_driver.php
Line Number: 106


then i go to the line 106 and comment the following:

/*
if (strcmp(trim($this->char_set),"") != 0)
{
$char_set = $this->char_set;
}
*/

then the error disappear, but then as you know I only get a White browser screen. I hope this comment could help in something

--------------------------------------------------------------
Rafael Liriano
SONEINSA
#22

[eluser]rasaliad[/eluser]
Hi JJB

NOW it works!!!!

Sorry, remember I'm new in PHP, the problem was that in PHP.ini I only uncomment the following extension=php_pdo_firebird.dll and forgot to uncommnet the following extension=php_interbase.dll... Sad

Now i connect but get the following error:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_DB_ibase_driver::$autoinit
Filename: database/DB.php
Line Number: 135


Why?

Any way THANK YOU, now i can begin to work.


--------------------------------------------------------------
Rafael Liriano
SONEINSA
#23

[eluser]RcCluster[/eluser]
[quote author="JJB" date="1241755280"]*many goot things*[/quote]

Hi and thanks. for ibase it works well!

but in my project i have to connect to two dbs. one is mysql and the other ibase.

if i use the original db_driver.php the mysql works fine but the ibase result is empty (although the sql is computed correctly on the ibase server). if i change to yours the ibase works and the mysql says:

Quote:A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_DB_mysqli_driver::$autoinit

Filename: database/DB.php

Line Number: 135

A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_DB_ibase_driver::$autoinit

Filename: database/DB.php

Line Number: 135

is there a chance to merge both?

thanks
RcCluster

*edit*
hmm. same problem as above Wink
#24

[eluser]RcCluster[/eluser]
ok i think i get it

find (line 431 in my system/database/db_driver.php) <--- *EDIT the original file*
Code:
// oci8 vars must be set before calling this
        $RES->num_rows    = $RES->num_rows();

insert after:

Code:
//  Hack for Firebird/Interbase lack of having a num_rows type
        //  function --  Jeffrey Bradley.
        if ($this->dbdriver == 'ibase')
        {
            $RES->sql = $sql;
        }

this works fine for me. this should also fix rasaliad's problem.

lg
RcCluster
#25

[eluser]Unknown[/eluser]
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_DB_ibase_driver::$char_set
Filename: ibase/ibase_driver.php
Line Number: 106


A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_DB_ibase_driver::$autoinit
Filename: database/DB.php
Line Number: 135

try to fix DB_driver.php file

insert row below row 53

var $autoinit = TRUE; // Whether to automatically initialize the DB
var $char_set = 'utf8';




Theme © iAndrew 2016 - Forum software by © MyBB