Skip to Content.
Sympa Menu

freetds - [freetds] libdbi driver, some questions

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Vadym Kononenko <vkononenko AT atlantic-link.com.ua>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] libdbi driver, some questions
  • Date: Tue, 23 Aug 2005 12:25:08 +0300

Hi, all.
Could you say me how can I use direct acces to TDS struct without internal
headers files. At this moment I use "ctlib.h" for access to:
1. (ctx->tds_ctx->locale->date_fmt) set data format.
2. (conn->tds_socket->s) - get socket descriptor.
3. (conn->tds_login->client_charset)
and
(conn->tds_login->server_charset)
get charset coding
But this header not installed to /usr/include directory.

4. Should I free memory after call "ct_fetch()" function?

5. When I sent "EXEC sp_tables" query to server I received'nt tables list. I
receive 23 time database name. But through network sniffer I see that all
tables list are received. And number of tables are 23.

6. How can I get real length of received data? "datafmt.maxlength" show
buffer
size.

7. And how can I convert MONEY and DATATYPE types to othet formats?
libdbi use "time_t" format for date and have not money types...
--
Best regards.
Vadym Kononenko.
Kyiv, Ukraine




Archive powered by MHonArc 2.6.24.

Top of Page