Project

General

Profile

« Previous | Next » 

Revision 9707

lib/sh/db.sh: moved mysql_root() after the mysql->mysql_ANSI alias (and load new aliases) so that it will also use ANSI mode and support "" identifiers

View differences:

lib/sh/db.sh
116 116
	fi
117 117
}
118 118

  
119
mysql_root() { echo_func; use_root; mysql "$@"; }
120

  
121 119
mysql_ANSI()
122 120
{
123 121
	echo_func
......
128 126
# this mode, so it also works with SHOW CREATE TABLE output and dumpfiles.
129 127
alias mysql='mysql_ANSI'
130 128

  
129
fi # load new aliases
130
if self_being_included; then
131

  
132
mysql_root() { echo_func; use_root; mysql "$@"; }
133

  
131 134
mysql_truncate() { echo_func; mk_truncate|mysql_ANSI; }
132 135

  
133 136
mysql_import() # usage: table=... [cols=...] [append=1] mysql_import <file

Also available in: Unified diff