You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And when i try insert into the table with sequence a new value i have following error:
File "C:\Program Files\Python37\lib\site-packages\asyncpg\connection.py", line 433, in fetchval
data = await self._execute(query, args, 1, timeout)
File "C:\Program Files\Python37\lib\site-packages\asyncpgsa\connection.py", line 89, in _execute
query, compiled_args = compile_query(query, dialect=self._dialect)
File "C:\Program Files\Python37\lib\site-packages\asyncpgsa\connection.py", line 64, in compile_query
query = execute_defaults(query) # default values for Insert/Update
File "C:\Program Files\Python37\lib\site-packages\asyncpgsa\connection.py", line 40, in execute_defaults
_execute_default_attr(query, query.parameters, attr_name)
File "C:\Program Files\Python37\lib\site-packages\asyncpgsa\connection.py", line 48, in _execute_default_attr
if attr.is_scalar:
AttributeError: 'Sequence' object has no attribute 'is_scalar'
Following change fix it in my case. But i am not sure that is correct.
Sweet. Sorry I am getting so late to this. If you would like to open up a pull request, requesting this change, with a couple tests, I would be happy to review it and likely merge it in.
HI, i am using Sequence in my models.
And when i try insert into the table with sequence a new value i have following error:
Following change fix it in my case. But i am not sure that is correct.
asyncpgsa - Version: 0.25.2
sqlalchemy - Version: 1.2.15
The text was updated successfully, but these errors were encountered: