Skip to content
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

Testing fix #173

Closed
wants to merge 9 commits into from
Closed

Testing fix #173

wants to merge 9 commits into from

Conversation

charsleysa
Copy link
Contributor

This fix should validate that all the arrays are integer indexes only which is the only type of indexes PDO accepts when using question mark placeholders in queries, it generates errors otherwise.

Testing:
Checks the parameter array to ensure the correct number of values inside
the parameter with sequential integer indexes.

Production:
Strips out any non-integer indexes from the parameter array inside the
_log_query function.
Fixed regex issue that caused almost all tests to fail.
Updated regex to disregard placeholders within quotes.
Fixed the regex not having backslashes escaped.
Added debug code to see why it's failing.
Added some more debug code.
Changed some debugging code.
Updated preg_match_all parameters.
Remove some empty results from the array before checking.
@treffynnon
Copy link
Collaborator

Is this really an issue. I am not sure in what instance this would be useful. Please could you give some examples.

@charsleysa
Copy link
Contributor Author

This is mainly for testing that the concatenated keys PR gets properly
tested, but also ensures that all future PRs and tests are vetted for
ensuring that they strictly adhere to sequential arrays only.
On 24/01/2014 1:56 AM, "Simon Holywell" notifications@github.com wrote:

Is this really an issue. I am not sure in what instance this would be
useful. Please could you give some examples.

Reply to this email directly or view it on GitHubhttps://github.com//pull/173#issuecomment-33121252
.

@treffynnon treffynnon added this to the 1.5.0 milestone Mar 27, 2014
@treffynnon
Copy link
Collaborator

Merged into develop with thanks!

@treffynnon treffynnon closed this Apr 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants