-
Notifications
You must be signed in to change notification settings - Fork 280
adds support for other paramstyles, disables logging by default when Flask not running #73
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
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3a846bb
preparing to disable logging by default
dmalan 8af3fd4
adding support for positional parameters
dmalan e936766
WIP
dmalan 9b0d72d
added injection test
dmalan 2cc2f0c
enabling logging for Flask
dmalan 15b1b7e
fixed SQL return values
dmalan d29c5ca
fixed tests, tidied checking
dmalan 8034937
fixed comment
dmalan 8dac6ca
re-capitalized tests
dmalan 640b4e2
added support for IN
dmalan 268a504
added test
dmalan 3408e7e
remove 2.7 tests
a4f2dfa
add sqlite test cases
951f11e
PR feedback, more error-checking
dmalan 20cc461
addressed more comments
dmalan 260533c
added creation of test.db and test1.db
dmalan 307b95d
added more error-checking
dmalan 4d11422
uncomment test cases
4ef94a2
added, removed text()
dmalan 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,30 @@ | ||
language: python | ||
python: | ||
- '2.7' | ||
- '3.6' | ||
python: '3.6' | ||
branches: | ||
except: "/^v\\d/" | ||
services: | ||
- mysql | ||
- postgresql | ||
- mysql | ||
- postgresql | ||
install: | ||
- python setup.py install | ||
- pip install mysqlclient | ||
- pip install psycopg2-binary | ||
- python setup.py install | ||
- pip install mysqlclient | ||
- pip install psycopg2-binary | ||
before_script: | ||
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;' | ||
- psql -c 'create database test;' -U postgres | ||
- touch test.db test1.db | ||
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;' | ||
- psql -c 'create database test;' -U postgres | ||
- touch test.db test1.db | ||
script: python tests/sql.py | ||
after_script: rm -f test.db | ||
jobs: | ||
include: | ||
- stage: deploy | ||
python: '3.6' | ||
install: skip | ||
before_script: skip | ||
script: skip | ||
deploy: | ||
- provider: script | ||
script: 'curl --fail --data "{ \"tag_name\": \"v$(python setup.py --version)\", | ||
\"target_commitish\": \"$TRAVIS_COMMIT\", \"name\": \"v$(python setup.py --version)\" | ||
}" --user bot50:$GITHUB_TOKEN https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases' | ||
on: | ||
branch: master | ||
- provider: pypi | ||
user: "$PYPI_USERNAME" | ||
password: "$PYPI_PASSWORD" | ||
on: | ||
branch: master | ||
deploy: | ||
- provider: script | ||
script: 'curl --fail --data "{ \"tag_name\": \"v$(python setup.py --version)\", | ||
\"target_commitish\": \"$TRAVIS_COMMIT\", \"name\": \"v$(python setup.py --version)\" | ||
}" --user bot50:$GITHUB_TOKEN https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases' | ||
on: | ||
branch: master | ||
- provider: pypi | ||
user: "$PYPI_USERNAME" | ||
password: "$PYPI_PASSWORD" | ||
on: master | ||
notifications: | ||
slack: | ||
secure: lJklhcBVjDT6KzUNa3RFHXdXSeH7ytuuGrkZ5ZcR72CXMoTf2pMJTzPwRLWOp6lCSdDC9Y8MWLrcg/e33dJga4Jlp9alOmWqeqesaFjfee4st8vAsgNbv8/RajPH1gD2bnkt8oIwUzdHItdb5AucKFYjbH2g0d8ndoqYqUeBLrnsT1AP5G/Vi9OHC9OWNpR0FKaZIJE0Wt52vkPMH3sV2mFeIskByPB+56U5y547mualKxn61IVR/dhYBEtZQJuSvnwKHPOn9Pkk7cCa+SSSeTJ4w5LboY8T17otaYNauXo46i1bKIoGiBcCcrJyQHHiPQmcq/YU540MC5Wzt9YXUycmJzRi347oyQeDee27wV3XJlWMXuuhbtJiKCFny7BTQ160VATlj/dbwIzN99Ra6/BtTumv/6LyTdKIuVjdAkcN8dtdDW1nlrQ29zuPNCcXXzJ7zX7kQaOCUV1c2OrsbiH/0fE9nknUORn97txqhlYVi0QMS7764wFo6kg0vpmFQRkkQySsJl+TmgcZ01AlsJc2EMMWVuaj9Af9JU4/4yalqDiXIh1fOYYUZnLfOfWS+MsnI+/oLfqJFyMbrsQQTIjs+kTzbiEdhd2R4EZgusU/xRFWokS2NAvahexrRhRQ6tpAI+LezPrkNOR3aHiykBf+P9BkUa0wPp6V2Ayc6q0= |
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
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
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.