Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#414 #415

Merged
merged 3 commits into from
Aug 5, 2019
Merged

#414 #415

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__CONNECTION_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ public static int WriteBatch(Connection C, List<tilda.data.Connection_Data> L, i
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__DATEDIM_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ public static int WriteBatch(Connection C, List<tilda.data.DateDim_Data> L, int
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__DATELIMITDIM_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public static int WriteBatch(Connection C, List<tilda.data.DateLimitDim_Data> L,
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public static int WriteBatch(Connection C, List<tilda.data.DependencyDDLDummyTab
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public static int WriteBatch(Connection C, List<tilda.data.FormulaDependency_Dat
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__FORMULARESULT_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public static int WriteBatch(Connection C, List<tilda.data.FormulaResult_Data> L
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__FORMULA_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ public static int WriteBatch(Connection C, List<tilda.data.Formula_Data> L, int
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__JOBPARTMESSAGE_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public static int WriteBatch(Connection C, List<tilda.data.JobPartMessage_Data>
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__JOBPART_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public static int WriteBatch(Connection C, List<tilda.data.JobPart_Data> L, int
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__JOB_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ public static int WriteBatch(Connection C, List<tilda.data.Job_Data> L, int batc
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__KEY_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public static int WriteBatch(Connection C, List<tilda.data.Key_Data> L, int batc
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__MAINTENANCE_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public static int WriteBatch(Connection C, List<tilda.data.Maintenance_Data> L,
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__MAPPING_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public static int WriteBatch(Connection C, List<tilda.data.Mapping_Data> L, int
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__MEASUREFORMULA_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public static int WriteBatch(Connection C, List<tilda.data.MeasureFormula_Data>
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__MEASURE_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public static int WriteBatch(Connection C, List<tilda.data.Measure_Data> L, int
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__OBJECTPERF_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ public static int WriteBatch(Connection C, List<tilda.data.ObjectPerf_Data> L, i
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__REFILLPERF_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public static int WriteBatch(Connection C, List<tilda.data.RefillPerf_Data> L, i
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__TESTING_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ public static int WriteBatch(Connection C, List<tilda.data.Testing_Data> L, int
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__TRANSPERF_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ public static int WriteBatch(Connection C, List<tilda.data.TransPerf_Data> L, in
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/data/_Tilda/TILDA__ZONEINFO_Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public static int WriteBatch(Connection C, List<tilda.data.ZoneInfo_Data> L, int
PS.clearParameters();
}

if (index != 0 && (index + 1) % batchSize != 0)
if ((index + 1) % batchSize != 0)
{
int[] results = PS.executeBatch();
int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);
Expand Down
2 changes: 1 addition & 1 deletion src/tilda/generation/java8/TildaFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ public void genBatchWrite(PrintWriter Out, GeneratorSession G, Object O)
Out.println(" PS.clearParameters();");
Out.println(" }");
Out.println();
Out.println(" if (index != 0 && (index + 1) % batchSize != 0)");
Out.println(" if ((index + 1) % batchSize != 0)");
Out.println(" {");
Out.println(" int[] results = PS.executeBatch();");
Out.println(" int failedRec = JDBCHelper.batchWriteDone(results, L.size() - insertCount);");
Expand Down