Re: C API : Problem using multi-statements

2005-05-06 Thread Jeremiah Gowdy
doh! need another redbull. :) - Original Message - From: "Reggie Burnett" <[EMAIL PROTECTED]> To: "'Jeremiah Gowdy'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; Sent: Friday, May 06, 2005 9:31 AM Subject: RE: C API : Problem using mu

RE: C API : Problem using multi-statements

2005-05-06 Thread Javier Diaz
: Re: C API : Problem using multi-statements Answer is simple. Can't do that. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Friday, May 06, 2005 5:40 AM Subject: C API : Problem using multi-statements Hello, I have some problems using multiple queries in a datab

RE: C API : Problem using multi-statements

2005-05-06 Thread Reggie Burnett
Jeremiah I don't use the client library in my work but this should work from 4.1 on. -Reggie -Original Message- From: Jeremiah Gowdy [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 11:19 AM To: [EMAIL PROTECTED]; mysql@lists.mysql.com Subject: Re: C API : Problem

Re: C API : Problem using multi-statements

2005-05-06 Thread Jeremiah Gowdy
Answer is simple. Can't do that. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Friday, May 06, 2005 5:40 AM Subject: C API : Problem using multi-statements Hello, I have some problems using multiple queries in a databased driven project, therefore I wro

C API : Problem using multi-statements

2005-05-06 Thread ganjineh
Hello, I have some problems using multiple queries in a databased driven project, therefore I wrote a little testprogram which causes the same problems. I am using the C-API of MySQL 4.1.11 on a Gentoo Linux 3.3.2-r5, propolice-3.3-7 with 2.4.27 kernel. I connect to the server (on localhost)

FW: A MySQL C++ API problem about "Connection::close()" & "Connection::purge()".

2002-04-30 Thread ???
In MySQL C++ API http://www.mysql.com/Downloads/mysql++/mysql++-1.7.1-win32-borland.zip , http://www.mysql.com/Downloads/mysql++/mysql++-1.7.1-1-win32-vc++.zip. The head file connection1.hh has two problems. 1. Function Connection::close() void close(void) { mysql_close(&mysql); } 2. Function Conn

A MySQL C++ API problem about "Connection::close()" & "Connection::purge()"!

