Closed micah-williamson closed 5 years ago
Hi @iamchairs I think Python needs a comma for a tuple with one item, so perhaps the code should look like:
cursor.execute("""
INSERT INTO public.foo
(names)
VALUES
(%s)
""", (['HustonU'],))
I've found a strange issue where it appears lowercase
u
characters are getting removed with%s
string interpolation is used.Would insert
Has anyone encountered this before?