Project

General

Profile

« Previous | Next » 

Revision 9105

lib/sh/db.sh: mysql_export_outfile(): ensure newline between SELECT columns list and INTO OUTFILE

View differences:

db.sh
84 84
}"
85 85
	
86 86
	local head="${query%%FROM*}" # includes trailing newline
87
	head="${head%
88
}"
87 89
	local tail="${query#$head}"
88 90
	mysql_ANSI "$@" <<EOF
89
${head}INTO OUTFILE '$file'
91
$head
92
INTO OUTFILE '$file'
90 93
$mysql_load_data_format$tail
91 94
EOF
92 95
}

Also available in: Unified diff