From: Date: October 24 2007 8:44pm Subject: Sample files -- BadQuery w/Errnum patch part 4 List-Archive: http://lists.mysql.com/plusplus/7124 Message-Id: <5AA52B773286DA4E83B1F2D034FFED3763BDE3@mailexchange.klausatlanta.local> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C8166D.E26C0A23" ------_=_NextPart_001_01C8166D.E26C0A23 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- mysql++.bkl (revision 1779) +++ mysql++.bkl (working copy) @@ -278,6 +278,12 @@ examples/cgi_jpeg.cpp + + examples/deadlock1.cpp + + + examples/deadlock2.cpp + =20 Index: README.examples =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- README.examples (revision 1779) +++ README.examples (working copy) @@ -117,6 +117,9 @@ =20 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 =20 If you run the load_jpeg example, you should consider also playing with the other half of the demonstration, cgi_jpeg. ------_=_NextPart_001_01C8166D.E26C0A23--