Re: Pro *C question with prepare statement
From: Nick Maximov <maxs_at_adnserv.kaija.spb.su>
Date: Sat, 08 May 1993 07:46:47 GMT
Message-ID: <1993May08.074647.1237_at_kaija.spb.su>
Date: Sat, 08 May 1993 07:46:47 GMT
Message-ID: <1993May08.074647.1237_at_kaija.spb.su>
Sivakumar Ramamoorthy (rama_at_ms.uky.edu) wrote:
: I have a bug with pro *c
: When I say
: strcpy(sql_statement,"SELECT * FROM ");
: printf("table name:");
: fflush(stdout);
: gets(tn);
: strcat(sql_statement,tn);
: it works fine.
: However if I say
: gets(temp)
: and I type in the statement
: like SELECT * FROM X (Without a semicolon)
: the prepare fails.
: Any suggestions how it can happen.
: Siva
: rama_at_s.ms.uky.edu
Try to remove newline at the end of you line.
-- Nick Maximov <maxs_at_adnserv.kaija.spb.su>Received on Sat May 08 1993 - 09:46:47 CEST