Hi all,

this _my_ "simple" problem: I wrote a little c++ programm in linux using
the plusplus api

My purpose was to create a simple interface to mysql. Programmer uses my
class, gives a sql-string and gets a pointer to the result array wich my
class creates out of the result set.

this is a shortened part of my scripts:
        [...]
                Query* q = new Query(&conn);
        [...]

        bool myConn::runQuery(char *sql)
        {
                (*q) << sql;
                cout << q->preview() << endl;
                cout << "one" << endl;
                Result res = q->store();
                cout << "two" << endl;
        [...]
        }

and the following is the output:
        [...]
        SELECT name FROM test;
        one
        Aborted

...that's it.

If I try to get out what's wrong by
        try{ [...] }
        catch(BadQuery er) { cout << er.error; }

i'll only receive cryptic symbols (like a misplaced pointer)

So here are my questions:
1. Is there any way to get out correctly what's wrong?
2. Is there any good(!) description of the mySQL C++ API?
(http://www.mysql.com/documentation/mysql++/index.html is horrific!)

Best regards

M. Bader


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to