Skip to content

Commit

Permalink
Version 3.9.6 - September 27, 2017
Browse files Browse the repository at this point in the history
================================================================================

Features and Improvements
-------------------------
#6589 - Improve DSLContext.batchStore() Javadoc, indicating that it does not execute MERGE / UPSERT semantics

Bug Fixes
---------
#6424 - Compilation error in generated code when both SchemaVersionProvider and CatalogVersionProvider are applied
#6480 - Typo in DSLContext.fetchCount() and error in DSLContext.fetchExists() Javadoc
#6507 - XMLDatabase doesn't work when dialect is not a SQLDialect.family()
#6514 - ClobBinding and BlobBinding don't correctly inline their bind values
#6538 - NullPointerException in AbstractRecord.intern0()
#6558 - Error in Record.compareTo(...) Javadoc
#6572 - Trigger generated errors are not fetched through jOOQ's plain SQL API
#6596 - "Invalid column index" on Oracle stored procedure call when return type is converted to boolean and argument type is defaulted
#6600 - Exception thrown when creating table with SQLDataType.UUID in MySQL
  • Loading branch information
lukaseder committed Sep 27, 2017
1 parent 2958174 commit ae8c1c4
Show file tree
Hide file tree
Showing 37 changed files with 104 additions and 52 deletions.
2 changes: 1 addition & 1 deletion jOOQ-checker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.jooq</groupId>
<artifactId>jooq-parent</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
</parent>

<groupId>org.jooq</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-codegen-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.jooq</groupId>
<artifactId>jooq-parent</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
</parent>

<groupId>org.jooq</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.jooq</groupId>
<artifactId>jooq-parent</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
</parent>

