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

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

@dshafik [3 hours ago]

@ejacqui You mean the PSPs retarded little brother?

@dshafik [3 hours ago]

Does anyone remember the Ms Dewey viral search campaign from Microsoft a couple of years ago? Ms Dewey was played by @janinaz. OHAI.

@dshafik [3 hours ago]

@dshafik Yeah, I have immediate uses for traits. I like namespaces, but they're boring. OTOH, closures + traits == yummy.

@weierophinney [9 hours ago]

Books & Things