Query query;
query.RunQuery2(ss.str(), Q_REPLACE); <-- good
There are issues with stringstream and c_str()
Leaving this open for a few days in case any other bugs pop up.
This was fixed by using runquery2.
if (!dbLogin.Query(ss.str().c_str())) <-- bad
Query query;
query.RunQuery2(ss.str(), Q_REPLACE); <-- good
There are issues with stringstream and c_str()
Leaving this open for a few days in case any other bugs pop up.
Exception thrown: read access violation. mysql->** methods** was nullptr.occurred 0x0000000002981a20 "replace into login_equipment (login_characters_id, equip_type, red, green, blue, highlight_red, highlight_green, highlight_blue, slot) values (9003, 4043, 255, 255, 255, 255, 255, 255, 0)"
This was fixed by using runquery2.
if (!dbLogin.Query(ss.str().c_str())) <-- bad
Query query; query.RunQuery2(ss.str(), Q_REPLACE); <-- good
There are issues with stringstream and c_str()
Leaving this open for a few days in case any other bugs pop up.
devn00b fixed this in
70f564e16d