evshvarov / csvgen

module to generate and import csv data using InterSystems ObjectScript
MIT License
6 stars 5 forks source link

a semicolon separator does not create a class #2

Closed SergeyMi37 closed 4 years ago

SergeyMi37 commented 4 years ago

When importing a csv file with the delimiter ";" class is not generated. The study showed that the parameter delimiter is not passed to the function of the receiving column

do ##class(%SQL.Util.RowType).parseArray("numer INTEGER;login VARCHAR(250);fio VARCHAR(250);name VARCHAR(250)",.col) write col=3 col(1)="numer" col(1,1)="INTEGER;login VARCHAR(250)" col(1,2)="User.INTEGER;login VARCHAR" col(2)=";fio" col(2,1)="VARCHAR(250)" col(2,2)="%Library.String" col(2,2,"MAXLEN")=250 col(3)=";name" col(3,1)="VARCHAR(250)" col(3,2)="%Library.String" col(3,2,"MAXLEN")=250

SergeyMi37 commented 4 years ago

parsing generates invalid field names

evshvarov commented 4 years ago

FIxed with version 1.1.5