in reply to DBI prepare_cached and DBD::Sybase
Sometimes abstractions work great in theory, but suck for some edge cases. Trying to pretend that all databases support placeholders makes code much more portable, at the expense of suboptimal (or just plain terrible) performance when dealing with a database that doesn't support placeholders. Sybase, at least through the native DB*Lib API, doesn't support placeholders (I think this is true through CT*Lib, though that's years back, and I don't have that API at hand). To cope with this, the various abstract APIs (e.g., DBI, ODBC) that sit atop the native API have to pretend to prepare a query while in reality they're expanding the query and quoting bind variables at execute time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI prepare_cached and DBD::Sybase
by mpeppler (Vicar) on May 20, 2002 at 20:39 UTC |