We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare db:
create table test ( date DateTime, event String ) engine MergeTree() order by date;
Run go code:
func TestIssue2(t *testing.T) { conn, _ := dbr.Open("clickhouse", "http://user:pass@localhost:8123/db", nil) conn.Exec("truncate table test") // 4 rows query := `insert into test (date, event) values ('2021-01-01 00:00:00', 'click'), ('2021-01-01 01:00:00', '"" '), ('2021-01-01 02:00:00', '"with quotes" 1'), ('2021-01-01 02:00:00', '"with quotes" 2')` conn.Exec(query) sess := conn.NewSession(nil) res, err := sess.Select("event").From("test").ReturnStrings() fmt.Println(err) fmt.Println(len(res)) // 2 rows }
I expect that it will be 4 rows in result.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prepare db:
Run go code:
I expect that it will be 4 rows in result.
The text was updated successfully, but these errors were encountered: