[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-dev
Subject:    [PEAR-DEV] About PEAR::DB bug or not..?
From:       "Vitaly N. Kravchenko" <kvn () phbme ! ntu-kpi ! kiev ! ua>
Date:       2001-09-30 15:10:21
[Download RAW message or body]

There is problem:
        I want to execute querty
SET OPTION CHARACTER SET cp1251_koi8

DB =  MySQL.

DB.php version:
v 1.62 2001/04/19 23:56:57 cox

Here is example of my code:
 $dsn = "mysql://$user:$pass@$host/$db_name";
 $db = DB::connect($dsn);
 if (DB::isError($db)) {
     die ($db->getMessage());
 }
 $sql = "SET OPTION CHARACTER SET cp1251_koi8";
 $res = $db->query($sql);
 if (DB::isError($res))
    die ($res->getMessage());

with right parameters of connection ($dsn) I receive the message:
DB Error: unknown error

Can anybody explain?
Thank you!

--
Best regards,
 KVN     (<http://php4you.kiev.ua/~kvn/>)
 PHP4You (<http://php4you.kiev.ua/>)
  mailto:kvn@phbme.ntu-kpi.kiev.ua

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, e-mail: pear-dev-unsubscribe@lists.php.net
For additional commands, e-mail: pear-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic