public class TimestampTest extends DatabaseTestCase
Constructor and Description |
---|
TimestampTest(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object[][] |
getDatatypes() |
static void |
main(java.lang.String[] args) |
void |
test1899Date()
Test for bug [1234531] Dates before 01/01/1900 broken due to DateTime
value markers.
|
void |
testBigint0000() |
void |
testBlob0021() |
void |
testBug638()
Test for bug #638, preparedStatement.setTimestamp sets seconds to 0.
|
void |
testBug682()
Regression test for bug #682, calling a procedure with a parameter of
type date, time or datetime fails with an error.
|
void |
testBug699()
Regression test for bug #699, conversion from String value of Timestamp to
Date fails.
|
void |
testConnection0038() |
void |
testConnection0039() |
void |
testDateEscaping()
Test for bug #541, data type mismatch when using date/time/timestamp JDBC
escapes.
|
void |
testDateRange()
Regression test for bug #632, valid DATE values range from 0001-01-01
to 9999-12-31.
|
void |
testDateTimeConversion()
Test conversion between DATETIME, DATE and TIME.
|
void |
testDateTimeDegeneration()
Test for bug [2508201], date field is changed by 3 milliseconds.
|
void |
testDatetimeRounding1()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDatetimeRounding10()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDatetimeRounding2()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDatetimeRounding3()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDatetimeRounding4()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDatetimeRounding5()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDatetimeRounding6()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDatetimeRounding7()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDatetimeRounding8()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDatetimeRounding9()
Test for bug [994916] datetime decoding in TdsData.java
|
void |
testDayOfWeek()
Test for bug [1226210] {fn dayofweek()} depends on the language.
|
void |
testDecimalConversion0058() |
void |
testEmptyResults0011() |
void |
testEmptyResults0012() |
void |
testEmptyResults0013() |
void |
testEra()
Test for bugs [2181003]/[2349058], an attempt to set a BC date
invalidates driver state/DateTime allows invalid dates through.
|
void |
testErrors0036() |
void |
testEscape(java.lang.String sql,
java.lang.String expected) |
void |
testEscapes0006() |
void |
testEscapes0007() |
void |
testForBrowse0014() |
void |
testGetBoolean0025() |
void |
testGetString()
Test for bug [1235845] getTimestamp() returns illegal value after
getString().
|
void |
testMetaData0046() |
void |
testMissingParameter0016() |
void |
testMultipleResults0015() |
void |
testNestedStatements0022() |
void |
testNestedStatements0026()
SAfe Tests whether cursor-based statements still work ok when
nested.
|
void |
testOutputParams() |
void |
testPreparedStatement0007() |
void |
testPreparedStatement0008() |
void |
testPreparedStatement0009() |
void |
testPreparedStatement0040() |
void |
testPreparedStatement0041() |
void |
testPreparedStatement0042() |
void |
testPreparedTimestampEscaping()
Test for bug #541, data type mismatch when using date/time/timestamp JDBC
escapes.
|
void |
testPrimaryKeyFloat0023() |
void |
testPrimaryKeyReal0024() |
void |
testResultSet0043() |
void |
testResultSet0044() |
void |
testResultSet0045() |
void |
testStatements0020() |
void |
testTimeEscaping()
Test for bug #541, data type mismatch when using date/time/timestamp JDBC
escapes.
|
void |
testTimestampEscaping()
Test for bug #541, data type mismatch when using date/time/timestamp JDBC
escapes.
|
void |
testTimestampRange()
Test for bug [1040475] Possible bug when converting to and from
datetime.
|
void |
testTimestamps0001() |
void |
testTimestamps0004() |
void |
testTimestamps0037() |
void |
testTimestamps0047() |
void |
testTimestamps0048() |
void |
testTimestampTimeZone()
Test for bug [1036059] getTimestamp with Calendar applies tzone offset
wrong way.
|
void |
testTransactions0010() |
void |
testWriteDate()
Test that
java.sql.Date objects are inserted and retrieved
correctly (ie no time component). |
compareBytes, getLongString, getLongString, getType, getTypemap
compareInputStreams, compareReaders, connect, dropDatabase, dropFunction, dropProcedure, dropTable, dropTrigger, dropType, dropView, dump, dump, dumpAll, dumpKeys, dumpRow, dumpRow, getConnection, getConnection, makeObjects, makeTestTables, setUp, tearDown
public void testBug699() throws java.lang.Exception
java.lang.Exception
public void testBug682() throws java.sql.SQLException
Regression test for bug #682, calling a procedure with a parameter of type date, time or datetime fails with an error.
java.sql.SQLException
public void testBug638() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
public void testDateRange() throws java.lang.Exception
Regression test for bug #632, valid DATE values range from 0001-01-01 to 9999-12-31.
java.lang.Exception
public void testBigint0000() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0001() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0004() throws java.lang.Exception
java.lang.Exception
public void testEscape(java.lang.String sql, java.lang.String expected) throws java.lang.Exception
java.lang.Exception
public void testEscapes0006() throws java.lang.Exception
java.lang.Exception
public void testEscapes0007() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0007() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0008() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0009() throws java.lang.Exception
java.lang.Exception
public void testTransactions0010() throws java.lang.Exception
java.lang.Exception
public void testEmptyResults0011() throws java.lang.Exception
java.lang.Exception
public void testEmptyResults0012() throws java.lang.Exception
java.lang.Exception
public void testEmptyResults0013() throws java.lang.Exception
java.lang.Exception
public void testForBrowse0014() throws java.lang.Exception
java.lang.Exception
public void testMultipleResults0015() throws java.lang.Exception
java.lang.Exception
public void testMissingParameter0016() throws java.lang.Exception
java.lang.Exception
java.lang.Object[][] getDatatypes()
public void testOutputParams() throws java.lang.Exception
java.lang.Exception
public void testStatements0020() throws java.lang.Exception
java.lang.Exception
public void testBlob0021() throws java.lang.Exception
java.lang.Exception
public void testNestedStatements0022() throws java.lang.Exception
java.lang.Exception
public void testPrimaryKeyFloat0023() throws java.lang.Exception
java.lang.Exception
public void testPrimaryKeyReal0024() throws java.lang.Exception
java.lang.Exception
public void testGetBoolean0025() throws java.lang.Exception
java.lang.Exception
public void testNestedStatements0026() throws java.lang.Exception
testNestedStatements0022
, which tests
the same with plain (non-cursor-based) statements (and unfortunately
fails).java.lang.Exception
- if an Exception occurs (very relevant, huh?)public void testErrors0036() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0037() throws java.lang.Exception
java.lang.Exception
public void testConnection0038() throws java.lang.Exception
java.lang.Exception
public void testConnection0039() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0040() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0041() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0042() throws java.lang.Exception
java.lang.Exception
public void testResultSet0043() throws java.lang.Exception
java.lang.Exception
public void testResultSet0044() throws java.lang.Exception
java.lang.Exception
public void testResultSet0045() throws java.lang.Exception
java.lang.Exception
public void testMetaData0046() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0047() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0048() throws java.lang.Exception
java.lang.Exception
public void testDecimalConversion0058() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding1() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding2() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding3() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding4() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding5() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding6() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding7() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding8() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding9() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding10() throws java.lang.Exception
java.lang.Exception
public void testTimestampTimeZone() throws java.sql.SQLException
java.sql.SQLException
public void testTimestampRange() throws java.sql.SQLException
jTDS seems to accept dates outside the range accepted by SQL Server (i.e. 1753-9999).
java.sql.SQLException
public void testWriteDate() throws java.sql.SQLException
java.sql.Date
objects are inserted and retrieved
correctly (ie no time component).java.sql.SQLException
public void testDayOfWeek() throws java.lang.Exception
java.lang.Exception
public void testGetString() throws java.sql.SQLException
java.sql.SQLException
public void test1899Date() throws java.lang.Exception
java.lang.Exception
public void testDateTimeDegeneration() throws java.lang.Exception
java.lang.Exception
public void testDateTimeConversion() throws java.lang.Exception
java.lang.Exception
public void testDateEscaping() throws java.sql.SQLException
java.sql.SQLException
public void testTimeEscaping() throws java.sql.SQLException
java.sql.SQLException
public void testTimestampEscaping() throws java.sql.SQLException
java.sql.SQLException
public void testPreparedTimestampEscaping() throws java.sql.SQLException
java.sql.SQLException
public void testEra() throws java.sql.SQLException
java.sql.SQLException
Generated on June 8 2013