Bug [ 1704261 ] can not import currency rate
This commit is contained in:
parent
6e029c937d
commit
1924725a64
|
@ -261,7 +261,7 @@ public abstract class Convert
|
|||
|
||||
|
||||
// Statements ending with /
|
||||
String[] sql = tempResult.split("\\s/\\s"); // ("(;\\s)|(\\s/\\s)");
|
||||
String[] sql = tempResult.split("^/$"); // ("(;\\s)|(\\s/\\s)");
|
||||
ArrayList<String> result = new ArrayList<String> (sql.length);
|
||||
// process statements
|
||||
for (int i = 0; i < sql.length; i++)
|
||||
|
|
|
@ -28,6 +28,12 @@ public final class Convert_PostgreSQLTest {
|
|||
String sqe;
|
||||
String[] r;
|
||||
|
||||
// [ 1704261 ] can not import currency rate
|
||||
sql = "UPDATE I_Conversion_Rate i SET MultiplyRate = 1 / DivideRate WHERE (MultiplyRate IS NULL OR MultiplyRate = 0) AND DivideRate IS NOT NULL AND DivideRate<>0 AND I_IsImported<>'Y' AND AD_Client_ID=1000000";
|
||||
sqe = "UPDATE I_Conversion_Rate SET MultiplyRate = 1 / DivideRate WHERE (MultiplyRate IS NULL OR MultiplyRate = 0) AND DivideRate IS NOT NULL AND DivideRate<>0 AND I_IsImported<>'Y' AND AD_Client_ID=1000000";
|
||||
r = convert.convert(sql);
|
||||
verify(sql, r, sqe);
|
||||
|
||||
//[ 1668720 ] Convert failing in alter table
|
||||
sql = "ALTER TABLE GT_TaxBase ADD CONSTRAINT GT_TaxBase_Key PRIMARY KEY (GT_TaxBase_ID)";
|
||||
sqe = "ALTER TABLE GT_TaxBase ADD CONSTRAINT GT_TaxBase_Key PRIMARY KEY (GT_TaxBase_ID)";
|
||||
|
|
Loading…
Reference in New Issue