public class AnsiSignaturesTest extends BaseJDBCTestCase
Test that Derby resolves routines according to the ANSI method resolution rules. Those rules are summarized in DERBY-3652.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AMBIGUOUS |
static java.lang.String |
MISSING_METHOD_SQLSTATE |
static java.lang.String |
TRIED_ALL_COMBINATIONS |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
AnsiSignaturesTest(java.lang.String name)
Create a new instance.
|
assertCallError, assertCheckTable, assertCommitError, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertResults, assertResults, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, chattyPrepareCall, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, dumpRs, dumpRs, emptyStatementCache, executeQuery, expectCompilationError, expectCompilationError, expectExecutionError, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, goodStatement, goodUpdate, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, toString
public static final java.lang.String MISSING_METHOD_SQLSTATE
public static final java.lang.String TRIED_ALL_COMBINATIONS
public static final java.lang.String AMBIGUOUS
public AnsiSignaturesTest(java.lang.String name)
public static junit.framework.Test suite()
public void test_boolean_boolean_boolean() throws java.lang.Exception
java.lang.Exception
public void test_boolean_Boolean_boolean() throws java.lang.Exception
java.lang.Exception
public void test_boolean_boolean_Boolean() throws java.lang.Exception
java.lang.Exception
public void test_boolean_Boolean_Boolean() throws java.lang.Exception
java.lang.Exception
public void test_smallint_short_short() throws java.lang.Exception
java.lang.Exception
public void test_smallint_short_Integer() throws java.lang.Exception
java.lang.Exception
public void test_smallint_Integer_short() throws java.lang.Exception
java.lang.Exception
public void test_smallint_Integer_Integer() throws java.lang.Exception
java.lang.Exception
public void test_integer_int_int() throws java.lang.Exception
java.lang.Exception
public void test_integer_int_Integer() throws java.lang.Exception
java.lang.Exception
public void test_integer_Integer_int() throws java.lang.Exception
java.lang.Exception
public void test_integer_Integer_Integer() throws java.lang.Exception
java.lang.Exception
public void test_bigint_long_long() throws java.lang.Exception
java.lang.Exception
public void test_bigint_long_Long() throws java.lang.Exception
java.lang.Exception
public void test_bigint_Long_long() throws java.lang.Exception
java.lang.Exception
public void test_bigint_Long_Long() throws java.lang.Exception
java.lang.Exception
public void test_real_float_float() throws java.lang.Exception
java.lang.Exception
public void test_real_float_Float() throws java.lang.Exception
java.lang.Exception
public void test_real_Float_float() throws java.lang.Exception
java.lang.Exception
public void test_real_Float_Float() throws java.lang.Exception
java.lang.Exception
public void test_double_double_double() throws java.lang.Exception
java.lang.Exception
public void test_double_double_Double() throws java.lang.Exception
java.lang.Exception
public void test_double_Double_double() throws java.lang.Exception
java.lang.Exception
public void test_double_Double_Double() throws java.lang.Exception
java.lang.Exception
public void test_numeric_BigDecimal_BigDecimal() throws java.lang.Exception
java.lang.Exception
public void test_decimal_BigDecimal_BigDecimal() throws java.lang.Exception
java.lang.Exception
public void test_varchar_String_String() throws java.lang.Exception
java.lang.Exception
public void test_char_String_String() throws java.lang.Exception
java.lang.Exception
public void test_longvarchar_String_String() throws java.lang.Exception
java.lang.Exception
public void test_bigint__smallint_int_bigint_real_double() throws java.lang.Exception
java.lang.Exception
public void test_flipped_bigint__smallint_int_bigint_real_double() throws java.lang.Exception
java.lang.Exception
public void test_binary_bytes_bytes() throws java.lang.Exception
java.lang.Exception
public void test_binary_bytes_int() throws java.lang.Exception
java.lang.Exception
public void test_varbinary_bytes_bytes() throws java.lang.Exception
java.lang.Exception
public void test_varbinary_bytes_int() throws java.lang.Exception
java.lang.Exception
public void test_longvarbinary_bytes_bytes() throws java.lang.Exception
java.lang.Exception
public void test_longvarbinary_bytes_int() throws java.lang.Exception
java.lang.Exception
public void test_date_Date_Date() throws java.lang.Exception
java.lang.Exception
public void test_time_Time_Time() throws java.lang.Exception
java.lang.Exception
public void test_timestamp_Timestamp_Timestamp() throws java.lang.Exception
java.lang.Exception
public void test_clob_Clob_String() throws java.lang.Exception
java.lang.Exception
public void test_blob_Blob_String() throws java.lang.Exception
java.lang.Exception
public void test_smallint_bad_short_Short() throws java.lang.Exception
java.lang.Exception
public void test_smallint_bad_Short_short() throws java.lang.Exception
java.lang.Exception
public void test_smallint_bad_Short_Short() throws java.lang.Exception
java.lang.Exception
public void test_boolean_badreturn_byte_int() throws java.lang.Exception
java.lang.Exception
public void test_smallint_badreturn_byte_short() throws java.lang.Exception
java.lang.Exception
public void test_integer_badreturn_byte_int() throws java.lang.Exception
java.lang.Exception
public void test_bigint_badreturn_byte_long() throws java.lang.Exception
java.lang.Exception
public void test_real_badreturn_byte_float() throws java.lang.Exception
java.lang.Exception
public void test_double_badreturn_byte_double() throws java.lang.Exception
java.lang.Exception
public void test_binary_badreturn_bytes_bytes() throws java.lang.Exception
java.lang.Exception
public void test_varbinary_badreturn_bytes_bytes() throws java.lang.Exception
java.lang.Exception
public void test_longvarbinary_badreturn_bytes_bytes() throws java.lang.Exception
java.lang.Exception
public void test_boolean_amb_boolean_boolean() throws java.lang.Exception
java.lang.Exception
public void test_boolean_amb_Boolean_boolean() throws java.lang.Exception
java.lang.Exception
public void test_smallint_amb_short_short() throws java.lang.Exception
java.lang.Exception
public void test_smallint_amb_Integer_short() throws java.lang.Exception
java.lang.Exception
public void test_smallint_amb_byte_short() throws java.lang.Exception
java.lang.Exception
public void test_integer_amb_int_int() throws java.lang.Exception
java.lang.Exception
public void test_integer_amb_Integer_int() throws java.lang.Exception
java.lang.Exception
public void test_integer_amb_byte_int() throws java.lang.Exception
java.lang.Exception
public void test_bigint_amb_long_long() throws java.lang.Exception
java.lang.Exception
public void test_bigint_amb_Long_long() throws java.lang.Exception
java.lang.Exception
public void test_bigint_amb_byte_long() throws java.lang.Exception
java.lang.Exception
public void test_real_amb_float_float() throws java.lang.Exception
java.lang.Exception
public void test_real_amb_Float_float() throws java.lang.Exception
java.lang.Exception
public void test_real_amb_byte_float() throws java.lang.Exception
java.lang.Exception
public void test_double_amb_double_double() throws java.lang.Exception
java.lang.Exception
public void test_double_amb_Double_double() throws java.lang.Exception
java.lang.Exception
public void test_double_amb_byte_double() throws java.lang.Exception
java.lang.Exception
public void test_boolean_unres_boolean() throws java.lang.Exception
java.lang.Exception
public void test_boolean_unres_Boolean() throws java.lang.Exception
java.lang.Exception
public void test_smallint_unres_short() throws java.lang.Exception
java.lang.Exception
public void test_smallint_unres_Short() throws java.lang.Exception
java.lang.Exception
public void test_integer_unres_int() throws java.lang.Exception
java.lang.Exception
public void test_integer_unres_Integer() throws java.lang.Exception
java.lang.Exception
public void test_bigint_unres_long() throws java.lang.Exception
java.lang.Exception
public void test_bigint_unres_Long() throws java.lang.Exception
java.lang.Exception
public void test_real_unres_float() throws java.lang.Exception
java.lang.Exception
public void test_real_unres_Float() throws java.lang.Exception
java.lang.Exception
public void test_double_unres_double() throws java.lang.Exception
java.lang.Exception
public void test_double_unres_Double() throws java.lang.Exception
java.lang.Exception
public void test_wrapperOutputArgs() throws java.lang.Exception
java.lang.Exception
private void declareAndRunFunction(java.lang.String name, java.lang.String returnType, java.lang.String[] argTypes, java.lang.String args, java.lang.String result) throws java.lang.Exception
Declare and run a function.
java.lang.Exception
private void declareAndFailFunction(java.lang.String name, java.lang.String returnType, java.lang.String[] argTypes, java.lang.String args, java.lang.String result, java.lang.String sqlstate) throws java.lang.Exception
Declare and run a function and expect the function to fail.
java.lang.Exception
private void runFunction(java.sql.Connection conn, java.lang.String name, java.lang.String args, java.lang.String result, java.lang.String sqlstate) throws java.lang.Exception
Run a function. If sqlstate is not null, then we expect the run to fail.
java.lang.Exception
private void declareFunction(java.sql.Connection conn, java.lang.String name, java.lang.String returnType, java.lang.String[] argTypes) throws java.lang.Exception
Declare a function with the given name, return type, and argument type.
java.lang.Exception
private java.lang.String doubleQuote(java.lang.String raw)
protected java.sql.PreparedStatement chattyPrepare(java.sql.Connection conn, java.lang.String text) throws java.sql.SQLException
chattyPrepare
in class BaseJDBCTestCase
java.sql.SQLException
private java.lang.String getScalarString(java.sql.PreparedStatement ps) throws java.lang.Exception
java.lang.Exception
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.