I am getting the following error when using sqlite3
OperationalError: near "TABLE": syntax error
The error occurs on this line:
c.execute('INSERT TABLE IF NOT EXISTS ' + bracketName + ' (player_1 TEXT, player_2 TEXT, winner TEXT, loser TEXT, player_1_score INTEGER, player_2_score INTEGER, round TEXT)')
Searching for this error suggests that the problem is caused when "table" is used as a name for a table, despite being a reserved word. This is not the case in my situation, as I'm naming the table whatever is stored in the variable "bracket."
I'm not sure how to add more code to make this a reproducible example, so I'm hoping the problem is obvious from syntax