Re: My Sql C_API(Urgent)

2001-05-12 Thread VVM Ravikumar Sarma Chengalvala

Hi ,
Infact I tried it out that way.There is a problem with
my_sql_real_escape_string() .I.e at the time of
linking it is giving an Unresolved External Symbol for
this function.For rest of the API functions it's OK.
I checked up with the .def file in the includes
directory and found that this functionis not listed in
that.Tried it out with another download of MYSQL but
same is the case.

Regards,
Ravi
--- Shambhu Kumar singh
<[EMAIL PROTECTED]> wrote: > Hi,
> 
> Instead of working with the strmov function use
> pointers to work on it, like I had to
> Ex:
> 
> char myQuery[1024]="";
> 
> CurrentAddress  = myQuery;
> CurrentAddress+= mysql_real_escape_string(
> &MysqlStruct,CurrentAddress, string, strlen(string)
> );
> 
> Best of Luck,
> S.K. Singh.
> 
> - Original Message --
>
=?iso-8859-1?q?VVM=20Ravikumar=20Sarma=20Chengalvala?=
> <[EMAIL PROTECTED]> wrote:
> To:[EMAIL PROTECTED]
>
From:=?iso-8859-1?q?VVM=20Ravikumar=20Sarma=20Chengalvala?=
> <[EMAIL PROTECTED]>
> Date:Fri, 11 May 2001 16:35:21 +0100 (BST)
> Subject: My Sql C_API(Urgent)
> 
> Hi,
> I am using my_sql_real_escape_string and in that the
> strmov function of mysqlclient library.
> I am getting the following errors while compiling:
> 
> d:\program files\mysql\include\m_string.h(143) :
> error
> C2061: syntax error : identifier 'uint'
> d:\program files\mysql\include\m_string.h(146) :
> error
> C2061: syntax error : identifier 'uint'
> d:\program files\mysql\include\m_string.h(147) :
> error
> C2061: syntax error : identifier 'uint'
> d:\program files\mysql\include\m_string.h(149) :
> error
> C2061: syntax error : identifier 'uint'
> d:\program files\mysql\include\m_string.h(151) :
> error
> C2061: syntax error : identifier 'pchar'
> d:\program files\mysql\include\m_string.h(154) :
> error
> C2061: syntax error : identifier 'my_string'
> d:\program files\mysql\include\m_string.h(155) :
> error
> C2146: syntax error : missing ';' before identifier
> 'strinstr'
> d:\program files\mysql\include\m_string.h(155) :
> fatal
> error C1004: unexpected end of file found
> Error executing cl.exe.
> I could not locate the identifiesrs strinstr etc in
> any of the include files.
> 
> Can some one guide me for a way out.
> 
> Regards,
> Ravi
> 
> 
>

> Do You Yahoo!?
> Get your free @yahoo.co.uk address at
> http://mail.yahoo.co.uk
> or your free @yahoo.ie address at
> http://mail.yahoo.ie
> 
>
-
> Before posting, please check:
>http://www.mysql.com/manual.php   (the manual)
>http://lists.mysql.com/   (the list
> archive)
> 
> To request this thread, e-mail
> <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
>
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try:
> http://lists.mysql.com/php/unsubscribe.php
> 
> 
>
_
> Chat with your friends as soon as they come online.
> Get Rediff Bol at
> http://bol.rediff.com
> 
> 
> 
> 



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: My Sql C_API(Urgent)

2001-05-11 Thread Shambhu Kumar singh

Hi,

Instead of working with the strmov function use pointers to work on it, like I had to
Ex:

char myQuery[1024]="";

CurrentAddress  = myQuery;
CurrentAddress+= mysql_real_escape_string( &MysqlStruct,CurrentAddress, string, 
strlen(string) );

Best of Luck,
S.K. Singh.

- Original Message --
=?iso-8859-1?q?VVM=20Ravikumar=20Sarma=20Chengalvala?= <[EMAIL PROTECTED]> wrote:
To:[EMAIL PROTECTED]
From:=?iso-8859-1?q?VVM=20Ravikumar=20Sarma=20Chengalvala?= <[EMAIL PROTECTED]>
Date:Fri, 11 May 2001 16:35:21 +0100 (BST)
Subject: My Sql C_API(Urgent)

