@@ -112,9 +112,6 @@ func (c *conn) ExecContext(ctx context.Context, query string, args []driver.Name
112112 defer log .Duration (msg , start )
113113
114114 corrId := driverctx .CorrelationIdFromContext (ctx )
115- if len (args ) > 0 && c .session .ServerProtocolVersion < cli_service .TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V8 {
116- return nil , dbsqlerrint .NewDriverError (ctx , dbsqlerr .ErrParametersNotSupported , nil )
117- }
118115
119116 exStmtResp , opStatusResp , err := c .runQuery (ctx , query , args )
120117 log , ctx = client .LoggerAndContext (ctx , exStmtResp )
@@ -159,10 +156,6 @@ func (c *conn) QueryContext(ctx context.Context, query string, args []driver.Nam
159156 log , _ := client .LoggerAndContext (ctx , nil )
160157 msg , start := log .Track ("QueryContext" )
161158
162- if len (args ) > 0 && c .session .ServerProtocolVersion < cli_service .TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V8 {
163- return nil , dbsqlerrint .NewDriverError (ctx , dbsqlerr .ErrParametersNotSupported , nil )
164- }
165-
166159 // first we try to get the results synchronously.
167160 // at any point in time that the context is done we must cancel and return
168161 exStmtResp , opStatusResp , err := c .runQuery (ctx , query , args )
0 commit comments