I have a problem where I can not add anything to the table and the error always appears:
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
The code I'm trying to add values to and this:
p_name=input("Digite o nome do produto: "),
p_desc=input("Digite a descrição: "),
p_costp=input("Digite o preço de custo: "),
p_sellp=input("Digite o preço de venda: ")
c.execute("INSERT INTO products (name,description,costp,sellp) VALUES
(?,?,?,?)",(p_name,p_desc,p_costp,p_sellp))
And my Table:
c.execute("CREATE TABLE IF NOT EXISTS products(
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
description TEXT,
costp REAL,
sellp REAL)")
Inserting with pre-defined values does work, but values I received from the user I can not and this error always appears.