2002-04-30 Thread ???
In MySQL C++ API http://www.mysql.com/Downloads/mysql++/mysql++-1.7.1-win32-borland.zip , http://www.mysql.com/Downloads/mysql++/mysql++-1.7.1-1-win32-vc++.zip. The head file connection1.hh has two problems. 1. Function Connection::close() void close(void) { mysql_close(&mysql); } 2. Function Conn

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; query_len=asprintf(&query

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 tab

Re: Mysql C API Problem

2001-09-01 Thread Uwe Sander
just add mysql_init(&csql); before accessing the struct for any purpose. Sure it helps (I made the same mistake, got the same result ;-) Uwe - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 01, 2001 8:25 PM Subj

Mysql C API Problem

2001-09-01 Thread BeachTHO
am connecting to a mysql server on localhost i put all the code in a function call mysql_conlocal MYSQL csql; int mysql_conlocal() { puts("Connecting to Mysql Server"); if(!mysql_connect(&csql,DBHOST,DBUSER,DBPASS)) { puts("Failure!"); puts("This Could Because"); puts("A Your Username or Passwo

C API problem

2001-04-26 Thread john1
Dear Sir : MySQL 3.22.32 on my linux 486 PC seems work so good. When I compile a simple C API program which catched from MySQL tutorial, it chokes at the end of compile process . The program is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def_pa

Re: C API problem

2001-04-19 Thread Laurent Oget
On Thu, Apr 19, 2001 at 11:12:23PM +0800, john1 wrote: > > /home/MySQL/MySQL/lib/libmysqlclient.a(my_open.o)In function 'my_open': > my_open.o(.text+0x14):undefined reference to 'open64' > /home/MySQL/MySQL/lib/libmysqlclient.a(mf_format.o)In function 'fn_format': > mf_format.o(.text+0x201):undef

C API problem

2001-04-19 Thread john1
Dear Sir : MySQL 3.22.32 on my linux 486 PC seems work so good. When I compile a simple C API program which catched from MySQL tutorial, it chokes at the end of compile process . The program is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def_pa

C API problem

2001-04-17 Thread john1
Dear Sir : MySQL 3.22.32 on my linux 486 PC seems work so good. When I compile a simple C API program which catched from MySQL tutorial, it chokes at the end of compile process . The program is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def_pa

Re: C API problem

2001-03-19 Thread Gerald L. Clark
You clibs are too old. You are probably running a very old version of Linux. john1 wrote: > > Dear Sir : > > MySQL 3.22.32 on my linux 486 PC seems work so good. When I compile > a simple C API program which catched from MySQL tutorial, it > chokes at the end of compile process . The program is

C API problem

2001-03-18 Thread john1
Dear Sir : MySQL 3.22.32 on my linux 486 PC seems work so good. When I compile a simple C API program which catched from MySQL tutorial, it chokes at the end of compile process . The program is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def_pa

C API problem

2001-03-18 Thread john1
Dear Sir : MySQL 3.22.32 on my linux 486 PC seems work so good. When I compile a simple C API program which catched from MySQL tutorial, it chokes at the end of compile process . The program is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def_pa

C API problem

2001-03-15 Thread john1
Dear Sir : MySQL 3.22.32 on my linux 486 PC seems work so good. When I compile a simple C API program which catched from MySQL tutorial, it chokes at the end of compile process . The program is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def_pa

Re: C API problem

2001-03-07 Thread Gerald L. Clark
Your clibs are too old. You need to update. john1 wrote: > > dear Sir : > > MySQL 3.22 on my linux 486 PC seems work so good. when I compile > a simple C API program which catched from the MySQL tutorial, it > chokes at the end of compile process . the program is as follows: > > #include > #i

C API problem

2001-03-07 Thread john1
dear Sir : MySQL 3.22 on my linux 486 PC seems work so good. when I compile a simple C API program which catched from the MySQL tutorial, it chokes at the end of compile process . the program is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def_p

RE: C API problem

2001-03-05 Thread Quentin Bennett
Hi, Check for open64 in the archives for the last month, and you will find your answer (which is to upgrade your gcc). Regards Quentin -Original Message- From: john1 [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 6 March 2001 4:47 a.m. To: [EMAIL PROTECTED] Subject: C API problem dear

Re: C API problem

2001-03-05 Thread Boulat Khakimov
john1 wrote: > > dear Sir : > > MySQL 3.22 on my linux 486 PC seems work so good. when I compile > a simple C API program which catched from the MySQL tutorial, it > chokes at the end of compile process . the program is as follows: > > #include > #include > > #define def_host_name NULL > #de

C API problem

2001-03-05 Thread john1
dear Sir : MySQL 3.22 on my linux 486 PC seems work so good. when I compile a simple C API program which catched from the MySQL tutorial, it chokes at the end of compile process . the program is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def_p

C API problem

2001-03-05 Thread john1
dear Sir : MySQL 3.22 on my linux 486 PC seems work so good. when I compile a simple C API program which catched from the MySQL tutorial, it chokes at the end of compile process . the program is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def_p

Re: C API problem

2001-03-05 Thread john1
dear Sir, It's so exiting receive your mail. For months it's the first and perhaps the only mail I receive. Thank you. There are quetions remain: Isn't it the complete 3.22 package I installed ? I've read several text books about Mysql, that they don't mention the Mysql-devel package, and the a

Re: C API problem

2001-03-01 Thread Shambhu Kumar singh
Hi John, I had faced a similar problem earlier, I solved it my instaling MySQL-devel package and include the libmyclient library stored in /usr/lib (not in /usr/lib/mysql/)in the compile command. Best of Luck, Shambhu. - Original Message -- john1 <[EMAIL PROTECTED]> wr

Re: C API problem

2001-03-01 Thread Sinisa Milivojevic
Laurent Oget writes: > I am not sure this will solve your probleme but you need to add -lnsl and -lsocket >to the compile command line. > > On Thu, Mar 01, 2001 at 11:03:11PM +0800, john1 wrote: > > dear Sir : > > > > MySQL 3.22 on my linux 486 PC seems work so good. when I compile > >

Re: C API problem

2001-03-01 Thread Laurent Oget
I am not sure this will solve your probleme but you need to add -lnsl and -lsocket to the compile command line. On Thu, Mar 01, 2001 at 11:03:11PM +0800, john1 wrote: > dear Sir : > > MySQL 3.22 on my linux 486 PC seems work so good. when I compile > a simple C API programe which catched from

C API problem

2001-03-01 Thread john1
dear Sir : MySQL 3.22 on my linux 486 PC seems work so good. when I compile a simple C API programe which catched from the MySQL tutorial, it chokes at the end of compile process . the programe is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def

C API problem

2001-03-01 Thread john1
dear Sir : MySQL 3.22 on my linux 486 PC seems work so good. when I compile a simple C API programe which catched from the MySQL tutorial, it chokes at the end of compile process . the programe is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def

C API problem

2001-03-01 Thread john1
dear Sir : MySQL 3.22 on my linux 486 PC seems work so good. when I compile a simple C API programe which catched from the MySQL tutorial, it chokes at the end of compile process . the programe is as follows: #include #include #define def_host_name NULL #define def_user_name NULL #define def

Re: MySQL C API: Problem with load_defaults

2001-01-20 Thread Paul DuBois
On Sat, Jan 20, 2001 at 02:53:22PM -0500, Hlady, Brian wrote: > I'm using the code found on page 245 - 247 of Paul Dubois' book, MySQL. When > I attempt to make it > under Code Crusader, I get the error found below. > > gcc -g -Wall -Werror -I- -I. -I/usr/local/include/mysql -c common.c -o > co

MySQL C API: Problem with load_defaults

2001-01-20 Thread Hlady, Brian
I'm using the code found on page 245 - 247 of Paul Dubois' book, MySQL. When I attempt to make it under Code Crusader, I get the error found below. gcc -g -Wall -Werror -I- -I. -I/usr/local/include/mysql -c common.c -o common.o gcc -g -Wall -Werror -I- -I. -I/usr/local/include/mysql -c clien