Java Doc for StatementRegressionTest.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.StatementRegressionTest

StatementRegressionTest
public class StatementRegressionTest extends BaseTestCase (Code)
Regression tests for the Statement class
author:
   Mark Matthews

Inner Class :class PrepareThread extends Thread
Inner Class :class IsClosedReader extends StringReader
Inner Class :class IsClosedInputStream extends ByteArrayInputStream

Field Summary
static  intcount
    
static  intnextID
    
final static  int[][]tests
    

Constructor Summary
public  StatementRegressionTest(String name)
     Constructor for StatementRegressionTest.

Method Summary
protected  booleanisJdbc4()
    
public static  voidmain(String[] args)
    
public  voidtestBug10155()
     Tests fix for BUG#10155, double quotes not recognized when parsing client-side prepared statements.
public  voidtestBug10630()
     Tests fix for BUG#10630, Statement.getWarnings() fails with NPE if statement has been closed.
public  voidtestBug11115()
     Tests fix for BUG#11115, Varbinary data corrupted when using server-side prepared statements.
public  voidtestBug11540()
    
public  voidtestBug11663()
     Tests fix for BUG#11663, autoGenerateTestcaseScript uses bogus parameter names for server-side prepared statements.
public  voidtestBug11798()
     Tests fix for BUG#11798 - Pstmt.setObject(...., Types.BOOLEAN) throws exception.
public  voidtestBug13255()
     Tests fix for BUG#13255 - Reconnect during middle of executeBatch() should not happen.
public  voidtestBug15024()
     Tests fix for BUG#15024 - Driver incorrectly closes streams passed as arguments to PreparedStatements.
public  voidtestBug15141()
    
public  voidtestBug15383()
     Tests fix for BUG#15383 - PreparedStatement.setObject() serializes BigInteger as object, rather than sending as numeric value (and is thus not complementary to .getObject() on an UNSIGNED LONG type).
public  voidtestBug17099()
     Tests fix for BUG#17099 - Statement.getGeneratedKeys() throws NPE when no query has been processed.
public  voidtestBug17587()
     Tests fix for BUG#17587 - clearParameters() on a closed prepared statement causes NPE.
public  voidtestBug1774()
    
public  voidtestBug18041()
     Tests fix for BUG#18041 - Server-side prepared statements don't cause truncation exceptions to be thrown.
public  voidtestBug18740()
     Tests fix for BUG#18740 - Data truncation and getWarnings() only returns last warning in set.
public  voidtestBug1901()
     Tests fix for BUG#1901 -- PreparedStatement.setObject(int, Object, int, int) doesn't support CLOB or BLOB types.
public  voidtestBug1933()
     Test fix for BUG#1933 -- Driver property 'maxRows' has no effect.
public  voidtestBug1934()
    
public  voidtestBug1958()
     Tests fix for BUG#1958 - Improper bounds checking on PreparedStatement.setFoo().
public  voidtestBug19615()
     Tests fix for BUG#19615, PreparedStatement.setObject(int, Object, int) doesn't respect scale of BigDecimals.
public  voidtestBug20029()
     Tests fix for BUG#20029 - NPE thrown from executeBatch().
public  voidtestBug20650()
     Tests fix for BUG#20650 - Statement.cancel() causes NullPointerException if underlying connection has been closed due to server failure.
public  voidtestBug20687()
     Fixes BUG#20687 - Can't pool server-side prepared statements, exception raised when re-using them.
public  voidtestBug20888()
     Tests fix for BUG#20888 - escape of quotes in client-side prepared statements parsing not respected.
public  voidtestBug21207()
     Tests Bug#21207 - Driver throws NPE when tracing prepared statements that have been closed (in asSQL()).
public  voidtestBug21438()
     Tests BUG#21438, server-side PS fails when using jdbcCompliantTruncation.
public  voidtestBug22290()
     Tests fix for BUG#22290 - Driver issues truncation on write exception when it shouldn't (due to sending big decimal incorrectly to server with server-side prepared statement).
public  voidtestBug22359()
     Tests fix for BUG#22359 - Driver was using millis for Statement.setQueryTimeout() when spec says argument is seconds.
