@@ -173,14 +173,15 @@ public synchronized void execute(int cursorIdx, Object[] parms)
173
173
DataSource ds = getDataSourceNoException ();
174
174
if (ds !=null && ds .jdbcIntegrity ==false )
175
175
{
176
- // If the JDBC integrity is disabled, SQLIte is in autocommit mode.
176
+ // If the JDBC integrity is disabled (XBASE_TINT) , SQLIte is in autocommit mode.
177
177
// we need to lock the execute method to avoid concurrency issues.
178
178
// for example, the postExecute method (select changes()) cause exception in Android SQLite.
179
+ // it happends with execute sql statements like from diferent threads, like using procedures submit.
179
180
AndroidLog .debug ("execute cursorIdx : " + cursorIdx );
180
- long timeStamp = System .currentTimeMillis ();
181
+ long timeStampStart = System .currentTimeMillis ();
181
182
lockExecute .lock ();
182
- long timeStampLock2 = System .currentTimeMillis ();
183
- AndroidLog .debug ("START execute afterlock cursorIdx: " + cursorIdx + " Waiting time: " + (timeStampLock2 - timeStamp ));
183
+ long timeStampLock = System .currentTimeMillis ();
184
+ AndroidLog .debug ("START execute afterlock cursorIdx: " + cursorIdx + " Waiting time ms : " + (timeStampLock - timeStampStart ));
184
185
try
185
186
{
186
187
// execute the cursor with the parameters.
@@ -190,8 +191,8 @@ public synchronized void execute(int cursorIdx, Object[] parms)
190
191
{
191
192
lockExecute .unlock ();
192
193
}
193
- long timeStamp2 = System .currentTimeMillis ();
194
- AndroidLog .debug ("END execute cursorIdx: " + cursorIdx + " Execute time: " + (timeStamp2 - timeStampLock2 ));
194
+ long timeStampEnd = System .currentTimeMillis ();
195
+ AndroidLog .debug ("END execute cursorIdx: " + cursorIdx + " Execute time ms : " + (timeStampEnd - timeStampLock ));
195
196
}
196
197
else
197
198
{
0 commit comments