Hi,
I get 2 questions about using mdb2
I'm running
MDB2 2.2.0
MDB2_Driver_mysql 1.2.0
1.How to set charset in $dsn array?
$dsn = array(
'phptype' => 'mysql',
'username' => 'root',
'password' => 'pwd',
'hostspec' => 'localhost',
'database' => 'db1',
'charset' => 'utf8' // right? but it didn't work
);
2.Which statement of autoPrepare() for putting SQL functions in?
I want to do sth using autoPrepare() like:
$sth = $mdb2->prepare('INSERT INTO tmp (d, dt) VALUES (?, now())', array('clob', 'timestamp'), MDB2_PREPARE_MANIP);