diff --git a/README.md b/README.md index ef08eb0aa6..734e883033 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ClickHouse [![run-tests](https://github.com/ClickHouse/clickhouse-go/actions/workflows/run-tests.yml/badge.svg?branch=v2)](https://github.com/ClickHouse/clickhouse-go/actions/workflows/run-tests.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/ClickHouse/clickhouse-go/v2.svg)](https://pkg.go.dev/github.com/ClickHouse/clickhouse-go/v2) +# ClickHouse [![run-tests](https://github.com/ClickHouse/clickhouse-go/actions/workflows/run-tests.yml/badge.svg?branch=v2)](https://github.com/ClickHouse/clickhouse-go/actions/workflows/run-tests.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/perfectscale/clickhouse-go/v2.svg)](https://pkg.go.dev/github.com/perfectscale/clickhouse-go/v2) Golang SQL database client for [ClickHouse](https://clickhouse.com/). @@ -306,7 +306,7 @@ Available options: ## Install ```sh -go get -u github.com/ClickHouse/clickhouse-go/v2 +go get -u github.com/perfectscale/clickhouse-go/v2 ``` ## Examples diff --git a/benchmark/v2/read-native/basic_test.go b/benchmark/v2/read-native/basic_test.go index 9f0678ea6a..f9467fc0f9 100644 --- a/benchmark/v2/read-native/basic_test.go +++ b/benchmark/v2/read-native/basic_test.go @@ -20,10 +20,11 @@ package main import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "log" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" ) func getConnection() clickhouse.Conn { diff --git a/benchmark/v2/read-native/main.go b/benchmark/v2/read-native/main.go index 2023cbee08..99ca674347 100644 --- a/benchmark/v2/read-native/main.go +++ b/benchmark/v2/read-native/main.go @@ -23,7 +23,7 @@ import ( "log" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) func benchmarkRead(conn clickhouse.Conn) error { diff --git a/benchmark/v2/read/main.go b/benchmark/v2/read/main.go index 9327548219..9c93a23fc2 100644 --- a/benchmark/v2/read/main.go +++ b/benchmark/v2/read/main.go @@ -23,7 +23,7 @@ import ( "log" "time" - _ "github.com/ClickHouse/clickhouse-go/v2" + _ "github.com/perfectscale/clickhouse-go/v2" ) func benchmarkRead(conn *sql.DB) error { diff --git a/benchmark/v2/write-async-std/main.go b/benchmark/v2/write-async-std/main.go index 73ea39fe3c..bcccf13fad 100644 --- a/benchmark/v2/write-async-std/main.go +++ b/benchmark/v2/write-async-std/main.go @@ -24,7 +24,7 @@ import ( "log" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) const ddl = ` diff --git a/benchmark/v2/write-async/main.go b/benchmark/v2/write-async/main.go index cc588860aa..c9d3b63df0 100644 --- a/benchmark/v2/write-async/main.go +++ b/benchmark/v2/write-async/main.go @@ -23,7 +23,7 @@ import ( "log" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) const ddl = ` diff --git a/benchmark/v2/write-compress-buffer-limit/write_test.go b/benchmark/v2/write-compress-buffer-limit/write_test.go index 39e08b70f0..e547d1d48b 100644 --- a/benchmark/v2/write-compress-buffer-limit/write_test.go +++ b/benchmark/v2/write-compress-buffer-limit/write_test.go @@ -20,11 +20,12 @@ package main import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "log" "runtime" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" ) func bToMb(b uint64) uint64 { diff --git a/benchmark/v2/write-native-columnar/main.go b/benchmark/v2/write-native-columnar/main.go index 5ef92b78b7..c02597af23 100644 --- a/benchmark/v2/write-native-columnar/main.go +++ b/benchmark/v2/write-native-columnar/main.go @@ -23,7 +23,7 @@ import ( "log" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) const ddl = ` diff --git a/benchmark/v2/write-native-struct/main.go b/benchmark/v2/write-native-struct/main.go index cb9d75c4c3..96a5a253e8 100644 --- a/benchmark/v2/write-native-struct/main.go +++ b/benchmark/v2/write-native-struct/main.go @@ -23,7 +23,7 @@ import ( "log" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) const ddl = ` diff --git a/benchmark/v2/write-native/main.go b/benchmark/v2/write-native/main.go index 3670f12a15..a1a077ff9d 100644 --- a/benchmark/v2/write-native/main.go +++ b/benchmark/v2/write-native/main.go @@ -23,7 +23,7 @@ import ( "log" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) const ddl = ` diff --git a/benchmark/v2/write-native/write_test.go b/benchmark/v2/write-native/write_test.go index c77f36d2ec..3d2ff8cc3a 100644 --- a/benchmark/v2/write-native/write_test.go +++ b/benchmark/v2/write-native/write_test.go @@ -19,10 +19,11 @@ package main import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" "log" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" ) func getConnection() clickhouse.Conn { diff --git a/benchmark/v2/write/main.go b/benchmark/v2/write/main.go index 84d29ca069..26836831af 100644 --- a/benchmark/v2/write/main.go +++ b/benchmark/v2/write/main.go @@ -23,7 +23,7 @@ import ( "log" "time" - _ "github.com/ClickHouse/clickhouse-go/v2" + _ "github.com/perfectscale/clickhouse-go/v2" ) const ddl = ` diff --git a/bind.go b/bind.go index 1d4f55e2f3..bfe6ae2c7c 100644 --- a/bind.go +++ b/bind.go @@ -25,8 +25,8 @@ import ( "strings" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" + "github.com/perfectscale/clickhouse-go/v2/lib/column" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" ) func Named(name string, value any) driver.NamedValue { diff --git a/clickhouse.go b/clickhouse.go index 78f0a6a721..22691857e0 100644 --- a/clickhouse.go +++ b/clickhouse.go @@ -27,10 +27,10 @@ import ( _ "time/tzdata" chproto "github.com/ClickHouse/ch-go/proto" - "github.com/ClickHouse/clickhouse-go/v2/contributors" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/contributors" + "github.com/perfectscale/clickhouse-go/v2/lib/column" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) type Conn = driver.Conn diff --git a/clickhouse_rows.go b/clickhouse_rows.go index 698905e7f0..8dcb8d0c57 100644 --- a/clickhouse_rows.go +++ b/clickhouse_rows.go @@ -21,7 +21,7 @@ import ( "database/sql" "io" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) type rows struct { diff --git a/clickhouse_rows_column_type.go b/clickhouse_rows_column_type.go index d0719e72f3..b90609e316 100644 --- a/clickhouse_rows_column_type.go +++ b/clickhouse_rows_column_type.go @@ -20,8 +20,8 @@ package clickhouse import ( "reflect" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" + "github.com/perfectscale/clickhouse-go/v2/lib/column" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" ) type columnType struct { diff --git a/clickhouse_rows_test.go b/clickhouse_rows_test.go index 6de3b89e3f..28b0605bf7 100644 --- a/clickhouse_rows_test.go +++ b/clickhouse_rows_test.go @@ -1,10 +1,11 @@ package clickhouse import ( - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" - "github.com/stretchr/testify/assert" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2/lib/proto" + "github.com/stretchr/testify/assert" ) func TestReadWithEmptyBlock(t *testing.T) { diff --git a/clickhouse_std.go b/clickhouse_std.go index 779856c35d..6a88f41750 100644 --- a/clickhouse_std.go +++ b/clickhouse_std.go @@ -31,8 +31,8 @@ import ( "sync/atomic" "syscall" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - ldriver "github.com/ClickHouse/clickhouse-go/v2/lib/driver" + "github.com/perfectscale/clickhouse-go/v2/lib/column" + ldriver "github.com/perfectscale/clickhouse-go/v2/lib/driver" ) var globalConnID int64 diff --git a/client_info.go b/client_info.go index e1b5f5fb0a..7f62d8d90d 100644 --- a/client_info.go +++ b/client_info.go @@ -19,10 +19,11 @@ package clickhouse import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" "runtime" "sort" "strings" + + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) const ClientName = "clickhouse-go" diff --git a/conn.go b/conn.go index 5c2c34b66a..8f8be4b4db 100644 --- a/conn.go +++ b/conn.go @@ -28,12 +28,12 @@ import ( "syscall" "time" - "github.com/ClickHouse/clickhouse-go/v2/resources" + "github.com/perfectscale/clickhouse-go/v2/resources" "github.com/pkg/errors" "github.com/ClickHouse/ch-go/compress" chproto "github.com/ClickHouse/ch-go/proto" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) func dial(ctx context.Context, addr string, num int, opt *Options) (*connect, error) { diff --git a/conn_async_insert.go b/conn_async_insert.go index f37e6e6016..e6af3291d4 100644 --- a/conn_async_insert.go +++ b/conn_async_insert.go @@ -19,7 +19,8 @@ package clickhouse import ( "context" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) func (c *connect) asyncInsert(ctx context.Context, query string, wait bool, args ...any) error { diff --git a/conn_batch.go b/conn_batch.go index 38329900e7..e7ce9aca05 100644 --- a/conn_batch.go +++ b/conn_batch.go @@ -27,9 +27,9 @@ import ( "github.com/pkg/errors" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/column" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) var splitInsertRe = regexp.MustCompile(`(?i)\sVALUES\s*\(`) diff --git a/conn_exec.go b/conn_exec.go index 629549103d..0d8f41a89a 100644 --- a/conn_exec.go +++ b/conn_exec.go @@ -19,8 +19,9 @@ package clickhouse import ( "context" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" "time" + + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) func (c *connect) exec(ctx context.Context, query string, args ...any) error { diff --git a/conn_handshake.go b/conn_handshake.go index 265c52c2f0..4d6eaad8af 100644 --- a/conn_handshake.go +++ b/conn_handshake.go @@ -22,7 +22,7 @@ import ( "fmt" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) func (c *connect) handshake(database, username, password string) error { diff --git a/conn_http.go b/conn_http.go index a5d9e9c233..fe6bbd6ed4 100644 --- a/conn_http.go +++ b/conn_http.go @@ -37,12 +37,12 @@ import ( "sync" "time" - "github.com/ClickHouse/clickhouse-go/v2/resources" + "github.com/perfectscale/clickhouse-go/v2/resources" "github.com/ClickHouse/ch-go/compress" chproto "github.com/ClickHouse/ch-go/proto" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" "github.com/andybalholm/brotli" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" "github.com/pkg/errors" ) diff --git a/conn_http_batch.go b/conn_http_batch.go index d64faeb374..5fc7d6034f 100644 --- a/conn_http_batch.go +++ b/conn_http_batch.go @@ -21,13 +21,14 @@ import ( "context" "errors" "fmt" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" "io" "io/ioutil" "regexp" "strings" + + "github.com/perfectscale/clickhouse-go/v2/lib/column" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) // \x60 represents a backtick diff --git a/conn_http_query.go b/conn_http_query.go index 3716a28513..5d3baf5df4 100644 --- a/conn_http_query.go +++ b/conn_http_query.go @@ -21,9 +21,10 @@ import ( "bytes" "context" "errors" - chproto "github.com/ClickHouse/ch-go/proto" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" "io" + + chproto "github.com/ClickHouse/ch-go/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) // release is ignored, because http used by std with empty release function diff --git a/conn_logs.go b/conn_logs.go index d876b97725..fa459d623c 100644 --- a/conn_logs.go +++ b/conn_logs.go @@ -21,7 +21,7 @@ import ( "context" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) type Log struct { diff --git a/conn_ping.go b/conn_ping.go index cf8103086e..35300c023e 100644 --- a/conn_ping.go +++ b/conn_ping.go @@ -22,7 +22,7 @@ import ( "fmt" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) // Connection::ping diff --git a/conn_process.go b/conn_process.go index 967e2ffc4d..e6e092b225 100644 --- a/conn_process.go +++ b/conn_process.go @@ -20,8 +20,9 @@ package clickhouse import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" "io" + + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) type onProcess struct { diff --git a/conn_profile_events.go b/conn_profile_events.go index 6f21aafaad..39cd3c674b 100644 --- a/conn_profile_events.go +++ b/conn_profile_events.go @@ -22,7 +22,7 @@ import ( "reflect" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) type ProfileEvent struct { diff --git a/conn_query.go b/conn_query.go index 0fef95ca26..2ff0498eab 100644 --- a/conn_query.go +++ b/conn_query.go @@ -21,7 +21,7 @@ import ( "context" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) func (c *connect) query(ctx context.Context, release func(*connect, error), query string, args ...any) (*rows, error) { diff --git a/conn_send_query.go b/conn_send_query.go index 8897a8c768..5b08e8fd74 100644 --- a/conn_send_query.go +++ b/conn_send_query.go @@ -18,7 +18,7 @@ package clickhouse import ( - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) // Connection::sendQuery diff --git a/context.go b/context.go index 67cd2c8d7b..c867ae3224 100644 --- a/context.go +++ b/context.go @@ -21,7 +21,7 @@ import ( "context" "time" - "github.com/ClickHouse/clickhouse-go/v2/ext" + "github.com/perfectscale/clickhouse-go/v2/ext" "go.opentelemetry.io/otel/trace" ) diff --git a/examples/clickhouse_api/async.go b/examples/clickhouse_api/async.go index a7b5dc1a79..72844d5827 100644 --- a/examples/clickhouse_api/async.go +++ b/examples/clickhouse_api/async.go @@ -19,7 +19,8 @@ package clickhouse_api import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) func AsyncInsert() error { diff --git a/examples/clickhouse_api/auth.go b/examples/clickhouse_api/auth.go index 355c96d2c8..b65f098df2 100644 --- a/examples/clickhouse_api/auth.go +++ b/examples/clickhouse_api/auth.go @@ -19,7 +19,8 @@ package clickhouse_api import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func Auth() error { diff --git a/examples/clickhouse_api/batch_release_connection.go b/examples/clickhouse_api/batch_release_connection.go index 1690c60805..17c4a86c5e 100644 --- a/examples/clickhouse_api/batch_release_connection.go +++ b/examples/clickhouse_api/batch_release_connection.go @@ -20,7 +20,8 @@ package clickhouse_api import ( "context" "errors" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" + + "github.com/perfectscale/clickhouse-go/v2/lib/driver" ) func BatchWithReleaseConnection() error { diff --git a/examples/clickhouse_api/bind.go b/examples/clickhouse_api/bind.go index 656ac06208..5f30bd6515 100644 --- a/examples/clickhouse_api/bind.go +++ b/examples/clickhouse_api/bind.go @@ -20,8 +20,9 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "time" + + "github.com/perfectscale/clickhouse-go/v2" ) func BindParameters() error { diff --git a/examples/clickhouse_api/bind_special.go b/examples/clickhouse_api/bind_special.go index f09fd39ceb..4594828104 100644 --- a/examples/clickhouse_api/bind_special.go +++ b/examples/clickhouse_api/bind_special.go @@ -20,8 +20,9 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "time" + + "github.com/perfectscale/clickhouse-go/v2" ) func SpecialBind() error { diff --git a/examples/clickhouse_api/client_info.go b/examples/clickhouse_api/client_info.go index e07b598085..560f2df980 100644 --- a/examples/clickhouse_api/client_info.go +++ b/examples/clickhouse_api/client_info.go @@ -19,7 +19,8 @@ package clickhouse_api import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func ClientInfo() error { diff --git a/examples/clickhouse_api/compression.go b/examples/clickhouse_api/compression.go index 59b6cc5caf..f4d98534a3 100644 --- a/examples/clickhouse_api/compression.go +++ b/examples/clickhouse_api/compression.go @@ -20,8 +20,9 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "strconv" + + "github.com/perfectscale/clickhouse-go/v2" ) func Compress() error { diff --git a/examples/clickhouse_api/connect.go b/examples/clickhouse_api/connect.go index 1b0e2d97b3..816c56e4d4 100644 --- a/examples/clickhouse_api/connect.go +++ b/examples/clickhouse_api/connect.go @@ -19,7 +19,8 @@ package clickhouse_api import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func Connect() error { diff --git a/examples/clickhouse_api/connect_settings.go b/examples/clickhouse_api/connect_settings.go index 6a4d18d23c..ef77c07030 100644 --- a/examples/clickhouse_api/connect_settings.go +++ b/examples/clickhouse_api/connect_settings.go @@ -20,9 +20,10 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "net" "time" + + "github.com/perfectscale/clickhouse-go/v2" ) func PingWithSettings() error { diff --git a/examples/clickhouse_api/context.go b/examples/clickhouse_api/context.go index e422c70724..82c75e5031 100644 --- a/examples/clickhouse_api/context.go +++ b/examples/clickhouse_api/context.go @@ -20,11 +20,12 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/google/uuid" "net" "time" + + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) func UseContext() error { diff --git a/examples/clickhouse_api/external_data.go b/examples/clickhouse_api/external_data.go index 7399ae2f4f..12ceac7d26 100644 --- a/examples/clickhouse_api/external_data.go +++ b/examples/clickhouse_api/external_data.go @@ -22,8 +22,8 @@ import ( "fmt" "time" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/ext" + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/ext" ) func ExternalData() error { diff --git a/examples/clickhouse_api/geo.go b/examples/clickhouse_api/geo.go index c2d1da2d00..a5053ed9ec 100644 --- a/examples/clickhouse_api/geo.go +++ b/examples/clickhouse_api/geo.go @@ -20,8 +20,9 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/paulmach/orb" + "github.com/perfectscale/clickhouse-go/v2" ) func GeoInsertRead() error { diff --git a/examples/clickhouse_api/json.go b/examples/clickhouse_api/json.go index 38518fcaf3..43b8ab7e6a 100644 --- a/examples/clickhouse_api/json.go +++ b/examples/clickhouse_api/json.go @@ -20,8 +20,9 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) func InsertReadJSON() error { diff --git a/examples/clickhouse_api/main_test.go b/examples/clickhouse_api/main_test.go index 1fd6cfc08b..658a27963e 100644 --- a/examples/clickhouse_api/main_test.go +++ b/examples/clickhouse_api/main_test.go @@ -26,7 +26,7 @@ import ( "testing" "time" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" ) diff --git a/examples/clickhouse_api/map.go b/examples/clickhouse_api/map.go index 432986a378..aabd378e23 100644 --- a/examples/clickhouse_api/map.go +++ b/examples/clickhouse_api/map.go @@ -22,7 +22,7 @@ import ( "fmt" "strconv" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" + "github.com/perfectscale/clickhouse-go/v2/lib/column" ) func MapInsertRead() error { diff --git a/examples/clickhouse_api/multi_host.go b/examples/clickhouse_api/multi_host.go index 8ed249bc17..f906b0fc99 100644 --- a/examples/clickhouse_api/multi_host.go +++ b/examples/clickhouse_api/multi_host.go @@ -19,7 +19,8 @@ package clickhouse_api import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func MultiHostVersion() error { diff --git a/examples/clickhouse_api/nested.go b/examples/clickhouse_api/nested.go index 0aefeb0086..1fffdba20d 100644 --- a/examples/clickhouse_api/nested.go +++ b/examples/clickhouse_api/nested.go @@ -20,8 +20,9 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "strconv" + + "github.com/perfectscale/clickhouse-go/v2" ) func NestedUnFlattened() error { diff --git a/examples/clickhouse_api/open_telemetry.go b/examples/clickhouse_api/open_telemetry.go index 37dd75c04a..3f3e70e195 100644 --- a/examples/clickhouse_api/open_telemetry.go +++ b/examples/clickhouse_api/open_telemetry.go @@ -20,7 +20,8 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" "go.opentelemetry.io/otel/trace" ) diff --git a/examples/clickhouse_api/progress.go b/examples/clickhouse_api/progress.go index fdc09334f8..3c32805733 100644 --- a/examples/clickhouse_api/progress.go +++ b/examples/clickhouse_api/progress.go @@ -20,7 +20,8 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func ProgressProfileLogs() error { diff --git a/examples/clickhouse_api/query_parameters.go b/examples/clickhouse_api/query_parameters.go index 5d56714192..5b95c98009 100644 --- a/examples/clickhouse_api/query_parameters.go +++ b/examples/clickhouse_api/query_parameters.go @@ -20,8 +20,9 @@ package clickhouse_api import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) func QueryWithParameters() error { diff --git a/examples/clickhouse_api/ssl.go b/examples/clickhouse_api/ssl.go index 640e660f57..da855e8c7b 100644 --- a/examples/clickhouse_api/ssl.go +++ b/examples/clickhouse_api/ssl.go @@ -21,10 +21,11 @@ import ( "crypto/tls" "crypto/x509" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "io/ioutil" "os" "path" + + "github.com/perfectscale/clickhouse-go/v2" ) func SSLVersion() error { diff --git a/examples/clickhouse_api/ssl_no_verify.go b/examples/clickhouse_api/ssl_no_verify.go index b9840ee5a5..df7a741bc7 100644 --- a/examples/clickhouse_api/ssl_no_verify.go +++ b/examples/clickhouse_api/ssl_no_verify.go @@ -20,7 +20,8 @@ package clickhouse_api import ( "crypto/tls" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func SSLNoVerifyVersion() error { diff --git a/examples/clickhouse_api/utils.go b/examples/clickhouse_api/utils.go index 388a0a25f8..96d4f99a38 100644 --- a/examples/clickhouse_api/utils.go +++ b/examples/clickhouse_api/utils.go @@ -19,9 +19,10 @@ package clickhouse_api import ( "crypto/tls" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) const TestSet string = "examples_clickhouse_api" diff --git a/examples/std/async.go b/examples/std/async.go index f4b692efdc..d325d32012 100644 --- a/examples/std/async.go +++ b/examples/std/async.go @@ -19,7 +19,8 @@ package std import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func AsyncInsert() error { diff --git a/examples/std/auth.go b/examples/std/auth.go index 68af105969..54436e6647 100644 --- a/examples/std/auth.go +++ b/examples/std/auth.go @@ -20,7 +20,8 @@ package std import ( "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func ConnectAuth() error { diff --git a/examples/std/batch.go b/examples/std/batch.go index 98dd89b19a..760b8d673c 100644 --- a/examples/std/batch.go +++ b/examples/std/batch.go @@ -18,11 +18,12 @@ package std import ( - "github.com/ClickHouse/clickhouse-go/v2" "time" - _ "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" + "github.com/google/uuid" + _ "github.com/perfectscale/clickhouse-go/v2" ) func BatchInsert() error { diff --git a/examples/std/bind.go b/examples/std/bind.go index 479e503371..76c1db92ec 100644 --- a/examples/std/bind.go +++ b/examples/std/bind.go @@ -20,9 +20,10 @@ package std import ( "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" "time" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" ) func BindParameters() error { diff --git a/examples/std/compression.go b/examples/std/compression.go index 6448cff743..c0c70d260f 100644 --- a/examples/std/compression.go +++ b/examples/std/compression.go @@ -22,7 +22,7 @@ import ( "fmt" "strconv" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) func CompressOpenDB() error { diff --git a/examples/std/connect.go b/examples/std/connect.go index 139afdef1c..ee992e68ec 100644 --- a/examples/std/connect.go +++ b/examples/std/connect.go @@ -20,7 +20,8 @@ package std import ( "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func Connect() error { diff --git a/examples/std/connect_http.go b/examples/std/connect_http.go index ff47f7e558..c8a4e18fe8 100644 --- a/examples/std/connect_http.go +++ b/examples/std/connect_http.go @@ -20,7 +20,8 @@ package std import ( "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func ConnectHTTP() error { diff --git a/examples/std/context.go b/examples/std/context.go index cb625d701d..4f41d2c025 100644 --- a/examples/std/context.go +++ b/examples/std/context.go @@ -20,10 +20,11 @@ package std import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/google/uuid" "time" + + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" ) func UseContext() error { diff --git a/examples/std/dynamic_scan_types.go b/examples/std/dynamic_scan_types.go index 6b703ff6fd..d2e25e31f5 100644 --- a/examples/std/dynamic_scan_types.go +++ b/examples/std/dynamic_scan_types.go @@ -20,8 +20,9 @@ package std import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "reflect" + + "github.com/perfectscale/clickhouse-go/v2" ) func DynamicScan() error { diff --git a/examples/std/exec.go b/examples/std/exec.go index 1ffe7b1f4b..b275fb0ae2 100644 --- a/examples/std/exec.go +++ b/examples/std/exec.go @@ -17,7 +17,7 @@ package std -import "github.com/ClickHouse/clickhouse-go/v2" +import "github.com/perfectscale/clickhouse-go/v2" func Exec() error { conn, err := GetStdOpenDBConnection(clickhouse.Native, nil, nil, nil) diff --git a/examples/std/external_data.go b/examples/std/external_data.go index e91ce0e30d..8f2e233c51 100644 --- a/examples/std/external_data.go +++ b/examples/std/external_data.go @@ -22,8 +22,8 @@ import ( "fmt" "time" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/ext" + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/ext" ) func ExternalData() error { diff --git a/examples/std/json.go b/examples/std/json.go index 300a5f1bd2..3074b8aa26 100644 --- a/examples/std/json.go +++ b/examples/std/json.go @@ -19,9 +19,10 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/tests/std" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/tests/std" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" ) type Releases struct { diff --git a/examples/std/main_test.go b/examples/std/main_test.go index 8e080ae9b4..3e250a58e2 100644 --- a/examples/std/main_test.go +++ b/examples/std/main_test.go @@ -20,13 +20,14 @@ package std import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "math/rand" "os" "strconv" "testing" "time" + + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func TestMain(m *testing.M) { diff --git a/examples/std/map.go b/examples/std/map.go index 42f2115c86..134cf84238 100644 --- a/examples/std/map.go +++ b/examples/std/map.go @@ -20,7 +20,7 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) func MapInsertRead() error { diff --git a/examples/std/multi_host.go b/examples/std/multi_host.go index ae2927fa8f..8135840311 100644 --- a/examples/std/multi_host.go +++ b/examples/std/multi_host.go @@ -20,7 +20,8 @@ package std import ( "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func MultiStdHost() error { diff --git a/examples/std/open_db.go b/examples/std/open_db.go index 9f88612a11..bec6dff1da 100644 --- a/examples/std/open_db.go +++ b/examples/std/open_db.go @@ -22,7 +22,7 @@ import ( "fmt" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) func OpenDb() error { diff --git a/examples/std/open_telemetry.go b/examples/std/open_telemetry.go index 3ec8d17989..7a7018ddb4 100644 --- a/examples/std/open_telemetry.go +++ b/examples/std/open_telemetry.go @@ -20,7 +20,8 @@ package std import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" "go.opentelemetry.io/otel/trace" ) diff --git a/examples/std/progress.go b/examples/std/progress.go index 38efb36584..0ad2af4426 100644 --- a/examples/std/progress.go +++ b/examples/std/progress.go @@ -20,7 +20,8 @@ package std import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + + "github.com/perfectscale/clickhouse-go/v2" ) func ProgressProfileLogs() error { diff --git a/examples/std/query_parameters.go b/examples/std/query_parameters.go index 8a74824a00..c7093da422 100644 --- a/examples/std/query_parameters.go +++ b/examples/std/query_parameters.go @@ -19,8 +19,9 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/tests/std" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/tests/std" ) func QueryWithParameters() error { diff --git a/examples/std/query_row.go b/examples/std/query_row.go index 386db3e97b..13d0b4851a 100644 --- a/examples/std/query_row.go +++ b/examples/std/query_row.go @@ -19,10 +19,11 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/google/uuid" "strconv" "time" + + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" ) func QueryRow() error { diff --git a/examples/std/query_rows.go b/examples/std/query_rows.go index 92bfcec6d2..cc9828e488 100644 --- a/examples/std/query_rows.go +++ b/examples/std/query_rows.go @@ -19,10 +19,11 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/google/uuid" "strconv" "time" + + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" ) func QueryRows() error { diff --git a/examples/std/session.go b/examples/std/session.go index b848d51865..575eeb4124 100644 --- a/examples/std/session.go +++ b/examples/std/session.go @@ -19,8 +19,9 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" ) func Sessions() error { diff --git a/examples/std/ssl.go b/examples/std/ssl.go index 9d74af24fb..850dbfd851 100644 --- a/examples/std/ssl.go +++ b/examples/std/ssl.go @@ -22,10 +22,11 @@ import ( "crypto/x509" "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" "io/ioutil" "os" "path" + + "github.com/perfectscale/clickhouse-go/v2" ) func ConnectSSL() error { diff --git a/examples/std/utils.go b/examples/std/utils.go index 972a4af8e4..7e4762b8a9 100644 --- a/examples/std/utils.go +++ b/examples/std/utils.go @@ -20,9 +20,10 @@ package std import ( "crypto/tls" "database/sql" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_tests_std "github.com/ClickHouse/clickhouse-go/v2/tests/std" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_tests_std "github.com/perfectscale/clickhouse-go/v2/tests/std" ) const TestSet string = "examples_std_api" diff --git a/ext/ext.go b/ext/ext.go index 6fa2b7f012..188d0d733c 100644 --- a/ext/ext.go +++ b/ext/ext.go @@ -19,9 +19,10 @@ package ext import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" "strings" + + "github.com/perfectscale/clickhouse-go/v2/lib/column" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) func NewTable(name string, columns ...func(t *Table) error) (*Table, error) { diff --git a/go.mod b/go.mod index 04f2403e96..a79b3d0fb9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ClickHouse/clickhouse-go/v2 +module github.com/perfectscale/clickhouse-go/v2 go 1.21 diff --git a/lib/column/codegen/column.tpl b/lib/column/codegen/column.tpl index 2ae117db1c..4782893641 100644 --- a/lib/column/codegen/column.tpl +++ b/lib/column/codegen/column.tpl @@ -146,6 +146,8 @@ func (t Type) Column(name string, tz *time.Location) (Interface, error) { return (&LowCardinality{name: name}).parse(t, tz) case strings.HasPrefix(string(t), "SimpleAggregateFunction"): return (&SimpleAggregateFunction{name: name}).parse(t, tz) + case strings.HasPrefix(string(t), "AggregateFunction"): + return &Bool{name: name}, nil case strings.HasPrefix(string(t), "Enum8") || strings.HasPrefix(string(t), "Enum16"): return Enum(t, name) case strings.HasPrefix(string(t), "DateTime64"): diff --git a/lib/column/column_gen.go b/lib/column/column_gen.go index 455be4c0e1..99a004a8e0 100644 --- a/lib/column/column_gen.go +++ b/lib/column/column_gen.go @@ -136,7 +136,7 @@ func (t Type) Column(name string, tz *time.Location) (Interface, error) { case "Point": return &Point{name: name}, nil case "String": - return &String{name: name, col: colStrProvider()}, nil + return &String{name: name}, nil case "Object('json')": return &JSONObject{name: name, root: true, tz: tz}, nil } @@ -162,6 +162,8 @@ func (t Type) Column(name string, tz *time.Location) (Interface, error) { return (&LowCardinality{name: name}).parse(t, tz) case strings.HasPrefix(string(t), "SimpleAggregateFunction"): return (&SimpleAggregateFunction{name: name}).parse(t, tz) + case strings.HasPrefix(string(t), "AggregateFunction"): + return &Bool{name: name}, nil case strings.HasPrefix(string(t), "Enum8") || strings.HasPrefix(string(t), "Enum16"): return Enum(t, name) case strings.HasPrefix(string(t), "DateTime64"): diff --git a/lib/column/datetime.go b/lib/column/datetime.go index d5dfffad22..b115dd0474 100644 --- a/lib/column/datetime.go +++ b/lib/column/datetime.go @@ -21,12 +21,13 @@ import ( "database/sql" "database/sql/driver" "fmt" - "github.com/ClickHouse/ch-go/proto" "reflect" "strings" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/timezone" + "github.com/ClickHouse/ch-go/proto" + + "github.com/perfectscale/clickhouse-go/v2/lib/timezone" ) var ( diff --git a/lib/column/datetime64.go b/lib/column/datetime64.go index f5a5a94877..696d77bd39 100644 --- a/lib/column/datetime64.go +++ b/lib/column/datetime64.go @@ -21,14 +21,15 @@ import ( "database/sql" "database/sql/driver" "fmt" - "github.com/ClickHouse/ch-go/proto" "math" "reflect" "strconv" "strings" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/timezone" + "github.com/ClickHouse/ch-go/proto" + + "github.com/perfectscale/clickhouse-go/v2/lib/timezone" ) var ( diff --git a/lib/column/fixed_string.go b/lib/column/fixed_string.go index 8ddb0d1ce6..10da7b228e 100644 --- a/lib/column/fixed_string.go +++ b/lib/column/fixed_string.go @@ -22,10 +22,11 @@ import ( "database/sql/driver" "encoding" "fmt" - "github.com/ClickHouse/ch-go/proto" "reflect" - "github.com/ClickHouse/clickhouse-go/v2/lib/binary" + "github.com/ClickHouse/ch-go/proto" + + "github.com/perfectscale/clickhouse-go/v2/lib/binary" ) type FixedString struct { diff --git a/lib/column/string.go b/lib/column/string.go index 5ce480b0e6..149e3e255e 100644 --- a/lib/column/string.go +++ b/lib/column/string.go @@ -22,10 +22,11 @@ import ( "database/sql/driver" "encoding" "fmt" - "github.com/ClickHouse/ch-go/proto" "reflect" - "github.com/ClickHouse/clickhouse-go/v2/lib/binary" + "github.com/ClickHouse/ch-go/proto" + + "github.com/perfectscale/clickhouse-go/v2/lib/binary" ) type String struct { diff --git a/lib/driver/driver.go b/lib/driver/driver.go index f88bb43e14..4fb6e873ff 100644 --- a/lib/driver/driver.go +++ b/lib/driver/driver.go @@ -22,7 +22,7 @@ import ( "reflect" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) type ServerVersion = proto.ServerHandshake diff --git a/lib/proto/block.go b/lib/proto/block.go index 79a5f13fc2..2e689420ee 100644 --- a/lib/proto/block.go +++ b/lib/proto/block.go @@ -24,7 +24,7 @@ import ( "time" "github.com/ClickHouse/ch-go/proto" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" + "github.com/perfectscale/clickhouse-go/v2/lib/column" ) type Block struct { diff --git a/lib/proto/handshake.go b/lib/proto/handshake.go index 6ee620905c..29d10782e6 100644 --- a/lib/proto/handshake.go +++ b/lib/proto/handshake.go @@ -19,13 +19,14 @@ package proto import ( "fmt" - chproto "github.com/ClickHouse/ch-go/proto" - "gopkg.in/yaml.v3" "strconv" "strings" "time" - "github.com/ClickHouse/clickhouse-go/v2/lib/timezone" + chproto "github.com/ClickHouse/ch-go/proto" + "gopkg.in/yaml.v3" + + "github.com/perfectscale/clickhouse-go/v2/lib/timezone" ) type ClientHandshake struct { diff --git a/query_parameters.go b/query_parameters.go index 9b7e94cad2..bc3001e8da 100644 --- a/query_parameters.go +++ b/query_parameters.go @@ -18,10 +18,11 @@ package clickhouse import ( - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - "github.com/pkg/errors" "regexp" "time" + + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + "github.com/pkg/errors" ) var ( diff --git a/resources/meta.go b/resources/meta.go index 1173690257..99e879917d 100644 --- a/resources/meta.go +++ b/resources/meta.go @@ -19,9 +19,10 @@ package resources import ( _ "embed" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" - "gopkg.in/yaml.v3" "strings" + + "github.com/perfectscale/clickhouse-go/v2/lib/proto" + "gopkg.in/yaml.v3" ) type Meta struct { diff --git a/resources/meta_test.go b/resources/meta_test.go index b5973f0ea5..ab65483421 100644 --- a/resources/meta_test.go +++ b/resources/meta_test.go @@ -18,10 +18,11 @@ package resources import ( - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "testing" + + "github.com/perfectscale/clickhouse-go/v2/lib/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) var m Meta = Meta{ diff --git a/scan.go b/scan.go index 744eaf042f..568198f335 100644 --- a/scan.go +++ b/scan.go @@ -23,7 +23,7 @@ import ( "fmt" "reflect" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" ) func (ch *clickhouse) Select(ctx context.Context, dest any, query string, args ...any) error { diff --git a/tests/abort_test.go b/tests/abort_test.go index f47d7bcd06..b46b286105 100644 --- a/tests/abort_test.go +++ b/tests/abort_test.go @@ -19,10 +19,11 @@ package tests import ( "context" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/array_test.go b/tests/array_test.go index 3f8617a18f..504f4d7e59 100644 --- a/tests/array_test.go +++ b/tests/array_test.go @@ -21,11 +21,12 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/base_types_test.go b/tests/base_types_test.go index c7b4a8aa77..87bcd80074 100644 --- a/tests/base_types_test.go +++ b/tests/base_types_test.go @@ -21,10 +21,11 @@ import ( "context" "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + "testing" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) type customUint8 uint8 diff --git a/tests/batch_release_connection_test.go b/tests/batch_release_connection_test.go index ec36c5c8fa..25e1df5cf9 100644 --- a/tests/batch_release_connection_test.go +++ b/tests/batch_release_connection_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" "github.com/stretchr/testify/require" ) diff --git a/tests/batch_test.go b/tests/batch_test.go index cb099fe211..a8b87d9958 100644 --- a/tests/batch_test.go +++ b/tests/batch_test.go @@ -20,7 +20,7 @@ package tests import ( "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/require" "golang.org/x/net/context" ) diff --git a/tests/bigint_test.go b/tests/bigint_test.go index e1c77d4200..97766f7e0e 100644 --- a/tests/bigint_test.go +++ b/tests/bigint_test.go @@ -21,11 +21,12 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "math/big" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/bool_test.go b/tests/bool_test.go index f424bcc385..42443dd490 100644 --- a/tests/bool_test.go +++ b/tests/bool_test.go @@ -22,12 +22,13 @@ import ( "database/sql" "database/sql/driver" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "math/rand" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestBool(t *testing.T) { diff --git a/tests/client_info_test.go b/tests/client_info_test.go index 978da3ebce..b869e0802a 100644 --- a/tests/client_info_test.go +++ b/tests/client_info_test.go @@ -20,12 +20,13 @@ package tests import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "runtime" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestClientInfo(t *testing.T) { diff --git a/tests/column_types_test.go b/tests/column_types_test.go index b64e14eec7..c3c6ed3a63 100644 --- a/tests/column_types_test.go +++ b/tests/column_types_test.go @@ -19,11 +19,12 @@ package tests import ( "context" - "github.com/stretchr/testify/require" "reflect" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/columnar_batch_test.go b/tests/columnar_batch_test.go index a25c8eaf59..8654c7323b 100644 --- a/tests/columnar_batch_test.go +++ b/tests/columnar_batch_test.go @@ -27,7 +27,7 @@ import ( "github.com/shopspring/decimal" "github.com/stretchr/testify/require" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/compression_test.go b/tests/compression_test.go index 747abcfa96..893c718c8e 100644 --- a/tests/compression_test.go +++ b/tests/compression_test.go @@ -19,10 +19,11 @@ package tests import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" + "testing" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func TestZSTDCompression(t *testing.T) { diff --git a/tests/conn_test.go b/tests/conn_test.go index d367bbd55f..37a03f8b8b 100644 --- a/tests/conn_test.go +++ b/tests/conn_test.go @@ -28,7 +28,7 @@ import ( "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tests/contributors_test.go b/tests/contributors_test.go index 6a1680235b..14e8f8b86c 100644 --- a/tests/contributors_test.go +++ b/tests/contributors_test.go @@ -20,7 +20,7 @@ package tests import ( "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/custom_dial_test.go b/tests/custom_dial_test.go index d05de0c767..f40189d1c9 100644 --- a/tests/custom_dial_test.go +++ b/tests/custom_dial_test.go @@ -29,7 +29,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/date32_test.go b/tests/date32_test.go index 1792a00c98..b44e8b0e02 100644 --- a/tests/date32_test.go +++ b/tests/date32_test.go @@ -21,13 +21,14 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "testing" "time" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) func TestDate32(t *testing.T) { diff --git a/tests/date_test.go b/tests/date_test.go index 04a9acdc8d..3ed7f4cd99 100644 --- a/tests/date_test.go +++ b/tests/date_test.go @@ -21,13 +21,14 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "testing" "time" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) func TestDate(t *testing.T) { diff --git a/tests/datetime64_test.go b/tests/datetime64_test.go index d080c51cc2..634ffe689b 100644 --- a/tests/datetime64_test.go +++ b/tests/datetime64_test.go @@ -21,11 +21,12 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/datetime_test.go b/tests/datetime_test.go index 92f896bbfd..3e76fa0c43 100644 --- a/tests/datetime_test.go +++ b/tests/datetime_test.go @@ -21,11 +21,12 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/ddl_test.go b/tests/ddl_test.go index 575eb9a464..26bd40f280 100644 --- a/tests/ddl_test.go +++ b/tests/ddl_test.go @@ -20,9 +20,10 @@ package tests import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/stretchr/testify/require" ) func TestQuotedDDL(t *testing.T) { diff --git a/tests/decimal_test.go b/tests/decimal_test.go index 2c9d31090a..cd3526dfb4 100644 --- a/tests/decimal_test.go +++ b/tests/decimal_test.go @@ -23,7 +23,7 @@ import ( "fmt" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" "github.com/shopspring/decimal" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/empty_query_test.go b/tests/empty_query_test.go index 9828ff437b..d0a22c4da6 100644 --- a/tests/empty_query_test.go +++ b/tests/empty_query_test.go @@ -19,11 +19,12 @@ package tests import ( "context" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/enum_test.go b/tests/enum_test.go index 9569addd58..f985c6cc8d 100644 --- a/tests/enum_test.go +++ b/tests/enum_test.go @@ -21,10 +21,11 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/external_table_test.go b/tests/external_table_test.go index a1d94bb2e5..6a421b8d3d 100644 --- a/tests/external_table_test.go +++ b/tests/external_table_test.go @@ -20,12 +20,13 @@ package tests import ( "context" "fmt" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/ext" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/ext" "github.com/stretchr/testify/assert" ) diff --git a/tests/fixed_string_test.go b/tests/fixed_string_test.go index 782faf1520..4a111338ab 100644 --- a/tests/fixed_string_test.go +++ b/tests/fixed_string_test.go @@ -22,10 +22,11 @@ import ( "crypto/rand" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/float64_test.go b/tests/float64_test.go index 76993f816d..7591c53d0a 100644 --- a/tests/float64_test.go +++ b/tests/float64_test.go @@ -21,9 +21,10 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/stretchr/testify/require" ) func TestFloat64(t *testing.T) { diff --git a/tests/float_test.go b/tests/float_test.go index a9f948718f..3e8ebeee66 100644 --- a/tests/float_test.go +++ b/tests/float_test.go @@ -21,11 +21,12 @@ import ( "context" "database/sql" "fmt" - "github.com/stretchr/testify/require" "math/rand" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/flush_test.go b/tests/flush_test.go index 9717491c22..68ecaafd87 100644 --- a/tests/flush_test.go +++ b/tests/flush_test.go @@ -19,12 +19,13 @@ package tests import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - "github.com/google/uuid" - "github.com/stretchr/testify/require" "testing" "time" + + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + "github.com/stretchr/testify/require" ) func TestNoFlushWithCompression(t *testing.T) { diff --git a/tests/geo_multipolygon_test.go b/tests/geo_multipolygon_test.go index 65f16d24f4..8be65f91d0 100644 --- a/tests/geo_multipolygon_test.go +++ b/tests/geo_multipolygon_test.go @@ -21,12 +21,13 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "math/rand" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + "github.com/paulmach/orb" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/geo_point_test.go b/tests/geo_point_test.go index f3d3333343..0b413f85a0 100644 --- a/tests/geo_point_test.go +++ b/tests/geo_point_test.go @@ -21,12 +21,13 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "math/rand" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + "github.com/paulmach/orb" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/geo_polygon_test.go b/tests/geo_polygon_test.go index 6ce24cdbd0..76377cd655 100644 --- a/tests/geo_polygon_test.go +++ b/tests/geo_polygon_test.go @@ -21,12 +21,13 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "math/rand" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + "github.com/paulmach/orb" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/geo_ring_test.go b/tests/geo_ring_test.go index e550c136f2..c45578c87a 100644 --- a/tests/geo_ring_test.go +++ b/tests/geo_ring_test.go @@ -21,11 +21,12 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + "github.com/paulmach/orb" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/insert_bind_test.go b/tests/insert_bind_test.go index 994bdd6384..dde4a09b06 100644 --- a/tests/insert_bind_test.go +++ b/tests/insert_bind_test.go @@ -19,9 +19,10 @@ package tests import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/stretchr/testify/require" ) func TestBindArrayInsert(t *testing.T) { diff --git a/tests/int64_test.go b/tests/int64_test.go index 4537904dff..ef7ed78699 100644 --- a/tests/int64_test.go +++ b/tests/int64_test.go @@ -19,11 +19,12 @@ package tests import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestDurationInt64(t *testing.T) { diff --git a/tests/interval_test.go b/tests/interval_test.go index 611bb7684d..1105b94909 100644 --- a/tests/interval_test.go +++ b/tests/interval_test.go @@ -19,10 +19,11 @@ package tests import ( "context" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/ipv4_test.go b/tests/ipv4_test.go index ea67633b81..8d78bdba86 100644 --- a/tests/ipv4_test.go +++ b/tests/ipv4_test.go @@ -22,13 +22,14 @@ import ( "database/sql/driver" "encoding/binary" "fmt" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - "github.com/stretchr/testify/require" "net" "net/netip" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/column" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/ipv6_test.go b/tests/ipv6_test.go index f8b0f8df25..cf28ac1701 100644 --- a/tests/ipv6_test.go +++ b/tests/ipv6_test.go @@ -21,14 +21,15 @@ import ( "context" "database/sql/driver" "fmt" - "github.com/ClickHouse/ch-go/proto" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - "github.com/stretchr/testify/require" "net" "net/netip" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/ClickHouse/ch-go/proto" + "github.com/perfectscale/clickhouse-go/v2/lib/column" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/1049_test.go b/tests/issues/1049_test.go index 53719ea978..45f02ca440 100644 --- a/tests/issues/1049_test.go +++ b/tests/issues/1049_test.go @@ -2,10 +2,11 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func Test1049(t *testing.T) { diff --git a/tests/issues/1053_test.go b/tests/issues/1053_test.go index 0b5a538b46..310f1fee67 100644 --- a/tests/issues/1053_test.go +++ b/tests/issues/1053_test.go @@ -2,10 +2,11 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func Test1053(t *testing.T) { diff --git a/tests/issues/1066_test.go b/tests/issues/1066_test.go index d4ad42e012..b023dfcd33 100644 --- a/tests/issues/1066_test.go +++ b/tests/issues/1066_test.go @@ -2,12 +2,13 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func Test1066(t *testing.T) { diff --git a/tests/issues/1067_test.go b/tests/issues/1067_test.go index 7f3345212c..02b35362fe 100644 --- a/tests/issues/1067_test.go +++ b/tests/issues/1067_test.go @@ -2,11 +2,12 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func Test1067(t *testing.T) { diff --git a/tests/issues/1072_test.go b/tests/issues/1072_test.go index 02fa79d4dc..2726ba3400 100644 --- a/tests/issues/1072_test.go +++ b/tests/issues/1072_test.go @@ -2,10 +2,11 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func Test1072(t *testing.T) { diff --git a/tests/issues/1106_test.go b/tests/issues/1106_test.go index 41f2f62dab..a21aea84cf 100644 --- a/tests/issues/1106_test.go +++ b/tests/issues/1106_test.go @@ -5,8 +5,8 @@ import ( "net" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/issues/1113_test.go b/tests/issues/1113_test.go index d20c14e99d..fc1d91b8a7 100644 --- a/tests/issues/1113_test.go +++ b/tests/issues/1113_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/issues/1119_test.go b/tests/issues/1119_test.go index 2493b64170..ec4bcbc795 100644 --- a/tests/issues/1119_test.go +++ b/tests/issues/1119_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/issues/1128_test.go b/tests/issues/1128_test.go index d4b9d76839..26997d50db 100644 --- a/tests/issues/1128_test.go +++ b/tests/issues/1128_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/issues/1163_test.go b/tests/issues/1163_test.go index 7ee70bfaca..58c20d23c1 100644 --- a/tests/issues/1163_test.go +++ b/tests/issues/1163_test.go @@ -4,12 +4,13 @@ import ( "context" "crypto/tls" "fmt" - "github.com/stretchr/testify/assert" "strconv" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/issues/1164_test.go b/tests/issues/1164_test.go index f044dff284..14f1b2f789 100644 --- a/tests/issues/1164_test.go +++ b/tests/issues/1164_test.go @@ -3,11 +3,12 @@ package issues import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/column" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func TestIssue1164(t *testing.T) { diff --git a/tests/issues/1169_test.go b/tests/issues/1169_test.go index e37aea9881..e255884e32 100644 --- a/tests/issues/1169_test.go +++ b/tests/issues/1169_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/issues/1200_pr_test.go b/tests/issues/1200_pr_test.go index e5f6513aa2..81ba2ce490 100644 --- a/tests/issues/1200_pr_test.go +++ b/tests/issues/1200_pr_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/issues/164_test.go b/tests/issues/164_test.go index 5d1aaf5cd5..1bc36d3333 100644 --- a/tests/issues/164_test.go +++ b/tests/issues/164_test.go @@ -20,13 +20,14 @@ package issues import ( "context" "database/sql" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestIssue164(t *testing.T) { diff --git a/tests/issues/209/main.go b/tests/issues/209/main.go index d9771cb2f3..c2529d96c1 100644 --- a/tests/issues/209/main.go +++ b/tests/issues/209/main.go @@ -23,9 +23,9 @@ import ( "net/http" "time" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) func getClickhouseClient() driver.Conn { diff --git a/tests/issues/260_test.go b/tests/issues/260_test.go index 472dcc30f2..d5639578d8 100644 --- a/tests/issues/260_test.go +++ b/tests/issues/260_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" "time" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/357_test.go b/tests/issues/357_test.go index a6831781b9..57777cc468 100644 --- a/tests/issues/357_test.go +++ b/tests/issues/357_test.go @@ -18,14 +18,15 @@ package issues import ( - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/360/main.go b/tests/issues/360/main.go index 44955586db..9fba17db81 100644 --- a/tests/issues/360/main.go +++ b/tests/issues/360/main.go @@ -25,8 +25,8 @@ import ( _ "net/http/pprof" "time" - "github.com/ClickHouse/clickhouse-go/v2" - clickHouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" + "github.com/perfectscale/clickhouse-go/v2" + clickHouse_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" ) var conn *sql.DB diff --git a/tests/issues/389_test.go b/tests/issues/389_test.go index 2febd14afb..b3cab4e608 100644 --- a/tests/issues/389_test.go +++ b/tests/issues/389_test.go @@ -20,12 +20,13 @@ package issues import ( "context" "fmt" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/406_test.go b/tests/issues/406_test.go index 5be1cf8d28..b3ec32a9a7 100644 --- a/tests/issues/406_test.go +++ b/tests/issues/406_test.go @@ -20,11 +20,12 @@ package issues import ( "context" "fmt" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/412_test.go b/tests/issues/412_test.go index 4f024c470b..1cc6a7a952 100644 --- a/tests/issues/412_test.go +++ b/tests/issues/412_test.go @@ -20,12 +20,13 @@ package issues import ( "context" "fmt" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/470/main.go b/tests/issues/470/main.go index 9186f8ae85..dde955019e 100644 --- a/tests/issues/470/main.go +++ b/tests/issues/470/main.go @@ -23,8 +23,8 @@ import ( "log" "reflect" - _ "github.com/ClickHouse/clickhouse-go/v2" - clickHouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" + _ "github.com/perfectscale/clickhouse-go/v2" + clickHouse_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" ) type DatabaseFrame struct { diff --git a/tests/issues/470_pr_test.go b/tests/issues/470_pr_test.go index f5398e2f29..f8182d2028 100644 --- a/tests/issues/470_pr_test.go +++ b/tests/issues/470_pr_test.go @@ -18,13 +18,14 @@ package issues import ( - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/require" "strconv" "testing" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/472_test.go b/tests/issues/472_test.go index 4f0259bd5b..bd96b85c6f 100644 --- a/tests/issues/472_test.go +++ b/tests/issues/472_test.go @@ -19,13 +19,14 @@ package issues import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" ) func TestIssue472(t *testing.T) { diff --git a/tests/issues/476/main.go b/tests/issues/476/main.go index 6b713041d9..306d7125d2 100644 --- a/tests/issues/476/main.go +++ b/tests/issues/476/main.go @@ -23,7 +23,7 @@ import ( "log" "reflect" - _ "github.com/ClickHouse/clickhouse-go/v2" + _ "github.com/perfectscale/clickhouse-go/v2" ) func main() { diff --git a/tests/issues/476_test.go b/tests/issues/476_test.go index 833a1b7cee..885ca69626 100644 --- a/tests/issues/476_test.go +++ b/tests/issues/476_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/482_test.go b/tests/issues/482_test.go index 9653997daf..a95c2e9b0a 100644 --- a/tests/issues/482_test.go +++ b/tests/issues/482_test.go @@ -19,12 +19,13 @@ package issues import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/483_test.go b/tests/issues/483_test.go index 7a300b9de3..cea9c7f4d3 100644 --- a/tests/issues/483_test.go +++ b/tests/issues/483_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/484/main.go b/tests/issues/484/main.go index c0b2f58a13..3f4c8229c4 100644 --- a/tests/issues/484/main.go +++ b/tests/issues/484/main.go @@ -21,8 +21,8 @@ import ( "fmt" "time" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" ) func main() { diff --git a/tests/issues/485/main.go b/tests/issues/485/main.go index 1bb050c815..9a07411999 100644 --- a/tests/issues/485/main.go +++ b/tests/issues/485/main.go @@ -23,8 +23,8 @@ import ( "log" "time" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) func example() error { diff --git a/tests/issues/502_test.go b/tests/issues/502_test.go index 8460114c32..3a34785e33 100644 --- a/tests/issues/502_test.go +++ b/tests/issues/502_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/504_test.go b/tests/issues/504_test.go index 94def43ccd..2ae5bf3d95 100644 --- a/tests/issues/504_test.go +++ b/tests/issues/504_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/506_test.go b/tests/issues/506_test.go index b33df820ae..b4b6e5bc03 100644 --- a/tests/issues/506_test.go +++ b/tests/issues/506_test.go @@ -20,11 +20,12 @@ package issues import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func TestIssue506(t *testing.T) { diff --git a/tests/issues/517_test.go b/tests/issues/517_test.go index 3ddd02f9a8..86318df486 100644 --- a/tests/issues/517_test.go +++ b/tests/issues/517_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func TestIssue517(t *testing.T) { diff --git a/tests/issues/546_test.go b/tests/issues/546_test.go index 63a672c65c..95962bfbd9 100644 --- a/tests/issues/546_test.go +++ b/tests/issues/546_test.go @@ -20,12 +20,13 @@ package issues import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/548_test.go b/tests/issues/548_test.go index d1a10d7e86..5e9eab6a3c 100644 --- a/tests/issues/548_test.go +++ b/tests/issues/548_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/issues/570_test.go b/tests/issues/570_test.go index 29ecb0ab79..62c3540adf 100644 --- a/tests/issues/570_test.go +++ b/tests/issues/570_test.go @@ -21,14 +21,15 @@ import ( "crypto/tls" "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestIssue570(t *testing.T) { diff --git a/tests/issues/578_test.go b/tests/issues/578_test.go index f9f82718b2..d227032e18 100644 --- a/tests/issues/578_test.go +++ b/tests/issues/578_test.go @@ -19,10 +19,11 @@ package issues import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "testing" + + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func TestIssue578(t *testing.T) { diff --git a/tests/issues/584_test.go b/tests/issues/584_test.go index a3b0e429cb..076ea61386 100644 --- a/tests/issues/584_test.go +++ b/tests/issues/584_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func TestIssue584(t *testing.T) { diff --git a/tests/issues/592_test.go b/tests/issues/592_test.go index 212a675638..7511c47c25 100644 --- a/tests/issues/592_test.go +++ b/tests/issues/592_test.go @@ -19,9 +19,10 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/stretchr/testify/assert" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/stretchr/testify/assert" ) func TestIssue592(t *testing.T) { diff --git a/tests/issues/615_test.go b/tests/issues/615_test.go index 339dbc8ba8..cc3b40d642 100644 --- a/tests/issues/615_test.go +++ b/tests/issues/615_test.go @@ -20,12 +20,13 @@ package issues import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestIssue615(t *testing.T) { diff --git a/tests/issues/647_test.go b/tests/issues/647_test.go index ac3f0f0abb..91f4ac57e8 100644 --- a/tests/issues/647_test.go +++ b/tests/issues/647_test.go @@ -22,11 +22,12 @@ import ( "crypto/tls" "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func TestIssue647(t *testing.T) { diff --git a/tests/issues/648_test.go b/tests/issues/648_test.go index 4c8d9b1dd6..12ba2e6f7f 100644 --- a/tests/issues/648_test.go +++ b/tests/issues/648_test.go @@ -19,10 +19,11 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func TestIssue648(t *testing.T) { diff --git a/tests/issues/655_test.go b/tests/issues/655_test.go index 5f1ec2c35d..614c90eb56 100644 --- a/tests/issues/655_test.go +++ b/tests/issues/655_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) // Test655 confirms an agreed semantic on failing batch append results with entire batch cancellation. diff --git a/tests/issues/692_test.go b/tests/issues/692_test.go index 445ce01c43..55597b9307 100644 --- a/tests/issues/692_test.go +++ b/tests/issues/692_test.go @@ -23,10 +23,10 @@ import ( "strconv" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/ClickHouse/clickhouse-go/v2/tests/std" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2/tests/std" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tests/issues/693_test.go b/tests/issues/693_test.go index 640adf915f..f90b09b286 100644 --- a/tests/issues/693_test.go +++ b/tests/issues/693_test.go @@ -18,14 +18,15 @@ package issues import ( - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestIssue693(t *testing.T) { diff --git a/tests/issues/741_test.go b/tests/issues/741_test.go index 875edd1e77..663302f777 100644 --- a/tests/issues/741_test.go +++ b/tests/issues/741_test.go @@ -20,18 +20,19 @@ package issues import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/google/uuid" - "github.com/shopspring/decimal" - "github.com/stretchr/testify/require" "math/rand" "net" "strconv" "strings" "testing" "time" + + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/shopspring/decimal" + "github.com/stretchr/testify/require" ) func TestIssue741(t *testing.T) { diff --git a/tests/issues/751_test.go b/tests/issues/751_test.go index 99a85a14fe..d1973c31c9 100644 --- a/tests/issues/751_test.go +++ b/tests/issues/751_test.go @@ -20,10 +20,11 @@ package issues import ( "context" "database/sql" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "testing" + + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func TestIssue751(t *testing.T) { diff --git a/tests/issues/759_test.go b/tests/issues/759_test.go index 098515a20f..8eae8e8e4a 100644 --- a/tests/issues/759_test.go +++ b/tests/issues/759_test.go @@ -19,12 +19,13 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func Test759(t *testing.T) { diff --git a/tests/issues/762_test.go b/tests/issues/762_test.go index 7a9dce91fe..0fdb4182ff 100644 --- a/tests/issues/762_test.go +++ b/tests/issues/762_test.go @@ -19,12 +19,13 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/require" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/require" ) func Test762(t *testing.T) { diff --git a/tests/issues/777_test.go b/tests/issues/777_test.go index f779d4bb44..956241f7d8 100644 --- a/tests/issues/777_test.go +++ b/tests/issues/777_test.go @@ -19,12 +19,13 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "reflect" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func TestInsertNullableString(t *testing.T) { diff --git a/tests/issues/783_test.go b/tests/issues/783_test.go index 92da304845..3ab638f9fe 100644 --- a/tests/issues/783_test.go +++ b/tests/issues/783_test.go @@ -19,12 +19,13 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/require" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/require" ) func Test783(t *testing.T) { diff --git a/tests/issues/798_test.go b/tests/issues/798_test.go index 9a01e8b0e2..a8d02b1a1a 100644 --- a/tests/issues/798_test.go +++ b/tests/issues/798_test.go @@ -23,8 +23,8 @@ import ( "sync/atomic" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/issues/812_test.go b/tests/issues/812_test.go index 0776ef7a1c..5647e97bca 100644 --- a/tests/issues/812_test.go +++ b/tests/issues/812_test.go @@ -19,10 +19,11 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func Test812(t *testing.T) { diff --git a/tests/issues/813_test.go b/tests/issues/813_test.go index 817cf49f89..4d38ce4ebf 100644 --- a/tests/issues/813_test.go +++ b/tests/issues/813_test.go @@ -18,12 +18,13 @@ package issues import ( - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/require" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/require" ) func Test813(t *testing.T) { diff --git a/tests/issues/816_test.go b/tests/issues/816_test.go index e4f4389f87..d246bd8941 100644 --- a/tests/issues/816_test.go +++ b/tests/issues/816_test.go @@ -18,13 +18,14 @@ package issues import ( - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func Test816(t *testing.T) { diff --git a/tests/issues/828_test.go b/tests/issues/828_test.go index b50f373040..6ad31d9629 100644 --- a/tests/issues/828_test.go +++ b/tests/issues/828_test.go @@ -20,10 +20,11 @@ package issues import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func Test828(t *testing.T) { diff --git a/tests/issues/870_test.go b/tests/issues/870_test.go index 0927b0111f..3b07efdc91 100644 --- a/tests/issues/870_test.go +++ b/tests/issues/870_test.go @@ -20,11 +20,12 @@ package issues import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test870(t *testing.T) { diff --git a/tests/issues/904_test.go b/tests/issues/904_test.go index a6306789b8..7f0f182e1c 100644 --- a/tests/issues/904_test.go +++ b/tests/issues/904_test.go @@ -20,11 +20,12 @@ package issues import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test904(t *testing.T) { diff --git a/tests/issues/955_test.go b/tests/issues/955_test.go index ea30fe7357..ec787d0068 100644 --- a/tests/issues/955_test.go +++ b/tests/issues/955_test.go @@ -19,13 +19,14 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "reflect" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func Test955(t *testing.T) { diff --git a/tests/issues/957_test.go b/tests/issues/957_test.go index 3eb3e223b5..44c8459ba2 100644 --- a/tests/issues/957_test.go +++ b/tests/issues/957_test.go @@ -19,11 +19,12 @@ package issues import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func Test957(t *testing.T) { diff --git a/tests/issues/990_test.go b/tests/issues/990_test.go index 01ca68b7fb..0a81217689 100644 --- a/tests/issues/990_test.go +++ b/tests/issues/990_test.go @@ -3,15 +3,16 @@ package issues import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/ext" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - clickhouse_std_tests "github.com/ClickHouse/clickhouse-go/v2/tests/std" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/ext" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + clickhouse_std_tests "github.com/perfectscale/clickhouse-go/v2/tests/std" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func Test990(t *testing.T) { diff --git a/tests/issues/main_test.go b/tests/issues/main_test.go index 5f523fe1da..00dcccf3ed 100644 --- a/tests/issues/main_test.go +++ b/tests/issues/main_test.go @@ -20,12 +20,13 @@ package issues import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" "math/rand" "os" "strconv" "testing" "time" + + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) const testSet string = "issues" diff --git a/tests/json_test.go b/tests/json_test.go index e388cd14fc..02dd24bbdc 100644 --- a/tests/json_test.go +++ b/tests/json_test.go @@ -26,9 +26,9 @@ import ( "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" "github.com/shopspring/decimal" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/lowcardinality_test.go b/tests/lowcardinality_test.go index efca9a2975..2a6bbb0c8b 100644 --- a/tests/lowcardinality_test.go +++ b/tests/lowcardinality_test.go @@ -20,12 +20,13 @@ package tests import ( "context" "fmt" - "github.com/stretchr/testify/require" "math/rand" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/main_test.go b/tests/main_test.go index 366cc107ce..7d429bacef 100644 --- a/tests/main_test.go +++ b/tests/main_test.go @@ -21,13 +21,14 @@ import ( "context" "crypto/tls" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" "math/rand" "os" "strconv" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" ) const testSet string = "native" diff --git a/tests/map_test.go b/tests/map_test.go index 7c1febb24f..0a1fdcce15 100644 --- a/tests/map_test.go +++ b/tests/map_test.go @@ -26,7 +26,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/nested_test.go b/tests/nested_test.go index 9b8688291d..871b2c1411 100644 --- a/tests/nested_test.go +++ b/tests/nested_test.go @@ -20,10 +20,11 @@ package tests import ( "context" "fmt" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/nothing_test.go b/tests/nothing_test.go index 51f1ba9342..4a1409603b 100644 --- a/tests/nothing_test.go +++ b/tests/nothing_test.go @@ -19,10 +19,11 @@ package tests import ( "context" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/nullable_array_test.go b/tests/nullable_array_test.go index 637e75dce5..7516067703 100644 --- a/tests/nullable_array_test.go +++ b/tests/nullable_array_test.go @@ -20,13 +20,14 @@ package tests import ( "context" "fmt" - "github.com/stretchr/testify/require" "net" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" "github.com/shopspring/decimal" "github.com/stretchr/testify/assert" ) diff --git a/tests/opentelemetry_test.go b/tests/opentelemetry_test.go index 3b31e126eb..fc1edf5bfe 100644 --- a/tests/opentelemetry_test.go +++ b/tests/opentelemetry_test.go @@ -19,10 +19,11 @@ package tests import ( "context" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" "go.opentelemetry.io/otel/trace" ) diff --git a/tests/query_parameters_test.go b/tests/query_parameters_test.go index 542708375a..d45a8df5ac 100644 --- a/tests/query_parameters_test.go +++ b/tests/query_parameters_test.go @@ -20,10 +20,11 @@ package tests import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" + "testing" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func TestQueryParameters(t *testing.T) { diff --git a/tests/read_only_user_test.go b/tests/read_only_user_test.go index fb5dd61af3..1dbea9bf44 100644 --- a/tests/read_only_user_test.go +++ b/tests/read_only_user_test.go @@ -19,10 +19,11 @@ package tests import ( "context" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" + "testing" + + "github.com/perfectscale/clickhouse-go/v2/lib/driver" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func TestReadOnlyUser(t *testing.T) { diff --git a/tests/scan_struct_test.go b/tests/scan_struct_test.go index ad05527801..48eab59b30 100644 --- a/tests/scan_struct_test.go +++ b/tests/scan_struct_test.go @@ -20,11 +20,12 @@ package tests import ( "context" "fmt" - "github.com/stretchr/testify/require" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/simple_aggregate_function_test.go b/tests/simple_aggregate_function_test.go index 42a7c6722b..6418bd487d 100644 --- a/tests/simple_aggregate_function_test.go +++ b/tests/simple_aggregate_function_test.go @@ -20,10 +20,11 @@ package tests import ( "context" "fmt" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/array_test.go b/tests/std/array_test.go index 4d779d38ed..27b93f2140 100644 --- a/tests/std/array_test.go +++ b/tests/std/array_test.go @@ -19,13 +19,14 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/bigint_test.go b/tests/std/bigint_test.go index 8adfc8c64c..8bd6bc6c06 100644 --- a/tests/std/bigint_test.go +++ b/tests/std/bigint_test.go @@ -19,13 +19,14 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "math/big" "strconv" "testing" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/bool_test.go b/tests/std/bool_test.go index 72748e9965..b119fba668 100644 --- a/tests/std/bool_test.go +++ b/tests/std/bool_test.go @@ -19,12 +19,13 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/client_info_test.go b/tests/std/client_info_test.go index eb0fdea2ff..d96e1a5aab 100644 --- a/tests/std/client_info_test.go +++ b/tests/std/client_info_test.go @@ -20,14 +20,15 @@ package std import ( "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "net/url" "runtime" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestClientInfo(t *testing.T) { diff --git a/tests/std/close_test.go b/tests/std/close_test.go index 4be7e9742c..6005e14756 100644 --- a/tests/std/close_test.go +++ b/tests/std/close_test.go @@ -20,13 +20,14 @@ package std import ( "crypto/tls" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/compression_test.go b/tests/std/compression_test.go index d665c48fa6..a77c9c5748 100644 --- a/tests/std/compression_test.go +++ b/tests/std/compression_test.go @@ -20,13 +20,14 @@ package std import ( "crypto/tls" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "net/url" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestCompressionStd(t *testing.T) { diff --git a/tests/std/conn_test.go b/tests/std/conn_test.go index 35740c766e..7f11851aa8 100644 --- a/tests/std/conn_test.go +++ b/tests/std/conn_test.go @@ -29,8 +29,8 @@ import ( "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tests/std/connect_check_test.go b/tests/std/connect_check_test.go index d1bd7c4d4d..38f10b91b5 100644 --- a/tests/std/connect_check_test.go +++ b/tests/std/connect_check_test.go @@ -20,13 +20,14 @@ package std import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/context_timeout_test.go b/tests/std/context_timeout_test.go index 11b8238d50..170ca6a1aa 100644 --- a/tests/std/context_timeout_test.go +++ b/tests/std/context_timeout_test.go @@ -20,15 +20,16 @@ package std import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "net" "net/url" "strconv" "testing" "time" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/custom_dial_test.go b/tests/std/custom_dial_test.go index 22178c7f12..170dcc2119 100644 --- a/tests/std/custom_dial_test.go +++ b/tests/std/custom_dial_test.go @@ -21,14 +21,15 @@ import ( "context" "crypto/tls" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "net" "strconv" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/date32_test.go b/tests/std/date32_test.go index 8caf327dd7..c79dc6eaee 100644 --- a/tests/std/date32_test.go +++ b/tests/std/date32_test.go @@ -21,13 +21,14 @@ import ( "context" "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/date_test.go b/tests/std/date_test.go index e5015f6ab0..34227fb629 100644 --- a/tests/std/date_test.go +++ b/tests/std/date_test.go @@ -21,13 +21,14 @@ import ( "context" "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/datetime64_test.go b/tests/std/datetime64_test.go index 60b48c7d48..685412b384 100644 --- a/tests/std/datetime64_test.go +++ b/tests/std/datetime64_test.go @@ -20,13 +20,14 @@ package std import ( "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/datetime_test.go b/tests/std/datetime_test.go index e506d59160..9c35667f57 100644 --- a/tests/std/datetime_test.go +++ b/tests/std/datetime_test.go @@ -20,13 +20,14 @@ package std import ( "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/ddl_test.go b/tests/std/ddl_test.go index d7934c8e18..5bf9618eb6 100644 --- a/tests/std/ddl_test.go +++ b/tests/std/ddl_test.go @@ -20,11 +20,12 @@ package std import ( "context" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" ) func TestQuotedDDL(t *testing.T) { diff --git a/tests/std/decimal_test.go b/tests/std/decimal_test.go index 87e2686b16..21db78e2e6 100644 --- a/tests/std/decimal_test.go +++ b/tests/std/decimal_test.go @@ -19,12 +19,13 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/shopspring/decimal" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/enum_test.go b/tests/std/enum_test.go index 79cdbb55e4..1c610fc568 100644 --- a/tests/std/enum_test.go +++ b/tests/std/enum_test.go @@ -19,12 +19,13 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/external_table_test.go b/tests/std/external_table_test.go index e79004653e..58b76aba4d 100644 --- a/tests/std/external_table_test.go +++ b/tests/std/external_table_test.go @@ -20,14 +20,15 @@ package std import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/ext" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/ext" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/fixed_string_test.go b/tests/std/fixed_string_test.go index 49200cb185..af1acc20de 100644 --- a/tests/std/fixed_string_test.go +++ b/tests/std/fixed_string_test.go @@ -20,12 +20,13 @@ package std import ( "crypto/rand" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/geo_multipolygon_test.go b/tests/std/geo_multipolygon_test.go index 3a7b4ee70d..3de212fc18 100644 --- a/tests/std/geo_multipolygon_test.go +++ b/tests/std/geo_multipolygon_test.go @@ -20,13 +20,14 @@ package std import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/paulmach/orb" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/geo_point_test.go b/tests/std/geo_point_test.go index 3a04abdf8d..7b511f1a6d 100644 --- a/tests/std/geo_point_test.go +++ b/tests/std/geo_point_test.go @@ -20,13 +20,14 @@ package std import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/paulmach/orb" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/geo_polygon_test.go b/tests/std/geo_polygon_test.go index 95c01a504d..4b5081247d 100644 --- a/tests/std/geo_polygon_test.go +++ b/tests/std/geo_polygon_test.go @@ -20,13 +20,14 @@ package std import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/paulmach/orb" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/geo_ring_test.go b/tests/std/geo_ring_test.go index 4c4737035b..64b393cb1e 100644 --- a/tests/std/geo_ring_test.go +++ b/tests/std/geo_ring_test.go @@ -20,13 +20,14 @@ package std import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/paulmach/orb" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/ipv4_test.go b/tests/std/ipv4_test.go index ac2073cfcd..929364bd54 100644 --- a/tests/std/ipv4_test.go +++ b/tests/std/ipv4_test.go @@ -19,13 +19,14 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "net" "strconv" "testing" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/json_test.go b/tests/std/json_test.go index 2bb41f0a7d..999b55245e 100644 --- a/tests/std/json_test.go +++ b/tests/std/json_test.go @@ -20,13 +20,14 @@ package std import ( "crypto/tls" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "strconv" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) type Releases struct { diff --git a/tests/std/lowcardinality_test.go b/tests/std/lowcardinality_test.go index 0a9b1464e8..58aa29738e 100644 --- a/tests/std/lowcardinality_test.go +++ b/tests/std/lowcardinality_test.go @@ -20,14 +20,15 @@ package std import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "math/rand" "strconv" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/main_test.go b/tests/std/main_test.go index c4c9d185f8..40841f9ecc 100644 --- a/tests/std/main_test.go +++ b/tests/std/main_test.go @@ -22,14 +22,15 @@ import ( "crypto/tls" "database/sql" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" "math/rand" "net/url" "os" "strconv" "testing" "time" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) const testSet string = "std" diff --git a/tests/std/map_test.go b/tests/std/map_test.go index 56a2dbda0e..0636e0edb2 100644 --- a/tests/std/map_test.go +++ b/tests/std/map_test.go @@ -23,8 +23,8 @@ import ( "strconv" "testing" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" "github.com/stretchr/testify/require" "github.com/stretchr/testify/assert" diff --git a/tests/std/nested_test.go b/tests/std/nested_test.go index df568bd3c3..8e08c7402a 100644 --- a/tests/std/nested_test.go +++ b/tests/std/nested_test.go @@ -20,12 +20,13 @@ package std import ( "crypto/tls" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestStdNested(t *testing.T) { diff --git a/tests/std/query_parameters_test.go b/tests/std/query_parameters_test.go index f1bb62c640..5f71269193 100644 --- a/tests/std/query_parameters_test.go +++ b/tests/std/query_parameters_test.go @@ -19,12 +19,13 @@ package std import ( "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "strconv" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestQueryParameters(t *testing.T) { diff --git a/tests/std/string_test.go b/tests/std/string_test.go index a634762651..53bccf26ab 100644 --- a/tests/std/string_test.go +++ b/tests/std/string_test.go @@ -20,11 +20,12 @@ package std import ( "database/sql" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "strconv" "testing" + + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestSimpleStdString(t *testing.T) { diff --git a/tests/std/temporary_table_test.go b/tests/std/temporary_table_test.go index 642ae5f136..431a220f0f 100644 --- a/tests/std/temporary_table_test.go +++ b/tests/std/temporary_table_test.go @@ -20,12 +20,13 @@ package std import ( "context" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/totals_test.go b/tests/std/totals_test.go index fce053da8d..469d41e7fd 100644 --- a/tests/std/totals_test.go +++ b/tests/std/totals_test.go @@ -18,12 +18,13 @@ package std import ( - "github.com/ClickHouse/clickhouse-go/v2" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" + "github.com/perfectscale/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) diff --git a/tests/std/tuples_test.go b/tests/std/tuples_test.go index 2affa91259..a0473f9d94 100644 --- a/tests/std/tuples_test.go +++ b/tests/std/tuples_test.go @@ -36,13 +36,14 @@ package std import ( "crypto/tls" "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" "time" - "github.com/ClickHouse/clickhouse-go/v2" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/std/utils.go b/tests/std/utils.go index addbbf5255..f909537be3 100644 --- a/tests/std/utils.go +++ b/tests/std/utils.go @@ -22,13 +22,14 @@ import ( "database/sql" "encoding/json" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" "net/url" "strconv" "strings" "time" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" ) func GetStdTestEnvironment() (clickhouse_tests.ClickHouseTestEnvironment, error) { diff --git a/tests/std/uuid_test.go b/tests/std/uuid_test.go index c2748afd69..52641751b8 100644 --- a/tests/std/uuid_test.go +++ b/tests/std/uuid_test.go @@ -19,11 +19,12 @@ package std import ( "fmt" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" - "github.com/stretchr/testify/require" "strconv" "testing" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "github.com/stretchr/testify/require" + "github.com/google/uuid" "github.com/stretchr/testify/assert" ) diff --git a/tests/stress/stress.go b/tests/stress/stress.go index e11d6eb75c..e8adb50414 100644 --- a/tests/stress/stress.go +++ b/tests/stress/stress.go @@ -19,20 +19,21 @@ package main import ( "context" - clickhouse_tests "github.com/ClickHouse/clickhouse-go/v2/tests" "log" "os" "os/signal" "syscall" "time" + clickhouse_tests "github.com/perfectscale/clickhouse-go/v2/tests" + "net/http" _ "net/http/pprof" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" "github.com/google/uuid" _ "github.com/mkevac/debugcharts" + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" ) type App struct { diff --git a/tests/string_test.go b/tests/string_test.go index 366456f638..69f7103c97 100644 --- a/tests/string_test.go +++ b/tests/string_test.go @@ -22,13 +22,14 @@ import ( "database/sql" "database/sql/driver" "fmt" - "github.com/stretchr/testify/require" "testing" "time" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2" ) type testStr struct { diff --git a/tests/struct_map_test.go b/tests/struct_map_test.go index 970b2828e5..63e1a58852 100644 --- a/tests/struct_map_test.go +++ b/tests/struct_map_test.go @@ -20,10 +20,11 @@ package tests import ( "context" "fmt" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/totals_test.go b/tests/totals_test.go index e39d216cf8..780443960a 100644 --- a/tests/totals_test.go +++ b/tests/totals_test.go @@ -19,10 +19,11 @@ package tests import ( "context" - "github.com/stretchr/testify/require" "testing" - "github.com/ClickHouse/clickhouse-go/v2" + "github.com/stretchr/testify/require" + + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" ) diff --git a/tests/uint8_test.go b/tests/uint8_test.go index c7b965ebda..be9ee0eca2 100644 --- a/tests/uint8_test.go +++ b/tests/uint8_test.go @@ -19,9 +19,10 @@ package tests import ( "context" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/stretchr/testify/require" "testing" + + "github.com/perfectscale/clickhouse-go/v2" + "github.com/stretchr/testify/require" ) func TestBoolUInt8(t *testing.T) { diff --git a/tests/utils.go b/tests/utils.go index e07a46d488..7d39634432 100644 --- a/tests/utils.go +++ b/tests/utils.go @@ -23,16 +23,6 @@ import ( "encoding/json" "errors" "fmt" - "github.com/ClickHouse/clickhouse-go/v2" - "github.com/ClickHouse/clickhouse-go/v2/lib/driver" - "github.com/ClickHouse/clickhouse-go/v2/lib/proto" - "github.com/docker/docker/api/types/container" - "github.com/docker/go-connections/nat" - "github.com/docker/go-units" - "github.com/google/uuid" - "github.com/stretchr/testify/require" - "github.com/testcontainers/testcontainers-go" - "github.com/testcontainers/testcontainers-go/wait" "math/rand" "net" "os" @@ -43,6 +33,17 @@ import ( "strings" "testing" "time" + + "github.com/docker/docker/api/types/container" + "github.com/docker/go-connections/nat" + "github.com/docker/go-units" + "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" + "github.com/perfectscale/clickhouse-go/v2/lib/driver" + "github.com/perfectscale/clickhouse-go/v2/lib/proto" + "github.com/stretchr/testify/require" + "github.com/testcontainers/testcontainers-go" + "github.com/testcontainers/testcontainers-go/wait" ) var testUUID = uuid.NewString()[0:12] diff --git a/tests/uuid_test.go b/tests/uuid_test.go index 9bf275ec26..ff493e2ae3 100644 --- a/tests/uuid_test.go +++ b/tests/uuid_test.go @@ -23,11 +23,11 @@ import ( "fmt" "testing" - "github.com/ClickHouse/clickhouse-go/v2/lib/column" + "github.com/perfectscale/clickhouse-go/v2/lib/column" "github.com/stretchr/testify/require" - "github.com/ClickHouse/clickhouse-go/v2" "github.com/google/uuid" + "github.com/perfectscale/clickhouse-go/v2" "github.com/stretchr/testify/assert" )