Skip to content

Commit

Permalink
Fix postgres key columns equality tests for serial type
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanovicz committed Aug 1, 2022
1 parent 75e54db commit 52c6c60
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion modality-api-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ under the License.
<parent>
<groupId>com.republicate.modality</groupId>
<artifactId>modality</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
</parent>

<artifactId>modality-api-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modality-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>com.republicate.modality</groupId>
<artifactId>modality</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
</parent>

<artifactId>modality-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ private void addKeyMapToAttribute(Attribute attribute)
String sqlPKColName = sqlPrimaryKey.get(i);
attribute.addQueryPart(quoteIdentifier(sqlPKColName) + " = ");
attribute.addParameter(translateColumnName(sqlPKColName));
if (model.getDriverInfos().isStrictColumnTypes() && model.getDriverInfos().hasColumnMarkers())
Column col = getColumn(sqlPKColName);
if (model.getDriverInfos().isStrictColumnTypes() && model.getDriverInfos().hasColumnMarkers() && !"serial".equals(col.typeName))
{
Column col = getColumn(sqlPKColName);
attribute.addQueryPart("::" + col.typeName);
}
}
Expand Down
2 changes: 1 addition & 1 deletion modality-examples/modality-example-bookshelf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ under the License.
<parent>
<groupId>com.republicate.modality</groupId>
<artifactId>modality-examples</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
</parent>

<artifactId>modality-example-bookshelf</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modality-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ under the License.
<parent>
<groupId>com.republicate.modality</groupId>
<artifactId>modality</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
</parent>

<artifactId>modality-examples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modality-webapp-auth/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ under the License.
<parent>
<groupId>com.republicate.modality</groupId>
<artifactId>modality</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
</parent>

<artifactId>modality-webapp-auth</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modality-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ under the License.
<parent>
<groupId>com.republicate.modality</groupId>
<artifactId>modality</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
</parent>

<artifactId>modality-webapp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ under the License.

<groupId>com.republicate.modality</groupId>
<artifactId>modality</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>

<packaging>pom</packaging>
<name>${project.groupId}:${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion velocity-tools-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ under the License.
<groupId>com.republicate.modality</groupId>
<artifactId>modality</artifactId>

<version>2.1.3</version>
<version>2.1.4</version>
</parent>

<artifactId>velocity-tools-model</artifactId>
Expand Down

0 comments on commit 52c6c60

Please sign in to comment.