Skip to content

Commit

Permalink
fix(session): fix PROMPT_SQL unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jul 3, 2024
1 parent 4901abb commit e362561
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/tests/http/05-stream.result
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
26 changes: 26 additions & 0 deletions cli/tests/http/05-stream.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

cat <<SQL | ${BENDSQL}
CREATE DATABASE IF NOT EXISTS stream_test;
CREATE OR REPLACE TABLE stream_test.abc
(
title VARCHAR,
author VARCHAR,
date VARCHAR
);
CREATE OR REPLACE STREAM stream_test.s on table stream_test.abc;
SQL

cat <<SQL | ${BENDSQL} -D stream_test
DROP TABLE abc
SQL

cat <<SQL | ${BENDSQL} -D stream_test
select 1;
SQL

cat <<SQL | ${BENDSQL}
DROP DATABASE IF EXISTS stream_test;
SQL

0 comments on commit e362561

Please sign in to comment.