Subject | Re: [firebird-php] Set dialect and charset in ADODB |
---|---|
Author | Lester Caine |
Post date | 2004-02-11T19:22:37Z |
Eduardo Sampaio wrote:
of PearDB - but I haven't managed to build a base database yet.
Back to your problem.
charSet and dialect are variables in the base connection.
charSet is defined in adodb.inc.php
dialect is added in drivers/adodb-ibase.inc.php
( I reset mine to 3 rather than the default of 1 ! )
$db = &ADONewConnection("firebird");
$db->charSet = X;
$db->dialect = 3;
In theory the dialect should be returned after a connection
is made, but I have not confirmed that happens ;)
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
> How can I set Dialect and charset in ADODB?Been engrossed with TikiWiki. Version 1.8 has ADODB in place
> thanks in advance,
of PearDB - but I haven't managed to build a base database yet.
Back to your problem.
charSet and dialect are variables in the base connection.
charSet is defined in adodb.inc.php
dialect is added in drivers/adodb-ibase.inc.php
( I reset mine to 3 rather than the default of 1 ! )
$db = &ADONewConnection("firebird");
$db->charSet = X;
$db->dialect = 3;
In theory the dialect should be returned after a connection
is made, but I have not confirmed that happens ;)
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services