Commit Graph

1108 Commits

Author SHA1 Message Date
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
Lukas Eder
b325c0ff10 [#430] Add support for the Firebird database - Fixed TRUNCATE test 2012-08-19 17:25:49 +02:00
Lukas Eder
32ec7d388f [#430] Add support for the Firebird database - Fixed ON DELETE CASCADE
in test data
2012-08-19 17:23:44 +02:00
Lukas Eder
f4132f6160 Don't skip tests by default 2012-08-19 17:10:59 +02:00
Lukas Eder
b8b9e05a8e [#430] Add support for the Firebird database - Skipping INTERVAL tests 2012-08-19 14:52:59 +02:00
Lukas Eder
1684e58107 Refactored tests for quantified predicates out into their own test case 2012-08-19 14:14:00 +02:00
Lukas Eder
9ffb0fac85 [#430] Add support for the Firebird database - Skip PIVOT clause tests 2012-08-19 13:56:55 +02:00
Lukas Eder
e7acb6e1f7 [#430] Add support for the Firebird database - Skip hierarchical query
tests
2012-08-19 13:55:27 +02:00
Lukas Eder
6a95dba01e Extracted CHAR casting test to its own test case 2012-08-19 13:45:55 +02:00
Lukas Eder
a269e5198a [#430] Add support for the Firebird database - Skip GROUPING SETS tests 2012-08-19 13:31:37 +02:00
Lukas Eder
deb5529a2f [#430] Add support for the Firebird database - Fixed data type tests 2012-08-19 12:45:54 +02:00
Lukas Eder
a40f111195 [#1723] Add Factory.fetchLazy(ResultSet) 2012-08-19 12:28:47 +02:00
Lukas Eder
3ba7ef5a9c [#1722] ResultQuery.fetchArray(int) and .fetchArray(String) should
return a typed array, even if this cannot be checked by the compiler
2012-08-18 17:34:11 +02:00
Lukas Eder
c7b29787d8 [#430] Add support for the Firebird database 2012-08-17 18:56:34 +02:00
Lukas Eder
10e79d63c1 [#430] Add support for the Firebird database - Added antlr test
dependency
2012-08-17 18:52:53 +02:00
Lukas Eder
9d0c022f33 [#430] Add support for the Firebird database 2012-08-17 18:32:12 +02:00
Lukas Eder
53e234af71 [#1692] Replace Factory.executeInsert(), Factory.executeUpdate() and
similar methods with more succinct variants - Added missing parts for
executeDelete()
2012-08-17 14:51:30 +02:00
Lukas Eder
511757685e [#1721] Add <K, V> Map<K, List<V>> ResultQuery.fetchGroups(Field<K>,
Field<V>) and Result.intoGroups(Field<K>, Field<V>)
2012-08-17 12:04:38 +02:00
Lukas Eder
8c07e10014 [#1707] Add <K> Map<K, Result<R>> ResultQuery.fetchGroups(Field<K>) and
Result.intoGroups(Field<K>)
2012-08-17 11:50:32 +02:00
Lukas Eder
ed947217d7 [#1714] Add Result.sortAsc, .sortDesc(Comparator<? super R>) 2012-08-15 19:22:33 +02:00
Lukas Eder
d5bf83cfe8 [#1712] Add <T extends Comparable<? super T>> Result.sortAsc,
.sortDesc(Field<T>)
[#1713] Add <T> Result.sortAsc, .sortDesc(Field<T>, Comparator<? super
T>)
2012-08-15 19:14:44 +02:00
Lukas Eder
2145f3c406 Enable DAO tests for Oracle 2012-08-13 19:54:28 +02:00
Lukas Eder
d14483b03e [#1701] Add Condition Factory.not(Condition) as a synonym for
Condition.not()
2012-08-11 14:46:32 +02:00
Lukas Eder
3c9ae4da6e [#1698] Add support for the SQL standard BETWEEN SYMMETRIC predicate 2012-08-11 13:33:27 +02:00
Lukas Eder
b48db4a690 [#1693] Cannot bind UDT values from other schemata to stored procedures 2012-08-10 16:16:58 +02:00
Lukas Eder
28d4f9a064 [#1678] [REVERT] Order generated procedures in Oracle packages by
ALL_PROCEDURES.SUBPROGRAM_ID instead of PROCEDURE_NAME
[#1683] Oracle code generation regression for 10g. No such column:
ALL_PROCEDURES.OBJECT_ID
2012-08-10 15:05:30 +02:00
Lukas Eder
1b320d30dc [#1684] Add <attachRecords/> Setting to indicate that fetched records
shouldn't be automatically "attached" - Added another test case
2012-08-10 13:58:31 +02:00
Lukas Eder
fb7f143edc [#1684] Add <attachRecords/> Setting to indicate that fetched records
shouldn't be automatically "attached"
2012-08-10 13:46:33 +02:00
Lukas Eder
ed397248dd [#1692] Replace Factory.executeInsert(), Factory.executeUpdate() and
similar methods with more succinct variants
2012-08-10 13:15:20 +02:00
Lukas Eder
a9b61b1a2f [#1688] Add <E> E Record.into(E) as a complement to <E> E
Record.into(Class<E>)
2012-08-10 12:37:01 +02:00
Lukas Eder
e5bbfbe4bf [#1665] Add support for the empty GROUP BY () clause 2012-08-05 23:23:49 +02:00
Lukas Eder
c0be23d7c5 [#1665] Add support for the empty GROUP BY () clause 2012-08-05 23:00:06 +02:00
Lukas Eder
6a11c02345 [#1678] Order generated procedures in Oracle packages by
ALL_PROCEDURES.SUBPROGRAM_ID instead of PROCEDURE_NAME
2012-08-05 11:20:36 +02:00
Lukas Eder
f5cb621b36 [457] Add support for Oracle user-defined AGGREGATE functions -
regenerated schemata
2012-08-05 11:16:46 +02:00
Lukas Eder
f4a3e2a4c8 [#457] Add support for Oracle user-defined AGGREGATE functions 2012-08-05 11:14:21 +02:00
Lukas Eder
09776ae418 [#1675] Add support for the SQL standard IS [NOT] DISTINCT FROM
predicate
2012-08-04 17:11:51 +02:00
Lukas Eder
eacb78dc51 [#816] Add support for Oracle Text functions 2012-08-04 13:34:39 +02:00
Lukas Eder
8070268def [#1664] By default, activate <relations/> in the code generator 2012-08-04 12:49:22 +02:00
Lukas Eder
18deada0b9 [#1667] Bad variable binding when NULLS FIRST, NULLS LAST is simulated
in SQL Server and other databases
2012-08-04 12:01:10 +02:00
Lukas Eder
e0bc94b312 [#1665] Add support for the empty GROUP BY () clause - added TODO to fix
test case, once this is supported
2012-08-04 11:09:12 +02:00
Lukas Eder
e146168d29 [#1645] Add support for Oracle's PARTITION BY clause in OUTER JOINs 2012-08-01 13:33:09 +02:00
Lukas Eder
e3d0935070 [#1584] Code generation error with Oracle UDT static functions -
Regenerated source code
2012-08-01 09:59:28 +02:00
Lukas Eder
7a56784539 [#1584] Code generation error with Oracle UDT static functions 2012-08-01 09:59:17 +02:00
Lukas Eder
76a251ee41 [#1339] Add option to generate immutable pojos - Regenerated schema 2012-07-31 23:59:38 +02:00
Lukas Eder
100681882a [#1339] Add option to generate immutable pojos 2012-07-31 23:59:18 +02:00
Lukas Eder
65cf172dfe [#371] Add integration tests for concurrent use of jOOQ 2012-07-31 22:10:15 +02:00
Lukas Eder
b07c403ea4 Fixed optimistic locking test case for Sybase ASE 2012-07-31 22:07:53 +02:00
Lukas Eder
ac6cb86cfe [#1285] Skip date time arithmetic integration tests for Ingres 2012-07-31 19:43:02 +02:00
Lukas Eder
414c6338b6 Circumvent funny internal errors in INGRES when using "= ALL (...)"
predicate
2012-07-31 19:39:30 +02:00
Lukas Eder
c2b55850bb Circumvent funny errors with INGRES and REAL data type when selecting
ROUND(0.0, 0)
2012-07-31 19:37:34 +02:00
Lukas Eder
092c7fc724 [#1520] Handle Ingres', SQL Server's, Sybase ASE's limitations of 1024,
2100 or 2000 maximum bind values per query - Skip test case for now
2012-07-31 18:41:59 +02:00
Lukas Eder
50838fed0a [#1639] Deprecate org.jooq.Adapter 2012-07-27 20:26:54 +02:00
Lukas Eder
0c4e9f00e4 [#1627] Handle NULL in CSV imports/exports 2012-07-27 17:03:26 +02:00
Lukas Eder
02ad697a47 Upgraded CUBRID JDBC driver 2012-07-27 16:23:02 +02:00
Lukas Eder
7f9de995fe Commented keyboard input 2012-07-27 14:51:04 +02:00
Lukas Eder
572ae88a9e Added some more "fairness" to the benchmark, by actually fetching result
sets also when using a PreparedStatement directly
2012-07-27 14:08:07 +02:00
Lukas Eder
9caed2164b [#1632] Improve the performance of various DefaultRenderContext methods,
by locally caching Settings values locally
2012-07-27 13:33:15 +02:00
Lukas Eder
a120437579 [#1625] Performance benchmark to show difference between regular
execution and reusing PreparedStatements
2012-07-27 12:55:35 +02:00
Lukas Eder
f3f93dfa29 [#1596] Add support for optimistic locking using generated information
about "timestamp" or "version" columns
2012-07-27 12:35:24 +02:00
Lukas Eder
8155574f65 Fixed execution statistics output 2012-07-27 10:59:37 +02:00
Lukas Eder
a737b76efb [#1547] Support "optimistic locking" in UpdatableRecord.store() and
delete()
-
Implemented optimistic locking using a Settings property, rather than an
additional API method
2012-07-22 17:19:30 +02:00
Lukas Eder
cc9d960ae1 [#1595] Simulate REPEAT() in SQLite 2012-07-19 22:15:29 +02:00
Lukas Eder
12e6e295c6 [#727] Simulate RPAD and LPAD in SQLite 2012-07-19 21:49:28 +02:00
Lukas Eder
723bff2419 [#1582] Add support for Oracle's ORDER SIBLINGS BY clause, in
combination with CONNECT BY
2012-07-19 20:25:47 +02:00
Lukas Eder
7ccc60fe1d [#1587] Generate missing constructors taking DataSource in
schema-specific factories - Regenerated test databases
2012-07-19 19:44:30 +02:00
Lukas Eder
297735c227 Fixed some compiler warnings 2012-07-19 19:25:12 +02:00
Lukas Eder
b001a7c73e Updated Eclipse compiler settings to add Eclipse Juno features 2012-07-19 19:19:45 +02:00
Lukas Eder
11b00a20e9 Fixed some warnings 2012-07-15 17:10:11 +02:00
Lukas Eder
3f85fb95cd [#1547] Support "optimistic locking" in UpdatableRecord.storeLocked()
- Added UpdatableRecord.deleteLocked()
2012-07-15 15:08:12 +02:00
Lukas Eder
b5e7029c60 [#1547] Support "optimistic locking" in UpdatableRecord.storeLocked() -
repeat integration test with another table, to check against more data
types
2012-07-14 16:22:46 +02:00
Lukas Eder
add0476024 [#1547] Support "optimistic locking" in UpdatableRecord.store() 2012-07-14 16:14:10 +02:00
Lukas Eder
adf3848278 [#620] Add support for the SQL:2008 standard LIKE_REGEX operator 2012-07-14 13:34:20 +02:00
Lukas Eder
6090465d95 [#1563] Add support for Oracle SYNONYMs in source code generation -
added PUBLIC synonyms for testing
2012-07-14 11:05:58 +02:00
Lukas Eder
b071472073 [#1566] CONNECT BY related functions are not rendered using the
Settings.getRenderKeywordStyle() property - Fixed two functions, added
test cases for connectByIsLeaf() and connectByIsCycle()
2012-07-14 10:22:34 +02:00
Lukas Eder
4b0b015925 [#1565] Add Factory.connectByRoot(Field<?>) to support the Oracle
CONNECT_BY_ROOT pseudo column
2012-07-13 18:54:14 +02:00
Lukas Eder
660c68675a [#1563] Add support for Oracle SYNONYMs in source code generation -
Regenerated Oracle SYS schema, adding ALL_SYNONYMS
2012-07-13 18:17:44 +02:00
Lukas Eder
ea229d9259 [#1563] Add support for Oracle SYNONYMs in source code generation -
Added SYNONYMs to database
2012-07-13 18:14:28 +02:00
Lukas Eder
43319944d4 [#1557] Inlining floats and doubles doesn't work correctly on all
databases - Test case runs on all databases
2012-07-13 15:43:08 +02:00
Lukas Eder
54a2c887a2 [#1557] Inlining floats and doubles doesn't work correctly on all
databases - Fixed reset.sql scripts, emptying t_639_numbers_table tables
2012-07-13 15:12:28 +02:00
Lukas Eder
e3c23d6722 [#1552] Generate fetchBy[ColumnName] methods in generated DAO classes -
regenerated test schema
2012-07-11 22:18:05 +02:00
Lukas Eder
c95aa4cb7b [#1552] Generate fetchBy[ColumnName] methods in generated DAO classes 2012-07-11 22:17:52 +02:00
Lukas Eder
55f6c2c53b [#1542] Simulate the H2 MERGE syntax in other dialects supporting the
SQL standard MERGE statement - GitHub Issue #18
2012-07-06 22:18:08 +02:00
Lukas Eder
dfdbc9536c [#1541] Add support for the H2 MERGE syntax - GitHub Issue #18 2012-07-06 21:02:11 +02:00
Lukas Eder
e523a9fa6f [#1510] Generate additional setters for foreign keys, accepting records
as arguments - regenerated test data
2012-07-06 19:02:08 +02:00
Lukas Eder
dead419c84 Make test work for larger T_BOOK tables 2012-07-06 15:37:17 +02:00
Lukas Eder
39291b6d64 Regenerated ASE database 2012-07-06 15:25:01 +02:00
Lukas Eder
caae7fd953 [#1536] Add documentation to the FOR UPDATE OF clause, indicating that
DB2 may have stricter requirements regarding updatability of fields
2012-07-06 15:21:47 +02:00
Lukas Eder
c3bfe36153 [#1141] Add Result.intoResultSet() to wrap a Result in a JDBC ResultSet
- Fixed integration test for databases like Oracle, where data type
information may be lost when fetching ResultSet (Integer -> BigDecimal)
2012-07-06 14:17:49 +02:00
Lukas Eder
5c921089ed [#1535] Oracle ROW_NUMBER() OVER() have mandatory ordering clauses. Push
down SELECT-level ORDER BY clause to ranking functions if needed -
Prepared integration tests for a future fix
2012-07-06 14:01:09 +02:00
Lukas Eder
1700d832b7 [#1522] fetch().into(Table) doesn't initialise records correctly, such
that subsequent calls to store() will execute an INSERT, rather than an
UPDATE
2012-07-06 13:27:25 +02:00
Lukas Eder
7dc81a977c [#1525] Generate missing Javadoc to getters for procedure OUT parameters
- Regenerated test data
[#1534] Generate more meaningful Javadoc where "an uncommented item"
stands now - Regenerated test data
2012-07-06 12:40:31 +02:00
Lukas Eder
1152423ada [#1528] Let generated interfaces extend Serializable - regenerated test
data
2012-07-06 12:19:43 +02:00
Lukas Eder
6f5ac2bb9b [#1141] Add Result.intoResultSet() to wrap a Result in a JDBC ResultSet 2012-07-01 16:32:20 +02:00
Lukas Eder
006ec665aa [#1524] Simulate ROW_NUMBER() OVER() in HSQLDB using ROWNUM() 2012-07-01 11:01:17 +02:00
Lukas Eder
577ddd4a60 [#1523] Support ROW_NUMBER() OVER() for the latest version of Derby and
H2, which support it
2012-07-01 10:49:38 +02:00
Lukas Eder
72715a1c7c [#1253] Avoid JDBC escape syntax for date/time literals 2012-06-30 12:21:07 +02:00
Lukas Eder
8abb2a1707 [#1499] Generated members of Tables.java are not final - regenerated
test data
2012-06-30 10:24:30 +02:00
Lukas Eder
e202d6dd75 [#1520] Handle SQL Server's and Sybase ASE's limitations of 2100 or 2000
maximum bind values per query
2012-06-30 08:34:16 +02:00
Lukas Eder
f969ebd565 [#1515] Splitting of large NOT IN conditions is wrong. The parts should
be connected with AND, not with OR
2012-06-29 19:58:20 +02:00
Lukas Eder
5ca80a5b41 [#1490] Compilation error when a SQL Server stored procedure has a
parameter named "value" - regenerated test schema
2012-06-29 19:34:32 +02:00
Lukas Eder
cad539b372 [#1501] Add support for conversion of String to java.sql.{Date, Time,
Timestamp}. GitHub issue #22
2012-06-28 13:15:53 +02:00
Lukas Eder
b44cc4f233 Merge branch 'master' of git@github.com:jOOQ/jOOQ.git
Conflicts:
	jOOQ-codegen/src/main/java/org/jooq/util/DefaultGenerator.java
	jOOQ-meta/src/main/java/org/jooq/util/DefaultIdentityDefinition.java
	jOOQ-meta/src/main/java/org/jooq/util/IdentityDefinition.java
	jOOQ-test/src/org/jooq/test/h2/generatedclasses/Keys.java
	jOOQ-test/src/org/jooq/test/hsqldb/generatedclasses/Keys.java
2012-06-03 13:44:00 +02:00
Lukas Eder
b168ff70ef [#1459] Generated Keys.java static class too large (static initialiser
can become bigger than 64kb)
2012-06-03 13:38:29 +02:00
Lukas Eder
bd72bc41af [#1473] Add IdentityDefinition to jooq-meta 2012-06-02 13:25:49 +02:00
Lukas Eder
eb6b5f1ae5 [#1473] Add IdentityDefinition to jooq-meta 2012-06-02 12:29:30 +02:00
Lukas Eder
430c75f0c2 [#1470] Support interface types in ResultQuery.fetchInto(Class),
Result.into(Class), and Record.into(Class) methods, returning a proxy
2012-06-01 19:32:50 +02:00
Lukas Eder
947d2c6421 [#1463] Add option to let generated Record / POJO objects implement a
common generated interface
2012-06-01 17:47:46 +02:00
Lukas Eder
f109e734a0 [#1358] Compilation errors in generated source code when Oracle
overloaded procedures collide with procedures that end with numbers
2012-06-01 15:40:51 +02:00
Lukas Eder
f65f05e8d5 [#1460] Table.getReferencesTo(Table) doesn't work correctly for aliased
tables - Canonical implementation
2012-05-28 11:24:38 +02:00
Lukas Eder
531c5486bd [#1460] Table.getReferencesTo(Table) doesn't work correctly for aliased
tables - added integration test
2012-05-27 17:41:29 +02:00
Lukas Eder
2150f95d2c [#1454] Add line breaks to generated Javadoc where appropriate 2012-05-25 14:56:49 +02:00
Lukas Eder
2dc7d8856d [#1449] Generate some meaningful Javadoc into the generated
[schema-name]Factory classes
2012-05-25 14:34:11 +02:00
Lukas Eder
7e32e33e86 [#1418] Support case-insensitive schema names in code generation 2012-05-25 14:19:33 +02:00
Lukas Eder
e1d83c3dfd [#1448] Handle String to Enum conversion (when Java Enums are stored as
Strings in the database) - GitHub issue #15
2012-05-24 18:09:42 +02:00