-
Notifications
You must be signed in to change notification settings - Fork 7.9k
PDO Unconditional errors #6212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
PDO Unconditional errors #6212
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
2435c87
Fix a logical bug in PDO
Girgias e280e5e
Column index must be >= 0 (just 1 case) and todo comment.
Girgias 96770fa
Refactor PDO setFetchMode
Girgias c5a4c3e
Drop ZPP check in PDO Mysqli test...
Girgias 4c75cae
Make certain error conditions always error in PDO::fetchAll()
Girgias 2cf849b
Unconditonal error for values less than a minimum
Girgias 220d89f
Add todo comments
Girgias b2bd8b6
ValueError for negative column index
Girgias 156ec13
Assertion + always throw on invalid Fetch mode
Girgias 7bcf852
ValueError for incorrect Fetch Flag usage
Girgias d92274a
Make invalid user callable throw a type error
Girgias 4028d9f
More TODOs
Girgias 1615a93
Todo everything...
Girgias 2f9bb0e
ValueError for empty query in PDO::exec()
Girgias ad8a780
Preliminary Type/ValueError for setting PDO attributes
Girgias ba6ce47
Attempt to fix SQLite test
Girgias dd7c891
TypeErrors for invalid attribute options
Girgias d1d6393
Type Error for invalid options in PDO::prepare()
Girgias e711702
Drop superflous PDO_STMT_CLEAR_ERR();
Girgias b2a0a2e
Fix NULL pointer access
Girgias d5d51e8
Split bug 44159 SQLite difference in behaviour to a dedicated variant
Girgias fb87fcd
Fix memory leaks
Girgias d95763d
Make unintialized PDO object an Error
Girgias dc3af24
Drop string type as acceptable type when checking for integer
Girgias df49654
Uncodnitional error for attempting to write/delete read-only property
Girgias 8c1f0ff
Tiny Refactor
Girgias 2f2f5ba
Make a check an assertion
Girgias 2b57e46
Make unitialized object an error
Girgias 095513b
Refactor PDOStatement::fetchAll()
Girgias d56559f
Fix stubs
Girgias 66f35b5
Refactor PDOStatement::setAttribute() to be more explicit
Girgias 7716b91
Add a TODO comment
Girgias 8e9fa15
Redfine todo comment
Girgias 1725e31
Introduce ValueError for empty bind param names
Girgias 79e9444
Fix stubs after making uninitialized object return Error
Girgias 64349d3
Introduce ValueError for empty string arguments
Girgias a52ce29
Revert ValueError for empty username
Girgias d94521b
Make fetch argument variadic
Girgias ee37a1d
Fix test after making fetch args variadic
Girgias 89b233c
Review for pdo_dbh.c
Girgias 978b43d
Drop todo comments in pdo_sql_parser.re
Girgias 909651e
Revert + add test for empty string in PDO::qutoe()
Girgias 86959ee
Drop ValueError for empty lastInsertId()
Girgias 8944242
Accept strings values again for integer attribute values
Girgias a0eedd8
Review for pdo_stmt.c
Girgias 2fd259f
Revert ZPP to use variadics
Girgias c0d2d8b
Do not advertise support for a PDO feature if it's not implemented by…
Girgias e4a13d0
Another round of review
Girgias 080465f
Minor review
Girgias c949e24
Fix type error messages
Girgias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.