

Native syntax nor valid escapes.In order to make our code more standard, we were asked to change all the places where we hardcoded our SQL variables to prepared statements and bind the variables instead. Strictly speaking only the JDBC syntax needs toīe recognized, constructions such as "?=#testproc ?,?" are neither valid Note: This method is required for backwards compatibility with Public toString() Returns the SQL command provided at construction time. returnKeys - True if generated keys should be returned. concurrency - The result set concurrency eg READONLY. resultSetType - The result set type eg SCROLLABLE etc. Parameters: connection - The parent connection. Throws Construct a new preparedStatement object. JtdsPreparedStatement JtdsPreparedStatement( ConnectionJDBC2 connection, handles Collection of handles used by this statement Private static final f Used to format numeric values when scale is specified. Protected ParamInfo paramMetaData The cached parameter meta data. Private boolean returnKeys True to return generated keys. Protected ParamInfo parameters The parameter list for the call. Protected procName The procedure name for CallableStatements. Protected sqlWord The first SQL keyword in the SQL string. Private final originalSql The original SQL statement provided at construction time. Protected final sql The SQL statement being prepared. Methods inherited from interface Ĭancel, clearBatch, clearWarnings, executeBatch, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout Methods inherited from class Ĭlone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

JtdsStatementĪddWarning, cacheResults, cancel, checkCursorException, clearBatch, clearWarnings, closeAllResultSets, closeCurrentResultSet, executeBatch, executeSQL, executeSQLQuery, finalize, getConnection, getDefaultFetchSize, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMessages, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getTds, getUpdateCount, getWarnings, isClosed, notImplemented, reset, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout, useCursor

Returns the SQL command provided at construction time.
#SETDATE SQL UPDATE#
Update the cached parameter meta data information. Update the ParamInfo object for the specified parameter. Update the cached column meta data information. Report that user tried to call a method not supported on this type of statement. This method converts native call syntax into (hopefully) valid JDBC JtdsPreparedStatement( ConnectionJDBC2 connection,Ĭonstruct a new preparedStatement object.Įxecute the SQL batch on a Sybase server.Ĭheck the supplied index and return the selected parameter. JtdsStatementīatchValues, BOOLEAN, CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, colMetaData, connection, currentResult, cursorName, DATALINK, DEFAULT_FETCH_SIZE, escapeProcessing, EXECUTE_FAILED, fetchDirection, fetchSize, GENKEYCOL, genKeyResultSet, KEEP_CURRENT_RESULT, maxFieldSize, maxRows, messages, NO_GENERATED_KEYS, openResultSets, queryTimeout, resultQueue, resultSetConcurrency, resultSetType, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO, tdsįields inherited from interface ĬLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO The procedure name for CallableStatements.įields inherited from class. The original SQL statement provided at construction time. Used to format numeric values when scale is specified.Ĭollection of handles used by this statement
#SETDATE SQL DRIVERS#
With all the other JDBC drivers that I have been able to test.Īuthor: Brian Heineman, Mike Hutchinson, Holger Rehn This is unlike the original jTDS but inline