public  voidtestBug24344()
     Tests fix for BUG#24344 - useJDBCCompliantTimezoneShift with server-side prepared statements gives different behavior than when using client-side prepared statements.
public  voidtestBug24360()
     Tests fix for BUG#24360 .setFetchSize() breaks prepared SHOW and other commands.
public  voidtestBug25009()
     Tests fix for BUG#25009 - Results from updates not handled correctly in multi-statement queries.
public  voidtestBug25025()
     Tests fix for BUG#25025 - Client-side prepared statement parser gets confused by in-line (slash-star) comments and therefore can't rewrite batched statements or reliably detect type of statements when they're used.
public  voidtestBug25073()
     Tests fix for BUG#25073 - rewriting batched statements leaks internal statement instances, and causes a memory leak.
public  voidtestBug2606()
     Tests the fix for BUG#2606, server-side prepared statements not returning datatype YEAR correctly.
public  voidtestBug2671()
     Tests the fix for BUG#2671, nulls encoded incorrectly in server-side prepared statements.
public  voidtestBug28469()
     Tests fix for BUG#28469 - PreparedStatement.getMetaData() for statements containing leading one-line comments is not returned correctly.
public  voidtestBug28596()
     Tests fix for BUG#28596 - parser in client-side prepared statements runs to end of statement, rather than end-of-line for '#' comments.
public  voidtestBug28851()
     Tests fix for BUG#28851 - parser in client-side prepared statements eats character following '/' if it's not a multi-line comment.
public  voidtestBug30550()
     Tests fix for BUG#30550 - executeBatch() on an empty batch when there are no elements in the batch causes a divide-by-zero error when rewriting is enabled.
public  voidtestBug3103()
     Tests fix for BUG#3103 -- java.util.Date not accepted as parameter to PreparedStatement.setObject().
public  voidtestBug3520()
    
public  voidtestBug3557()
    
public  voidtestBug3620()
     Tests fix for BUG#3620 -- Timezone not respected correctly.
public  voidtestBug3697()
     Tests that DataTruncation is thrown when data is truncated.
public  voidtestBug3804()
     Tests fix for BUG#3804, data truncation on server should throw DataTruncation exception.
public  voidtestBug3873()
     Tests BUG#3873 - PreparedStatement.executeBatch() not returning all generated keys (even though that's not JDBC compliant).
public  voidtestBug4119()
    
public  voidtestBug4311()
     Tests fix for BUG#4311 - Error in JDBC retrieval of mediumint column when using prepared statements and binary result sets.
public  voidtestBug4510()
    
public  voidtestBug4718()
     Server doesn't accept everything as a server-side prepared statement, so by default we scan for stuff it can't handle.
public  voidtestBug5012()
     Tests fix for BUG#5012 -- ServerPreparedStatements dealing with return of DECIMAL type don't work.
public  voidtestBug5133()
     Tests fix for BUG#5133 -- PreparedStatement.toString() doesn't return correct value if no parameters are present in statement.
public  voidtestBug5191()
    
public  voidtestBug5235()
    
public  voidtestBug5450()
    
public  voidtestBug5510()
    
public  voidtestBug5874()
     Tests fix for BUG#5874, timezone correction goes in wrong 'direction' when useTimezone=true and server timezone differs from client timezone.
public  voidtestBug6823()
    
public  voidtestBug7461()
    
public  voidtestBug8181()
    
public  voidtestBug8487()
     Tests fix for BUG#8487 - PreparedStatements not creating streaming result sets.
public  voidtestBug9704()
     Tests multiple statement support with fix for BUG#9704.
public  voidtestBustedGGKWithPSExecute()
    
public  voidtestClientPreparedSetBoolean()
    
public  voidtestCloseTwice()
     Tests that you can close a statement twice without an NPE.
public  voidtestCommentParsing()
    
public  voidtestCsc4194()
    
public  voidtestGetGeneratedKeysAllCases()
     Tests all forms of statements influencing getGeneratedKeys().
public  voidtestLikeWithBackslashes()
    
