Skip to content

Change '#' to '_' so sqlalchemy stops complaining#42

Open
elpablete wants to merge 2 commits into
sripathikrishnan:masterfrom
elpablete:master
Open

Change '#' to '_' so sqlalchemy stops complaining#42
elpablete wants to merge 2 commits into
sripathikrishnan:masterfrom
elpablete:master

Conversation

@elpablete
Copy link
Copy Markdown

When using sqlachemy, bind parameters named with a '#' raise errors. Apparently this is due to sqlalchemy using '#' as a separator. Instead of expecting a bind parameter named 'bind#0_{n}', it looks for a bind parameter named ONLY 'bind'

"""sqlalchemy.exc.StatementError: (sqlalchemy.exc.InvalidRequestError) A value is required for bind parameter 'bind'"""

When using sqlachemy, bind parameters named with a '#' raise errors. Apparently this is due to sqlalchemy using '#'. Instead of expecting a bind parameter named 'bind#0_{n}', it looks for a bind parameter named ONLY 'bind'

"""sqlalchemy.exc.StatementError: (sqlalchemy.exc.InvalidRequestError) A value is required for bind parameter 'bind'"""
Change '#' to '_' so sqlalchemy stops complaining
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant