Skip to content

Commit

Permalink
Merge pull request #210 from noborus/gw-null
Browse files Browse the repository at this point in the history
Added support for NULL (inNULL)
  • Loading branch information
noborus authored Mar 17, 2023
2 parents 06ac6c7 + 91fb344 commit 65e0f3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/mattn/go-runewidth v0.0.14
github.com/mattn/go-sqlite3 v1.14.16
github.com/multiprocessio/go-sqlite3-stdlib v0.0.0-20220822170115-9f6825a1cd25
github.com/noborus/guesswidth v0.3.0
github.com/noborus/guesswidth v0.3.1
github.com/noborus/tbln v0.0.2
github.com/olekukonko/tablewriter v0.0.5
github.com/pierrec/lz4 v2.6.1+incompatible
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwp
github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
github.com/multiprocessio/go-sqlite3-stdlib v0.0.0-20220822170115-9f6825a1cd25 h1:bnhGk2UFFPqylhxTEffs1ehDRn4bEZsEoDH53Z4HqA8=
github.com/multiprocessio/go-sqlite3-stdlib v0.0.0-20220822170115-9f6825a1cd25/go.mod h1:RrGEZqqiyEcLyTVLDSgtNZVLqJykj0F4vwuuqvMdT60=
github.com/noborus/guesswidth v0.2.0 h1:bOqiec6tWTIQyouLMclEXwoWARLVtQSSFGjB8sRZAUc=
github.com/noborus/guesswidth v0.2.0/go.mod h1:yUjU1Wurf1AikEIYRLlKU0DiH+c1sZWjm07IIpESlWQ=
github.com/noborus/guesswidth v0.3.0 h1:YcIRE1ObgGxzDRK3aaZ1iYvbjV96Zv9ISWHdiCfkf7g=
github.com/noborus/guesswidth v0.3.0/go.mod h1:yUjU1Wurf1AikEIYRLlKU0DiH+c1sZWjm07IIpESlWQ=
github.com/noborus/guesswidth v0.3.1 h1:IgdXiTYJpw5MYouFKVW83l/xURay9kQ72FIu8Tatoy8=
github.com/noborus/guesswidth v0.3.1/go.mod h1:yUjU1Wurf1AikEIYRLlKU0DiH+c1sZWjm07IIpESlWQ=
github.com/noborus/tbln v0.0.2 h1:pQIv+ZO38KPz52FOuhs/W3inpgmd5qwL8XFDqI+KKyY=
github.com/noborus/tbln v0.0.2/go.mod h1:kS3WhEDRJhNwF3+aRGl9iaUzu/r3lExDagcPPENtNQ0=
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
Expand Down
2 changes: 2 additions & 0 deletions input_gw.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func NewGWReader(reader io.Reader, opts *ReadOpts) (*GWReader, error) {
r.limitRead = opts.InLimitRead
r.reader.Header = opts.InSkip
r.scanNum = 1000
r.needNULL = opts.InNeedNULL
r.inNULL = opts.InNULL
r.preRead = opts.InPreRead
if r.preRead > r.scanNum {
r.scanNum = r.preRead
Expand Down

0 comments on commit 65e0f3d

Please sign in to comment.