Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix trigger template on ASE to handle decimals.
- Fix issue where ASA was truncating numbers to the right of the decimal point.
- Loading branch information
Showing
5 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
symmetric-db/src/main/java/org/jumpmind/db/platform/sqlanywhere/SqlAnywhereDmlStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.jumpmind.db.platform.sqlanywhere; | ||
|
||
import java.sql.Types; | ||
|
||
import org.jumpmind.db.model.Column; | ||
import org.jumpmind.db.platform.DatabaseInfo; | ||
import org.jumpmind.db.sql.DmlStatement; | ||
|
||
public class SqlAnywhereDmlStatement extends DmlStatement { | ||
|
||
public SqlAnywhereDmlStatement(DmlType type, String catalogName, | ||
String schemaName, String tableName, Column[] keysColumns, | ||
Column[] columns, boolean[] nullKeyValues, | ||
DatabaseInfo databaseInfo, boolean useQuotedIdentifiers) { | ||
super(type, catalogName, schemaName, tableName, keysColumns, columns, | ||
nullKeyValues, databaseInfo, useQuotedIdentifiers); | ||
} | ||
|
||
@Override | ||
protected int getTypeCode(Column column, boolean isDateOverrideToTimestamp) { | ||
int type = column.getMappedTypeCode(); | ||
if (type == Types.DATE && isDateOverrideToTimestamp) { | ||
type = Types.TIMESTAMP; | ||
} | ||
return type; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters