About PEAR::DB bug or not..?

From: Date: Sun, 30 Sep 2001 15:10:21 +0000
Subject: About PEAR::DB bug or not..?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2099@lists.php.net to get a copy of this message
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

« previous php.pear.dev (#2099) next »