Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
b1ca941
Replace apigen with Sami in CI
williamdes Jun 5, 2018
981c499
PHPDOC fix
williamdes Jun 5, 2018
ffd2d89
Translated using Weblate (Uyghur)
toghraq Jun 7, 2018
e096412
Merge pull request #195 from williamdes/issue-194-apigen
nijel Jun 9, 2018
a7b6b8c
Translated using Weblate (Portuguese)
TheSpartaPT Jun 25, 2018
4ab8ce3
Translated using Weblate (Vietnamese)
Jun 29, 2018
a829e1e
Create or replace view query not working issue solved
aswaniprakash Jul 3, 2018
78e9255
Translated using Weblate (Romanian)
dancaragea Jul 20, 2018
a58c5ff
Translated using Weblate (Romanian)
dancaragea Jul 24, 2018
018a6b6
Translated using Weblate (Chinese (Simplified))
popcorner Aug 1, 2018
9466376
Translated using Weblate (Chinese (Simplified))
popcorner Aug 1, 2018
4a2a868
Translated using Weblate (Thai)
jaideejung007 Aug 16, 2018
dad2a0b
Translated using Weblate (Sinhala)
MenukaIshan Sep 30, 2018
472c998
Translated using Weblate (Portuguese)
R-Ayalos Oct 5, 2018
a47a425
Translated using Weblate (Portuguese)
SantosSi Oct 7, 2018
cf8049c
Merge pull request #198 from aswaniprakash/create_or_replace
MauricioFauth Oct 9, 2018
20ed994
Add ChangeLog entry for #198
MauricioFauth Oct 9, 2018
1a18d1c
Add Support for CASE ... END AS alias
mostertb Oct 13, 2018
f2127a1
Handle CASE alias without AS
mostertb Oct 13, 2018
f72a44c
Explicitly handle case where keyword encountered before alias value f…
mostertb Oct 13, 2018
9cc6cc7
Handle end of statement while parsing CASE alias
mostertb Oct 13, 2018
6f76011
Add tests for parsing of CASE expressions with aliases
mostertb Oct 13, 2018
61343f6
Add component build tests from CASE expressions with aliases
mostertb Oct 13, 2018
bf4ad3d
Apply php-cs-fixer formatting changes
mostertb Oct 13, 2018
a156028
Prepare to release version 4.2.5
ibennetch Oct 31, 2018
8e37bb3
Prepare for next release
ibennetch Oct 31, 2018
513ed81
Cleanup and improve readability:
bperel Nov 26, 2018
ef7968e
Use triple (in)equalities when type compatibility is ensured
bperel Nov 26, 2018
2d0b364
Fix tests
bperel Nov 26, 2018
2692733
Translated using Weblate (Chinese (Traditional))
wwycheuk Nov 28, 2018
87c68a4
Translated using Weblate (Norwegian Bokmål)
Nov 27, 2018
ad6a0ce
Translated using Weblate (Gujarati)
hardikjogadia Dec 4, 2018
4b3684f
Fix unused variable
bperel Dec 9, 2018
5e8dbcf
Merge pull request #206 from bperel/cleanup
devenbansod Dec 9, 2018
37df692
Add support for PURGE statements
devenbansod Dec 20, 2018
64ffe88
Add tests for builder of CREATE or REPLACE VIEW
devenbansod Dec 20, 2018
64c999b
Merge pull request #208 from devenbansod/feature/purge-statement
williamdes Dec 20, 2018
d046cb2
Fix building of RenameStatement
devenbansod Dec 20, 2018
688b7a6
Merge pull request #209 from devenbansod/test/create-replace-view
williamdes Dec 20, 2018
1b64402
Merge pull request #210 from devenbansod/fix/204
devenbansod Dec 21, 2018
e135782
Add support for end options in SET statement
devenbansod Dec 21, 2018
a1e9196
Merge pull request #211 from devenbansod/fix/190
devenbansod Dec 21, 2018
aab0960
Fix: Add missing support for STRAIGHT_JOIN
devenbansod Dec 21, 2018
d46d5cd
Merge pull request #213 from devenbansod/fix/196
devenbansod Dec 21, 2018
98ccf73
Throw a parse error if a comma missing between two alter operations
devenbansod Dec 21, 2018
e07403c
Merge pull request #212 from devenbansod/fix/189
devenbansod Dec 21, 2018
db91c1d
Throw a parser error on extraneous comma in UPDATE statement
devenbansod Dec 22, 2018
09faf92
Add support for LOCK and UNLOCK Statements
devenbansod Dec 22, 2018
af9b143
Merge pull request #214 from devenbansod/fix/160
devenbansod Dec 22, 2018
60886eb
Merge pull request #215 from devenbansod/fix/180
devenbansod Dec 22, 2018
b422d7d
Add support for INDEX hints in SELECT statement
devenbansod Dec 22, 2018
6bbaebf
Merge pull request #216 from devenbansod/fix/199
devenbansod Dec 23, 2018
84d4cc4
Translated using Weblate (French)
tmtisfree Dec 22, 2018
e5a56d8
Merge branch 'origin/master' into Weblate.
weblate Dec 23, 2018
12b1e99
Add missing ChangeLog entries
devenbansod Dec 23, 2018
e497100
Merge pull request #217 from devenbansod/task/add-changelog-entries
ibennetch Dec 24, 2018
c8febda
Merge pull request #203 from mostertb/case-alias
ibennetch Dec 24, 2018
66ef802
Add issue numbers and improve CHANGELOG entries
ibennetch Dec 25, 2018
b79984b
CHANGELOG dates for 4.3.0 release
ibennetch Dec 25, 2018
63527f4
Prepare CHANGELOG for next release
ibennetch Dec 25, 2018
33dce6f
Fix incorrect error on DEFAULT keyword in ALTER operation
devenbansod Jan 3, 2019
f1623b0
Add ChangeLog for Issue 218
devenbansod Jan 3, 2019
5d6274c
Merge pull request #219 from devenbansod/fix/218
devenbansod Jan 5, 2019
0eb16ef
Prepare to release 4.3.1
ibennetch Jan 5, 2019
34fe5fb
Prepare for next release
ibennetch Jan 5, 2019
ab691fa
Translated using Weblate (Norwegian Bokmål)
comradekingu Jan 6, 2019
6e83a03
Rename phpunit.xml to phpunit.xml.dist
MauricioFauth Jan 8, 2019
591608f
Fix phpunit config name on Travis
MauricioFauth Jan 8, 2019
2941ff6
Bump minimum version to PHP 7.1
MauricioFauth Jan 8, 2019
98a493a
Merge pull request #220 from mauriciofauth/php71
MauricioFauth Jan 8, 2019
2842754
Create CODE_OF_CONDUCT.md
MauricioFauth Jan 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ coverage.xml
*~
.php_cs.cache
*sw[op]
phpunit.xml
29 changes: 10 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,24 @@ language: php
dist: trusty