Hi,
I am using my_sql_real_escape_string and in that the
strmov function of mysqlclient library.
I am getting the following errors while compiling:

d:\program files\mysql\include\m_string.h(143) : error
C2061: syntax error : identifier 'uint'
d:\program files\mysql\include\m_string.h(146) : error
C2061: syntax error : identifier 'uint'
d:\program files\mysql\include\m_string.h(147) : error
C2061: syntax error : identifier 'uint'
d:\program files\mysql\include\m_string.h(149) : error
C2061: syntax error : identifier 'uint'
d:\program files\mysql\include\m_string.h(151) : error
C2061: syntax error : identifier 'pchar'
d:\program files\mysql\include\m_string.h(154) : error
C2061: syntax error : identifier 'my_string'
d:\program files\mysql\include\m_string.h(155) : error
C2146: syntax error : missing ';' before identifier
'strinstr'
d:\program files\mysql\include\m_string.h(155) : fatal
error C1004: unexpected end of file found
Error executing cl.exe.
I could not locate the identifiesrs strinstr etc in
any of the include files.

Can some one guide me for a way out.

Regards,
Ravi



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail 
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




My Sql C_API(Urgent)

2001-05-11 Thread VVM Ravikumar Sarma Chengalvala

Hi,
I am using my_sql_real_escape_string and in that the
strmov function of mysqlclient library.
I am getting the following errors while compiling:

d:\program files\mysql\include\m_string.h(143) : error
C2061: syntax error : identifier 'uint'
d:\program files\mysql\include\m_string.h(146) : error
C2061: syntax error : identifier 'uint'
d:\program files\mysql\include\m_string.h(147) : error
C2061: syntax error : identifier 'uint'
d:\program files\mysql\include\m_string.h(149) : error
C2061: syntax error : identifier 'uint'
d:\program files\mysql\include\m_string.h(151) : error
C2061: syntax error : identifier 'pchar'
d:\program files\mysql\include\m_string.h(154) : error
C2061: syntax error : identifier 'my_string'
d:\program files\mysql\include\m_string.h(155) : error
C2146: syntax error : missing ';' before identifier
'strinstr'
d:\program files\mysql\include\m_string.h(155) : fatal
error C1004: unexpected end of file found
Error executing cl.exe.
I could not locate the identifiesrs strinstr etc in
any of the include files.

Can some one guide me for a way out.

Regards,
Ravi



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: My SQL C_API(urgent)

2001-05-07 Thread Alec Solway

Try mysql_real_query(). This function takes three parameters, the first two 
are the same as mysql_query(). The third is the length of the query string.

Regards.
Alec

At 06:51 PM 5/7/01, VVM Ravikumar Sarma Chengalvala wrote:
>Hi,
>I am having a peculiar problem with C_API.How to
>execute a query string  with its length more than 255
>characters using mysql_query() function.My sql query
>is
>more than 255 characters long and is getting
>truncated.
>
>Regards,
>Ravi
>
>
>Do You Yahoo!?
>Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
>or your free @yahoo.ie address at http://mail.yahoo.ie
>
>-
>Before posting, please check:
>http://www.mysql.com/manual.php   (the manual)
>http://lists.mysql.com/   (the list archive)
>
>To request this thread, e-mail <[EMAIL PROTECTED]>
>To unsubscribe, e-mail 
><[EMAIL PROTECTED]>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: My SQL C_API(urgent)

2001-05-07 Thread Paul DuBois

On Tue, May 08, 2001 at 12:51:02AM +0100, VVM Ravikumar Sarma Chengalvala wrote:
> Hi,
> I am having a peculiar problem with C_API.How to
> execute a query string  with its length more than 255
> characters using mysql_query() function.My sql query
> is
> more than 255 characters long and is getting
> truncated.
> 
> Regards,
> Ravi

mysql_query() doesn't have any length limitation like that.
How big is the buffer in which you're storing your query?

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




My SQL C_API(urgent)

2001-05-07 Thread VVM Ravikumar Sarma Chengalvala

Hi,
I am having a peculiar problem with C_API.How to
execute a query string  with its length more than 255
characters using mysql_query() function.My sql query
is
more than 255 characters long and is getting
truncated.

Regards,
Ravi


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php