| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Vivek Khera | Date: | April 6 2001 5:35pm |
| Subject: | Re: Mysql speed :) | ||
| View as plain text | |||
>>>>> "PD" == Paul DuBois <paul@stripped> writes: PD> But why does it matter? MySQL will convert the strings to numbers PD> anyway. But according to earlier threads here, it will mess up with BIGINTs Also it may screw up with LIMIT: $sth = $dbh->prepare("SELECT foo FROM bar LIMIT ?,?") or die; $sth->execute($start,$howmany); may fail depending on how you set $start and $howmany. I got this error the other day, where $start was the string "3" and DBI tried to quote it, making my query look like this: ... LIMIT '3',2 and resulting in a parse error. The fix was to call $sth->execute($start+0,$howmany+0) and then DBI did the right thing. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@stripped Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
| Thread | ||
|---|---|---|
| • Mysql speed :) | Peter Zaitsev | 5 Apr |
| • Re: Mysql speed :) | Sinisa Milivojevic | 5 Apr |
| • Re: Mysql speed :) | Richard Ellerbrock | 5 Apr |
| • Re: Mysql speed :) | Heikki Tuuri | 5 Apr |
| • Re: Mysql speed :) | Tim Bunce | 6 Apr |
| • RE: Mysql speed :) | Martin Hubert | 6 Apr |
| • Re: Mysql speed :) | Tim Bunce | 6 Apr |
| • Re: Mysql speed :) | William R. Mussatto | 6 Apr |
| • Re: Mysql speed :) | Paul DuBois | 6 Apr |
| • Re: Mysql speed :) | Tim Bunce | 6 Apr |
| • Re: Mysql speed :) | William R. Mussatto | 6 Apr |
| • Re: Mysql speed :) | Vivek Khera | 6 Apr |
| • Re: Mysql speed :) | Christian Jaeger | 7 Apr |
| • Re: Mysql speed :) | Sinisa Milivojevic | 6 Apr |
| • Re: Mysql speed :) | Sinisa Milivojevic | 6 Apr |
| • RE: Mysql speed :) | Gregert Johnson | 6 Apr |
| • Re: Mysql speed :) | Tim Bunce | 6 Apr |
| • RE: Mysql speed :) | Gregert Johnson | 6 Apr |
