On Wed, 12 May 2004, JupiterHost.Net wrote: > Ronald J Kimball wrote: > > > > JupiterHost.Net [mailto:[EMAIL PROTECTED] wrote: > > > > > >>I found do() and quote() in DBI.pm, prepare() in DBD::mysql, but I > >>couldn't find execute() - I wanted to see how it does the quoting > >>exactly (for binary data) - > >> > >>Anyone know where execute() is? > > > > > > All of these are covered in the DBI documentation. execute() is in the > > section on statement handle methods, rather than database handle methods. > > > > Thanks Ronald, > > I'm actually looking for the source code for execute() (IE sub execute { > .. }), do() and quote() are in DBI.pm, prepare() is in DBD/mysql.pm but > execute in neither.
The source code for execute is in dbd_st_execute() in dbdimp.c, and if you want to know how the quoting is done, you will need to download the the soucre code for the mysql client libraries spec. the function mysql_reql_escape_string() because that is how DBD::mysql handles the quoting. HTH, Rudy