Skip to content

Commit 60faf06

Browse files
committed
add type aliases
1 parent 494f760 commit 60faf06

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

clickhouse.go

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ import (
2020
"github.com/kshvakov/clickhouse/lib/types"
2121
)
2222

23+
type (
24+
Date = types.Date
25+
DateTime = types.DateTime
26+
UUID = types.UUID
27+
)
28+
2329
var (
2430
ErrInsertInNotBatchMode = errors.New("insert statement supported only in the batch mode (use begin/commit)")
2531
ErrLimitDataRequestInTx = errors.New("data request has already been prepared in transaction")

clickhouse_exception.go

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func (e *Exception) Error() string {
1818
}
1919

2020
func (ch *clickhouse) exception() error {
21+
defer ch.conn.Close()
2122
var (
2223
e Exception
2324
err error

0 commit comments

Comments
 (0)