C api query vs. real_query vs. send_query

2010-08-15 Thread Surendra Singhi
Hi, I am doing some work on a nodejs/v8 bindings for libmysqlclient and ran into some questions while working on the asynchronous part of the interface. http://github.com/kreetitech/node-mysql-libmysqlclient The documentation says that: "mysql_query() cannot be used for statements that contain b

Re: C API Query Semantics

2003-06-19 Thread gerald_clark
Look at the source for the mysql client. It is a perfect example. Sean Macmillan wrote: Using the C API I have written a program that calls mysql_query() on a table with values I know to be in the table. It returns fine and I then call mysql_store_result. The problem I am having is figuring ou

C API Query Semantics

2003-06-19 Thread Sean Macmillan
Using the C API I have written a program that calls mysql_query() on a table with values I know to be in the table. It returns fine and I then call mysql_store_result. The problem I am having is figuring out how to dump the contents of that query to the screen (printf for example). I have tr

Re: C-API Query

2002-01-07 Thread Aigars Grins
Hi, [..] > produces the following error messages. > > /tmp/ccPhnnJk.o: In function `main': > /tmp/ccPhnnJk.o(.text+0x14): undefined reference to `mysql_init' > /tmp/ccPhnnJk.o(.text+0x5a): undefined reference to `mysql_real_connect' > /tmp/ccPhnnJk.o(.text+0x6d): undefined reference to `mysql_que

RE: C-API Query

2002-01-07 Thread John Lodge
sel = mysql_query(connection, "select e-no,ename from employee"); printf("sel %d\n",sel); } John Lodge -Original Message- From: udayashankarl_n [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 11:51 AM To: [EMAIL PROTECTED] Subject: C-API Query

C-API Query

2002-01-07 Thread udayashankarl_n
Hi, I have written the following code using C-API and would like to retrieve the info from MYSQL. But it gives me error messages. Please let me know where iam going wrong. the code and error messages are : #include #include main() { int sel; MYSQL *mysql=NULL; mysql_init