<groupId>org.jooq</groupId>
Expand Down
16 changes: 5 additions & 11 deletions jOOQ-codegen/src/main/java/org/jooq/util/JavaGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -4957,18 +4957,12 @@ protected void printClassAnnotations(JavaWriter out, SchemaDefinition schema, Ca
out.tab(1).println("value = {");

out.tab(2).println("\"http://www.jooq.org\",");
out.tab(2).println("\"jOOQ version:%s\"%s", Constants.VERSION, (hasCatalogVersion || hasSchemaVersion ? "," : ""));

if (hasCatalogVersion || hasSchemaVersion) {
out.tab(2).println("\"jOOQ version:%s\",", Constants.VERSION);

if (hasCatalogVersion)
out.tab(2).println("\"catalog version:%s\"", catalogVersions.get(catalog).replace("\"", "\\\""));
if (hasSchemaVersion)
out.tab(2).println("\"schema version:%s\"", schemaVersions.get(schema).replace("\"", "\\\""));
}
else {
out.tab(2).println("\"jOOQ version:%s\"", Constants.VERSION);
}
if (hasCatalogVersion)
out.tab(2).println("\"catalog version:%s\"%s", catalogVersions.get(catalog).replace("\"", "\\\""), (hasSchemaVersion ? "," : ""));
if (hasSchemaVersion)
out.tab(2).println("\"schema version:%s\"", schemaVersions.get(schema).replace("\"", "\\\""));

if (scala)
out.tab(1).println("),");
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-academy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<h2.version>1.4.195</h2.version>
</properties>

Expand Down
4 changes: 2 additions & 2 deletions jOOQ-examples/jOOQ-checker-framework-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.jooq</groupId>
<artifactId>jooq-checker-framework-example</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
<name>jOOQ Checker Framework Example</name>

<licenses>
Expand All @@ -18,7 +18,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
</properties>

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions jOOQ-examples/jOOQ-codegen-gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ repositories {
}

dependencies {
compile 'org.jooq:jooq:3.9.5'
compile 'org.jooq:jooq:3.9.6'

runtime 'com.h2database:h2:1.4.177'
testCompile 'junit:junit:4.11'
Expand All @@ -62,7 +62,7 @@ buildscript {
}

dependencies {
classpath 'org.jooq:jooq-codegen:3.9.5'
classpath 'org.jooq:jooq-codegen:3.9.6'
classpath 'com.h2database:h2:1.4.177'
}
}
Expand Down
3 changes: 2 additions & 1 deletion jOOQ-examples/jOOQ-flyway-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.springframework.version>3.2.6.RELEASE</org.springframework.version>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<org.h2.version>1.4.195</org.h2.version>
<scala.version>2.11.7</scala.version>

Expand Down Expand Up @@ -158,6 +158,7 @@
<database>
<includes>.*</includes>
<inputSchema>FLYWAY_TEST</inputSchema>
<catalogVersionProvider>SELECT :schema_name || '_' || MAX("version") FROM "schema_version"</catalogVersionProvider>
<schemaVersionProvider>SELECT :schema_name || '_' || MAX("version") FROM "schema_version"</schemaVersionProvider>
</database>
<target>
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-javaee-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<org.h2.version>1.4.195</org.h2.version>
<java.version>1.8</java.version>

Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-javafx-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.springframework.version>3.2.6.RELEASE</org.springframework.version>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<org.h2.version>1.4.195</org.h2.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-jax-rs-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<version>1.0</version>

<properties>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
</properties>

<build>
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-kotlin-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<kotlin.version>1.0.0-rc-1036</kotlin.version>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<org.h2.version>1.4.195</org.h2.version>
<java.version>1.8</java.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-nashorn-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.springframework.version>3.2.6.RELEASE</org.springframework.version>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<org.h2.version>1.4.195</org.h2.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-oracle-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<db.oracle.version>11</db.oracle.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-spark-chart-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>1.0</version>

<properties>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
</properties>

<build>
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-spark-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.springframework.version>3.2.6.RELEASE</org.springframework.version>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<org.h2.version>1.4.195</org.h2.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-spring-boot-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class>org.jooq.example.spring.Application</start-class>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<java.version>1.8</java.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-spring-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.springframework.version>4.2.4.RELEASE</org.springframework.version>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<org.h2.version>1.4.195</org.h2.version>
<java.version>1.8</java.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-examples/jOOQ-spring-guice-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.springframework.version>4.2.4.RELEASE</org.springframework.version>
<org.jooq.version>3.9.5</org.jooq.version>
<org.jooq.version>3.9.6</org.jooq.version>
<org.h2.version>1.4.195</org.h2.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion jOOQ-meta-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.jooq</groupId>
<artifactId>jooq-parent</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
</parent>

<groupId>org.jooq</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-meta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.jooq</groupId>
<artifactId>jooq-parent</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
</parent>

<groupId>org.jooq</groupId>
Expand Down
4 changes: 3 additions & 1 deletion jOOQ-meta/src/main/java/org/jooq/util/xml/XMLDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ protected DSLContext create0() {
}
catch (Exception ignore) {}

return DSL.using(dialect);
// [#6493] Data types are better discovered from the family, not the dialect. This affects the XMLDatabase,
// for instance. Other databases are currently not affected by the family / dialect distinction
return DSL.using(dialect.family());
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-release/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<property name="dir.workspace" value="${basedir}/.." />
<property name="dir.target" value="${basedir}/target" />
<property name="dir.release" value="${basedir}/release" />
<property name="version-prefix" value="3.9.5"/>
<property name="version-prefix" value="3.9.6"/>

<!-- Run a full mvn clean package install deploy first before this -->
<target name="copy-lib-javadoc">
Expand Down
19 changes: 19 additions & 0 deletions jOOQ-release/release/template/RELEASENOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@ http://www.jooq.org/notes
For a text version, see
http://www.jooq.org/inc/RELEASENOTES.txt

Version 3.9.6 - September 27, 2017
================================================================================

Features and Improvements
-------------------------
#6589 - Improve DSLContext.batchStore() Javadoc, indicating that it does not execute MERGE / UPSERT semantics

Bug Fixes
---------
#6424 - Compilation error in generated code when both SchemaVersionProvider and CatalogVersionProvider are applied
#6480 - Typo in DSLContext.fetchCount() and error in DSLContext.fetchExists() Javadoc
#6507 - XMLDatabase doesn't work when dialect is not a SQLDialect.family()
#6514 - ClobBinding and BlobBinding don't correctly inline their bind values
#6538 - NullPointerException in AbstractRecord.intern0()
#6558 - Error in Record.compareTo(...) Javadoc
#6572 - Trigger generated errors are not fetched through jOOQ's plain SQL API
#6596 - "Invalid column index" on Oracle stored procedure call when return type is converted to boolean and argument type is defaulted
#6600 - Exception thrown when creating table with SQLDataType.UUID in MySQL

Version 3.9.5 - July 28, 2017
================================================================================

Expand Down
2 changes: 1 addition & 1 deletion jOOQ-release/release/template/maven-install.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
set VERSION=3.9.5
set VERSION=3.9.6

if exist jOOQ-javadoc\jooq-%VERSION%-javadoc.jar (
set JAVADOC_JOOQ=-Djavadoc=jOOQ-javadoc\jooq-%VERSION%-javadoc.jar
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-release/release/template/maven-install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
VERSION=3.9.5
VERSION=3.9.6

if [ -f jOOQ-javadoc/jooq-$VERSION-javadoc.jar ]; then
JAVADOC_JOOQ=-Djavadoc=jOOQ-javadoc/jooq-$VERSION-javadoc.jar
Expand Down
2 changes: 1 addition & 1 deletion jOOQ-scala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.jooq</groupId>
<artifactId>jooq-parent</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
</parent>

<groupId>org.jooq</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jOOQ/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.jooq</groupId>
<artifactId>jooq-parent</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
</parent>

<groupId>org.jooq</groupId>
Expand Down
4 changes: 2 additions & 2 deletions jOOQ/src/main/java/org/jooq/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ public final class Constants {
* This is the same as {@link #MINOR_VERSION}, but it may include patch
* version suffixes.
*/
public static final String VERSION = "3.9.5";
public static final String VERSION = "3.9.6";

/**
* The latest jOOQ full version.
* <p>
* This is the same as {@link #VERSION}, but it may include release
* candidate and other suffixes.
*/
public static final String FULL_VERSION = "3.9.5";
public static final String FULL_VERSION = "3.9.6";

/**
* The current jooq-runtime XSD file name.
Expand Down
19 changes: 14 additions & 5 deletions jOOQ/src/main/java/org/jooq/DSLContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -7040,6 +7040,15 @@ public interface DSLContext extends Scope , AutoCloseable {
* This mode may be better for large and complex batch store operations, as
* the order of records is preserved entirely, and jOOQ can guarantee that
* only a single batch statement is serialised to the database.
* <p>
* <h5>A note on MERGE / UPSERT semantics</h5>
* <p>
* This method (just like {@link UpdatableRecord#store()}) does not
* implement the semantics of an actual <code>UPSERT</code> or
* <code>MERGE</code> statement, which delegates the decision of whether to
* <code>INSERT</code> or <code>UPDATE</code> a record to the database. The
* decision is made by the client (jOOQ) depending on whether each
* individual record has been fetched from the database prior to storing it.
*
* @see UpdatableRecord#store()
* @see Statement#executeBatch()
Expand Down Expand Up @@ -9212,18 +9221,18 @@ <T, R extends Record1<T>> T fetchValue(ResultQuery<R> query)
* This executes <code><pre>SELECT COUNT(*) FROM table</pre></code>
*
* @param table The table whose records to count
* @return The number or records in the table
* @return The number of records in the table
* @throws DataAccessException if something went wrong executing the query
*/
int fetchCount(Table<?> table) throws DataAccessException;

/**
* Count the number of records in a table.
* Count the number of records in a table that satisfy a condition.
* <p>
* This executes <code><pre>SELECT COUNT(*) FROM table WHERE condition</pre></code>
*
* @param table The table whose records to count
* @return The number or records in the table
* @return The number of records in the table that satisfy a condition
* @throws DataAccessException if something went wrong executing the query
*/
int fetchCount(Table<?> table, Condition condition) throws DataAccessException;
Expand Down Expand Up @@ -9255,7 +9264,7 @@ <T, R extends Record1<T>> T fetchValue(ResultQuery<R> query)
* This executes <code><pre>SELECT EXISTS(SELECT * FROM table)</pre></code>
*
* @param table The table whose records to count
* @return The number or records in the table
* @return Whether the table contains any records
* @throws DataAccessException if something went wrong executing the query
*/
boolean fetchExists(Table<?> table) throws DataAccessException;
Expand All @@ -9266,7 +9275,7 @@ <T, R extends Record1<T>> T fetchValue(ResultQuery<R> query)
* This executes <code><pre>SELECT EXISTS(SELECT * FROM table WHERE condition)</pre></code>
*
* @param table The table whose records to count
* @return The number or records in the table
* @return Whether the table contains any records that satisfy a condition
* @throws DataAccessException if something went wrong executing the query
*/
boolean fetchExists(Table<?> table, Condition condition) throws DataAccessException;
Expand Down
2 changes: 1 addition & 1 deletion jOOQ/src/main/java/org/jooq/Record.java
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ <T, U> U get(Field<T> field, Converter<? super T, ? extends U> converter) throws
* <li><code>X = Y</code> means <code>X.compareTo(Y) == 0</code></li>
* <li><code>X &lt; Y</code> means <code>X.compareTo(Y) &lt; 0</code></li>
* <li><code>X[i] = Y[i]</code> means
* <code>(X[i] == null && Y[i] == null) || X[i].compareTo(Y[i]) &lt; 0</code>
* <code>(X[i] == null && Y[i] == null) || X[i].compareTo(Y[i]) == 0</code>
* </li>
* <li><code>X[i] &lt; Y[i]</code> means
* <code>Y[i] == null || X[i].compareTo(Y[i]) &lt; 0</code>. This
Expand Down

0 comments on commit ae8c1c4

Please sign in to comment.