You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: community/flamingock-auditstore-sql/src/main/java/io/flamingock/community/sql/internal/SqlAuditorDialectHelper.java
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,6 @@ public String getCreateTableSqlString(String tableName) {
37
37
caseH2:
38
38
caseHSQLDB:
39
39
caseFIREBIRD:
40
-
caseINFORMIX:
41
40
returnString.format(
42
41
"CREATE TABLE IF NOT EXISTS %s (" +
43
42
"id %s PRIMARY KEY, " +
@@ -189,6 +188,32 @@ public String getCreateTableSqlString(String tableName) {
189
188
"transaction_flag INTEGER, " +
190
189
"system_change INTEGER" +
191
190
")", tableName);
191
+
caseINFORMIX:
192
+
returnString.format(
193
+
"CREATE TABLE IF NOT EXISTS %s (" +
194
+
"id SERIAL8 PRIMARY KEY, " +
195
+
"execution_id VARCHAR(100), " +
196
+
"stage_id VARCHAR(100), " +
197
+
"task_id VARCHAR(100), " +
198
+
"author VARCHAR(100), " +
199
+
"created_at DATETIME YEAR TO FRACTION(3) DEFAULT CURRENT YEAR TO FRACTION(3), " +
200
+
"state VARCHAR(50), " +
201
+
"class_name VARCHAR(200), " +
202
+
"method_name VARCHAR(100), " +
203
+
"metadata LVARCHAR(8000), " +
204
+
"execution_millis BIGINT, " +
205
+
"execution_hostname VARCHAR(100), " +
206
+
"error_trace LVARCHAR(8000), " +
207
+
"type VARCHAR(50), " +
208
+
"tx_type VARCHAR(50), " +
209
+
"target_system_id VARCHAR(100), " +
210
+
"order_col VARCHAR(50), " +
211
+
"recovery_strategy VARCHAR(50), " +
212
+
"transaction_flag BOOLEAN, " +
213
+
"system_change BOOLEAN" +
214
+
")", tableName);
215
+
216
+
192
217
default:
193
218
thrownewUnsupportedOperationException("Dialect not supported for CREATE TABLE: " + sqlDialect.name());
Copy file name to clipboardExpand all lines: community/flamingock-auditstore-sql/src/main/java/io/flamingock/community/sql/internal/SqlLockDialectHelper.java
+58-14Lines changed: 58 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,6 @@ public String getCreateTableSqlString(String tableName) {
50
50
caseH2:
51
51
caseHSQLDB:
52
52
caseFIREBIRD:
53
-
caseINFORMIX:
54
53
returnString.format(
55
54
"CREATE TABLE IF NOT EXISTS %s (" +
56
55
"`key` VARCHAR(255) PRIMARY KEY," +
@@ -86,6 +85,14 @@ public String getCreateTableSqlString(String tableName) {
86
85
"owner VARCHAR(255), " +
87
86
"expires_at TIMESTAMP)'; " +
88
87
"END", tableName);
88
+
caseINFORMIX:
89
+
returnString.format(
90
+
"CREATE TABLE %s (" +
91
+
"lock_key VARCHAR(255) PRIMARY KEY, " +
92
+
"status VARCHAR(32), " +
93
+
"owner VARCHAR(255), " +
94
+
"expires_at DATETIME YEAR TO FRACTION(3)" +
95
+
")", tableName);
89
96
default:
90
97
thrownewUnsupportedOperationException("Dialect not supported for CREATE TABLE: " + sqlDialect.name());
91
98
}
@@ -103,6 +110,8 @@ public String getSelectLockSqlString(String tableName) {
103
110
returnString.format("SELECT [key], status, owner, expires_at FROM %s WITH (UPDLOCK, ROWLOCK) WHERE [key] = ?", tableName);
104
111
caseORACLE:
105
112
returnString.format("SELECT \"key\", status, owner, expires_at FROM %s WHERE \"key\" = ? FOR UPDATE", tableName);
113
+
caseINFORMIX:
114
+
returnString.format("SELECT lock_key, status, owner, expires_at FROM %s WHERE lock_key = ?", tableName);
106
115
default:
107
116
returnString.format("SELECT `key`, status, owner, expires_at FROM %s WHERE `key` = ?", tableName);
108
117
}
@@ -112,7 +121,6 @@ public String getInsertOrUpdateLockSqlString(String tableName) {
0 commit comments