4 messages in com.mysql.lists.plusplusRe: Row can't be used if result not e...
FromSent OnAttachments
Konstantin Osipov06 Feb 2001 06:54 
Eugene Sizikoff07 Feb 2001 00:21 
Konstantin Osipov07 Feb 2001 01:52 
Eugene Sizikoff07 Feb 2001 20:23 
Subject:Re: Row can't be used if result not exists?
From:Eugene Sizikoff (eug@enerpred.ru)
Date:02/07/2001 12:21:38 AM
List:com.mysql.lists.plusplus

Konstantin Osipov wrote:

<привет>

Is this code buggy?

Row Dictionary::retrieveRow(OID oid) { Query query; query << " SELECT description FROM Dictionary WHERE oid = '" << oid << "'"; return query.store()[0]; }

</привет>

If oid field in the database is [var]char - that's ok (I think so), but if not - it blows you up with that "'"!

I think you can use Row objects after their Result parent died, 'couse it already has its data internal.