create your own class that inherits from
methods setUp(),
In the
setUp()
needed to demonstrate the bug.
In the
runTest()
created in the
In the
tearDown()
In any of the above three methods, use one of the variants of the
a JDBC connection to MySQL:
•
getConnection()
connection already exists, that connection is returned, otherwise a new connection is created.
•
getNewConnection()
there is more than one connection involved).
•
getConnection(String url)
•
getConnection(String url, Properties props)
URL and properties.
If you need to use a JDBC URL that is different from 'jdbc:mysql:///test', override the method
as well.
Use the
assertTrue(boolean expression)
boolean expression)
demonstrating the behavior you are expecting (vs. the behavior you are observing, which is why you
are most likely filing a bug report).
Finally, create a
method:
public static void main(String[] args) throws Exception {
new MyBugReport().run();
}
Once you have finished your testcase, and have verified that it demonstrates the bug you are reporting,
upload it with your bug report to http://bugs.mysql.com/.
20.4. MySQL Connector/C
MySQL Connector/C is a client library that implements the C API for client/server communication. It is
a standalone replacement for the MySQL client library shipped with MySQL Server distributions. See
Section 20.6.1, "MySQL C API
Reasons to use MySQL Connector/C:
• If you need only the client library, MySQL Connector/C provides everything required. There is no
need to compile or install the MySQL Server package, which is much larger.
• MySQL Connector/C does not rely on the MySQL Server release cycle, so bug fixes and new
features can be distributed independently of MySQL Server releases.
For documentation of the C API implemented by MySQL Connector/C, see
API".
For release notes detailing the changes in each release of MySQL Connector/C, see
Connector/C Release
MySQL Connector/C
and runTest().
tearDown()
method, create code that creates your tables, and populates them with any data
method, create code that demonstrates the bug using the tables and data you
method.
setUp
method, drop any tables you created in the
- Provides a connection to the JDBC URL specified in getUrl(). If a
- Use this if you need to get a new connection for your bug report (that is,
- Returns a connection using the given URL.
methods to create conditions that must be met in your testcase
method that creates a new instance of your testcase, and calls the
main()
Implementations".
Notes.
com.mysql.jdbc.util.BaseBugReport
- Returns a connection using the given
and
assertTrue(String failureMessage,
2125
and override the
method.
setUp()
method to create
getConnection()
Section 20.6, "MySQL C
MySQL
getUrl()
run
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers