Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
taniabogatsch committed Sep 24, 2024
1 parent 89eca5a commit ddeeff7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
16 changes: 5 additions & 11 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,17 @@ var (

errUnsupportedMapKeyType = errors.New("MAP key type not supported")

errAppenderCreation = errors.New("could not create appender")
errAppenderInvalidCon = fmt.Errorf("%w: not a DuckDB driver connection", errAppenderCreation)
errAppenderClosedCon = fmt.Errorf("%w: appender creation on a closed connection", errAppenderCreation)

errAppenderClose = errors.New("could not close appender")
errAppenderDoubleClose = fmt.Errorf("%w: already closed", errAppenderClose)

errAppenderCreation = errors.New("could not create appender")
errAppenderClose = errors.New("could not close appender")
errAppenderDoubleClose = fmt.Errorf("%w: already closed", errAppenderClose)
errAppenderAppendRow = errors.New("could not append row")
errAppenderAppendAfterClose = fmt.Errorf("%w: appender already closed", errAppenderAppendRow)

errAppenderFlush = errors.New("could not flush appender")
errAppenderFlush = errors.New("could not flush appender")

errEmptyName = errors.New("empty name")
errInvalidDecimalWidth = fmt.Errorf("the DECIMAL with must be between 1 and %d", MAX_DECIMAL_WIDTH)
errInvalidDecimalScale = errors.New("the DECIMAL scale must be less than or equal to the width")
errSetSQLNULLValue = errors.New("cannot write to a NULL column")

errScalarUDFCreate = errors.New("could not create scalar UDF")
errScalarUDFNoName = fmt.Errorf("%w: missing name", errScalarUDFCreate)
Expand All @@ -110,8 +106,6 @@ var (
errScalarUDFCreateSet = fmt.Errorf("could not create scalar UDF set")
errScalarUDFAddToSet = fmt.Errorf("%w: could not add the function to the set", errScalarUDFCreateSet)

errSetSQLNULLValue = errors.New("cannot write to a NULL column")

errProfilingInfoEmpty = errors.New("no profiling information available for this connection")

// Errors not covered in tests.
Expand Down
1 change: 0 additions & 1 deletion profiling.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func (info *ProfilingInfo) getMetrics(duckdbInfo C.duckdb_profiling_info) {

cKey := C.duckdb_get_varchar(key)
cValue := C.duckdb_get_varchar(value)

keyStr := C.GoString(cKey)
valueStr := C.GoString(cValue)

Expand Down

0 comments on commit ddeeff7

Please sign in to comment.