public  voidtestLimitAndMaxRows()
     Tests that max_rows and 'limit' don't cause exceptions to be thrown.
public  voidtestLoadData()
    
public  voidtestNullClob()
    
public  voidtestPStmtTypesBug()
    
public  voidtestParameterBoundsCheck()
    
public  voidtestQuotedIdRecognition()
    
public  voidtestServerPrepStmtAndDate()
     Tests that binary dates/times are encoded/decoded correctly.
public  voidtestServerPrepStmtDeadlock()
    
public  voidtestSetCharacterStream()
    
public  voidtestSetFetchSize()
    
public  voidtestSetMaxRows()
    
public  voidtestTimestampNPE()
     Tests for timestamp NPEs occuring in binary-format timestamps.
public  voidtestTruncationWithChar()
    
public  voidtestUpdatableStream()
     Tests fix for updatable streams being supported in updatable result sets.

Field Detail
count
static int count(Code)



nextID
static int nextID(Code)



tests
final static int[][] tests(Code)




Constructor Detail
StatementRegressionTest
public StatementRegressionTest(String name)(Code)
Constructor for StatementRegressionTest.
Parameters:
  name - the name of the test to run




Method Detail
isJdbc4
protected boolean isJdbc4()(Code)



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



testBug10155
public void testBug10155() throws Exception(Code)
Tests fix for BUG#10155, double quotes not recognized when parsing client-side prepared statements.
throws:
  Exception - if the test fails.



testBug10630
public void testBug10630() throws Exception(Code)
Tests fix for BUG#10630, Statement.getWarnings() fails with NPE if statement has been closed.



testBug11115
public void testBug11115() throws Exception(Code)
Tests fix for BUG#11115, Varbinary data corrupted when using server-side prepared statements.



testBug11540
public void testBug11540() throws Exception(Code)



testBug11663
public void testBug11663() throws Exception(Code)
Tests fix for BUG#11663, autoGenerateTestcaseScript uses bogus parameter names for server-side prepared statements.
throws:
  Exception - if the test fails.



testBug11798
public void testBug11798() throws Exception(Code)
Tests fix for BUG#11798 - Pstmt.setObject(...., Types.BOOLEAN) throws exception.
throws:
  Exception - if the test fails.



testBug13255
public void testBug13255() throws Exception(Code)
Tests fix for BUG#13255 - Reconnect during middle of executeBatch() should not happen.
throws:
  Exception - if the test fails.



testBug15024
public void testBug15024() throws Exception(Code)
Tests fix for BUG#15024 - Driver incorrectly closes streams passed as arguments to PreparedStatements.
throws:
  Exception - if the test fails.



testBug15141
public void testBug15141() throws Exception(Code)
PreparedStatement should call EscapeProcessor.escapeSQL?
throws:
  Exception - if the test fails



testBug15383
public void testBug15383() throws Exception(Code)
Tests fix for BUG#15383 - PreparedStatement.setObject() serializes BigInteger as object, rather than sending as numeric value (and is thus not complementary to .getObject() on an UNSIGNED LONG type).
throws:
  Exception - if the test fails.



testBug17099
public void testBug17099() throws Exception(Code)
Tests fix for BUG#17099 - Statement.getGeneratedKeys() throws NPE when no query has been processed.
throws:
  Exception - if the test fails



testBug17587
public void testBug17587() throws Exception(Code)
Tests fix for BUG#17587 - clearParameters() on a closed prepared statement causes NPE.
throws:
  Exception - if the test fails.



testBug1774
public void testBug1774() throws Exception(Code)
Tests fix for BUG#1774 -- Truncated words after double quote
throws:
  Exception - if the test fails.



testBug18041
public void testBug18041() throws Exception(Code)
Tests fix for BUG#18041 - Server-side prepared statements don't cause truncation exceptions to be thrown.
throws:
  Exception - if the test fails



testBug18740
public void testBug18740() throws Exception(Code)
Tests fix for BUG#18740 - Data truncation and getWarnings() only returns last warning in set.
throws:
  Exception - if the test fails.