php:
- "5.4"
- "5.5"
- "5.6"
- "7.0"
- "7.1"
- "7.2"
- "hhvm-3.12"
- "hhvm-3.18"
- "hhvm-3.24"
- "nightly"
- 7.1
- 7.2
- 7.3
- nightly

matrix:
fast_finish: true
allow_failures:
- php: "nightly"
- php: nightly
include:
- php: "7.1"
- php: 7.2
env: DOCS=yes
- php: "7.1"
- php: 7.1
env: REQUIRE="phpmyadmin/motranslator:^3.0"
- dist: precise
php: "5.3"

sudo: false

install:
- if [ "$TRAVIS_PHP_VERSION" = "5.3" ] ; then sed -i '/apigen/D' composer.json ; fi
- if [ -n "$REQUIRE" ] ; then composer require "$REQUIRE" ; fi
- composer install

Expand All @@ -40,6 +31,6 @@ cache:
directories:
- $HOME/.composer/cache

script:
- if [ "$DOCS" != "yes" ] ; then ./vendor/bin/phpunit --configuration phpunit.xml ; fi
- if [ "$DOCS" = "yes" ] ; then ./vendor/bin/apigen generate --destination doc --source src/ ; fi
script:
- if [ "$DOCS" != "yes" ] ; then ./vendor/bin/phpunit --configuration phpunit.xml.dist ; fi
- if [ "$DOCS" = "yes" ] ; then ./vendor/bin/sami.php --no-interaction update ./tools/sami-config.php ; fi
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

