Project

General

Profile

« Previous | Next » 

Revision 2877

sql.py: create_table(): Don't set pkey.nullable to False because the caller should make sure the pkey has the appropriate type

View differences:

sql.py
1010 1010
    
1011 1011
    if has_pkey:
1012 1012
        cols[0] = pkey = copy.copy(cols[0]) # don't modify input!
1013
        pkey.nullable = False
1014 1013
        pkey.constraints = 'PRIMARY KEY'
1015 1014
    
1016 1015
    str_ = 'CREATE TABLE '+table.to_str(db)+' (\n'

Also available in: Unified diff