Java Doc for ResultSetRegressionTest.java in  » Database-JDBC-Connection-Pool » mysql » testsuite » regression » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » mysql » testsuite.regression 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


testsuite.BaseTestCase
   testsuite.regression.ResultSetRegressionTest

ResultSetRegressionTest
public class ResultSetRegressionTest extends BaseTestCase (Code)
Regression test cases for the ResultSet class.
author:
   Mark Matthews



Constructor Summary
public  ResultSetRegressionTest(String name)
    

Method Summary
public static  voidmain(String[] args)
    
public  voidtestAllTypesForNull()
    
public  voidtestBogusTimestampAsString()
    
public  voidtestBooleans()
    
public  voidtestBug10156()
    
public  voidtestBug10212()
    
public  voidtestBug10485()
     Tests fix for BUG#10485, SQLException thrown when retrieving YEAR(2) with ResultSet.getString().
public  voidtestBug11190()
     Tests fix for BUG#11190 - ResultSet.moveToCurrentRow() fails to work when preceeded with .moveToInsertRow().
public  voidtestBug11552()
     Tests fix for BUG#11552, wrong values returned from server-side prepared statements if values are unsigned.
public  voidtestBug12104()
     Tests fix for BUG#12104 - Geometry types not handled with server-side prepared statements.
public  voidtestBug13043()
     Tests fix for BUG#13043 - when 'gatherPerfMetrics' is enabled for servers < 4.1.0, a NPE is thrown from the constructor of ResultSet if the query doesn't use any tables.
public  voidtestBug13374()
     Tests fix for BUG#13374 - ResultSet.getStatement() on closed result set returns NULL (as per JDBC 4.0 spec, but not backwards-compatible).
public  voidtestBug14562()
     Tests bugfix for BUG#14562 - metadata/type for MEDIUMINT UNSIGNED is incorrect.
public  voidtestBug14609()
     Tests fix for BUG#14609 - Exception thrown for new decimal type when using updatable result sets.
public  voidtestBug14897()
    
public  voidtestBug15677()
     Tests fix for BUG#15677, wrong values returned from getShort() if SQL values are tinyint unsigned.
public  voidtestBug16169()
     Tests fix for BUG#16169 - ResultSet.getNativeShort() causes stack overflow error via recurisve calls.
public  voidtestBug16841()
     Tests fix for BUG#16841 - updatable result set doesn't return AUTO_INCREMENT values for insertRow() when multiple column primary keys are used.
public  voidtestBug17450()
     Tests fix for BUG#17450 - ResultSet.wasNull() not always reset correctly for booleans when done via conversion for server-side prepared statements.
public  voidtestBug18880()
     Tests fix for BUG#18880 - ResultSet.getFloatFromString() can't retrieve values near Float.MIN/MAX_VALUE.
public  voidtestBug19282()
     Tests fix for BUG#19282 - ResultSet.wasNull() returns incorrect value when extracting native string from server-side prepared statement generated result set.
public  voidtestBug19568()
    
public  voidtestBug19724()
    
public  voidtestBug20306()
     Tests fix for BUG#20306 - ResultSet.getShort() for UNSIGNED TINYINT returns incorrect values when using server-side prepared statements.
public  voidtestBug20479()
     Tests fix for BUG#20479 - Updatable result set throws ClassCastException when there is row data and moveToInsertRow() is called.
public  voidtestBug20485()
     Tests fix for BUG#20485 - Updatable result set that contains a BIT column fails when server-side prepared statements are used.
public  voidtestBug21062()
    
public  voidtestBug21379()
     Tests fix(es) for BUG#21379 - column names don't match metadata in cases where server doesn't return original column names (functions) thus breaking compatibility with applications that expect 1-1 mappings between findColumn() and rsmd.getColumnName().
public  voidtestBug21814()
    
public  voidtestBug2359()
     Tests fix for BUG#???? -- Numeric types and server-side prepared statements incorrectly detect nulls.
public  voidtestBug24710()
     Tests for a server bug - needs to be revisited when the server is fixed.
public  voidtestBug24886()
    
public  voidtestBug25517()
     Tests fix for BUG#25517 - Statement.setMaxRows() is not effective on result sets materialized from cursors.
