Commit Graph

1779 Commits

Author SHA1 Message Date
John Tims
f2dc9582bd Ignore failing db2 tests 2020-05-19 17:49:12 -06:00
Balázs Zsoldos
f095bf0863
[SQL] Apply column name override in executeWithKey call (#2280)
* fix(SQL): Apply column name override in executeWithKey call
2020-03-23 09:56:34 +02:00
Ido Salomon
c1dc00ca66 Revert "issue-2303: Consider optimising AbstractSQL::newInstance (becomes a bottleneck for small queries)"
This reverts commit 1b2af5510d.
2020-03-02 23:28:19 +02:00
Rajesh Balamohan
1b2af5510d issue-2303: Consider optimising AbstractSQL::newInstance (becomes a bottleneck for small queries) 2020-03-02 18:42:27 +02:00
Timo Westkämper
5f67540035 Add missing casts 2018-03-18 21:45:49 +02:00
Ruben Dijkstra
62d0ad4d76
Merge pull request #2241 from reegnz/fix-throws-javadoc
Explicitly declare NonUniqueResultException for fetchOne
2018-03-14 13:50:41 +01:00
Timo Westkämper
0c3cb1323e Improve backwards compatibility 2018-03-06 22:15:26 +02:00
Timo Westkämper
fe956ad812
Merge pull request #2236 from querydsl/i2225
Update oracle keywords list
2018-03-04 21:56:33 +02:00
Timo Westkämper
c46afd6433
Merge pull request #2253 from rdnetto4/update_from
Expose fields needed for dialect-specific SQL syntax
2018-03-04 21:56:02 +02:00
Ruben Dijkstra
2468042ed7
Merge pull request #2016 from balazs-zsoldos/i2007_Programmatic_Name_Mapping
Adding dynamic name mapping functionality (#2007)
2018-02-25 12:33:57 +01:00
Balazs Zsoldos
a996862c59 Changing years in license headers of new files of #i2007 2018-02-25 11:00:52 +01:00
Reuben D'Netto
669cd57e85 Fix imports 2018-02-12 13:15:57 +11:00
Reuben D'Netto
2b746f75ee Refactored AbstractSQLQuery subtypes to support generic return types, to facilitate subtyping. 2018-02-12 11:40:26 +11:00
Reuben D'Netto
ad35e9d946 Factored out base class for SQLInsertClause, SQLUpdateClause, SQLDeleteClause 2018-02-09 15:42:32 +11:00
Reuben D'Netto
280a8945a4 Loosened visibility on SQLSerializer 2018-02-09 15:42:32 +11:00
Reuben D'Netto
dd95ac3ced Loosened visibility on AbstractSQLClause subtypes 2018-02-09 15:42:32 +11:00
Yuri Orlov
b7759422ac simplify array creation 2018-02-08 17:29:21 +03:00
Zoltán Reegn
3a74aaeabc Explicitly declare NonUniqueResultException for fetchOne
Fetchable.fetchOne() declares in it's javadoc that it throws
NonUniqueResultException. It should therefore be explicitly declared in
the method signature as well.
All implementations must also declare in their signature that they throw.

This also has the desirable side-effect of the javadoc of all of the
implementors inheriting the @throws section from the javadoc of the
interface as well.

Fixes #2232
2018-01-16 14:03:05 +01:00
Timo Westkämper
215a56b627
Merge pull request #2211 from lpandzic/sql-server-2016-support
added SQL Server 2016 support to SQLTemplatesRegistry
2018-01-12 20:31:23 +02:00
Timo Westkämper
a8452ec2cb
Merge pull request #2172 from tpuica/master
Fixed NEXTVAL Operator for MS SQLServer (starting with 2012)
2018-01-12 20:29:44 +02:00
Timo Westkämper
17fd2c073c
Merge pull request #2093 from atlassian/i1839
Adds methods to SQLListenerContext to retrieve SQLBindings.
2018-01-12 20:28:34 +02:00
Timo Westkämper
74ccec396f
Merge pull request #2103 from gordski/dml-with-schema
Store original state of dmlWithSchema
2018-01-12 20:27:33 +02:00
Ruben Dijkstra
5f8490adc2 Update oracle keywords list 2018-01-04 18:45:49 +01:00
John Tims
0f86f68619 Dockerize oracle, mysql, postgres, cubrid, firebird, db2, and mongo 2017-12-29 15:39:42 -07:00
lpandzic
51e471432e added SQL Server 2016 support to SQLTemplatesRegistry 2017-10-10 15:33:19 +02:00
tpuica
125388987e fix Travis CI build (line has trailing spaces?) 2017-07-25 17:31:40 +02:00
tpuica
26158ddac6 adapt nextVal() test to the recently modified NEXTVAL operator pattern 2017-07-25 17:13:52 +02:00
tpuica
f958a95d7f Fixed NEXTVAL Operator for MS SQLServer (starting with 2012) 2017-07-25 11:20:20 +02:00
Balázs Zsoldos
a3c2050928 Removing unnecessary empty line in ConfigurationTest
Forcing Travis to re-execute
2017-07-03 08:01:23 +02:00
Balazs Zsoldos
69961c35d0 Replacing Locale.getDefeault() in tests to English 2017-06-29 21:26:54 +02:00
Balazs Zsoldos
249f0c6678 Merge remote-tracking branch 'querydsl/master' into i2007_Programmatic_Name_Mapping 2017-06-29 21:17:46 +02:00
Kara Hatherly
68d6f37537 Made SQLBindings null-friendly, deprecated null-hostile constructor and getBindings 2017-02-21 15:00:36 +11:00
Kara Hatherly
3b876d14a7 Adds methods to SQLListenerContext to retrieve SQLBindings.
This was added as an alternative to just getting an SQL string. Internally,
SQLListenerContextImpl now only takes SQLBindings and the getSQL and
getSQLStatements methods delegate to SQLBindings#getSQL. This required
shuffling around AbstractSQLQuery and SQL*Clause to create bindings sooner to
pass through to addSQL even though we derive the same data later on inside
AbstractSQLClause#setParameters - I figured this was preferable to larger-scale
refactoring.

Fixes #1839
2017-02-09 10:05:05 +11:00
Gordon Innes
06ac2989f5 Store original state of dmlWithSchema as discussed in #2075. 2017-01-11 23:29:42 +00:00
Gordon Innes
1b4ef3f5b6 Tests for requiresSchemaInWhere option in SQLTemplates. 2017-01-11 23:28:29 +00:00
Gordon Innes
73bc267549 Added requiresSchemaInWhere option to SQLTemplates.
This option allows templates to generate where clauses with the pattern
<SCHEMA>.<TABLE>.<COLUMN> in the column specs.

Derby doesn't appear to support <TABLE>.<COLUMN> when using
<SCHEMA>.<TABLE> in the from unless the default schema is set and matches
the <SCHEMA> in the from clause.
2017-01-11 22:26:26 +00:00
Balazs Zsoldos
5dfad907f9 Fixing checkstyle errors 2016-11-06 02:22:33 +01:00
Balazs Zsoldos
d7fbe13ed4 Making register* functions deprecated in Configuration 2016-11-06 02:15:13 +01:00
Balazs Zsoldos
2b90b257c6 100% unit test coverage on namemapping package 2016-11-06 02:14:49 +01:00
Balazs Zsoldos
0df942e562 Fixing letter case changing in ChangeLetterCaseNameMapping 2016-10-08 12:04:52 +02:00
Balazs Zsoldos
227d4ec451 Making NameMapping test passing the turkey test 2016-10-08 11:57:04 +02:00
Balazs Zsoldos
9337a2c5c5 Renaming ChangeCaseNameMapping to ChangeLetterCaseNameMapping 2016-10-07 00:28:52 +02:00
Balazs Zsoldos
4b21a814d9 Using locales for letter-case changing in name mapping. 2016-10-07 00:25:50 +02:00
Balázs Zsoldos
9580cd3997 Fixing setDynamicNameMapping 2016-10-07 00:12:44 +02:00
Balázs Zsoldos
faa775f6f9 Removing unused imports from configuration 2016-09-27 11:38:58 +02:00
Balazs Zsoldos
c6b2decaa1 Adding dynamic name mapping functionality (#2007) 2016-09-06 00:31:21 +02:00
Timo Westkämper
63f25d60b1 Merge pull request #1988 from querydsl/i1978
Fix serialization
2016-08-30 18:20:48 +03:00
Robert Csakany
6aad783de4 #1961 HSQLDB dont use parenthes in Union. 2016-08-06 12:27:04 +02:00
Timo Westkämper
4e94a89080 Fix serialization 2016-08-06 10:56:49 +03:00
Timo Westkämper
fc8b5da0fb Merge pull request #1935 from querydsl/i1933
Use default locale instead of ENGLISH
2016-06-30 21:59:27 +03:00