Commit Graph

1321 Commits

Author SHA1 Message Date
Lukas Eder
f2aa2b0b5f [#2492] MS Access support will be implemented in a later version than
3.2
2013-08-23 17:18:16 +02:00
Lukas Eder
ca3da26634 [#2707] PostgreSQL ENUM ordering is inconsistent with the database -
Regenerated schema
2013-08-23 16:51:59 +02:00
Lukas Eder
dfd1f10778 [#2699] Generate DEFAULT and NULL metadata information on generated
DataTypes - Regenerated database
2013-08-19 16:08:28 +02:00
Lukas Eder
70fd391aed [#2603] Add <includeExcludeColumns/> flag to code generation
configuration to indicate that <includes/> and <excludes/> shall also
match column names
2013-08-16 14:55:49 +02:00
Lukas Eder
66301d6574 [#2665] Added example for INSERT query transformation
* Added example integration test for INSERT query transformation
 * Enhanced VisitContext to enable patching of QueryParts while
traversing the tree
2013-08-16 14:00:23 +02:00
Lukas Eder
29140dfbc8 [#2665] Enhanced VisitListener example to transform UPDATE and DELETE
statements
2013-08-16 10:57:48 +02:00
Lukas Eder
08aa25a872 [#2665] Force bind variable inlining 2013-08-15 11:36:37 +02:00
Lukas Eder
93c1fa376c Merge branch 'master' of git@github.com:jOOQ/jOOQ.git
Conflicts:
	jOOQ-test/src/org/jooq/test/_/testcases/VisitListenerTests.java
2013-08-15 11:15:52 +02:00
Lukas Eder
446d49d767 [#2665] Added more Javadocs 2013-08-15 11:12:51 +02:00
Lukas Eder
34d3a741b1 [#2665] Added test example for SQL transformation with TABLE_ALIAS
involved

 * Added test example
 * Renamed VisitContext.visiting() to queryPart()
 * Added VisitContext.queryParts()
2013-08-15 11:09:18 +02:00
Lukas Eder
3160cf7926 Added TBook_CO_AUTHOR_ID() to test API 2013-08-15 11:07:38 +02:00
Lukas Eder
1c4c459076 Fixed MySQL WITH ROLLUP test case. 2013-08-12 15:52:22 +02:00
Lukas Eder
b00e018701 @@sql_mode = 'NO_BACKSLASH_ESCAPES' causes more headaches than it solves 2013-08-12 15:44:31 +02:00
Lukas Eder
983e9d2b5b [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Improved integration test to transform also nested selects, joins and
derived tables.
2013-08-12 13:14:49 +02:00
Lukas Eder
6823c070e2 [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

* Added integration test for query manipulation
2013-08-05 17:04:42 +02:00
Lukas Eder
e0a6ab102e [#2010] Added failing integration test for batch store operations, when
used with RecordListeners
2013-08-05 16:17:48 +02:00
Lukas Eder
5b4cf0924c [#2010] Added support for DELETE event. Slightly changed STORE event
semantics
2013-08-05 16:06:42 +02:00
Lukas Eder
1595f09690 [#2010] Implemented INSERT, UPDATE, STORE lifecycle events 2013-08-05 15:53:37 +02:00
Lukas Eder
290601afce [#2010] Add listener API to Record / UpdatableRecord
* Added support for REFRESH event
2013-08-05 15:30:10 +02:00
Lukas Eder
ee9f1fed76 [#2010] Add listener API to Record / UpdatableRecord
* Implemented record loading lifecycle events
2013-08-05 15:00:55 +02:00
Lukas Eder
0f4297cc97 [#2669] Fixed this issue by setting @@sql_mode = 'NO_BACKSLASH_ESCAPES' 2013-08-01 18:53:25 +02:00
Lukas Eder
bf7650e2d0 [#2669] Bad string literal escaping for MySQL when creating literals
like 'car\' - Added failing test case
2013-08-01 18:01:10 +02:00
Lukas Eder
33361455c5 [#2666] Pull up RenderContext.sql(QueryPart) and
BindContext.bind(QueryPart) to Context.visit(QueryPart)
2013-08-01 15:32:25 +02:00
Lukas Eder
83d9fe33a9 [#2626] Hide current Template implementation from public. This may not
make it into jOOQ 3.2
2013-07-30 16:58:47 +02:00
Lukas Eder
1798c7afe1 [#2626] Add org.jooq.Template for custom SQL templating
And also:
* [#2630] Add DSL.queryPart(String, Object...) and similar methods to
create simple plain SQL query parts
2013-07-10 16:39:28 +02:00
Lukas Eder
75b7f54c70 [#2619] Add an example ExecuteListener, showing how UPDATE and DELETE
statements without WHERE clause can be aborted
2013-07-07 12:46:27 +02:00
Lukas Eder
2a426b9471 [#2613] The batch INSERT query example in the manual is no longer
correct with jOOQ 3.x - Added some integration tests
2013-07-06 13:35:30 +02:00
Lukas Eder
e60dc20866 [#2608] Error in code generator when the sqlite_sequence table is
missing
2013-07-05 09:56:23 +02:00
Lukas Eder
c39a9ce700 [#2534] Correctly handle Oracle BLOB and CLOB data types, when fetched
through plain SQL - Added integration tests
2013-07-04 16:16:22 +02:00
Lukas Eder
753d5f367d [#2534] Correctly handle Oracle BLOB and CLOB data types, when fetched
through plain SQL - Added failing integration test
2013-07-04 16:09:06 +02:00
Lukas Eder
690a17277d [#1079] Add support for Oracle's FLASHBACK QUERY clause 2013-07-04 12:16:32 +02:00
Lukas Eder
604a73b7b8 [#2606] Distinguish ORACLE10G, ORACLE11G, ORACLE12C SQLDialects within
the ORACLE family
2013-07-04 10:49:07 +02:00
Lukas Eder
e811cfd66d Fixed test for SQL Server 2013-07-04 10:47:25 +02:00
Lukas Eder
297db8be93 [#2581] Deprecate fetchLater() and FutureResult<R> 2013-07-04 09:39:10 +02:00
Lukas Eder
2256a01d62 [#2577] Skip the test for Sybase 2013-07-03 17:11:59 +02:00
Lukas Eder
b8013f3cf0 Fixed integration test for Sybase 2013-07-03 17:04:17 +02:00
Lukas Eder
3a3a1cd62f [#2591] Added failing integration test 2013-07-03 16:50:49 +02:00
Lukas Eder
f01cbe9798 [#2492] Add support for the MS Access database - Fixed some compilation
issues in the Access integration
2013-07-03 14:47:24 +02:00
Lukas Eder
0a169d6545 Resolved compile-time ambiguity 2013-07-03 14:45:54 +02:00
Lukas Eder
f08445a838 [#2492] Add support for the MS Access database - More fixes to the
Access integration
2013-07-02 22:37:01 +02:00
Lukas Eder
b5a00d70f7 [#2594] Regenerated Access database 2013-07-02 22:36:07 +02:00
Lukas Eder
088160e24d [#2593] Add Meta.getPrimaryKeys() 2013-07-02 21:59:41 +02:00
Lukas Eder
8ef4103416 [#2492] Add support for the MS Access database - First time code
generation
2013-07-02 21:27:02 +02:00
Lukas Eder
e25b92d711 [#2492] Add support for the MS Access database - Initial setup 2013-07-02 21:26:47 +02:00
Lukas Eder
19f9697cab [#2582] Added an integration test for a CREATE VIEW statement via jOOQ 2013-07-02 15:29:29 +02:00
Lukas Eder
29c68da044 Fixed test2 schema for MySQL 2013-06-30 14:49:30 +02:00
Lukas Eder
3a22a9ee51 Fixed test that doesn't enforce resetting of data 2013-06-30 13:58:19 +02:00
Lukas Eder
d10563ae8c Skip test if no stored functions are supported 2013-06-30 13:37:04 +02:00
Lukas Eder
d74988011f Ignore unreliable Eclipse resource leaks warnings 2013-06-30 13:18:57 +02:00
Lukas Eder
25f03028a5 [#2569] Error when rendering SQL Server procedures with
Settings.renderSchema == false
2013-06-29 18:19:44 +02:00
Lukas Eder
982e3c3107 [#2311] [#2571] Add Configuration.recordMapperProvider() to override
jOOQ's internal default ReflectionMapper

* [#2311] Add Configuration.recordMapperProvider() to override jOOQ's
internal default ReflectionMapper
* [#2571] Add a new RecordType<R extends Record> type to make up for the
missing recursive type definition on Record
2013-06-29 18:02:17 +02:00
Lukas Eder
bc8cdb6e23 [#833] Add integration tests for both jconn3 and jTDS JDBC drivers for
Sybase and SQL Server
2013-06-28 14:07:08 +02:00
Lukas Eder
a4eded5b46 [#2566] Upgrade integration test jTDS version to 1.3.1 2013-06-28 14:06:18 +02:00
Lukas Eder
fc54860099 [#2058] Add support for the MariaDB database 2013-06-28 13:34:35 +02:00
Lukas Eder
55a9fd6183 [#742] Improve MySQL Stored Procedure support using MySQL 5.5's
INFORMATION_SCHEMA.PARAMETERS dictionary table - Regenerated database
2013-06-23 14:48:24 +02:00
Lukas Eder
e5650e88a9 [#742] Improve MySQL Stored Procedure support using MySQL 5.5's
INFORMATION_SCHEMA.PARAMETERS dictionary table
2013-06-23 14:48:15 +02:00
Lukas Eder
82f49ed0e1 [#2412] jOOQ Meta does not recognise non-uppercase IN, OUT, INOUT
keywords in MySQL stored procedures - Regenerated schema
2013-06-23 14:15:47 +02:00
Lukas Eder
48a3f2bd2a [#2412] jOOQ Meta does not recognise non-uppercase IN, OUT, INOUT
keywords in MySQL stored procedures
2013-06-23 14:14:33 +02:00
Lukas Eder
be2cc18510 [#2135] Postgres ENUM data type isn't supported correctly, if the
ENUM needs full qualification - Regenerated databases
2013-06-23 13:50:29 +02:00
Lukas Eder
591afd7fcb [#2135] Postgres ENUM data type isn't supported correctly, if the
ENUM needs full qualification
2013-06-23 13:50:07 +02:00
Lukas Eder
2e6c1362c6 [#2500] Error when selecting from YEAR(4) data type in MySQL - Added
failing integration test
2013-06-22 13:20:20 +02:00
Lukas Eder
f1fdfe18ba [#2531] Add integration tests mapping binary(16) to java.util.UUID 2013-06-22 12:24:48 +02:00
Lukas Eder
ca19cb98e9 [#2528] Combining renderFormatted with inlined bind variables will
change bind values when they contain newlines
2013-06-22 11:41:32 +02:00
Lukas Eder
c7a068def2 [#2535] Convert.convert(Object, Class) should support simple casting 2013-06-22 09:27:36 +02:00
Lukas Eder
b8371015f7 [#1952] Add support for SQL Server OPTION (...) query hints 2013-06-21 22:55:40 +02:00
Lukas Eder
79950eef77 [#1885] Add test to count opening and closing of Statements and
ResultSets by jOOQ
2013-06-15 10:39:00 +02:00
Lukas Eder
e718d81204 [#1885] [#2523] Statement.close() may be called upon previously
closed statements

* [#1885] Add test to count opening and closing of Statements and
ResultSets by jOOQ
* [#2523] Statement.close() may be called upon previously closed
statements
2013-06-14 18:18:09 +02:00
Lukas Eder
25a7f794b3 [#2519] Add Record.from(Object, Field<?>...) from(Object,
String...), from(Object, int...) to copy only a select set of values
from a POJO, Array, Map
2013-06-14 11:16:13 +02:00
Lukas Eder
5d327a04ab [#2502] [#2515] Code generation fixes - Regenerated test data
* [#2502] Code generation fails to generate valid java for stored
procedures that accept parameters named configuration.
* [#2515] Compilation errors when generating code for artefacts that
differ only by a trailing underscore(s): A and A_ and A__
2013-06-10 21:43:52 +02:00
Lukas Eder
69518e2971 [#2502] [#2515] Code generation fixes - Added test artefacts
* [#2502] Code generation fails to generate valid java for stored
procedures that accept parameters named configuration.
* [#2515] Compilation errors when generating code for artefacts that
differ only by a trailing underscore(s): A and A_ and A__
2013-06-10 21:42:56 +02:00
Lukas Eder
297a6ae98c [#2509] Expose CHECK constraints in jOOQ-meta 2013-06-09 14:11:38 +02:00
Lukas Eder
ce7a71b346 [#1846] [#2265] Reverted changes for 3.1 2013-06-05 09:42:26 +02:00
Lukas Eder
ec1b840cb5 [#552] [#2423]
- Add SQLDialect.family() to group several SQLDialect versions of
the same RDBMS
- Add support for SQL Server 2012 native OFFSET .. FETCH clause
2013-06-01 19:19:13 +02:00
Lukas Eder
1c7cbc1089 [#2496] Add support for SQL Server 2012 sequences 2013-05-31 13:31:30 +02:00
Lukas Eder
7c927ad2a3 [#2022] Add support for SQL Server 2012 windowing clauses in window
functions
2013-05-31 12:10:08 +02:00
Lukas Eder
20acc9bb4b Regenerated Oracle3 schema 2013-05-26 08:50:45 +02:00
Lukas Eder
ba7c34db69 [#2404] Cannot combine <dateAsTimestamp/> with <forcedType/> if both
match - Regenerated schema
2013-05-26 08:50:08 +02:00
Lukas Eder
6ace1f332d [#2404] Cannot combine <dateAsTimestamp/> with <forcedType/> if both
match
2013-05-26 08:49:06 +02:00
Lukas Eder
de871db819 [#2485] Allow for treating Field<Boolean> as Condition 2013-05-25 12:16:40 +02:00
Lukas Eder
64e48ea499 [#2461] Generator Encoding Error for Database-Objects with Unicode-Names 2013-05-24 19:56:44 +02:00
Lukas Eder
b938123edd [#2461] Added a test table containing unicode characters 2013-05-24 19:50:12 +02:00
Lukas Eder
8026481b95 Fixed test for Derby 2013-05-24 19:22:50 +02:00
Lukas Eder
621e3fdbf0 Avoid Derby's limit of "complexity", when parsing SQL statements 2013-05-24 18:50:58 +02:00
Lukas Eder
2000045f81 Skip a test in Derby, which fails because of
https://issues.apache.org/jira/browse/DERBY-6228
2013-05-24 18:42:13 +02:00
Lukas Eder
42cb667054 Skip a test in Derby, which fails because of
https://issues.apache.org/jira/browse/DERBY-6228
2013-05-24 18:39:31 +02:00
Lukas Eder
92a157b341 Upgraded Derby to 10.10 2013-05-24 18:39:14 +02:00
Lukas Eder
4a2785a15c [#2477] Regenerated databases 2013-05-24 17:20:29 +02:00
Lukas Eder
1086f28c37 [#2477] MySQL's unsigned types cannot be used in other dialects 2013-05-24 17:19:37 +02:00
Lukas Eder
23514f99b5 [#2478] Regenerated ingres database 2013-05-24 16:47:55 +02:00
Lukas Eder
909e5aef53 [#2478] IngresDatabase erroneously joins IIINDEXES to get constraint
columns, rather than using IIKEYS
2013-05-24 16:46:57 +02:00
Lukas Eder
79a97a82ae [#963] Regenerated SQL Server database 2013-05-24 15:04:30 +02:00
Lukas Eder
824f5d4eba [#963] [#2477] Map SQL Server TINYINT to UByte 2013-05-24 15:03:55 +02:00
Lukas Eder
58f034837d [#965] Regenerated Sybase database 2013-05-24 11:33:35 +02:00
Lukas Eder
ae12b6eec7 [#965] [#2477] Add support for Sybase SQL Anywhere unsigned number types 2013-05-24 11:33:01 +02:00
Lukas Eder
2800ba6053 Removed Espen's config files 2013-05-24 11:32:13 +02:00
Lukas Eder
a8f379f698 [#2477] Unsigned types fail at run-time under H2 dialect - Fixed this
for H2
2013-05-24 10:31:58 +02:00
Lukas Eder
303561db4e [#2477] Added failing test case 2013-05-24 10:12:41 +02:00
Lukas Eder
9512ff8a68 [#706] [#2324] Reverting workarounds for Postgres JDBC driver's
inability to fetch a ref cursor if connection.getAutoCommit() == true
2013-05-22 21:46:18 +02:00
Lukas Eder
9d9fa20b3b [#2464] Skip tests for some databases 2013-05-22 21:26:20 +02:00
Lukas Eder
d1458dfea4 [#2464] Bad SQL rendered from DELETE statements with aliased tables 2013-05-22 21:12:05 +02:00
Lukas Eder
b729a58a07 [#2265] Added prototype implementation for Record.delete() 2013-05-11 12:45:36 +02:00
Lukas Eder
e33b56a863 [#2265] Let UpdatableRecord.refresh() use ResultSet, if available 2013-05-11 11:14:46 +02:00
Lukas Eder
c6ab1f338a [#2265] Added test cases to ensure that Record.refresh() doesn't execute
a query, if a ResultSet is available
2013-05-11 10:54:49 +02:00
Lukas Eder
18a4c2f978 Added another test case 2013-05-11 10:35:14 +02:00
Lukas Eder
2df2a478a6 [#2265] Added Record.refresh(Field...) and more test cases 2013-05-11 10:23:54 +02:00
Lukas Eder
712a0f2f62 [#2265] Add Result.store(), delete(), refresh(), to allow for
batch-synchronisation of Records contained in a Result - Prototype
implementation
2013-05-11 10:11:47 +02:00
Lukas Eder
2cedb6c07a [#1846] Skip tests for SQLite, which supports only TYPE_FORWARD_ONLY
cursors
2013-05-10 18:38:14 +02:00
Lukas Eder
433012e48b [#1846] Added more integration tests related to Record.changed() and
Record.original()
2013-05-10 18:16:43 +02:00
Lukas Eder
c7b3782a69 [#1846] Added more test cases 2013-05-10 17:59:23 +02:00
Lukas Eder
cfce76a651 [#1846] Add ResultQuery.keepResultSet() to indicate whether to keep
references to a potentially updatable JDBC ResultSet from Result
2013-05-10 16:57:18 +02:00
Lukas Eder
6fd9704dc0 Added test utility method 2013-05-10 16:46:33 +02:00
Lukas Eder
2d2aee8561 Fixed "unbalanced" test case 2013-05-10 14:07:42 +02:00
Lukas Eder
6558cd8ea1 Improved test statistics logging 2013-05-10 14:06:33 +02:00
Lukas Eder
dcf5d6005a Fixed broken test 2013-05-10 13:56:05 +02:00
Lukas Eder
503b986f11 [#2355] Add support for Postgres / HSQLDB's TRUNCATE [...] RESTART /
CONTINUE IDENTITY
2013-05-10 12:49:51 +02:00
Lukas Eder
32b6b787e6 Make testInsertIdentity() more robust, do not rely on assumptions
about initial identity values in test runs
2013-05-10 12:48:36 +02:00
Lukas Eder
1665723473 [#2355] [#2357] Add support for Postgres' TRUNCATE [...] CASCADE
statement
2013-05-10 12:29:50 +02:00
Lukas Eder
e66d2d6de6 Regenerated H2 and Oracle schemas 2013-05-09 16:28:35 +02:00
Lukas Eder
dcd2390d5c Fixed a regression introduced by a recent change 2013-05-09 16:12:06 +02:00
Lukas Eder
3237426f3e Regenerated H2 and Oracle Schemas 2013-05-09 15:00:48 +02:00
Lukas Eder
da5026373a [#2450] Regenerated schema 2013-05-09 14:58:40 +02:00
Lukas Eder
5b6759ca54 [#2448] Regenerated schema 2013-05-09 14:24:51 +02:00
Lukas Eder
a425d1c9dc [#2448] Regenerated schema 2013-05-09 14:20:43 +02:00
Lukas Eder
2043ebf68d [#2447] Regenerated schema 2013-05-09 14:06:37 +02:00
Lukas Eder
b8d6ea4729 [#2445] Generated jdbcoracle schemas 2013-05-09 13:45:50 +02:00
Lukas Eder
4ce94b7eb7 [#2445] JDBCDatabase doesn't recognise Oracle's VARCHAR2 data type (and
other vendor-specific data types)
2013-05-09 13:45:22 +02:00
Lukas Eder
3f9e7131b8 [#2445] Re-generate jdbc-generated classes 2013-05-09 12:45:09 +02:00
Lukas Eder
a1f558a69b [#2446] Add JDBCUtils.dialect(Connection) to "guess" the jOOQ SQLDialect
from a JDBC Connection
2013-05-09 12:34:07 +02:00
Lukas Eder
de3458f0d5 [#1373] Add <T> Field<T> Factory.coerce(Field<?>, DataType<T>) and
similar methods, to coerce a field to a given data type (as opposed to
casting it)
2013-05-05 12:43:46 +02:00
Lukas Eder
f5d8bf06bf [#2235] Add Result<?> DSLContext.fetchFromTXT() to allow for loading
results that were exported using Result.format() - Added test case
2013-05-03 17:04:09 +02:00
Lukas Eder
392c2e158c [#2291] Add DSLContext.fetchAny(Table, Condition) method and others 2013-05-03 15:28:16 +02:00
Lukas Eder
aa74f02875 [#2414] [#2436] [#2437] Added ParamType
- [#2414] Add Setting to influence parameter rendering (indexed,
named, inlined)
- [#2436] Add Query.getSQL(ParamType) and deprecate
Query.getSQL(boolean)
- [#2437] Add RenderContext.paramType() and deprecate
RenderContext.inline() and .namedParams()
2013-05-03 15:10:40 +02:00
Lukas Eder
6350d73134 [#2395] [#2428] Row value expression simulation.
- Simulate row value expression IN predicate using EXISTS
- Simulate row value expression comparison predicates using EXISTS
2013-05-01 21:31:05 +02:00
Lukas Eder
f67bafd609 SQLite doesn't support result set concurrency and type. Skip tests 2013-05-01 20:37:56 +02:00
Lukas Eder
ed860507cf [#2339] Support CUBRID 9.1's new features - Document support for
NTILE(), LEAD(), LAG() window functions
2013-05-01 18:40:21 +02:00
Lukas Eder
46a4c431f7 [#2339] Support CUBRID 9.1's new features - Upgraded CUBRID to 9.1 2013-05-01 18:32:04 +02:00
Lukas Eder
dae1576809 [#2339] Support CUBRID 9.1's new features - Upgraded CUBRID to 9.1 2013-05-01 18:31:33 +02:00
Lukas Eder
a8def97d1e [#2299] Allow for setting ResultSet flags (e.g.
ResultSet.TYPE_SCROLL_INSENSITIVE through
ResultQuery.resultSetConcurrency(), resultSetType(),
resultSetHoldability()
2013-05-01 17:57:28 +02:00
Lukas Eder
7c735242c0 Removed bad test code 2013-05-01 12:28:27 +02:00
Lukas Eder
b80451c42e [#2424] Integration-test jOOQ with the SQLite xerial driver 2013-05-01 12:08:42 +02:00
Lukas Eder
7822c93e64 [#2416] Add Result.intoXML(org.xml.sax.ContentHandler) to generate a SAX
event stream from a jOOQ result
2013-04-28 23:23:20 +02:00
Lukas Eder
dcdac6f7e8 [#1520] Handle Ingres', SQLite, SQL Server's, Sybase ASE's limitations
of 1024, 999, 2100 or 2000 maximum bind values per query
2013-04-28 18:52:36 +02:00
Lukas Eder
c5df4f8db9 [#2401] Bad package name generated when <packageName/> contents are not
trimmed
2013-04-28 13:07:20 +02:00
Lukas Eder
106b1b60dc [#2404] Cannot combine <dateAsTimestamp/> with <forcedType/> if both
match - Regenerated schema
2013-04-12 21:16:04 +02:00
Lukas Eder
ded80b7736 [#2404] Cannot combine <dateAsTimestamp/> with <forcedType/> if both
match - Added test configuration
2013-04-12 21:15:53 +02:00
Lukas Eder
724e8035bf Release 3.0.0-RC3: Regenerated all schemas 2013-04-12 16:28:30 +02:00
Lukas Eder
dc7bd7b56f Release 3.0.0-RC3: Fixed broken test 2013-04-12 15:00:33 +02:00
Lukas Eder
3882a1ab99 Release 3.0.0-RC3: Comment failing test case for well-known issue 2013-04-12 14:46:10 +02:00
Lukas Eder
5dbf025c13 [#2385] fetchOne() and fetchLazy() don't terminate the ExecuteListener
life cycle when an exception occurs - Added failing test case
2013-04-12 12:56:29 +02:00
Lukas Eder
ebca8adaa2 [#2388] Replace Configuration's List<ExecuteListener> with
ExecuteListenerProvider[] to simplify correct and thread-safe client
implementations
2013-04-12 12:00:30 +02:00
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