Using mysql C Api affects memory in my executing program
Posted by: Francesco Di Fusco
Date: April 18, 2021 02:50AM

Hello, I wrote a Cgi program in C under Linux to read some data to save to a mysql database. Before inserting data in the proper table I show the read data in a table. I noticed something strange. When I display the read data in the table
without connecting to mysql, using these instructions
/* Connect to database */
if (!mysql_real_connect(conn, server, user, password, database, 0, NULL, 0)) {
fprintf(stderr, "%s\n", mysql_error(conn));
the table is diplayed correctly. But if I connect to the database, the connection works correctly, but something strange happens in the table. The last cell displays a dirty value

20 16 0bin" id="82"l

20 is the number of the row, 16 is nhe number of the column, 0 is its value, but bin" id="82"l i do not know what it is

Options: ReplyQuote

Written By
Using mysql C Api affects memory in my executing program
April 18, 2021 02:50AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.