Skip to content

Commit e4c0b58

Browse files
authored
Merge pull request #1 from phpmyadmin/master
From Original
2 parents 0302f26 + 2842754 commit e4c0b58

File tree

187 files changed

+2302
-929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+2302
-929
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ coverage.xml
77
*~
88
.php_cs.cache
99
*sw[op]
10+
phpunit.xml

.travis.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,24 @@ language: php
33
dist: trusty
44

55
php:
6-
- "5.4"
7-
- "5.5"
8-
- "5.6"
9-
- "7.0"
10-
- "7.1"
11-
- "7.2"
12-
- "hhvm-3.12"
13-
- "hhvm-3.18"
14-
- "hhvm-3.24"
15-
- "nightly"
6+
- 7.1
7+
- 7.2
8+
- 7.3
9+
- nightly
1610

1711
matrix:
1812
fast_finish: true
1913
allow_failures:
20-
- php: "nightly"
14+
- php: nightly
2115
include:
22-
- php: "7.1"
16+
- php: 7.2
2317
env: DOCS=yes
24-
- php: "7.1"
18+
- php: 7.1
2519
env: REQUIRE="phpmyadmin/motranslator:^3.0"
26-
- dist: precise
27-
php: "5.3"
2820

2921
sudo: false
3022

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

@@ -40,6 +31,6 @@ cache:
4031
directories:
4132
- $HOME/.composer/cache
4233

43-
script:
44-
- if [ "$DOCS" != "yes" ] ; then ./vendor/bin/phpunit --configuration phpunit.xml ; fi
45-
- if [ "$DOCS" = "yes" ] ; then ./vendor/bin/apigen generate --destination doc --source src/ ; fi
34+
script:
35+
- if [ "$DOCS" != "yes" ] ; then ./vendor/bin/phpunit --configuration phpunit.xml.dist ; fi
36+
- if [ "$DOCS" = "yes" ] ; then ./vendor/bin/sami.php --no-interaction update ./tools/sami-config.php ; fi

CHANGELOG.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
## [Unreleased]
44

5+
* Drop support for PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0 and HHVM
6+
7+
## [4.3.1] - 2019-01-05
8+
9+
* Fixed incorrect error thrown on DEFAULT keyword in ALTER statement (#218)
10+
11+
## [4.3.0] - 2018-12-25
12+
13+
* Add support for aliases on CASE expressions (#162 and #192)
14+
* Add support for INDEX hints in SELECT statement (#199)
15+
* Add support for LOCK and UNLOCK TABLES statement (#180)
16+
* Add detection of extraneous comma in UPDATE statement (#160)
17+
* Add detection of a missing comma between two ALTER operations (#189)
18+
* Add missing support for STRAIGHT_JOIN (#196)
19+
* Add support for end options in SET statement (#190)
20+
* Fix building of RENAME statements (#201)
21+
* Add support for PURGE statements (#207)
22+
* Add support for COLLATE keyword (#190)
23+
24+
## [4.2.5] - 2018-10-31
25+
26+
* Fix issue with CREATE OR REPLACE VIEW.
27+
528
## [4.2.4] - 2017-12-06
629

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

314337
* First release of this library.
315-

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"source": "https://github.com/phpmyadmin/sql-parser"
1717
},
1818
"require": {
19-
"php": ">=5.3.0",
19+
"php": "^7.1",
2020
"symfony/polyfill-mbstring": "^1.3"
2121
},
2222
"require-dev": {
23-
"apigen/apigen": "^4.1",
23+
"sami/sami": "^4.0",
2424
"phpunit/php-code-coverage": "*",
25-
"phpunit/phpunit": "~4.8 || ~5.7 || ~6.5"
25+
"phpunit/phpunit": "^7.4"
2626
},
2727
"conflict": {
2828
"phpmyadmin/motranslator": "<3.0"

locale/fr/LC_MESSAGES/sqlparser.mo

-37 Bytes
Binary file not shown.

locale/fr/LC_MESSAGES/sqlparser.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ msgstr ""
44
"Project-Id-Version: phpMyAdmin-docs 4.0.0-dev\n"
55
"Report-Msgid-Bugs-To: [email protected]\n"
66
"POT-Creation-Date: 2017-08-21 12:54+0200\n"
7-
"PO-Revision-Date: 2017-09-03 19:37+0000\n"
7+
"PO-Revision-Date: 2018-12-23 05:01+0000\n"
88
"Last-Translator: tmtisfree <[email protected]>\n"
9-
"Language-Team: French <https://hosted.weblate.org/projects/phpmyadmin/sql-"
10-
"parser/fr/>\n"
9+
"Language-Team: French <https://hosted.weblate.org/projects/phpmyadmin/"
10+
"sql-parser/fr/>\n"
1111
"Language: fr\n"
1212
"MIME-Version: 1.0\n"
1313
"Content-Type: text/plain; charset=UTF-8\n"
1414
"Content-Transfer-Encoding: 8bit\n"
1515
"Plural-Forms: nplurals=2; plural=n > 1;\n"
16-
"X-Generator: Weblate 2.17-dev\n"
16+
"X-Generator: Weblate 3.4-dev\n"
1717

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

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

189189
#: src/Statement.php:503
190190
msgid "Unexpected ordering of clauses."

locale/gu/LC_MESSAGES/sqlparser.mo

1.95 KB
Binary file not shown.

locale/gu/LC_MESSAGES/sqlparser.po

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,43 @@ msgstr ""
88
"Project-Id-Version: SQL parser 0\n"
99
"Report-Msgid-Bugs-To: [email protected]\n"
1010
"POT-Creation-Date: 2017-08-21 12:54+0200\n"
11-
"PO-Revision-Date: 2016-01-08 17:45+0000\n"
12-
"Last-Translator: Nijraj Gelani <gelaninijraj@gmail.com>\n"
11+
"PO-Revision-Date: 2018-12-05 14:09+0000\n"
12+
"Last-Translator: Hardik Jogadia <hardikbjogadia@gmail.com>\n"
1313
"Language-Team: Gujarati <https://hosted.weblate.org/projects/phpmyadmin/"
14-
"master/gu/>\n"
14+
"sql-parser/gu/>\n"
1515
"Language: gu\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
19-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
20-
"X-Generator: Weblate 2.5-dev\n"
19+
"Plural-Forms: nplurals=2; plural=n > 1;\n"
20+
"X-Generator: Weblate 3.4-dev\n"
2121

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

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

3132
#: src/Components/AlterOperation.php:253
3233
msgid "Unrecognized alter operation."
33-
msgstr ""
34+
msgstr "આ ફેરફાર માન્ય નથી."
3435

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

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

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

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

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

6768
#: src/Components/CreateDefinition.php:223
6869
msgid ""
@@ -76,15 +77,15 @@ msgstr ""
7677

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

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

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

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

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

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

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

110111
#: src/Components/OptionsArray.php:143
111112
#, php-format
@@ -114,11 +115,11 @@ msgstr ""
114115

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

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

123124
#: src/Components/RenameOperation.php:135
124125
msgid "The new name of the table was expected."

locale/nb/LC_MESSAGES/sqlparser.mo

2.59 KB
Binary file not shown.

0 commit comments

Comments
 (0)