Skip to content

Commit 25843e7

Browse files
committed
Add workaround for DuckDB v1.5.0 stdin bug
DuckDB CLI v1.5.0 has a bug that causes it not to execute scripts that are piped to stdin. The bug only occurs when stdout is a TTY (in that code path, DuckDB colorizes its output). So the workaround is to pipe duckdb's output through cat. References: duckdb/duckdb#21253 https://duckdb.org/docs/current/guides/troubleshooting/command_line
1 parent 2208d66 commit 25843e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postprocess.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
echo $@
44

5-
duckdb << EOF
5+
duckdb << EOF | cat # workaround for https://github.com/duckdb/duckdb/issues/21253
66
LOAD SPATIAL;
77
88
COPY (

0 commit comments

Comments
 (0)