testBug1901
public void testBug1901() throws Exception(Code)
Tests fix for BUG#1901 -- PreparedStatement.setObject(int, Object, int, int) doesn't support CLOB or BLOB types.
throws:
  Exception - if this test fails for any reason



testBug1933
public void testBug1933() throws Exception(Code)
Test fix for BUG#1933 -- Driver property 'maxRows' has no effect.
throws:
  Exception - if the test fails.



testBug1934
public void testBug1934() throws Exception(Code)
Tests the fix for BUG#1934 -- prepareStatement dies silently when encountering Statement.RETURN_GENERATED_KEY
throws:
  Exception - if the test fails



testBug1958
public void testBug1958() throws Exception(Code)
Tests fix for BUG#1958 - Improper bounds checking on PreparedStatement.setFoo().
throws:
  Exception - if the test fails.



testBug19615
public void testBug19615() throws Exception(Code)
Tests fix for BUG#19615, PreparedStatement.setObject(int, Object, int) doesn't respect scale of BigDecimals.
throws:
  Exception - if the test fails.



testBug20029
public void testBug20029() throws Exception(Code)
Tests fix for BUG#20029 - NPE thrown from executeBatch().
throws:
  Exception -



testBug20650
public void testBug20650() throws Exception(Code)
Tests fix for BUG#20650 - Statement.cancel() causes NullPointerException if underlying connection has been closed due to server failure.
throws:
  Exception - if the test fails.



testBug20687
public void testBug20687() throws Exception(Code)
Fixes BUG#20687 - Can't pool server-side prepared statements, exception raised when re-using them.
throws:
  Exception - if the test fails.



testBug20888
public void testBug20888() throws Exception(Code)
Tests fix for BUG#20888 - escape of quotes in client-side prepared statements parsing not respected.
throws:
  Exception - if the test fails.



testBug21207
public void testBug21207() throws Exception(Code)
Tests Bug#21207 - Driver throws NPE when tracing prepared statements that have been closed (in asSQL()).
throws:
  Exception - if the test fails



testBug21438
public void testBug21438() throws Exception(Code)
Tests BUG#21438, server-side PS fails when using jdbcCompliantTruncation. If either is set to FALSE (&useServerPrepStmts=false or &jdbcCompliantTruncation=false) test succedes.
throws:
  Exception - if the test fails.



testBug22290
public void testBug22290() throws Exception(Code)
Tests fix for BUG#22290 - Driver issues truncation on write exception when it shouldn't (due to sending big decimal incorrectly to server with server-side prepared statement).
throws:
  Exception - if the test fails.



testBug22359
public void testBug22359() throws Exception(Code)
Tests fix for BUG#22359 - Driver was using millis for Statement.setQueryTimeout() when spec says argument is seconds.
throws:
  Exception - if the test fails.



testBug24344
public void testBug24344() throws Exception(Code)
Tests fix for BUG#24344 - useJDBCCompliantTimezoneShift with server-side prepared statements gives different behavior than when using client-side prepared statements. (this is now fixed if moving from server-side prepared statements to client-side prepared statements by setting "useSSPSCompatibleTimezoneShift" to "true", as the driver can't tell if this is a new deployment that never used server-side prepared statements, or if it is an existing deployment that is switching to client-side prepared statements from server-side prepared statements.
throws:
  Exception - if the test fails



testBug24360
public void testBug24360() throws Exception(Code)
Tests fix for BUG#24360 .setFetchSize() breaks prepared SHOW and other commands.
throws:
  Exception - if the test fails



testBug25009
public void testBug25009() throws Exception(Code)
Tests fix for BUG#25009 - Results from updates not handled correctly in multi-statement queries.
throws:
  Exception - if the test fails.



testBug25025
public void testBug25025() throws Exception(Code)
Tests fix for BUG#25025 - Client-side prepared statement parser gets confused by in-line (slash-star) comments and therefore can't rewrite batched statements or reliably detect type of statements when they're used.
throws:
  Exception - if the test fails.



testBug25073
public void testBug25073() throws Exception(Code)
Tests fix for BUG#25073 - rewriting batched statements leaks internal statement instances, and causes a memory leak.
throws:
  Exception - if the test fails.



