public class PreparedStatementTest extends TestBase
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PreparedStatementTest.TestMultiThread
Inner class used by
testMultiThread() to
test concurrency. |
| Constructor and Description |
|---|
PreparedStatementTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
void |
testArithmeticOverflow()
Test for bug [1374127], Arithmetic overflow at sql_variant.
|
void |
testBigDecBadParamSpec()
Test for bug [1094621] Decimal conversion error: A prepared statement
with a decimal parameter that is -1E38 will fail as a result of the
driver generating a parameter specification of decimal(38,10) rather
than decimal(38,0).
|
void |
testBug657() |
void |
testBug686() |
void |
testBug695()
Test for trailing line comment breaking connection state on metadata
retrieval when autocommit is false
|
void |
testEscapedParams()
Test for parameter markers in function escapes.
|
void |
testFloatValues()
Tests that float (single precision - 32 bit) values are not converted to
double (thus loosing precision).
|
void |
testIllegalParameters()
Test for bug [1111516 ] Illegal Parameters in PreparedStatement.
|
void |
testLongStatement()
Test for bug [1022968] Long SQL expression error.
|
void |
testManyParametersStatement()
Test for bug [1047330] prep statement with more than 2100 params fails.
|
void |
testMaxRows()
Test for bug [1010660] 0.9-rc1 setMaxRows causes unlimited temp stored
procedures.
|
void |
testMetaData()
Test for bad truncation in prepared statements on metadata retrieval
(patch [1076383] ResultSetMetaData for more complex statements for SQL
Server).
|
void |
testMetaDataClearsResultSet()
Test for bug [1050660] PreparedStatement.getMetaData() clears resultset.
|
void |
testMissingWhitespace()
Test for bug [ 1059916 ] whitespace needed in preparedStatement.
|
void |
testMultiByteCharTruncation()
Test for bug [2814376] varchar-type is truncated in non-unicode
environment.
|
void |
testMultiThread()
Test
Connection concurrency by running
PreparedStatements and rollbacks at the same time to see
whether handles are not lost in the process. |
void |
testNegativeScale() |
void |
testNoPrepare()
Test that statements which cannot be prepared are remembered.
|
void |
testOuterJoinParameters()
Test for bug [1071397] Error in prepared statement (parameters in outer
join escapes are not recognized).
|
void |
testPreparedStatement() |
void |
testPreparedStatementAddBatch1() |
void |
testPreparedStatementParsing1()
Test for [924030] EscapeProcesser problem with "{}" brackets
|
void |
testPreparedStatementParsing2()
Test for bug [1008882] Some queries with parameters cannot be executed with 0.9-rc1
|
void |
testPreparedStatementParsing3()
Test for "invalid parameter index" error.
|
void |
testPreparedStatementRollback1()
Test for [931090] ArrayIndexOutOfBoundsException in rollback()
|
void |
testPreparedStatementSetObject1()
Test for bug [938494] setObject(i, o, NUMERIC/DECIMAL) cuts off decimal places
|
void |
testPreparedStatementSetObject2()
Test for bug [938494] setObject(i, o, NUMERIC/DECIMAL) cuts off decimal places
|
void |
testPreparedStatementSetObject3()
Test for bug [938494] setObject(i, o, NUMERIC/DECIMAL) cuts off decimal places
|
void |
testPreparedStatementSetObject4()
Test for bug [938494] setObject(i, o, NUMERIC/DECIMAL) cuts off decimal places
|
void |
testPreparedStatementSetObject5()
Test for bug [938494] setObject(i, o, NUMERIC/DECIMAL) cuts off decimal places
|
void |
testPreparedStatementSetObject6()
Test for bug [1204658] Conversion from Number to BigDecimal causes data
corruption.
|
void |
testPrepareFailWarning()
Test for bug #378, collation-related exception on update.
|
void |
testPrepareModes()
Test that preparedstatement logic copes with commit modes and
database changes.
|
void |
testPrepareSQL0()
Test for bug [1623668] Lost apostrophes in statement parameter values(prepareSQL=0)
|
void |
testScrollablePreparedStatement() |
void |
testUpdateCount1()
Test for bug [985754] row count is always 0
|
void |
testWithClauseMetaData()
Regression test for bug #647,
PreparedStatement doesn't return
ResultSetMetaData for SQL statements using a WITH clause. |
compareInputStreams, compareReaders, connect, dropDatabase, dropFunction, dropProcedure, dropTable, dropTrigger, dropType, dropView, dump, dump, dumpAll, dumpKeys, dumpRow, dumpRow, getConnection, getConnection, makeObjects, makeTestTables, setUp, tearDownpublic void testBug695()
throws java.lang.Exception
java.lang.Exceptionpublic void testBug686()
throws java.lang.Exception
java.lang.Exceptionpublic void testBug657()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatement()
throws java.lang.Exception
java.lang.Exceptionpublic void testScrollablePreparedStatement()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementAddBatch1()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementParsing1()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementParsing2()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementParsing3()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementRollback1()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementSetObject1()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementSetObject2()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementSetObject3()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementSetObject4()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementSetObject5()
throws java.lang.Exception
java.lang.Exceptionpublic void testPreparedStatementSetObject6()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateCount1()
throws java.lang.Exception
java.lang.Exceptionpublic void testEscapedParams()
throws java.lang.Exception
java.lang.Exceptionpublic void testMissingWhitespace()
throws java.lang.Exception
java.lang.Exceptionpublic void testLongStatement()
throws java.lang.Exception
java.lang.Exceptionpublic void testManyParametersStatement()
throws java.lang.Exception
java.lang.Exceptionpublic void testMaxRows()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testMetaDataClearsResultSet()
throws java.lang.Exception
java.lang.Exceptionpublic void testMetaData()
throws java.lang.Exception
java.lang.Exceptionpublic void testWithClauseMetaData()
throws java.lang.Exception
Regression test for bug #647, PreparedStatement doesn't return
ResultSetMetaData for SQL statements using a WITH clause.
java.lang.Exceptionpublic void testOuterJoinParameters()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testMultiThread()
throws java.lang.Exception
Connection concurrency by running
PreparedStatements and rollbacks at the same time to see
whether handles are not lost in the process.java.lang.Exceptionpublic void testBigDecBadParamSpec()
throws java.lang.Exception
java.lang.Exceptionpublic void testIllegalParameters()
throws java.lang.Exception
java.lang.Exceptionpublic void testPrepareFailWarning()
throws java.sql.SQLException
Test for bug #378, collation-related exception on update.
If a statement prepare fails the statement should still be executed (unprepared) and a warning should be added to the connection (the prepare failed, this is a connection event even if it happened on statement execute).
java.sql.SQLExceptionpublic void testPrepareModes()
throws java.lang.Exception
java.lang.Exceptionpublic void testNoPrepare()
throws java.lang.Exception
java.lang.Exceptionpublic void testFloatValues()
throws java.lang.Exception
java.lang.Exceptionpublic void testNegativeScale()
throws java.lang.Exception
java.lang.Exceptionpublic void testPrepareSQL0()
throws java.lang.Exception
java.lang.Exceptionpublic void testMultiByteCharTruncation()
throws java.lang.Exception
java.lang.Exceptionpublic void testArithmeticOverflow()
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
Generated on June 8 2013