public  voidtestBug25787()
     Tests fix for BUG#25787 - java.util.Date should be serialized for PreparedStatement.setObject().
public  voidtestBug25894()
    
public  voidtestBug26173()
     Tests fix for BUG#26173 - fetching rows via cursor retrieves corrupted data.
public  voidtestBug2623()
     Tests fix for BUG#2643, ClassCastException when using this.rs.absolute() and server-side prepared statements.
public  voidtestBug2654()
    
public  voidtestBug26789()
     Tests fix for BUG#26789 - fast date/time parsing doesn't take into account 00:00:00 as a legal value.
public  voidtestBug27317()
     Tests fix for BUG#27317 - column index < 1 returns misleading error message.
public  voidtestBug28085()
     Tests fix for BUG#28085 - Need more useful error messages for diagnostics when the driver thinks a result set isn't updatable.
public  voidtestBug30664()
     Tests fix for BUG#30664.
public  voidtestBug4482()
     Tests fix for BUG#4482, ResultSet.getObject() returns wrong type for strings when using prepared statements.
public  voidtestBug4689()
     Test fix for BUG#4689 - WasNull not getting set correctly for binary result sets.
public  voidtestBug5032()
     Tests fix for BUG#5032 -- ResultSet.getObject() doesn't return type Boolean for pseudo-bit types from prepared statements on 4.1.x.
public  voidtestBug5069()
     Tests fix for BUG#5069 -- ResultSet.getMetaData() should not return incorrectly-initialized metadata if the result set has been closed, but should instead throw a SQLException.
public  voidtestBug5136()
     Tests for BUG#5136, GEOMETRY types getting corrupted, turns out to be a server bug.
public  voidtestBug5235()
     Tests for BUG#5235, ClassCastException on all-zero date field when zeroDatetimeBehavior is 'convertToNull'...however it appears that this bug doesn't exist.
public  voidtestBug5664()
     Tests fix for BUG#5664, ResultSet.updateByte() when on insert row throws ArrayOutOfBoundsException.
public  voidtestBug5717()
    
public  voidtestBug6231()
     Tests fix for BUG#6231, ResultSet.getTimestamp() on a column with TIME in it fails.
public  voidtestBug6537()
     Tests fix for server issue that drops precision on aggregate operations on DECIMAL types, because they come back as DOUBLEs.
public  voidtestBug6561()
     Tests for presence of BUG#6561, NPE thrown when dealing with 0 dates and non-unpacked result sets.
public  voidtestBug6619()
    
public  voidtestBug6743()
    
public  voidtestBug7686()
    
public  voidtestBug7715()
     Tests fix for BUG#7715 - Timestamps converted incorrectly to strings with SSPS and Upd.
public  voidtestBug8428()
     Tests fix for BUG#8428 - getString() doesn't maintain format stored on server.
public  voidtestBug8868()
     Tests fix for Bug#8868, DATE_FORMAT() queries returned as BLOBs from getObject().
public  voidtestBug9098()
     Tests fix for BUG#9098 - Server doesn't give us info to distinguish between CURRENT_TIMESTAMP and 'CURRENT_TIMESTAMP' for default values.
public  voidtestBug9236()
    
public  voidtestBug9437()
     Tests fix for BUG#9437, IF() returns type of [B or java.lang.String depending on platform.
public  voidtestBug9684()
    
public  voidtestClobTruncate()
    
public  voidtestClobberStreamingRS()
     Tests that streaming result sets are registered correctly.
public  voidtestEmptyResultSetGet()
    
public  voidtestEmptyStringsWithNumericGetters()
    
public  voidtestFixForBug1592()
     Checks fix for BUG#1592 -- cross-database updatable result sets are not checked for updatability correctly.
public  voidtestFixForBug2006()
     Tests fix for BUG#2006, where 2 columns with same name in a result set are returned via findColumn() in the wrong order...The JDBC spec states, that the _first_ matching column should be returned.
public  voidtestGetLongBug()
     Tests that ResultSet.getLong() does not truncate values.
public  voidtestGetTimestampWithDate()
    
public  voidtestIsBeforeFirstOnEmpty()
    
public  voidtestMetaDataIsWritable()
    
public  voidtestNPEWithStatementsAndTime()
    
