Skip to content

Commit

Permalink
Update pdo/ez_sql_pdo.php
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ratnayake committed Oct 14, 2012
1 parent 6dad6bb commit bbb9926
Showing 1 changed file with 232 additions and 217 deletions.

1 comment on commit bbb9926

@jv2222
Copy link

@jv2222 jv2222 commented on bbb9926 Oct 16, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I have added your changes.

Please sign in to comment.