internals:pdo:brainstorming
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
internals:pdo:brainstorming [2009/11/19 22:20] – expanded questions over driver differences lsmith | internals:pdo:brainstorming [2009/11/19 22:31] – added some more infos on binding related issues lsmith | ||
---|---|---|---|
Line 15: | Line 15: | ||
===== PDO Bugs / PDO2 Improvements ===== | ===== PDO Bugs / PDO2 Improvements ===== | ||
- | |||
==== PDO ==== | ==== PDO ==== | ||
=== Documentation === | === Documentation === | ||
Line 24: | Line 23: | ||
=== Parameter binding & explicit data type set === | === Parameter binding & explicit data type set === | ||
- | * bindValue() & bindParam() should enforce the type giving, currently it uses the current zval type for MySQL Bug #44639 / [[http:// | + | * bindValue() & bindParam() should enforce the type giving, currently it uses the current zval type for MySQL Bug [[bugid@44639]] / [[http:// |
* PARAM_INT with strings => it should try to convert to the type, otherwise throw an Exception or create an error. | * PARAM_INT with strings => it should try to convert to the type, otherwise throw an Exception or create an error. | ||
* PARAM_BOOLEAN with strings => Exception or Error. | * PARAM_BOOLEAN with strings => Exception or Error. | ||
Line 30: | Line 29: | ||
* execute() could use an automatic approach PARAM_AUTO, could be a BC break [[http:// | * execute() could use an automatic approach PARAM_AUTO, could be a BC break [[http:// | ||
* allows automatic convert to PARAM_INT if zval is integer / float | * allows automatic convert to PARAM_INT if zval is integer / float | ||
+ | * prepared statement emulation (placeholder rewriting) is fragile, [[bugid@35368|cannot deal well with strings that look like placeholders]] inside quoted strings like "WHERE foo = 'check ?'" | ||
+ | * [[bugid@48856|different behavior]] when reusing the same oracle style named placeholder multiple times | ||
=== fetchObject === | === fetchObject === |
internals/pdo/brainstorming.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1