public  voidtestNPEWithUsageAdvisor()
    
public  voidtestNegativeOneIsTrue()
    
public  voidtestNextAndPrevious()
    
public  voidtestNotUpdatable()
     Tests fix for BUG#1630 (not updatable exception turning into NPE on second updateFoo() method call.
public  voidtestStreamingRegBug()
     Tests that streaming result sets are registered correctly.
public  voidtestTruncationDisable()
    
public  voidtestTruncationOfNonSigDigits()
     Tests correct detection of truncation of non-sig digits.
public  voidtestUpdatability()
     Tests that result sets can be updated when all parameters are correctly set.
public  voidtestUpdatabilityAndEscaping()
    
public  voidtestUpdatabilityWithQuotes()
     Tests the fix for BUG#661 ...
public  voidtestUpdateClob()
    
public  voidtestUsageAdvisorOnZeroRowResultSet()
    
public  voidtestbug25328()
     Tests fix for BUG#25328 - BIT(> 1) is returned as java.lang.String from ResultSet.getObject() rather than byte[].
public  voidtestbug30851()
     Tests fix for BUG#30851, NPE with null column values when "padCharsWithSpace" is set to "true".


Constructor Detail
ResultSetRegressionTest
public ResultSetRegressionTest(String name)(Code)
Creates a new ResultSetRegressionTest
Parameters:
  name - the name of the test to run




Method Detail
main
public static void main(String[] args)(Code)
Runs all test cases in this test suite
Parameters:
  args -



testAllTypesForNull
public void testAllTypesForNull() throws Exception(Code)



testBogusTimestampAsString
public void testBogusTimestampAsString() throws Exception(Code)



testBooleans
public void testBooleans() throws Exception(Code)



testBug10156
public void testBug10156() throws Exception(Code)
Tests fix for BUG#10156 - Unsigned SMALLINT treated as signed
throws:
  Exception - if the test fails.



testBug10212
public void testBug10212() throws Exception(Code)



testBug10485
public void testBug10485() throws Exception(Code)
Tests fix for BUG#10485, SQLException thrown when retrieving YEAR(2) with ResultSet.getString().
throws:
  Exception - if the test fails.



testBug11190
public void testBug11190() throws Exception(Code)
Tests fix for BUG#11190 - ResultSet.moveToCurrentRow() fails to work when preceeded with .moveToInsertRow().
throws:
  Exception - if the test fails.



testBug11552
public void testBug11552() throws Exception(Code)
Tests fix for BUG#11552, wrong values returned from server-side prepared statements if values are unsigned.
throws:
  Exception - if the test fails.



testBug12104
public void testBug12104() throws Exception(Code)
Tests fix for BUG#12104 - Geometry types not handled with server-side prepared statements.
throws:
  Exception - if the test fails



testBug13043
public void testBug13043() throws Exception(Code)
Tests fix for BUG#13043 - when 'gatherPerfMetrics' is enabled for servers < 4.1.0, a NPE is thrown from the constructor of ResultSet if the query doesn't use any tables.
throws:
  Exception - if the test fails



testBug13374
public void testBug13374() throws Exception(Code)
Tests fix for BUG#13374 - ResultSet.getStatement() on closed result set returns NULL (as per JDBC 4.0 spec, but not backwards-compatible).
throws:
  Exception - if the test fails



testBug14562
public void testBug14562() throws Exception(Code)
Tests bugfix for BUG#14562 - metadata/type for MEDIUMINT UNSIGNED is incorrect.
throws:
  Exception - if the test fails.



testBug14609
public void testBug14609() throws Exception(Code)
Tests fix for BUG#14609 - Exception thrown for new decimal type when using updatable result sets.
throws:
  Exception - if the test fails



testBug14897
public void testBug14897() throws Exception(Code)



testBug15677
public void testBug15677() throws Exception(Code)
Tests fix for BUG#15677, wrong values returned from getShort() if SQL values are tinyint unsigned.
throws:
  Exception - if the test fails.



testBug16169
public void testBug16169() throws Exception(Code)
Tests fix for BUG#16169 - ResultSet.getNativeShort() causes stack overflow error via recurisve calls.
throws:
  Exception - if the tests fails



