jv2222/ezSQL — pull request #10 by ratnayake (2012-10-14 16:48:43+00:00)
Title: Update pdo/ez_sql_pdo.php

Hi Justin,

Thanks! for this useful php mysql class.I did few code modifications to support pdo ssl for mysql databases. after this change it will work on xeround.com cloud database ssl mode without a problem. I decided to share code with you

Changes.
1. add $ssl = array() into constructor, connect, quick_connect and select
2. add fllowing code to line 69
if(!empty($ssl))
{
$this->dbh = new PDO($dsn, $user, $password,$ssl);
}
else{
$this->dbh = new PDO($dsn, $user, $password);
}

3. bug fixes add stdClass() object in line 256,269 to fix warning
4. bug fixes add empty check for native_type in line 258

Thanks!
Best Regards,
Isuru Ratnayake
isuru.sampath@ratnayake.info