Req #74592 [NEW]: prepared statement support
| From: | adambaratz@php.net | Date: | Mon, 15 May 2017 07:59:02 +0000 |
| Subject: | Req #74592 [NEW]: prepared statement support | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-209117@lists.php.net to get a copy of this message | ||
From: adambaratz
Operating system:
PHP version: Irrelevant
Package: PDO DBlib
Bug Type: Feature/Change Request
Bug description:prepared statement support
Description:
------------
DBlib doesn't directly support prepared statements, but could get most
of the way there using some generic stored procedures.
T-SQL offers sp_executesql:
https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-executesql-transact-sql
Sybase has options of its own:
http://stackoverflow.com/questions/5680960/equivalent-to-sp-executesql-in-sybase
These could likely be used in conjunction with dbbind(). If so, this
would eliminate this extension's hard requirement for emulated prepares.
Testing with SQL Server has shown that execution plans for queries
executed with sp_executesql can be reused when the parameters change.
--
Edit bug report at https://bugs.php.net/bug.php?id=74592&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74592&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74592&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74592&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74592&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74592&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74592&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74592&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74592&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74592&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74592&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74592&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74592&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74592&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74592&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74592&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74592&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74592&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74592&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74592&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74592&r=mysqlcfg