testBug16841
public void testBug16841() throws Exception(Code)
Tests fix for BUG#16841 - updatable result set doesn't return AUTO_INCREMENT values for insertRow() when multiple column primary keys are used.
throws:
  Exception - if the test fails.



testBug17450
public void testBug17450() throws Exception(Code)
Tests fix for BUG#17450 - ResultSet.wasNull() not always reset correctly for booleans when done via conversion for server-side prepared statements.
throws:
  Exception - if the test fails.



testBug18880
public void testBug18880() throws Exception(Code)
Tests fix for BUG#18880 - ResultSet.getFloatFromString() can't retrieve values near Float.MIN/MAX_VALUE.
throws:
  Exception - if the test fails.



testBug19282
public void testBug19282() throws Exception(Code)
Tests fix for BUG#19282 - ResultSet.wasNull() returns incorrect value when extracting native string from server-side prepared statement generated result set.
throws:
  Exception - if the test fails.



testBug19568
public void testBug19568() throws Exception(Code)
Tests fix for BUG#
throws:
  Exception -



testBug19724
public void testBug19724() throws Exception(Code)



testBug20306
public void testBug20306() throws Exception(Code)
Tests fix for BUG#20306 - ResultSet.getShort() for UNSIGNED TINYINT returns incorrect values when using server-side prepared statements.
throws:
  Exception - if the test fails.



testBug20479
public void testBug20479() throws Exception(Code)
Tests fix for BUG#20479 - Updatable result set throws ClassCastException when there is row data and moveToInsertRow() is called.
throws:
  Exception - if the test fails.



testBug20485
public void testBug20485() throws Exception(Code)
Tests fix for BUG#20485 - Updatable result set that contains a BIT column fails when server-side prepared statements are used.
throws:
  Exception - if the test fails.



testBug21062
public void testBug21062() throws Exception(Code)
Tests fix for BUG#21062 - ResultSet.getSomeInteger() doesn't work for BIT(>1)
throws:
  Exception - if the test fails.



testBug21379
public void testBug21379() throws Exception(Code)
Tests fix(es) for BUG#21379 - column names don't match metadata in cases where server doesn't return original column names (functions) thus breaking compatibility with applications that expect 1-1 mappings between findColumn() and rsmd.getColumnName().
throws:
  Exception - if the test fails.



testBug21814
public void testBug21814() throws Exception(Code)
Tests fix for BUG#21814 - time values outside valid range silently wrap
throws:
  Exception - if the test fails.



testBug2359
public void testBug2359() throws Exception(Code)
Tests fix for BUG#???? -- Numeric types and server-side prepared statements incorrectly detect nulls.
throws:
  Exception - if the test fails



testBug24710
public void testBug24710() throws Exception(Code)
Tests for a server bug - needs to be revisited when the server is fixed.
throws:
  Exception - if the test fails.



testBug24886
public void testBug24886() throws Exception(Code)



testBug25517
public void testBug25517() throws Exception(Code)
Tests fix for BUG#25517 - Statement.setMaxRows() is not effective on result sets materialized from cursors.
throws:
  Exception - if the test fails



testBug25787
public void testBug25787() throws Exception(Code)
Tests fix for BUG#25787 - java.util.Date should be serialized for PreparedStatement.setObject(). We add a new configuration option "treatUtilDateAsTimestamp", which is false by default, as (1) We already had specific behavior to treat java.util.Date as a java.sql.Timestamp because it's useful to many folks, and (2) that behavior will very likely be in JDBC-post-4.0 as a requirement.
throws:
  Exception - if the test fails.



testBug25894
public void testBug25894() throws Exception(Code)



testBug26173
public void testBug26173() throws Exception(Code)
Tests fix for BUG#26173 - fetching rows via cursor retrieves corrupted data.
throws:
  Exception - if the test fails.



testBug2623
public void testBug2623() throws Exception(Code)
Tests fix for BUG#2643, ClassCastException when using this.rs.absolute() and server-side prepared statements.
throws:
  Exception -



testBug2654
public void testBug2654() throws Exception(Code)
Tests fix for BUG#2654, "Column 'column.table' not found" when "order by" in query"
throws:
  Exception - if the test fails



testBug26789
public void testBug26789() throws Exception(Code)
Tests fix for BUG#26789 - fast date/time parsing doesn't take into account 00:00:00 as a legal value.
throws:
  Exception - if the test fails



