SetCampaignString() to "" (empty string)
ForSerious
Member Posts: 466
Thought I would finally get rid NBDE.
I have a few spots where I'm calling SetCampaignString(DB, NAME, ""), to simply mark that variable as empty.
The log shows this when it's ran:
SQL ERROR: [1299] abort at 12 in [replace into db (vartype, varname, playerid, payload, compressed) values (?, ?, ?, ?, ?)]: NOT NULL constraint failed: db.payload while executing (unknown)
I bring this up because my code uses the fact that calling GetCampaignString on some undefined variable will return "".
Sure I can add checks for some alternative empty string character. It's just not as optimal.
I have a few spots where I'm calling SetCampaignString(DB, NAME, ""), to simply mark that variable as empty.
The log shows this when it's ran:
SQL ERROR: [1299] abort at 12 in [replace into db (vartype, varname, playerid, payload, compressed) values (?, ?, ?, ?, ?)]: NOT NULL constraint failed: db.payload while executing (unknown)
I bring this up because my code uses the fact that calling GetCampaignString on some undefined variable will return "".
Sure I can add checks for some alternative empty string character. It's just not as optimal.
0
Comments