Subject Thanks again Dimitry and Ann:) RE: [ib-support] API: isc_detach_database, release of resources.
Author Henrik Sitter
-----Original Message-----
From: Dimitry Sibiryakov [mailto:SD@...]
Sent: Tuesday, January 28, 2003 6:23 AM
To: ib-support@yahoogroups.com
Subject: Re: [ib-support] API: isc_detach_database, release of
resources.

On 27 Jan 2003 at 19:45, Henrik Sitter wrote:

>switch(type) // Process each XSQLVAR parameter structure here.
>case SQL_VARYING:
> var->sqldata = new char[(var->sqllen];

There must be 'new char[(var->sqllen+2)];' because SQL_VARYING
storage includes two bytes for real string length that are not
counted in sqllen.

>....what happens happens when I call isc_detach_database? I think the
>API says that these resources are released. Is that correct?

No. Server-side and internal structures will be released. User-
allocated resources won't.

SY, Dimitry Sibiryakov.



To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/