testBug27317
public void testBug27317() throws Exception(Code)
Tests fix for BUG#27317 - column index < 1 returns misleading error message.
throws:
  Exception - if the test fails.



testBug28085
public void testBug28085() throws Exception(Code)
Tests fix for BUG#28085 - Need more useful error messages for diagnostics when the driver thinks a result set isn't updatable.
throws:
  Exception - if the tests fail.



testBug30664
public void testBug30664() throws Exception(Code)
Tests fix for BUG#30664. Note that this fix only works for MySQL server 5.0.25 and newer, since earlier versions didn't consistently return correct metadata for functions, and thus results from subqueries and functions were indistinguishable from each other, leading to type-related bugs.
throws:
  Exception -



testBug4482
public void testBug4482() throws Exception(Code)
Tests fix for BUG#4482, ResultSet.getObject() returns wrong type for strings when using prepared statements.
throws:
  Exception - if the test fails.



testBug4689
public void testBug4689() throws Exception(Code)
Test fix for BUG#4689 - WasNull not getting set correctly for binary result sets.



testBug5032
public void testBug5032() throws Exception(Code)
Tests fix for BUG#5032 -- ResultSet.getObject() doesn't return type Boolean for pseudo-bit types from prepared statements on 4.1.x.
throws:
  Exception - if the test fails.



testBug5069
public void testBug5069() throws Exception(Code)
Tests fix for BUG#5069 -- ResultSet.getMetaData() should not return incorrectly-initialized metadata if the result set has been closed, but should instead throw a SQLException. Also tests fix for getRow() and getWarnings() and traversal methods.
throws:
  Exception - if the test fails.



testBug5136
public void testBug5136() throws Exception(Code)
Tests for BUG#5136, GEOMETRY types getting corrupted, turns out to be a server bug.
throws:
  Exception - if the test fails.



testBug5235
public void testBug5235() throws Exception(Code)
Tests for BUG#5235, ClassCastException on all-zero date field when zeroDatetimeBehavior is 'convertToNull'...however it appears that this bug doesn't exist. This is a placeholder until we get more data from the user on how they provoke this bug to happen.
throws:
  Exception - if the test fails.



testBug5664
public void testBug5664() throws Exception(Code)
Tests fix for BUG#5664, ResultSet.updateByte() when on insert row throws ArrayOutOfBoundsException.
throws:
  Exception - if the test fails.



testBug5717
public void testBug5717() throws Exception(Code)
Tests our ability to reject NaN and +/- INF in PreparedStatement.setDouble();



testBug6231
public void testBug6231() throws Exception(Code)
Tests fix for BUG#6231, ResultSet.getTimestamp() on a column with TIME in it fails.
throws:
  Exception - if the test fails.



testBug6537
public void testBug6537() throws Exception(Code)
Tests fix for server issue that drops precision on aggregate operations on DECIMAL types, because they come back as DOUBLEs.
throws:
  Exception - if the test fails.



testBug6561
public void testBug6561() throws Exception(Code)
Tests for presence of BUG#6561, NPE thrown when dealing with 0 dates and non-unpacked result sets.
throws:
  Exception - if the test occurs.



testBug6619
public void testBug6619() throws Exception(Code)



testBug6743
public void testBug6743() throws Exception(Code)



testBug7686
public void testBug7686() throws SQLException(Code)



testBug7715
public void testBug7715() throws Exception(Code)
Tests fix for BUG#7715 - Timestamps converted incorrectly to strings with SSPS and Upd. Result Sets.
throws:
  Exception - if the test fails.



testBug8428
public void testBug8428() throws Exception(Code)
Tests fix for BUG#8428 - getString() doesn't maintain format stored on server.
throws:
  Exception - if the test fails.



testBug8868
public void testBug8868() throws Exception(Code)
Tests fix for Bug#8868, DATE_FORMAT() queries returned as BLOBs from getObject().
throws:
  Exception - if the test fails.



testBug9098
public void testBug9098() throws Exception(Code)
Tests fix for BUG#9098 - Server doesn't give us info to distinguish between CURRENT_TIMESTAMP and 'CURRENT_TIMESTAMP' for default values.
throws:
  Exception - if the test fails



