function to prevent multiple threads using automatic cursors on
the same connection from stomping over each others cursor.
Originally Jan Wieck, re-reported by Jack Orenstein after
accidental removal.
return m_executeSqlFragments;
// First time through.
- m_statementName = "JDBC_STATEMENT_" + m_preparedCount++;
+ m_statementName = "JDBC_STATEMENT_" + next_preparedCount();
// Set up m_executeSqlFragments
m_executeSqlFragments = new String[m_sqlFragments.length];
{
// Pinch the prepared count for our own nefarious purposes.
- m_cursorName = "JDBC_CURS_" + m_preparedCount++;
+ m_cursorName = "JDBC_CURS_" + next_preparedCount();
// Create a cursor declaration and initial fetch statement from the original query.
int len = m_sqlFragments.length;