Skip to content

Commit b51e50c

Browse files
committed
No more silent errors for unimplemented features
1 parent 96580ec commit b51e50c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

connection.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ package mysql
1212
import (
1313
"bufio"
1414
"database/sql/driver"
15+
"errors"
1516
"net"
1617
"strings"
1718
)
@@ -64,11 +65,12 @@ func (mc *mysqlConn) handleParams() (err error) {
6465

6566
// TLS-Encryption
6667
case "tls":
67-
dbgLog.Print("TLS-Encryption not implemented yet")
68+
err = errors.New("TLS-Encryption not implemented yet")
69+
return
6870

6971
// Compression
7072
case "compress":
71-
dbgLog.Print("Compression not implemented yet")
73+
err = errors.New("Compression not implemented yet")
7274

7375
// System Vars
7476
default:

0 commit comments

Comments
 (0)