Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not a Bug
-
10.3
-
Windows 10 dot.net And C
Description
I cant get this code to work with "update" it returns 0 but dosen't update post, but it works with a "Insert"
bufferlength = ((picturebufferlen)*2) + BUFFERSIZE +1;
buffer = malloc(bufferlength);
end = buffer;
end += snprintf(buffer, bufferlength, "UPDATE billeder_table SET billed='");
end += mysql_real_escape_string(&SQLconnection, end, picturebuffer, picturebufferlen);
end += snprintf(end, bufferlength, "' WHERE %s = %s AND TS='%s';", SoegeFelt, Soegenummer, SoegeTimestam);
if (mysql_real_query(&SQLconnection, buffer, end - buffer) > 0)