Skip to content

Commit

Permalink
fix(sqawk): do not close input ch if it is stdin
Browse files Browse the repository at this point in the history
v0.23.1
  • Loading branch information
dbohdan committed Aug 24, 2021
1 parent a2caae0 commit 9ca7455
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/classes/sqawk.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ namespace eval ::sqawk {}

$newTable insert-rows [list $parser next]
$parser destroy
close $ch
if {$ch ne {stdin}} {
close $ch
}

dict set tables $metadata(table) $newTable
return $newTable
Expand Down
2 changes: 1 addition & 1 deletion sqawk-dev.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package require snit 2
package require sqlite3

namespace eval ::sqawk {
variable version 0.23.0
variable version 0.23.1
}

# The following comment is used by Assemble when bundling Sqawk's source code in
Expand Down

0 comments on commit 9ca7455

Please sign in to comment.