testBug2606
public void testBug2606() throws Exception(Code)
Tests the fix for BUG#2606, server-side prepared statements not returning datatype YEAR correctly.
throws:
  Exception - if the test fails.



testBug2671
public void testBug2671() throws Exception(Code)
Tests the fix for BUG#2671, nulls encoded incorrectly in server-side prepared statements.
throws:
  Exception - if an error occurs.



testBug28469
public void testBug28469() throws Exception(Code)
Tests fix for BUG#28469 - PreparedStatement.getMetaData() for statements containing leading one-line comments is not returned correctly. As part of this fix, we also overhauled detection of DML for executeQuery() and SELECTs for executeUpdate() in plain and prepared statements to be aware of the same types of comments.
throws:
  Exception -



testBug28596
public void testBug28596() throws Exception(Code)
Tests fix for BUG#28596 - parser in client-side prepared statements runs to end of statement, rather than end-of-line for '#' comments. Also added support for '--' single-line comments
throws:
  Exception - if the test fails.



testBug28851
public void testBug28851() throws Exception(Code)
Tests fix for BUG#28851 - parser in client-side prepared statements eats character following '/' if it's not a multi-line comment.
throws:
  Exception - if the test fails.



testBug30550
public void testBug30550() throws Exception(Code)
Tests fix for BUG#30550 - executeBatch() on an empty batch when there are no elements in the batch causes a divide-by-zero error when rewriting is enabled.
throws:
  Exception - if the test fails



testBug3103
public void testBug3103() throws Exception(Code)
Tests fix for BUG#3103 -- java.util.Date not accepted as parameter to PreparedStatement.setObject().
throws:
  Exception - if the test fails



testBug3520
public void testBug3520() throws Exception(Code)
Tests fix for BUG#3520
throws:
  Exception - ...



testBug3557
public void testBug3557() throws Exception(Code)
Test fix for BUG#3557 -- UpdatableResultSet not picking up default values
throws:
  Exception - if test fails.



testBug3620
public void testBug3620() throws SQLException(Code)
Tests fix for BUG#3620 -- Timezone not respected correctly.
throws:
  SQLException - if the test fails.



testBug3697
public void testBug3697() throws Exception(Code)
Tests that DataTruncation is thrown when data is truncated.
throws:
  Exception - if the test fails.



testBug3804
public void testBug3804() throws Exception(Code)
Tests fix for BUG#3804, data truncation on server should throw DataTruncation exception.
throws:
  Exception - if the test fails



testBug3873
public void testBug3873() throws Exception(Code)
Tests BUG#3873 - PreparedStatement.executeBatch() not returning all generated keys (even though that's not JDBC compliant).
throws:
  Exception - if the test fails



testBug4119
public void testBug4119() throws Exception(Code)
Tests fix for BUG#4119 -- misbehavior in a managed environment from MVCSoft JDO
throws:
  Exception - if the test fails.



testBug4311
public void testBug4311() throws Exception(Code)
Tests fix for BUG#4311 - Error in JDBC retrieval of mediumint column when using prepared statements and binary result sets.
throws:
  Exception - if the test fails.



testBug4510
public void testBug4510() throws Exception(Code)
Tests fix for BUG#4510 -- Statement.getGeneratedKeys() fails when key > 32767
throws:
  Exception - if the test fails



testBug4718
public void testBug4718() throws SQLException(Code)
Server doesn't accept everything as a server-side prepared statement, so by default we scan for stuff it can't handle.
throws:
  SQLException -



testBug5012
public void testBug5012() throws Exception(Code)
Tests fix for BUG#5012 -- ServerPreparedStatements dealing with return of DECIMAL type don't work.
throws:
  Exception - if the test fails.



testBug5133
public void testBug5133() throws Exception(Code)
Tests fix for BUG#5133 -- PreparedStatement.toString() doesn't return correct value if no parameters are present in statement.
throws:
  Exception -



testBug5191
public void testBug5191() throws Exception(Code)
Tests for BUG#5191 -- PreparedStatement.executeQuery() gives OutOfMemoryError
throws:
  Exception - if the test fails.



