I've attached sample source files. If they don't make in into the list
I can send then inline.
Added sample projects to bkl file, and a blurb in the readme.
See http://lists.mysql.com/plusplus/7060 for reference
Diffs are from the current svn
Index: mysql++.bkl
===================================================================
--- mysql++.bkl (revision 1779)
+++ mysql++.bkl (working copy)
@@ -278,6 +278,12 @@
<exe id="cgi_jpeg" template="libutil-user,programs">
<sources>examples/cgi_jpeg.cpp</sources>
</exe>
+ <exe id="deadlock1" template="libutil-user,programs">
+ <sources>examples/deadlock1.cpp</sources>
+ </exe>
+ <exe id="deadlock2" template="libutil-user,programs">
+ <sources>examples/deadlock2.cpp</sources>
+ </exe>
</if> <!-- build examples -->
<if cond="FORMAT=='autoconf'">
Index: README.examples
===================================================================
--- README.examples (revision 1779)
+++ README.examples (working copy)
@@ -117,6 +117,9 @@
dbinfo: Dumps a bunch of information about the database
server and the tables in its 'mysql' database.
+
+ deadlock1 and deadlock2: Tests detecting a deadlock between
+ two transactions, using the BadQuery::what_errnum() value
If you run the load_jpeg example, you should consider also
playing with the other half of the demonstration, cgi_jpeg.