Closed douglasfabretti closed 4 years ago
You're attempting to create a table without columns, and I guess it's fair for MSSQL not to be on board with this :)
What happens is that merely running repr(table)
will attempt to create the table, so running this instead should work:
db = dataset.connect('mssql+pymssql://User:Password@Server:1433/database?charset=utf8')
table = db.create_table('test', primary_id=False)
table.create_column('some_column')
table
Hi there folks.
I'm new using dataset, I'm evaluating it to a new project that I'm working on.
I just tried to create a new table with no primary key (primary_id=False):
And faced the following the exception, I'm not sure if I missed anything or if this is a bug: