mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-07 11:22:02 -05:00
add miss dependencies for win and comments
This commit is contained in:
@@ -232,9 +232,9 @@ func (iter *binaryHexIterator) Next(ctx *sql.Context) (sql.Row, error) {
|
||||
switch iter.schema[i].Type.Type() {
|
||||
case sqltypes.Binary, sqltypes.VarBinary:
|
||||
switch v := val.(type) {
|
||||
case []byte:
|
||||
case []byte: // hex fmt is explicitly upper case
|
||||
rowData[i] = sqlutil.BinaryAsHexDisplayValue(fmt.Sprintf("0x%X", v))
|
||||
case string: // handles results from sql-server; mysql wire protocol returns strings
|
||||
case string: // handles results from sql-server; MySQL wire protocol returns strings
|
||||
rowData[i] = sqlutil.BinaryAsHexDisplayValue(fmt.Sprintf("0x%X", []byte(v)))
|
||||
default:
|
||||
return nil, fmt.Errorf("unexpected type %T for binary column %s", val, iter.schema[i].Name)
|
||||
|
||||
@@ -97,6 +97,5 @@ run_query "SELECT *, LENGTH(b) FROM test_bin;" {
|
||||
}
|
||||
}
|
||||
|
||||
expect_with_defaults {>} { send "exit\r" }
|
||||
expect eof
|
||||
run_query "exit;" { expect eof }
|
||||
exit 0
|
||||
|
||||
@@ -1072,7 +1072,7 @@ expect eof
|
||||
}
|
||||
|
||||
@test "sql-shell: -binary-as-hex, -skip-binary-as-hex flag is respected in server and local contexts" {
|
||||
# skiponwindows "Missing Dependencies"
|
||||
skiponwindows "Missing Dependencies"
|
||||
which expect > /dev/null || skip "expect is not installed"
|
||||
|
||||
# Default behavior for interactive runs is to output binary as hex
|
||||
|
||||
Reference in New Issue
Block a user