Skip to content

Commit 67c9150

Browse files
author
Florent Bécart
committed
0 parents  commit 67c9150

File tree

429 files changed

+120361
-0
lines changed

Some content is hidden

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

429 files changed

+120361
-0
lines changed

build.xml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<project name="jsqlparser" default="main" basedir=".">
2+
3+
<property environment="env"/>
4+
5+
<property file="src/net/sf/jsqlparser/version.properties" />
6+
7+
<property name="javacchome" value="./javacc-5.0"/>
8+
<property name="build.compiler" value="modern"/>
9+
<property name="build.dir" value="./classes" />
10+
<property name="src.dir" value="./src"/>
11+
<property name="test.build.dir" value="./testclasses" />
12+
<property name="test.src.dir" value="./testsrc"/>
13+
<property name="junit.jar" value="./testlib/junit.jar"/>
14+
<property name="parser.dir" value="${src.dir}/net/sf/jsqlparser/parser"/>
15+
<property name="jar.file" value="jsqlparser"/>
16+
<property name="jar.file.name" value="${jar.file}-${version}.jar"/>
17+
<property name="binjar.file.name" value="./lib/${jar.file}.jar"/>
18+
19+
<path id="project.class.path">
20+
<pathelement path="${build.dir}"/>
21+
</path>
22+
23+
<path id="testproject.class.path">
24+
<path refid="project.class.path" />
25+
<pathelement path="${test.build.dir}" />
26+
<pathelement path="${junit.jar}" />
27+
</path>
28+
29+
<target name="clean">
30+
<delete dir="${build.dir}" includeEmptyDirs="true" />
31+
<delete dir="${test.build.dir}" includeEmptyDirs="true" />
32+
</target>
33+
34+
35+
<target name="prep">
36+
<mkdir dir="${build.dir}"/>
37+
<mkdir dir="${test.build.dir}"/>
38+
</target>
39+
40+
<target name="javacc">
41+
<delete file="${parser.dir}/TokenMgrError.java" />
42+
<delete file="${parser.dir}/ParseException.java" />
43+
<delete file="${parser.dir}/Token.java" />
44+
<delete file="${parser.dir}/ASCII_CharStream.java" />
45+
<delete file="${parser.dir}/CCJSqlParser.java" />
46+
<delete file="${parser.dir}/CCJSqlParserConstants.java" />
47+
<delete file="${parser.dir}/CCJSqlParserTokenManager.java" />
48+
<delete file="${parser.dir}/ParseException.java" />
49+
<delete file="${parser.dir}/SimpleCharStream.java" />
50+
<delete file="${parser.dir}/TokenMgrError.java" />
51+
<javacc target="${parser.dir}/JSqlParserCC.jj"
52+
outputdirectory="${src.dir}/net/sf/jsqlparser/parser"
53+
javacchome="${javacchome}" />
54+
</target>
55+
56+
<target name="compile" >
57+
<javac srcdir="${src.dir}" destdir="${build.dir}" debug="true" debuglevel="lines,vars,source" source="1.5">
58+
<classpath refid="project.class.path" />
59+
</javac>
60+
<javac srcdir="${test.src.dir}" destdir="${test.build.dir}" debug="true" debuglevel="lines,vars,source" source="1.5">
61+
<classpath refid="testproject.class.path" />
62+
</javac>
63+
</target>
64+
65+
<target name="test">
66+
<junit haltonfailure="yes">
67+
<classpath refid="testproject.class.path"/>
68+
<formatter type="plain" usefile="false"/>
69+
<test name="net.sf.jsqlparser.test.tablesfinder.TablesNamesFinderTest"/>
70+
<test name="net.sf.jsqlparser.test.simpleparsing.CCJSqlParserManagerTest"/>
71+
<test name="net.sf.jsqlparser.test.select.SelectTest"/>
72+
<test name="net.sf.jsqlparser.test.delete.DeleteTest"/>
73+
<test name="net.sf.jsqlparser.test.insert.InsertTest"/>
74+
<test name="net.sf.jsqlparser.test.replace.ReplaceTest"/>
75+
<test name="net.sf.jsqlparser.test.update.UpdateTest"/>
76+
<test name="net.sf.jsqlparser.test.create.CreateTableTest"/>
77+
<test name="net.sf.jsqlparser.test.drop.DropTest"/>
78+
<test name="net.sf.jsqlparser.test.truncate.TruncateTest"/>
79+
<test name="net.sf.jsqlparser.test.select.SpeedTest"/>
80+
</junit>
81+
</target>
82+
83+
<target name="binjar">
84+
<delete file="${binjar.file.name}" />
85+
<jar destfile="${binjar.file.name}" >
86+
<fileset dir="./classes"/>
87+
</jar>
88+
</target>
89+
90+
<target name="jar">
91+
<delete file="${jar.file.name}" />
92+
<jar destfile="${jar.file.name}"
93+
basedir="./../"
94+
includes="jsqlparser/docs/**,jsqlparser/src/**,jsqlparser/testsrc/**,jsqlparser/testfiles/**,jsqlparser/lib/**,jsqlparser/build.xml,jsqlparser/change.log" excludes="**/cvs/*,**/cvs"/>
95+
</target>
96+
97+
<target name="javadoc">
98+
<javadoc destdir="docs" access="private" use="true" source="1.5"
99+
notree="false" nonavbar="false" noindex="false"
100+
splitindex="true" author="true" version="true"
101+
nodeprecatedlist="false" nodeprecated="false"
102+
packagenames="net.sf.jsqlparser.*"
103+
sourcepath="src"
104+
classpath="testclasses;classes;./testlib/junit.jar" additionalparam="-tag to.do:a:&quot;To Do:&quot;"/>
105+
</target>
106+
107+
<target name="main" depends="clean, prep,javacc,compile, test, binjar, javadoc, jar"/>
108+
109+
</project>

