Pygresql, and query meta informations

D

durumdara

Hi!

Pygresql, DB-API.

I search for a solution to get meta information about last query,
because I must export these infos to Delphi.

Delphi have TDataSet, and it have meta structure that must be defined
before I create it.
For char/varchar fields I must define their sizes!

Pygresql is not retreive the field sizes.

Ok, it have solution that CHAR fields values have full size; but
varchars are not.
Ok, secondary I can calc all field lengths before I export, and I can
set THIS CALCULATED size to the field, but this is data dependent.

If I have NULL only, the field size = 0. Next query get 71 to the
field len. Next query is 234...

So I wanna ask that
a.) have I some special way in Pygresql to retreive the char/varchar
field's length?
b.) if not, how to I realize this (other ways)?

Thanks for your help:
dd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top