Commit Graph

1321 Commits

Author SHA1 Message Date
Lukas Eder
3f1e2af10a [#2399] Remove support for the USE statement 2013-04-12 10:05:32 +02:00
Lukas Eder
8d9a40ad19 [#2393] Fully qualified name not used for user-defined aggregate
function
2013-04-12 09:48:08 +02:00
Lukas Eder
28073c01db [#2391] Rename dialect-specific Factories [Dialect]Factory to
[Dialect]DSL
2013-04-07 22:44:29 +02:00
Lukas Eder
8075996ee0 [#2390] Change Configuration API to reflect jOOQ-style getter / setter
naming - Regenerated Oracle schema
2013-04-07 17:32:20 +02:00
Lukas Eder
6b5b1128b3 Changed integration test's "getDialect()" to "dialect()" to be more
in line with jOOQ-style getter naming
2013-04-07 17:24:01 +02:00
Lukas Eder
68db0cf354 Renamed AttachableInternal.getConfiguration() to configuration() for
consistency
2013-04-07 17:17:27 +02:00
Lukas Eder
15f24d6e39 [#2390] Change Configuration API to reflect jOOQ-style getter /
setter naming
2013-04-07 17:06:04 +02:00
Lukas Eder
c3883d2b92 [#2388] Replace Configuration's List<ExecuteListener> with an
ExecuteListenerProvider to simplify correct and thread-safe client
implementations
2013-04-07 16:57:23 +02:00
Lukas Eder
869ada72ed [#2389] Make org.jooq.impl.DefaultConfiguration public -
TODO: Make implementation threadsafe!
2013-04-07 15:36:12 +02:00
Lukas Eder
906df54303 [#2380] Rename org.jooq.impl.Factory to org.jooq.DSL - Step 1
- Renamed org.jooq.impl.Factory to org.jooq.impl.DSL
2013-04-06 21:17:18 +02:00
Lukas Eder
0183ecab99 [#2379] Replace 3.0-RC1 Executor type by a contextual DSL type
constructed from Factory.using() - Step 4
- Renamed ContextDSL to DSLContext
2013-04-06 21:00:50 +02:00
Lukas Eder
20af63d55e [#2379] Replace 3.0-RC1 Executor type by a contextual DSL type
constructed from Factory.using() - Step 3
- Make Executor package-private
- Rename Executor to ContextDSLImpl
- Re-generate H2, MySQL, Oracle databases
- Let DAO reference a Configuration instead of an Executor [#2382]
2013-04-06 18:45:45 +02:00
Lukas Eder
e0d80b860e Fixed test 2013-04-06 18:36:26 +02:00
Lukas Eder
412bd45e12 [#2379] Replace 3.0-RC1 Executor type by a contextual DSL type
constructed from Factory.using() - Step 1
- Make Executor constructors package-private
- Add Factory.using() factory method
2013-04-06 17:45:07 +02:00
Lukas Eder
740f8f84fe [#2374] INSERT .. RETURNING always returns null for dynamically created
tables - Added an integration test
2013-04-05 13:30:54 +02:00
Lukas Eder
4f519a7908 [#1868] [#2373] Cursor.close() doesn't terminate the ExecuteListener
life cycle
2013-04-05 11:18:39 +02:00
Lukas Eder
3648e2fc50 [#2373] Cursor.close() doesn't terminate the ExecuteListener life cycle
- Cursor should always be closed
2013-04-05 10:16:00 +02:00
Lukas Eder
f13fd3524a [#2373] ExecuteListener may have an unbalanced life-cycle - Fixed
LifecycleWatcherListener
2013-04-05 09:46:25 +02:00
Lukas Eder
46c185e3ce [#2373] ExecuteListener may have an unbalanced life-cycle - Added
LifecycleWatcherListener that collects start() and end() event counts
for display in integration tests
2013-04-05 09:40:13 +02:00
Lukas Eder
a654aff1ce Added some Javadoc 2013-04-05 08:44:39 +02:00
Lukas Eder
ec4283f169 [#2366] Add org.jooq.util.example package to jOOQ-codegen with some
example GeneratorStrategies
2013-04-03 21:25:03 +02:00
Lukas Eder
cd8b05e1b1 Regenerated sakila database 2013-04-03 21:18:59 +02:00
Lukas Eder
58d3979bec [#2362] Decouple org.jooq.impl.Executor from Configuration. Choose
composition over inheritance
2013-03-30 18:04:00 +01:00
Lukas Eder
6ea8c5a11e [#2353] Decouple org.jooq.Context from Configuration. Choose
composition over inheritance
2013-03-24 12:48:28 +01:00
Lukas Eder
dfb3dbf56c [#2343] Decouple lifecycle of Configuration and ExecuteContext 2013-03-24 12:23:46 +01:00
Lukas Eder
c2f4dc2a71 [#2328] Remove UpdatableTable marker interface, pulling up methods
to Table - Regenerated databases
2013-03-24 11:45:57 +01:00
Lukas Eder
00c2ddb15d [#2351] Relax ConnectionProvider contract, allowing acquire() to
return new Connections even before release() is called
2013-03-22 14:20:08 +01:00
Lukas Eder
f97f81a43c [#2345] Singleton instances are not preserved after deserialisation -
Reverted adding of test case
2013-03-22 12:37:54 +01:00
Lukas Eder
513764796a [#2345] Singleton instances are not preserved after deserialisation -
Add failing test
2013-03-18 20:21:00 +01:00
Lukas Eder
513e440ab2 [#2328] Pull up UpdatableTable.getKeys() and getReferencesFrom() methods
to Table - Regenerated H2 database
2013-03-10 12:41:00 +01:00
Lukas Eder
b100f91d21 [#2328] Pull up UpdatableTable.getKeys() and getReferencesFrom() methods
to Table
2013-03-10 12:40:38 +01:00
Lukas Eder
f11aef3c4a Release 3.0.0-RC2 - Regenerated Derby, Firebird, CUBRID databases 2013-03-08 12:53:31 +01:00
Lukas Eder
a417ec7a89 Release 3.0.0-RC2 - Regenerated H2 schemata 2013-03-08 12:45:27 +01:00
Lukas Eder
67a0528ad2 Release 3.0.0-RC2 - Regenerated HSQLDB schemata 2013-03-08 12:36:28 +01:00
Lukas Eder
e437354b7e Release 3.0.0-RC2 - Regenerated MySQL schemata 2013-03-08 12:33:33 +01:00
Lukas Eder
68e729661b Release 3.0.0-RC2 - Fixed broken integration test 2013-03-08 12:21:52 +01:00
Lukas Eder
b52279b074 Release 3.0.0-RC2 - Fixed integration test scenario regression. The
Oracle custom strategy generation must generate "global object
references" for a test to work
2013-03-08 12:19:57 +01:00
Lukas Eder
da02d3d91f Release 3.0.0-RC2 - Regenerated Oracle schema 2013-03-08 12:14:06 +01:00
Lukas Eder
80bb886468 Release 3.0.0-RC2 - Regenerated Postgres schema 2013-03-08 12:02:28 +01:00
Lukas Eder
4b6a1546bc Release 3.0.0-RC2 - Fixed broken integration test 2013-03-08 12:02:11 +01:00
Lukas Eder
20325bd509 Release 3.0.0-RC2 - Regenerated SQL Server schema 2013-03-08 11:58:27 +01:00
Lukas Eder
32acfdd1d1 Release 3.0.0-RC2 - Regenerated Sybase and SQLite schema 2013-03-08 11:57:22 +01:00
Lukas Eder
7eac1008f7 Release 3.0.0-RC2 - Regenerated Sybase schema 2013-03-08 10:59:00 +01:00
Lukas Eder
9c3e348987 [#2294] Compilation errors when code generator is configured with
<daos>true</daos> and <relations>false</relations>
2013-03-08 09:42:02 +01:00
Lukas Eder
a9f3e9aee8 [#2308] Do not generate "final" Tables.java, UniqueKeys.java, etc. -
Added a compiler test
2013-03-08 09:32:03 +01:00
Lukas Eder
6667190690 [#2308] Do not generate "final" Tables.java, UniqueKeys.java, etc -
Regenerated code
2013-03-08 09:24:32 +01:00
Lukas Eder
2b75918106 [#2298] Suppress warnings in generated code (@SuppressWarnings("all")
doesn't work with javac) - Regenerated H2 schema
2013-03-03 10:05:53 +01:00
Lukas Eder
8e46b87f08 [#2248] Javac's max constant pool of 64k can be exceeded in
generated Keys.java or Tables.java - Regenerated Oracle schema
2013-02-28 18:59:42 +01:00
Lukas Eder
736b918864 [#2248] Javac's max constant pool of 64k can be exceeded in
generated Keys.java or Tables.java - Regenerated H2 schema
2013-02-28 18:43:05 +01:00
Lukas Eder
4a7ad9937e [#2278] Postgres (UUID and other) ARRAY types aren't correctly inlined
as string literals
2013-02-27 12:12:45 +01:00
Lukas Eder
0e291565d4 Fixed failing integration test 2013-02-27 11:53:35 +01:00
Lukas Eder
9c5a5d9465 [#2279] UUIDs aren't correctly deserialised from Postgres UDTs -
Regenerated Postgres schema
2013-02-26 21:52:27 +01:00
Lukas Eder
48628892e2 [#2279] UUIDs aren't correctly deserialised from Postgres UDTs 2013-02-26 21:52:10 +01:00
Lukas Eder
af1e52973a [#2271] jOOQ integration tests fail when not run in CET / CEST 2013-02-26 12:25:20 +01:00
Lukas Eder
9cba0ba771 [#2271] jOOQ integration tests fail when not run in CET / CEST 2013-02-26 12:23:42 +01:00
Lukas Eder
c4c0d9f98a Fixed warning 2013-02-25 19:44:04 +01:00
Lukas Eder
db315deb98 Removed toad extensions project nature 2013-02-25 17:34:16 +01:00
Lukas Eder
225494c790 Removed obsolete ant build script 2013-02-25 17:33:39 +01:00
Lukas Eder
f7a0b6613b Removed unneeded file 2013-02-25 17:33:07 +01:00
Lukas Eder
ffd285ed65 [#2267] SQLDialectNotSupportedException: Type class
org.postgis.PGgeometry is not supported in dialect null, when binding
PG* objects - Added BOX test
2013-02-25 17:26:22 +01:00
Lukas Eder
6f7982fceb [#2267] SQLDialectNotSupportedException: Type class
org.postgis.PGgeometry is not supported in dialect null, when binding
PG* objects - Added INTERVAL test
2013-02-25 17:23:15 +01:00
Lukas Eder
892f492630 [#2267] SQLDialectNotSupportedException: Type class
org.postgis.PGgeometry is not supported in dialect null, when binding
PG* objects - Regenerated Postgres schema
2013-02-25 16:55:39 +01:00
Lukas Eder
24254e039e [#2267] SQLDialectNotSupportedException: Type class
org.postgis.PGgeometry is not supported in dialect null, when binding
PG* objects
2013-02-25 16:55:04 +01:00
Lukas Eder
e93e470f94 Removed some deprecated code 2013-02-24 12:00:48 +01:00
Lukas Eder
e012c0e547 [#2255] Add code generation option to avoid the generation of
"global object references"
2013-02-20 17:22:18 +01:00
Lukas Eder
d66fbbab21 [#2212] "code size too large" in generated SchemaImpl, when the number
of tables exceeds 15k - Regenerated H2 schema
2013-02-19 18:53:26 +01:00
Lukas Eder
c8aac299fe Regenerated H2 schema 2013-02-19 16:55:09 +01:00
Lukas Eder
c54f543332 Upgraded H2 dependency 2013-02-19 13:47:42 +01:00
Lukas Eder
23638e4693 Fix a warning 2013-02-19 13:35:54 +01:00
Lukas Eder
6c9b0d3397 [#2212] "code size too large" in generated SchemaImpl, when the number
of tables exceeds 15k - Added test data for the H2 database
2013-02-19 11:44:34 +01:00
Lukas Eder
bbd774795c [#2200] Add Executor.fetchCount(Select<?>) and Select.fetchCount() to
replace the projection by a COUNT(*) query
2013-02-19 11:01:47 +01:00
Lukas Eder
fc50df551d [#2238] Added a large H2 test schema 2013-02-18 17:15:03 +01:00
Lukas Eder
86e0ced484 Re-generated all data 2013-02-17 20:08:27 +01:00
Lukas Eder
d413070394 Added resource to .gitignore 2013-02-17 17:43:26 +01:00
Lukas Eder
d76824bd3e Release 3.0.0-RC1 - Fixed weird regression in test scripts, due to
Ingres upgrade (??)
2013-02-16 17:34:32 +01:00
Lukas Eder
d90506919c Release 3.0.0-RC1 - Fixed non-deterministic test-case 2013-02-16 16:35:19 +01:00
Lukas Eder
a7506c6d52 Release 3.0.0-RC1 - Skip failing test (for now) 2013-02-16 16:28:47 +01:00
Lukas Eder
0455203f49 Release 3.0.0-RC1 - Improved method signature of Record.changed()
methods. Inversed arguments to make method feel more natural
2013-02-16 16:09:24 +01:00
Lukas Eder
2e226ae88e Release 3.0.0-RC1 - Skip failing tests (for now) 2013-02-16 15:57:29 +01:00
Lukas Eder
f026a628ab Release 3.0.0-RC1 - Fixed tests against maven-generated resources 2013-02-16 15:11:21 +01:00
Lukas Eder
1502c0f330 [#2202] Add Mock JDBC objects for unit testing with jOOQ - Use
jOOQ-style getters, not JavaBeans style
2013-02-16 11:02:05 +01:00
Lukas Eder
23cc627740 [#1139] Add support for Postgres TABLE types - Added test function 2013-02-16 09:44:26 +01:00
Lukas Eder
e3ec046490 [#2202] Add Mock JDBC objects for unit testing with jOOQ 2013-02-15 20:49:03 +01:00
Lukas Eder
8f8f88f665 Added resource to .gitignore 2013-02-12 16:24:24 +01:00
Lukas Eder
cea755069d [#834] Add support for the Firebird / Postgres UPDATE .. RETURNING
clause
2013-02-12 16:22:04 +01:00
Lukas Eder
5690504fea Added database artefacts to .gitignore 2013-02-12 16:20:02 +01:00
Lukas Eder
ab5f79497f Fixed launch targets 2013-02-12 16:11:56 +01:00
Lukas Eder
a6fcc7755d [#1977] Remove the confusing concept of having a "main key" as opposed
to a "primary key" - Regenerated H2, Oracle, Postgres
2013-02-12 12:37:47 +01:00
Lukas Eder
33b0af0f5e [#1977] Remove the confusing concept of having a "main key" as opposed
to a "primary key" - Fixed the sample databases. T_BOOK_STORE shall
have a primary key, instead of a UNIQUE key
2013-02-12 12:37:12 +01:00
Lukas Eder
55ac47250a [#1977] Remove the confusing concept of having a "main key" as opposed
to a "primary key" - Fixed generated code
2013-02-12 12:30:25 +01:00
Lukas Eder
5bd9a61f16 [#1309] Let Factory.val() return Param<T> instead of Field<T> 2013-02-12 11:18:46 +01:00
Lukas Eder
60397b8f89 [#2133] Allow for mapping <outputSchema/> to "" (empty) in order to
avoid the generation of a schema - Regenerated oracle3
2013-02-11 15:15:09 +01:00
Lukas Eder
3d30514a52 [#2133] Allow for mapping <outputSchema/> to "" (empty) in order to
avoid the generation of a schema
2013-02-11 15:14:59 +01:00
Lukas Eder
ba97e7a604 Regenerated oracle2 schema 2013-02-11 14:47:44 +01:00
Lukas Eder
a4a3479b6f [#2079] Support generation of bean validation annotations on records
and interfaces - Regenerated H2 and Firebird schemas
2013-02-11 14:13:39 +01:00
Lukas Eder
e7b3db3ccb [#2079] Support generation of bean validation annotations on records
and interfaces
2013-02-11 14:13:23 +01:00
Lukas Eder
5af38a690a Fixed launch configuration 2013-02-09 18:29:50 +01:00
Lukas Eder
ad4378ec57 [#2160] [#2161] Add Executor.batchInsert,
batchUpdate(UpdatableRecord<?>...) to mass-insert/update a set of
UpdatableRecords
2013-02-09 18:24:14 +01:00
Lukas Eder
66dd5f25e9 [#1686] Add UpdatableRecord.insert() and update() 2013-02-09 17:48:05 +01:00
Lukas Eder
304865bbdf [#2177] Add ResultQuery.intern() and Result.intern() for string
interning in result sets
2013-02-09 16:42:29 +01:00
Lukas Eder
f80a193467 Changed benchmark constant 2013-02-09 12:18:10 +01:00
Lukas Eder
058151a756 [#2178] Improve FieldList. Avoid creating excessive array lists, where
simple (immutable) Field<?>[] are sufficient - Removed dependency
between SelectFieldList and FieldList
2013-02-08 19:12:58 +01:00
Lukas Eder
8573e3d0c5 [#2178] Improve FieldList. Avoid creating excessive array lists,
where simple (immutable) Field<?>[] are sufficient - Added benchmark
2013-02-08 13:07:53 +01:00
Lukas Eder
ffed40f22e Renamed methods from example 2013-02-08 12:17:05 +01:00
Lukas Eder
32a166a198 [#2172] Add <T> set(Field<T>, Select<? extends Record1<T>>) methods
to UPDATE, MERGE and INSERT statements
2013-02-07 15:29:14 +01:00
Lukas Eder
7af3fe112e [#1926] Add <T1, T2, ..., T[N]> MergeXXXStep<R, T1, T2, ..., T[N]>
Executor.mergeInto(Table<?>, Field<T1>, Field<T2>, ..., Field<TN>)
2013-02-07 11:53:34 +01:00
Lukas Eder
d718f61059 [#1921] Add <T1, T2, ..., T[N]> InsertValuesStep[N]<R, T1, T2, ...,
T[N]> Executor.insertInto(Table<R>, Field<T1>, Field<T2>, ...,
Field<TN>)
2013-02-05 18:20:57 +01:00
Lukas Eder
5d1a98b49d [#1886] Query.bind() has no effect when Query.keepStatement(true)
and StatementType.STATIC_STATEMENT are combined
2013-02-05 14:53:48 +01:00
Lukas Eder
649954e76c [#2159] Let ExecuteListener extend Serializable 2013-02-04 20:45:49 +01:00
Lukas Eder
86e581c869 [#1578] Change configuration of ExecuteListeners in Configuration.
Listeners instances should be provided, not classes
2013-02-04 20:39:43 +01:00
Lukas Eder
e792c72173 [#1902] Duplicate SELECT API between Executor and Factory 2013-02-04 18:44:18 +01:00
Lukas Eder
59732b662d [#2154] Generated Records should access values by index, not by
field, for performance reasons - Regenerated H2 schema
2013-02-04 16:22:16 +01:00
Lukas Eder
c4850ad5e1 [#1170] Improve performance on jOOQ's reflection usage - Added benchmark 2013-02-01 18:56:50 +01:00
Lukas Eder
da43b21fa8 Improved benchmark 2013-02-01 16:09:58 +01:00
Lukas Eder
cfae02d9ab Improved performance of AbstractRecord.fieldsRow(), resulting in a
14% performance gain in a relevant Record.setValue(),
Record.getValue() benchmark - Regenerated H2 Schema
2013-02-01 14:09:50 +01:00
Lukas Eder
5a94b69ea0 [#2144] Improve AbstractField.equals() and AbstractTable.equals()
and similar, as these two are called very often
2013-01-31 17:35:20 +01:00
Lukas Eder
b1cd631026 [#2137] Failure to assign a value to a record pojo for a column with
a composite type when using select into. - Regenerated Postgres
database (avoiding JPA annotations)
2013-01-31 14:37:46 +01:00
Lukas Eder
c00cc802c5 [#2137] Failure to assign a value to a record pojo for a column with
a composite type when using select into.
2013-01-31 14:37:23 +01:00
Lukas Eder
8af06e0836 [#2139] batchStore with composite types incorrectly reuses values from
the first record.
2013-01-31 13:15:08 +01:00
Lukas Eder
5a63eaaa03 [#2119] Rename Row.getDegree() to Row.size() 2013-01-11 17:43:53 +01:00
Lukas Eder
711d46c73d [#2117] Remove the FieldProvider marker interface. Simplify the
FieldProvider API
2013-01-11 17:40:48 +01:00
Lukas Eder
0fb2d950aa [#2104] SQLite code generation treats multi-column primary keys like
multiple single-column unique keys - Regenerated SQLite Schema
2013-01-08 12:45:44 +01:00
Lukas Eder
15223f7009 Fixed SQLite tests 2013-01-08 00:10:44 +01:00
Lukas Eder
d3db3b7cb5 Fixed Oracle schema 2013-01-07 23:31:18 +01:00
Lukas Eder
0bed3ba74c [#1235] SQLite BIGINT data type erroneously maps to java.math.BigInteger 2013-01-06 17:00:27 +01:00
Lukas Eder
c18d6b45af [#1649] Remove support for code generation from pre-jOOQ 2.0 .properties
file
2013-01-06 16:55:20 +01:00
Lukas Eder
a1316d2ba2 [#1624] Add support for java.util.UUID as a <T> type - Regenerated
databases
2013-01-06 14:17:26 +01:00
Lukas Eder
d7ee1f1326 [#1624] Add support for java.util.UUID as a <T> type 2013-01-06 14:16:32 +01:00
Lukas Eder
61c7617554 [#1624] Add support for java.util.UUID as a <T> type - Regenerated
Postgres schema
2013-01-05 10:30:36 +01:00
Lukas Eder
5aa77b3827 [#1624] Add support for java.util.UUID as a <T> type - Added
Postgres support, which is straightforward
2013-01-05 10:30:23 +01:00
Lukas Eder
fee3668176 Fixed test case with non-deterministic outcome 2013-01-04 17:22:42 +01:00
Lukas Eder
3f4a103347 Regenerated SQL Server schema 2013-01-04 17:19:15 +01:00
Lukas Eder
58c8a8df7c [#2091] CUBRID doesn't really have a NVARCHAR data type 2013-01-04 17:12:20 +01:00
Lukas Eder
29c149f49d Make MetaDataTests.testMetaModel() more reliable 2013-01-04 16:59:17 +01:00
Lukas Eder
e21bfbbd58 Fixed Firebird codegen configuration to omit bogus sequence 2013-01-04 16:50:38 +01:00
Lukas Eder
6324ab3ccf Regenerated Firebird schema 2013-01-04 16:34:54 +01:00
Lukas Eder
f194a29d95 Regenerated SQLite schema 2013-01-04 16:30:14 +01:00
Lukas Eder
049977600d Regenerated CUBRID meta schema 2013-01-04 16:22:04 +01:00
Lukas Eder
eae1ccc166 Regenerated CUBRID schema 2013-01-04 16:17:58 +01:00
Lukas Eder
5ae94eed28 Fixed USE test for CUBRID 2013-01-04 16:01:57 +01:00
Lukas Eder
c2c2cca4d5 [#2089] Generate an "empty" DefaultSchema for those databases that do
not have any schema (CUBRID, Firebird, SQLite) - Regenerated CUBRID
schema
2013-01-04 15:52:53 +01:00
Lukas Eder
a992761014 Removed jooq_wicket_example.sql 2013-01-04 15:44:30 +01:00
Lukas Eder
3b89978bfd [#2088] Do not treat CUBRID "owner" as schema in generated code -
Regenerated CUBRID schema
2013-01-04 15:23:03 +01:00
Lukas Eder
0d29a13bef [#2088] Do not treat CUBRID "owner" as schema in generated code 2013-01-04 15:22:49 +01:00
Lukas Eder
ebe9fdd52f Removed generated classes for CUBRID demodb 2013-01-04 15:11:51 +01:00
Lukas Eder
3fe86436a0 Cannot make any assumptions about JDBC ResultSet's column label 2013-01-04 15:03:22 +01:00
Lukas Eder
80621d138d [#2086] SQL syntax error when aliasing outcome of a relational division
- fixed test case
2013-01-04 14:59:48 +01:00
Lukas Eder
694f44b615 Fixed indeterministic test case 2013-01-04 14:53:22 +01:00
Lukas Eder
cf0e6e0827 [#2082] Oracle PIVOT expression doesn't bind any variables of a derived
table being pivoted - Fixed test case
2013-01-04 14:47:09 +01:00
Lukas Eder
5c97482f4c [#1887] Remove all deprecated code 2013-01-04 14:44:26 +01:00
Lukas Eder
cafadd5b0f Split up subselect integration tests by type 2013-01-04 13:49:15 +01:00
Lukas Eder
e83254fed9 Re-enabled test case, increasing its priority for jOOQ 3.0 2013-01-04 13:41:07 +01:00
Lukas Eder
993843ccd6 [#2086] SQL syntax error when aliasing outcome of a relational division 2013-01-04 13:35:20 +01:00
Lukas Eder
3c520c03b6 [#2082] Oracle PIVOT expression doesn't bind any variables of a derived
table being pivoted
2013-01-04 12:09:20 +01:00
Lukas Eder
eb677e7b09 [#1801] Add Table.as(String, String...) to allow for creating a table
aliases (correlation names) with derived column lists - Added tests
renaming PIVOT columns
2013-01-04 11:53:11 +01:00
Lukas Eder
c6a4514417 [#2080] Syntax error in rendered SQL when using limit().offset() with
aliased projections in SQL Server - Added an additional test case
2013-01-04 11:15:53 +01:00
Lukas Eder
60f33df0e0 [#2080] Syntax error in rendered SQL when using limit().offset() with
aliased projections in SQL Server - Added test case
2013-01-04 10:13:20 +01:00
Lukas Eder
c13f7ce577 Speed up SQLite integration tests 2013-01-03 23:25:08 +01:00
Lukas Eder
318d06ed75 [#915] Add <T1, T2, ..., T[N]> Table<Record[N]<T1, T2, ..., T[N]>>
Factory.values(Row[N]<T1, T2, ..., T[N]>...), to create ad-hoc tables
from data
 - Added test case
 - Improved Javadoc
2013-01-03 20:40:52 +01:00
Lukas Eder
b84c0060b9 Changed year number in copyright to 2013 2013-01-03 12:05:32 +01:00
Lukas Eder
135b9f2501 [#2076] Stop "supporting" comma-separated regular expressions in the
code generator configuration
2013-01-02 19:50:05 +01:00
Lukas Eder
abe359d859 [#2078] Add Postgres to @Support annotation of
SelectForUpdateWaitStep.wait()
2013-01-02 19:37:00 +01:00
Lukas Eder
d60432d463 [#1801] Add Table.as(String, String...) to allow for creating a table
aliases (correlation names) with derived column lists - Add test case
for renaming JOIN expressions
2013-01-02 18:09:45 +01:00
Lukas Eder
7f1b8d614f Fixed broken test that assumed that no other test would access
T_TRIGGERS
2013-01-02 17:08:29 +01:00
Lukas Eder
cb0ca38a36 [#1801] Add Table.as(String, String...) to allow for creating a
table alias with aliased fields - Regenerated Firebird schema
2013-01-02 17:03:50 +01:00
Lukas Eder
398d235ebb Added an additional RVE test case, with heterogeneous data types
within the RVE
2013-01-02 15:58:06 +01:00
Lukas Eder
d0bb0e8420 [#1801] Add Table.as(String, String...) to allow for creating a
table alias with aliased fields - Regenerated Firebird schema
2013-01-02 14:40:04 +01:00
Lukas Eder
48b25650b4 [#1801] Add Table.as(String, String...) to allow for creating a
table alias with aliased fields - Added API and tests that work for
Postgres
2013-01-02 14:39:17 +01:00
Lukas Eder
ae7aad93d5 [#915] Add <T1, T2, ..., T[N]> Table<Record[N]<T1, T2, ..., T[N]>>
Factory.values(Row[N]<T1, T2, ..., T[N]>...), to create ad-hoc tables
from data - Updated generated Factory code
2013-01-02 12:09:14 +01:00
Lukas Eder
7798e1d303 [#2073] The code generator's <dateAsTimestamp/> flag doesn't affect
Oracle VARRAY and TABLE types - Added some more test cases
2013-01-02 11:38:04 +01:00
Lukas Eder
9b52d42715 [#2073] The code generator's <dateAsTimestamp/> flag doesn't affect
Oracle VARRAY types - Regenerated database
2013-01-02 11:18:27 +01:00
Lukas Eder
f2a6320cfd [#2073] The code generator's <dateAsTimestamp/> flag doesn't affect
Oracle VARRAY types
2013-01-02 11:18:03 +01:00
Lukas Eder
544467cd9d Regenerated Oracle SYS.DBMS_XPLAN package 2013-01-02 11:17:30 +01:00
Lukas Eder
cf3425f545 Fixed broken test 2012-12-29 22:14:23 +01:00
Lukas Eder
e0b5fa2d66 [#1144] Overload Executor.fetch[One|Lazy](ResultSet, X...) with X being
Field<?>, DataType<?>, Class<?>
2012-12-29 17:32:10 +01:00
Lukas Eder
939793f2d0 Removed test case that isn't necessarily valid for all dialects 2012-12-29 16:16:06 +01:00
Lukas Eder
3620e6b6ce Regenerated Sybase SQL Anywhere schema 2012-12-29 16:10:01 +01:00
Lukas Eder
87b16189ed [#2055] MySQL's UPDATE [t1] JOIN [t2] syntax can cause syntax errors as
column references are not fully qualified - Fix for Firebird
2012-12-28 16:06:11 +01:00
Lukas Eder
4199c98e2d [#2063] jOOQ-meta loads Firebird composite unique key columns in wrong
order - Regenerated schema
2012-12-28 15:56:55 +01:00
Lukas Eder
2b72b49fa1 Regenerated Firebird schema 2012-12-28 15:49:39 +01:00
Lukas Eder
02f45c6439 [#2055] MySQL's UPDATE [t1] JOIN [t2] syntax can cause syntax errors as
column references are not fully qualified
2012-12-28 15:39:40 +01:00
Lukas Eder
cf4a9e521d Upgraded .classpath JRE reference from 1.6 to 1.7 2012-12-28 14:49:06 +01:00
Lukas Eder
01dfb38317 [#2060] Remove redundant SimpleSelectXXX API
- Removed API elements
- Clean up SELECT type hierarchy
2012-12-28 11:31:12 +01:00
Lukas Eder
caaafad41c Skip test case for Oracle 2012-12-28 11:15:28 +01:00
Lukas Eder
f46baddea4 [#2057] Cannot properly extract bind values for LIMIT .. OFFSET clause
from a SELECT statement - Added failing integration test
2012-12-27 17:15:24 +01:00
Lukas Eder
760be3e2bb [#2057] Implicit parameters/bindings for LIMIT ... OFFSET are not
exposed - Added integration test
2012-12-27 11:45:04 +01:00
Lukas Eder
dbc3e518f3 Relax type-safety on test 2012-12-27 11:38:09 +01:00
Lukas Eder
1660dce03d [#2052] Add [not]Between[Symmetric]() to Row[N] types 2012-12-26 16:23:47 +01:00
Lukas Eder
8557234b1d Regenerated HSQLDB schemas 2012-12-26 16:17:43 +01:00
Lukas Eder
15b0a71005 Regenerated Derby schema 2012-12-26 16:17:10 +01:00
Lukas Eder
b33bbcdf7c [#2049] Add gt() / ge() / lt() / le() to Row[N] types - Added
integration tests for RVE [>, >=, <, <=] (SELECT ...)
2012-12-24 14:35:17 +01:00
Lukas Eder
a2a32c71d5 [#2049] Add gt() / ge() / lt() / le() to Row[N] types 2012-12-24 14:20:17 +01:00
Lukas Eder
36027695f3 Regenerated SQLite schema 2012-12-24 14:19:44 +01:00
Lukas Eder
35bcc425a6 [#2053] Add is[Not]Null() to Row[N] types 2012-12-24 12:07:15 +01:00
Lukas Eder
b393354e54 Regenerated DB2 schema 2012-12-24 12:04:56 +01:00
Lukas Eder
7c9bc5c5fe Regenerated Postgres schema 2012-12-24 10:13:58 +01:00
Lukas Eder
d756297151 [#2044] Add various TableRecord.fetchParent(...), fetchChild(...) and
fetchChildren(...) methods to follow foreign key relationships
2012-12-22 20:39:49 +01:00
Lukas Eder
49ee1f98f4 [#2043] Remove generated navigation methods - Regenerated H2 and Oracle
schemas
2012-12-22 18:17:22 +01:00
Lukas Eder
e71d9444c2 [#2043] Remove generated navigation methods 2012-12-22 18:17:05 +01:00
Lukas Eder
5635339388 [#2042] Remove generated setters, setting foreign key values from
records - Regenerated H2 and Oracle schemas
2012-12-22 18:08:24 +01:00
Lukas Eder
9006d789a3 [#2025] Correctly handle multiple foreign keys defined on the same
column - Regenerated H2 and Oracle schemas
2012-12-22 18:01:57 +01:00
Lukas Eder
a0cd2916e2 [#2025] Correctly handle multiple foreign keys defined on the same
column
2012-12-22 17:56:17 +01:00
Lukas Eder
c6d0e065de [#2006] Interoperability issue with timestampDiff(t1, t2).le(new
DayToSecond(0, 0, 1)). SQL Server cannot bind interval data types -
Added failing test case for a future fix
2012-12-22 10:03:47 +01:00
Lukas Eder
fa7edefc65 [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes -
Added convenience method DataType.precision(int precision, int scale)
2012-12-22 08:39:06 +01:00
Lukas Eder
d7587ee4d7 [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes
- Adapted DataType.equals() and hashCode() to consider precision,
scale, and length
 - Consider precision, scale, and length when casting fields/values to a
custom DataType
2012-12-21 23:32:25 +01:00
Lukas Eder
8daa2803a9 Regenerated Postgres schema 2012-12-21 23:29:31 +01:00
Lukas Eder
aceb43dbd6 Regenerated HSQLDB schema 2012-12-21 22:55:23 +01:00
Lukas Eder
fa26d287bf [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes -
Regenerated H2 and Oracle schemata
2012-12-21 22:35:46 +01:00
Lukas Eder
70a0ab3f44 [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes
- Let code generator generate precision, scale, and length information
 - Let MetaDataFieldProvider read precision, scale, and length
information from JDBC meta data
2012-12-21 22:35:26 +01:00
Lukas Eder
a50307089d [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes
- Removed deprecated method from [SQLDialect]DataType
 - Regenerated various schemata
2012-12-21 21:09:57 +01:00
Lukas Eder
097bcbe772 Fixed some launch targets 2012-12-21 19:11:00 +01:00
Lukas Eder
2c51e655d6 Fixed warnings 2012-12-21 12:26:34 +01:00
Lukas Eder
bc04474956 Regenerated DB2 schema 2012-12-20 18:22:45 +01:00
Lukas Eder
007c35529a DB2 has its ways... Go figure. Out of temporary table space because of
3-4 bind variables in a UNION
2012-12-20 18:15:59 +01:00
Lukas Eder
5f8635908a Fixed wrong @Support(DB2) annotation for row value expression comparison
predicates and also relevant test case
2012-12-20 18:09:24 +01:00
Lukas Eder
1bbbf02937 Regenerated DB2 schema 2012-12-20 17:57:15 +01:00
Lukas Eder
47d94d7656 Derby schema regeneration 2012-12-20 17:53:24 +01:00
Lukas Eder
bc96789cf4 Added another compile-time type-check 2012-12-20 17:51:27 +01:00
Lukas Eder
55ff6f577f Deleted obsolete test scenario 2012-12-20 17:49:14 +01:00
Lukas Eder
6c17f5c6e1 Fixed bad test 2012-12-20 17:43:34 +01:00
Lukas Eder
2b28cbd64c HSQLDB schema regeneration 2012-12-20 17:34:30 +01:00
Lukas Eder
43417d5874 [#1178] Allow for treating Condition as Field<Boolean> 2012-12-20 17:30:18 +01:00
Lukas Eder
b7016bd581 [#1703] Add Executor.batchDelete(UpdatableRecord<?>...) to mass-delete a
set of UpdatableRecords
2012-12-20 16:29:06 +01:00
Lukas Eder
3fe9e89293 Fixed Postgres error handling after reinstall 2012-12-20 15:42:14 +01:00
Lukas Eder
c2c5f82b1a [#1689] Generate <E> E into(E) and <E> R from(E) methods to generated
records - Regenerated schema
2012-12-20 15:41:57 +01:00
Lukas Eder
d4da8c72b0 [#2028] Add Batch.size() to indicate the number of queries that will be
executed by a batch operation
2012-12-20 13:42:40 +01:00
Lukas Eder
2f427a4520 [#1549] Externalise connection lifecycle through new ConnectionProvider 2012-12-20 13:06:51 +01:00
Lukas Eder
0977fccd6d [#2001] Named Params are treated as null literals on right sides of
comparisons
2012-12-17 20:49:42 +01:00
Lukas Eder
56d1dd1250 [#2021] Add UpdatableRecord.refresh(Field<?>...) to allow for refreshing
a subset of the Record's values
2012-12-15 16:00:38 +01:00
Lukas Eder
31205edb76 [#2016] Bad parsing of MySQL ENUM literals by jooq-meta, if they contain
special characters - Added test data
2012-12-15 13:43:17 +01:00
Lukas Eder
90e135d013 [#1924] Add support for CUBRID 9.0's ENUM data type 2012-12-14 15:41:37 +01:00
Lukas Eder
1cfbcc6093 Fixed current_user after CUBRID reinstall 2012-12-14 15:27:21 +01:00
Lukas Eder
32f89104b1 Moved some methods 2012-12-14 13:09:27 +01:00
Lukas Eder
4fdf22e710 [#2000] Add Record.reset(), reset(Field<?>), reset(int), reset(String)
to restore original values in a record
2012-12-12 22:09:05 +01:00
Lukas Eder
092700e0ec [#1993] Bad code generated when the same table name exists in multiple
schemas in SQL Server - Regenerated schema
2012-12-12 20:44:11 +01:00
Lukas Eder
0fc7ff56ee [#1993] Bad code generated when the same table name exists in multiple
schemas in SQL Server
2012-12-12 20:43:32 +01:00
Lukas Eder
2f63650bb7 [#1999] Add Record.changed(boolean) changed(boolean, Field<?>)
changed(boolean, int) changed(boolean, String) as setters for the
changed flag
2012-12-12 19:35:00 +01:00
Lukas Eder
e4ed930fd7 [#1995] Record.original() values aren't updated after a Record.store()
operation
2012-12-09 22:33:28 +01:00
Lukas Eder
7a05f5711c Restored "DROP TABLE IF EXISTS t_658_xx" commands for interoperability
with 2.x branches
2012-12-09 22:19:32 +01:00
Lukas Eder
71a9ffecef Upgraded java library path for SQL Server re-install 2012-12-07 18:45:32 +01:00
Lukas Eder
a263c0d541 Fixed DB2 user name after reinstall 2012-12-07 12:44:39 +01:00
Lukas Eder
81f4c600bf Handle failing DROP MATERIALIZED VIEW command when setting up the Oracle
test schema
2012-12-07 12:25:14 +01:00
Lukas Eder
0077ab9f10 Fixed DB2 connection parameters after reinstall 2012-12-07 12:24:14 +01:00
Lukas Eder
6c3903ee57 Changed start() finish() methods to hold @BeforeClass and @AfterClass
annotations
2012-12-07 09:37:43 +01:00
Lukas Eder
9e9cdf5c8f [#1987] Allow for reading data from Iterables, arrays, Maps through
Record.from() - Added support for loading from arrays
2012-12-02 12:57:40 +01:00
Lukas Eder
b05ae01be9 [#1988] Add Record.fromArray() as the inverse operation of
Record.intoArray()
2012-12-02 12:53:22 +01:00
Lukas Eder
8f2633f5d9 [#1990] Add <T> T Record.original(Field<T>), original(int),
original(String) to get a field's original value
2012-12-02 12:28:01 +01:00
Lukas Eder
c6e3b61aca [#1989] Add Record.changed(Field<?>), changed(int), changed(String) to
check whether a single field's value has changed
2012-12-02 12:16:55 +01:00
Lukas Eder
66e4716794 [#1987] Allow for reading data from Iterables, arrays, Maps through
Record.from() - Enhanced from() to read maps
2012-12-02 12:09:04 +01:00
Lukas Eder
1adbf989e1 Ignore new Eclipse warning "potential resource leak". It seems to
enforce a very rigid resource lifecycle handling
2012-12-02 10:29:02 +01:00
Lukas Eder
e8b0133cdf [#1986] Add Record.fromMap() as the inverse operation of
Record.intoMap()
2012-11-30 12:01:09 +01:00
Lukas Eder
a209da8676 [#1636] Add jooq-meta support for querying the JDBC DatabaseMetaData API
- Fixed DECIMAL data type handling
2012-11-30 11:34:03 +01:00
Lukas Eder
073f90648f [#1636] Add jooq-meta support for querying the JDBC DatabaseMetaData API 2012-11-30 11:25:26 +01:00
Lukas Eder
c6468f6779 [#1972] Move MySQLFactory.md5() to Factory and simulate it for Oracle 2012-11-23 13:11:45 +01:00
Lukas Eder
cde26c3af9 [#1097] Add org.jooq.Catalog, a type modelling an entity combining
several org.jooq.Schema
- Added CatalogImpl
- Added getCatalogs() to Meta
2012-11-23 12:54:57 +01:00
Lukas Eder
02ccfc766d [#1968] Add org.jooq.Meta returned from Executor.meta() to return a
wrapped JDBC DatabaseMetaData object
2012-11-23 12:41:19 +01:00
Lukas Eder
4bcc9f5524 Updated launch targets 2012-11-23 11:55:36 +01:00
Lukas Eder
f489e76f61 [#1649] Remove support for code generation from pre-jOOQ 2.0 .properties
file - Migration of .properties files
2012-11-11 14:36:32 +01:00
Lukas Eder
25e088c257 [#1919] Support higher degrees of Row[N] and Record[N] types. Match
Scala's max degree of 22 - Regenerated H2, Oracle, Postgres meta data
2012-11-11 12:41:09 +01:00
Lukas Eder
d94d8cba3c [#1690] Add UpdatableRecord.key() returning a Record holding PK values 2012-11-10 11:18:07 +01:00
Lukas Eder
3522e9b048 Funny Toad Extensions update... 2012-11-10 11:16:48 +01:00
Lukas Eder
fd8fe4c589 [#1951] Add support for SQL Server WITH (...) table hints 2012-11-09 17:16:48 +01:00
Lukas Eder
01f872f06f [#1958] Bad SQL rendered for OVER (ORDER BY [ some-function ]) for SQL
Server and Sybase
2012-11-09 15:38:37 +01:00
Lukas Eder
81d18ecf06 [#1954] Bad SQL rendered when combining ORDER BY [ some-function ] with
LIMIT .. OFFSET in DB2, SQL Server - Workaround for DB2: Avoid ORDER BY
clause in ROW_NUMBER() ranking function
2012-11-09 13:39:54 +01:00
Lukas Eder
4af0a57485 [#1954] Bad SQL rendered when combining ORDER BY [ some-function ] with
LIMIT .. OFFSET in DB2, SQL Server - Added integration test
2012-11-09 13:08:34 +01:00
Lukas Eder
35b043286d [#1931] Code generator improvements
- Simplified JavaGenerator by removing unnecessary abstractions
- Re-ordered methods in generated Record classes
- Removed dead code
2012-11-04 17:28:30 +01:00
Lukas Eder
51733742b8 [#1934] Improve generated Record Javadoc 2012-11-04 14:03:44 +01:00
Lukas Eder
ecc9a835b7 [#1932] Generate Javadocs for Table constructors 2012-11-04 11:23:42 +01:00
Lukas Eder
b3cd1c5cdf [#1931] Code generator improvements
- Added String.format() support to GenerationWriter
- Moved Javadoc printing to JavaWriter
- Separated Java writing (JavaWriter) from general writing
(GeneratorWriter)
- Rewrote some generation logic
- Added some convenience to GeneratorStrategy
- Regenerated H2, Oracle, Postgres schemata
2012-11-03 16:00:12 +01:00
Lukas Eder
3ff3995fac [#1927] Problems with escaping backslashes in CSV export/import 2012-11-02 16:09:58 +01:00
Lukas Eder
7302d07341 [#1923] Add Record.intoResultSet() to create a single-record JDBC
ResultSet from a Record
2012-11-02 14:04:33 +01:00
Lukas Eder
27a3073b10 [#1917] Add support for CUBRID 9.0's new features - Added and documented
support for CUBRID MERGE statement (Oracle syntax extensions)
2012-11-02 13:31:41 +01:00
Lukas Eder
4233980896 Let PrettyPrinter hook into renderEnd, rather than executeStart 2012-11-02 13:25:07 +01:00
Lukas Eder
4aa381f842 [#1917] Add support for CUBRID 9.0's new features - Added support and
documentation for CUBRID's MERGE support
2012-11-02 13:17:09 +01:00
Lukas Eder
eec85836c5 [#1917] Add support for CUBRID 9.0's new features - Added and documented
support for CUBRID window functions
2012-11-02 13:05:33 +01:00
Lukas Eder
4c224b77c6 Reordered some test methods 2012-11-02 12:31:01 +01:00
Lukas Eder
54c764ae9c [#1917] Add support for CUBRID 9.0's new features - Upgrade database 2012-11-02 12:06:27 +01:00
Lukas Eder
b32cf31f5b [#915] Add <T1, T2, ..., T[N]> Table<Record[N]<T1, T2, ..., T[N]>>
Factory.values(Row[N]<T1, T2, ..., T[N]>...), to create ad-hoc tables
from data
2012-10-31 21:58:00 +01:00
Lukas Eder
36c3f04a00 Fixed formatting 2012-10-31 21:18:11 +01:00
Lukas Eder
5e9e00a973 [#1918] Let generated Records implement Record1, Record2, ...,
Record[N] if applicable
2012-10-31 21:14:23 +01:00
Lukas Eder
74e16f05b8 Added another test case 2012-10-30 20:42:30 +01:00
Lukas Eder
6543cb0f42 [#1583] Add support for row expressions in UPDATE statements: UPDATE ..
SET (A, B, C) = (SELECT X, Y, Z)
2012-10-29 21:23:01 +01:00
Lukas Eder
67a2c5f6ee [#1905] Add Row[N].equal(Select<? extends Record[N]>) and similar
methods
2012-10-28 22:16:07 +01:00
Lukas Eder
345db92b31 [#1875] Add generic <R extends Record> type to SelectXXXStep DSL
type hierarchy for increased tuple type-safety
2012-10-28 14:52:53 +01:00
Lukas Eder
ee0a230c7f [#1902] Duplicate SELECT API between Executor and Factory 2012-10-28 10:51:22 +01:00
Lukas Eder
bd7d135140 [#1697] Add Factory.all() and Factory.any() to create quantified
expressions
2012-10-27 22:31:43 +02:00
Lukas Eder
113cb2c215 [#1887] Remove all deprecated code
- Improved AbstractDelegatingQuery type hierarchy
- Removed QueryPartInternal.getSQL() methods
2012-10-27 20:20:07 +02:00
Lukas Eder
e506d9de65 [#1533] Extract Executor API from Factory. Let Factory contain only
static QueryPart factory methods
2012-10-26 23:03:04 +02:00
Lukas Eder
09e06b8555 Added some Javadoc 2012-10-26 22:54:40 +02:00
Lukas Eder
1444a0b3cb [#1894] Remove constructors from dialect-specific factories 2012-10-26 21:52:04 +02:00
Lukas Eder
c7936e68bb [#1890] Bad Postgres array serialisation when " or \ characters are
contained in a String[] - Added integration test
2012-10-26 18:56:31 +02:00
Lukas Eder
70a5727b64 [#1254] Move org.jooq.tools.unsigned contents to org.jooq.types (along
with the new INTERVAL types)
2012-10-26 18:31:36 +02:00
Lukas Eder
f4e7c57732 [#1887] Remove all deprecated code 2012-10-26 18:25:34 +02:00
Lukas Eder
65e292f261 [#1740] Remove support for generated master data enums 2012-10-26 17:02:06 +02:00
Lukas Eder
4a1fc9cd8a [#1887] Remove all deprecated code 2012-10-26 15:54:25 +02:00
Lukas Eder
0c61181146 Added TODO 2012-10-26 13:33:15 +02:00
Lukas Eder
e4e48a69e0 Fixed test 2012-10-26 13:28:09 +02:00
Lukas Eder
d24a06f215 Improved PrettyPrinter 2012-10-26 13:19:42 +02:00
Lukas Eder
2cf3d35843 Fixed test cases 2012-10-26 12:49:45 +02:00
Lukas Eder
4bca561ec7 Fixed test 2012-10-26 12:29:43 +02:00
Lukas Eder
0d482d24e9 [#1868] ExecuteListener.end() is not called when using
ResultQuery.fetchLazy() - Disabled integration test
2012-10-25 23:38:27 +02:00
Lukas Eder
4a3e7f6039 [#1876] NULL constraint violation when storing a copied record 2012-10-22 23:46:23 +02:00
Lukas Eder
40e60a8de6 [#1868] ExecuteListener.end() is not called when using
ResultQuery.fetchLazy() - Fixed testcase
2012-10-21 20:01:24 +02:00
Lukas Eder
f01d118ced [#1868] ExecuteListener.end() is not called when using
ResultQuery.fetchLazy() - Added integration test
2012-10-21 19:20:05 +02:00
Lukas Eder
ee35c6481d Re-added execute logging in integration tests 2012-10-21 18:24:04 +02:00
Lukas Eder
15f1c51043 [#1872] Improve jOOQ's RenderContext pretty printing behaviour 2012-10-21 15:13:00 +02:00
Lukas Eder
387935ef72 Avoid cancelling long-running queries in most dialects. The test case
might run forever
2012-10-21 14:01:50 +02:00
Lukas Eder
988ae727f7 [#1871] Add some documentation indicating jOOQ's pretty printing
rendering feature
2012-10-21 12:17:39 +02:00
Lukas Eder
ae6b547870 Fixed some warnings 2012-10-19 19:21:00 +02:00
Lukas Eder
3eb55f8295 [#1839] Deprecate the various Result.getValuesAs[Type] and
Record.getValueAs[Type] methods
2012-10-19 17:57:51 +02:00
Lukas Eder
8cff3669fa [#1840] Deprecate org.jooq.Store 2012-10-19 17:24:26 +02:00
Lukas Eder
345ee6070e Fixed a warning 2012-10-19 17:20:41 +02:00
Lukas Eder
dfb0ae8717 [#1855] Add Query.cancel() to support for interrupting statements
prematurely
2012-10-19 16:38:55 +02:00
Lukas Eder
675adc205f [#385] Allow for keeping open statements in a Query 2012-10-19 15:31:30 +02:00
Lukas Eder
aab4c5737c [#1866] Deprecate [Schema-Name]Factory, remove reference to it from the
tutorials
2012-10-12 18:22:22 +02:00
Lukas Eder
eb0cfe4a68 [#1857] NPE in org.jooq.impl.TableImpl and org.jooq.SchemaMapping caused
by not threadsafe code in SchemaMapping.
2012-10-12 14:56:29 +02:00
Lukas Eder
2ee9b459bb [#1472] Move org.jooq.tools.debug API from jOOQ Console to core - After
experimenting with such APIs, Christopher Deckers and I came to the
conclusion that the debugger API is too specialised to be put into the
core. This ticket will be reverted
2012-10-12 14:09:27 +02:00
Lukas Eder
cdccbceb61 [#1710] Add <E> Map<Record, List<E>> ResultQuery.fetchGroups(Field<?>[],
Class<E>) - Aligned API with other fetchGroups() methods
2012-10-12 14:03:15 +02:00
Ivan Dugic
85488a5cee [1710] Add <E> Map<List<?>, List<E>> ResultQuery.fetchGroups(Field<?>[],
Class<E>)
2012-10-08 19:51:23 +02:00
Lukas Eder
e6a1fefb97 [#1860] Bad Results returned from plain SQL "select *" queries, if
several selected columns share the same name - Added test case
2012-10-07 13:37:05 +02:00
Lukas Eder
0526ac1bc6 [#1854] Add ResultQuery.maxRows(int) to limit the number of actually
fetched records
[#1856] Add Query.queryTimeout(int) to support for JDBC's
Statement.setQueryTimeout()
2012-10-07 12:36:53 +02:00
Lukas Eder
69187ee0ed [#1756] Add RecordMapper<E>, similar to RecordHandler<R>, mapping
records to custom types
2012-09-28 18:36:13 +02:00
Lukas Eder
d82d95ef78 [#1848] Add Record.changed() to indicate whether a Record contains
"dirty" values
2012-09-28 17:41:09 +02:00
Lukas Eder
f23491be9e [#1849] Add Record.original() to obtain the originally fetched values
from a Record - Added an additional test
2012-09-28 17:30:11 +02:00
Lukas Eder
9f2a848b07 [#1849] Add Record.original() to obtain the originally fetched values
from a Record
2012-09-28 17:16:40 +02:00
Lukas Eder
e976d79243 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core
- Added Debugger.executor(), to re-enable jOOQ Console Editor
functionality
 - Renamed DebuggerFactory to DebuggerAPI (may be improved)
 - Reverted Settings flags to activate the Debugger Server
 - Added explicit API in DebuggerAPI to start / stop the Debugger Server
 - Added DebuggerAPI.debug property for global activation / deactivation
of debugging
2012-09-28 15:57:36 +02:00
Lukas Eder
a15c83fc25 [#1844] Add Table<Record> Table.join(TableLike<?>, JoinType) to allow
for dynamic joining
2012-09-26 22:38:44 +02:00
Lukas Eder
20d9d02cdc [#1472] Move org.jooq.tools.debug API from jOOQ Console to core - Added
QueryExecutor.schemata(), .tables(Schema), .fields(Table) in order to
query for meta data
2012-09-24 23:33:49 +02:00
Lukas Eder
837a6fe600 Fixed compilation error 2012-09-23 12:31:46 +02:00
Lukas Eder
f9f351762c [#1709] Add Map<Record, Result<R>> ResultQuery.fetchGroups(Field<?>[])
- Changed result Map key from List<?> to Record
 - Fixed some debugger-related issues
2012-09-23 12:24:07 +02:00
Lukas Eder
323a62e426 [#1816] Add support for materialized views in Oracle's code generator -
Regenerated test classes
2012-09-22 14:15:48 +02:00
Lukas Eder
0640efc113 [#1816] Add support for materialized views in Oracle's code generator 2012-09-22 14:15:06 +02:00
Lukas Eder
b1ff568f41 [#1837] Add support for @java.beans.ConstructorProperties when
fetching into immutable POJOs
2012-09-22 13:44:48 +02:00
Lukas Eder
dda85af4b4 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core -
Restored match count feature
2012-09-19 16:37:28 +02:00
Lukas Eder
142594e67d [#1472] Move org.jooq.tools.debug API from jOOQ Console to core -
Added instead processor
2012-09-19 16:02:43 +02:00
Lukas Eder
eaf50d8b57 [#1829] Factory.execute(String) may cause errors when plain SQL
returns results
2012-09-19 16:02:06 +02:00
Lukas Eder
30121c3da2 Merge branch 'master' of https://github.com/jOOQ/jOOQ.git 2012-09-18 22:46:48 +02:00
Ivan Dugic
45e6356e4e [#1810 Add <T, E> Map<T, E> ResultQuery.fetchMap(Field<T>, Class<E>) and
Result.intoMap(Field<T>, Class<E>)]
2012-09-18 22:28:03 +02:00
Lukas Eder
337b158648 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core - Added
QueryOrigin property to QueryLog
2012-09-16 23:37:41 +02:00
Lukas Eder
d9bf1c5703 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core 2012-09-16 18:10:06 +02:00
Lukas Eder
5b40017df6 [#1819] MappingException in Record.into(Class), when POJO setters
have applicable names but non-applicable argument types
2012-09-14 10:33:46 +02:00
Lukas Eder
bac4bb1178 [#1818] SQL Server "cannot insert explicit value for identity column
when IDENTITY_INSERT is set to OFF." - Added test case
2012-09-14 09:47:05 +02:00
Lukas Eder
b2743b6d9a Improved toString() method 2012-09-12 19:47:14 +02:00
Ivan Dugic
cd05526a97 [#1709] Add Map<List<?>, Result<R>> ResultQuery.fetchGroups(Field<?>...)
Update
2012-09-11 21:49:28 +02:00
Ivan Dugic
e127a11432 [#1709] Add Map<List<?>, Result<R>> ResultQuery.fetchGroups(Field<?>...) 2012-09-10 22:25:49 +02:00
Lukas Eder
7c60d72448 [#1472] Add a Settings.executeDebugging property, and move
server-side Console logic to core

 - Created org.jooq.tools.debug API package
 - Created org.jooq.tools.debug.impl implementation package
 - Resolved package-dependencies to hide implementation facts from
the Console client implementation
2012-09-09 14:50:39 +02:00
Lukas Eder
a96d960cb7 Test console shouldn't run in-process 2012-09-09 12:15:36 +02:00
Lukas Eder
99aaad3022 Forgotten checkin 2012-09-09 11:20:51 +02:00
Lukas Eder
d550287d4d Extracted local variable to global constant 2012-09-08 13:09:40 +02:00
Lukas Eder
0b9a667ae8 Improved POJO-related test cases. Don't catch ReflectException to
discover whether POJOs are available.
2012-09-08 10:12:41 +02:00
Lukas Eder
cd3d563e8d [#1708] Add <T, E> Map<T, List<E>> ResultQuery.fetchGroupsInto(Field<T>,
Class<E>)

- Fixed test for those test configurations, that do not generate POJOs
- Added more regression tests (not just checking for getId(), but also
getTitle()). This will be important for optimisation tasks like #1808
2012-09-08 10:01:46 +02:00
Ivan Dugic
d8aac367f5 [#1708] Add <T, E> Map<T, List<E>> ResultQuery.fetchGroupsInto(Field<T>,
Class<E>)
2012-09-07 21:54:01 +02:00
Lukas Eder
eeaa60bee8 [#600] Add support for Oracle / SQL Standard linear regression functions 2012-09-07 16:30:45 +02:00
Lukas Eder
25996db3f7 [#1719] Make logic from ResultQuery.fetchArray() available in
Result.intoArray()
2012-09-07 12:09:09 +02:00
Lukas Eder
54e33892c0 [#1802] Result.into(Table) doesn't work correctly, if the same field
name appears twice in Result
2012-09-07 10:52:47 +02:00
Lukas Eder
f5235455e7 [#1802] Result.into(Table) doesn't work correctly, if the same field
name appears twice in Result - Added integration test
2012-09-06 23:05:53 +02:00
Lukas Eder
a32cc252ef [#1797] SQL syntax errors when plain SQL contains comments with question
marks and SQL is executed as StatementType.STATIC_STATEMENT
2012-09-05 20:35:55 +02:00
Lukas Eder
310c62fbaf Merge branch 'master' of https://github.com/idugic/jOOQ into idugic-master 2012-09-04 23:32:57 +02:00
Ivan Dugic
3007782fc8 Removed jOOQ prefix from test cases and launch configuration. 2012-09-04 22:14:40 +02:00
Ivan Dugic
9242a5c510 [#1674] Export data types with Result.formatXML() and
Result.formatJSON() exports
2012-09-04 21:25:03 +02:00
Lukas Eder
3eb857e196 [#1058] Add <T1, T2, .. TN> Factory.row(T1, T2, .. TN) and
Factory.row(Field<T1>, Field<T2> ... Field<TN>) to allow for creating
tuples / rows - Renamed "TUPLE" into "ROW" to follow the SQL standard
2012-09-04 20:39:15 +02:00
Lukas Eder
b3ef0ee3f7 [#1788] Verify @Support annotation correctness for FOR UPDATE clause -
Fixed tests. FOR UPDATE .. OF is executed by default, skipped only
explicitly
2012-09-02 15:32:23 +02:00
Lukas Eder
d9c8a91a83 [#1786] Fix SEQUENCE support for Firebird 2012-09-02 14:46:33 +02:00
Lukas Eder
a6b69a6edf [#1245] - Improve formatting for DECIMAL data types in Result.format() -
Improved test case, removed trimming of trailing zeroes
2012-09-02 09:40:23 +02:00
Lukas Eder
d1c81e84b5 Merge pull request #1785 from idugic/master
#1245
2012-09-01 12:16:43 -07:00
Ivan Dugic
d1142d2a62 [#1245] - Improve formatting for DECIMAL data types in Result.format().
Nicely align the decimal point and reserve space on both sides
2012-09-01 18:51:12 +02:00
Lukas Eder
172d2e80fa [#1728] Add support for the MySQL COUNT(DISTINCT expr, expr...)
aggregate function syntax
2012-09-01 17:58:18 +02:00
Lukas Eder
26eb0bda24 [#1783] Generate @SuppressWarnings("all") in jOOQ-generated artefacts -
Regenerated all schemata
2012-09-01 12:09:57 +02:00
Lukas Eder
27ac37a751 [#1077] Add support for the SQL standard OVERLAPS predicate 2012-08-30 22:51:20 +02:00
Lukas Eder
81d68ad165 [#1766] Simulate tuple comparisons where they are not supported 2012-08-30 19:50:42 +02:00
Lukas Eder
490478cd38 [#1768] NullPointerException when DAO.fetchOne() returns no record 2012-08-30 18:39:19 +02:00
Lukas Eder
69a23ecb0d [#1058] Add <T1, T2, .. TN> Factory.tuple(T1, T2, .. TN) and
Factory.tuple(Field<T1>, Field<T2> ... Field<TN>) to allow for creating
tuples
2012-08-29 22:26:19 +02:00
Lukas Eder
1f5a3f0b89 Upgraded H2 2012-08-29 21:08:57 +02:00
Lukas Eder
69a9ba25e9 Release 2.5.0 - Improved jOOQHSQLDBTest2. Match HSQLDB with H2, instead
of Oracle
2012-08-26 13:05:56 +02:00
Lukas Eder
270dc67946 Release 2.5.0 - Fix "testBatchSingle()" for Firebird 2012-08-26 12:54:30 +02:00
Lukas Eder
292a1d9a2d Release 2.5.0 - Fixed "testPlainSQLResultQuery()" for Firebird 2012-08-26 12:43:39 +02:00
Lukas Eder
f4214e85b1 Release 2.5.0 - Fixed "testCustomSQL()" integration test for Firebird 2012-08-26 12:40:49 +02:00
Lukas Eder
10f8231355 Release 2.5.0 - Factored empty group by tests out of "testGrouping()" 2012-08-26 12:33:31 +02:00
Lukas Eder
f657df4cac Release 2.5.0 - Fixed "testManyVarcharBindValues()" test to respect
CUBRID's
undocumented limit of 325 projected fields
2012-08-26 12:25:43 +02:00
Lukas Eder
b38d698ae9 [#1741] Deprecate org.jooq.MasterDataType 2012-08-25 17:37:13 +02:00
Lukas Eder
8b605c86b5 [#1736] Deprecate TableRecord.{store|refresh|delete}Using() methods as
being part of jOOQ's internal API
2012-08-25 15:05:46 +02:00
Lukas Eder
f2ff0c77e2 [#430] Add support for the Firebird database - Changed connection URL to
fix binding of null values
2012-08-25 11:35:44 +02:00
Lukas Eder
8db3c0a7bf [#430] Add support for the Firebird database - Fixed
testFetchResultSet() integration test
2012-08-24 11:44:53 +02:00
Lukas Eder
85d9f8ffc5 [#430] Add support for the Firebird database - Fixed handling of
BigDecimal data types
2012-08-24 11:43:24 +02:00
Lukas Eder
d57f8ffabc [#430] Add support for the Firebird database - Fixed meta model tests 2012-08-24 11:23:20 +02:00
Lukas Eder
1c246e81e4 [#430] Add support for the Firebird database - Skip testSchemaMapping()
integration test
2012-08-24 11:20:44 +02:00
Lukas Eder
47111bd0f3 [#430] Add support for the Firebird database - Skip testUse()
integration test
2012-08-24 11:20:18 +02:00
Lukas Eder
9fb61a5089 [#430] Add support for the Firebird database - Fixed numeric data types 2012-08-24 10:47:25 +02:00
Lukas Eder
5cf50f1b55 [#430] Add support for the Firebird database - Added SEQUENCE support 2012-08-24 10:21:53 +02:00
Lukas Eder
2de3f18021 [#430] Add support for the Firebird database - Fixed UK and FK behaviour 2012-08-24 10:10:45 +02:00
Lukas Eder
3c8be0ed30 [#430] Add support for the Firebird database - Fixed data types 2012-08-24 08:43:24 +02:00
Lukas Eder
a243b86fc2 [#430] Add support for the Firebird database - initial code generation
contribution
2012-08-24 01:10:27 +02:00
Lukas Eder
cfd5ad417e [#430] Add support for the Firebird database - Added initial code
generation contribution
2012-08-24 01:05:42 +02:00
Lukas Eder
da54e2db78 [#1726] Add more integration tests to check for VARCHAR bind value
casting limits
2012-08-23 19:27:08 +02:00
Lukas Eder
e596f68368 [#1726] Add more integration tests to check for VARCHAR bind value
casting limits
2012-08-22 18:18:02 +02:00
Lukas Eder
d4e5e6c839 [#430] Add support for the Firebird database - Skipped window function
test cases
2012-08-19 18:47:49 +02:00
Lukas Eder
50f99b3bd8 [#430] Add support for the Firebird database - Fixed LIKE_REGEX() test
case
2012-08-19 18:47:03 +02:00
Lukas Eder
58fbe956fa Refactored string function tests into dedicated tests per function 2012-08-19 18:34:19 +02:00
Lukas Eder
dfb0bfda4c [#430] Add support for the Firebird database - Fixed INSERT .. RETURNING 2012-08-19 17:39:40 +02:00
Lukas Eder
7161ccf131 [#430] Add support for the Firebird database - Fixed FOR UPDATE tests 2012-08-19 17:29:51 +02:00