Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PDO-related errors on certain PHP versions
* Remove literal question marks from query * Set attribute PDO::ATTR_EMULATE_PREPARES to fix General Error 2050 This fixes two errors that occurred on my particular software stack, which includes PHP 5.2.6 and MySQL 5.0.67 running on Solaris 5.11: * `SQLSTATE[HY000]: General error: 2050` (this occurs on the Capture Data page); fixed by setting `PDO::ATTR_EMULATE_PREPARES`. See also [this discussion thread](https://groups.google.com/forum/#!topic/thinkupapp/RbkAOOQ1Yjg/discussion). * Failing query on the Tweets tab due to a PDO bug (maybe [this one](https://bugs.php.net/bug.php?id=44251)?) in which question marks occurring in string literals are misparsed as positional parameters; fixed by replacing the offending strings with named parameters. Closes #1357
- Loading branch information