Project

General

Profile

« Previous | Next » 

Revision 9150

lib/sh/db.sh: mysql(): output_data mode: use --batch to ensure the output is formatted appropriately. note that --batch is the default when stdin is from a pipe, but better to specify it to be sure.

View differences:

db.sh
62 62
	set_database
63 63
	
64 64
	set -- ${database:+--database="$database" }"$@"
65
	if test "$output_data"; then echo_stdin|mysql_cmd "$@"
65
	if test "$output_data"; then echo_stdin|mysql_cmd --batch "$@"
66 66
	else limit_stdout_cmd mysql_cmd --verbose "$@"
67 67
	fi
68 68
}

Also available in: Unified diff