testBug9236
public void testBug9236() throws Exception(Code)
Tests fix for BUG#9236, a continuation of BUG#8868, where functions used in queries that should return non-string types when resolved by temporary tables suddenly become opaque binary strings (work-around for server limitation)
throws:
  Exception - if the test fails.



testBug9437
public void testBug9437() throws Exception(Code)
Tests fix for BUG#9437, IF() returns type of [B or java.lang.String depending on platform. Fixed earlier, but in here to catch if it ever regresses.
throws:
  Exception - if the test fails.



testBug9684
public void testBug9684() throws Exception(Code)



testClobTruncate
public void testClobTruncate() throws Exception(Code)
Tests for fix to BUG#1130
throws:
  Exception - if the test fails



testClobberStreamingRS
public void testClobberStreamingRS() throws Exception(Code)
Tests that streaming result sets are registered correctly.
throws:
  Exception - if any errors occur



testEmptyResultSetGet
public void testEmptyResultSetGet() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



testEmptyStringsWithNumericGetters
public void testEmptyStringsWithNumericGetters() throws Exception(Code)



testFixForBug1592
public void testFixForBug1592() throws Exception(Code)
Checks fix for BUG#1592 -- cross-database updatable result sets are not checked for updatability correctly.
throws:
  Exception - if the test fails.



testFixForBug2006
public void testFixForBug2006() throws Exception(Code)
Tests fix for BUG#2006, where 2 columns with same name in a result set are returned via findColumn() in the wrong order...The JDBC spec states, that the _first_ matching column should be returned.
throws:
  Exception - if the test fails



testGetLongBug
public void testGetLongBug() throws Exception(Code)
Tests that ResultSet.getLong() does not truncate values.
throws:
  Exception - if any errors occur



testGetTimestampWithDate
public void testGetTimestampWithDate() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



testIsBeforeFirstOnEmpty
public void testIsBeforeFirstOnEmpty() throws Exception(Code)
Tests a bug where ResultSet.isBefireFirst() would return true when the result set was empty (which is incorrect)
throws:
  Exception - if an error occurs.



testMetaDataIsWritable
public void testMetaDataIsWritable() throws Exception(Code)
Tests a bug where ResultSet.isBefireFirst() would return true when the result set was empty (which is incorrect)
throws:
  Exception - if an error occurs.



testNPEWithStatementsAndTime
public void testNPEWithStatementsAndTime() throws Exception(Code)



testNPEWithUsageAdvisor
public void testNPEWithUsageAdvisor() throws Exception(Code)



testNegativeOneIsTrue
public void testNegativeOneIsTrue() throws Exception(Code)



testNextAndPrevious
public void testNextAndPrevious() throws Exception(Code)
Tests fix for bug # 496
throws:
  Exception - if an error happens.



testNotUpdatable
public void testNotUpdatable() throws Exception(Code)
Tests fix for BUG#1630 (not updatable exception turning into NPE on second updateFoo() method call.
throws:
  Exception - if an unexpected exception is thrown.



testStreamingRegBug
public void testStreamingRegBug() throws Exception(Code)
Tests that streaming result sets are registered correctly.
throws:
  Exception - if any errors occur



testTruncationDisable
public void testTruncationDisable() throws Exception(Code)



testTruncationOfNonSigDigits
public void testTruncationOfNonSigDigits() throws Exception(Code)
Tests correct detection of truncation of non-sig digits.
throws:
  Exception - if the test fails.



testUpdatability
public void testUpdatability() throws Exception(Code)
Tests that result sets can be updated when all parameters are correctly set.
throws:
  Exception - if any errors occur



testUpdatabilityAndEscaping
public void testUpdatabilityAndEscaping() throws Exception(Code)
Test fixes for BUG#1071
throws:
  Exception - if the test fails.



testUpdatabilityWithQuotes
public void testUpdatabilityWithQuotes() throws Exception(Code)
Tests the fix for BUG#661 ... refreshRow() fails when primary key values have escaped data in them.
throws:
  Exception - if an error occurs



testUpdateClob
public void testUpdateClob() throws Exception(Code)
Checks whether or not ResultSet.updateClob() is implemented
throws:
  Exception - if the test fails



