[Kommander-devel] database-plugin

Bernd Niederberger bernd.niederberger at hanse.net
Thu Sep 21 16:10:19 EDT 2006


Hello,

first excuse me for my bad english.
Today I had a look at database-plugin for kommander.

First I got no result, when did a dbQuery. Then I had a look into the source 
and I saw that in database.cpp in function Database::handleDCOP(..) for 
DB_QUERY db_Query is used but db_Query gives as result only true or false.
But in the description dbQuery should give the database results. So I changed 
the following:
    case DB_QUERY:
        return QString::number(dbQuery(args[0]));
to:
    case DB_QUERY:
        if ( dbQuery(args[0]) ) {
                return dbQueryResult();
        }
        else {
                return QString::null;;
        }

And now I get the database results as expected.

Bernd Niederberger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://momo.creolmail.org/pipermail/kommander-devel/attachments/20060921/c0db1f57/attachment.pgp


More information about the Kommander-devel mailing list