wecisecode há 5 dias atrás
pai
commit
e32cd64fc2
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      odbctest/odbcmql/mql_run.go

+ 7 - 0
odbctest/odbcmql/mql_run.go

@@ -82,6 +82,13 @@ func Run(t *testing.T) {
 		}
 		os.Exit(0)
 	}
+	if mcfg.CommandArgs.GetString("odbver?") == "odbver?" {
+		if ODBC != nil {
+			fmt.Println(ODBC.Versline())
+			os.Exit(0)
+		}
+		os.Exit(0)
+	}
 	spath := strings.Split(config.GetString("test.mql.path"), " ")
 	if len(os.Args) > 1 {
 		if len(os.Args) > 2 && os.Args[1] == "-" {