Skip to content

Commit a96bb0a

Browse files
committed
add default string length for tutorial method (mysql requires it)
1 parent ad84c9a commit a96bb0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cubes/tutorial/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def create_table_from_csv(connectable, file_name, table_name, fields, create_id
2222

2323
type_map = { "integer": sqlalchemy.Integer,
2424
"float":sqlalchemy.Float,
25-
"string":sqlalchemy.String }
25+
"string":sqlalchemy.String(256) }
2626

2727
if create_id:
2828
col = sqlalchemy.schema.Column('id', sqlalchemy.Integer, primary_key=True)

0 commit comments

Comments
 (0)