## [Unreleased]

* Drop support for PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0 and HHVM

## [4.3.1] - 2019-01-05

* Fixed incorrect error thrown on DEFAULT keyword in ALTER statement (#218)

## [4.3.0] - 2018-12-25

* Add support for aliases on CASE expressions (#162 and #192)
* Add support for INDEX hints in SELECT statement (#199)
* Add support for LOCK and UNLOCK TABLES statement (#180)
* Add detection of extraneous comma in UPDATE statement (#160)
* Add detection of a missing comma between two ALTER operations (#189)
* Add missing support for STRAIGHT_JOIN (#196)
* Add support for end options in SET statement (#190)
* Fix building of RENAME statements (#201)
* Add support for PURGE statements (#207)
* Add support for COLLATE keyword (#190)

## [4.2.5] - 2018-10-31

* Fix issue with CREATE OR REPLACE VIEW.

## [4.2.4] - 2017-12-06

* Fix parsing of CREATE TABLE with per field COLLATE.
Expand Down Expand Up @@ -312,4 +335,3 @@ __Breaking changes:__
## [1.0.0] - 2015-08-20

* First release of this library.

76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"source": "https://github.com/phpmyadmin/sql-parser"
},
"require": {
"php": ">=5.3.0",
"php": "^7.1",
"symfony/polyfill-mbstring": "^1.3"
},
"require-dev": {
"apigen/apigen": "^4.1",
"sami/sami": "^4.0",
"phpunit/php-code-coverage": "*",
"phpunit/phpunit": "~4.8 || ~5.7 || ~6.5"
"phpunit/phpunit": "^7.4"
},
"conflict": {
"phpmyadmin/motranslator": "<3.0"
Expand Down
Binary file modified locale/fr/LC_MESSAGES/sqlparser.mo
Binary file not shown.
10 changes: 5 additions & 5 deletions locale/fr/LC_MESSAGES/sqlparser.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ msgstr ""
"Project-Id-Version: phpMyAdmin-docs 4.0.0-dev\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2017-08-21 12:54+0200\n"
"PO-Revision-Date: 2017-09-03 19:37+0000\n"
"PO-Revision-Date: 2018-12-23 05:01+0000\n"
"Last-Translator: tmtisfree <[email protected]>\n"
"Language-Team: French <https://hosted.weblate.org/projects/phpmyadmin/sql-"
"parser/fr/>\n"
"Language-Team: French <https://hosted.weblate.org/projects/phpmyadmin/"
"sql-parser/fr/>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 2.17-dev\n"
"X-Generator: Weblate 3.4-dev\n"

#: src/Component.php:43 src/Component.php:63
msgid "Not implemented yet."
Expand Down Expand Up @@ -184,7 +184,7 @@ msgstr "Mot clé non reconnu."

#: src/Statement.php:377
msgid "Keyword at end of statement."
msgstr "Mot-clé à la fin de l'énoncé."
msgstr "Mot clé à la fin de l'énoncé."

#: src/Statement.php:503
msgid "Unexpected ordering of clauses."
Expand Down
Binary file modified locale/gu/LC_MESSAGES/sqlparser.mo
Binary file not shown.
39 changes: 20 additions & 19 deletions locale/gu/LC_MESSAGES/sqlparser.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,43 @@ msgstr ""
"Project-Id-Version: SQL parser 0\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2017-08-21 12:54+0200\n"
"PO-Revision-Date: 2016-01-08 17:45+0000\n"
"Last-Translator: Nijraj Gelani <gelaninijraj@gmail.com>\n"
"PO-Revision-Date: 2018-12-05 14:09+0000\n"
"Last-Translator: Hardik Jogadia <hardikbjogadia@gmail.com>\n"
"Language-Team: Gujarati <https://hosted.weblate.org/projects/phpmyadmin/"
"master/gu/>\n"
"sql-parser/gu/>\n"
"Language: gu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 2.5-dev\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.4-dev\n"

#: src/Component.php:43 src/Component.php:63
msgid "Not implemented yet."
msgstr ""
msgstr "હજુ સુધી અમલમાં નથી મુકાયુ."

#: src/Components/AlterOperation.php:241 src/Statement.php:334
msgid ""
"A new statement was found, but no delimiter between it and the previous one."
msgstr ""
"નવો નિવેદન મળ્યો હતો, પરંતુ તે અને પાછલા એક વચ્ચે કોઈ વિભાજક અક્ષરો નથી મળયા."

#: src/Components/AlterOperation.php:253
msgid "Unrecognized alter operation."
msgstr ""
msgstr "આ ફેરફાર માન્ય નથી."

#: src/Components/Array2d.php:88
#, php-format
msgid "%1$d values were expected, but found %2$d."
msgstr ""
msgstr "%1$d આ પ્રકાર ની values અપેક્ષિત હતી, પણ મળ્યું %2$d."

#: src/Components/Array2d.php:111
msgid "An opening bracket followed by a set of values was expected."
msgstr ""

#: src/Components/ArrayObj.php:114 src/Components/CreateDefinition.php:201
msgid "An opening bracket was expected."
msgstr ""
msgstr "ઓપનિંગ બ્રેકેટ અપેક્ષિત હતું."

#: src/Components/CaseExpression.php:135 src/Components/CaseExpression.php:164
#: src/Components/CaseExpression.php:176 src/Components/CaseExpression.php:190
Expand All @@ -58,11 +59,11 @@ msgstr ""
#: src/Statements/ReplaceStatement.php:155
#: src/Statements/ReplaceStatement.php:182
msgid "Unexpected keyword."
msgstr ""
msgstr "અનપેક્ષિત કીવર્ડ."

#: src/Components/CaseExpression.php:199
msgid "Unexpected end of CASE expression"
msgstr ""
msgstr "અનપેક્ષિત અંત CASE નિવેદન નો"

#: src/Components/CreateDefinition.php:223
msgid ""
Expand All @@ -76,15 +77,15 @@ msgstr ""

#: src/Components/CreateDefinition.php:270
msgid "A comma or a closing bracket was expected."
msgstr ""
msgstr "અલ્પવિરામ અથવા કલોસિંગ બ્રેકેટની અપેક્ષા હતી."

#: src/Components/CreateDefinition.php:286
msgid "A closing bracket was expected."
msgstr ""
msgstr "કલોસિંગ બ્રેકેટની અપેક્ષા હતી."

#: src/Components/DataType.php:123
msgid "Unrecognized data type."
msgstr ""
msgstr "અનપેક્ષિત ડેટા પ્રકાર."

#: src/Components/Expression.php:244 src/Components/Expression.php:394
msgid "An alias was expected."
Expand All @@ -97,15 +98,15 @@ msgstr ""

#: src/Components/Expression.php:364
msgid "Unexpected dot."
msgstr ""
msgstr "અનપેક્ષિત પૂર્ણ વિરામ."

#: src/Components/ExpressionArray.php:102
msgid "An expression was expected."
msgstr ""
msgstr "નિવેદનની અપેક્ષા હતી."

#: src/Components/Limit.php:86 src/Components/Limit.php:108
msgid "An offset was expected."
msgstr ""
msgstr "ઓફસેટ અપેક્ષિત હતી."

#: src/Components/OptionsArray.php:143
#, php-format
Expand All @@ -114,11 +115,11 @@ msgstr ""

#: src/Components/RenameOperation.php:109
msgid "The old name of the table was expected."
msgstr ""
msgstr "ટેબલનુ જૂનું નામ અપેક્ષિત હતુ."

#: src/Components/RenameOperation.php:119
msgid "Keyword \"TO\" was expected."
msgstr ""
msgstr "કીવર્ડ \"TO\" અપેક્ષિત હતો."

#: src/Components/RenameOperation.php:135
msgid "The new name of the table was expected."
Expand Down
Binary file modified locale/nb/LC_MESSAGES/sqlparser.mo
Binary file not shown.
Loading