testBug5235
public void testBug5235() throws Exception(Code)



testBug5450
public void testBug5450() throws Exception(Code)



testBug5510
public void testBug5510() throws Exception(Code)



testBug5874
public void testBug5874() throws Exception(Code)
Tests fix for BUG#5874, timezone correction goes in wrong 'direction' when useTimezone=true and server timezone differs from client timezone.
throws:
  Exception - if the test fails.



testBug6823
public void testBug6823() throws SQLException(Code)



testBug7461
public void testBug7461() throws Exception(Code)



testBug8181
public void testBug8181() throws Exception(Code)



testBug8487
public void testBug8487() throws Exception(Code)
Tests fix for BUG#8487 - PreparedStatements not creating streaming result sets.
throws:
  Exception - if the test fails.



testBug9704
public void testBug9704() throws Exception(Code)
Tests multiple statement support with fix for BUG#9704.
throws:
  Exception - DOCUMENT ME!



testBustedGGKWithPSExecute
public void testBustedGGKWithPSExecute() throws Exception(Code)



testClientPreparedSetBoolean
public void testClientPreparedSetBoolean() throws Exception(Code)



testCloseTwice
public void testCloseTwice() throws Exception(Code)
Tests that you can close a statement twice without an NPE.
throws:
  Exception - if an error occurs.



testCommentParsing
public void testCommentParsing() throws Exception(Code)
Tests error with slash-star comment at EOL
throws:
  Exception - if the test fails.



testCsc4194
public void testCsc4194() throws Exception(Code)



testGetGeneratedKeysAllCases
public void testGetGeneratedKeysAllCases() throws Exception(Code)
Tests all forms of statements influencing getGeneratedKeys().
throws:
  Exception - if the test fails.



testLikeWithBackslashes
public void testLikeWithBackslashes() throws Exception(Code)



testLimitAndMaxRows
public void testLimitAndMaxRows() throws Exception(Code)
Tests that max_rows and 'limit' don't cause exceptions to be thrown.
throws:
  Exception - if the test fails.



testLoadData
public void testLoadData() throws Exception(Code)
Tests that 'LOAD DATA LOCAL INFILE' works
throws:
  Exception - if any errors occur



testNullClob
public void testNullClob() throws Exception(Code)



testPStmtTypesBug
public void testPStmtTypesBug() throws Exception(Code)



testParameterBoundsCheck
public void testParameterBoundsCheck() throws Exception(Code)
Tests fix for BUG#1658
throws:
  Exception - if the fix for parameter bounds checking doesn't work.



testQuotedIdRecognition
public void testQuotedIdRecognition() throws Exception(Code)
Tests fix for BUG#1511
throws:
  Exception - if the quoteid parsing fix in PreparedStatement doesn't work.



testServerPrepStmtAndDate
public void testServerPrepStmtAndDate() throws Exception(Code)
Tests that binary dates/times are encoded/decoded correctly.
throws:
  Exception - if the test fails.



testServerPrepStmtDeadlock
public void testServerPrepStmtDeadlock() throws Exception(Code)



testSetCharacterStream
public void testSetCharacterStream() throws Exception(Code)
Tests PreparedStatement.setCharacterStream() to ensure it accepts > 4K streams
throws:
  Exception - if an error occurs.



testSetFetchSize
public void testSetFetchSize() throws Exception(Code)
Tests a bug where Statement.setFetchSize() does not work for values other than 0 or Integer.MIN_VALUE
throws:
  Exception - if any errors occur



testSetMaxRows
public void testSetMaxRows() throws Exception(Code)
Tests fix for BUG#907
throws:
  Exception - if an error occurs



testTimestampNPE
public void testTimestampNPE() throws Exception(Code)
Tests for timestamp NPEs occuring in binary-format timestamps.
throws:
  Exception - DOCUMENT ME!



testTruncationWithChar
public void testTruncationWithChar() throws Exception(Code)



testUpdatableStream
public void testUpdatableStream() throws Exception(Code)
Tests fix for updatable streams being supported in updatable result sets.
throws:
  Exception - if the test fails.



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.