Skip to content
Closed

aaa #315

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
408 commits
Select commit Hold shift + click to select a range
ac785a4
fixes #125 - added values as a column name
wumpz Apr 16, 2015
64b22e4
fixes #126 - allows brackets around select
wumpz Apr 22, 2015
c4f24e6
Update README.md
wumpz Apr 23, 2015
aa2913d
fixes #128
wumpz Apr 27, 2015
70f5fee
Merge origin/master
wumpz Apr 27, 2015
45132a7
fixes #129
wumpz Apr 30, 2015
55b8e7a
wumpz May 7, 2015
db4a27e
fixes #90
wumpz May 7, 2015
536ba9d
fixes #90
wumpz May 7, 2015
35164e5
fixes #69
wumpz May 10, 2015
1603487
fixes #69
wumpz May 10, 2015
fc1bc37
[maven-release-plugin] prepare release jsqlparser-0.9.3
wumpz May 12, 2015
2eb4243
[maven-release-plugin] prepare for next development iteration
wumpz May 12, 2015
3563c21
wumpz May 12, 2015
adca3ef
group_concat started
wumpz May 20, 2015
3aaf11d
fixes #72
wumpz May 21, 2015
8b54061
fixes #72
wumpz May 21, 2015
d99e603
fixes #134
wumpz May 21, 2015
5adebee
fixes #136
tejksat May 24, 2015
eab6098
Merge pull request #137 from tejksat/master
wumpz May 24, 2015
594705a
fixes #134 - preserve order of query
wumpz May 24, 2015
d9f5fef
simple jjtree start
wumpz May 24, 2015
e594e59
simple jjtree start
wumpz May 27, 2015
d66a93a
astnodes for columns and tables
wumpz May 29, 2015
edd0c76
root nodes established but not linked
wumpz May 31, 2015
71305d9
root nodes established but not linked
wumpz May 31, 2015
5123fe2
wumpz Jun 5, 2015
b78ed4b
fixes #141
wumpz Jun 5, 2015
3d34037
fixes #142
wumpz Jun 5, 2015
f71c307
fixes #143
wumpz Jun 5, 2015
4d2a0a1
fixes #143
wumpz Jun 5, 2015
94c6355
updated some plugin versions
wumpz Jun 5, 2015
348fd7f
completed ExpressionVisitorAdapter
wumpz Jun 5, 2015
cf703d8
completed ExpressionVisitorAdapter
wumpz Jun 5, 2015
8ec0b19
completed ExpressionVisitorAdapter
wumpz Jun 7, 2015
1d71c51
wumpz Jun 8, 2015
5858aa7
coveralls
wumpz Jun 9, 2015
a17d628
wumpz Jun 9, 2015
d561d8a
Update README.md
wumpz Jun 9, 2015
1849c5b
Exceptions skiped during coverage tests
wumpz Jun 10, 2015
fc076e8
completed any and all comparisions
wumpz Jun 24, 2015
e425dc2
null toString used
wumpz Jun 24, 2015
a0e3729
Merge origin/master
wumpz Jun 24, 2015
ab2b2c0
fixes #138 and AnyComparisionExpression
wumpz Jul 1, 2015
4471653
updated readme
wumpz Jul 1, 2015
cc4a5fa
corrected deparser
wumpz Jul 1, 2015
7e52dd7
reincluded Apache 2.0 license
wumpz Jul 2, 2015
83899f8
reincluded Apache 2.0 license
wumpz Jul 2, 2015
978b60e
fixes #146
wumpz Jul 3, 2015
23c19a5
Fix inline usage of foreign keys in CREATE TABLE statements
weiznich Jul 9, 2015
703673f
Merge pull request #148 from weiznich/fix_inline_foreign_keys
wumpz Jul 12, 2015
d2b0706
fixes #149
wumpz Jul 15, 2015
5b3ec5a
fixes #150
wumpz Jul 15, 2015
157eebf
wumpz Jul 15, 2015
001d665
test for #154 included
wumpz Jul 23, 2015
4a33d8c
Implement support for "SELECT SKIP <ROWCOUNT> FIRST <ROWCOUNT>..." co…
matthiasblaesing Jul 25, 2015
e889cf3
added another testcase for #154
wumpz Jul 29, 2015
6f2a132
wumpz Jul 30, 2015
b3d76e7
Update README.md
wumpz Jul 31, 2015
593e441
Merge pull request #155 from matthiasblaesing/informix_skip_first
wumpz Aug 1, 2015
752db79
Merge origin/master
wumpz Aug 1, 2015
0fc8e29
simplified lookahead
wumpz Aug 1, 2015
a44acb7
simplified lookahead
wumpz Aug 1, 2015
9e77b6b
Add support for variable support to "SELECT SKIP <ROWCOUNT> FIRST <RO…
matthiasblaesing Aug 2, 2015
e91e074
no message
wumpz Aug 5, 2015
0cb7484
Merge pull request #158 from matthiasblaesing/informix_skip_first
wumpz Aug 5, 2015
768f7cb
Merge origin/master
wumpz Aug 5, 2015
432c0ef
fixed #160
wumpz Aug 7, 2015
e3b73a3
fixed #162
wumpz Aug 7, 2015
463817b
fixed #162
wumpz Aug 7, 2015
c244ccb
fixes #166
wumpz Sep 3, 2015
bf06e6c
fixes #165
wumpz Sep 3, 2015
2810130
fixes #165
wumpz Sep 3, 2015
e902410
wumpz Sep 7, 2015
9ab7261
[maven-release-plugin] prepare release jsqlparser-0.9.4
wumpz Sep 13, 2015
effaabe
[maven-release-plugin] prepare for next development iteration
wumpz Sep 13, 2015
cf9bf84
fixes #170
wumpz Sep 13, 2015
0e51dac
fixes #77
wumpz Sep 16, 2015
71d9fd9
fixes #167
wumpz Sep 16, 2015
57f3099
fixes #167
wumpz Sep 16, 2015
03a4fc7
wumpz Sep 16, 2015
ae2c87f
wumpz Sep 16, 2015
ad57ae6
Merge origin/master
wumpz Sep 20, 2015
c690f7f
fixes #172
wumpz Sep 22, 2015
6ea74fd
Merge origin/master
wumpz Sep 22, 2015
8d8c0e4
merge impl started
wumpz Sep 24, 2015
1fb426e
wumpz Oct 1, 2015
9999c50
fixes #177
wumpz Oct 1, 2015
fb4d43b
fixes #176
wumpz Oct 1, 2015
c6e9389
fixes #176
wumpz Oct 1, 2015
af5a090
simple merge implementation
wumpz Oct 1, 2015
13c343a
Merge merge-impl
wumpz Oct 1, 2015
bc4bc9e
simple merge implementation
wumpz Oct 1, 2015
8d419d3
fixes #174
wumpz Oct 6, 2015
da1e074
fixes #174
wumpz Oct 6, 2015
cb2674e
fixes #178
bgaborg Oct 7, 2015
36379b2
added restrict and set null for alter statement
wumpz Oct 7, 2015
11dbda3
fixes #178, merged upstream
bgaborg Oct 8, 2015
b39f8da
Merge pull request #179 from bgaborg/master
wumpz Oct 8, 2015
b6f71e6
resolved choice conflict
wumpz Oct 8, 2015
f7f8d03
Added OracleHint class, grammar and model support, tests
valdasraps Oct 13, 2015
7b4feb0
Refactored Oracle Hint tests, added set selects
valdasraps Oct 13, 2015
41cbd7f
Improved required coverage
valdasraps Oct 14, 2015
5598bbd
Merge pull request #183 from valdasraps/master
wumpz Oct 19, 2015
e570a91
updated readme
wumpz Oct 19, 2015
283b28a
Merge remote-tracking branch 'refs/remotes/JSQLParser/master' into fi…
schweighart Oct 20, 2015
58dd28a
Support for alter table drop column/constraint
schweighart Oct 20, 2015
a369537
#182
wumpz Oct 21, 2015
0bb2358
fixes #180
wumpz Oct 21, 2015
41630ca
Merge pull request #185 from schweighart/fix-alter-drop
wumpz Oct 27, 2015
ad0dd23
alter table support improved
wumpz Oct 27, 2015
44091c6
fixes #181, added drop deparser
wumpz Nov 9, 2015
7d7fae8
support insert ... on duplicate key update...
Nov 13, 2015
3c6057b
replaceDeParser parser itemList
Nov 13, 2015
18cf905
Merge pull request #192 from packageOk/master
wumpz Nov 14, 2015
2fddf8c
fixes #192, fixes #191
wumpz Nov 14, 2015
a97e9c9
corrected lookahead
wumpz Nov 17, 2015
00c1869
support INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] ...
Nov 18, 2015
c9c3481
Merge pull request #1 from JSQLParser/master
packageOk Nov 18, 2015
f86fab7
Merge remote-tracking branch 'origin/master'
Nov 18, 2015
f1c9835
fixes #194
wumpz Nov 18, 2015
f1d2136
wumpz Nov 20, 2015
ce1d627
Merge origin/master
wumpz Nov 20, 2015
975cddf
corrects parsing error
wumpz Nov 20, 2015
a31333a
Issue 195:
chiastic-security Nov 24, 2015
6f89332
Merge pull request #197 from chiastic-security/update-order-by-limit-…
wumpz Nov 25, 2015
ab1ad25
fixes #195
wumpz Nov 25, 2015
a90c745
Merge pull request #193 from packageOk/master
wumpz Nov 25, 2015
5d7bdb9
fixes #193
wumpz Nov 25, 2015
bb3ef61
Issue 198: add profile to ensure doclint is turned off with Java 8+. …
chiastic-security Nov 25, 2015
01d25de
wumpz Nov 26, 2015
ccfe843
Merge pull request #199 from chiastic-security/master
wumpz Nov 26, 2015
89c025b
Merge origin/master
wumpz Nov 26, 2015
1b842f8
increased version of maven-javadoc-plugin
wumpz Nov 26, 2015
830be49
jdk 8 build included into travis
wumpz Nov 27, 2015
1d63481
replaced size() with isEmpty()
wumpz Dec 6, 2015
0403fdd
added support of SELECT FROM table function (h2)
Dec 7, 2015
a5a5f9e
fixed verion
ftaras Dec 7, 2015
88eddaf
added TableFunction alias suppurt
Dec 7, 2015
17371ae
TableFunction extends FunctionItem
Dec 8, 2015
78b601c
Merge pull request #202 from ftaras/master
wumpz Dec 9, 2015
0efc0fe
Merge origin/master
wumpz Dec 9, 2015
8036edd
corrected lookahead for tablefunctions
wumpz Dec 9, 2015
f5b515b
fixes #151
wumpz Jan 6, 2016
9dcaaee
Support of mysql create statements with timestamp column with ON UPDA…
Jan 24, 2016
ce2078a
Merge pull request #209 from pabloa/master
wumpz Jan 26, 2016
ed3b542
squid:S1213 The members of an interface declaration or class should a…
georgekankava Jan 27, 2016
ac0ee9a
squid:S1192 String literals should not be duplicated
georgekankava Jan 27, 2016
ff0208a
squid:CommentedOutCodeLine Sections of code should not be "commented…
georgekankava Jan 27, 2016
5dabcb1
Merge pull request #211 from georgekankava/staging/sections-of-code-s…
wumpz Jan 28, 2016
dac9d8d
Merge pull request #212 from georgekankava/staging/string-literals-sh…
wumpz Jan 28, 2016
bcfa257
Merge pull request #213 from georgekankava/staging/the-members-of-an-…
wumpz Jan 28, 2016
a0efcba
squid:UselessParenthesesCheck - Useless parentheses around expression…
georgekankava Jan 30, 2016
e6becde
multiple code improvements 1
georgekankava Feb 1, 2016
c29565b
Added reference options foreign keys support (ON UPDATE/DELETE NO ACT…
pabloa Feb 1, 2016
de61c0b
fixes #217
wumpz Feb 2, 2016
44de7bd
Merge origin/master
wumpz Feb 2, 2016
62cf81d
Merge pull request #219 from georgekankava/staging/useless-parenthese…
wumpz Feb 2, 2016
cff5c80
Merge pull request #220 from pabloa/mysql
wumpz Feb 2, 2016
99c6580
Merge origin/master
wumpz Feb 2, 2016
36a4a0f
wumpz Feb 2, 2016
0cc809e
cleaned up some lookaheads
wumpz Feb 4, 2016
4a12dc1
fixes #221
wumpz Feb 4, 2016
579f0bc
fixes #221
wumpz Feb 4, 2016
c78aa03
improved parsing performance
wumpz Feb 9, 2016
e455ce0
Update README.md
wumpz Feb 10, 2016
af5d3cd
Multiple code improvements fix 1: squid:S1199, squid:S1066, squid:S18…
Feb 10, 2016
2cd47bc
Merge pull request #224 from georgekankava/staging/multiple-code-impr…
wumpz Feb 11, 2016
eb5d7a2
integrated changes of #225
wumpz Feb 11, 2016
4c764f5
reduces a bunch of dynamic lookaheads to fixed ones
wumpz Feb 11, 2016
04e5c8b
fixes #223
wumpz Feb 11, 2016
67b178b
fixed #226
wumpz Feb 27, 2016
905b28d
multiple code improvements: squid:S1905, squid:S00122, squid:S1155, s…
georgekankava Mar 3, 2016
f51d697
Merge pull request #229 from DevFactory/staging/multiple-code-improve…
wumpz Mar 4, 2016
1991507
fixes #230
wumpz Mar 7, 2016
a29c3ac
Merge origin/master
wumpz Mar 7, 2016
68e5b53
introduced boolean values within conditions
wumpz Mar 10, 2016
a8333bf
introduced boolean values within conditions
wumpz Mar 10, 2016
36a62e9
introduced boolean values within conditions
wumpz Mar 10, 2016
3c86352
wumpz Mar 13, 2016
ffcfe41
no message
wumpz Mar 13, 2016
56a318d
[maven-release-plugin] prepare release jsqlparser-0.9.5
wumpz Mar 13, 2016
fcd814c
[maven-release-plugin] prepare for next development iteration
wumpz Mar 13, 2016
eccd66f
update release info
wumpz Mar 14, 2016
1200960
Update README.md
wumpz Mar 17, 2016
f4b2559
fixed some whitespace differences between deparser and toString regar…
wumpz Mar 17, 2016
7e2e720
fixed #232 without correction of order of update and insert
wumpz Mar 17, 2016
8f9b2b9
fixed #228
wumpz Mar 17, 2016
3dfae9c
fixed #228
wumpz Mar 17, 2016
7f5b61e
small modifications, reduces some semantic lookaheads
wumpz Mar 29, 2016
7f8b59b
fixes #240
wumpz Apr 5, 2016
ac4a561
Update README.md
wumpz Apr 14, 2016
2204a5f
fixes #244
wumpz Apr 15, 2016
3b2ce2e
Merge origin/master
wumpz Apr 15, 2016
012874f
fixed #245
wumpz Apr 15, 2016
75be426
fixes #253
wumpz Apr 26, 2016
6ba57e5
Merge origin/master
wumpz Apr 26, 2016
d54b82b
added for update test
wumpz Apr 27, 2016
7efd58f
Corrected "MERGE INTO" parsing for more complicated statements.
davelindquist-egistix Apr 26, 2016
9886b02
Added ability to have operators like '>=' or '<=' separated by a space.
davelindquist-egistix Apr 26, 2016
5518a87
Merge pull request #256 from davelindquist-egistix/merge-into-adjustm…
wumpz Apr 28, 2016
5714516
wumpz Apr 28, 2016
0073d11
Merge pull request #258 from davelindquist-egistix/whitespace-inside-…
wumpz May 6, 2016
77ba380
updated readme
wumpz May 6, 2016
10e68b5
fixes #261
wumpz May 16, 2016
780ba12
fixes #243
wumpz May 16, 2016
bb978c4
fixes #243
wumpz May 16, 2016
fd03ad4
Add support for Hive's LEFT SEMI JOIN
nhanitvn May 19, 2016
e56fbe9
Add a test-case for Hive's LEFT SEMI JOIN
nhanitvn May 19, 2016
af38dd7
Merge pull request #269 from nhanitvn/feature/hive-left-semi-join
wumpz May 24, 2016
3bc316d
updated readme
wumpz May 24, 2016
24c874a
wumpz Jun 6, 2016
f51df4b
-- added scalar time functions of ANSI SQL
Jun 8, 2016
7768588
Merge pull request #280 from conterra/date-expr
wumpz Jun 12, 2016
50cd2cc
Merge origin/master
wumpz Jun 12, 2016
40aba73
wumpz Jun 12, 2016
f452638
Implemented:
meganwoods Jun 15, 2016
e4ae7f8
Merge pull request #281 from meganwoods/master
wumpz Jun 15, 2016
bddbe58
wumpz Jun 15, 2016
04fc3aa
wumpz Jun 15, 2016
401d279
Implemented table check constraint for named constraints.
Jun 16, 2016
8e7ba38
fixes #284
wumpz Jun 19, 2016
71259fa
Merge pull request #283 from meganwoods/master
wumpz Jun 19, 2016
0d1d1c0
wumpz Jun 19, 2016
d3d66f8
wumpz Jun 20, 2016
0164bff
Merge origin/master
wumpz Jun 20, 2016
37c8313
fixes #270
wumpz Jun 21, 2016
0f6acc2
Merge origin/master
wumpz Jun 21, 2016
b1bea02
fixes #287
wumpz Jun 21, 2016
faf8c6a
fixes #278
wumpz Jun 21, 2016
1234127
fixes #278
wumpz Jun 21, 2016
da42b1d
fixes #291
wumpz Jun 23, 2016
63fa2f6
fixes #291
wumpz Jun 23, 2016
89dafae
introduced OSGi metadata
wumpz Jun 23, 2016
c1d0b2f
fixes #293
wumpz Jun 28, 2016
b877da0
fixes #295
wumpz Jun 28, 2016
3ccca01
fixes #296
wumpz Jun 28, 2016
51b39c5
removed one lookahead and improved parenthesis parsing
wumpz Jun 30, 2016
84a8836
removed one lookahead and improved parenthesis parsing
wumpz Jun 30, 2016
04d2b65
Merge origin/master
wumpz Jun 30, 2016
60ad18e
Add a double precision cast type
opeongo Jul 11, 2016
8bfc158
The previous pull request broke the build. Besides being a keyword, …
opeongo Jul 11, 2016
1e30760
some refactoring
wumpz Jul 18, 2016
a7247eb
first try of error recovery for statement and statements
wumpz Jul 21, 2016
b63146f
Merge pull request #305 from opeongo/doubleCast
wumpz Jul 21, 2016
84bf065
wumpz Jul 21, 2016
dfd2fe5
fixes #311
wumpz Jul 22, 2016
d2ad3df
fixes #299
wumpz Jul 24, 2016
f0b350d
fixes #292
wumpz Jul 24, 2016
59f7ec2
test for issue 265
wumpz Jul 24, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
*.iml

*.jj~
*.*~
*.java~
*.yml~
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: java
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8

after_success:
- mvn clean cobertura:cobertura coveralls:report
251 changes: 41 additions & 210 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,232 +1,71 @@
# JSqlParser

## News
[![Build Status](https://travis-ci.org/JSQLParser/JSqlParser.svg?branch=master)](https://travis-ci.org/JSQLParser/JSqlParser) [![Coverage Status](https://coveralls.io/repos/JSQLParser/JSqlParser/badge.svg?branch=master)](https://coveralls.io/r/JSQLParser/JSqlParser?branch=master)

Version **0.8.9** released.
[![PayPal donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=64CCN9JJANZXA "Help this JSqlParser version using Paypal")

Version **0.8.8** released.
[![Gitter](https://badges.gitter.im/JSQLParser/JSqlParser.svg)](https://gitter.im/JSQLParser/JSqlParser?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

Due to incompatibilities using maven release with git v1.8.5 I skipped version 0.8.7. So the actual released version is **0.8.8**.
Look here for more information and examples: https://github.com/JSQLParser/JSqlParser/wiki.

Recent changes in **0.8.7-SNAPSHOT** for some alias support changes introducing some API changes.
## License

Version **0.8.6** released.
JSqlParser is dual licensed under **LGPL V2.1** and **Apache Software License, Version 2.0**.


The first release version **0.8.5** is available at maven central (**http://repo1.maven.org/maven2/**) and at repository
**https://oss.sonatype.org/content/groups/public/**.
## News

* Version **0.9.5** released.
* Please test the actual **0.9.5-SNAPSHOT**. It includes some grammar refactorings which eventually results in parse tree changes.
* Version **0.9.4** released.
* Please test the actual SNAPSHOT, if there are problems using the extended identifier token.
* Version **0.9.3** released.

The maven repository settings have been changed. Version **0.8.5-SNAPSHOT** will be the
first snapshot at sonatypes open source repository location. The following releases will
go there as well and published to maven central. To avoid problems with the original
projects artifacts the *groupid* was changed to **com.github.jsqlparser**. You will find
configuration details below.
More news can be found here: https://github.com/JSQLParser/JSqlParser/wiki/News.

## JSqlParser

JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes.
The generated hierarchy can be navigated using the Visitor Pattern.
JSqlParser is a SQL statement parser. It translates SQLs in a traversable hierarchy of Java classes. JSqlParser is not limited to one database but provides support for a lot of specials of Oracle, SqlServer, MySQL, PostgreSQL ... To name some, it has support for Oracles join syntax using (+), PostgreSQLs cast syntax using ::, relational operators like != and so on.

## Extensions Version 0.9
## Support
If you need help using JSqlParser feel free to file an issue or contact me.

* Character Set support included.
## Contributions
To help JSqlParsers development you are encouraged to provide
* feedback
* bugreports
* pull requests for new features
* improvement requests
* fund new features

```sql
CAST(col2 AS CHAR(255) CHARACTER SET utf8)
```
Also I would like to know about needed examples or documentation stuff.

## Extensions Version 0.8.9
## Extensions in the latest SNAPSHOT version 0.9.6

* First multi statements or script support.
* Backported window option from fork to analytic expression.
* Added **NULLS FIRST** and **NULLS LAST** to order by.
* Improved parsing of **top**.
* Improved support for multi part names (SQLServer)
* Better support for signed expressions. The sign is stored in the parse tree.

```sql
SELECT +col, -col FROM mytable
```

* Added **CCJSqlParserUtil.parseExpression** to parse a simple expression. Now you can build expressions from a String like "a+b".
* support for **SELECT UNIQUE**
* first support for date literals like **TIMESTAMP'2004-04-30 04:05:34.56'**
* support for **UPDATE RETURNING**
* support for scalar time function, like **CURRENT_TIMESTAMP**
* support for **LEFT SEMI JOIN**
* improved **top** expression

```java
Expression expr = CCJSqlParserUtil.parseExpression("a*(5+mycolumn)");
```

* Improved **SelectUtils** to build simple select statements.

```java
Select select = SelectUtils.buildSelectFromTable(new Table("mytable"));
```

## Extensions Version 0.8.8

* Startet a simple utility class **SelectUtils** to collect basic **select** modification tools.
* addExpression adds a new expression to the select list.
* addJoin adds a new join to the select.
* Added support for optional " AS " for aliases.

```sql
SELECT * FROM mytable myalias
```

* Added first support for ALTER TABLE statements

```sql
ALTER TABLE mytable ADD COLUMN mycolumn varchar (255)
SELECT TOP (? + 1) * FROM MyTable
```

* Added support for PostgreSQL regular expression match operators.
* allowed negative interval expressions like **INTERVAL -420 MINUTES**.
* support for **ALTER VIEW** statements
* improved merge statement
* support for non standard syntax *> =*, *< =* and *< >* (with whitespaces between)

```sql
SELECT a, b FROM foo WHERE a ~ '[help].*';
SELECT a, b FROM foo WHERE a ~* '[help].*';
SELECT a, b FROM foo WHERE a !~ '[help].*';
SELECT a, b FROM foo WHERE a !~* '[help].*';
```

## Extensions Version 0.8.6
## Extensions of JSqlParser releases

* Added first support for Oracle hierarchical queries
* [Release Notes](https://github.com/JSQLParser/JSqlParser/releases)
* Modifications before GitHubs release tagging are listed in the [Older Releases](https://github.com/JSQLParser/JSqlParser/wiki/Older-Releases) page.

```sql
SELECT * FROM employees CONNECT BY employee_id = manager_id ORDER BY last_name;
SELECT * FROM employees START WITH employee_id = 100 CONNECT BY PRIOR employee_id = manager_id ORDER SIBLINGS BY last_name;
```

## Extensions Version 0.8.5

* Added support for mysql truncate function
* Changed repository location and groupid of JSqlParsers artifact.

```xml
<dependency>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
<version>0.8.5</version>
</dependency>
```

* Added support for postgresql type **character varying**.

## Extensions Version 0.8.4

* Added support for named JDBC parameters

```sql
SELECT * FROM mytable WHERE b = :param
```
* Added support for pivot expressions
* Added support for boolean functions in where statements

```sql
select * from my_table where bool_func(col)
```
* Added support for Oracles old join syntax for more compare operations

```sql
select * from taba, tabb where taba.a<tabb.a(+)
```
* Added support for foreign keys in create table statements

```sql
create table testTable1 (a varchar(10), b varchar(20), foreign key a references testTable2(a))
create table testTable1 (a varchar(10), b varchar(20), constraint fkIdx foreign key a references testTable2(a))
```
* Added support for simple intervals

```sql
select 5 - INTERVAL '45 MINUTE' from mytable
```
* Added support for multi values IN expression

```sql
select * from mytable where (a,b,c) in (select a,b,c from mytable2)
```

## Extensions Version 0.8.3

* Added support for cross join
* Allowed complex expressions in extract from
* Corrected cast expression to make type parameters usable (e.g. cast(col1 as varchar(255))
* Added support for column comma list in partition by statements
* Added support for columns names in create view statements

```sql
create view testView (col1,col2) as select a, b from table
```
* Added support for column cast using ::
* Added support for from clause in update statements

```sql
update tab1 set c=5 from tab1 inner join tab2 on tab1.col1=tab2.col2
```
* Corrected TableNamesFinder to work with update statements additions.
* Added support for simple create materialized view statements without additional parameters.

```sql
create materialized view testView as select a, b from table
```
* Added support for simple create index statements

```sql
create index myindex on mytab (mycol, mycol2)
```

## Extensions til Version 0.8.2

* Changed project tests to junit 4
* Changed project layout to maven project
* Added regexp (REGEXP) operator
* Added support for SELECT without FROM (e.g. "SELECT 1+2")
* Moved parser from using StringBuffer to using StringBuilder
* Added support for CAST expression

```sql
select cast(col as varchar) from table
```
* Added support for modulo (a % b)
* Added support for brackets quotation
* Added support for NOT expr IS (expr IS NOT was already supported)
* Added support for Oracles (+) Join Syntax

```sql
select * from taba, tabb where taba.a=tabb.a(+)
```
* Added alias visitor to add aliases to selections
* Added connect visitor
* TableNamesFinder moved from tests to main source
* Added proper support for sets (union, intersect)

```sql
select a from taba union select b from tabb
select a from taba intersect select b from tabb
select a from taba except select b from tabb
select a from taba minus select b from tabb
```
* Added support for `extract(year from datetime-expr)`
* Start implementation of analytical expressions
* merged support for CREATE VIEW
* Added lateral subquery support
* Added support for multi values insert statement

```sql
insert taba (col1,col2) values (1,2), (2,5), (3,20)
```
* Added support for multi values in select statement

```sql
SELECT col FROM (VALUES 1,2) AS MY_TABLE(col)
```
* Added extended support for analytic expressions (empty over clause, parameter within aggregat function)

```sql
SELECT sum(a) over () FROM taba
```

## BUILDING
## BUILDING from the sources

As the project is a Maven project, building is rather simple by running:

Expand Down Expand Up @@ -258,15 +97,7 @@ And this is the dependency declaration in your pom:
<dependency>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
<version>0.8.6</version>
<version>0.9.5</version>
</dependency>
```

## Original project

This is a fork of the jsqlparser originally developed by ultimoamore.

Original project websites:

* http://jsqlparser.sourceforge.net
* http://sourceforge.net/projects/jsqlparser/
37 changes: 18 additions & 19 deletions nb-configuration.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<netbeans.compile.on.save>none</netbeans.compile.on.save>
<netbeans.hint.jdkPlatform>JDK_1.7</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<netbeans.compile.on.save>none</netbeans.compile.on.save>
</properties>
</project-shared-configuration>
8 changes: 8 additions & 0 deletions nbactions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@
<skipTests>true</skipTests>
</properties>
</action>
<action>
<actionName>CUSTOM-clean deploy</actionName>
<displayName>clean deploy</displayName>
<goals>
<goal>clean</goal>
<goal>deploy</goal>
</goals>
</action>
</actions>
Loading