Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5, 10.6, 10.11, 11.4, 11.8, 12.0
Description
When a directory name is accidentally used with the source command, the client does not print the actual error message, the same thing happens with a non-existent script file.
10.5.29-opt>source data
|
ERROR: Can't initialize batch_readline
|
10.5.29-opt>
|
|
MariaDB [(none)]> source foo
|
ERROR: Failed to open file 'foo', error: 2
|
MariaDB [(none)]>
|
Error message looks good when we provide the directory name as the input file to the mariadb client.
$ ./bin/mariadb -uroot -S/test/MD110325-mariadb-10.5.29-linux-x86_64-opt/socket.sock < data
|
ERROR: Can't initialize batch_readline - may be the input source is a directory or a block device.
|
$
|