[Development] Fwd: Re: Proposing QSqlQuery syntax sugar

Giuseppe D'Angelo dangelog at gmail.com
Wed Sep 19 12:48:41 CEST 2012


On 19 September 2012 10:40, André Somers <andre at familiesomers.nl> wrote:
>
> Just a bit of syntactic sugar, of course, but nice. I do think there are
> some problems with error checking though. What happens if "MyColumnName"
> doesn't contain an int but a string in the above call?

The same that would happen with
query.value("MyColumnName").value<int>(), I guess :-)

-- 
Giuseppe D'Angelo



More information about the Development mailing list