Subject Re: [firebird-php] Set dialect and charset in ADODB
Author Lester Caine
Eduardo Sampaio wrote:
> How can I set Dialect and charset in ADODB?
> thanks in advance,

Been engrossed with TikiWiki. Version 1.8 has ADODB in place
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