Skip to content

Commit f3030e8

Browse files
committed
Check colsize based on dim 2 (Bug #2)
1 parent 9ccf10a commit f3030e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/connection.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ function sqlwrite (this, tablename, data, varargin)
556556
error ("Expected ColumnType to be a cell string");
557557
endif
558558

559-
if size(coltypes) != size(cols)
559+
if size(coltypes, 2) != size(cols)
560560
error ("Expected ColumnType to match data column count size");
561561
endif
562562
endif

0 commit comments

Comments
 (0)