Debugging PDO Prepared Statements

Something that has always bugged me about using prepared statements, is that you can really only get the query sent to the database by catching it in the logs.

Today, a friend asking me if it was possible to get a prepared statement back from PDO with the values placeholders replaced, finally caught me in a moment where I could do something about it.

I wrote a thin PDO wrapper class that will [imperfectly, I'm sure] return the completed query.… More

Twitter

Also: it's Friday? >.<

@dshafik [2 hours ago]

OK, who's preordered my iPad for me? :D

@dshafik [2 hours ago]

@janinaz I checked out your IMDB, very cool that you got into an episode of Dollhouse :)

@dshafik [15 hours ago]

@ejacqui You mean the PSPs retarded little brother?

@dshafik [16 hours ago]

Books & Things