Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Re: Insert Problem in C API

2001-04-12 Thread Aigars Grins
> sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", > mydata); > where mydata is a C variable containing a large text item > > The problem occurs when mydata contains a single quote, then that single quote is taken as the end of the column value by the MySQL parse

Insert Problem in C API

2001-04-12 Thread Shambhu Kumar singh
Hi, I am running a query using C APIs to insert a large text item into a MySQL table. The query is as follows sprintf(szQuery,"Insert into mytable(mycol)values '%s' ", mydata); where mydata is a C variable containing a large text item The problem occurs when mydata co