MasoniteFramework / orm

Masonite ORM is a beautiful Python ORM. It's also a nearly drop in replacement of the Orator ORM
https://orm.masoniteproject.com
MIT License
160 stars 47 forks source link

MSSQL: Fix TypeError: 'NoneType' object is not iterable #858

Closed cgslivre closed 9 months ago

cgslivre commented 9 months ago

Scenario:

Get a record(first) and no record in the bank meets the query criteria

result = QueryBuilder.table('a').where('column', aInvalidValue).first()

As the return is null (None) it generates an exception!