C API problem, CREATE TABLE SELECT SELECT

2001-11-23 Thread Kristian Vlahovicek
Hello, I seem to have a problem with the C API, briefly I try to select something into a temporary table and then do three selects, two of which are from the temporary table created. Program segfaults. When I comment all but temp table creation, program works, and same happens for a non-temp

Re: C API problem, CREATE TABLE SELECT SELECT

2001-11-23 Thread Attila Soki
| query_len = sprintf(query, CREATE TEMPORARY TABLE temp SELECT ); try it out with asprintf(). but you have to define at compile time the following -D_GNU_SOURCE maybe you allocates not enough place for query. asprintf do it for you. char *query; int query_len;

C API for Create Table

2001-03-12 Thread Shambhu Kumar singh
Hi, Can anyboby help me out. I am in a fix over how to carry out CREATE TABLE using C APIs. The manual is of no help in this matter. So anybody I please help me out. Thanks in advance. Shambhu. _ Chat with your friends as soon as they