[PHP] question on getting PDO to output final assembled query from prepared statements?

2006-06-07 Thread Rick Harding
I am working on some code that I am moving to use PDO in order to play with it a bit. I used to use ADODB, but want to try out the performance of using PDO and just skipping some of the portability of the db code. The one thing I find myself missing is the ADODB debug and sql values where you

[PHP] question on getting PDO to output final assembled query from the prepared statements

2006-06-07 Thread Rick Harding
I am working on some code that I am moving to use PDO in order to play with it a bit. I used to use ADODB, but want to try out the performance of using PDO and just skipping some of the portability of the db code. The one thing I find myself missing is the ADODB debug and sql values where you

[PHP] Set PDO to ALWAYS return fetched rows with PDO::FETCH_ASSOC?

2006-06-09 Thread Rick Harding
I am trying to go through the PDO documentation to set up PDO to always use PDO::FETCH_ASSOC instead of being forced to include this attribute on each and every fetch call. Can anyone tell me if there is a setAttribute value I can set when I create the db connection handler that I reuse thr