testUsageAdvisorOnZeroRowResultSet
public void testUsageAdvisorOnZeroRowResultSet() throws Exception(Code)



testbug25328
public void testbug25328() throws Exception(Code)
Tests fix for BUG#25328 - BIT(> 1) is returned as java.lang.String from ResultSet.getObject() rather than byte[].
throws:
  Exception - if the test fails.



testbug30851
public void testbug30851() throws Exception(Code)
Tests fix for BUG#30851, NPE with null column values when "padCharsWithSpace" is set to "true".
throws:
  Exception -



Fields inherited from testsuite.BaseTestCase
protected Connection conn(Code)(Java Doc)
protected String dbClass(Code)(Java Doc)
protected static String dbUrl(Code)(Java Doc)
protected PreparedStatement pstmt(Code)(Java Doc)
protected ResultSet rs(Code)(Java Doc)
protected Statement stmt(Code)(Java Doc)

Methods inherited from testsuite.BaseTestCase
protected void cleanupTempFiles(File exampleTempFile, String tempfilePrefix)(Code)(Java Doc)
protected void closeMemberJDBCResources()(Code)(Java Doc)
protected void createFunction(String functionName, String functionDefn) throws SQLException(Code)(Java Doc)
protected void createProcedure(String procedureName, String procedureDefn) throws SQLException(Code)(Java Doc)
protected void createSchemaObject(String objectType, String objectName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc)
protected void createTable(String tableName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc)
protected void dropFunction(String functionName) throws SQLException(Code)(Java Doc)
protected void dropProcedure(String procedureName) throws SQLException(Code)(Java Doc)
protected void dropSchemaObject(String objectType, String objectName) throws SQLException(Code)(Java Doc)
protected void dropTable(String tableName) throws SQLException(Code)(Java Doc)
protected Connection getAdminConnection() throws SQLException(Code)(Java Doc)
protected Connection getAdminConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc)
protected Connection getConnectionWithProps(String propsList) throws SQLException(Code)(Java Doc)
protected Connection getConnectionWithProps(String url, String propsList) throws SQLException(Code)(Java Doc)
protected Connection getConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc)
protected Connection getConnectionWithProps(String url, Properties props) throws SQLException(Code)(Java Doc)
protected int getInstanceNumber()(Code)(Java Doc)
protected String getMysqlVariable(Connection c, String variableName) throws SQLException(Code)(Java Doc)
protected String getMysqlVariable(String variableName) throws SQLException(Code)(Java Doc)
protected Properties getPropertiesFromTestsuiteUrl() throws SQLException(Code)(Java Doc)
protected int getRowCount(String tableName) throws SQLException(Code)(Java Doc)
protected Object getSingleIndexedValueWithQuery(Connection c, int columnIndex, String query) throws SQLException(Code)(Java Doc)
protected Object getSingleIndexedValueWithQuery(int columnIndex, String query) throws SQLException(Code)(Java Doc)
protected Object getSingleValue(String tableName, String columnName, String whereClause) throws SQLException(Code)(Java Doc)
protected Object getSingleValueWithQuery(String query) throws SQLException(Code)(Java Doc)
protected boolean isAdminConnectionConfigured()(Code)(Java Doc)
protected boolean isClassAvailable(String classname)(Code)(Java Doc)
protected boolean isRunningOnJRockit()(Code)(Java Doc)
protected boolean isRunningOnJdk131()(Code)(Java Doc)
protected boolean isServerRunningOnWindows() throws SQLException(Code)(Java Doc)
public void logDebug(String message)(Code)(Java Doc)
protected File newTempBinaryFile(String name, long size) throws IOException(Code)(Java Doc)
protected String randomString()(Code)(Java Doc)
final protected boolean runLongTests()(Code)(Java Doc)
protected boolean runMultiHostTests()(Code)(Java Doc)
protected boolean runTestIfSysPropDefined(String propName)(Code)(Java Doc)
public void setUp() throws Exception(Code)(Java Doc)
public void tearDown() throws Exception(Code)(Java Doc)
protected boolean versionMeetsMinimum(int major, int minor) throws SQLException(Code)(Java Doc)
protected boolean versionMeetsMinimum(int major, int minor, int subminor) throws SQLException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.