Hi,

> I have a column in a table (postgresql) which has type character 
> varying[]. Is it possible to read this column type with tntndb.

the tntdb Interface for character varying[] is getString() you just need
to know at which position in the results the desired String is, the
equalent to your perl code is more or less:

tntdb::Statement q = conn.prepare("SELECT foo, teams, bar FROM baz");
// add bindings for where clause here
tntdb::Result res q.select()
for(tntdb::Result::const_iterator it = res.begin()
        it != res.end(); ++it)
        if(!it[1].isNull())
                WHATEVR( it[1].getString() );

It's [1] because "teams" is the second SELECT parameter.



Kind Regards,
Julian


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to