Revision 9105
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/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
lib/sh/db.sh: mysql_export_outfile(): ensure newline between SELECT columns list and INTO OUTFILE