change.log

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
0.2
2+
added optional ';' at the end of the statements
3+
LIMIT
4+
fixed "all columns" parsing bug, as in "select table_name.* from table_name"
5+
UNION
6+
7+
0.2.1
8+
DISTINCT ON clause
9+
OFFSET without LIMIT
10+
11+
0.3
12+
added select test cases
13+
Fixed bug in table name (schema was swapped with the name)
14+
Changed tableName field into table (since it is a Table object) in AllTableColumns class
15+
added INNER join
16+
fixed bug in IN,BETWEEN,IS NULL
17+
fixed bug in GROUP BY (comma between list of columns was missing)
18+
HAVING is not tied to GROUP BY anymore
19+
Changed OrderBy in OrderByElement and OrderByClause in OrderBy
20+
added all different syntaxes for REPLACE
21+
Changed Update in order to be more similar to Replace
22+
Added CREATE TABLE, DROP
23+
24+
0.3.1
25+
added SpeedTest
26+
27+
0.3.2
28+
added Truncate
29+
30+
0.3.3
31+
Added de-parsers
32+
Removed OrderBy (it was just a list of collection of ColumnRefences)
33+
Removed GroupBy (it was just a list of collection of GroupByElements)
34+
Removed list in case they are empty (just leave them as null)
35+
36+
0.3.4
37+
table name and schema default to null
38+
39+
0.3.5
40+
added USING in Joins and functions handling
41+
42+
0.3.6
43+
proper numbers management
44+
45+
0.3.7
46+
added date,time and timestamp parsing
47+
fixed double alias in deparser
48+
49+
0.3.8
50+
escaped functions
51+
SQLExpressionList is a list of Expressions, not SimpleExpressions
52+
53+
0.3.9
54+
fixed bug in no-args function deparser
55+
56+
0.3.10
57+
fixed bug in GROUP BY and LIMIT in DeParser
58+
59+
0.3.11
60+
fixed ASC/DESC bug in SelectDeParser
61+
added toString methods
62+
added TOP
63+
64+
65+
0.3.12
66+
toStrings
67+
68+
0.3.13
69+
fixed minor toString bug
70+
71+
0.3.16
72+
escape clause
73+
fixed bug in order of having and order by items
74+
75+
0.4.0
76+
added EXISTS clause
77+
78+
79+
0.4.1
80+
removed bug on Function names
81+
82+
0.4.2
83+
Added ANY, SOME, ALL conditions
84+
85+
0.4.3
86+
Removed bug 1928388
87+
88+
0.4.4
89+
Added NOT to binaryexpressions
90+
Fixed double handling (1e2, e3 etc)
91+
92+
0.4.5
93+
Fixed NOT handling
94+
Fixed not-SQL statement parsing (lots of changes in the parser)
95+
96+
0.5.0
97+
Fixed "case when a > 0 then b + a"
98+
Fixed "from tab1, left join tab2 on ..., tab3" case
99+
100+
0.5.1
101+
Added RIGHT NATURAL FULL joins
102+
103+
0.5.2
104+
Added SubJoin for: select * from foo as f LEFT JOIN
105+
(bar as b RIGHT JOIN baz as z ON f.id=z.id)
106+
ON f.id=b.id
107+
108+
0.6.0
109+
Added WITH clause
110+
111+
0.6.1
112+
fixed tab1, tab2 treated as INNER JOIN
113+
Added UNION ALL or DISTINCT (but works only for first UNION)
114+
115+
0.6.1.a
116+
Docs dir was missing
117+
118+
0.6.2
119+
where expr1 and NOT (expr2) was not working
120+
121+
0.6.2.a
122+
right expression in AND NOT didn't use NOT
123+
124+
0.6.3
125+
better join.toString method
126+
127+
0.6.4
128+
Alias was missing in Join SelectDeParser handling
129+
Added DISINCT
130+
Fixed alias in table for update
131+
132+
0.6.5
133+
Added backtick ` as a quote identifier
134+
Added support for "__" identifiers
135+
136+
0.6.6
137+
Added concat (||) operator
138+
Arithmetic expressions in CASE expression
139+
140+
0.7.0
141+
Added matches (@@) operator
142+
Changed order by and group by to be Expressions
143+
Added bitwise operators (|, ^, &)

0 commit comments

Comments
 (0)