Skip to content
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

Support JDBC escape syntax #213

Closed
wants to merge 2 commits into from

Conversation

nicktorwald
Copy link

@nicktorwald nicktorwald commented Aug 3, 2019

Add a driver SQL pre-processing before sending it to the server. The
driver supports sub-set of scalar functions defined by the spec
(appendix C), outer joins, escape clause for SQL LIKE operator, and
limit/offset clause. The processed result can be received using
Connection.nativeSQL() method.

Closes: #79
Closes: #76
Closes: #81
Closes: #83
Closes: #84
Affects: #108

@nicktorwald nicktorwald force-pushed the nicktorwald/gh-79-escape-syntax branch from 843b7f1 to d29b3d1 Compare August 3, 2019 16:17
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I'm okay with the PR except several minor comments.

Use the following syntax for closing several issues from one commit:

Closes #xxx
Closes #yyy

Just Closes #xxx, #yyy does not work.

#80 is not closed here.

See other comments below.

src/main/java/org/tarantool/util/ThrowingBiFunction.java Outdated Show resolved Hide resolved
src/main/java/org/tarantool/jdbc/EscapeSyntaxParser.java Outdated Show resolved Hide resolved
src/main/java/org/tarantool/jdbc/EscapeSyntaxParser.java Outdated Show resolved Hide resolved
src/main/java/org/tarantool/jdbc/EscapeSyntaxParser.java Outdated Show resolved Hide resolved
src/main/java/org/tarantool/jdbc/EscapedFunctions.java Outdated Show resolved Hide resolved
src/main/java/org/tarantool/jdbc/EscapedFunctions.java Outdated Show resolved Hide resolved
src/main/java/org/tarantool/jdbc/EscapedFunctions.java Outdated Show resolved Hide resolved
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-79-escape-syntax branch 2 times, most recently from 2a1b6c1 to a77d8e4 Compare December 4, 2019 19:08
@coveralls
Copy link

coveralls commented Dec 4, 2019

Coverage Status

Coverage increased (+1.8%) to 79.435% when pulling 939a617 on nicktorwald/gh-79-escape-syntax into 4ba88fb on master.

@nicktorwald nicktorwald force-pushed the nicktorwald/gh-79-escape-syntax branch from a77d8e4 to dd73edd Compare December 5, 2019 09:01
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay except comments processing (see above) and scalar functions testing (see below).

@nicktorwald nicktorwald force-pushed the nicktorwald/gh-79-escape-syntax branch 2 times, most recently from 204508f to d1f72f2 Compare December 17, 2019 07:18
nicktorwald added a commit that referenced this pull request Jan 15, 2020
The driver can connect to different Tarantool instances within a range
of server versions. Sometimes, it's required to set a driver behaviour
depending on those versions (i.e. in scope of #213 the driver needs to
generate the functions for JDBC C4 LTRIM/RTRIM that are recognizable by
a particular Tarantool version).

This commit also includes implementation of two public DatabaseMetaData
methods getDatabaseMajorVersion and getDatabaseMinorVersion.

Affects: #213
Closes: #106
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-79-escape-syntax branch from d1f72f2 to d36814b Compare January 15, 2020 02:39
The driver can connect to different Tarantool instances within a range
of server versions. Sometimes, it's required to set a driver behaviour
depending on those versions (i.e. in scope of #213 the driver needs to
generate the functions for JDBC C4 LTRIM/RTRIM that are recognizable by
a particular Tarantool version).

This commit also includes implementation of two public DatabaseMetaData
methods getDatabaseMajorVersion and getDatabaseMinorVersion.

Affects: #213
Closes: #106
Add a driver SQL pre-processing before sending it to the server. The
driver supports sub-set of scalar functions defined by the spec
(appendix C), outer joins, escape clause for SQL LIKE operator, and
limit/offset clause. The processed result can be received using
Connection.nativeSQL() method.

Closes #79
Closes #76
Closes #81
Closes #83
Closes #84
Affects: #108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants