Browse Source

No more silent errors for unimplemented features

Julien Schmidt 13 years ago
parent
commit
b51e50c731
1 changed files with 4 additions and 2 deletions
  1. 4 2
      connection.go

+ 4 - 2
connection.go

@@ -12,6 +12,7 @@ package mysql
 import (
 	"bufio"
 	"database/sql/driver"
+	"errors"
 	"net"
 	"strings"
 )
@@ -64,11 +65,12 @@ func (mc *mysqlConn) handleParams() (err error) {
 
 		// TLS-Encryption
 		case "tls":
-			dbgLog.Print("TLS-Encryption not implemented yet")
+			err = errors.New("TLS-Encryption not implemented yet")
+			return
 
 		// Compression
 		case "compress":
-			dbgLog.Print("Compression not implemented yet")
+			err = errors.New("Compression not implemented yet")
 
 		// System Vars
 		default: