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
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
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
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
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)
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
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
| 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> >
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
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
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
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
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
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
34 matches
Mail list logo