Merge lp:~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109 into lp:ubuntu/precise/mysql-5.5
- Precise (12.04)
- precise-201203300109
- Merge into precise
Status: | Rejected |
---|---|
Rejected by: | James Westby |
Proposed branch: | lp:~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109 |
Merge into: | lp:ubuntu/precise/mysql-5.5 |
Diff against target: |
10401 lines (+10317/-0) (has conflicts) 10 files modified
.pc/38_scripts__mysqld_safe.sh__signals.patch/scripts/mysqld_safe.sh (+825/-0) .pc/62_disable_tests.patch/mysql-test/t/disabled.def (+17/-0) .pc/70_mysql_va_list.patch/sql-common/client_plugin.c (+472/-0) .pc/71_disable_rpl_tests.patch/mysql-test/suite/rpl/t/disabled.def (+17/-0) .pc/72_fix_standalone_tests.patch/mysql-test/lib/mtr_cases.pm (+1265/-0) .pc/applied-patches (+6/-0) .pc/fix-mysqldump-test.patch/mysql-test/r/mysqldump.result (+5207/-0) .pc/fix-mysqldump-test.patch/mysql-test/t/mysqldump.test (+2369/-0) debian/patches/fix-mysqldump-test.patch (+53/-0) debian/patches/link-clientprograms-dynamically.patch (+86/-0) Conflict adding file .pc/38_scripts__mysqld_safe.sh__signals.patch. Moved existing file to .pc/38_scripts__mysqld_safe.sh__signals.patch.moved. Conflict adding file .pc/62_disable_tests.patch. Moved existing file to .pc/62_disable_tests.patch.moved. Conflict adding file .pc/70_mysql_va_list.patch. Moved existing file to .pc/70_mysql_va_list.patch.moved. Conflict adding file .pc/71_disable_rpl_tests.patch. Moved existing file to .pc/71_disable_rpl_tests.patch.moved. Conflict adding file .pc/72_fix_standalone_tests.patch. Moved existing file to .pc/72_fix_standalone_tests.patch.moved. Conflict adding file .pc/applied-patches. Moved existing file to .pc/applied-patches.moved. Conflict adding file .pc/fix-mysqldump-test.patch. Moved existing file to .pc/fix-mysqldump-test.patch.moved. Conflict adding file debian/patches/fix-mysqldump-test.patch. Moved existing file to debian/patches/fix-mysqldump-test.patch.moved. Conflict adding file debian/patches/link-clientprograms-dynamically.patch. Moved existing file to debian/patches/link-clientprograms-dynamically.patch.moved. |
To merge this branch: | bzr merge lp:~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Development Team | Pending | ||
Review via email: mp+100062@code.launchpad.net |
Commit message
Description of the change
The package importer has detected a possible inconsistency between the package history in the archive and the history in bzr. As the archive is authoritative the importer has made lp:ubuntu/precise/mysql-5.5 reflect what is in the archive and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109. This merge proposal was created so that an Ubuntu developer can review the situations and perform a merge/upload if necessary. There are three typical cases where this can happen.
1. Where someone pushes a change to bzr and someone else uploads the package without that change. This is the reason that this check is done by the importer. If this appears to be the case then a merge/upload should be done if the changes that were in bzr are still desirable.
2. The importer incorrectly detected the above situation when someone made a change in bzr and then uploaded it.
3. The importer incorrectly detected the above situation when someone just uploaded a package and didn't touch bzr.
If this case doesn't appear to be the first situation then set the status of the merge proposal to "Rejected" and help avoid the problem in future by filing a bug at https:/
(this is an automatically generated message)
Unmerged revisions
- 25. By Clint Byrum
-
releasing version 5.5.22-0ubuntu1
- 24. By Clint Byrum
-
New upstream release (LP: #965523)
- 23. By Clint Byrum
-
Reverting dynamic linking patch since upstream is unsure about it
- 22. By Clint Byrum
-
d/control: Re-add empty meta-package for mysql-testsuite so users
will get the 5.5 version on upgrade and when installing
mysql-testsuite. (LP: #959683) - 21. By Clint Byrum
-
d/p/fix-
mysqldump- test.patch: Fixes unreliable test introduced in
new upstream version. http://bugs.mysql. com/bug. php?id= 64401 - 20. By Clint Byrum
-
d/control: Build-Dep on dh-apparmor (LP: #948481)
- 19. By Clint Byrum
-
d/patches/
link-clientprog rams-statically .patch: Does as its name
implies. (LP: #898340) - 18. By Clint Byrum
-
Refreshed patches
- 17. By Clint Byrum
-
New upstream bugfix release.
- 16. By Clint Byrum
-
d/mysql-
server- 5.5.mysql. upstart: Add respawn limit and code
to exit ping loop if mysqld needs to be respawned. (LP: #711635)
Preview Diff
1 | === added directory '.pc/38_scripts__mysqld_safe.sh__signals.patch' | |||
2 | === renamed directory '.pc/38_scripts__mysqld_safe.sh__signals.patch' => '.pc/38_scripts__mysqld_safe.sh__signals.patch.moved' | |||
3 | === added file '.pc/38_scripts__mysqld_safe.sh__signals.patch/.timestamp' | |||
4 | === added directory '.pc/38_scripts__mysqld_safe.sh__signals.patch/scripts' | |||
5 | === added file '.pc/38_scripts__mysqld_safe.sh__signals.patch/scripts/mysqld_safe.sh' | |||
6 | --- .pc/38_scripts__mysqld_safe.sh__signals.patch/scripts/mysqld_safe.sh 1970-01-01 00:00:00 +0000 | |||
7 | +++ .pc/38_scripts__mysqld_safe.sh__signals.patch/scripts/mysqld_safe.sh 2012-03-30 01:16:23 +0000 | |||
8 | @@ -0,0 +1,825 @@ | |||
9 | 1 | #!/bin/sh | ||
10 | 2 | # Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB | ||
11 | 3 | # This file is public domain and comes with NO WARRANTY of any kind | ||
12 | 4 | # | ||
13 | 5 | # Script to start the MySQL daemon and restart it if it dies unexpectedly | ||
14 | 6 | # | ||
15 | 7 | # This should be executed in the MySQL base directory if you are using a | ||
16 | 8 | # binary installation that is not installed in its compile-time default | ||
17 | 9 | # location | ||
18 | 10 | # | ||
19 | 11 | # mysql.server works by first doing a cd to the base directory and from there | ||
20 | 12 | # executing mysqld_safe | ||
21 | 13 | |||
22 | 14 | # Initialize script globals | ||
23 | 15 | KILL_MYSQLD=1; | ||
24 | 16 | MYSQLD= | ||
25 | 17 | niceness=0 | ||
26 | 18 | mysqld_ld_preload= | ||
27 | 19 | mysqld_ld_library_path= | ||
28 | 20 | |||
29 | 21 | # Initial logging status: error log is not open, and not using syslog | ||
30 | 22 | logging=init | ||
31 | 23 | want_syslog=0 | ||
32 | 24 | syslog_tag= | ||
33 | 25 | user='@MYSQLD_USER@' | ||
34 | 26 | pid_file= | ||
35 | 27 | err_log= | ||
36 | 28 | |||
37 | 29 | syslog_tag_mysqld=mysqld | ||
38 | 30 | syslog_tag_mysqld_safe=mysqld_safe | ||
39 | 31 | |||
40 | 32 | trap '' 1 2 3 15 # we shouldn't let anyone kill us | ||
41 | 33 | |||
42 | 34 | umask 007 | ||
43 | 35 | |||
44 | 36 | defaults= | ||
45 | 37 | case "$1" in | ||
46 | 38 | --no-defaults|--defaults-file=*|--defaults-extra-file=*) | ||
47 | 39 | defaults="$1"; shift | ||
48 | 40 | ;; | ||
49 | 41 | esac | ||
50 | 42 | |||
51 | 43 | usage () { | ||
52 | 44 | cat <<EOF | ||
53 | 45 | Usage: $0 [OPTIONS] | ||
54 | 46 | --no-defaults Don't read the system defaults file | ||
55 | 47 | --defaults-file=FILE Use the specified defaults file | ||
56 | 48 | --defaults-extra-file=FILE Also use defaults from the specified file | ||
57 | 49 | --ledir=DIRECTORY Look for mysqld in the specified directory | ||
58 | 50 | --open-files-limit=LIMIT Limit the number of open files | ||
59 | 51 | --core-file-size=LIMIT Limit core files to the specified size | ||
60 | 52 | --timezone=TZ Set the system timezone | ||
61 | 53 | --malloc-lib=LIB Preload shared library LIB if available | ||
62 | 54 | --mysqld=FILE Use the specified file as mysqld | ||
63 | 55 | --mysqld-version=VERSION Use "mysqld-VERSION" as mysqld | ||
64 | 56 | --nice=NICE Set the scheduling priority of mysqld | ||
65 | 57 | --plugin-dir=DIR Plugins are under DIR or DIR/VERSION, if | ||
66 | 58 | VERSION is given | ||
67 | 59 | --skip-kill-mysqld Don't try to kill stray mysqld processes | ||
68 | 60 | --syslog Log messages to syslog with 'logger' | ||
69 | 61 | --skip-syslog Log messages to error log (default) | ||
70 | 62 | --syslog-tag=TAG Pass -t "mysqld-TAG" to 'logger' | ||
71 | 63 | |||
72 | 64 | All other options are passed to the mysqld program. | ||
73 | 65 | |||
74 | 66 | EOF | ||
75 | 67 | exit 1 | ||
76 | 68 | } | ||
77 | 69 | |||
78 | 70 | my_which () | ||
79 | 71 | { | ||
80 | 72 | save_ifs="${IFS-UNSET}" | ||
81 | 73 | IFS=: | ||
82 | 74 | ret=0 | ||
83 | 75 | for file | ||
84 | 76 | do | ||
85 | 77 | for dir in $PATH | ||
86 | 78 | do | ||
87 | 79 | if [ -f "$dir/$file" ] | ||
88 | 80 | then | ||
89 | 81 | echo "$dir/$file" | ||
90 | 82 | continue 2 | ||
91 | 83 | fi | ||
92 | 84 | done | ||
93 | 85 | |||
94 | 86 | ret=1 #signal an error | ||
95 | 87 | break | ||
96 | 88 | done | ||
97 | 89 | |||
98 | 90 | if [ "$save_ifs" = UNSET ] | ||
99 | 91 | then | ||
100 | 92 | unset IFS | ||
101 | 93 | else | ||
102 | 94 | IFS="$save_ifs" | ||
103 | 95 | fi | ||
104 | 96 | return $ret # Success | ||
105 | 97 | } | ||
106 | 98 | |||
107 | 99 | log_generic () { | ||
108 | 100 | priority="$1" | ||
109 | 101 | shift | ||
110 | 102 | |||
111 | 103 | msg="`date +'%y%m%d %H:%M:%S'` mysqld_safe $*" | ||
112 | 104 | echo "$msg" | ||
113 | 105 | case $logging in | ||
114 | 106 | init) ;; # Just echo the message, don't save it anywhere | ||
115 | 107 | file) echo "$msg" >> "$err_log" ;; | ||
116 | 108 | syslog) logger -t "$syslog_tag_mysqld_safe" -p "$priority" "$*" ;; | ||
117 | 109 | *) | ||
118 | 110 | echo "Internal program error (non-fatal):" \ | ||
119 | 111 | " unknown logging method '$logging'" >&2 | ||
120 | 112 | ;; | ||
121 | 113 | esac | ||
122 | 114 | } | ||
123 | 115 | |||
124 | 116 | log_error () { | ||
125 | 117 | log_generic daemon.error "$@" >&2 | ||
126 | 118 | } | ||
127 | 119 | |||
128 | 120 | log_notice () { | ||
129 | 121 | log_generic daemon.notice "$@" | ||
130 | 122 | } | ||
131 | 123 | |||
132 | 124 | eval_log_error () { | ||
133 | 125 | cmd="$1" | ||
134 | 126 | case $logging in | ||
135 | 127 | file) cmd="$cmd >> "`shell_quote_string "$err_log"`" 2>&1" ;; | ||
136 | 128 | syslog) | ||
137 | 129 | # mysqld often prefixes its messages with a timestamp, which is | ||
138 | 130 | # redundant when logging to syslog (which adds its own timestamp) | ||
139 | 131 | # However, we don't strip the timestamp with sed here, because | ||
140 | 132 | # sed buffers output (only GNU sed supports a -u (unbuffered) option) | ||
141 | 133 | # which means that messages may not get sent to syslog until the | ||
142 | 134 | # mysqld process quits. | ||
143 | 135 | cmd="$cmd 2>&1 | logger -t '$syslog_tag_mysqld' -p daemon.error" | ||
144 | 136 | ;; | ||
145 | 137 | *) | ||
146 | 138 | echo "Internal program error (non-fatal):" \ | ||
147 | 139 | " unknown logging method '$logging'" >&2 | ||
148 | 140 | ;; | ||
149 | 141 | esac | ||
150 | 142 | |||
151 | 143 | #echo "Running mysqld: [$cmd]" | ||
152 | 144 | eval "$cmd" | ||
153 | 145 | } | ||
154 | 146 | |||
155 | 147 | shell_quote_string() { | ||
156 | 148 | # This sed command makes sure that any special chars are quoted, | ||
157 | 149 | # so the arg gets passed exactly to the server. | ||
158 | 150 | echo "$1" | sed -e 's,\([^a-zA-Z0-9/_.=-]\),\\\1,g' | ||
159 | 151 | } | ||
160 | 152 | |||
161 | 153 | parse_arguments() { | ||
162 | 154 | # We only need to pass arguments through to the server if we don't | ||
163 | 155 | # handle them here. So, we collect unrecognized options (passed on | ||
164 | 156 | # the command line) into the args variable. | ||
165 | 157 | pick_args= | ||
166 | 158 | if test "$1" = PICK-ARGS-FROM-ARGV | ||
167 | 159 | then | ||
168 | 160 | pick_args=1 | ||
169 | 161 | shift | ||
170 | 162 | fi | ||
171 | 163 | |||
172 | 164 | for arg do | ||
173 | 165 | # the parameter after "=", or the whole $arg if no match | ||
174 | 166 | val=`echo "$arg" | sed -e 's;^--[^=]*=;;'` | ||
175 | 167 | # what's before "=", or the whole $arg if no match | ||
176 | 168 | optname=`echo "$arg" | sed -e 's/^\(--[^=]*\)=.*$/\1/'` | ||
177 | 169 | # replace "_" by "-" ; mysqld_safe must accept "_" like mysqld does. | ||
178 | 170 | optname_subst=`echo "$optname" | sed 's/_/-/g'` | ||
179 | 171 | arg=`echo $arg | sed "s/^$optname/$optname_subst/"` | ||
180 | 172 | case "$arg" in | ||
181 | 173 | # these get passed explicitly to mysqld | ||
182 | 174 | --basedir=*) MY_BASEDIR_VERSION="$val" ;; | ||
183 | 175 | --datadir=*) DATADIR="$val" ;; | ||
184 | 176 | --pid-file=*) pid_file="$val" ;; | ||
185 | 177 | --plugin-dir=*) PLUGIN_DIR="$val" ;; | ||
186 | 178 | --user=*) user="$val"; SET_USER=1 ;; | ||
187 | 179 | |||
188 | 180 | # these might have been set in a [mysqld_safe] section of my.cnf | ||
189 | 181 | # they are added to mysqld command line to override settings from my.cnf | ||
190 | 182 | --log-error=*) err_log="$val" ;; | ||
191 | 183 | --port=*) mysql_tcp_port="$val" ;; | ||
192 | 184 | --socket=*) mysql_unix_port="$val" ;; | ||
193 | 185 | |||
194 | 186 | # mysqld_safe-specific options - must be set in my.cnf ([mysqld_safe])! | ||
195 | 187 | --core-file-size=*) core_file_size="$val" ;; | ||
196 | 188 | --ledir=*) ledir="$val" ;; | ||
197 | 189 | --malloc-lib=*) set_malloc_lib "$val" ;; | ||
198 | 190 | --mysqld=*) MYSQLD="$val" ;; | ||
199 | 191 | --mysqld-version=*) | ||
200 | 192 | if test -n "$val" | ||
201 | 193 | then | ||
202 | 194 | MYSQLD="mysqld-$val" | ||
203 | 195 | PLUGIN_VARIANT="/$val" | ||
204 | 196 | else | ||
205 | 197 | MYSQLD="mysqld" | ||
206 | 198 | fi | ||
207 | 199 | ;; | ||
208 | 200 | --nice=*) niceness="$val" ;; | ||
209 | 201 | --open-files-limit=*) open_files="$val" ;; | ||
210 | 202 | --open_files_limit=*) open_files="$val" ;; | ||
211 | 203 | --skip-kill-mysqld*) KILL_MYSQLD=0 ;; | ||
212 | 204 | --syslog) want_syslog=1 ;; | ||
213 | 205 | --skip-syslog) want_syslog=0 ;; | ||
214 | 206 | --syslog-tag=*) syslog_tag="$val" ;; | ||
215 | 207 | --timezone=*) TZ="$val"; export TZ; ;; | ||
216 | 208 | |||
217 | 209 | --help) usage ;; | ||
218 | 210 | |||
219 | 211 | *) | ||
220 | 212 | if test -n "$pick_args" | ||
221 | 213 | then | ||
222 | 214 | append_arg_to_args "$arg" | ||
223 | 215 | fi | ||
224 | 216 | ;; | ||
225 | 217 | esac | ||
226 | 218 | done | ||
227 | 219 | } | ||
228 | 220 | |||
229 | 221 | |||
230 | 222 | # Add a single shared library to the list of libraries which will be added to | ||
231 | 223 | # LD_PRELOAD for mysqld | ||
232 | 224 | # | ||
233 | 225 | # Since LD_PRELOAD is a space-separated value (for historical reasons), if a | ||
234 | 226 | # shared lib's path contains spaces, that path will be prepended to | ||
235 | 227 | # LD_LIBRARY_PATH and stripped from the lib value. | ||
236 | 228 | add_mysqld_ld_preload() { | ||
237 | 229 | lib_to_add="$1" | ||
238 | 230 | log_notice "Adding '$lib_to_add' to LD_PRELOAD for mysqld" | ||
239 | 231 | |||
240 | 232 | case "$lib_to_add" in | ||
241 | 233 | *' '*) | ||
242 | 234 | # Must strip path from lib, and add it to LD_LIBRARY_PATH | ||
243 | 235 | lib_file=`basename "$lib_to_add"` | ||
244 | 236 | case "$lib_file" in | ||
245 | 237 | *' '*) | ||
246 | 238 | # The lib file itself has a space in its name, and can't | ||
247 | 239 | # be used in LD_PRELOAD | ||
248 | 240 | log_error "library name '$lib_to_add' contains spaces and can not be used with LD_PRELOAD" | ||
249 | 241 | exit 1 | ||
250 | 242 | ;; | ||
251 | 243 | esac | ||
252 | 244 | lib_path=`dirname "$lib_to_add"` | ||
253 | 245 | lib_to_add="$lib_file" | ||
254 | 246 | [ -n "$mysqld_ld_library_path" ] && mysqld_ld_library_path="$mysqld_ld_library_path:" | ||
255 | 247 | mysqld_ld_library_path="$mysqld_ld_library_path$lib_path" | ||
256 | 248 | ;; | ||
257 | 249 | esac | ||
258 | 250 | |||
259 | 251 | # LD_PRELOAD is a space-separated | ||
260 | 252 | [ -n "$mysqld_ld_preload" ] && mysqld_ld_preload="$mysqld_ld_preload " | ||
261 | 253 | mysqld_ld_preload="${mysqld_ld_preload}$lib_to_add" | ||
262 | 254 | } | ||
263 | 255 | |||
264 | 256 | |||
265 | 257 | # Returns LD_PRELOAD (and LD_LIBRARY_PATH, if needed) text, quoted to be | ||
266 | 258 | # suitable for use in the eval that calls mysqld. | ||
267 | 259 | # | ||
268 | 260 | # All values in mysqld_ld_preload are prepended to LD_PRELOAD. | ||
269 | 261 | mysqld_ld_preload_text() { | ||
270 | 262 | text= | ||
271 | 263 | |||
272 | 264 | if [ -n "$mysqld_ld_preload" ]; then | ||
273 | 265 | new_text="$mysqld_ld_preload" | ||
274 | 266 | [ -n "$LD_PRELOAD" ] && new_text="$new_text $LD_PRELOAD" | ||
275 | 267 | text="${text}LD_PRELOAD="`shell_quote_string "$new_text"`' ' | ||
276 | 268 | fi | ||
277 | 269 | |||
278 | 270 | if [ -n "$mysqld_ld_library_path" ]; then | ||
279 | 271 | new_text="$mysqld_ld_library_path" | ||
280 | 272 | [ -n "$LD_LIBRARY_PATH" ] && new_text="$new_text:$LD_LIBRARY_PATH" | ||
281 | 273 | text="${text}LD_LIBRARY_PATH="`shell_quote_string "$new_text"`' ' | ||
282 | 274 | fi | ||
283 | 275 | |||
284 | 276 | echo "$text" | ||
285 | 277 | } | ||
286 | 278 | |||
287 | 279 | |||
288 | 280 | mysql_config= | ||
289 | 281 | get_mysql_config() { | ||
290 | 282 | if [ -z "$mysql_config" ]; then | ||
291 | 283 | mysql_config=`echo "$0" | sed 's,/[^/][^/]*$,/mysql_config,'` | ||
292 | 284 | if [ ! -x "$mysql_config" ]; then | ||
293 | 285 | log_error "Can not run mysql_config $@ from '$mysql_config'" | ||
294 | 286 | exit 1 | ||
295 | 287 | fi | ||
296 | 288 | fi | ||
297 | 289 | |||
298 | 290 | "$mysql_config" "$@" | ||
299 | 291 | } | ||
300 | 292 | |||
301 | 293 | |||
302 | 294 | # set_malloc_lib LIB | ||
303 | 295 | # - If LIB is empty, do nothing and return | ||
304 | 296 | # - If LIB is 'tcmalloc', look for tcmalloc shared library in /usr/lib | ||
305 | 297 | # then pkglibdir. tcmalloc is part of the Google perftools project. | ||
306 | 298 | # - If LIB is an absolute path, assume it is a malloc shared library | ||
307 | 299 | # | ||
308 | 300 | # Put LIB in mysqld_ld_preload, which will be added to LD_PRELOAD when | ||
309 | 301 | # running mysqld. See ld.so for details. | ||
310 | 302 | set_malloc_lib() { | ||
311 | 303 | malloc_lib="$1" | ||
312 | 304 | |||
313 | 305 | if [ "$malloc_lib" = tcmalloc ]; then | ||
314 | 306 | pkglibdir=`get_mysql_config --variable=pkglibdir` | ||
315 | 307 | malloc_lib= | ||
316 | 308 | # This list is kept intentionally simple. Simply set --malloc-lib | ||
317 | 309 | # to a full path if another location is desired. | ||
318 | 310 | for libdir in /usr/lib "$pkglibdir" "$pkglibdir/mysql"; do | ||
319 | 311 | for flavor in _minimal '' _and_profiler _debug; do | ||
320 | 312 | tmp="$libdir/libtcmalloc$flavor.so" | ||
321 | 313 | #log_notice "DEBUG: Checking for malloc lib '$tmp'" | ||
322 | 314 | [ -r "$tmp" ] || continue | ||
323 | 315 | malloc_lib="$tmp" | ||
324 | 316 | break 2 | ||
325 | 317 | done | ||
326 | 318 | done | ||
327 | 319 | |||
328 | 320 | if [ -z "$malloc_lib" ]; then | ||
329 | 321 | log_error "no shared library for --malloc-lib=tcmalloc found in /usr/lib or $pkglibdir" | ||
330 | 322 | exit 1 | ||
331 | 323 | fi | ||
332 | 324 | fi | ||
333 | 325 | |||
334 | 326 | # Allow --malloc-lib='' to override other settings | ||
335 | 327 | [ -z "$malloc_lib" ] && return | ||
336 | 328 | |||
337 | 329 | case "$malloc_lib" in | ||
338 | 330 | /*) | ||
339 | 331 | if [ ! -r "$malloc_lib" ]; then | ||
340 | 332 | log_error "--malloc-lib '$malloc_lib' can not be read and will not be used" | ||
341 | 333 | exit 1 | ||
342 | 334 | fi | ||
343 | 335 | ;; | ||
344 | 336 | *) | ||
345 | 337 | log_error "--malloc-lib must be an absolute path or 'tcmalloc'; " \ | ||
346 | 338 | "ignoring value '$malloc_lib'" | ||
347 | 339 | exit 1 | ||
348 | 340 | ;; | ||
349 | 341 | esac | ||
350 | 342 | |||
351 | 343 | add_mysqld_ld_preload "$malloc_lib" | ||
352 | 344 | } | ||
353 | 345 | |||
354 | 346 | |||
355 | 347 | # | ||
356 | 348 | # First, try to find BASEDIR and ledir (where mysqld is) | ||
357 | 349 | # | ||
358 | 350 | |||
359 | 351 | if echo '@pkgdatadir@' | grep '^@prefix@' > /dev/null | ||
360 | 352 | then | ||
361 | 353 | relpkgdata=`echo '@pkgdatadir@' | sed -e 's,^@prefix@,,' -e 's,^/,,' -e 's,^,./,'` | ||
362 | 354 | else | ||
363 | 355 | # pkgdatadir is not relative to prefix | ||
364 | 356 | relpkgdata='@pkgdatadir@' | ||
365 | 357 | fi | ||
366 | 358 | |||
367 | 359 | MY_PWD=`pwd` | ||
368 | 360 | # Check for the directories we would expect from a binary release install | ||
369 | 361 | if test -n "$MY_BASEDIR_VERSION" -a -d "$MY_BASEDIR_VERSION" | ||
370 | 362 | then | ||
371 | 363 | # BASEDIR is already overridden on command line. Do not re-set. | ||
372 | 364 | |||
373 | 365 | # Use BASEDIR to discover le. | ||
374 | 366 | if test -x "$MY_BASEDIR_VERSION/libexec/mysqld" | ||
375 | 367 | then | ||
376 | 368 | ledir="$MY_BASEDIR_VERSION/libexec" | ||
377 | 369 | elif test -x "$MY_BASEDIR_VERSION/sbin/mysqld" | ||
378 | 370 | then | ||
379 | 371 | ledir="$MY_BASEDIR_VERSION/sbin" | ||
380 | 372 | else | ||
381 | 373 | ledir="$MY_BASEDIR_VERSION/bin" | ||
382 | 374 | fi | ||
383 | 375 | elif test -f "$relpkgdata"/english/errmsg.sys -a -x "$MY_PWD/bin/mysqld" | ||
384 | 376 | then | ||
385 | 377 | MY_BASEDIR_VERSION="$MY_PWD" # Where bin, share and data are | ||
386 | 378 | ledir="$MY_PWD/bin" # Where mysqld is | ||
387 | 379 | # Check for the directories we would expect from a source install | ||
388 | 380 | elif test -f "$relpkgdata"/english/errmsg.sys -a -x "$MY_PWD/libexec/mysqld" | ||
389 | 381 | then | ||
390 | 382 | MY_BASEDIR_VERSION="$MY_PWD" # Where libexec, share and var are | ||
391 | 383 | ledir="$MY_PWD/libexec" # Where mysqld is | ||
392 | 384 | elif test -f "$relpkgdata"/english/errmsg.sys -a -x "$MY_PWD/sbin/mysqld" | ||
393 | 385 | then | ||
394 | 386 | MY_BASEDIR_VERSION="$MY_PWD" # Where sbin, share and var are | ||
395 | 387 | ledir="$MY_PWD/sbin" # Where mysqld is | ||
396 | 388 | # Since we didn't find anything, used the compiled-in defaults | ||
397 | 389 | else | ||
398 | 390 | MY_BASEDIR_VERSION='@prefix@' | ||
399 | 391 | ledir='@libexecdir@' | ||
400 | 392 | fi | ||
401 | 393 | |||
402 | 394 | |||
403 | 395 | # | ||
404 | 396 | # Second, try to find the data directory | ||
405 | 397 | # | ||
406 | 398 | |||
407 | 399 | # Try where the binary installs put it | ||
408 | 400 | if test -d $MY_BASEDIR_VERSION/data/mysql | ||
409 | 401 | then | ||
410 | 402 | DATADIR=$MY_BASEDIR_VERSION/data | ||
411 | 403 | if test -z "$defaults" -a -r "$DATADIR/my.cnf" | ||
412 | 404 | then | ||
413 | 405 | defaults="--defaults-extra-file=$DATADIR/my.cnf" | ||
414 | 406 | fi | ||
415 | 407 | # Next try where the source installs put it | ||
416 | 408 | elif test -d $MY_BASEDIR_VERSION/var/mysql | ||
417 | 409 | then | ||
418 | 410 | DATADIR=$MY_BASEDIR_VERSION/var | ||
419 | 411 | # Or just give up and use our compiled-in default | ||
420 | 412 | else | ||
421 | 413 | DATADIR=@localstatedir@ | ||
422 | 414 | fi | ||
423 | 415 | |||
424 | 416 | # | ||
425 | 417 | # Try to find the plugin directory | ||
426 | 418 | # | ||
427 | 419 | |||
428 | 420 | # Use user-supplied argument | ||
429 | 421 | if [ -n "${PLUGIN_DIR}" ]; then | ||
430 | 422 | plugin_dir="${PLUGIN_DIR}" | ||
431 | 423 | else | ||
432 | 424 | # Try to find plugin dir relative to basedir | ||
433 | 425 | for dir in lib/mysql/plugin lib/plugin | ||
434 | 426 | do | ||
435 | 427 | if [ -d "${MY_BASEDIR_VERSION}/${dir}" ]; then | ||
436 | 428 | plugin_dir="${MY_BASEDIR_VERSION}/${dir}" | ||
437 | 429 | break | ||
438 | 430 | fi | ||
439 | 431 | done | ||
440 | 432 | # Give up and use compiled-in default | ||
441 | 433 | if [ -z "${plugin_dir}" ]; then | ||
442 | 434 | plugin_dir='@pkgplugindir@' | ||
443 | 435 | fi | ||
444 | 436 | fi | ||
445 | 437 | plugin_dir="${plugin_dir}${PLUGIN_VARIANT}" | ||
446 | 438 | |||
447 | 439 | if test -z "$MYSQL_HOME" | ||
448 | 440 | then | ||
449 | 441 | if test -r "$MY_BASEDIR_VERSION/my.cnf" && test -r "$DATADIR/my.cnf" | ||
450 | 442 | then | ||
451 | 443 | log_error "WARNING: Found two instances of my.cnf - | ||
452 | 444 | $MY_BASEDIR_VERSION/my.cnf and | ||
453 | 445 | $DATADIR/my.cnf | ||
454 | 446 | IGNORING $DATADIR/my.cnf" | ||
455 | 447 | |||
456 | 448 | MYSQL_HOME=$MY_BASEDIR_VERSION | ||
457 | 449 | elif test -r "$DATADIR/my.cnf" | ||
458 | 450 | then | ||
459 | 451 | log_error "WARNING: Found $DATADIR/my.cnf | ||
460 | 452 | The data directory is a deprecated location for my.cnf, please move it to | ||
461 | 453 | $MY_BASEDIR_VERSION/my.cnf" | ||
462 | 454 | MYSQL_HOME=$DATADIR | ||
463 | 455 | else | ||
464 | 456 | MYSQL_HOME=$MY_BASEDIR_VERSION | ||
465 | 457 | fi | ||
466 | 458 | fi | ||
467 | 459 | export MYSQL_HOME | ||
468 | 460 | |||
469 | 461 | |||
470 | 462 | # Get first arguments from the my.cnf file, groups [mysqld] and [mysqld_safe] | ||
471 | 463 | # and then merge with the command line arguments | ||
472 | 464 | if test -x "$MY_BASEDIR_VERSION/bin/my_print_defaults" | ||
473 | 465 | then | ||
474 | 466 | print_defaults="$MY_BASEDIR_VERSION/bin/my_print_defaults" | ||
475 | 467 | elif test -x `dirname $0`/my_print_defaults | ||
476 | 468 | then | ||
477 | 469 | print_defaults="`dirname $0`/my_print_defaults" | ||
478 | 470 | elif test -x ./bin/my_print_defaults | ||
479 | 471 | then | ||
480 | 472 | print_defaults="./bin/my_print_defaults" | ||
481 | 473 | elif test -x @bindir@/my_print_defaults | ||
482 | 474 | then | ||
483 | 475 | print_defaults="@bindir@/my_print_defaults" | ||
484 | 476 | elif test -x @bindir@/mysql_print_defaults | ||
485 | 477 | then | ||
486 | 478 | print_defaults="@bindir@/mysql_print_defaults" | ||
487 | 479 | else | ||
488 | 480 | print_defaults="my_print_defaults" | ||
489 | 481 | fi | ||
490 | 482 | |||
491 | 483 | append_arg_to_args () { | ||
492 | 484 | args="$args "`shell_quote_string "$1"` | ||
493 | 485 | } | ||
494 | 486 | |||
495 | 487 | args= | ||
496 | 488 | |||
497 | 489 | SET_USER=2 | ||
498 | 490 | parse_arguments `$print_defaults $defaults --loose-verbose mysqld server` | ||
499 | 491 | if test $SET_USER -eq 2 | ||
500 | 492 | then | ||
501 | 493 | SET_USER=0 | ||
502 | 494 | fi | ||
503 | 495 | |||
504 | 496 | parse_arguments `$print_defaults $defaults --loose-verbose mysqld_safe safe_mysqld` | ||
505 | 497 | parse_arguments PICK-ARGS-FROM-ARGV "$@" | ||
506 | 498 | |||
507 | 499 | # Determine what logging facility to use | ||
508 | 500 | |||
509 | 501 | # Ensure that 'logger' exists, if it's requested | ||
510 | 502 | if [ $want_syslog -eq 1 ] | ||
511 | 503 | then | ||
512 | 504 | my_which logger > /dev/null 2>&1 | ||
513 | 505 | if [ $? -ne 0 ] | ||
514 | 506 | then | ||
515 | 507 | log_error "--syslog requested, but no 'logger' program found. Please ensure that 'logger' is in your PATH, or do not specify the --syslog option to mysqld_safe." | ||
516 | 508 | exit 1 | ||
517 | 509 | fi | ||
518 | 510 | fi | ||
519 | 511 | |||
520 | 512 | if [ -n "$err_log" -o $want_syslog -eq 0 ] | ||
521 | 513 | then | ||
522 | 514 | if [ -n "$err_log" ] | ||
523 | 515 | then | ||
524 | 516 | # mysqld adds ".err" if there is no extension on the --log-error | ||
525 | 517 | # argument; must match that here, or mysqld_safe will write to a | ||
526 | 518 | # different log file than mysqld | ||
527 | 519 | |||
528 | 520 | # mysqld does not add ".err" to "--log-error=foo."; it considers a | ||
529 | 521 | # trailing "." as an extension | ||
530 | 522 | if expr "$err_log" : '.*\.[^/]*$' > /dev/null | ||
531 | 523 | then | ||
532 | 524 | : | ||
533 | 525 | else | ||
534 | 526 | err_log="$err_log".err | ||
535 | 527 | fi | ||
536 | 528 | |||
537 | 529 | case "$err_log" in | ||
538 | 530 | /* ) ;; | ||
539 | 531 | * ) err_log="$DATADIR/$err_log" ;; | ||
540 | 532 | esac | ||
541 | 533 | else | ||
542 | 534 | err_log=$DATADIR/`@HOSTNAME@`.err | ||
543 | 535 | fi | ||
544 | 536 | |||
545 | 537 | append_arg_to_args "--log-error=$err_log" | ||
546 | 538 | |||
547 | 539 | if [ $want_syslog -eq 1 ] | ||
548 | 540 | then | ||
549 | 541 | # User explicitly asked for syslog, so warn that it isn't used | ||
550 | 542 | log_error "Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect." | ||
551 | 543 | fi | ||
552 | 544 | |||
553 | 545 | # Log to err_log file | ||
554 | 546 | log_notice "Logging to '$err_log'." | ||
555 | 547 | logging=file | ||
556 | 548 | else | ||
557 | 549 | if [ -n "$syslog_tag" ] | ||
558 | 550 | then | ||
559 | 551 | # Sanitize the syslog tag | ||
560 | 552 | syslog_tag=`echo "$syslog_tag" | sed -e 's/[^a-zA-Z0-9_-]/_/g'` | ||
561 | 553 | syslog_tag_mysqld_safe="${syslog_tag_mysqld_safe}-$syslog_tag" | ||
562 | 554 | syslog_tag_mysqld="${syslog_tag_mysqld}-$syslog_tag" | ||
563 | 555 | fi | ||
564 | 556 | log_notice "Logging to syslog." | ||
565 | 557 | logging=syslog | ||
566 | 558 | fi | ||
567 | 559 | |||
568 | 560 | USER_OPTION="" | ||
569 | 561 | if test -w / -o "$USER" = "root" | ||
570 | 562 | then | ||
571 | 563 | if test "$user" != "root" -o $SET_USER = 1 | ||
572 | 564 | then | ||
573 | 565 | USER_OPTION="--user=$user" | ||
574 | 566 | fi | ||
575 | 567 | # Change the err log to the right user, if it is in use | ||
576 | 568 | if [ $want_syslog -eq 0 ]; then | ||
577 | 569 | touch "$err_log" | ||
578 | 570 | chown $user "$err_log" | ||
579 | 571 | fi | ||
580 | 572 | if test -n "$open_files" | ||
581 | 573 | then | ||
582 | 574 | ulimit -n $open_files | ||
583 | 575 | fi | ||
584 | 576 | fi | ||
585 | 577 | |||
586 | 578 | if test -n "$open_files" | ||
587 | 579 | then | ||
588 | 580 | append_arg_to_args "--open-files-limit=$open_files" | ||
589 | 581 | fi | ||
590 | 582 | |||
591 | 583 | safe_mysql_unix_port=${mysql_unix_port:-${MYSQL_UNIX_PORT:-@MYSQL_UNIX_ADDR@}} | ||
592 | 584 | # Make sure that directory for $safe_mysql_unix_port exists | ||
593 | 585 | mysql_unix_port_dir=`dirname $safe_mysql_unix_port` | ||
594 | 586 | if [ ! -d $mysql_unix_port_dir ] | ||
595 | 587 | then | ||
596 | 588 | mkdir $mysql_unix_port_dir | ||
597 | 589 | chown $user $mysql_unix_port_dir | ||
598 | 590 | chmod 755 $mysql_unix_port_dir | ||
599 | 591 | fi | ||
600 | 592 | |||
601 | 593 | # If the user doesn't specify a binary, we assume name "mysqld" | ||
602 | 594 | if test -z "$MYSQLD" | ||
603 | 595 | then | ||
604 | 596 | MYSQLD=mysqld | ||
605 | 597 | fi | ||
606 | 598 | |||
607 | 599 | if test ! -x "$ledir/$MYSQLD" | ||
608 | 600 | then | ||
609 | 601 | log_error "The file $ledir/$MYSQLD | ||
610 | 602 | does not exist or is not executable. Please cd to the mysql installation | ||
611 | 603 | directory and restart this script from there as follows: | ||
612 | 604 | ./bin/mysqld_safe& | ||
613 | 605 | See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information" | ||
614 | 606 | exit 1 | ||
615 | 607 | fi | ||
616 | 608 | |||
617 | 609 | if test -z "$pid_file" | ||
618 | 610 | then | ||
619 | 611 | pid_file="$DATADIR/`@HOSTNAME@`.pid" | ||
620 | 612 | else | ||
621 | 613 | case "$pid_file" in | ||
622 | 614 | /* ) ;; | ||
623 | 615 | * ) pid_file="$DATADIR/$pid_file" ;; | ||
624 | 616 | esac | ||
625 | 617 | fi | ||
626 | 618 | append_arg_to_args "--pid-file=$pid_file" | ||
627 | 619 | |||
628 | 620 | if test -n "$mysql_unix_port" | ||
629 | 621 | then | ||
630 | 622 | append_arg_to_args "--socket=$mysql_unix_port" | ||
631 | 623 | fi | ||
632 | 624 | if test -n "$mysql_tcp_port" | ||
633 | 625 | then | ||
634 | 626 | append_arg_to_args "--port=$mysql_tcp_port" | ||
635 | 627 | fi | ||
636 | 628 | |||
637 | 629 | if test $niceness -eq 0 | ||
638 | 630 | then | ||
639 | 631 | NOHUP_NICENESS="nohup" | ||
640 | 632 | else | ||
641 | 633 | NOHUP_NICENESS="nohup nice -$niceness" | ||
642 | 634 | fi | ||
643 | 635 | |||
644 | 636 | # Using nice with no args to get the niceness level is GNU-specific. | ||
645 | 637 | # This check could be extended for other operating systems (e.g., | ||
646 | 638 | # BSD could use "nohup sh -c 'ps -o nice -p $$' | tail -1"). | ||
647 | 639 | # But, it also seems that GNU nohup is the only one which messes | ||
648 | 640 | # with the priority, so this is okay. | ||
649 | 641 | if nohup nice > /dev/null 2>&1 | ||
650 | 642 | then | ||
651 | 643 | normal_niceness=`nice` | ||
652 | 644 | nohup_niceness=`nohup nice 2>/dev/null` | ||
653 | 645 | |||
654 | 646 | numeric_nice_values=1 | ||
655 | 647 | for val in $normal_niceness $nohup_niceness | ||
656 | 648 | do | ||
657 | 649 | case "$val" in | ||
658 | 650 | -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | \ | ||
659 | 651 | [0-9] | [0-9][0-9] | [0-9][0-9][0-9] ) | ||
660 | 652 | ;; | ||
661 | 653 | * ) | ||
662 | 654 | numeric_nice_values=0 ;; | ||
663 | 655 | esac | ||
664 | 656 | done | ||
665 | 657 | |||
666 | 658 | if test $numeric_nice_values -eq 1 | ||
667 | 659 | then | ||
668 | 660 | nice_value_diff=`expr $nohup_niceness - $normal_niceness` | ||
669 | 661 | if test $? -eq 0 && test $nice_value_diff -gt 0 && \ | ||
670 | 662 | nice --$nice_value_diff echo testing > /dev/null 2>&1 | ||
671 | 663 | then | ||
672 | 664 | # nohup increases the priority (bad), and we are permitted | ||
673 | 665 | # to lower the priority with respect to the value the user | ||
674 | 666 | # might have been given | ||
675 | 667 | niceness=`expr $niceness - $nice_value_diff` | ||
676 | 668 | NOHUP_NICENESS="nice -$niceness nohup" | ||
677 | 669 | fi | ||
678 | 670 | fi | ||
679 | 671 | else | ||
680 | 672 | if nohup echo testing > /dev/null 2>&1 | ||
681 | 673 | then | ||
682 | 674 | : | ||
683 | 675 | else | ||
684 | 676 | # nohup doesn't work on this system | ||
685 | 677 | NOHUP_NICENESS="" | ||
686 | 678 | fi | ||
687 | 679 | fi | ||
688 | 680 | |||
689 | 681 | # Try to set the core file size (even if we aren't root) because many systems | ||
690 | 682 | # don't specify a hard limit on core file size. | ||
691 | 683 | if test -n "$core_file_size" | ||
692 | 684 | then | ||
693 | 685 | ulimit -c $core_file_size | ||
694 | 686 | fi | ||
695 | 687 | |||
696 | 688 | # | ||
697 | 689 | # If there exists an old pid file, check if the daemon is already running | ||
698 | 690 | # Note: The switches to 'ps' may depend on your operating system | ||
699 | 691 | if test -f "$pid_file" | ||
700 | 692 | then | ||
701 | 693 | PID=`cat "$pid_file"` | ||
702 | 694 | if @CHECK_PID@ | ||
703 | 695 | then | ||
704 | 696 | if @FIND_PROC@ | ||
705 | 697 | then # The pid contains a mysqld process | ||
706 | 698 | log_error "A mysqld process already exists" | ||
707 | 699 | exit 1 | ||
708 | 700 | fi | ||
709 | 701 | fi | ||
710 | 702 | rm -f "$pid_file" | ||
711 | 703 | if test -f "$pid_file" | ||
712 | 704 | then | ||
713 | 705 | log_error "Fatal error: Can't remove the pid file: | ||
714 | 706 | $pid_file | ||
715 | 707 | Please remove it manually and start $0 again; | ||
716 | 708 | mysqld daemon not started" | ||
717 | 709 | exit 1 | ||
718 | 710 | fi | ||
719 | 711 | fi | ||
720 | 712 | |||
721 | 713 | # | ||
722 | 714 | # Uncomment the following lines if you want all tables to be automatically | ||
723 | 715 | # checked and repaired during startup. You should add sensible key_buffer | ||
724 | 716 | # and sort_buffer values to my.cnf to improve check performance or require | ||
725 | 717 | # less disk space. | ||
726 | 718 | # Alternatively, you can start mysqld with the "myisam-recover" option. See | ||
727 | 719 | # the manual for details. | ||
728 | 720 | # | ||
729 | 721 | # echo "Checking tables in $DATADIR" | ||
730 | 722 | # $MY_BASEDIR_VERSION/bin/myisamchk --silent --force --fast --medium-check $DATADIR/*/*.MYI | ||
731 | 723 | # $MY_BASEDIR_VERSION/bin/isamchk --silent --force $DATADIR/*/*.ISM | ||
732 | 724 | |||
733 | 725 | # Does this work on all systems? | ||
734 | 726 | #if type ulimit | grep "shell builtin" > /dev/null | ||
735 | 727 | #then | ||
736 | 728 | # ulimit -n 256 > /dev/null 2>&1 # Fix for BSD and FreeBSD systems | ||
737 | 729 | #fi | ||
738 | 730 | |||
739 | 731 | cmd="`mysqld_ld_preload_text`$NOHUP_NICENESS" | ||
740 | 732 | |||
741 | 733 | for i in "$ledir/$MYSQLD" "$defaults" "--basedir=$MY_BASEDIR_VERSION" \ | ||
742 | 734 | "--datadir=$DATADIR" "--plugin-dir=$plugin_dir" "$USER_OPTION" | ||
743 | 735 | do | ||
744 | 736 | cmd="$cmd "`shell_quote_string "$i"` | ||
745 | 737 | done | ||
746 | 738 | cmd="$cmd $args" | ||
747 | 739 | # Avoid 'nohup: ignoring input' warning | ||
748 | 740 | test -n "$NOHUP_NICENESS" && cmd="$cmd < /dev/null" | ||
749 | 741 | |||
750 | 742 | log_notice "Starting $MYSQLD daemon with databases from $DATADIR" | ||
751 | 743 | |||
752 | 744 | # variable to track the current number of "fast" (a.k.a. subsecond) restarts | ||
753 | 745 | fast_restart=0 | ||
754 | 746 | # maximum number of restarts before trottling kicks in | ||
755 | 747 | max_fast_restarts=5 | ||
756 | 748 | # flag whether a usable sleep command exists | ||
757 | 749 | have_sleep=1 | ||
758 | 750 | |||
759 | 751 | while true | ||
760 | 752 | do | ||
761 | 753 | rm -f $safe_mysql_unix_port "$pid_file" # Some extra safety | ||
762 | 754 | |||
763 | 755 | start_time=`date +%M%S` | ||
764 | 756 | |||
765 | 757 | eval_log_error "$cmd" | ||
766 | 758 | |||
767 | 759 | end_time=`date +%M%S` | ||
768 | 760 | |||
769 | 761 | if test ! -f "$pid_file" # This is removed if normal shutdown | ||
770 | 762 | then | ||
771 | 763 | break | ||
772 | 764 | fi | ||
773 | 765 | |||
774 | 766 | |||
775 | 767 | # sanity check if time reading is sane and there's sleep | ||
776 | 768 | if test $end_time -gt 0 -a $have_sleep -gt 0 | ||
777 | 769 | then | ||
778 | 770 | # throttle down the fast restarts | ||
779 | 771 | if test $end_time -eq $start_time | ||
780 | 772 | then | ||
781 | 773 | fast_restart=`expr $fast_restart + 1` | ||
782 | 774 | if test $fast_restart -ge $max_fast_restarts | ||
783 | 775 | then | ||
784 | 776 | log_notice "The server is respawning too fast. Sleeping for 1 second." | ||
785 | 777 | sleep 1 | ||
786 | 778 | sleep_state=$? | ||
787 | 779 | if test $sleep_state -gt 0 | ||
788 | 780 | then | ||
789 | 781 | log_notice "The server is respawning too fast and no working sleep command. Turning off trottling." | ||
790 | 782 | have_sleep=0 | ||
791 | 783 | fi | ||
792 | 784 | |||
793 | 785 | fast_restart=0 | ||
794 | 786 | fi | ||
795 | 787 | else | ||
796 | 788 | fast_restart=0 | ||
797 | 789 | fi | ||
798 | 790 | fi | ||
799 | 791 | |||
800 | 792 | if @TARGET_LINUX@ && test $KILL_MYSQLD -eq 1 | ||
801 | 793 | then | ||
802 | 794 | # Test if one process was hanging. | ||
803 | 795 | # This is only a fix for Linux (running as base 3 mysqld processes) | ||
804 | 796 | # but should work for the rest of the servers. | ||
805 | 797 | # The only thing is ps x => redhat 5 gives warnings when using ps -x. | ||
806 | 798 | # kill -9 is used or the process won't react on the kill. | ||
807 | 799 | numofproces=`ps xaww | grep -v "grep" | grep "$ledir/$MYSQLD\>" | grep -c "pid-file=$pid_file"` | ||
808 | 800 | |||
809 | 801 | log_notice "Number of processes running now: $numofproces" | ||
810 | 802 | I=1 | ||
811 | 803 | while test "$I" -le "$numofproces" | ||
812 | 804 | do | ||
813 | 805 | PROC=`ps xaww | grep "$ledir/$MYSQLD\>" | grep -v "grep" | grep "pid-file=$pid_file" | sed -n '$p'` | ||
814 | 806 | |||
815 | 807 | for T in $PROC | ||
816 | 808 | do | ||
817 | 809 | break | ||
818 | 810 | done | ||
819 | 811 | # echo "TEST $I - $T **" | ||
820 | 812 | if kill -9 $T | ||
821 | 813 | then | ||
822 | 814 | log_error "$MYSQLD process hanging, pid $T - killed" | ||
823 | 815 | else | ||
824 | 816 | break | ||
825 | 817 | fi | ||
826 | 818 | I=`expr $I + 1` | ||
827 | 819 | done | ||
828 | 820 | fi | ||
829 | 821 | log_notice "mysqld restarted" | ||
830 | 822 | done | ||
831 | 823 | |||
832 | 824 | log_notice "mysqld from pid file $pid_file ended" | ||
833 | 825 | |||
834 | 0 | 826 | ||
835 | === added directory '.pc/62_disable_tests.patch' | |||
836 | === renamed directory '.pc/62_disable_tests.patch' => '.pc/62_disable_tests.patch.moved' | |||
837 | === added file '.pc/62_disable_tests.patch/.timestamp' | |||
838 | === added directory '.pc/62_disable_tests.patch/mysql-test' | |||
839 | === added directory '.pc/62_disable_tests.patch/mysql-test/t' | |||
840 | === added file '.pc/62_disable_tests.patch/mysql-test/t/disabled.def' | |||
841 | --- .pc/62_disable_tests.patch/mysql-test/t/disabled.def 1970-01-01 00:00:00 +0000 | |||
842 | +++ .pc/62_disable_tests.patch/mysql-test/t/disabled.def 2012-03-30 01:16:23 +0000 | |||
843 | @@ -0,0 +1,17 @@ | |||
844 | 1 | ############################################################################## | ||
845 | 2 | # | ||
846 | 3 | # List the test cases that are to be disabled temporarily. | ||
847 | 4 | # | ||
848 | 5 | # Separate the test case name and the comment with ':'. | ||
849 | 6 | # | ||
850 | 7 | # <testcasename> : BUG#<xxxx> <date disabled> <disabler> <comment> | ||
851 | 8 | # | ||
852 | 9 | # Do not use any TAB characters for whitespace. | ||
853 | 10 | # | ||
854 | 11 | ############################################################################## | ||
855 | 12 | lowercase_table3 : Bug#11762269 2010-06-30 alik main.lowercase_table3 on Mac OSX | ||
856 | 13 | read_many_rows_innodb : Bug#11748886 2010-11-15 mattiasj report already exists | ||
857 | 14 | sum_distinct-big : Bug#11764126 2010-11-15 mattiasj was not tested | ||
858 | 15 | archive-big : Bug#11817185 2011-03-10 Anitha Disabled since this leads to timeout on Solaris Sparc | ||
859 | 16 | log_tables-big : Bug#11756699 2010-11-15 mattiasj report already exists | ||
860 | 17 | mysql_embedded : Bug#12561297 2011-05-14 Anitha Dependent on PB2 changes - eventum#41836 | ||
861 | 0 | 18 | ||
862 | === added directory '.pc/70_mysql_va_list.patch' | |||
863 | === renamed directory '.pc/70_mysql_va_list.patch' => '.pc/70_mysql_va_list.patch.moved' | |||
864 | === added file '.pc/70_mysql_va_list.patch/.timestamp' | |||
865 | === added directory '.pc/70_mysql_va_list.patch/sql-common' | |||
866 | === added file '.pc/70_mysql_va_list.patch/sql-common/client_plugin.c' | |||
867 | --- .pc/70_mysql_va_list.patch/sql-common/client_plugin.c 1970-01-01 00:00:00 +0000 | |||
868 | +++ .pc/70_mysql_va_list.patch/sql-common/client_plugin.c 2012-03-30 01:16:23 +0000 | |||
869 | @@ -0,0 +1,472 @@ | |||
870 | 1 | /* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. | ||
871 | 2 | |||
872 | 3 | This program is free software; you can redistribute it and/or modify | ||
873 | 4 | it under the terms of the GNU General Public License as published by | ||
874 | 5 | the Free Software Foundation; version 2 of the License. | ||
875 | 6 | |||
876 | 7 | This program is distributed in the hope that it will be useful, | ||
877 | 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
878 | 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
879 | 10 | GNU General Public License for more details. | ||
880 | 11 | |||
881 | 12 | You should have received a copy of the GNU General Public License | ||
882 | 13 | along with this program; if not, write to the Free Software | ||
883 | 14 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ | ||
884 | 15 | |||
885 | 16 | /** | ||
886 | 17 | @file | ||
887 | 18 | |||
888 | 19 | Support code for the client side (libmysql) plugins | ||
889 | 20 | |||
890 | 21 | Client plugins are somewhat different from server plugins, they are simpler. | ||
891 | 22 | |||
892 | 23 | They do not need to be installed or in any way explicitly loaded on the | ||
893 | 24 | client, they are loaded automatically on demand. | ||
894 | 25 | One client plugin per shared object, soname *must* match the plugin name. | ||
895 | 26 | |||
896 | 27 | There is no reference counting and no unloading either. | ||
897 | 28 | */ | ||
898 | 29 | |||
899 | 30 | #include <my_global.h> | ||
900 | 31 | #include "mysql.h" | ||
901 | 32 | #include <my_sys.h> | ||
902 | 33 | #include <m_string.h> | ||
903 | 34 | #include <my_pthread.h> | ||
904 | 35 | |||
905 | 36 | #include <sql_common.h> | ||
906 | 37 | #include "errmsg.h" | ||
907 | 38 | #include <mysql/client_plugin.h> | ||
908 | 39 | |||
909 | 40 | struct st_client_plugin_int { | ||
910 | 41 | struct st_client_plugin_int *next; | ||
911 | 42 | void *dlhandle; | ||
912 | 43 | struct st_mysql_client_plugin *plugin; | ||
913 | 44 | }; | ||
914 | 45 | |||
915 | 46 | static my_bool initialized= 0; | ||
916 | 47 | static MEM_ROOT mem_root; | ||
917 | 48 | |||
918 | 49 | static const char *plugin_declarations_sym= "_mysql_client_plugin_declaration_"; | ||
919 | 50 | static uint plugin_version[MYSQL_CLIENT_MAX_PLUGINS]= | ||
920 | 51 | { | ||
921 | 52 | 0, /* these two are taken by Connector/C */ | ||
922 | 53 | 0, /* these two are taken by Connector/C */ | ||
923 | 54 | MYSQL_CLIENT_AUTHENTICATION_PLUGIN_INTERFACE_VERSION | ||
924 | 55 | }; | ||
925 | 56 | |||
926 | 57 | /* | ||
927 | 58 | Loaded plugins are stored in a linked list. | ||
928 | 59 | The list is append-only, the elements are added to the head (like in a stack). | ||
929 | 60 | The elements are added under a mutex, but the list can be read and traversed | ||
930 | 61 | without any mutex because once an element is added to the list, it stays | ||
931 | 62 | there. The main purpose of a mutex is to prevent two threads from | ||
932 | 63 | loading the same plugin twice in parallel. | ||
933 | 64 | */ | ||
934 | 65 | struct st_client_plugin_int *plugin_list[MYSQL_CLIENT_MAX_PLUGINS]; | ||
935 | 66 | static pthread_mutex_t LOCK_load_client_plugin; | ||
936 | 67 | |||
937 | 68 | static int is_not_initialized(MYSQL *mysql, const char *name) | ||
938 | 69 | { | ||
939 | 70 | if (initialized) | ||
940 | 71 | return 0; | ||
941 | 72 | |||
942 | 73 | set_mysql_extended_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, | ||
943 | 74 | unknown_sqlstate, ER(CR_AUTH_PLUGIN_CANNOT_LOAD), | ||
944 | 75 | name, "not initialized"); | ||
945 | 76 | return 1; | ||
946 | 77 | } | ||
947 | 78 | |||
948 | 79 | /** | ||
949 | 80 | finds a plugin in the list | ||
950 | 81 | |||
951 | 82 | @param name plugin name to search for | ||
952 | 83 | @param type plugin type | ||
953 | 84 | |||
954 | 85 | @note this does NOT necessarily need a mutex, take care! | ||
955 | 86 | |||
956 | 87 | @retval a pointer to a found plugin or 0 | ||
957 | 88 | */ | ||
958 | 89 | static struct st_mysql_client_plugin * | ||
959 | 90 | find_plugin(const char *name, int type) | ||
960 | 91 | { | ||
961 | 92 | struct st_client_plugin_int *p; | ||
962 | 93 | |||
963 | 94 | DBUG_ASSERT(initialized); | ||
964 | 95 | DBUG_ASSERT(type >= 0 && type < MYSQL_CLIENT_MAX_PLUGINS); | ||
965 | 96 | if (type < 0 || type >= MYSQL_CLIENT_MAX_PLUGINS) | ||
966 | 97 | return 0; | ||
967 | 98 | |||
968 | 99 | for (p= plugin_list[type]; p; p= p->next) | ||
969 | 100 | { | ||
970 | 101 | if (strcmp(p->plugin->name, name) == 0) | ||
971 | 102 | return p->plugin; | ||
972 | 103 | } | ||
973 | 104 | return NULL; | ||
974 | 105 | } | ||
975 | 106 | |||
976 | 107 | /** | ||
977 | 108 | verifies the plugin and adds it to the list | ||
978 | 109 | |||
979 | 110 | @param mysql MYSQL structure (for error reporting) | ||
980 | 111 | @param plugin plugin to install | ||
981 | 112 | @param dlhandle a handle to the shared object (returned by dlopen) | ||
982 | 113 | or 0 if the plugin was not dynamically loaded | ||
983 | 114 | @param argc number of arguments in the 'va_list args' | ||
984 | 115 | @param args arguments passed to the plugin initialization function | ||
985 | 116 | |||
986 | 117 | @retval a pointer to an installed plugin or 0 | ||
987 | 118 | */ | ||
988 | 119 | static struct st_mysql_client_plugin * | ||
989 | 120 | add_plugin(MYSQL *mysql, struct st_mysql_client_plugin *plugin, void *dlhandle, | ||
990 | 121 | int argc, va_list args) | ||
991 | 122 | { | ||
992 | 123 | const char *errmsg; | ||
993 | 124 | struct st_client_plugin_int plugin_int, *p; | ||
994 | 125 | char errbuf[1024]; | ||
995 | 126 | |||
996 | 127 | DBUG_ASSERT(initialized); | ||
997 | 128 | |||
998 | 129 | plugin_int.plugin= plugin; | ||
999 | 130 | plugin_int.dlhandle= dlhandle; | ||
1000 | 131 | |||
1001 | 132 | if (plugin->type >= MYSQL_CLIENT_MAX_PLUGINS) | ||
1002 | 133 | { | ||
1003 | 134 | errmsg= "Unknown client plugin type"; | ||
1004 | 135 | goto err1; | ||
1005 | 136 | } | ||
1006 | 137 | |||
1007 | 138 | if (plugin->interface_version < plugin_version[plugin->type] || | ||
1008 | 139 | (plugin->interface_version >> 8) > | ||
1009 | 140 | (plugin_version[plugin->type] >> 8)) | ||
1010 | 141 | { | ||
1011 | 142 | errmsg= "Incompatible client plugin interface"; | ||
1012 | 143 | goto err1; | ||
1013 | 144 | } | ||
1014 | 145 | |||
1015 | 146 | /* Call the plugin initialization function, if any */ | ||
1016 | 147 | if (plugin->init && plugin->init(errbuf, sizeof(errbuf), argc, args)) | ||
1017 | 148 | { | ||
1018 | 149 | errmsg= errbuf; | ||
1019 | 150 | goto err1; | ||
1020 | 151 | } | ||
1021 | 152 | |||
1022 | 153 | p= (struct st_client_plugin_int *) | ||
1023 | 154 | memdup_root(&mem_root, &plugin_int, sizeof(plugin_int)); | ||
1024 | 155 | |||
1025 | 156 | if (!p) | ||
1026 | 157 | { | ||
1027 | 158 | errmsg= "Out of memory"; | ||
1028 | 159 | goto err2; | ||
1029 | 160 | } | ||
1030 | 161 | |||
1031 | 162 | safe_mutex_assert_owner(&LOCK_load_client_plugin); | ||
1032 | 163 | |||
1033 | 164 | p->next= plugin_list[plugin->type]; | ||
1034 | 165 | plugin_list[plugin->type]= p; | ||
1035 | 166 | net_clear_error(&mysql->net); | ||
1036 | 167 | |||
1037 | 168 | return plugin; | ||
1038 | 169 | |||
1039 | 170 | err2: | ||
1040 | 171 | if (plugin->deinit) | ||
1041 | 172 | plugin->deinit(); | ||
1042 | 173 | err1: | ||
1043 | 174 | set_mysql_extended_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, unknown_sqlstate, | ||
1044 | 175 | ER(CR_AUTH_PLUGIN_CANNOT_LOAD), plugin->name, | ||
1045 | 176 | errmsg); | ||
1046 | 177 | if (dlhandle) | ||
1047 | 178 | dlclose(dlhandle); | ||
1048 | 179 | return NULL; | ||
1049 | 180 | } | ||
1050 | 181 | |||
1051 | 182 | /** | ||
1052 | 183 | Loads plugins which are specified in the environment variable | ||
1053 | 184 | LIBMYSQL_PLUGINS. | ||
1054 | 185 | |||
1055 | 186 | Multiple plugins must be separated by semicolon. This function doesn't | ||
1056 | 187 | return or log an error. | ||
1057 | 188 | |||
1058 | 189 | The function is be called by mysql_client_plugin_init | ||
1059 | 190 | |||
1060 | 191 | @todo | ||
1061 | 192 | Support extended syntax, passing parameters to plugins, for example | ||
1062 | 193 | LIBMYSQL_PLUGINS="plugin1(param1,param2);plugin2;..." | ||
1063 | 194 | or | ||
1064 | 195 | LIBMYSQL_PLUGINS="plugin1=int:param1,str:param2;plugin2;..." | ||
1065 | 196 | */ | ||
1066 | 197 | static void load_env_plugins(MYSQL *mysql) | ||
1067 | 198 | { | ||
1068 | 199 | char *plugs, *free_env, *s= getenv("LIBMYSQL_PLUGINS"); | ||
1069 | 200 | |||
1070 | 201 | /* no plugins to load */ | ||
1071 | 202 | if(!s) | ||
1072 | 203 | return; | ||
1073 | 204 | |||
1074 | 205 | free_env= plugs= my_strdup(s, MYF(MY_WME)); | ||
1075 | 206 | |||
1076 | 207 | do { | ||
1077 | 208 | if ((s= strchr(plugs, ';'))) | ||
1078 | 209 | *s= '\0'; | ||
1079 | 210 | mysql_load_plugin(mysql, plugs, -1, 0); | ||
1080 | 211 | plugs= s + 1; | ||
1081 | 212 | } while (s); | ||
1082 | 213 | |||
1083 | 214 | my_free(free_env); | ||
1084 | 215 | } | ||
1085 | 216 | |||
1086 | 217 | /********** extern functions to be used by libmysql *********************/ | ||
1087 | 218 | |||
1088 | 219 | /** | ||
1089 | 220 | Initializes the client plugin layer. | ||
1090 | 221 | |||
1091 | 222 | This function must be called before any other client plugin function. | ||
1092 | 223 | |||
1093 | 224 | @retval 0 successful | ||
1094 | 225 | @retval != 0 error occured | ||
1095 | 226 | */ | ||
1096 | 227 | int mysql_client_plugin_init() | ||
1097 | 228 | { | ||
1098 | 229 | MYSQL mysql; | ||
1099 | 230 | struct st_mysql_client_plugin **builtin; | ||
1100 | 231 | |||
1101 | 232 | if (initialized) | ||
1102 | 233 | return 0; | ||
1103 | 234 | |||
1104 | 235 | bzero(&mysql, sizeof(mysql)); /* dummy mysql for set_mysql_extended_error */ | ||
1105 | 236 | |||
1106 | 237 | pthread_mutex_init(&LOCK_load_client_plugin, MY_MUTEX_INIT_SLOW); | ||
1107 | 238 | init_alloc_root(&mem_root, 128, 128); | ||
1108 | 239 | |||
1109 | 240 | bzero(&plugin_list, sizeof(plugin_list)); | ||
1110 | 241 | |||
1111 | 242 | initialized= 1; | ||
1112 | 243 | |||
1113 | 244 | pthread_mutex_lock(&LOCK_load_client_plugin); | ||
1114 | 245 | |||
1115 | 246 | for (builtin= mysql_client_builtins; *builtin; builtin++) | ||
1116 | 247 | add_plugin(&mysql, *builtin, 0, 0, 0); | ||
1117 | 248 | |||
1118 | 249 | pthread_mutex_unlock(&LOCK_load_client_plugin); | ||
1119 | 250 | |||
1120 | 251 | load_env_plugins(&mysql); | ||
1121 | 252 | |||
1122 | 253 | return 0; | ||
1123 | 254 | } | ||
1124 | 255 | |||
1125 | 256 | /** | ||
1126 | 257 | Deinitializes the client plugin layer. | ||
1127 | 258 | |||
1128 | 259 | Unloades all client plugins and frees any associated resources. | ||
1129 | 260 | */ | ||
1130 | 261 | void mysql_client_plugin_deinit() | ||
1131 | 262 | { | ||
1132 | 263 | int i; | ||
1133 | 264 | struct st_client_plugin_int *p; | ||
1134 | 265 | |||
1135 | 266 | if (!initialized) | ||
1136 | 267 | return; | ||
1137 | 268 | |||
1138 | 269 | for (i=0; i < MYSQL_CLIENT_MAX_PLUGINS; i++) | ||
1139 | 270 | for (p= plugin_list[i]; p; p= p->next) | ||
1140 | 271 | { | ||
1141 | 272 | if (p->plugin->deinit) | ||
1142 | 273 | p->plugin->deinit(); | ||
1143 | 274 | if (p->dlhandle) | ||
1144 | 275 | dlclose(p->dlhandle); | ||
1145 | 276 | } | ||
1146 | 277 | |||
1147 | 278 | bzero(&plugin_list, sizeof(plugin_list)); | ||
1148 | 279 | initialized= 0; | ||
1149 | 280 | free_root(&mem_root, MYF(0)); | ||
1150 | 281 | pthread_mutex_destroy(&LOCK_load_client_plugin); | ||
1151 | 282 | } | ||
1152 | 283 | |||
1153 | 284 | /************* public facing functions, for client consumption *********/ | ||
1154 | 285 | |||
1155 | 286 | /* see <mysql/client_plugin.h> for a full description */ | ||
1156 | 287 | struct st_mysql_client_plugin * | ||
1157 | 288 | mysql_client_register_plugin(MYSQL *mysql, | ||
1158 | 289 | struct st_mysql_client_plugin *plugin) | ||
1159 | 290 | { | ||
1160 | 291 | if (is_not_initialized(mysql, plugin->name)) | ||
1161 | 292 | return NULL; | ||
1162 | 293 | |||
1163 | 294 | pthread_mutex_lock(&LOCK_load_client_plugin); | ||
1164 | 295 | |||
1165 | 296 | /* make sure the plugin wasn't loaded meanwhile */ | ||
1166 | 297 | if (find_plugin(plugin->name, plugin->type)) | ||
1167 | 298 | { | ||
1168 | 299 | set_mysql_extended_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, | ||
1169 | 300 | unknown_sqlstate, ER(CR_AUTH_PLUGIN_CANNOT_LOAD), | ||
1170 | 301 | plugin->name, "it is already loaded"); | ||
1171 | 302 | plugin= NULL; | ||
1172 | 303 | } | ||
1173 | 304 | else | ||
1174 | 305 | plugin= add_plugin(mysql, plugin, 0, 0, 0); | ||
1175 | 306 | |||
1176 | 307 | pthread_mutex_unlock(&LOCK_load_client_plugin); | ||
1177 | 308 | return plugin; | ||
1178 | 309 | } | ||
1179 | 310 | |||
1180 | 311 | /* see <mysql/client_plugin.h> for a full description */ | ||
1181 | 312 | struct st_mysql_client_plugin * | ||
1182 | 313 | mysql_load_plugin_v(MYSQL *mysql, const char *name, int type, | ||
1183 | 314 | int argc, va_list args) | ||
1184 | 315 | { | ||
1185 | 316 | const char *errmsg; | ||
1186 | 317 | char dlpath[FN_REFLEN+1]; | ||
1187 | 318 | void *sym, *dlhandle; | ||
1188 | 319 | struct st_mysql_client_plugin *plugin; | ||
1189 | 320 | #ifdef _WIN32 | ||
1190 | 321 | char win_errormsg[2048]; | ||
1191 | 322 | #endif | ||
1192 | 323 | |||
1193 | 324 | DBUG_ENTER ("mysql_load_plugin_v"); | ||
1194 | 325 | DBUG_PRINT ("entry", ("name=%s type=%d int argc=%d", name, type, argc)); | ||
1195 | 326 | if (is_not_initialized(mysql, name)) | ||
1196 | 327 | { | ||
1197 | 328 | DBUG_PRINT ("leave", ("mysql not initialized")); | ||
1198 | 329 | DBUG_RETURN (NULL); | ||
1199 | 330 | } | ||
1200 | 331 | |||
1201 | 332 | pthread_mutex_lock(&LOCK_load_client_plugin); | ||
1202 | 333 | |||
1203 | 334 | /* make sure the plugin wasn't loaded meanwhile */ | ||
1204 | 335 | if (type >= 0 && find_plugin(name, type)) | ||
1205 | 336 | { | ||
1206 | 337 | errmsg= "it is already loaded"; | ||
1207 | 338 | goto err; | ||
1208 | 339 | } | ||
1209 | 340 | |||
1210 | 341 | /* Compile dll path */ | ||
1211 | 342 | strxnmov(dlpath, sizeof(dlpath) - 1, | ||
1212 | 343 | mysql->options.extension && mysql->options.extension->plugin_dir ? | ||
1213 | 344 | mysql->options.extension->plugin_dir : PLUGINDIR, "/", | ||
1214 | 345 | name, SO_EXT, NullS); | ||
1215 | 346 | |||
1216 | 347 | DBUG_PRINT ("info", ("dlopeninig %s", dlpath)); | ||
1217 | 348 | /* Open new dll handle */ | ||
1218 | 349 | if (!(dlhandle= dlopen(dlpath, RTLD_NOW))) | ||
1219 | 350 | { | ||
1220 | 351 | #if defined(__APPLE__) | ||
1221 | 352 | /* Apple supports plugins with .so also, so try this as well */ | ||
1222 | 353 | strxnmov(dlpath, sizeof(dlpath) - 1, | ||
1223 | 354 | mysql->options.extension && mysql->options.extension->plugin_dir ? | ||
1224 | 355 | mysql->options.extension->plugin_dir : PLUGINDIR, "/", | ||
1225 | 356 | name, ".so", NullS); | ||
1226 | 357 | if ((dlhandle= dlopen(dlpath, RTLD_NOW))) | ||
1227 | 358 | goto have_plugin; | ||
1228 | 359 | #endif | ||
1229 | 360 | |||
1230 | 361 | DBUG_PRINT ("info", ("failed to dlopen")); | ||
1231 | 362 | #ifdef _WIN32 | ||
1232 | 363 | if(FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, | ||
1233 | 364 | 0, GetLastError(), 0, win_errormsg, 2048, NULL)) | ||
1234 | 365 | errmsg= win_errormsg; | ||
1235 | 366 | else | ||
1236 | 367 | errmsg= ""; | ||
1237 | 368 | #else | ||
1238 | 369 | errmsg= dlerror(); | ||
1239 | 370 | #endif | ||
1240 | 371 | goto err; | ||
1241 | 372 | } | ||
1242 | 373 | |||
1243 | 374 | #if defined(__APPLE__) | ||
1244 | 375 | have_plugin: | ||
1245 | 376 | #endif | ||
1246 | 377 | if (!(sym= dlsym(dlhandle, plugin_declarations_sym))) | ||
1247 | 378 | { | ||
1248 | 379 | errmsg= "not a plugin"; | ||
1249 | 380 | dlclose(dlhandle); | ||
1250 | 381 | goto err; | ||
1251 | 382 | } | ||
1252 | 383 | |||
1253 | 384 | plugin= (struct st_mysql_client_plugin*)sym; | ||
1254 | 385 | |||
1255 | 386 | if (type >=0 && type != plugin->type) | ||
1256 | 387 | { | ||
1257 | 388 | errmsg= "type mismatch"; | ||
1258 | 389 | goto err; | ||
1259 | 390 | } | ||
1260 | 391 | |||
1261 | 392 | if (strcmp(name, plugin->name)) | ||
1262 | 393 | { | ||
1263 | 394 | errmsg= "name mismatch"; | ||
1264 | 395 | goto err; | ||
1265 | 396 | } | ||
1266 | 397 | |||
1267 | 398 | if (type < 0 && find_plugin(name, plugin->type)) | ||
1268 | 399 | { | ||
1269 | 400 | errmsg= "it is already loaded"; | ||
1270 | 401 | goto err; | ||
1271 | 402 | } | ||
1272 | 403 | |||
1273 | 404 | plugin= add_plugin(mysql, plugin, dlhandle, argc, args); | ||
1274 | 405 | |||
1275 | 406 | pthread_mutex_unlock(&LOCK_load_client_plugin); | ||
1276 | 407 | |||
1277 | 408 | DBUG_PRINT ("leave", ("plugin loaded ok")); | ||
1278 | 409 | DBUG_RETURN (plugin); | ||
1279 | 410 | |||
1280 | 411 | err: | ||
1281 | 412 | pthread_mutex_unlock(&LOCK_load_client_plugin); | ||
1282 | 413 | DBUG_PRINT ("leave", ("plugin load error : %s", errmsg)); | ||
1283 | 414 | set_mysql_extended_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, unknown_sqlstate, | ||
1284 | 415 | ER(CR_AUTH_PLUGIN_CANNOT_LOAD), name, errmsg); | ||
1285 | 416 | DBUG_RETURN (NULL); | ||
1286 | 417 | } | ||
1287 | 418 | |||
1288 | 419 | /* see <mysql/client_plugin.h> for a full description */ | ||
1289 | 420 | struct st_mysql_client_plugin * | ||
1290 | 421 | mysql_load_plugin(MYSQL *mysql, const char *name, int type, int argc, ...) | ||
1291 | 422 | { | ||
1292 | 423 | struct st_mysql_client_plugin *p; | ||
1293 | 424 | va_list args; | ||
1294 | 425 | va_start(args, argc); | ||
1295 | 426 | p= mysql_load_plugin_v(mysql, name, type, argc, args); | ||
1296 | 427 | va_end(args); | ||
1297 | 428 | return p; | ||
1298 | 429 | } | ||
1299 | 430 | |||
1300 | 431 | /* see <mysql/client_plugin.h> for a full description */ | ||
1301 | 432 | struct st_mysql_client_plugin * | ||
1302 | 433 | mysql_client_find_plugin(MYSQL *mysql, const char *name, int type) | ||
1303 | 434 | { | ||
1304 | 435 | struct st_mysql_client_plugin *p; | ||
1305 | 436 | |||
1306 | 437 | DBUG_ENTER ("mysql_client_find_plugin"); | ||
1307 | 438 | DBUG_PRINT ("entry", ("name=%s, type=%d", name, type)); | ||
1308 | 439 | if (is_not_initialized(mysql, name)) | ||
1309 | 440 | DBUG_RETURN (NULL); | ||
1310 | 441 | |||
1311 | 442 | if (type < 0 || type >= MYSQL_CLIENT_MAX_PLUGINS) | ||
1312 | 443 | { | ||
1313 | 444 | set_mysql_extended_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, unknown_sqlstate, | ||
1314 | 445 | ER(CR_AUTH_PLUGIN_CANNOT_LOAD), name, | ||
1315 | 446 | "invalid type"); | ||
1316 | 447 | } | ||
1317 | 448 | |||
1318 | 449 | if ((p= find_plugin(name, type))) | ||
1319 | 450 | { | ||
1320 | 451 | DBUG_PRINT ("leave", ("found %p", p)); | ||
1321 | 452 | DBUG_RETURN (p); | ||
1322 | 453 | } | ||
1323 | 454 | |||
1324 | 455 | /* not found, load it */ | ||
1325 | 456 | p= mysql_load_plugin(mysql, name, type, 0); | ||
1326 | 457 | DBUG_PRINT ("leave", ("loaded %p", p)); | ||
1327 | 458 | DBUG_RETURN (p); | ||
1328 | 459 | } | ||
1329 | 460 | |||
1330 | 461 | |||
1331 | 462 | /* see <mysql/client_plugin.h> for a full description */ | ||
1332 | 463 | int mysql_plugin_options(struct st_mysql_client_plugin *plugin, | ||
1333 | 464 | const char *option, | ||
1334 | 465 | const void *value) | ||
1335 | 466 | { | ||
1336 | 467 | DBUG_ENTER("mysql_plugin_options"); | ||
1337 | 468 | /* does the plugin support options call? */ | ||
1338 | 469 | if (!plugin || !plugin->options) | ||
1339 | 470 | DBUG_RETURN(1); | ||
1340 | 471 | DBUG_RETURN(plugin->options(option, value)); | ||
1341 | 472 | } | ||
1342 | 0 | 473 | ||
1343 | === added directory '.pc/71_disable_rpl_tests.patch' | |||
1344 | === renamed directory '.pc/71_disable_rpl_tests.patch' => '.pc/71_disable_rpl_tests.patch.moved' | |||
1345 | === added file '.pc/71_disable_rpl_tests.patch/.timestamp' | |||
1346 | === added directory '.pc/71_disable_rpl_tests.patch/mysql-test' | |||
1347 | === added directory '.pc/71_disable_rpl_tests.patch/mysql-test/suite' | |||
1348 | === added directory '.pc/71_disable_rpl_tests.patch/mysql-test/suite/rpl' | |||
1349 | === added directory '.pc/71_disable_rpl_tests.patch/mysql-test/suite/rpl/t' | |||
1350 | === added file '.pc/71_disable_rpl_tests.patch/mysql-test/suite/rpl/t/disabled.def' | |||
1351 | --- .pc/71_disable_rpl_tests.patch/mysql-test/suite/rpl/t/disabled.def 1970-01-01 00:00:00 +0000 | |||
1352 | +++ .pc/71_disable_rpl_tests.patch/mysql-test/suite/rpl/t/disabled.def 2012-03-30 01:16:23 +0000 | |||
1353 | @@ -0,0 +1,17 @@ | |||
1354 | 1 | ############################################################################## | ||
1355 | 2 | # | ||
1356 | 3 | # List the test cases that are to be disabled temporarily. | ||
1357 | 4 | # | ||
1358 | 5 | # Separate the test case name and the comment with ':'. | ||
1359 | 6 | # | ||
1360 | 7 | # <testcasename> : BUG#<xxxx> <date disabled> <disabler> <comment> | ||
1361 | 8 | # | ||
1362 | 9 | # Do not use any TAB characters for whitespace. | ||
1363 | 10 | # | ||
1364 | 11 | ############################################################################## | ||
1365 | 12 | |||
1366 | 13 | rpl_row_create_table : Bug#11759274 2010-02-27 andrei failed different way than earlier with bug#45576 | ||
1367 | 14 | rpl_spec_variables : BUG#11755836 2009-10-27 jasonh rpl_spec_variables fails on PB2 hpux | ||
1368 | 15 | rpl_get_master_version_and_clock : Bug#11766137 Jan 05 2011 joro Valgrind warnings rpl_get_master_version_and_clock | ||
1369 | 16 | rpl_row_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out | ||
1370 | 17 | rpl_stm_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out | ||
1371 | 0 | 18 | ||
1372 | === added directory '.pc/72_fix_standalone_tests.patch' | |||
1373 | === renamed directory '.pc/72_fix_standalone_tests.patch' => '.pc/72_fix_standalone_tests.patch.moved' | |||
1374 | === added file '.pc/72_fix_standalone_tests.patch/.timestamp' | |||
1375 | === added directory '.pc/72_fix_standalone_tests.patch/mysql-test' | |||
1376 | === added directory '.pc/72_fix_standalone_tests.patch/mysql-test/lib' | |||
1377 | === added file '.pc/72_fix_standalone_tests.patch/mysql-test/lib/mtr_cases.pm' | |||
1378 | --- .pc/72_fix_standalone_tests.patch/mysql-test/lib/mtr_cases.pm 1970-01-01 00:00:00 +0000 | |||
1379 | +++ .pc/72_fix_standalone_tests.patch/mysql-test/lib/mtr_cases.pm 2012-03-30 01:16:23 +0000 | |||
1380 | @@ -0,0 +1,1265 @@ | |||
1381 | 1 | # -*- cperl -*- | ||
1382 | 2 | # Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. | ||
1383 | 3 | # | ||
1384 | 4 | # This program is free software; you can redistribute it and/or modify | ||
1385 | 5 | # it under the terms of the GNU General Public License as published by | ||
1386 | 6 | # the Free Software Foundation; version 2 of the License. | ||
1387 | 7 | # | ||
1388 | 8 | # This program is distributed in the hope that it will be useful, | ||
1389 | 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1390 | 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1391 | 11 | # GNU General Public License for more details. | ||
1392 | 12 | # | ||
1393 | 13 | # You should have received a copy of the GNU General Public License | ||
1394 | 14 | # along with this program; if not, write to the Free Software | ||
1395 | 15 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
1396 | 16 | |||
1397 | 17 | # This is a library file used by the Perl version of mysql-test-run, | ||
1398 | 18 | # and is part of the translation of the Bourne shell script with the | ||
1399 | 19 | # same name. | ||
1400 | 20 | |||
1401 | 21 | package mtr_cases; | ||
1402 | 22 | use strict; | ||
1403 | 23 | |||
1404 | 24 | use base qw(Exporter); | ||
1405 | 25 | our @EXPORT= qw(collect_option collect_test_cases); | ||
1406 | 26 | |||
1407 | 27 | use mtr_report; | ||
1408 | 28 | use mtr_match; | ||
1409 | 29 | |||
1410 | 30 | # Options used for the collect phase | ||
1411 | 31 | our $start_from; | ||
1412 | 32 | our $print_testcases; | ||
1413 | 33 | our $skip_rpl; | ||
1414 | 34 | our $do_test; | ||
1415 | 35 | our $skip_test; | ||
1416 | 36 | our $skip_combinations; | ||
1417 | 37 | our $binlog_format; | ||
1418 | 38 | our $enable_disabled; | ||
1419 | 39 | our $default_storage_engine; | ||
1420 | 40 | our $opt_with_ndbcluster_only; | ||
1421 | 41 | our $defaults_file; | ||
1422 | 42 | our $defaults_extra_file; | ||
1423 | 43 | our $quick_collect; | ||
1424 | 44 | # Set to 1 if you want the tests to override | ||
1425 | 45 | # default storage engine settings, and use MyISAM | ||
1426 | 46 | # as default. (temporary option used in connection | ||
1427 | 47 | # with the change of default storage engine to InnoDB) | ||
1428 | 48 | our $default_myisam= 1; | ||
1429 | 49 | |||
1430 | 50 | |||
1431 | 51 | sub collect_option { | ||
1432 | 52 | my ($opt, $value)= @_; | ||
1433 | 53 | |||
1434 | 54 | # Evaluate $opt as string to use "Getopt::Long::Callback legacy API" | ||
1435 | 55 | my $opt_name = "$opt"; | ||
1436 | 56 | |||
1437 | 57 | # Convert - to _ in option name | ||
1438 | 58 | $opt_name =~ s/-/_/g; | ||
1439 | 59 | no strict 'refs'; | ||
1440 | 60 | ${$opt_name}= $value; | ||
1441 | 61 | } | ||
1442 | 62 | |||
1443 | 63 | use File::Basename; | ||
1444 | 64 | use File::Spec::Functions qw / splitdir /; | ||
1445 | 65 | use IO::File(); | ||
1446 | 66 | use My::Config; | ||
1447 | 67 | use My::Platform; | ||
1448 | 68 | use My::Test; | ||
1449 | 69 | use My::Find; | ||
1450 | 70 | |||
1451 | 71 | require "mtr_misc.pl"; | ||
1452 | 72 | |||
1453 | 73 | # Precompiled regex's for tests to do or skip | ||
1454 | 74 | my $do_test_reg; | ||
1455 | 75 | my $skip_test_reg; | ||
1456 | 76 | |||
1457 | 77 | # Related to adding InnoDB plugin combinations | ||
1458 | 78 | my $lib_innodb_plugin; | ||
1459 | 79 | my $do_innodb_plugin; | ||
1460 | 80 | |||
1461 | 81 | # If "Quick collect", set to 1 once a test to run has been found. | ||
1462 | 82 | my $some_test_found; | ||
1463 | 83 | |||
1464 | 84 | sub init_pattern { | ||
1465 | 85 | my ($from, $what)= @_; | ||
1466 | 86 | return undef unless defined $from; | ||
1467 | 87 | if ( $from =~ /^[a-z0-9\.]*$/ ) { | ||
1468 | 88 | # Does not contain any regex (except . that we allow as | ||
1469 | 89 | # separator betwen suite and testname), make the pattern match | ||
1470 | 90 | # beginning of string | ||
1471 | 91 | $from= "^$from"; | ||
1472 | 92 | mtr_verbose("$what='$from'"); | ||
1473 | 93 | } | ||
1474 | 94 | # Check that pattern is a valid regex | ||
1475 | 95 | eval { "" =~/$from/; 1 } or | ||
1476 | 96 | mtr_error("Invalid regex '$from' passed to $what\nPerl says: $@"); | ||
1477 | 97 | return $from; | ||
1478 | 98 | } | ||
1479 | 99 | |||
1480 | 100 | |||
1481 | 101 | ############################################################################## | ||
1482 | 102 | # | ||
1483 | 103 | # Collect information about test cases to be run | ||
1484 | 104 | # | ||
1485 | 105 | ############################################################################## | ||
1486 | 106 | |||
1487 | 107 | sub collect_test_cases ($$$$) { | ||
1488 | 108 | my $opt_reorder= shift; # True if we're reordering tests | ||
1489 | 109 | my $suites= shift; # Semicolon separated list of test suites | ||
1490 | 110 | my $opt_cases= shift; | ||
1491 | 111 | my $opt_skip_test_list= shift; | ||
1492 | 112 | my $cases= []; # Array of hash(one hash for each testcase) | ||
1493 | 113 | |||
1494 | 114 | # Unit tests off by default also if using --do-test or --start-from | ||
1495 | 115 | $::opt_ctest= 0 if $::opt_ctest == -1 && ($do_test || $start_from); | ||
1496 | 116 | |||
1497 | 117 | $do_test_reg= init_pattern($do_test, "--do-test"); | ||
1498 | 118 | $skip_test_reg= init_pattern($skip_test, "--skip-test"); | ||
1499 | 119 | |||
1500 | 120 | $lib_innodb_plugin= | ||
1501 | 121 | my_find_file($::basedir, | ||
1502 | 122 | ["storage/innodb_plugin", "storage/innodb_plugin/.libs", | ||
1503 | 123 | "lib/mysql/plugin", "lib/plugin"], | ||
1504 | 124 | ["ha_innodb_plugin.dll", "ha_innodb_plugin.so", | ||
1505 | 125 | "ha_innodb_plugin.sl"], | ||
1506 | 126 | NOT_REQUIRED); | ||
1507 | 127 | $do_innodb_plugin= ($::mysql_version_id >= 50100 && | ||
1508 | 128 | !(IS_WINDOWS && $::opt_embedded_server) && | ||
1509 | 129 | $lib_innodb_plugin); | ||
1510 | 130 | |||
1511 | 131 | # If not reordering, we also shouldn't group by suites, unless | ||
1512 | 132 | # no test cases were named. | ||
1513 | 133 | # This also effects some logic in the loop following this. | ||
1514 | 134 | if ($opt_reorder or !@$opt_cases) | ||
1515 | 135 | { | ||
1516 | 136 | foreach my $suite (split(",", $suites)) | ||
1517 | 137 | { | ||
1518 | 138 | push(@$cases, collect_one_suite($suite, $opt_cases, $opt_skip_test_list)); | ||
1519 | 139 | last if $some_test_found; | ||
1520 | 140 | } | ||
1521 | 141 | } | ||
1522 | 142 | |||
1523 | 143 | if ( @$opt_cases ) | ||
1524 | 144 | { | ||
1525 | 145 | # A list of tests was specified on the command line | ||
1526 | 146 | # Check that the tests specified was found | ||
1527 | 147 | # in at least one suite | ||
1528 | 148 | foreach my $test_name_spec ( @$opt_cases ) | ||
1529 | 149 | { | ||
1530 | 150 | my $found= 0; | ||
1531 | 151 | my ($sname, $tname, $extension)= split_testname($test_name_spec); | ||
1532 | 152 | foreach my $test ( @$cases ) | ||
1533 | 153 | { | ||
1534 | 154 | last unless $opt_reorder; | ||
1535 | 155 | # test->{name} is always in suite.name format | ||
1536 | 156 | if ( $test->{name} =~ /^$sname.*\.$tname$/ ) | ||
1537 | 157 | { | ||
1538 | 158 | $found= 1; | ||
1539 | 159 | last; | ||
1540 | 160 | } | ||
1541 | 161 | } | ||
1542 | 162 | if ( not $found ) | ||
1543 | 163 | { | ||
1544 | 164 | $sname= "main" if !$opt_reorder and !$sname; | ||
1545 | 165 | mtr_error("Could not find '$tname' in '$suites' suite(s)") unless $sname; | ||
1546 | 166 | # If suite was part of name, find it there, may come with combinations | ||
1547 | 167 | my @this_case = collect_one_suite($sname, [ $tname ]); | ||
1548 | 168 | if (@this_case) | ||
1549 | 169 | { | ||
1550 | 170 | push (@$cases, @this_case); | ||
1551 | 171 | } | ||
1552 | 172 | else | ||
1553 | 173 | { | ||
1554 | 174 | mtr_error("Could not find '$tname' in '$sname' suite"); | ||
1555 | 175 | } | ||
1556 | 176 | } | ||
1557 | 177 | } | ||
1558 | 178 | } | ||
1559 | 179 | |||
1560 | 180 | if ( $opt_reorder && !$quick_collect) | ||
1561 | 181 | { | ||
1562 | 182 | # Reorder the test cases in an order that will make them faster to run | ||
1563 | 183 | # Make a mapping of test name to a string that represents how that test | ||
1564 | 184 | # should be sorted among the other tests. Put the most important criterion | ||
1565 | 185 | # first, then a sub-criterion, then sub-sub-criterion, etc. | ||
1566 | 186 | foreach my $tinfo (@$cases) | ||
1567 | 187 | { | ||
1568 | 188 | my @criteria = (); | ||
1569 | 189 | |||
1570 | 190 | # | ||
1571 | 191 | # Append the criteria for sorting, in order of importance. | ||
1572 | 192 | # | ||
1573 | 193 | push(@criteria, "ndb=" . ($tinfo->{'ndb_test'} ? "A" : "B")); | ||
1574 | 194 | push(@criteria, $tinfo->{template_path}); | ||
1575 | 195 | # Group test with equal options together. | ||
1576 | 196 | # Ending with "~" makes empty sort later than filled | ||
1577 | 197 | my $opts= $tinfo->{'master_opt'} ? $tinfo->{'master_opt'} : []; | ||
1578 | 198 | push(@criteria, join("!", sort @{$opts}) . "~"); | ||
1579 | 199 | # Add slave opts if any | ||
1580 | 200 | if ($tinfo->{'slave_opt'}) | ||
1581 | 201 | { | ||
1582 | 202 | push(@criteria, join("!", sort @{$tinfo->{'slave_opt'}})); | ||
1583 | 203 | } | ||
1584 | 204 | # This sorts tests with force-restart *before* identical tests | ||
1585 | 205 | push(@criteria, $tinfo->{force_restart} ? "force-restart" : "no-restart"); | ||
1586 | 206 | |||
1587 | 207 | $tinfo->{criteria}= join(" ", @criteria); | ||
1588 | 208 | } | ||
1589 | 209 | |||
1590 | 210 | @$cases = sort {$a->{criteria} cmp $b->{criteria}; } @$cases; | ||
1591 | 211 | |||
1592 | 212 | # For debugging the sort-order | ||
1593 | 213 | # foreach my $tinfo (@$cases) | ||
1594 | 214 | # { | ||
1595 | 215 | # my $tname= $tinfo->{name} . ' ' . $tinfo->{combination}; | ||
1596 | 216 | # my $crit= $tinfo->{criteria}; | ||
1597 | 217 | # print("$tname\n\t$crit\n"); | ||
1598 | 218 | # } | ||
1599 | 219 | } | ||
1600 | 220 | |||
1601 | 221 | if (defined $print_testcases){ | ||
1602 | 222 | print_testcases(@$cases); | ||
1603 | 223 | exit(1); | ||
1604 | 224 | } | ||
1605 | 225 | |||
1606 | 226 | return $cases; | ||
1607 | 227 | |||
1608 | 228 | } | ||
1609 | 229 | |||
1610 | 230 | |||
1611 | 231 | # Returns (suitename, testname, extension) | ||
1612 | 232 | sub split_testname { | ||
1613 | 233 | my ($test_name)= @_; | ||
1614 | 234 | |||
1615 | 235 | # If .test file name is used, get rid of directory part | ||
1616 | 236 | $test_name= basename($test_name) if $test_name =~ /\.test$/; | ||
1617 | 237 | |||
1618 | 238 | # Now split name on .'s | ||
1619 | 239 | my @parts= split(/\./, $test_name); | ||
1620 | 240 | |||
1621 | 241 | if (@parts == 1){ | ||
1622 | 242 | # Only testname given, ex: alias | ||
1623 | 243 | return (undef , $parts[0], undef); | ||
1624 | 244 | } elsif (@parts == 2) { | ||
1625 | 245 | # Either testname.test or suite.testname given | ||
1626 | 246 | # Ex. main.alias or alias.test | ||
1627 | 247 | |||
1628 | 248 | if ($parts[1] eq "test") | ||
1629 | 249 | { | ||
1630 | 250 | return (undef , $parts[0], $parts[1]); | ||
1631 | 251 | } | ||
1632 | 252 | else | ||
1633 | 253 | { | ||
1634 | 254 | return ($parts[0], $parts[1], undef); | ||
1635 | 255 | } | ||
1636 | 256 | |||
1637 | 257 | } elsif (@parts == 3) { | ||
1638 | 258 | # Fully specified suitename.testname.test | ||
1639 | 259 | # ex main.alias.test | ||
1640 | 260 | return ( $parts[0], $parts[1], $parts[2]); | ||
1641 | 261 | } | ||
1642 | 262 | |||
1643 | 263 | mtr_error("Illegal format of test name: $test_name"); | ||
1644 | 264 | } | ||
1645 | 265 | |||
1646 | 266 | |||
1647 | 267 | sub collect_one_suite($) | ||
1648 | 268 | { | ||
1649 | 269 | my $suite= shift; # Test suite name | ||
1650 | 270 | my $opt_cases= shift; | ||
1651 | 271 | my $opt_skip_test_list= shift; | ||
1652 | 272 | my @cases; # Array of hash | ||
1653 | 273 | |||
1654 | 274 | mtr_verbose("Collecting: $suite"); | ||
1655 | 275 | |||
1656 | 276 | my $suitedir= "$::glob_mysql_test_dir"; # Default | ||
1657 | 277 | if ( $suite ne "main" ) | ||
1658 | 278 | { | ||
1659 | 279 | # Allow suite to be path to "some dir" if $suite has at least | ||
1660 | 280 | # one directory part | ||
1661 | 281 | if ( -d $suite and splitdir($suite) > 1 ){ | ||
1662 | 282 | $suitedir= $suite; | ||
1663 | 283 | mtr_report(" - from '$suitedir'"); | ||
1664 | 284 | |||
1665 | 285 | } | ||
1666 | 286 | else | ||
1667 | 287 | { | ||
1668 | 288 | $suitedir= my_find_dir($::basedir, | ||
1669 | 289 | ["share/mysql-test/suite", | ||
1670 | 290 | "mysql-test/suite", | ||
1671 | 291 | "mysql-test", | ||
1672 | 292 | # Look in storage engine specific suite dirs | ||
1673 | 293 | "storage/*/mtr", | ||
1674 | 294 | # Look in plugin specific suite dir | ||
1675 | 295 | "plugin/$suite/tests", | ||
1676 | 296 | ], | ||
1677 | 297 | [$suite, "mtr"]); | ||
1678 | 298 | } | ||
1679 | 299 | mtr_verbose("suitedir: $suitedir"); | ||
1680 | 300 | } | ||
1681 | 301 | |||
1682 | 302 | my $testdir= "$suitedir/t"; | ||
1683 | 303 | my $resdir= "$suitedir/r"; | ||
1684 | 304 | |||
1685 | 305 | # Check if t/ exists | ||
1686 | 306 | if (-d $testdir){ | ||
1687 | 307 | # t/ exists | ||
1688 | 308 | |||
1689 | 309 | if ( -d $resdir ) | ||
1690 | 310 | { | ||
1691 | 311 | # r/exists | ||
1692 | 312 | } | ||
1693 | 313 | else | ||
1694 | 314 | { | ||
1695 | 315 | # No r/, use t/ as result dir | ||
1696 | 316 | $resdir= $testdir; | ||
1697 | 317 | } | ||
1698 | 318 | |||
1699 | 319 | } | ||
1700 | 320 | else { | ||
1701 | 321 | # No t/ dir => there can' be any r/ dir | ||
1702 | 322 | mtr_error("Can't have r/ dir without t/") if -d $resdir; | ||
1703 | 323 | |||
1704 | 324 | # No t/ or r/ => use suitedir | ||
1705 | 325 | $resdir= $testdir= $suitedir; | ||
1706 | 326 | } | ||
1707 | 327 | |||
1708 | 328 | mtr_verbose("testdir: $testdir"); | ||
1709 | 329 | mtr_verbose("resdir: $resdir"); | ||
1710 | 330 | |||
1711 | 331 | # ---------------------------------------------------------------------- | ||
1712 | 332 | # Build a hash of disabled testcases for this suite | ||
1713 | 333 | # ---------------------------------------------------------------------- | ||
1714 | 334 | my %disabled; | ||
1715 | 335 | my @disabled_collection= @{$opt_skip_test_list} if defined @{$opt_skip_test_list}; | ||
1716 | 336 | unshift (@disabled_collection, "$testdir/disabled.def"); | ||
1717 | 337 | for my $skip (@disabled_collection) | ||
1718 | 338 | { | ||
1719 | 339 | if ( open(DISABLED, $skip ) ) | ||
1720 | 340 | { | ||
1721 | 341 | # $^O on Windows considered not generic enough | ||
1722 | 342 | my $plat= (IS_WINDOWS) ? 'windows' : $^O; | ||
1723 | 343 | |||
1724 | 344 | while ( <DISABLED> ) | ||
1725 | 345 | { | ||
1726 | 346 | chomp; | ||
1727 | 347 | #diasble the test case if platform matches | ||
1728 | 348 | if ( /\@/ ) | ||
1729 | 349 | { | ||
1730 | 350 | if ( /\@$plat/ ) | ||
1731 | 351 | { | ||
1732 | 352 | /^\s*(\S+)\s*\@$plat.*:\s*(.*?)\s*$/ ; | ||
1733 | 353 | $disabled{$1}= $2 if not exists $disabled{$1}; | ||
1734 | 354 | } | ||
1735 | 355 | elsif ( /\@!(\S*)/ ) | ||
1736 | 356 | { | ||
1737 | 357 | if ( $1 ne $plat) | ||
1738 | 358 | { | ||
1739 | 359 | /^\s*(\S+)\s*\@!.*:\s*(.*?)\s*$/ ; | ||
1740 | 360 | $disabled{$1}= $2 if not exists $disabled{$1}; | ||
1741 | 361 | } | ||
1742 | 362 | } | ||
1743 | 363 | } | ||
1744 | 364 | elsif ( /^\s*(\S+)\s*:\s*(.*?)\s*$/ ) | ||
1745 | 365 | { | ||
1746 | 366 | chomp; | ||
1747 | 367 | if ( /^\s*(\S+)\s*:\s*(.*?)\s*$/ ) | ||
1748 | 368 | { | ||
1749 | 369 | $disabled{$1}= $2 if not exists $disabled{$1}; | ||
1750 | 370 | } | ||
1751 | 371 | } | ||
1752 | 372 | } | ||
1753 | 373 | close DISABLED; | ||
1754 | 374 | } | ||
1755 | 375 | } | ||
1756 | 376 | |||
1757 | 377 | # Read suite.opt file | ||
1758 | 378 | my $suite_opt_file= "$testdir/suite.opt"; | ||
1759 | 379 | my $suite_opts= []; | ||
1760 | 380 | if ( -f $suite_opt_file ) | ||
1761 | 381 | { | ||
1762 | 382 | $suite_opts= opts_from_file($suite_opt_file); | ||
1763 | 383 | } | ||
1764 | 384 | |||
1765 | 385 | if ( @$opt_cases ) | ||
1766 | 386 | { | ||
1767 | 387 | # Collect in specified order | ||
1768 | 388 | foreach my $test_name_spec ( @$opt_cases ) | ||
1769 | 389 | { | ||
1770 | 390 | my ($sname, $tname, $extension)= split_testname($test_name_spec); | ||
1771 | 391 | |||
1772 | 392 | # The test name parts have now been defined | ||
1773 | 393 | #print " suite_name: $sname\n"; | ||
1774 | 394 | #print " tname: $tname\n"; | ||
1775 | 395 | #print " extension: $extension\n"; | ||
1776 | 396 | |||
1777 | 397 | # Check cirrect suite if suitename is defined | ||
1778 | 398 | next if (defined $sname and $suite ne $sname); | ||
1779 | 399 | |||
1780 | 400 | if ( defined $extension ) | ||
1781 | 401 | { | ||
1782 | 402 | my $full_name= "$testdir/$tname.$extension"; | ||
1783 | 403 | # Extension was specified, check if the test exists | ||
1784 | 404 | if ( ! -f $full_name) | ||
1785 | 405 | { | ||
1786 | 406 | # This is only an error if suite was specified, otherwise it | ||
1787 | 407 | # could exist in another suite | ||
1788 | 408 | mtr_error("Test '$full_name' was not found in suite '$sname'") | ||
1789 | 409 | if $sname; | ||
1790 | 410 | |||
1791 | 411 | next; | ||
1792 | 412 | } | ||
1793 | 413 | } | ||
1794 | 414 | else | ||
1795 | 415 | { | ||
1796 | 416 | # No extension was specified, use default | ||
1797 | 417 | $extension= "test"; | ||
1798 | 418 | my $full_name= "$testdir/$tname.$extension"; | ||
1799 | 419 | |||
1800 | 420 | # Test not found here, could exist in other suite | ||
1801 | 421 | next if ( ! -f $full_name ); | ||
1802 | 422 | } | ||
1803 | 423 | |||
1804 | 424 | push(@cases, | ||
1805 | 425 | collect_one_test_case($suitedir, | ||
1806 | 426 | $testdir, | ||
1807 | 427 | $resdir, | ||
1808 | 428 | $suite, | ||
1809 | 429 | $tname, | ||
1810 | 430 | "$tname.$extension", | ||
1811 | 431 | \%disabled, | ||
1812 | 432 | $suite_opts)); | ||
1813 | 433 | } | ||
1814 | 434 | } | ||
1815 | 435 | else | ||
1816 | 436 | { | ||
1817 | 437 | opendir(TESTDIR, $testdir) or mtr_error("Can't open dir \"$testdir\": $!"); | ||
1818 | 438 | |||
1819 | 439 | foreach my $elem ( sort readdir(TESTDIR) ) | ||
1820 | 440 | { | ||
1821 | 441 | my $tname= mtr_match_extension($elem, 'test'); | ||
1822 | 442 | |||
1823 | 443 | next unless defined $tname; | ||
1824 | 444 | |||
1825 | 445 | # Skip tests that does not match the --do-test= filter | ||
1826 | 446 | next if ($do_test_reg and not $tname =~ /$do_test_reg/o); | ||
1827 | 447 | |||
1828 | 448 | push(@cases, | ||
1829 | 449 | collect_one_test_case($suitedir, | ||
1830 | 450 | $testdir, | ||
1831 | 451 | $resdir, | ||
1832 | 452 | $suite, | ||
1833 | 453 | $tname, | ||
1834 | 454 | $elem, | ||
1835 | 455 | \%disabled, | ||
1836 | 456 | $suite_opts)); | ||
1837 | 457 | } | ||
1838 | 458 | closedir TESTDIR; | ||
1839 | 459 | } | ||
1840 | 460 | |||
1841 | 461 | # Return empty list if no testcases found | ||
1842 | 462 | return if (@cases == 0); | ||
1843 | 463 | |||
1844 | 464 | # ---------------------------------------------------------------------- | ||
1845 | 465 | # Read combinations for this suite and build testcases x combinations | ||
1846 | 466 | # if any combinations exists | ||
1847 | 467 | # ---------------------------------------------------------------------- | ||
1848 | 468 | if ( ! $skip_combinations && ! $quick_collect ) | ||
1849 | 469 | { | ||
1850 | 470 | my @combinations; | ||
1851 | 471 | my $combination_file= "$suitedir/combinations"; | ||
1852 | 472 | #print "combination_file: $combination_file\n"; | ||
1853 | 473 | if (@::opt_combinations) | ||
1854 | 474 | { | ||
1855 | 475 | # take the combination from command-line | ||
1856 | 476 | mtr_verbose("Take the combination from command line"); | ||
1857 | 477 | foreach my $combination (@::opt_combinations) { | ||
1858 | 478 | my $comb= {}; | ||
1859 | 479 | $comb->{name}= $combination; | ||
1860 | 480 | push(@{$comb->{comb_opt}}, $combination); | ||
1861 | 481 | push(@combinations, $comb); | ||
1862 | 482 | } | ||
1863 | 483 | } | ||
1864 | 484 | elsif (-f $combination_file ) | ||
1865 | 485 | { | ||
1866 | 486 | # Read combinations file in my.cnf format | ||
1867 | 487 | mtr_verbose("Read combinations file"); | ||
1868 | 488 | my $config= My::Config->new($combination_file); | ||
1869 | 489 | foreach my $group ($config->groups()) { | ||
1870 | 490 | my $comb= {}; | ||
1871 | 491 | $comb->{name}= $group->name(); | ||
1872 | 492 | foreach my $option ( $group->options() ) { | ||
1873 | 493 | push(@{$comb->{comb_opt}}, $option->option()); | ||
1874 | 494 | } | ||
1875 | 495 | push(@combinations, $comb); | ||
1876 | 496 | } | ||
1877 | 497 | } | ||
1878 | 498 | |||
1879 | 499 | if (@combinations) | ||
1880 | 500 | { | ||
1881 | 501 | print " - adding combinations for $suite\n"; | ||
1882 | 502 | #print_testcases(@cases); | ||
1883 | 503 | |||
1884 | 504 | my @new_cases; | ||
1885 | 505 | foreach my $comb (@combinations) | ||
1886 | 506 | { | ||
1887 | 507 | foreach my $test (@cases) | ||
1888 | 508 | { | ||
1889 | 509 | |||
1890 | 510 | next if ( $test->{'skip'} ); | ||
1891 | 511 | |||
1892 | 512 | # Skip this combination if the values it provides | ||
1893 | 513 | # already are set in master_opt or slave_opt | ||
1894 | 514 | if (My::Options::is_set($test->{master_opt}, $comb->{comb_opt}) && | ||
1895 | 515 | My::Options::is_set($test->{slave_opt}, $comb->{comb_opt}) ){ | ||
1896 | 516 | next; | ||
1897 | 517 | } | ||
1898 | 518 | |||
1899 | 519 | # Copy test options | ||
1900 | 520 | my $new_test= My::Test->new(); | ||
1901 | 521 | while (my ($key, $value) = each(%$test)) { | ||
1902 | 522 | if (ref $value eq "ARRAY") { | ||
1903 | 523 | push(@{$new_test->{$key}}, @$value); | ||
1904 | 524 | } else { | ||
1905 | 525 | $new_test->{$key}= $value; | ||
1906 | 526 | } | ||
1907 | 527 | } | ||
1908 | 528 | |||
1909 | 529 | # Append the combination options to master_opt and slave_opt | ||
1910 | 530 | push(@{$new_test->{master_opt}}, @{$comb->{comb_opt}}); | ||
1911 | 531 | push(@{$new_test->{slave_opt}}, @{$comb->{comb_opt}}); | ||
1912 | 532 | |||
1913 | 533 | # Add combination name short name | ||
1914 | 534 | $new_test->{combination}= $comb->{name}; | ||
1915 | 535 | |||
1916 | 536 | # Add the new test to new test cases list | ||
1917 | 537 | push(@new_cases, $new_test); | ||
1918 | 538 | } | ||
1919 | 539 | } | ||
1920 | 540 | |||
1921 | 541 | # Add the plain test if it was not already added | ||
1922 | 542 | # as part of a combination | ||
1923 | 543 | my %added; | ||
1924 | 544 | foreach my $new_test (@new_cases){ | ||
1925 | 545 | $added{$new_test->{name}}= 1; | ||
1926 | 546 | } | ||
1927 | 547 | foreach my $test (@cases){ | ||
1928 | 548 | push(@new_cases, $test) unless $added{$test->{name}}; | ||
1929 | 549 | } | ||
1930 | 550 | |||
1931 | 551 | |||
1932 | 552 | #print_testcases(@new_cases); | ||
1933 | 553 | @cases= @new_cases; | ||
1934 | 554 | #print_testcases(@cases); | ||
1935 | 555 | } | ||
1936 | 556 | } | ||
1937 | 557 | |||
1938 | 558 | optimize_cases(\@cases); | ||
1939 | 559 | #print_testcases(@cases); | ||
1940 | 560 | |||
1941 | 561 | return @cases; | ||
1942 | 562 | } | ||
1943 | 563 | |||
1944 | 564 | |||
1945 | 565 | |||
1946 | 566 | # | ||
1947 | 567 | # Loop through all test cases | ||
1948 | 568 | # - optimize which test to run by skipping unnecessary ones | ||
1949 | 569 | # - update settings if necessary | ||
1950 | 570 | # | ||
1951 | 571 | sub optimize_cases { | ||
1952 | 572 | my ($cases)= @_; | ||
1953 | 573 | |||
1954 | 574 | foreach my $tinfo ( @$cases ) | ||
1955 | 575 | { | ||
1956 | 576 | # Skip processing if already marked as skipped | ||
1957 | 577 | next if $tinfo->{skip}; | ||
1958 | 578 | |||
1959 | 579 | # ======================================================= | ||
1960 | 580 | # If a special binlog format was selected with | ||
1961 | 581 | # --mysqld=--binlog-format=x, skip all test that does not | ||
1962 | 582 | # support it | ||
1963 | 583 | # ======================================================= | ||
1964 | 584 | #print "binlog_format: $binlog_format\n"; | ||
1965 | 585 | if (defined $binlog_format ) | ||
1966 | 586 | { | ||
1967 | 587 | # ======================================================= | ||
1968 | 588 | # Fixed --binlog-format=x specified on command line | ||
1969 | 589 | # ======================================================= | ||
1970 | 590 | if ( defined $tinfo->{'binlog_formats'} ) | ||
1971 | 591 | { | ||
1972 | 592 | #print "binlog_formats: ". join(", ", @{$tinfo->{binlog_formats}})."\n"; | ||
1973 | 593 | |||
1974 | 594 | # The test supports different binlog formats | ||
1975 | 595 | # check if the selected one is ok | ||
1976 | 596 | my $supported= | ||
1977 | 597 | grep { $_ eq $binlog_format } @{$tinfo->{'binlog_formats'}}; | ||
1978 | 598 | if ( !$supported ) | ||
1979 | 599 | { | ||
1980 | 600 | $tinfo->{'skip'}= 1; | ||
1981 | 601 | $tinfo->{'comment'}= | ||
1982 | 602 | "Doesn't support --binlog-format='$binlog_format'"; | ||
1983 | 603 | } | ||
1984 | 604 | } | ||
1985 | 605 | } | ||
1986 | 606 | else | ||
1987 | 607 | { | ||
1988 | 608 | # ======================================================= | ||
1989 | 609 | # Use dynamic switching of binlog format | ||
1990 | 610 | # ======================================================= | ||
1991 | 611 | |||
1992 | 612 | # Get binlog-format used by this test from master_opt | ||
1993 | 613 | my $test_binlog_format; | ||
1994 | 614 | foreach my $opt ( @{$tinfo->{master_opt}} ) { | ||
1995 | 615 | $test_binlog_format= | ||
1996 | 616 | mtr_match_prefix($opt, "--binlog-format=") || $test_binlog_format; | ||
1997 | 617 | } | ||
1998 | 618 | |||
1999 | 619 | if (defined $test_binlog_format and | ||
2000 | 620 | defined $tinfo->{binlog_formats} ) | ||
2001 | 621 | { | ||
2002 | 622 | my $supported= | ||
2003 | 623 | grep { $_ eq $test_binlog_format } @{$tinfo->{'binlog_formats'}}; | ||
2004 | 624 | if ( !$supported ) | ||
2005 | 625 | { | ||
2006 | 626 | $tinfo->{'skip'}= 1; | ||
2007 | 627 | $tinfo->{'comment'}= | ||
2008 | 628 | "Doesn't support --binlog-format='$test_binlog_format'"; | ||
2009 | 629 | next; | ||
2010 | 630 | } | ||
2011 | 631 | } | ||
2012 | 632 | } | ||
2013 | 633 | |||
2014 | 634 | # ======================================================= | ||
2015 | 635 | # Check that engine selected by | ||
2016 | 636 | # --default-storage-engine=<engine> is supported | ||
2017 | 637 | # ======================================================= | ||
2018 | 638 | my %builtin_engines = ('myisam' => 1, 'memory' => 1, 'csv' => 1); | ||
2019 | 639 | |||
2020 | 640 | foreach my $opt ( @{$tinfo->{master_opt}} ) { | ||
2021 | 641 | my $default_engine= | ||
2022 | 642 | mtr_match_prefix($opt, "--default-storage-engine="); | ||
2023 | 643 | |||
2024 | 644 | # Allow use of uppercase, convert to all lower case | ||
2025 | 645 | $default_engine =~ tr/A-Z/a-z/; | ||
2026 | 646 | |||
2027 | 647 | if (defined $default_engine){ | ||
2028 | 648 | |||
2029 | 649 | #print " $tinfo->{name}\n"; | ||
2030 | 650 | #print " - The test asked to use '$default_engine'\n"; | ||
2031 | 651 | |||
2032 | 652 | #my $engine_value= $::mysqld_variables{$default_engine}; | ||
2033 | 653 | #print " - The mysqld_variables says '$engine_value'\n"; | ||
2034 | 654 | |||
2035 | 655 | if ( ! exists $::mysqld_variables{$default_engine} and | ||
2036 | 656 | ! exists $builtin_engines{$default_engine} ) | ||
2037 | 657 | { | ||
2038 | 658 | $tinfo->{'skip'}= 1; | ||
2039 | 659 | $tinfo->{'comment'}= | ||
2040 | 660 | "'$default_engine' not supported"; | ||
2041 | 661 | } | ||
2042 | 662 | |||
2043 | 663 | $tinfo->{'ndb_test'}= 1 | ||
2044 | 664 | if ( $default_engine =~ /^ndb/i ); | ||
2045 | 665 | $tinfo->{'innodb_test'}= 1 | ||
2046 | 666 | if ( $default_engine =~ /^innodb/i ); | ||
2047 | 667 | } | ||
2048 | 668 | } | ||
2049 | 669 | |||
2050 | 670 | if ($quick_collect && ! $tinfo->{'skip'}) | ||
2051 | 671 | { | ||
2052 | 672 | $some_test_found= 1; | ||
2053 | 673 | return; | ||
2054 | 674 | } | ||
2055 | 675 | } | ||
2056 | 676 | } | ||
2057 | 677 | |||
2058 | 678 | |||
2059 | 679 | # | ||
2060 | 680 | # Read options from the given opt file and append them as an array | ||
2061 | 681 | # to $tinfo->{$opt_name} | ||
2062 | 682 | # | ||
2063 | 683 | sub process_opts_file { | ||
2064 | 684 | my ($tinfo, $opt_file, $opt_name)= @_; | ||
2065 | 685 | |||
2066 | 686 | if ( -f $opt_file ) | ||
2067 | 687 | { | ||
2068 | 688 | my $opts= opts_from_file($opt_file); | ||
2069 | 689 | |||
2070 | 690 | foreach my $opt ( @$opts ) | ||
2071 | 691 | { | ||
2072 | 692 | my $value; | ||
2073 | 693 | |||
2074 | 694 | # The opt file is used both to send special options to the mysqld | ||
2075 | 695 | # as well as pass special test case specific options to this | ||
2076 | 696 | # script | ||
2077 | 697 | |||
2078 | 698 | $value= mtr_match_prefix($opt, "--timezone="); | ||
2079 | 699 | if ( defined $value ) | ||
2080 | 700 | { | ||
2081 | 701 | $tinfo->{'timezone'}= $value; | ||
2082 | 702 | next; | ||
2083 | 703 | } | ||
2084 | 704 | |||
2085 | 705 | $value= mtr_match_prefix($opt, "--result-file="); | ||
2086 | 706 | if ( defined $value ) | ||
2087 | 707 | { | ||
2088 | 708 | # Specifies the file mysqltest should compare | ||
2089 | 709 | # output against | ||
2090 | 710 | $tinfo->{'result_file'}= "r/$value.result"; | ||
2091 | 711 | next; | ||
2092 | 712 | } | ||
2093 | 713 | |||
2094 | 714 | $value= mtr_match_prefix($opt, "--config-file-template="); | ||
2095 | 715 | if ( defined $value) | ||
2096 | 716 | { | ||
2097 | 717 | # Specifies the configuration file to use for this test | ||
2098 | 718 | $tinfo->{'template_path'}= dirname($tinfo->{path})."/$value"; | ||
2099 | 719 | next; | ||
2100 | 720 | } | ||
2101 | 721 | |||
2102 | 722 | # If we set default time zone, remove the one we have | ||
2103 | 723 | $value= mtr_match_prefix($opt, "--default-time-zone="); | ||
2104 | 724 | if ( defined $value ) | ||
2105 | 725 | { | ||
2106 | 726 | # Set timezone for this test case to something different | ||
2107 | 727 | $tinfo->{'timezone'}= "GMT-8"; | ||
2108 | 728 | # Fallthrough, add the --default-time-zone option | ||
2109 | 729 | } | ||
2110 | 730 | |||
2111 | 731 | # The --restart option forces a restart even if no special | ||
2112 | 732 | # option is set. If the options are the same as next testcase | ||
2113 | 733 | # there is no need to restart after the testcase | ||
2114 | 734 | # has completed | ||
2115 | 735 | if ( $opt eq "--force-restart" ) | ||
2116 | 736 | { | ||
2117 | 737 | $tinfo->{'force_restart'}= 1; | ||
2118 | 738 | next; | ||
2119 | 739 | } | ||
2120 | 740 | |||
2121 | 741 | $value= mtr_match_prefix($opt, "--testcase-timeout="); | ||
2122 | 742 | if ( defined $value ) { | ||
2123 | 743 | # Overrides test case timeout for this test | ||
2124 | 744 | $tinfo->{'case-timeout'}= $value; | ||
2125 | 745 | next; | ||
2126 | 746 | } | ||
2127 | 747 | |||
2128 | 748 | # Ok, this was a real option, add it | ||
2129 | 749 | push(@{$tinfo->{$opt_name}}, $opt); | ||
2130 | 750 | } | ||
2131 | 751 | } | ||
2132 | 752 | } | ||
2133 | 753 | |||
2134 | 754 | ############################################################################## | ||
2135 | 755 | # | ||
2136 | 756 | # Collect information about a single test case | ||
2137 | 757 | # | ||
2138 | 758 | ############################################################################## | ||
2139 | 759 | |||
2140 | 760 | sub collect_one_test_case { | ||
2141 | 761 | my $suitedir= shift; | ||
2142 | 762 | my $testdir= shift; | ||
2143 | 763 | my $resdir= shift; | ||
2144 | 764 | my $suitename= shift; | ||
2145 | 765 | my $tname= shift; | ||
2146 | 766 | my $filename= shift; | ||
2147 | 767 | my $disabled= shift; | ||
2148 | 768 | my $suite_opts= shift; | ||
2149 | 769 | |||
2150 | 770 | #print "collect_one_test_case\n"; | ||
2151 | 771 | #print " suitedir: $suitedir\n"; | ||
2152 | 772 | #print " testdir: $testdir\n"; | ||
2153 | 773 | #print " resdir: $resdir\n"; | ||
2154 | 774 | #print " suitename: $suitename\n"; | ||
2155 | 775 | #print " tname: $tname\n"; | ||
2156 | 776 | #print " filename: $filename\n"; | ||
2157 | 777 | |||
2158 | 778 | # ---------------------------------------------------------------------- | ||
2159 | 779 | # Check --start-from | ||
2160 | 780 | # ---------------------------------------------------------------------- | ||
2161 | 781 | if ( $start_from ) | ||
2162 | 782 | { | ||
2163 | 783 | # start_from can be specified as [suite.].testname_prefix | ||
2164 | 784 | my ($suite, $test, $ext)= split_testname($start_from); | ||
2165 | 785 | |||
2166 | 786 | if ( $suite and $suitename lt $suite){ | ||
2167 | 787 | return; # Skip silently | ||
2168 | 788 | } | ||
2169 | 789 | if ( $tname lt $test ){ | ||
2170 | 790 | return; # Skip silently | ||
2171 | 791 | } | ||
2172 | 792 | } | ||
2173 | 793 | |||
2174 | 794 | # ---------------------------------------------------------------------- | ||
2175 | 795 | # Set defaults | ||
2176 | 796 | # ---------------------------------------------------------------------- | ||
2177 | 797 | my $tinfo= My::Test->new | ||
2178 | 798 | ( | ||
2179 | 799 | name => "$suitename.$tname", | ||
2180 | 800 | shortname => $tname, | ||
2181 | 801 | path => "$testdir/$filename", | ||
2182 | 802 | |||
2183 | 803 | ); | ||
2184 | 804 | |||
2185 | 805 | my $result_file= "$resdir/$tname.result"; | ||
2186 | 806 | if (-f $result_file) { | ||
2187 | 807 | # Allow nonexistsing result file | ||
2188 | 808 | # in that case .test must issue "exit" otherwise test | ||
2189 | 809 | # should fail by default | ||
2190 | 810 | $tinfo->{result_file}= $result_file; | ||
2191 | 811 | } | ||
2192 | 812 | else { | ||
2193 | 813 | # No .result file exist | ||
2194 | 814 | # Remember the path where it should be | ||
2195 | 815 | # saved in case of --record | ||
2196 | 816 | $tinfo->{record_file}= $result_file; | ||
2197 | 817 | } | ||
2198 | 818 | |||
2199 | 819 | # ---------------------------------------------------------------------- | ||
2200 | 820 | # Skip some tests but include in list, just mark them as skipped | ||
2201 | 821 | # ---------------------------------------------------------------------- | ||
2202 | 822 | if ( $skip_test_reg and $tname =~ /$skip_test_reg/o ) | ||
2203 | 823 | { | ||
2204 | 824 | $tinfo->{'skip'}= 1; | ||
2205 | 825 | return $tinfo; | ||
2206 | 826 | } | ||
2207 | 827 | |||
2208 | 828 | # ---------------------------------------------------------------------- | ||
2209 | 829 | # Check for disabled tests | ||
2210 | 830 | # ---------------------------------------------------------------------- | ||
2211 | 831 | my $marked_as_disabled= 0; | ||
2212 | 832 | if ( $disabled->{$tname} or $disabled->{"$suitename.$tname"} ) | ||
2213 | 833 | { | ||
2214 | 834 | # Test was marked as disabled in suites disabled.def file | ||
2215 | 835 | $marked_as_disabled= 1; | ||
2216 | 836 | # Test name may have been disabled with or without suite name part | ||
2217 | 837 | $tinfo->{'comment'}= $disabled->{$tname} || | ||
2218 | 838 | $disabled->{"$suitename.$tname"}; | ||
2219 | 839 | } | ||
2220 | 840 | |||
2221 | 841 | my $disabled_file= "$testdir/$tname.disabled"; | ||
2222 | 842 | if ( -f $disabled_file ) | ||
2223 | 843 | { | ||
2224 | 844 | $marked_as_disabled= 1; | ||
2225 | 845 | $tinfo->{'comment'}= mtr_fromfile($disabled_file); | ||
2226 | 846 | } | ||
2227 | 847 | |||
2228 | 848 | if ( $marked_as_disabled ) | ||
2229 | 849 | { | ||
2230 | 850 | if ( $enable_disabled ) | ||
2231 | 851 | { | ||
2232 | 852 | # User has selected to run all disabled tests | ||
2233 | 853 | mtr_report(" - $tinfo->{name} wil be run although it's been disabled\n", | ||
2234 | 854 | " due to '$tinfo->{comment}'"); | ||
2235 | 855 | } | ||
2236 | 856 | else | ||
2237 | 857 | { | ||
2238 | 858 | $tinfo->{'skip'}= 1; | ||
2239 | 859 | $tinfo->{'disable'}= 1; # Sub type of 'skip' | ||
2240 | 860 | return $tinfo; | ||
2241 | 861 | } | ||
2242 | 862 | } | ||
2243 | 863 | |||
2244 | 864 | # ---------------------------------------------------------------------- | ||
2245 | 865 | # Append suite extra options to both master and slave | ||
2246 | 866 | # ---------------------------------------------------------------------- | ||
2247 | 867 | push(@{$tinfo->{'master_opt'}}, @$suite_opts); | ||
2248 | 868 | push(@{$tinfo->{'slave_opt'}}, @$suite_opts); | ||
2249 | 869 | |||
2250 | 870 | #----------------------------------------------------------------------- | ||
2251 | 871 | # Check for test specific config file | ||
2252 | 872 | #----------------------------------------------------------------------- | ||
2253 | 873 | my $test_cnf_file= "$testdir/$tname.cnf"; | ||
2254 | 874 | if ( -f $test_cnf_file) { | ||
2255 | 875 | # Specifies the configuration file to use for this test | ||
2256 | 876 | $tinfo->{'template_path'}= $test_cnf_file; | ||
2257 | 877 | } | ||
2258 | 878 | |||
2259 | 879 | # ---------------------------------------------------------------------- | ||
2260 | 880 | # Check for test specific config file | ||
2261 | 881 | # ---------------------------------------------------------------------- | ||
2262 | 882 | my $test_cnf_file= "$testdir/$tname.cnf"; | ||
2263 | 883 | if ( -f $test_cnf_file ) { | ||
2264 | 884 | # Specifies the configuration file to use for this test | ||
2265 | 885 | $tinfo->{'template_path'}= $test_cnf_file; | ||
2266 | 886 | } | ||
2267 | 887 | |||
2268 | 888 | # ---------------------------------------------------------------------- | ||
2269 | 889 | # master sh | ||
2270 | 890 | # ---------------------------------------------------------------------- | ||
2271 | 891 | my $master_sh= "$testdir/$tname-master.sh"; | ||
2272 | 892 | if ( -f $master_sh ) | ||
2273 | 893 | { | ||
2274 | 894 | if ( IS_WIN32PERL ) | ||
2275 | 895 | { | ||
2276 | 896 | $tinfo->{'skip'}= 1; | ||
2277 | 897 | $tinfo->{'comment'}= "No tests with sh scripts on Windows"; | ||
2278 | 898 | return $tinfo; | ||
2279 | 899 | } | ||
2280 | 900 | else | ||
2281 | 901 | { | ||
2282 | 902 | $tinfo->{'master_sh'}= $master_sh; | ||
2283 | 903 | } | ||
2284 | 904 | } | ||
2285 | 905 | |||
2286 | 906 | # ---------------------------------------------------------------------- | ||
2287 | 907 | # slave sh | ||
2288 | 908 | # ---------------------------------------------------------------------- | ||
2289 | 909 | my $slave_sh= "$testdir/$tname-slave.sh"; | ||
2290 | 910 | if ( -f $slave_sh ) | ||
2291 | 911 | { | ||
2292 | 912 | if ( IS_WIN32PERL ) | ||
2293 | 913 | { | ||
2294 | 914 | $tinfo->{'skip'}= 1; | ||
2295 | 915 | $tinfo->{'comment'}= "No tests with sh scripts on Windows"; | ||
2296 | 916 | return $tinfo; | ||
2297 | 917 | } | ||
2298 | 918 | else | ||
2299 | 919 | { | ||
2300 | 920 | $tinfo->{'slave_sh'}= $slave_sh; | ||
2301 | 921 | } | ||
2302 | 922 | } | ||
2303 | 923 | |||
2304 | 924 | # ---------------------------------------------------------------------- | ||
2305 | 925 | # <tname>.slave-mi | ||
2306 | 926 | # ---------------------------------------------------------------------- | ||
2307 | 927 | mtr_error("$tname: slave-mi not supported anymore") | ||
2308 | 928 | if ( -f "$testdir/$tname.slave-mi"); | ||
2309 | 929 | |||
2310 | 930 | |||
2311 | 931 | tags_from_test_file($tinfo,"$testdir/${tname}.test"); | ||
2312 | 932 | |||
2313 | 933 | if ( defined $default_storage_engine ) | ||
2314 | 934 | { | ||
2315 | 935 | # Different default engine is used | ||
2316 | 936 | # tag test to require that engine | ||
2317 | 937 | $tinfo->{'ndb_test'}= 1 | ||
2318 | 938 | if ( $default_storage_engine =~ /^ndb/i ); | ||
2319 | 939 | |||
2320 | 940 | $tinfo->{'innodb_test'}= 1 | ||
2321 | 941 | if ( $default_storage_engine =~ /^innodb/i ); | ||
2322 | 942 | |||
2323 | 943 | } | ||
2324 | 944 | |||
2325 | 945 | if ( $tinfo->{'big_test'} and ! $::opt_big_test ) | ||
2326 | 946 | { | ||
2327 | 947 | $tinfo->{'skip'}= 1; | ||
2328 | 948 | $tinfo->{'comment'}= "Test needs 'big-test' option"; | ||
2329 | 949 | return $tinfo | ||
2330 | 950 | } | ||
2331 | 951 | |||
2332 | 952 | if ( $tinfo->{'need_debug'} && ! $::debug_compiled_binaries ) | ||
2333 | 953 | { | ||
2334 | 954 | $tinfo->{'skip'}= 1; | ||
2335 | 955 | $tinfo->{'comment'}= "Test needs debug binaries"; | ||
2336 | 956 | return $tinfo | ||
2337 | 957 | } | ||
2338 | 958 | |||
2339 | 959 | if ( $tinfo->{'ndb_test'} ) | ||
2340 | 960 | { | ||
2341 | 961 | # This is a NDB test | ||
2342 | 962 | if ( $::opt_skip_ndbcluster == 2 ) | ||
2343 | 963 | { | ||
2344 | 964 | # Ndb is not supported, skip it | ||
2345 | 965 | $tinfo->{'skip'}= 1; | ||
2346 | 966 | $tinfo->{'comment'}= "No ndbcluster support or ndb tests not enabled"; | ||
2347 | 967 | return $tinfo; | ||
2348 | 968 | } | ||
2349 | 969 | elsif ( $::opt_skip_ndbcluster ) | ||
2350 | 970 | { | ||
2351 | 971 | # All ndb test's should be skipped | ||
2352 | 972 | $tinfo->{'skip'}= 1; | ||
2353 | 973 | $tinfo->{'comment'}= "No ndbcluster tests(--skip-ndbcluster)"; | ||
2354 | 974 | return $tinfo; | ||
2355 | 975 | } | ||
2356 | 976 | } | ||
2357 | 977 | else | ||
2358 | 978 | { | ||
2359 | 979 | # This is not a ndb test | ||
2360 | 980 | if ( $opt_with_ndbcluster_only ) | ||
2361 | 981 | { | ||
2362 | 982 | # Only the ndb test should be run, all other should be skipped | ||
2363 | 983 | $tinfo->{'skip'}= 1; | ||
2364 | 984 | $tinfo->{'comment'}= "Only ndbcluster tests"; | ||
2365 | 985 | return $tinfo; | ||
2366 | 986 | } | ||
2367 | 987 | } | ||
2368 | 988 | |||
2369 | 989 | if ($tinfo->{'federated_test'}) | ||
2370 | 990 | { | ||
2371 | 991 | # This is a test that needs federated, enable it | ||
2372 | 992 | push(@{$tinfo->{'master_opt'}}, "--loose-federated"); | ||
2373 | 993 | push(@{$tinfo->{'slave_opt'}}, "--loose-federated"); | ||
2374 | 994 | } | ||
2375 | 995 | |||
2376 | 996 | if ( $tinfo->{'innodb_test'} ) | ||
2377 | 997 | { | ||
2378 | 998 | # This is a test that needs innodb | ||
2379 | 999 | if ( $::mysqld_variables{'innodb'} eq "OFF" || | ||
2380 | 1000 | ! exists $::mysqld_variables{'innodb'} ) | ||
2381 | 1001 | { | ||
2382 | 1002 | # innodb is not supported, skip it | ||
2383 | 1003 | $tinfo->{'skip'}= 1; | ||
2384 | 1004 | # This comment is checked for running with innodb plugin (see above), | ||
2385 | 1005 | # please keep that in mind if changing the text. | ||
2386 | 1006 | $tinfo->{'comment'}= "No innodb support"; | ||
2387 | 1007 | # But continue processing if we may run it with innodb plugin | ||
2388 | 1008 | return $tinfo unless $do_innodb_plugin; | ||
2389 | 1009 | } | ||
2390 | 1010 | } | ||
2391 | 1011 | elsif ($default_myisam) | ||
2392 | 1012 | { | ||
2393 | 1013 | # This is a temporary fix to allow non-innodb tests to run even if | ||
2394 | 1014 | # the default storage engine is innodb. | ||
2395 | 1015 | push(@{$tinfo->{'master_opt'}}, "--default-storage-engine=MyISAM"); | ||
2396 | 1016 | push(@{$tinfo->{'slave_opt'}}, "--default-storage-engine=MyISAM"); | ||
2397 | 1017 | } | ||
2398 | 1018 | |||
2399 | 1019 | if ( $tinfo->{'need_binlog'} ) | ||
2400 | 1020 | { | ||
2401 | 1021 | if (grep(/^--skip-log-bin/, @::opt_extra_mysqld_opt) ) | ||
2402 | 1022 | { | ||
2403 | 1023 | $tinfo->{'skip'}= 1; | ||
2404 | 1024 | $tinfo->{'comment'}= "Test needs binlog"; | ||
2405 | 1025 | return $tinfo; | ||
2406 | 1026 | } | ||
2407 | 1027 | } | ||
2408 | 1028 | else | ||
2409 | 1029 | { | ||
2410 | 1030 | # Test does not need binlog, add --skip-binlog to | ||
2411 | 1031 | # the options used when starting | ||
2412 | 1032 | push(@{$tinfo->{'master_opt'}}, "--loose-skip-log-bin"); | ||
2413 | 1033 | push(@{$tinfo->{'slave_opt'}}, "--loose-skip-log-bin"); | ||
2414 | 1034 | } | ||
2415 | 1035 | |||
2416 | 1036 | if ( $tinfo->{'rpl_test'} ) | ||
2417 | 1037 | { | ||
2418 | 1038 | if ( $skip_rpl ) | ||
2419 | 1039 | { | ||
2420 | 1040 | $tinfo->{'skip'}= 1; | ||
2421 | 1041 | $tinfo->{'comment'}= "No replication tests(--skip-rpl)"; | ||
2422 | 1042 | return $tinfo; | ||
2423 | 1043 | } | ||
2424 | 1044 | } | ||
2425 | 1045 | |||
2426 | 1046 | if ( $::opt_embedded_server ) | ||
2427 | 1047 | { | ||
2428 | 1048 | if ( $tinfo->{'not_embedded'} ) | ||
2429 | 1049 | { | ||
2430 | 1050 | $tinfo->{'skip'}= 1; | ||
2431 | 1051 | $tinfo->{'comment'}= "Not run for embedded server"; | ||
2432 | 1052 | return $tinfo; | ||
2433 | 1053 | } | ||
2434 | 1054 | } | ||
2435 | 1055 | |||
2436 | 1056 | if ( $tinfo->{'need_ssl'} ) | ||
2437 | 1057 | { | ||
2438 | 1058 | # This is a test that needs ssl | ||
2439 | 1059 | if ( ! $::opt_ssl_supported ) { | ||
2440 | 1060 | # SSL is not supported, skip it | ||
2441 | 1061 | $tinfo->{'skip'}= 1; | ||
2442 | 1062 | $tinfo->{'comment'}= "No SSL support"; | ||
2443 | 1063 | return $tinfo; | ||
2444 | 1064 | } | ||
2445 | 1065 | } | ||
2446 | 1066 | |||
2447 | 1067 | # ---------------------------------------------------------------------- | ||
2448 | 1068 | # Find config file to use if not already selected in <testname>.opt file | ||
2449 | 1069 | # ---------------------------------------------------------------------- | ||
2450 | 1070 | if (defined $defaults_file) { | ||
2451 | 1071 | # Using same config file for all tests | ||
2452 | 1072 | $tinfo->{template_path}= $defaults_file; | ||
2453 | 1073 | } | ||
2454 | 1074 | elsif (! $tinfo->{template_path} ) | ||
2455 | 1075 | { | ||
2456 | 1076 | my $config= "$suitedir/my.cnf"; | ||
2457 | 1077 | if (! -f $config ) | ||
2458 | 1078 | { | ||
2459 | 1079 | # assume default.cnf will be used | ||
2460 | 1080 | $config= "include/default_my.cnf"; | ||
2461 | 1081 | |||
2462 | 1082 | # Suite has no config, autodetect which one to use | ||
2463 | 1083 | if ( $tinfo->{rpl_test} ){ | ||
2464 | 1084 | $config= "suite/rpl/my.cnf"; | ||
2465 | 1085 | if ( $tinfo->{ndb_test} ){ | ||
2466 | 1086 | $config= "suite/rpl_ndb/my.cnf"; | ||
2467 | 1087 | } | ||
2468 | 1088 | } | ||
2469 | 1089 | elsif ( $tinfo->{ndb_test} ){ | ||
2470 | 1090 | $config= "suite/ndb/my.cnf"; | ||
2471 | 1091 | } | ||
2472 | 1092 | } | ||
2473 | 1093 | $tinfo->{template_path}= $config; | ||
2474 | 1094 | } | ||
2475 | 1095 | |||
2476 | 1096 | # Set extra config file to use | ||
2477 | 1097 | if (defined $defaults_extra_file) { | ||
2478 | 1098 | $tinfo->{extra_template_path}= $defaults_extra_file; | ||
2479 | 1099 | } | ||
2480 | 1100 | |||
2481 | 1101 | # ---------------------------------------------------------------------- | ||
2482 | 1102 | # Append mysqld extra options to both master and slave | ||
2483 | 1103 | # ---------------------------------------------------------------------- | ||
2484 | 1104 | push(@{$tinfo->{'master_opt'}}, @::opt_extra_mysqld_opt); | ||
2485 | 1105 | push(@{$tinfo->{'slave_opt'}}, @::opt_extra_mysqld_opt); | ||
2486 | 1106 | |||
2487 | 1107 | # ---------------------------------------------------------------------- | ||
2488 | 1108 | # Add master opts, extra options only for master | ||
2489 | 1109 | # ---------------------------------------------------------------------- | ||
2490 | 1110 | process_opts_file($tinfo, "$testdir/$tname-master.opt", 'master_opt'); | ||
2491 | 1111 | |||
2492 | 1112 | # ---------------------------------------------------------------------- | ||
2493 | 1113 | # Add slave opts, list of extra option only for slave | ||
2494 | 1114 | # ---------------------------------------------------------------------- | ||
2495 | 1115 | process_opts_file($tinfo, "$testdir/$tname-slave.opt", 'slave_opt'); | ||
2496 | 1116 | |||
2497 | 1117 | return $tinfo; | ||
2498 | 1118 | } | ||
2499 | 1119 | |||
2500 | 1120 | |||
2501 | 1121 | # List of tags in the .test files that if found should set | ||
2502 | 1122 | # the specified value in "tinfo" | ||
2503 | 1123 | my @tags= | ||
2504 | 1124 | ( | ||
2505 | 1125 | ["include/have_binlog_format_row.inc", "binlog_formats", ["row"]], | ||
2506 | 1126 | ["include/have_binlog_format_statement.inc", "binlog_formats", ["statement"]], | ||
2507 | 1127 | ["include/have_binlog_format_mixed.inc", "binlog_formats", ["mixed"]], | ||
2508 | 1128 | ["include/have_binlog_format_mixed_or_row.inc", | ||
2509 | 1129 | "binlog_formats", ["mixed", "row"]], | ||
2510 | 1130 | ["include/have_binlog_format_mixed_or_statement.inc", | ||
2511 | 1131 | "binlog_formats", ["mixed", "statement"]], | ||
2512 | 1132 | ["include/have_binlog_format_row_or_statement.inc", | ||
2513 | 1133 | "binlog_formats", ["row", "statement"]], | ||
2514 | 1134 | |||
2515 | 1135 | ["include/have_log_bin.inc", "need_binlog", 1], | ||
2516 | 1136 | |||
2517 | 1137 | ["include/have_innodb.inc", "innodb_test", 1], | ||
2518 | 1138 | ["include/big_test.inc", "big_test", 1], | ||
2519 | 1139 | ["include/have_debug.inc", "need_debug", 1], | ||
2520 | 1140 | ["include/have_ndb.inc", "ndb_test", 1], | ||
2521 | 1141 | ["include/have_multi_ndb.inc", "ndb_test", 1], | ||
2522 | 1142 | ["include/master-slave.inc", "rpl_test", 1], | ||
2523 | 1143 | ["include/ndb_master-slave.inc", "rpl_test", 1], | ||
2524 | 1144 | ["include/ndb_master-slave.inc", "ndb_test", 1], | ||
2525 | 1145 | ["federated.inc", "federated_test", 1], | ||
2526 | 1146 | ["include/not_embedded.inc", "not_embedded", 1], | ||
2527 | 1147 | ["include/have_ssl.inc", "need_ssl", 1], | ||
2528 | 1148 | ); | ||
2529 | 1149 | |||
2530 | 1150 | |||
2531 | 1151 | sub tags_from_test_file { | ||
2532 | 1152 | my $tinfo= shift; | ||
2533 | 1153 | my $file= shift; | ||
2534 | 1154 | #mtr_verbose("$file"); | ||
2535 | 1155 | my $F= IO::File->new($file) or mtr_error("can't open file \"$file\": $!"); | ||
2536 | 1156 | |||
2537 | 1157 | while ( my $line= <$F> ) | ||
2538 | 1158 | { | ||
2539 | 1159 | |||
2540 | 1160 | # Skip line if it start's with # | ||
2541 | 1161 | next if ( $line =~ /^#/ ); | ||
2542 | 1162 | |||
2543 | 1163 | # Match this line against tag in "tags" array | ||
2544 | 1164 | foreach my $tag (@tags) | ||
2545 | 1165 | { | ||
2546 | 1166 | if ( index($line, $tag->[0]) >= 0 ) | ||
2547 | 1167 | { | ||
2548 | 1168 | # Tag matched, assign value to "tinfo" | ||
2549 | 1169 | $tinfo->{"$tag->[1]"}= $tag->[2]; | ||
2550 | 1170 | } | ||
2551 | 1171 | } | ||
2552 | 1172 | |||
2553 | 1173 | # If test sources another file, open it as well | ||
2554 | 1174 | if ( $line =~ /^\-\-([[:space:]]*)source(.*)$/ or | ||
2555 | 1175 | $line =~ /^([[:space:]]*)source(.*);$/ ) | ||
2556 | 1176 | { | ||
2557 | 1177 | my $value= $2; | ||
2558 | 1178 | $value =~ s/^\s+//; # Remove leading space | ||
2559 | 1179 | $value =~ s/[[:space:]]+$//; # Remove ending space | ||
2560 | 1180 | |||
2561 | 1181 | # Sourced file may exist relative to test or | ||
2562 | 1182 | # in global location | ||
2563 | 1183 | foreach my $sourced_file (dirname($file). "/$value", | ||
2564 | 1184 | "$::glob_mysql_test_dir/$value") | ||
2565 | 1185 | { | ||
2566 | 1186 | if ( -f $sourced_file ) | ||
2567 | 1187 | { | ||
2568 | 1188 | # Only source the file if it exists, we may get | ||
2569 | 1189 | # false positives in the regexes above if someone | ||
2570 | 1190 | # writes "source nnnn;" in a test case(such as mysqltest.test) | ||
2571 | 1191 | tags_from_test_file($tinfo, $sourced_file); | ||
2572 | 1192 | last; | ||
2573 | 1193 | } | ||
2574 | 1194 | } | ||
2575 | 1195 | } | ||
2576 | 1196 | |||
2577 | 1197 | } | ||
2578 | 1198 | } | ||
2579 | 1199 | |||
2580 | 1200 | sub unspace { | ||
2581 | 1201 | my $string= shift; | ||
2582 | 1202 | my $quote= shift; | ||
2583 | 1203 | $string =~ s/[ \t]/\x11/g; | ||
2584 | 1204 | return "$quote$string$quote"; | ||
2585 | 1205 | } | ||
2586 | 1206 | |||
2587 | 1207 | |||
2588 | 1208 | sub opts_from_file ($) { | ||
2589 | 1209 | my $file= shift; | ||
2590 | 1210 | |||
2591 | 1211 | open(FILE,"<",$file) or mtr_error("can't open file \"$file\": $!"); | ||
2592 | 1212 | my @args; | ||
2593 | 1213 | while ( <FILE> ) | ||
2594 | 1214 | { | ||
2595 | 1215 | chomp; | ||
2596 | 1216 | |||
2597 | 1217 | # --init_connect=set @a='a\\0c' | ||
2598 | 1218 | s/^\s+//; # Remove leading space | ||
2599 | 1219 | s/\s+$//; # Remove ending space | ||
2600 | 1220 | |||
2601 | 1221 | # This is strange, but we need to fill whitespace inside | ||
2602 | 1222 | # quotes with something, to remove later. We do this to | ||
2603 | 1223 | # be able to split on space. Else, we have trouble with | ||
2604 | 1224 | # options like | ||
2605 | 1225 | # | ||
2606 | 1226 | # --someopt="--insideopt1 --insideopt2" | ||
2607 | 1227 | # | ||
2608 | 1228 | # But still with this, we are not 100% sure it is right, | ||
2609 | 1229 | # we need a shell to do it right. | ||
2610 | 1230 | |||
2611 | 1231 | s/\'([^\'\"]*)\'/unspace($1,"\x0a")/ge; | ||
2612 | 1232 | s/\"([^\'\"]*)\"/unspace($1,"\x0b")/ge; | ||
2613 | 1233 | s/\'([^\'\"]*)\'/unspace($1,"\x0a")/ge; | ||
2614 | 1234 | s/\"([^\'\"]*)\"/unspace($1,"\x0b")/ge; | ||
2615 | 1235 | |||
2616 | 1236 | foreach my $arg (split(/[ \t]+/)) | ||
2617 | 1237 | { | ||
2618 | 1238 | $arg =~ tr/\x11\x0a\x0b/ \'\"/; # Put back real chars | ||
2619 | 1239 | # The outermost quotes has to go | ||
2620 | 1240 | $arg =~ s/^([^\'\"]*)\'(.*)\'([^\'\"]*)$/$1$2$3/ | ||
2621 | 1241 | or $arg =~ s/^([^\'\"]*)\"(.*)\"([^\'\"]*)$/$1$2$3/; | ||
2622 | 1242 | $arg =~ s/\\\\/\\/g; | ||
2623 | 1243 | |||
2624 | 1244 | # Do not pass empty string since my_getopt is not capable to handle it. | ||
2625 | 1245 | if (length($arg)) { | ||
2626 | 1246 | push(@args, $arg); | ||
2627 | 1247 | } | ||
2628 | 1248 | } | ||
2629 | 1249 | } | ||
2630 | 1250 | close FILE; | ||
2631 | 1251 | return \@args; | ||
2632 | 1252 | } | ||
2633 | 1253 | |||
2634 | 1254 | sub print_testcases { | ||
2635 | 1255 | my (@cases)= @_; | ||
2636 | 1256 | |||
2637 | 1257 | print "=" x 60, "\n"; | ||
2638 | 1258 | foreach my $test (@cases){ | ||
2639 | 1259 | $test->print_test(); | ||
2640 | 1260 | } | ||
2641 | 1261 | print "=" x 60, "\n"; | ||
2642 | 1262 | } | ||
2643 | 1263 | |||
2644 | 1264 | |||
2645 | 1265 | 1; | ||
2646 | 0 | 1266 | ||
2647 | === added file '.pc/applied-patches' | |||
2648 | --- .pc/applied-patches 1970-01-01 00:00:00 +0000 | |||
2649 | +++ .pc/applied-patches 2012-03-30 01:16:23 +0000 | |||
2650 | @@ -0,0 +1,6 @@ | |||
2651 | 1 | 38_scripts__mysqld_safe.sh__signals.patch | ||
2652 | 2 | 62_disable_tests.patch | ||
2653 | 3 | 70_mysql_va_list.patch | ||
2654 | 4 | 71_disable_rpl_tests.patch | ||
2655 | 5 | 72_fix_standalone_tests.patch | ||
2656 | 6 | fix-mysqldump-test.patch | ||
2657 | 0 | 7 | ||
2658 | === renamed file '.pc/applied-patches' => '.pc/applied-patches.moved' | |||
2659 | === added directory '.pc/fix-mysqldump-test.patch' | |||
2660 | === renamed directory '.pc/fix-mysqldump-test.patch' => '.pc/fix-mysqldump-test.patch.moved' | |||
2661 | === added file '.pc/fix-mysqldump-test.patch/.timestamp' | |||
2662 | === added directory '.pc/fix-mysqldump-test.patch/mysql-test' | |||
2663 | === added directory '.pc/fix-mysqldump-test.patch/mysql-test/r' | |||
2664 | === added file '.pc/fix-mysqldump-test.patch/mysql-test/r/mysqldump.result' | |||
2665 | --- .pc/fix-mysqldump-test.patch/mysql-test/r/mysqldump.result 1970-01-01 00:00:00 +0000 | |||
2666 | +++ .pc/fix-mysqldump-test.patch/mysql-test/r/mysqldump.result 2012-03-30 01:16:23 +0000 | |||
2667 | @@ -0,0 +1,5207 @@ | |||
2668 | 1 | # Bug#37938 Test "mysqldump" lacks various insert statements | ||
2669 | 2 | # Turn off concurrent inserts to avoid random errors | ||
2670 | 3 | # NOTE: We reset the variable back to saved value at the end of test | ||
2671 | 4 | SET @OLD_CONCURRENT_INSERT = @@GLOBAL.CONCURRENT_INSERT; | ||
2672 | 5 | SET @@GLOBAL.CONCURRENT_INSERT = 0; | ||
2673 | 6 | DROP TABLE IF EXISTS t1, `"t"1`, t1aa, t2, t2aa, t3; | ||
2674 | 7 | drop database if exists mysqldump_test_db; | ||
2675 | 8 | drop database if exists db1; | ||
2676 | 9 | drop database if exists db2; | ||
2677 | 10 | drop view if exists v1, v2, v3; | ||
2678 | 11 | CREATE TABLE t1(a INT, KEY (a)) KEY_BLOCK_SIZE=1024; | ||
2679 | 12 | INSERT INTO t1 VALUES (1), (2); | ||
2680 | 13 | <?xml version="1.0"?> | ||
2681 | 14 | <mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
2682 | 15 | <database name="test"> | ||
2683 | 16 | <table_structure name="t1"> | ||
2684 | 17 | <field Field="a" Type="int(11)" Null="YES" Key="MUL" Extra="" Comment="" /> | ||
2685 | 18 | <key Table="t1" Non_unique="1" Key_name="a" Seq_in_index="1" Column_name="a" Collation="A" Null="YES" Index_type="BTREE" Comment="" Index_comment="" /> | ||
2686 | 19 | </table_structure> | ||
2687 | 20 | <table_data name="t1"> | ||
2688 | 21 | <row> | ||
2689 | 22 | <field name="a">1</field> | ||
2690 | 23 | </row> | ||
2691 | 24 | <row> | ||
2692 | 25 | <field name="a">2</field> | ||
2693 | 26 | </row> | ||
2694 | 27 | </table_data> | ||
2695 | 28 | </database> | ||
2696 | 29 | </mysqldump> | ||
2697 | 30 | DROP TABLE t1; | ||
2698 | 31 | # | ||
2699 | 32 | # Bug#2005 Long decimal comparison bug. | ||
2700 | 33 | # | ||
2701 | 34 | CREATE TABLE t1 (a decimal(64, 20)); | ||
2702 | 35 | INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"), | ||
2703 | 36 | ("0987654321098765432109876543210987654321"); | ||
2704 | 37 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
2705 | 38 | /*!40101 SET character_set_client = utf8 */; | ||
2706 | 39 | CREATE TABLE `t1` ( | ||
2707 | 40 | `a` decimal(64,20) DEFAULT NULL | ||
2708 | 41 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
2709 | 42 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
2710 | 43 | INSERT INTO `t1` VALUES (1234567890123456789012345678901234567890.00000000000000000000),(987654321098765432109876543210987654321.00000000000000000000); | ||
2711 | 44 | DROP TABLE t1; | ||
2712 | 45 | # | ||
2713 | 46 | # Bug#2055 mysqldump should replace "-inf" numeric field values with "NULL" | ||
2714 | 47 | # | ||
2715 | 48 | CREATE TABLE t1 (a double); | ||
2716 | 49 | INSERT INTO t1 VALUES ('-9e999999'); | ||
2717 | 50 | Warnings: | ||
2718 | 51 | Warning 1264 Out of range value for column 'a' at row 1 | ||
2719 | 52 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
2720 | 53 | /*!40101 SET character_set_client = utf8 */; | ||
2721 | 54 | CREATE TABLE `t1` ( | ||
2722 | 55 | `a` double DEFAULT NULL | ||
2723 | 56 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
2724 | 57 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
2725 | 58 | INSERT INTO `t1` VALUES (-1.7976931348623157e308); | ||
2726 | 59 | DROP TABLE t1; | ||
2727 | 60 | # | ||
2728 | 61 | # Bug#3361 mysqldump quotes DECIMAL values inconsistently | ||
2729 | 62 | # | ||
2730 | 63 | CREATE TABLE t1 (a DECIMAL(10,5), b FLOAT); | ||
2731 | 64 | INSERT INTO t1 VALUES (1.2345, 2.3456); | ||
2732 | 65 | INSERT INTO t1 VALUES ('1.2345', 2.3456); | ||
2733 | 66 | INSERT INTO t1 VALUES ("1.2345", 2.3456); | ||
2734 | 67 | SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ANSI_QUOTES'; | ||
2735 | 68 | INSERT INTO t1 VALUES (1.2345, 2.3456); | ||
2736 | 69 | INSERT INTO t1 VALUES ('1.2345', 2.3456); | ||
2737 | 70 | INSERT INTO t1 VALUES ("1.2345", 2.3456); | ||
2738 | 71 | ERROR 42S22: Unknown column '1.2345' in 'field list' | ||
2739 | 72 | SET SQL_MODE=@OLD_SQL_MODE; | ||
2740 | 73 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
2741 | 74 | /*!40101 SET character_set_client = utf8 */; | ||
2742 | 75 | CREATE TABLE `t1` ( | ||
2743 | 76 | `a` decimal(10,5) DEFAULT NULL, | ||
2744 | 77 | `b` float DEFAULT NULL | ||
2745 | 78 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
2746 | 79 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
2747 | 80 | INSERT INTO `t1` VALUES (1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456); | ||
2748 | 81 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
2749 | 82 | /*!40101 SET character_set_client = utf8 */; | ||
2750 | 83 | CREATE TABLE `t1` ( | ||
2751 | 84 | `a` decimal(10,5) DEFAULT NULL, | ||
2752 | 85 | `b` float DEFAULT NULL | ||
2753 | 86 | ); | ||
2754 | 87 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
2755 | 88 | INSERT INTO `t1` VALUES (1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456); | ||
2756 | 89 | |||
2757 | 90 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
2758 | 91 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
2759 | 92 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
2760 | 93 | /*!40101 SET NAMES utf8 */; | ||
2761 | 94 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
2762 | 95 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
2763 | 96 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
2764 | 97 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
2765 | 98 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
2766 | 99 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
2767 | 100 | DROP TABLE IF EXISTS `t1`; | ||
2768 | 101 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
2769 | 102 | /*!40101 SET character_set_client = utf8 */; | ||
2770 | 103 | CREATE TABLE `t1` ( | ||
2771 | 104 | `a` decimal(10,5) DEFAULT NULL, | ||
2772 | 105 | `b` float DEFAULT NULL | ||
2773 | 106 | ); | ||
2774 | 107 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
2775 | 108 | |||
2776 | 109 | LOCK TABLES `t1` WRITE; | ||
2777 | 110 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
2778 | 111 | INSERT INTO `t1` VALUES (1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456); | ||
2779 | 112 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
2780 | 113 | UNLOCK TABLES; | ||
2781 | 114 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
2782 | 115 | |||
2783 | 116 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
2784 | 117 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
2785 | 118 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
2786 | 119 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
2787 | 120 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
2788 | 121 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
2789 | 122 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
2790 | 123 | |||
2791 | 124 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
2792 | 125 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
2793 | 126 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
2794 | 127 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
2795 | 128 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
2796 | 129 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
2797 | 130 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
2798 | 131 | /*!40101 SET character_set_client = utf8 */; | ||
2799 | 132 | CREATE TABLE `t1` ( | ||
2800 | 133 | `a` decimal(10,5) DEFAULT NULL, | ||
2801 | 134 | `b` float DEFAULT NULL | ||
2802 | 135 | ); | ||
2803 | 136 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
2804 | 137 | |||
2805 | 138 | INSERT INTO `t1` VALUES (1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456); | ||
2806 | 139 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
2807 | 140 | |||
2808 | 141 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
2809 | 142 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
2810 | 143 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
2811 | 144 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
2812 | 145 | |||
2813 | 146 | DROP TABLE t1; | ||
2814 | 147 | CREATE TABLE t1(a int, b text, c varchar(3)); | ||
2815 | 148 | INSERT INTO t1 VALUES (1, "test", "tes"), (2, "TEST", "TES"); | ||
2816 | 149 | <?xml version="1.0"?> | ||
2817 | 150 | <mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
2818 | 151 | <database name="test"> | ||
2819 | 152 | <table_structure name="t1"> | ||
2820 | 153 | <field Field="a" Type="int(11)" Null="YES" Key="" Extra="" Comment="" /> | ||
2821 | 154 | <field Field="b" Type="text" Null="YES" Key="" Extra="" Comment="" /> | ||
2822 | 155 | <field Field="c" Type="varchar(3)" Null="YES" Key="" Extra="" Comment="" /> | ||
2823 | 156 | </table_structure> | ||
2824 | 157 | <table_data name="t1"> | ||
2825 | 158 | <row> | ||
2826 | 159 | <field name="a">1</field> | ||
2827 | 160 | <field name="b">test</field> | ||
2828 | 161 | <field name="c">tes</field> | ||
2829 | 162 | </row> | ||
2830 | 163 | <row> | ||
2831 | 164 | <field name="a">2</field> | ||
2832 | 165 | <field name="b">TEST</field> | ||
2833 | 166 | <field name="c">TES</field> | ||
2834 | 167 | </row> | ||
2835 | 168 | </table_data> | ||
2836 | 169 | </database> | ||
2837 | 170 | </mysqldump> | ||
2838 | 171 | DROP TABLE t1; | ||
2839 | 172 | # | ||
2840 | 173 | # Bug#1707 mysqldump -X does't quote field and table names | ||
2841 | 174 | # | ||
2842 | 175 | CREATE TABLE t1 (`a"b"` char(2)); | ||
2843 | 176 | INSERT INTO t1 VALUES ("1\""), ("\"2"); | ||
2844 | 177 | <?xml version="1.0"?> | ||
2845 | 178 | <mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
2846 | 179 | <database name="test"> | ||
2847 | 180 | <table_structure name="t1"> | ||
2848 | 181 | <field Field="a"b"" Type="char(2)" Null="YES" Key="" Extra="" Comment="" /> | ||
2849 | 182 | </table_structure> | ||
2850 | 183 | <table_data name="t1"> | ||
2851 | 184 | <row> | ||
2852 | 185 | <field name="a"b"">1"</field> | ||
2853 | 186 | </row> | ||
2854 | 187 | <row> | ||
2855 | 188 | <field name="a"b"">"2</field> | ||
2856 | 189 | </row> | ||
2857 | 190 | </table_data> | ||
2858 | 191 | </database> | ||
2859 | 192 | </mysqldump> | ||
2860 | 193 | DROP TABLE t1; | ||
2861 | 194 | # | ||
2862 | 195 | # Bug#1994 mysqldump does not correctly dump UCS2 data | ||
2863 | 196 | # Bug#4261 mysqldump 10.7 (mysql 4.1.2) --skip-extended-insert drops NULL from inserts | ||
2864 | 197 | # | ||
2865 | 198 | CREATE TABLE t1 (a VARCHAR(255)) DEFAULT CHARSET koi8r; | ||
2866 | 199 | INSERT INTO t1 VALUES (_koi8r x'C1C2C3C4C5'), (NULL); | ||
2867 | 200 | |||
2868 | 201 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
2869 | 202 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
2870 | 203 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
2871 | 204 | /*!40101 SET NAMES utf8 */; | ||
2872 | 205 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
2873 | 206 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
2874 | 207 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
2875 | 208 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
2876 | 209 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
2877 | 210 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
2878 | 211 | DROP TABLE IF EXISTS `t1`; | ||
2879 | 212 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
2880 | 213 | /*!40101 SET character_set_client = utf8 */; | ||
2881 | 214 | CREATE TABLE `t1` ( | ||
2882 | 215 | `a` varchar(255) DEFAULT NULL | ||
2883 | 216 | ) ENGINE=MyISAM DEFAULT CHARSET=koi8r; | ||
2884 | 217 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
2885 | 218 | |||
2886 | 219 | LOCK TABLES `t1` WRITE; | ||
2887 | 220 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
2888 | 221 | INSERT INTO `t1` VALUES ('абцде'); | ||
2889 | 222 | INSERT INTO `t1` VALUES (NULL); | ||
2890 | 223 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
2891 | 224 | UNLOCK TABLES; | ||
2892 | 225 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
2893 | 226 | |||
2894 | 227 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
2895 | 228 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
2896 | 229 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
2897 | 230 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
2898 | 231 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
2899 | 232 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
2900 | 233 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
2901 | 234 | |||
2902 | 235 | DROP TABLE t1; | ||
2903 | 236 | # | ||
2904 | 237 | # Bug#2634 mysqldump in --compatible=mysql4 | ||
2905 | 238 | # | ||
2906 | 239 | CREATE TABLE t1 (a int) ENGINE=MYISAM; | ||
2907 | 240 | INSERT INTO t1 VALUES (1), (2); | ||
2908 | 241 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
2909 | 242 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
2910 | 243 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
2911 | 244 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
2912 | 245 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL40' */; | ||
2913 | 246 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
2914 | 247 | DROP TABLE IF EXISTS `t1`; | ||
2915 | 248 | CREATE TABLE `t1` ( | ||
2916 | 249 | `a` int(11) DEFAULT NULL | ||
2917 | 250 | ) TYPE=MyISAM; | ||
2918 | 251 | |||
2919 | 252 | LOCK TABLES `t1` WRITE; | ||
2920 | 253 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
2921 | 254 | INSERT INTO `t1` VALUES (1),(2); | ||
2922 | 255 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
2923 | 256 | UNLOCK TABLES; | ||
2924 | 257 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
2925 | 258 | |||
2926 | 259 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
2927 | 260 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
2928 | 261 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
2929 | 262 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
2930 | 263 | |||
2931 | 264 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
2932 | 265 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
2933 | 266 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
2934 | 267 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
2935 | 268 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */; | ||
2936 | 269 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
2937 | 270 | DROP TABLE IF EXISTS `t1`; | ||
2938 | 271 | CREATE TABLE `t1` ( | ||
2939 | 272 | `a` int(11) DEFAULT NULL | ||
2940 | 273 | ) TYPE=MyISAM; | ||
2941 | 274 | |||
2942 | 275 | LOCK TABLES `t1` WRITE; | ||
2943 | 276 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
2944 | 277 | INSERT INTO `t1` VALUES (1),(2); | ||
2945 | 278 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
2946 | 279 | UNLOCK TABLES; | ||
2947 | 280 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
2948 | 281 | |||
2949 | 282 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
2950 | 283 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
2951 | 284 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
2952 | 285 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
2953 | 286 | |||
2954 | 287 | DROP TABLE t1; | ||
2955 | 288 | # | ||
2956 | 289 | # Bug#2592 mysqldump doesn't quote "tricky" names correctly | ||
2957 | 290 | # | ||
2958 | 291 | create table ```a` (i int); | ||
2959 | 292 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
2960 | 293 | /*!40101 SET character_set_client = utf8 */; | ||
2961 | 294 | CREATE TABLE ```a` ( | ||
2962 | 295 | `i` int(11) DEFAULT NULL | ||
2963 | 296 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
2964 | 297 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
2965 | 298 | drop table ```a`; | ||
2966 | 299 | # | ||
2967 | 300 | # Bug#2591 mysqldump quotes names inconsistently | ||
2968 | 301 | # | ||
2969 | 302 | create table t1(a int); | ||
2970 | 303 | |||
2971 | 304 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
2972 | 305 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
2973 | 306 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
2974 | 307 | /*!40101 SET NAMES utf8 */; | ||
2975 | 308 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
2976 | 309 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
2977 | 310 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
2978 | 311 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
2979 | 312 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
2980 | 313 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
2981 | 314 | DROP TABLE IF EXISTS `t1`; | ||
2982 | 315 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
2983 | 316 | /*!40101 SET character_set_client = utf8 */; | ||
2984 | 317 | CREATE TABLE `t1` ( | ||
2985 | 318 | `a` int(11) DEFAULT NULL | ||
2986 | 319 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
2987 | 320 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
2988 | 321 | |||
2989 | 322 | LOCK TABLES `t1` WRITE; | ||
2990 | 323 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
2991 | 324 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
2992 | 325 | UNLOCK TABLES; | ||
2993 | 326 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
2994 | 327 | |||
2995 | 328 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
2996 | 329 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
2997 | 330 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
2998 | 331 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
2999 | 332 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3000 | 333 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3001 | 334 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3002 | 335 | |||
3003 | 336 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3004 | 337 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3005 | 338 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3006 | 339 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3007 | 340 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */; | ||
3008 | 341 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3009 | 342 | DROP TABLE IF EXISTS "t1"; | ||
3010 | 343 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3011 | 344 | /*!40101 SET character_set_client = utf8 */; | ||
3012 | 345 | CREATE TABLE "t1" ( | ||
3013 | 346 | "a" int(11) DEFAULT NULL | ||
3014 | 347 | ); | ||
3015 | 348 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
3016 | 349 | |||
3017 | 350 | LOCK TABLES "t1" WRITE; | ||
3018 | 351 | /*!40000 ALTER TABLE "t1" DISABLE KEYS */; | ||
3019 | 352 | /*!40000 ALTER TABLE "t1" ENABLE KEYS */; | ||
3020 | 353 | UNLOCK TABLES; | ||
3021 | 354 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3022 | 355 | |||
3023 | 356 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3024 | 357 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3025 | 358 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3026 | 359 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3027 | 360 | |||
3028 | 361 | set global sql_mode='ANSI_QUOTES'; | ||
3029 | 362 | |||
3030 | 363 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3031 | 364 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3032 | 365 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3033 | 366 | /*!40101 SET NAMES utf8 */; | ||
3034 | 367 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3035 | 368 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3036 | 369 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3037 | 370 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3038 | 371 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
3039 | 372 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3040 | 373 | DROP TABLE IF EXISTS `t1`; | ||
3041 | 374 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3042 | 375 | /*!40101 SET character_set_client = utf8 */; | ||
3043 | 376 | CREATE TABLE `t1` ( | ||
3044 | 377 | `a` int(11) DEFAULT NULL | ||
3045 | 378 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
3046 | 379 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
3047 | 380 | |||
3048 | 381 | LOCK TABLES `t1` WRITE; | ||
3049 | 382 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
3050 | 383 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
3051 | 384 | UNLOCK TABLES; | ||
3052 | 385 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3053 | 386 | |||
3054 | 387 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3055 | 388 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3056 | 389 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3057 | 390 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
3058 | 391 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3059 | 392 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3060 | 393 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3061 | 394 | |||
3062 | 395 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3063 | 396 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3064 | 397 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3065 | 398 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3066 | 399 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */; | ||
3067 | 400 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3068 | 401 | DROP TABLE IF EXISTS "t1"; | ||
3069 | 402 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3070 | 403 | /*!40101 SET character_set_client = utf8 */; | ||
3071 | 404 | CREATE TABLE "t1" ( | ||
3072 | 405 | "a" int(11) DEFAULT NULL | ||
3073 | 406 | ); | ||
3074 | 407 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
3075 | 408 | |||
3076 | 409 | LOCK TABLES "t1" WRITE; | ||
3077 | 410 | /*!40000 ALTER TABLE "t1" DISABLE KEYS */; | ||
3078 | 411 | /*!40000 ALTER TABLE "t1" ENABLE KEYS */; | ||
3079 | 412 | UNLOCK TABLES; | ||
3080 | 413 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3081 | 414 | |||
3082 | 415 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3083 | 416 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3084 | 417 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3085 | 418 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3086 | 419 | |||
3087 | 420 | set global sql_mode=''; | ||
3088 | 421 | drop table t1; | ||
3089 | 422 | # | ||
3090 | 423 | # Bug#2705 mysqldump --tab extra output | ||
3091 | 424 | # | ||
3092 | 425 | create table t1(a int); | ||
3093 | 426 | insert into t1 values (1),(2),(3); | ||
3094 | 427 | |||
3095 | 428 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3096 | 429 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3097 | 430 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3098 | 431 | /*!40101 SET NAMES utf8 */; | ||
3099 | 432 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3100 | 433 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3101 | 434 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; | ||
3102 | 435 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3103 | 436 | DROP TABLE IF EXISTS `t1`; | ||
3104 | 437 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3105 | 438 | /*!40101 SET character_set_client = utf8 */; | ||
3106 | 439 | CREATE TABLE `t1` ( | ||
3107 | 440 | `a` int(11) DEFAULT NULL | ||
3108 | 441 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
3109 | 442 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
3110 | 443 | |||
3111 | 444 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3112 | 445 | |||
3113 | 446 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3114 | 447 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
3115 | 448 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3116 | 449 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3117 | 450 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3118 | 451 | |||
3119 | 452 | 1 | ||
3120 | 453 | 2 | ||
3121 | 454 | 3 | ||
3122 | 455 | drop table t1; | ||
3123 | 456 | # | ||
3124 | 457 | # Bug#6101 create database problem | ||
3125 | 458 | # | ||
3126 | 459 | |||
3127 | 460 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3128 | 461 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3129 | 462 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3130 | 463 | /*!40101 SET NAMES utf8 */; | ||
3131 | 464 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3132 | 465 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3133 | 466 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3134 | 467 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3135 | 468 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
3136 | 469 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3137 | 470 | |||
3138 | 471 | CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */; | ||
3139 | 472 | |||
3140 | 473 | USE `test`; | ||
3141 | 474 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3142 | 475 | |||
3143 | 476 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3144 | 477 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3145 | 478 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3146 | 479 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
3147 | 480 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3148 | 481 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3149 | 482 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3150 | 483 | |||
3151 | 484 | create database mysqldump_test_db character set latin2 collate latin2_bin; | ||
3152 | 485 | |||
3153 | 486 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3154 | 487 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3155 | 488 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3156 | 489 | /*!40101 SET NAMES utf8 */; | ||
3157 | 490 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3158 | 491 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3159 | 492 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3160 | 493 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3161 | 494 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
3162 | 495 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3163 | 496 | |||
3164 | 497 | CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_test_db` /*!40100 DEFAULT CHARACTER SET latin2 COLLATE latin2_bin */; | ||
3165 | 498 | |||
3166 | 499 | USE `mysqldump_test_db`; | ||
3167 | 500 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3168 | 501 | |||
3169 | 502 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3170 | 503 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3171 | 504 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3172 | 505 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
3173 | 506 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3174 | 507 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3175 | 508 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3176 | 509 | |||
3177 | 510 | drop database mysqldump_test_db; | ||
3178 | 511 | # | ||
3179 | 512 | # Bug#7020 mysqldump --compatible=mysql40 should set --skip-set-charset --default-char... | ||
3180 | 513 | # Check that we don't dump in UTF8 in compatible mode by default, | ||
3181 | 514 | # but use the default compiled values, or the values given in | ||
3182 | 515 | # --default-character-set=xxx. However, we should dump in UTF8 | ||
3183 | 516 | # if it is explicitely set. | ||
3184 | 517 | CREATE TABLE t1 (a CHAR(10)); | ||
3185 | 518 | INSERT INTO t1 VALUES (_latin1 'ÄÖÜß'); | ||
3186 | 519 | |||
3187 | 520 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3188 | 521 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3189 | 522 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3190 | 523 | /*!40101 SET NAMES utf8 */; | ||
3191 | 524 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3192 | 525 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3193 | 526 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3194 | 527 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3195 | 528 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
3196 | 529 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3197 | 530 | DROP TABLE IF EXISTS `t1`; | ||
3198 | 531 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3199 | 532 | /*!40101 SET character_set_client = utf8 */; | ||
3200 | 533 | CREATE TABLE `t1` ( | ||
3201 | 534 | `a` char(10) DEFAULT NULL | ||
3202 | 535 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
3203 | 536 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
3204 | 537 | |||
3205 | 538 | LOCK TABLES `t1` WRITE; | ||
3206 | 539 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
3207 | 540 | INSERT INTO `t1` VALUES ('ÄÖÜß'); | ||
3208 | 541 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
3209 | 542 | UNLOCK TABLES; | ||
3210 | 543 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3211 | 544 | |||
3212 | 545 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3213 | 546 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3214 | 547 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3215 | 548 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
3216 | 549 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3217 | 550 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3218 | 551 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3219 | 552 | |||
3220 | 553 | # | ||
3221 | 554 | # Bug#8063 make test mysqldump [ fail ] | ||
3222 | 555 | # We cannot test this command because its output depends | ||
3223 | 556 | # on --default-character-set incompiled into "mysqldump" program. | ||
3224 | 557 | # If the future we can move this command into a separate test with | ||
3225 | 558 | # checking that "mysqldump" is compiled with "latin1" | ||
3226 | 559 | # | ||
3227 | 560 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3228 | 561 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3229 | 562 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3230 | 563 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3231 | 564 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */; | ||
3232 | 565 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3233 | 566 | DROP TABLE IF EXISTS `t1`; | ||
3234 | 567 | CREATE TABLE `t1` ( | ||
3235 | 568 | `a` char(10) DEFAULT NULL | ||
3236 | 569 | ) TYPE=MyISAM; | ||
3237 | 570 | |||
3238 | 571 | LOCK TABLES `t1` WRITE; | ||
3239 | 572 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
3240 | 573 | INSERT INTO `t1` VALUES ('Ž™šá'); | ||
3241 | 574 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
3242 | 575 | UNLOCK TABLES; | ||
3243 | 576 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3244 | 577 | |||
3245 | 578 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3246 | 579 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3247 | 580 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3248 | 581 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3249 | 582 | |||
3250 | 583 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3251 | 584 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3252 | 585 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3253 | 586 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3254 | 587 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */; | ||
3255 | 588 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3256 | 589 | DROP TABLE IF EXISTS `t1`; | ||
3257 | 590 | CREATE TABLE `t1` ( | ||
3258 | 591 | `a` char(10) DEFAULT NULL | ||
3259 | 592 | ) TYPE=MyISAM; | ||
3260 | 593 | |||
3261 | 594 | LOCK TABLES `t1` WRITE; | ||
3262 | 595 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
3263 | 596 | INSERT INTO `t1` VALUES ('Ž™šá'); | ||
3264 | 597 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
3265 | 598 | UNLOCK TABLES; | ||
3266 | 599 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3267 | 600 | |||
3268 | 601 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3269 | 602 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3270 | 603 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3271 | 604 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3272 | 605 | |||
3273 | 606 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3274 | 607 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3275 | 608 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3276 | 609 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3277 | 610 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */; | ||
3278 | 611 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3279 | 612 | DROP TABLE IF EXISTS `t1`; | ||
3280 | 613 | CREATE TABLE `t1` ( | ||
3281 | 614 | `a` char(10) DEFAULT NULL | ||
3282 | 615 | ) TYPE=MyISAM; | ||
3283 | 616 | |||
3284 | 617 | LOCK TABLES `t1` WRITE; | ||
3285 | 618 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
3286 | 619 | INSERT INTO `t1` VALUES ('ÄÖÜß'); | ||
3287 | 620 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
3288 | 621 | UNLOCK TABLES; | ||
3289 | 622 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3290 | 623 | |||
3291 | 624 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3292 | 625 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3293 | 626 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3294 | 627 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3295 | 628 | |||
3296 | 629 | DROP TABLE t1; | ||
3297 | 630 | # | ||
3298 | 631 | # WL#2319 Exclude Tables from dump | ||
3299 | 632 | # | ||
3300 | 633 | CREATE TABLE t1 (a int); | ||
3301 | 634 | CREATE TABLE t2 (a int); | ||
3302 | 635 | INSERT INTO t1 VALUES (1),(2),(3); | ||
3303 | 636 | INSERT INTO t2 VALUES (4),(5),(6); | ||
3304 | 637 | |||
3305 | 638 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3306 | 639 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3307 | 640 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3308 | 641 | /*!40101 SET NAMES utf8 */; | ||
3309 | 642 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3310 | 643 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3311 | 644 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3312 | 645 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3313 | 646 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
3314 | 647 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3315 | 648 | DROP TABLE IF EXISTS `t2`; | ||
3316 | 649 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3317 | 650 | /*!40101 SET character_set_client = utf8 */; | ||
3318 | 651 | CREATE TABLE `t2` ( | ||
3319 | 652 | `a` int(11) DEFAULT NULL | ||
3320 | 653 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
3321 | 654 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
3322 | 655 | |||
3323 | 656 | LOCK TABLES `t2` WRITE; | ||
3324 | 657 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | ||
3325 | 658 | INSERT INTO `t2` VALUES (4),(5),(6); | ||
3326 | 659 | /*!40000 ALTER TABLE `t2` ENABLE KEYS */; | ||
3327 | 660 | UNLOCK TABLES; | ||
3328 | 661 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3329 | 662 | |||
3330 | 663 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3331 | 664 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3332 | 665 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3333 | 666 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
3334 | 667 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3335 | 668 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3336 | 669 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3337 | 670 | |||
3338 | 671 | DROP TABLE t1; | ||
3339 | 672 | DROP TABLE t2; | ||
3340 | 673 | # | ||
3341 | 674 | # Bug#8830 mysqldump --skip-extended-insert causes --hex-blob to dump wrong values | ||
3342 | 675 | # | ||
3343 | 676 | CREATE TABLE t1 (`b` blob); | ||
3344 | 677 | INSERT INTO `t1` VALUES (0x602010000280100005E71A); | ||
3345 | 678 | |||
3346 | 679 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3347 | 680 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3348 | 681 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3349 | 682 | /*!40101 SET NAMES utf8 */; | ||
3350 | 683 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3351 | 684 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3352 | 685 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3353 | 686 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3354 | 687 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
3355 | 688 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3356 | 689 | DROP TABLE IF EXISTS `t1`; | ||
3357 | 690 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3358 | 691 | /*!40101 SET character_set_client = utf8 */; | ||
3359 | 692 | CREATE TABLE `t1` ( | ||
3360 | 693 | `b` blob | ||
3361 | 694 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
3362 | 695 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
3363 | 696 | |||
3364 | 697 | LOCK TABLES `t1` WRITE; | ||
3365 | 698 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
3366 | 699 | INSERT INTO `t1` VALUES (0x602010000280100005E71A); | ||
3367 | 700 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
3368 | 701 | UNLOCK TABLES; | ||
3369 | 702 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3370 | 703 | |||
3371 | 704 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3372 | 705 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3373 | 706 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3374 | 707 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
3375 | 708 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3376 | 709 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3377 | 710 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3378 | 711 | |||
3379 | 712 | DROP TABLE t1; | ||
3380 | 713 | # | ||
3381 | 714 | # Test for --insert-ignore | ||
3382 | 715 | # | ||
3383 | 716 | CREATE TABLE t1 (a INT); | ||
3384 | 717 | INSERT INTO t1 VALUES (1),(2),(3); | ||
3385 | 718 | INSERT INTO t1 VALUES (4),(5),(6); | ||
3386 | 719 | |||
3387 | 720 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3388 | 721 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3389 | 722 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3390 | 723 | /*!40101 SET NAMES utf8 */; | ||
3391 | 724 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3392 | 725 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3393 | 726 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3394 | 727 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3395 | 728 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
3396 | 729 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3397 | 730 | DROP TABLE IF EXISTS `t1`; | ||
3398 | 731 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3399 | 732 | /*!40101 SET character_set_client = utf8 */; | ||
3400 | 733 | CREATE TABLE `t1` ( | ||
3401 | 734 | `a` int(11) DEFAULT NULL | ||
3402 | 735 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
3403 | 736 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
3404 | 737 | |||
3405 | 738 | LOCK TABLES `t1` WRITE; | ||
3406 | 739 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
3407 | 740 | INSERT IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6); | ||
3408 | 741 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
3409 | 742 | UNLOCK TABLES; | ||
3410 | 743 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3411 | 744 | |||
3412 | 745 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3413 | 746 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3414 | 747 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3415 | 748 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
3416 | 749 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3417 | 750 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3418 | 751 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3419 | 752 | |||
3420 | 753 | |||
3421 | 754 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3422 | 755 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3423 | 756 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3424 | 757 | /*!40101 SET NAMES utf8 */; | ||
3425 | 758 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3426 | 759 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3427 | 760 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3428 | 761 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3429 | 762 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
3430 | 763 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3431 | 764 | DROP TABLE IF EXISTS `t1`; | ||
3432 | 765 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3433 | 766 | /*!40101 SET character_set_client = utf8 */; | ||
3434 | 767 | CREATE TABLE `t1` ( | ||
3435 | 768 | `a` int(11) DEFAULT NULL | ||
3436 | 769 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
3437 | 770 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
3438 | 771 | |||
3439 | 772 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
3440 | 773 | INSERT DELAYED IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6); | ||
3441 | 774 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
3442 | 775 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
3443 | 776 | |||
3444 | 777 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
3445 | 778 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
3446 | 779 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
3447 | 780 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
3448 | 781 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
3449 | 782 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
3450 | 783 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
3451 | 784 | |||
3452 | 785 | DROP TABLE t1; | ||
3453 | 786 | # | ||
3454 | 787 | # Bug#10286 mysqldump -c crashes on table that has many fields with long | ||
3455 | 788 | # names | ||
3456 | 789 | # | ||
3457 | 790 | create table t1 ( | ||
3458 | 791 | F_c4ca4238a0b923820dcc509a6f75849b int, | ||
3459 | 792 | F_c81e728d9d4c2f636f067f89cc14862c int, | ||
3460 | 793 | F_eccbc87e4b5ce2fe28308fd9f2a7baf3 int, | ||
3461 | 794 | F_a87ff679a2f3e71d9181a67b7542122c int, | ||
3462 | 795 | F_e4da3b7fbbce2345d7772b0674a318d5 int, | ||
3463 | 796 | F_1679091c5a880faf6fb5e6087eb1b2dc int, | ||
3464 | 797 | F_8f14e45fceea167a5a36dedd4bea2543 int, | ||
3465 | 798 | F_c9f0f895fb98ab9159f51fd0297e236d int, | ||
3466 | 799 | F_45c48cce2e2d7fbdea1afc51c7c6ad26 int, | ||
3467 | 800 | F_d3d9446802a44259755d38e6d163e820 int, | ||
3468 | 801 | F_6512bd43d9caa6e02c990b0a82652dca int, | ||
3469 | 802 | F_c20ad4d76fe97759aa27a0c99bff6710 int, | ||
3470 | 803 | F_c51ce410c124a10e0db5e4b97fc2af39 int, | ||
3471 | 804 | F_aab3238922bcc25a6f606eb525ffdc56 int, | ||
3472 | 805 | F_9bf31c7ff062936a96d3c8bd1f8f2ff3 int, | ||
3473 | 806 | F_c74d97b01eae257e44aa9d5bade97baf int, | ||
3474 | 807 | F_70efdf2ec9b086079795c442636b55fb int, | ||
3475 | 808 | F_6f4922f45568161a8cdf4ad2299f6d23 int, | ||
3476 | 809 | F_1f0e3dad99908345f7439f8ffabdffc4 int, | ||
3477 | 810 | F_98f13708210194c475687be6106a3b84 int, | ||
3478 | 811 | F_3c59dc048e8850243be8079a5c74d079 int, | ||
3479 | 812 | F_b6d767d2f8ed5d21a44b0e5886680cb9 int, | ||
3480 | 813 | F_37693cfc748049e45d87b8c7d8b9aacd int, | ||
3481 | 814 | F_1ff1de774005f8da13f42943881c655f int, | ||
3482 | 815 | F_8e296a067a37563370ded05f5a3bf3ec int, | ||
3483 | 816 | F_4e732ced3463d06de0ca9a15b6153677 int, | ||
3484 | 817 | F_02e74f10e0327ad868d138f2b4fdd6f0 int, | ||
3485 | 818 | F_33e75ff09dd601bbe69f351039152189 int, | ||
3486 | 819 | F_6ea9ab1baa0efb9e19094440c317e21b int, | ||
3487 | 820 | F_34173cb38f07f89ddbebc2ac9128303f int, | ||
3488 | 821 | F_c16a5320fa475530d9583c34fd356ef5 int, | ||
3489 | 822 | F_6364d3f0f495b6ab9dcf8d3b5c6e0b01 int, | ||
3490 | 823 | F_182be0c5cdcd5072bb1864cdee4d3d6e int, | ||
3491 | 824 | F_e369853df766fa44e1ed0ff613f563bd int, | ||
3492 | 825 | F_1c383cd30b7c298ab50293adfecb7b18 int, | ||
3493 | 826 | F_19ca14e7ea6328a42e0eb13d585e4c22 int, | ||
3494 | 827 | F_a5bfc9e07964f8dddeb95fc584cd965d int, | ||
3495 | 828 | F_a5771bce93e200c36f7cd9dfd0e5deaa int, | ||
3496 | 829 | F_d67d8ab4f4c10bf22aa353e27879133c int, | ||
3497 | 830 | F_d645920e395fedad7bbbed0eca3fe2e0 int, | ||
3498 | 831 | F_3416a75f4cea9109507cacd8e2f2aefc int, | ||
3499 | 832 | F_a1d0c6e83f027327d8461063f4ac58a6 int, | ||
3500 | 833 | F_17e62166fc8586dfa4d1bc0e1742c08b int, | ||
3501 | 834 | F_f7177163c833dff4b38fc8d2872f1ec6 int, | ||
3502 | 835 | F_6c8349cc7260ae62e3b1396831a8398f int, | ||
3503 | 836 | F_d9d4f495e875a2e075a1a4a6e1b9770f int, | ||
3504 | 837 | F_67c6a1e7ce56d3d6fa748ab6d9af3fd7 int, | ||
3505 | 838 | F_642e92efb79421734881b53e1e1b18b6 int, | ||
3506 | 839 | F_f457c545a9ded88f18ecee47145a72c0 int, | ||
3507 | 840 | F_c0c7c76d30bd3dcaefc96f40275bdc0a int, | ||
3508 | 841 | F_2838023a778dfaecdc212708f721b788 int, | ||
3509 | 842 | F_9a1158154dfa42caddbd0694a4e9bdc8 int, | ||
3510 | 843 | F_d82c8d1619ad8176d665453cfb2e55f0 int, | ||
3511 | 844 | F_a684eceee76fc522773286a895bc8436 int, | ||
3512 | 845 | F_b53b3a3d6ab90ce0268229151c9bde11 int, | ||
3513 | 846 | F_9f61408e3afb633e50cdf1b20de6f466 int, | ||
3514 | 847 | F_72b32a1f754ba1c09b3695e0cb6cde7f int, | ||
3515 | 848 | F_66f041e16a60928b05a7e228a89c3799 int, | ||
3516 | 849 | F_093f65e080a295f8076b1c5722a46aa2 int, | ||
3517 | 850 | F_072b030ba126b2f4b2374f342be9ed44 int, | ||
3518 | 851 | F_7f39f8317fbdb1988ef4c628eba02591 int, | ||
3519 | 852 | F_44f683a84163b3523afe57c2e008bc8c int, | ||
3520 | 853 | F_03afdbd66e7929b125f8597834fa83a4 int, | ||
3521 | 854 | F_ea5d2f1c4608232e07d3aa3d998e5135 int, | ||
3522 | 855 | F_fc490ca45c00b1249bbe3554a4fdf6fb int, | ||
3523 | 856 | F_3295c76acbf4caaed33c36b1b5fc2cb1 int, | ||
3524 | 857 | F_735b90b4568125ed6c3f678819b6e058 int, | ||
3525 | 858 | F_a3f390d88e4c41f2747bfa2f1b5f87db int, | ||
3526 | 859 | F_14bfa6bb14875e45bba028a21ed38046 int, | ||
3527 | 860 | F_7cbbc409ec990f19c78c75bd1e06f215 int, | ||
3528 | 861 | F_e2c420d928d4bf8ce0ff2ec19b371514 int, | ||
3529 | 862 | F_32bb90e8976aab5298d5da10fe66f21d int, | ||
3530 | 863 | F_d2ddea18f00665ce8623e36bd4e3c7c5 int, | ||
3531 | 864 | F_ad61ab143223efbc24c7d2583be69251 int, | ||
3532 | 865 | F_d09bf41544a3365a46c9077ebb5e35c3 int, | ||
3533 | 866 | F_fbd7939d674997cdb4692d34de8633c4 int, | ||
3534 | 867 | F_28dd2c7955ce926456240b2ff0100bde int, | ||
3535 | 868 | F_35f4a8d465e6e1edc05f3d8ab658c551 int, | ||
3536 | 869 | F_d1fe173d08e959397adf34b1d77e88d7 int, | ||
3537 | 870 | F_f033ab37c30201f73f142449d037028d int, | ||
3538 | 871 | F_43ec517d68b6edd3015b3edc9a11367b int, | ||
3539 | 872 | F_9778d5d219c5080b9a6a17bef029331c int, | ||
3540 | 873 | F_fe9fc289c3ff0af142b6d3bead98a923 int, | ||
3541 | 874 | F_68d30a9594728bc39aa24be94b319d21 int, | ||
3542 | 875 | F_3ef815416f775098fe977004015c6193 int, | ||
3543 | 876 | F_93db85ed909c13838ff95ccfa94cebd9 int, | ||
3544 | 877 | F_c7e1249ffc03eb9ded908c236bd1996d int, | ||
3545 | 878 | F_2a38a4a9316c49e5a833517c45d31070 int, | ||
3546 | 879 | F_7647966b7343c29048673252e490f736 int, | ||
3547 | 880 | F_8613985ec49eb8f757ae6439e879bb2a int, | ||
3548 | 881 | F_54229abfcfa5649e7003b83dd4755294 int, | ||
3549 | 882 | F_92cc227532d17e56e07902b254dfad10 int, | ||
3550 | 883 | F_98dce83da57b0395e163467c9dae521b int, | ||
3551 | 884 | F_f4b9ec30ad9f68f89b29639786cb62ef int, | ||
3552 | 885 | F_812b4ba287f5ee0bc9d43bbf5bbe87fb int, | ||
3553 | 886 | F_26657d5ff9020d2abefe558796b99584 int, | ||
3554 | 887 | F_e2ef524fbf3d9fe611d5a8e90fefdc9c int, | ||
3555 | 888 | F_ed3d2c21991e3bef5e069713af9fa6ca int, | ||
3556 | 889 | F_ac627ab1ccbdb62ec96e702f07f6425b int, | ||
3557 | 890 | F_f899139df5e1059396431415e770c6dd int, | ||
3558 | 891 | F_38b3eff8baf56627478ec76a704e9b52 int, | ||
3559 | 892 | F_ec8956637a99787bd197eacd77acce5e int, | ||
3560 | 893 | F_6974ce5ac660610b44d9b9fed0ff9548 int, | ||
3561 | 894 | F_c9e1074f5b3f9fc8ea15d152add07294 int, | ||
3562 | 895 | F_65b9eea6e1cc6bb9f0cd2a47751a186f int, | ||
3563 | 896 | F_f0935e4cd5920aa6c7c996a5ee53a70f int, | ||
3564 | 897 | F_a97da629b098b75c294dffdc3e463904 int, | ||
3565 | 898 | F_a3c65c2974270fd093ee8a9bf8ae7d0b int, | ||
3566 | 899 | F_2723d092b63885e0d7c260cc007e8b9d int, | ||
3567 | 900 | F_5f93f983524def3dca464469d2cf9f3e int, | ||
3568 | 901 | F_698d51a19d8a121ce581499d7b701668 int, | ||
3569 | 902 | F_7f6ffaa6bb0b408017b62254211691b5 int, | ||
3570 | 903 | F_73278a4a86960eeb576a8fd4c9ec6997 int, | ||
3571 | 904 | F_5fd0b37cd7dbbb00f97ba6ce92bf5add int, | ||
3572 | 905 | F_2b44928ae11fb9384c4cf38708677c48 int, | ||
3573 | 906 | F_c45147dee729311ef5b5c3003946c48f int, | ||
3574 | 907 | F_eb160de1de89d9058fcb0b968dbbbd68 int, | ||
3575 | 908 | F_5ef059938ba799aaa845e1c2e8a762bd int, | ||
3576 | 909 | F_07e1cd7dca89a1678042477183b7ac3f int, | ||
3577 | 910 | F_da4fb5c6e93e74d3df8527599fa62642 int, | ||
3578 | 911 | F_4c56ff4ce4aaf9573aa5dff913df997a int, | ||
3579 | 912 | F_a0a080f42e6f13b3a2df133f073095dd int, | ||
3580 | 913 | F_202cb962ac59075b964b07152d234b70 int, | ||
3581 | 914 | F_c8ffe9a587b126f152ed3d89a146b445 int, | ||
3582 | 915 | F_3def184ad8f4755ff269862ea77393dd int, | ||
3583 | 916 | F_069059b7ef840f0c74a814ec9237b6ec int, | ||
3584 | 917 | F_ec5decca5ed3d6b8079e2e7e7bacc9f2 int, | ||
3585 | 918 | F_76dc611d6ebaafc66cc0879c71b5db5c int, | ||
3586 | 919 | F_d1f491a404d6854880943e5c3cd9ca25 int, | ||
3587 | 920 | F_9b8619251a19057cff70779273e95aa6 int, | ||
3588 | 921 | F_1afa34a7f984eeabdbb0a7d494132ee5 int, | ||
3589 | 922 | F_65ded5353c5ee48d0b7d48c591b8f430 int, | ||
3590 | 923 | F_9fc3d7152ba9336a670e36d0ed79bc43 int, | ||
3591 | 924 | F_02522a2b2726fb0a03bb19f2d8d9524d int, | ||
3592 | 925 | F_7f1de29e6da19d22b51c68001e7e0e54 int, | ||
3593 | 926 | F_42a0e188f5033bc65bf8d78622277c4e int, | ||
3594 | 927 | F_3988c7f88ebcb58c6ce932b957b6f332 int, | ||
3595 | 928 | F_013d407166ec4fa56eb1e1f8cbe183b9 int, | ||
3596 | 929 | F_e00da03b685a0dd18fb6a08af0923de0 int, | ||
3597 | 930 | F_1385974ed5904a438616ff7bdb3f7439 int, | ||
3598 | 931 | F_0f28b5d49b3020afeecd95b4009adf4c int, | ||
3599 | 932 | F_a8baa56554f96369ab93e4f3bb068c22 int, | ||
3600 | 933 | F_903ce9225fca3e988c2af215d4e544d3 int, | ||
3601 | 934 | F_0a09c8844ba8f0936c20bd791130d6b6 int, | ||
3602 | 935 | F_2b24d495052a8ce66358eb576b8912c8 int, | ||
3603 | 936 | F_a5e00132373a7031000fd987a3c9f87b int, | ||
3604 | 937 | F_8d5e957f297893487bd98fa830fa6413 int, | ||
3605 | 938 | F_47d1e990583c9c67424d369f3414728e int, | ||
3606 | 939 | F_f2217062e9a397a1dca429e7d70bc6ca int, | ||
3607 | 940 | F_7ef605fc8dba5425d6965fbd4c8fbe1f int, | ||
3608 | 941 | F_a8f15eda80c50adb0e71943adc8015cf int, | ||
3609 | 942 | F_37a749d808e46495a8da1e5352d03cae int, | ||
3610 | 943 | F_b3e3e393c77e35a4a3f3cbd1e429b5dc int, | ||
3611 | 944 | F_1d7f7abc18fcb43975065399b0d1e48e int, | ||
3612 | 945 | F_2a79ea27c279e471f4d180b08d62b00a int, | ||
3613 | 946 | F_1c9ac0159c94d8d0cbedc973445af2da int, | ||
3614 | 947 | F_6c4b761a28b734fe93831e3fb400ce87 int, | ||
3615 | 948 | F_06409663226af2f3114485aa4e0a23b4 int, | ||
3616 | 949 | F_140f6969d5213fd0ece03148e62e461e int, | ||
3617 | 950 | F_b73ce398c39f506af761d2277d853a92 int, | ||
3618 | 951 | F_bd4c9ab730f5513206b999ec0d90d1fb int, | ||
3619 | 952 | F_82aa4b0af34c2313a562076992e50aa3 int, | ||
3620 | 953 | F_0777d5c17d4066b82ab86dff8a46af6f int, | ||
3621 | 954 | F_fa7cdfad1a5aaf8370ebeda47a1ff1c3 int, | ||
3622 | 955 | F_9766527f2b5d3e95d4a733fcfb77bd7e int, | ||
3623 | 956 | F_7e7757b1e12abcb736ab9a754ffb617a int, | ||
3624 | 957 | F_5878a7ab84fb43402106c575658472fa int, | ||
3625 | 958 | F_006f52e9102a8d3be2fe5614f42ba989 int, | ||
3626 | 959 | F_3636638817772e42b59d74cff571fbb3 int, | ||
3627 | 960 | F_149e9677a5989fd342ae44213df68868 int, | ||
3628 | 961 | F_a4a042cf4fd6bfb47701cbc8a1653ada int, | ||
3629 | 962 | F_1ff8a7b5dc7a7d1f0ed65aaa29c04b1e int, | ||
3630 | 963 | F_f7e6c85504ce6e82442c770f7c8606f0 int, | ||
3631 | 964 | F_bf8229696f7a3bb4700cfddef19fa23f int, | ||
3632 | 965 | F_82161242827b703e6acf9c726942a1e4 int, | ||
3633 | 966 | F_38af86134b65d0f10fe33d30dd76442e int, | ||
3634 | 967 | F_96da2f590cd7246bbde0051047b0d6f7 int, | ||
3635 | 968 | F_8f85517967795eeef66c225f7883bdcb int, | ||
3636 | 969 | F_8f53295a73878494e9bc8dd6c3c7104f int, | ||
3637 | 970 | F_045117b0e0a11a242b9765e79cbf113f int, | ||
3638 | 971 | F_fc221309746013ac554571fbd180e1c8 int, | ||
3639 | 972 | F_4c5bde74a8f110656874902f07378009 int, | ||
3640 | 973 | F_cedebb6e872f539bef8c3f919874e9d7 int, | ||
3641 | 974 | F_6cdd60ea0045eb7a6ec44c54d29ed402 int, | ||
3642 | 975 | F_eecca5b6365d9607ee5a9d336962c534 int, | ||
3643 | 976 | F_9872ed9fc22fc182d371c3e9ed316094 int, | ||
3644 | 977 | F_31fefc0e570cb3860f2a6d4b38c6490d int, | ||
3645 | 978 | F_9dcb88e0137649590b755372b040afad int, | ||
3646 | 979 | F_a2557a7b2e94197ff767970b67041697 int, | ||
3647 | 980 | F_cfecdb276f634854f3ef915e2e980c31 int, | ||
3648 | 981 | F_0aa1883c6411f7873cb83dacb17b0afc int, | ||
3649 | 982 | F_58a2fc6ed39fd083f55d4182bf88826d int, | ||
3650 | 983 | F_bd686fd640be98efaae0091fa301e613 int, | ||
3651 | 984 | F_a597e50502f5ff68e3e25b9114205d4a int, | ||
3652 | 985 | F_0336dcbab05b9d5ad24f4333c7658a0e int, | ||
3653 | 986 | F_084b6fbb10729ed4da8c3d3f5a3ae7c9 int, | ||
3654 | 987 | F_85d8ce590ad8981ca2c8286f79f59954 int, | ||
3655 | 988 | F_0e65972dce68dad4d52d063967f0a705 int, | ||
3656 | 989 | F_84d9ee44e457ddef7f2c4f25dc8fa865 int, | ||
3657 | 990 | F_3644a684f98ea8fe223c713b77189a77 int, | ||
3658 | 991 | F_757b505cfd34c64c85ca5b5690ee5293 int, | ||
3659 | 992 | F_854d6fae5ee42911677c739ee1734486 int, | ||
3660 | 993 | F_e2c0be24560d78c5e599c2a9c9d0bbd2 int, | ||
3661 | 994 | F_274ad4786c3abca69fa097b85867d9a4 int, | ||
3662 | 995 | F_eae27d77ca20db309e056e3d2dcd7d69 int, | ||
3663 | 996 | F_7eabe3a1649ffa2b3ff8c02ebfd5659f int, | ||
3664 | 997 | F_69adc1e107f7f7d035d7baf04342e1ca int, | ||
3665 | 998 | F_091d584fced301b442654dd8c23b3fc9 int, | ||
3666 | 999 | F_b1d10e7bafa4421218a51b1e1f1b0ba2 int, | ||
3667 | 1000 | F_6f3ef77ac0e3619e98159e9b6febf557 int, | ||
3668 | 1001 | F_eb163727917cbba1eea208541a643e74 int, | ||
3669 | 1002 | F_1534b76d325a8f591b52d302e7181331 int, | ||
3670 | 1003 | F_979d472a84804b9f647bc185a877a8b5 int, | ||
3671 | 1004 | F_ca46c1b9512a7a8315fa3c5a946e8265 int, | ||
3672 | 1005 | F_3b8a614226a953a8cd9526fca6fe9ba5 int, | ||
3673 | 1006 | F_45fbc6d3e05ebd93369ce542e8f2322d int, | ||
3674 | 1007 | F_63dc7ed1010d3c3b8269faf0ba7491d4 int, | ||
3675 | 1008 | F_e96ed478dab8595a7dbda4cbcbee168f int, | ||
3676 | 1009 | F_c0e190d8267e36708f955d7ab048990d int, | ||
3677 | 1010 | F_ec8ce6abb3e952a85b8551ba726a1227 int, | ||
3678 | 1011 | F_060ad92489947d410d897474079c1477 int, | ||
3679 | 1012 | F_bcbe3365e6ac95ea2c0343a2395834dd int, | ||
3680 | 1013 | F_115f89503138416a242f40fb7d7f338e int, | ||
3681 | 1014 | F_13fe9d84310e77f13a6d184dbf1232f3 int, | ||
3682 | 1015 | F_d1c38a09acc34845c6be3a127a5aacaf int, | ||
3683 | 1016 | F_9cfdf10e8fc047a44b08ed031e1f0ed1 int, | ||
3684 | 1017 | F_705f2172834666788607efbfca35afb3 int, | ||
3685 | 1018 | F_74db120f0a8e5646ef5a30154e9f6deb int, | ||
3686 | 1019 | F_57aeee35c98205091e18d1140e9f38cf int, | ||
3687 | 1020 | F_6da9003b743b65f4c0ccd295cc484e57 int, | ||
3688 | 1021 | F_9b04d152845ec0a378394003c96da594 int, | ||
3689 | 1022 | F_be83ab3ecd0db773eb2dc1b0a17836a1 int, | ||
3690 | 1023 | F_e165421110ba03099a1c0393373c5b43 int, | ||
3691 | 1024 | F_289dff07669d7a23de0ef88d2f7129e7 int, | ||
3692 | 1025 | F_577ef1154f3240ad5b9b413aa7346a1e int, | ||
3693 | 1026 | F_01161aaa0b6d1345dd8fe4e481144d84 int, | ||
3694 | 1027 | F_539fd53b59e3bb12d203f45a912eeaf2 int, | ||
3695 | 1028 | F_ac1dd209cbcc5e5d1c6e28598e8cbbe8 int, | ||
3696 | 1029 | F_555d6702c950ecb729a966504af0a635 int, | ||
3697 | 1030 | F_335f5352088d7d9bf74191e006d8e24c int, | ||
3698 | 1031 | F_f340f1b1f65b6df5b5e3f94d95b11daf int, | ||
3699 | 1032 | F_e4a6222cdb5b34375400904f03d8e6a5 int, | ||
3700 | 1033 | F_cb70ab375662576bd1ac5aaf16b3fca4 int, | ||
3701 | 1034 | F_9188905e74c28e489b44e954ec0b9bca int, | ||
3702 | 1035 | F_0266e33d3f546cb5436a10798e657d97 int, | ||
3703 | 1036 | F_38db3aed920cf82ab059bfccbd02be6a int, | ||
3704 | 1037 | F_3cec07e9ba5f5bb252d13f5f431e4bbb int, | ||
3705 | 1038 | F_621bf66ddb7c962aa0d22ac97d69b793 int, | ||
3706 | 1039 | F_077e29b11be80ab57e1a2ecabb7da330 int, | ||
3707 | 1040 | F_6c9882bbac1c7093bd25041881277658 int, | ||
3708 | 1041 | F_19f3cd308f1455b3fa09a282e0d496f4 int, | ||
3709 | 1042 | F_03c6b06952c750899bb03d998e631860 int, | ||
3710 | 1043 | F_c24cd76e1ce41366a4bbe8a49b02a028 int, | ||
3711 | 1044 | F_c52f1bd66cc19d05628bd8bf27af3ad6 int, | ||
3712 | 1045 | F_fe131d7f5a6b38b23cc967316c13dae2 int, | ||
3713 | 1046 | F_f718499c1c8cef6730f9fd03c8125cab int, | ||
3714 | 1047 | F_d96409bf894217686ba124d7356686c9 int, | ||
3715 | 1048 | F_502e4a16930e414107ee22b6198c578f int, | ||
3716 | 1049 | F_cfa0860e83a4c3a763a7e62d825349f7 int, | ||
3717 | 1050 | F_a4f23670e1833f3fdb077ca70bbd5d66 int, | ||
3718 | 1051 | F_b1a59b315fc9a3002ce38bbe070ec3f5 int, | ||
3719 | 1052 | F_36660e59856b4de58a219bcf4e27eba3 int, | ||
3720 | 1053 | F_8c19f571e251e61cb8dd3612f26d5ecf int, | ||
3721 | 1054 | F_d6baf65e0b240ce177cf70da146c8dc8 int, | ||
3722 | 1055 | F_e56954b4f6347e897f954495eab16a88 int, | ||
3723 | 1056 | F_f7664060cc52bc6f3d620bcedc94a4b6 int, | ||
3724 | 1057 | F_eda80a3d5b344bc40f3bc04f65b7a357 int, | ||
3725 | 1058 | F_8f121ce07d74717e0b1f21d122e04521 int, | ||
3726 | 1059 | F_06138bc5af6023646ede0e1f7c1eac75 int, | ||
3727 | 1060 | F_39059724f73a9969845dfe4146c5660e int, | ||
3728 | 1061 | F_7f100b7b36092fb9b06dfb4fac360931 int, | ||
3729 | 1062 | F_7a614fd06c325499f1680b9896beedeb int, | ||
3730 | 1063 | F_4734ba6f3de83d861c3176a6273cac6d int, | ||
3731 | 1064 | F_d947bf06a885db0d477d707121934ff8 int, | ||
3732 | 1065 | F_63923f49e5241343aa7acb6a06a751e7 int, | ||
3733 | 1066 | F_db8e1af0cb3aca1ae2d0018624204529 int, | ||
3734 | 1067 | F_20f07591c6fcb220ffe637cda29bb3f6 int, | ||
3735 | 1068 | F_07cdfd23373b17c6b337251c22b7ea57 int, | ||
3736 | 1069 | F_d395771085aab05244a4fb8fd91bf4ee int, | ||
3737 | 1070 | F_92c8c96e4c37100777c7190b76d28233 int, | ||
3738 | 1071 | F_e3796ae838835da0b6f6ea37bcf8bcb7 int, | ||
3739 | 1072 | F_6a9aeddfc689c1d0e3b9ccc3ab651bc5 int, | ||
3740 | 1073 | F_0f49c89d1e7298bb9930789c8ed59d48 int, | ||
3741 | 1074 | F_46ba9f2a6976570b0353203ec4474217 int, | ||
3742 | 1075 | F_0e01938fc48a2cfb5f2217fbfb00722d int, | ||
3743 | 1076 | F_16a5cdae362b8d27a1d8f8c7b78b4330 int, | ||
3744 | 1077 | F_918317b57931b6b7a7d29490fe5ec9f9 int, | ||
3745 | 1078 | F_48aedb8880cab8c45637abc7493ecddd int, | ||
3746 | 1079 | F_839ab46820b524afda05122893c2fe8e int, | ||
3747 | 1080 | F_f90f2aca5c640289d0a29417bcb63a37 int, | ||
3748 | 1081 | F_9c838d2e45b2ad1094d42f4ef36764f6 int, | ||
3749 | 1082 | F_1700002963a49da13542e0726b7bb758 int, | ||
3750 | 1083 | F_53c3bce66e43be4f209556518c2fcb54 int, | ||
3751 | 1084 | F_6883966fd8f918a4aa29be29d2c386fb int, | ||
3752 | 1085 | F_49182f81e6a13cf5eaa496d51fea6406 int, | ||
3753 | 1086 | F_d296c101daa88a51f6ca8cfc1ac79b50 int, | ||
3754 | 1087 | F_9fd81843ad7f202f26c1a174c7357585 int, | ||
3755 | 1088 | F_26e359e83860db1d11b6acca57d8ea88 int, | ||
3756 | 1089 | F_ef0d3930a7b6c95bd2b32ed45989c61f int, | ||
3757 | 1090 | F_94f6d7e04a4d452035300f18b984988c int, | ||
3758 | 1091 | F_34ed066df378efacc9b924ec161e7639 int, | ||
3759 | 1092 | F_577bcc914f9e55d5e4e4f82f9f00e7d4 int, | ||
3760 | 1093 | F_11b9842e0a271ff252c1903e7132cd68 int, | ||
3761 | 1094 | F_37bc2f75bf1bcfe8450a1a41c200364c int, | ||
3762 | 1095 | F_496e05e1aea0a9c4655800e8a7b9ea28 int, | ||
3763 | 1096 | F_b2eb7349035754953b57a32e2841bda5 int, | ||
3764 | 1097 | F_8e98d81f8217304975ccb23337bb5761 int, | ||
3765 | 1098 | F_a8c88a0055f636e4a163a5e3d16adab7 int, | ||
3766 | 1099 | F_eddea82ad2755b24c4e168c5fc2ebd40 int, | ||
3767 | 1100 | F_06eb61b839a0cefee4967c67ccb099dc int, | ||
3768 | 1101 | F_9dfcd5e558dfa04aaf37f137a1d9d3e5 int, | ||
3769 | 1102 | F_950a4152c2b4aa3ad78bdd6b366cc179 int, | ||
3770 | 1103 | F_158f3069a435b314a80bdcb024f8e422 int, | ||
3771 | 1104 | F_758874998f5bd0c393da094e1967a72b int, | ||
3772 | 1105 | F_ad13a2a07ca4b7642959dc0c4c740ab6 int, | ||
3773 | 1106 | F_3fe94a002317b5f9259f82690aeea4cd int, | ||
3774 | 1107 | F_5b8add2a5d98b1a652ea7fd72d942dac int, | ||
3775 | 1108 | F_432aca3a1e345e339f35a30c8f65edce int, | ||
3776 | 1109 | F_8d3bba7425e7c98c50f52ca1b52d3735 int, | ||
3777 | 1110 | F_320722549d1751cf3f247855f937b982 int, | ||
3778 | 1111 | F_caf1a3dfb505ffed0d024130f58c5cfa int, | ||
3779 | 1112 | F_5737c6ec2e0716f3d8a7a5c4e0de0d9a int, | ||
3780 | 1113 | F_bc6dc48b743dc5d013b1abaebd2faed2 int, | ||
3781 | 1114 | F_f2fc990265c712c49d51a18a32b39f0c int, | ||
3782 | 1115 | F_89f0fd5c927d466d6ec9a21b9ac34ffa int, | ||
3783 | 1116 | F_a666587afda6e89aec274a3657558a27 int, | ||
3784 | 1117 | F_b83aac23b9528732c23cc7352950e880 int, | ||
3785 | 1118 | F_cd00692c3bfe59267d5ecfac5310286c int, | ||
3786 | 1119 | F_6faa8040da20ef399b63a72d0e4ab575 int, | ||
3787 | 1120 | F_fe73f687e5bc5280214e0486b273a5f9 int); | ||
3788 | 1121 | insert into t1 (F_8d3bba7425e7c98c50f52ca1b52d3735) values (1); | ||
3789 | 1122 | |||
3790 | 1123 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
3791 | 1124 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
3792 | 1125 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
3793 | 1126 | /*!40101 SET NAMES utf8 */; | ||
3794 | 1127 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
3795 | 1128 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
3796 | 1129 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
3797 | 1130 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
3798 | 1131 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
3799 | 1132 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
3800 | 1133 | DROP TABLE IF EXISTS `t1`; | ||
3801 | 1134 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
3802 | 1135 | /*!40101 SET character_set_client = utf8 */; | ||
3803 | 1136 | CREATE TABLE `t1` ( | ||
3804 | 1137 | `F_c4ca4238a0b923820dcc509a6f75849b` int(11) DEFAULT NULL, | ||
3805 | 1138 | `F_c81e728d9d4c2f636f067f89cc14862c` int(11) DEFAULT NULL, | ||
3806 | 1139 | `F_eccbc87e4b5ce2fe28308fd9f2a7baf3` int(11) DEFAULT NULL, | ||
3807 | 1140 | `F_a87ff679a2f3e71d9181a67b7542122c` int(11) DEFAULT NULL, | ||
3808 | 1141 | `F_e4da3b7fbbce2345d7772b0674a318d5` int(11) DEFAULT NULL, | ||
3809 | 1142 | `F_1679091c5a880faf6fb5e6087eb1b2dc` int(11) DEFAULT NULL, | ||
3810 | 1143 | `F_8f14e45fceea167a5a36dedd4bea2543` int(11) DEFAULT NULL, | ||
3811 | 1144 | `F_c9f0f895fb98ab9159f51fd0297e236d` int(11) DEFAULT NULL, | ||
3812 | 1145 | `F_45c48cce2e2d7fbdea1afc51c7c6ad26` int(11) DEFAULT NULL, | ||
3813 | 1146 | `F_d3d9446802a44259755d38e6d163e820` int(11) DEFAULT NULL, | ||
3814 | 1147 | `F_6512bd43d9caa6e02c990b0a82652dca` int(11) DEFAULT NULL, | ||
3815 | 1148 | `F_c20ad4d76fe97759aa27a0c99bff6710` int(11) DEFAULT NULL, | ||
3816 | 1149 | `F_c51ce410c124a10e0db5e4b97fc2af39` int(11) DEFAULT NULL, | ||
3817 | 1150 | `F_aab3238922bcc25a6f606eb525ffdc56` int(11) DEFAULT NULL, | ||
3818 | 1151 | `F_9bf31c7ff062936a96d3c8bd1f8f2ff3` int(11) DEFAULT NULL, | ||
3819 | 1152 | `F_c74d97b01eae257e44aa9d5bade97baf` int(11) DEFAULT NULL, | ||
3820 | 1153 | `F_70efdf2ec9b086079795c442636b55fb` int(11) DEFAULT NULL, | ||
3821 | 1154 | `F_6f4922f45568161a8cdf4ad2299f6d23` int(11) DEFAULT NULL, | ||
3822 | 1155 | `F_1f0e3dad99908345f7439f8ffabdffc4` int(11) DEFAULT NULL, | ||
3823 | 1156 | `F_98f13708210194c475687be6106a3b84` int(11) DEFAULT NULL, | ||
3824 | 1157 | `F_3c59dc048e8850243be8079a5c74d079` int(11) DEFAULT NULL, | ||
3825 | 1158 | `F_b6d767d2f8ed5d21a44b0e5886680cb9` int(11) DEFAULT NULL, | ||
3826 | 1159 | `F_37693cfc748049e45d87b8c7d8b9aacd` int(11) DEFAULT NULL, | ||
3827 | 1160 | `F_1ff1de774005f8da13f42943881c655f` int(11) DEFAULT NULL, | ||
3828 | 1161 | `F_8e296a067a37563370ded05f5a3bf3ec` int(11) DEFAULT NULL, | ||
3829 | 1162 | `F_4e732ced3463d06de0ca9a15b6153677` int(11) DEFAULT NULL, | ||
3830 | 1163 | `F_02e74f10e0327ad868d138f2b4fdd6f0` int(11) DEFAULT NULL, | ||
3831 | 1164 | `F_33e75ff09dd601bbe69f351039152189` int(11) DEFAULT NULL, | ||
3832 | 1165 | `F_6ea9ab1baa0efb9e19094440c317e21b` int(11) DEFAULT NULL, | ||
3833 | 1166 | `F_34173cb38f07f89ddbebc2ac9128303f` int(11) DEFAULT NULL, | ||
3834 | 1167 | `F_c16a5320fa475530d9583c34fd356ef5` int(11) DEFAULT NULL, | ||
3835 | 1168 | `F_6364d3f0f495b6ab9dcf8d3b5c6e0b01` int(11) DEFAULT NULL, | ||
3836 | 1169 | `F_182be0c5cdcd5072bb1864cdee4d3d6e` int(11) DEFAULT NULL, | ||
3837 | 1170 | `F_e369853df766fa44e1ed0ff613f563bd` int(11) DEFAULT NULL, | ||
3838 | 1171 | `F_1c383cd30b7c298ab50293adfecb7b18` int(11) DEFAULT NULL, | ||
3839 | 1172 | `F_19ca14e7ea6328a42e0eb13d585e4c22` int(11) DEFAULT NULL, | ||
3840 | 1173 | `F_a5bfc9e07964f8dddeb95fc584cd965d` int(11) DEFAULT NULL, | ||
3841 | 1174 | `F_a5771bce93e200c36f7cd9dfd0e5deaa` int(11) DEFAULT NULL, | ||
3842 | 1175 | `F_d67d8ab4f4c10bf22aa353e27879133c` int(11) DEFAULT NULL, | ||
3843 | 1176 | `F_d645920e395fedad7bbbed0eca3fe2e0` int(11) DEFAULT NULL, | ||
3844 | 1177 | `F_3416a75f4cea9109507cacd8e2f2aefc` int(11) DEFAULT NULL, | ||
3845 | 1178 | `F_a1d0c6e83f027327d8461063f4ac58a6` int(11) DEFAULT NULL, | ||
3846 | 1179 | `F_17e62166fc8586dfa4d1bc0e1742c08b` int(11) DEFAULT NULL, | ||
3847 | 1180 | `F_f7177163c833dff4b38fc8d2872f1ec6` int(11) DEFAULT NULL, | ||
3848 | 1181 | `F_6c8349cc7260ae62e3b1396831a8398f` int(11) DEFAULT NULL, | ||
3849 | 1182 | `F_d9d4f495e875a2e075a1a4a6e1b9770f` int(11) DEFAULT NULL, | ||
3850 | 1183 | `F_67c6a1e7ce56d3d6fa748ab6d9af3fd7` int(11) DEFAULT NULL, | ||
3851 | 1184 | `F_642e92efb79421734881b53e1e1b18b6` int(11) DEFAULT NULL, | ||
3852 | 1185 | `F_f457c545a9ded88f18ecee47145a72c0` int(11) DEFAULT NULL, | ||
3853 | 1186 | `F_c0c7c76d30bd3dcaefc96f40275bdc0a` int(11) DEFAULT NULL, | ||
3854 | 1187 | `F_2838023a778dfaecdc212708f721b788` int(11) DEFAULT NULL, | ||
3855 | 1188 | `F_9a1158154dfa42caddbd0694a4e9bdc8` int(11) DEFAULT NULL, | ||
3856 | 1189 | `F_d82c8d1619ad8176d665453cfb2e55f0` int(11) DEFAULT NULL, | ||
3857 | 1190 | `F_a684eceee76fc522773286a895bc8436` int(11) DEFAULT NULL, | ||
3858 | 1191 | `F_b53b3a3d6ab90ce0268229151c9bde11` int(11) DEFAULT NULL, | ||
3859 | 1192 | `F_9f61408e3afb633e50cdf1b20de6f466` int(11) DEFAULT NULL, | ||
3860 | 1193 | `F_72b32a1f754ba1c09b3695e0cb6cde7f` int(11) DEFAULT NULL, | ||
3861 | 1194 | `F_66f041e16a60928b05a7e228a89c3799` int(11) DEFAULT NULL, | ||
3862 | 1195 | `F_093f65e080a295f8076b1c5722a46aa2` int(11) DEFAULT NULL, | ||
3863 | 1196 | `F_072b030ba126b2f4b2374f342be9ed44` int(11) DEFAULT NULL, | ||
3864 | 1197 | `F_7f39f8317fbdb1988ef4c628eba02591` int(11) DEFAULT NULL, | ||
3865 | 1198 | `F_44f683a84163b3523afe57c2e008bc8c` int(11) DEFAULT NULL, | ||
3866 | 1199 | `F_03afdbd66e7929b125f8597834fa83a4` int(11) DEFAULT NULL, | ||
3867 | 1200 | `F_ea5d2f1c4608232e07d3aa3d998e5135` int(11) DEFAULT NULL, | ||
3868 | 1201 | `F_fc490ca45c00b1249bbe3554a4fdf6fb` int(11) DEFAULT NULL, | ||
3869 | 1202 | `F_3295c76acbf4caaed33c36b1b5fc2cb1` int(11) DEFAULT NULL, | ||
3870 | 1203 | `F_735b90b4568125ed6c3f678819b6e058` int(11) DEFAULT NULL, | ||
3871 | 1204 | `F_a3f390d88e4c41f2747bfa2f1b5f87db` int(11) DEFAULT NULL, | ||
3872 | 1205 | `F_14bfa6bb14875e45bba028a21ed38046` int(11) DEFAULT NULL, | ||
3873 | 1206 | `F_7cbbc409ec990f19c78c75bd1e06f215` int(11) DEFAULT NULL, | ||
3874 | 1207 | `F_e2c420d928d4bf8ce0ff2ec19b371514` int(11) DEFAULT NULL, | ||
3875 | 1208 | `F_32bb90e8976aab5298d5da10fe66f21d` int(11) DEFAULT NULL, | ||
3876 | 1209 | `F_d2ddea18f00665ce8623e36bd4e3c7c5` int(11) DEFAULT NULL, | ||
3877 | 1210 | `F_ad61ab143223efbc24c7d2583be69251` int(11) DEFAULT NULL, | ||
3878 | 1211 | `F_d09bf41544a3365a46c9077ebb5e35c3` int(11) DEFAULT NULL, | ||
3879 | 1212 | `F_fbd7939d674997cdb4692d34de8633c4` int(11) DEFAULT NULL, | ||
3880 | 1213 | `F_28dd2c7955ce926456240b2ff0100bde` int(11) DEFAULT NULL, | ||
3881 | 1214 | `F_35f4a8d465e6e1edc05f3d8ab658c551` int(11) DEFAULT NULL, | ||
3882 | 1215 | `F_d1fe173d08e959397adf34b1d77e88d7` int(11) DEFAULT NULL, | ||
3883 | 1216 | `F_f033ab37c30201f73f142449d037028d` int(11) DEFAULT NULL, | ||
3884 | 1217 | `F_43ec517d68b6edd3015b3edc9a11367b` int(11) DEFAULT NULL, | ||
3885 | 1218 | `F_9778d5d219c5080b9a6a17bef029331c` int(11) DEFAULT NULL, | ||
3886 | 1219 | `F_fe9fc289c3ff0af142b6d3bead98a923` int(11) DEFAULT NULL, | ||
3887 | 1220 | `F_68d30a9594728bc39aa24be94b319d21` int(11) DEFAULT NULL, | ||
3888 | 1221 | `F_3ef815416f775098fe977004015c6193` int(11) DEFAULT NULL, | ||
3889 | 1222 | `F_93db85ed909c13838ff95ccfa94cebd9` int(11) DEFAULT NULL, | ||
3890 | 1223 | `F_c7e1249ffc03eb9ded908c236bd1996d` int(11) DEFAULT NULL, | ||
3891 | 1224 | `F_2a38a4a9316c49e5a833517c45d31070` int(11) DEFAULT NULL, | ||
3892 | 1225 | `F_7647966b7343c29048673252e490f736` int(11) DEFAULT NULL, | ||
3893 | 1226 | `F_8613985ec49eb8f757ae6439e879bb2a` int(11) DEFAULT NULL, | ||
3894 | 1227 | `F_54229abfcfa5649e7003b83dd4755294` int(11) DEFAULT NULL, | ||
3895 | 1228 | `F_92cc227532d17e56e07902b254dfad10` int(11) DEFAULT NULL, | ||
3896 | 1229 | `F_98dce83da57b0395e163467c9dae521b` int(11) DEFAULT NULL, | ||
3897 | 1230 | `F_f4b9ec30ad9f68f89b29639786cb62ef` int(11) DEFAULT NULL, | ||
3898 | 1231 | `F_812b4ba287f5ee0bc9d43bbf5bbe87fb` int(11) DEFAULT NULL, | ||
3899 | 1232 | `F_26657d5ff9020d2abefe558796b99584` int(11) DEFAULT NULL, | ||
3900 | 1233 | `F_e2ef524fbf3d9fe611d5a8e90fefdc9c` int(11) DEFAULT NULL, | ||
3901 | 1234 | `F_ed3d2c21991e3bef5e069713af9fa6ca` int(11) DEFAULT NULL, | ||
3902 | 1235 | `F_ac627ab1ccbdb62ec96e702f07f6425b` int(11) DEFAULT NULL, | ||
3903 | 1236 | `F_f899139df5e1059396431415e770c6dd` int(11) DEFAULT NULL, | ||
3904 | 1237 | `F_38b3eff8baf56627478ec76a704e9b52` int(11) DEFAULT NULL, | ||
3905 | 1238 | `F_ec8956637a99787bd197eacd77acce5e` int(11) DEFAULT NULL, | ||
3906 | 1239 | `F_6974ce5ac660610b44d9b9fed0ff9548` int(11) DEFAULT NULL, | ||
3907 | 1240 | `F_c9e1074f5b3f9fc8ea15d152add07294` int(11) DEFAULT NULL, | ||
3908 | 1241 | `F_65b9eea6e1cc6bb9f0cd2a47751a186f` int(11) DEFAULT NULL, | ||
3909 | 1242 | `F_f0935e4cd5920aa6c7c996a5ee53a70f` int(11) DEFAULT NULL, | ||
3910 | 1243 | `F_a97da629b098b75c294dffdc3e463904` int(11) DEFAULT NULL, | ||
3911 | 1244 | `F_a3c65c2974270fd093ee8a9bf8ae7d0b` int(11) DEFAULT NULL, | ||
3912 | 1245 | `F_2723d092b63885e0d7c260cc007e8b9d` int(11) DEFAULT NULL, | ||
3913 | 1246 | `F_5f93f983524def3dca464469d2cf9f3e` int(11) DEFAULT NULL, | ||
3914 | 1247 | `F_698d51a19d8a121ce581499d7b701668` int(11) DEFAULT NULL, | ||
3915 | 1248 | `F_7f6ffaa6bb0b408017b62254211691b5` int(11) DEFAULT NULL, | ||
3916 | 1249 | `F_73278a4a86960eeb576a8fd4c9ec6997` int(11) DEFAULT NULL, | ||
3917 | 1250 | `F_5fd0b37cd7dbbb00f97ba6ce92bf5add` int(11) DEFAULT NULL, | ||
3918 | 1251 | `F_2b44928ae11fb9384c4cf38708677c48` int(11) DEFAULT NULL, | ||
3919 | 1252 | `F_c45147dee729311ef5b5c3003946c48f` int(11) DEFAULT NULL, | ||
3920 | 1253 | `F_eb160de1de89d9058fcb0b968dbbbd68` int(11) DEFAULT NULL, | ||
3921 | 1254 | `F_5ef059938ba799aaa845e1c2e8a762bd` int(11) DEFAULT NULL, | ||
3922 | 1255 | `F_07e1cd7dca89a1678042477183b7ac3f` int(11) DEFAULT NULL, | ||
3923 | 1256 | `F_da4fb5c6e93e74d3df8527599fa62642` int(11) DEFAULT NULL, | ||
3924 | 1257 | `F_4c56ff4ce4aaf9573aa5dff913df997a` int(11) DEFAULT NULL, | ||
3925 | 1258 | `F_a0a080f42e6f13b3a2df133f073095dd` int(11) DEFAULT NULL, | ||
3926 | 1259 | `F_202cb962ac59075b964b07152d234b70` int(11) DEFAULT NULL, | ||
3927 | 1260 | `F_c8ffe9a587b126f152ed3d89a146b445` int(11) DEFAULT NULL, | ||
3928 | 1261 | `F_3def184ad8f4755ff269862ea77393dd` int(11) DEFAULT NULL, | ||
3929 | 1262 | `F_069059b7ef840f0c74a814ec9237b6ec` int(11) DEFAULT NULL, | ||
3930 | 1263 | `F_ec5decca5ed3d6b8079e2e7e7bacc9f2` int(11) DEFAULT NULL, | ||
3931 | 1264 | `F_76dc611d6ebaafc66cc0879c71b5db5c` int(11) DEFAULT NULL, | ||
3932 | 1265 | `F_d1f491a404d6854880943e5c3cd9ca25` int(11) DEFAULT NULL, | ||
3933 | 1266 | `F_9b8619251a19057cff70779273e95aa6` int(11) DEFAULT NULL, | ||
3934 | 1267 | `F_1afa34a7f984eeabdbb0a7d494132ee5` int(11) DEFAULT NULL, | ||
3935 | 1268 | `F_65ded5353c5ee48d0b7d48c591b8f430` int(11) DEFAULT NULL, | ||
3936 | 1269 | `F_9fc3d7152ba9336a670e36d0ed79bc43` int(11) DEFAULT NULL, | ||
3937 | 1270 | `F_02522a2b2726fb0a03bb19f2d8d9524d` int(11) DEFAULT NULL, | ||
3938 | 1271 | `F_7f1de29e6da19d22b51c68001e7e0e54` int(11) DEFAULT NULL, | ||
3939 | 1272 | `F_42a0e188f5033bc65bf8d78622277c4e` int(11) DEFAULT NULL, | ||
3940 | 1273 | `F_3988c7f88ebcb58c6ce932b957b6f332` int(11) DEFAULT NULL, | ||
3941 | 1274 | `F_013d407166ec4fa56eb1e1f8cbe183b9` int(11) DEFAULT NULL, | ||
3942 | 1275 | `F_e00da03b685a0dd18fb6a08af0923de0` int(11) DEFAULT NULL, | ||
3943 | 1276 | `F_1385974ed5904a438616ff7bdb3f7439` int(11) DEFAULT NULL, | ||
3944 | 1277 | `F_0f28b5d49b3020afeecd95b4009adf4c` int(11) DEFAULT NULL, | ||
3945 | 1278 | `F_a8baa56554f96369ab93e4f3bb068c22` int(11) DEFAULT NULL, | ||
3946 | 1279 | `F_903ce9225fca3e988c2af215d4e544d3` int(11) DEFAULT NULL, | ||
3947 | 1280 | `F_0a09c8844ba8f0936c20bd791130d6b6` int(11) DEFAULT NULL, | ||
3948 | 1281 | `F_2b24d495052a8ce66358eb576b8912c8` int(11) DEFAULT NULL, | ||
3949 | 1282 | `F_a5e00132373a7031000fd987a3c9f87b` int(11) DEFAULT NULL, | ||
3950 | 1283 | `F_8d5e957f297893487bd98fa830fa6413` int(11) DEFAULT NULL, | ||
3951 | 1284 | `F_47d1e990583c9c67424d369f3414728e` int(11) DEFAULT NULL, | ||
3952 | 1285 | `F_f2217062e9a397a1dca429e7d70bc6ca` int(11) DEFAULT NULL, | ||
3953 | 1286 | `F_7ef605fc8dba5425d6965fbd4c8fbe1f` int(11) DEFAULT NULL, | ||
3954 | 1287 | `F_a8f15eda80c50adb0e71943adc8015cf` int(11) DEFAULT NULL, | ||
3955 | 1288 | `F_37a749d808e46495a8da1e5352d03cae` int(11) DEFAULT NULL, | ||
3956 | 1289 | `F_b3e3e393c77e35a4a3f3cbd1e429b5dc` int(11) DEFAULT NULL, | ||
3957 | 1290 | `F_1d7f7abc18fcb43975065399b0d1e48e` int(11) DEFAULT NULL, | ||
3958 | 1291 | `F_2a79ea27c279e471f4d180b08d62b00a` int(11) DEFAULT NULL, | ||
3959 | 1292 | `F_1c9ac0159c94d8d0cbedc973445af2da` int(11) DEFAULT NULL, | ||
3960 | 1293 | `F_6c4b761a28b734fe93831e3fb400ce87` int(11) DEFAULT NULL, | ||
3961 | 1294 | `F_06409663226af2f3114485aa4e0a23b4` int(11) DEFAULT NULL, | ||
3962 | 1295 | `F_140f6969d5213fd0ece03148e62e461e` int(11) DEFAULT NULL, | ||
3963 | 1296 | `F_b73ce398c39f506af761d2277d853a92` int(11) DEFAULT NULL, | ||
3964 | 1297 | `F_bd4c9ab730f5513206b999ec0d90d1fb` int(11) DEFAULT NULL, | ||
3965 | 1298 | `F_82aa4b0af34c2313a562076992e50aa3` int(11) DEFAULT NULL, | ||
3966 | 1299 | `F_0777d5c17d4066b82ab86dff8a46af6f` int(11) DEFAULT NULL, | ||
3967 | 1300 | `F_fa7cdfad1a5aaf8370ebeda47a1ff1c3` int(11) DEFAULT NULL, | ||
3968 | 1301 | `F_9766527f2b5d3e95d4a733fcfb77bd7e` int(11) DEFAULT NULL, | ||
3969 | 1302 | `F_7e7757b1e12abcb736ab9a754ffb617a` int(11) DEFAULT NULL, | ||
3970 | 1303 | `F_5878a7ab84fb43402106c575658472fa` int(11) DEFAULT NULL, | ||
3971 | 1304 | `F_006f52e9102a8d3be2fe5614f42ba989` int(11) DEFAULT NULL, | ||
3972 | 1305 | `F_3636638817772e42b59d74cff571fbb3` int(11) DEFAULT NULL, | ||
3973 | 1306 | `F_149e9677a5989fd342ae44213df68868` int(11) DEFAULT NULL, | ||
3974 | 1307 | `F_a4a042cf4fd6bfb47701cbc8a1653ada` int(11) DEFAULT NULL, | ||
3975 | 1308 | `F_1ff8a7b5dc7a7d1f0ed65aaa29c04b1e` int(11) DEFAULT NULL, | ||
3976 | 1309 | `F_f7e6c85504ce6e82442c770f7c8606f0` int(11) DEFAULT NULL, | ||
3977 | 1310 | `F_bf8229696f7a3bb4700cfddef19fa23f` int(11) DEFAULT NULL, | ||
3978 | 1311 | `F_82161242827b703e6acf9c726942a1e4` int(11) DEFAULT NULL, | ||
3979 | 1312 | `F_38af86134b65d0f10fe33d30dd76442e` int(11) DEFAULT NULL, | ||
3980 | 1313 | `F_96da2f590cd7246bbde0051047b0d6f7` int(11) DEFAULT NULL, | ||
3981 | 1314 | `F_8f85517967795eeef66c225f7883bdcb` int(11) DEFAULT NULL, | ||
3982 | 1315 | `F_8f53295a73878494e9bc8dd6c3c7104f` int(11) DEFAULT NULL, | ||
3983 | 1316 | `F_045117b0e0a11a242b9765e79cbf113f` int(11) DEFAULT NULL, | ||
3984 | 1317 | `F_fc221309746013ac554571fbd180e1c8` int(11) DEFAULT NULL, | ||
3985 | 1318 | `F_4c5bde74a8f110656874902f07378009` int(11) DEFAULT NULL, | ||
3986 | 1319 | `F_cedebb6e872f539bef8c3f919874e9d7` int(11) DEFAULT NULL, | ||
3987 | 1320 | `F_6cdd60ea0045eb7a6ec44c54d29ed402` int(11) DEFAULT NULL, | ||
3988 | 1321 | `F_eecca5b6365d9607ee5a9d336962c534` int(11) DEFAULT NULL, | ||
3989 | 1322 | `F_9872ed9fc22fc182d371c3e9ed316094` int(11) DEFAULT NULL, | ||
3990 | 1323 | `F_31fefc0e570cb3860f2a6d4b38c6490d` int(11) DEFAULT NULL, | ||
3991 | 1324 | `F_9dcb88e0137649590b755372b040afad` int(11) DEFAULT NULL, | ||
3992 | 1325 | `F_a2557a7b2e94197ff767970b67041697` int(11) DEFAULT NULL, | ||
3993 | 1326 | `F_cfecdb276f634854f3ef915e2e980c31` int(11) DEFAULT NULL, | ||
3994 | 1327 | `F_0aa1883c6411f7873cb83dacb17b0afc` int(11) DEFAULT NULL, | ||
3995 | 1328 | `F_58a2fc6ed39fd083f55d4182bf88826d` int(11) DEFAULT NULL, | ||
3996 | 1329 | `F_bd686fd640be98efaae0091fa301e613` int(11) DEFAULT NULL, | ||
3997 | 1330 | `F_a597e50502f5ff68e3e25b9114205d4a` int(11) DEFAULT NULL, | ||
3998 | 1331 | `F_0336dcbab05b9d5ad24f4333c7658a0e` int(11) DEFAULT NULL, | ||
3999 | 1332 | `F_084b6fbb10729ed4da8c3d3f5a3ae7c9` int(11) DEFAULT NULL, | ||
4000 | 1333 | `F_85d8ce590ad8981ca2c8286f79f59954` int(11) DEFAULT NULL, | ||
4001 | 1334 | `F_0e65972dce68dad4d52d063967f0a705` int(11) DEFAULT NULL, | ||
4002 | 1335 | `F_84d9ee44e457ddef7f2c4f25dc8fa865` int(11) DEFAULT NULL, | ||
4003 | 1336 | `F_3644a684f98ea8fe223c713b77189a77` int(11) DEFAULT NULL, | ||
4004 | 1337 | `F_757b505cfd34c64c85ca5b5690ee5293` int(11) DEFAULT NULL, | ||
4005 | 1338 | `F_854d6fae5ee42911677c739ee1734486` int(11) DEFAULT NULL, | ||
4006 | 1339 | `F_e2c0be24560d78c5e599c2a9c9d0bbd2` int(11) DEFAULT NULL, | ||
4007 | 1340 | `F_274ad4786c3abca69fa097b85867d9a4` int(11) DEFAULT NULL, | ||
4008 | 1341 | `F_eae27d77ca20db309e056e3d2dcd7d69` int(11) DEFAULT NULL, | ||
4009 | 1342 | `F_7eabe3a1649ffa2b3ff8c02ebfd5659f` int(11) DEFAULT NULL, | ||
4010 | 1343 | `F_69adc1e107f7f7d035d7baf04342e1ca` int(11) DEFAULT NULL, | ||
4011 | 1344 | `F_091d584fced301b442654dd8c23b3fc9` int(11) DEFAULT NULL, | ||
4012 | 1345 | `F_b1d10e7bafa4421218a51b1e1f1b0ba2` int(11) DEFAULT NULL, | ||
4013 | 1346 | `F_6f3ef77ac0e3619e98159e9b6febf557` int(11) DEFAULT NULL, | ||
4014 | 1347 | `F_eb163727917cbba1eea208541a643e74` int(11) DEFAULT NULL, | ||
4015 | 1348 | `F_1534b76d325a8f591b52d302e7181331` int(11) DEFAULT NULL, | ||
4016 | 1349 | `F_979d472a84804b9f647bc185a877a8b5` int(11) DEFAULT NULL, | ||
4017 | 1350 | `F_ca46c1b9512a7a8315fa3c5a946e8265` int(11) DEFAULT NULL, | ||
4018 | 1351 | `F_3b8a614226a953a8cd9526fca6fe9ba5` int(11) DEFAULT NULL, | ||
4019 | 1352 | `F_45fbc6d3e05ebd93369ce542e8f2322d` int(11) DEFAULT NULL, | ||
4020 | 1353 | `F_63dc7ed1010d3c3b8269faf0ba7491d4` int(11) DEFAULT NULL, | ||
4021 | 1354 | `F_e96ed478dab8595a7dbda4cbcbee168f` int(11) DEFAULT NULL, | ||
4022 | 1355 | `F_c0e190d8267e36708f955d7ab048990d` int(11) DEFAULT NULL, | ||
4023 | 1356 | `F_ec8ce6abb3e952a85b8551ba726a1227` int(11) DEFAULT NULL, | ||
4024 | 1357 | `F_060ad92489947d410d897474079c1477` int(11) DEFAULT NULL, | ||
4025 | 1358 | `F_bcbe3365e6ac95ea2c0343a2395834dd` int(11) DEFAULT NULL, | ||
4026 | 1359 | `F_115f89503138416a242f40fb7d7f338e` int(11) DEFAULT NULL, | ||
4027 | 1360 | `F_13fe9d84310e77f13a6d184dbf1232f3` int(11) DEFAULT NULL, | ||
4028 | 1361 | `F_d1c38a09acc34845c6be3a127a5aacaf` int(11) DEFAULT NULL, | ||
4029 | 1362 | `F_9cfdf10e8fc047a44b08ed031e1f0ed1` int(11) DEFAULT NULL, | ||
4030 | 1363 | `F_705f2172834666788607efbfca35afb3` int(11) DEFAULT NULL, | ||
4031 | 1364 | `F_74db120f0a8e5646ef5a30154e9f6deb` int(11) DEFAULT NULL, | ||
4032 | 1365 | `F_57aeee35c98205091e18d1140e9f38cf` int(11) DEFAULT NULL, | ||
4033 | 1366 | `F_6da9003b743b65f4c0ccd295cc484e57` int(11) DEFAULT NULL, | ||
4034 | 1367 | `F_9b04d152845ec0a378394003c96da594` int(11) DEFAULT NULL, | ||
4035 | 1368 | `F_be83ab3ecd0db773eb2dc1b0a17836a1` int(11) DEFAULT NULL, | ||
4036 | 1369 | `F_e165421110ba03099a1c0393373c5b43` int(11) DEFAULT NULL, | ||
4037 | 1370 | `F_289dff07669d7a23de0ef88d2f7129e7` int(11) DEFAULT NULL, | ||
4038 | 1371 | `F_577ef1154f3240ad5b9b413aa7346a1e` int(11) DEFAULT NULL, | ||
4039 | 1372 | `F_01161aaa0b6d1345dd8fe4e481144d84` int(11) DEFAULT NULL, | ||
4040 | 1373 | `F_539fd53b59e3bb12d203f45a912eeaf2` int(11) DEFAULT NULL, | ||
4041 | 1374 | `F_ac1dd209cbcc5e5d1c6e28598e8cbbe8` int(11) DEFAULT NULL, | ||
4042 | 1375 | `F_555d6702c950ecb729a966504af0a635` int(11) DEFAULT NULL, | ||
4043 | 1376 | `F_335f5352088d7d9bf74191e006d8e24c` int(11) DEFAULT NULL, | ||
4044 | 1377 | `F_f340f1b1f65b6df5b5e3f94d95b11daf` int(11) DEFAULT NULL, | ||
4045 | 1378 | `F_e4a6222cdb5b34375400904f03d8e6a5` int(11) DEFAULT NULL, | ||
4046 | 1379 | `F_cb70ab375662576bd1ac5aaf16b3fca4` int(11) DEFAULT NULL, | ||
4047 | 1380 | `F_9188905e74c28e489b44e954ec0b9bca` int(11) DEFAULT NULL, | ||
4048 | 1381 | `F_0266e33d3f546cb5436a10798e657d97` int(11) DEFAULT NULL, | ||
4049 | 1382 | `F_38db3aed920cf82ab059bfccbd02be6a` int(11) DEFAULT NULL, | ||
4050 | 1383 | `F_3cec07e9ba5f5bb252d13f5f431e4bbb` int(11) DEFAULT NULL, | ||
4051 | 1384 | `F_621bf66ddb7c962aa0d22ac97d69b793` int(11) DEFAULT NULL, | ||
4052 | 1385 | `F_077e29b11be80ab57e1a2ecabb7da330` int(11) DEFAULT NULL, | ||
4053 | 1386 | `F_6c9882bbac1c7093bd25041881277658` int(11) DEFAULT NULL, | ||
4054 | 1387 | `F_19f3cd308f1455b3fa09a282e0d496f4` int(11) DEFAULT NULL, | ||
4055 | 1388 | `F_03c6b06952c750899bb03d998e631860` int(11) DEFAULT NULL, | ||
4056 | 1389 | `F_c24cd76e1ce41366a4bbe8a49b02a028` int(11) DEFAULT NULL, | ||
4057 | 1390 | `F_c52f1bd66cc19d05628bd8bf27af3ad6` int(11) DEFAULT NULL, | ||
4058 | 1391 | `F_fe131d7f5a6b38b23cc967316c13dae2` int(11) DEFAULT NULL, | ||
4059 | 1392 | `F_f718499c1c8cef6730f9fd03c8125cab` int(11) DEFAULT NULL, | ||
4060 | 1393 | `F_d96409bf894217686ba124d7356686c9` int(11) DEFAULT NULL, | ||
4061 | 1394 | `F_502e4a16930e414107ee22b6198c578f` int(11) DEFAULT NULL, | ||
4062 | 1395 | `F_cfa0860e83a4c3a763a7e62d825349f7` int(11) DEFAULT NULL, | ||
4063 | 1396 | `F_a4f23670e1833f3fdb077ca70bbd5d66` int(11) DEFAULT NULL, | ||
4064 | 1397 | `F_b1a59b315fc9a3002ce38bbe070ec3f5` int(11) DEFAULT NULL, | ||
4065 | 1398 | `F_36660e59856b4de58a219bcf4e27eba3` int(11) DEFAULT NULL, | ||
4066 | 1399 | `F_8c19f571e251e61cb8dd3612f26d5ecf` int(11) DEFAULT NULL, | ||
4067 | 1400 | `F_d6baf65e0b240ce177cf70da146c8dc8` int(11) DEFAULT NULL, | ||
4068 | 1401 | `F_e56954b4f6347e897f954495eab16a88` int(11) DEFAULT NULL, | ||
4069 | 1402 | `F_f7664060cc52bc6f3d620bcedc94a4b6` int(11) DEFAULT NULL, | ||
4070 | 1403 | `F_eda80a3d5b344bc40f3bc04f65b7a357` int(11) DEFAULT NULL, | ||
4071 | 1404 | `F_8f121ce07d74717e0b1f21d122e04521` int(11) DEFAULT NULL, | ||
4072 | 1405 | `F_06138bc5af6023646ede0e1f7c1eac75` int(11) DEFAULT NULL, | ||
4073 | 1406 | `F_39059724f73a9969845dfe4146c5660e` int(11) DEFAULT NULL, | ||
4074 | 1407 | `F_7f100b7b36092fb9b06dfb4fac360931` int(11) DEFAULT NULL, | ||
4075 | 1408 | `F_7a614fd06c325499f1680b9896beedeb` int(11) DEFAULT NULL, | ||
4076 | 1409 | `F_4734ba6f3de83d861c3176a6273cac6d` int(11) DEFAULT NULL, | ||
4077 | 1410 | `F_d947bf06a885db0d477d707121934ff8` int(11) DEFAULT NULL, | ||
4078 | 1411 | `F_63923f49e5241343aa7acb6a06a751e7` int(11) DEFAULT NULL, | ||
4079 | 1412 | `F_db8e1af0cb3aca1ae2d0018624204529` int(11) DEFAULT NULL, | ||
4080 | 1413 | `F_20f07591c6fcb220ffe637cda29bb3f6` int(11) DEFAULT NULL, | ||
4081 | 1414 | `F_07cdfd23373b17c6b337251c22b7ea57` int(11) DEFAULT NULL, | ||
4082 | 1415 | `F_d395771085aab05244a4fb8fd91bf4ee` int(11) DEFAULT NULL, | ||
4083 | 1416 | `F_92c8c96e4c37100777c7190b76d28233` int(11) DEFAULT NULL, | ||
4084 | 1417 | `F_e3796ae838835da0b6f6ea37bcf8bcb7` int(11) DEFAULT NULL, | ||
4085 | 1418 | `F_6a9aeddfc689c1d0e3b9ccc3ab651bc5` int(11) DEFAULT NULL, | ||
4086 | 1419 | `F_0f49c89d1e7298bb9930789c8ed59d48` int(11) DEFAULT NULL, | ||
4087 | 1420 | `F_46ba9f2a6976570b0353203ec4474217` int(11) DEFAULT NULL, | ||
4088 | 1421 | `F_0e01938fc48a2cfb5f2217fbfb00722d` int(11) DEFAULT NULL, | ||
4089 | 1422 | `F_16a5cdae362b8d27a1d8f8c7b78b4330` int(11) DEFAULT NULL, | ||
4090 | 1423 | `F_918317b57931b6b7a7d29490fe5ec9f9` int(11) DEFAULT NULL, | ||
4091 | 1424 | `F_48aedb8880cab8c45637abc7493ecddd` int(11) DEFAULT NULL, | ||
4092 | 1425 | `F_839ab46820b524afda05122893c2fe8e` int(11) DEFAULT NULL, | ||
4093 | 1426 | `F_f90f2aca5c640289d0a29417bcb63a37` int(11) DEFAULT NULL, | ||
4094 | 1427 | `F_9c838d2e45b2ad1094d42f4ef36764f6` int(11) DEFAULT NULL, | ||
4095 | 1428 | `F_1700002963a49da13542e0726b7bb758` int(11) DEFAULT NULL, | ||
4096 | 1429 | `F_53c3bce66e43be4f209556518c2fcb54` int(11) DEFAULT NULL, | ||
4097 | 1430 | `F_6883966fd8f918a4aa29be29d2c386fb` int(11) DEFAULT NULL, | ||
4098 | 1431 | `F_49182f81e6a13cf5eaa496d51fea6406` int(11) DEFAULT NULL, | ||
4099 | 1432 | `F_d296c101daa88a51f6ca8cfc1ac79b50` int(11) DEFAULT NULL, | ||
4100 | 1433 | `F_9fd81843ad7f202f26c1a174c7357585` int(11) DEFAULT NULL, | ||
4101 | 1434 | `F_26e359e83860db1d11b6acca57d8ea88` int(11) DEFAULT NULL, | ||
4102 | 1435 | `F_ef0d3930a7b6c95bd2b32ed45989c61f` int(11) DEFAULT NULL, | ||
4103 | 1436 | `F_94f6d7e04a4d452035300f18b984988c` int(11) DEFAULT NULL, | ||
4104 | 1437 | `F_34ed066df378efacc9b924ec161e7639` int(11) DEFAULT NULL, | ||
4105 | 1438 | `F_577bcc914f9e55d5e4e4f82f9f00e7d4` int(11) DEFAULT NULL, | ||
4106 | 1439 | `F_11b9842e0a271ff252c1903e7132cd68` int(11) DEFAULT NULL, | ||
4107 | 1440 | `F_37bc2f75bf1bcfe8450a1a41c200364c` int(11) DEFAULT NULL, | ||
4108 | 1441 | `F_496e05e1aea0a9c4655800e8a7b9ea28` int(11) DEFAULT NULL, | ||
4109 | 1442 | `F_b2eb7349035754953b57a32e2841bda5` int(11) DEFAULT NULL, | ||
4110 | 1443 | `F_8e98d81f8217304975ccb23337bb5761` int(11) DEFAULT NULL, | ||
4111 | 1444 | `F_a8c88a0055f636e4a163a5e3d16adab7` int(11) DEFAULT NULL, | ||
4112 | 1445 | `F_eddea82ad2755b24c4e168c5fc2ebd40` int(11) DEFAULT NULL, | ||
4113 | 1446 | `F_06eb61b839a0cefee4967c67ccb099dc` int(11) DEFAULT NULL, | ||
4114 | 1447 | `F_9dfcd5e558dfa04aaf37f137a1d9d3e5` int(11) DEFAULT NULL, | ||
4115 | 1448 | `F_950a4152c2b4aa3ad78bdd6b366cc179` int(11) DEFAULT NULL, | ||
4116 | 1449 | `F_158f3069a435b314a80bdcb024f8e422` int(11) DEFAULT NULL, | ||
4117 | 1450 | `F_758874998f5bd0c393da094e1967a72b` int(11) DEFAULT NULL, | ||
4118 | 1451 | `F_ad13a2a07ca4b7642959dc0c4c740ab6` int(11) DEFAULT NULL, | ||
4119 | 1452 | `F_3fe94a002317b5f9259f82690aeea4cd` int(11) DEFAULT NULL, | ||
4120 | 1453 | `F_5b8add2a5d98b1a652ea7fd72d942dac` int(11) DEFAULT NULL, | ||
4121 | 1454 | `F_432aca3a1e345e339f35a30c8f65edce` int(11) DEFAULT NULL, | ||
4122 | 1455 | `F_8d3bba7425e7c98c50f52ca1b52d3735` int(11) DEFAULT NULL, | ||
4123 | 1456 | `F_320722549d1751cf3f247855f937b982` int(11) DEFAULT NULL, | ||
4124 | 1457 | `F_caf1a3dfb505ffed0d024130f58c5cfa` int(11) DEFAULT NULL, | ||
4125 | 1458 | `F_5737c6ec2e0716f3d8a7a5c4e0de0d9a` int(11) DEFAULT NULL, | ||
4126 | 1459 | `F_bc6dc48b743dc5d013b1abaebd2faed2` int(11) DEFAULT NULL, | ||
4127 | 1460 | `F_f2fc990265c712c49d51a18a32b39f0c` int(11) DEFAULT NULL, | ||
4128 | 1461 | `F_89f0fd5c927d466d6ec9a21b9ac34ffa` int(11) DEFAULT NULL, | ||
4129 | 1462 | `F_a666587afda6e89aec274a3657558a27` int(11) DEFAULT NULL, | ||
4130 | 1463 | `F_b83aac23b9528732c23cc7352950e880` int(11) DEFAULT NULL, | ||
4131 | 1464 | `F_cd00692c3bfe59267d5ecfac5310286c` int(11) DEFAULT NULL, | ||
4132 | 1465 | `F_6faa8040da20ef399b63a72d0e4ab575` int(11) DEFAULT NULL, | ||
4133 | 1466 | `F_fe73f687e5bc5280214e0486b273a5f9` int(11) DEFAULT NULL | ||
4134 | 1467 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4135 | 1468 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4136 | 1469 | |||
4137 | 1470 | LOCK TABLES `t1` WRITE; | ||
4138 | 1471 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
4139 | 1472 | INSERT INTO `t1` (`F_c4ca4238a0b923820dcc509a6f75849b`, `F_c81e728d9d4c2f636f067f89cc14862c`, `F_eccbc87e4b5ce2fe28308fd9f2a7baf3`, `F_a87ff679a2f3e71d9181a67b7542122c`, `F_e4da3b7fbbce2345d7772b0674a318d5`, `F_1679091c5a880faf6fb5e6087eb1b2dc`, `F_8f14e45fceea167a5a36dedd4bea2543`, `F_c9f0f895fb98ab9159f51fd0297e236d`, `F_45c48cce2e2d7fbdea1afc51c7c6ad26`, `F_d3d9446802a44259755d38e6d163e820`, `F_6512bd43d9caa6e02c990b0a82652dca`, `F_c20ad4d76fe97759aa27a0c99bff6710`, `F_c51ce410c124a10e0db5e4b97fc2af39`, `F_aab3238922bcc25a6f606eb525ffdc56`, `F_9bf31c7ff062936a96d3c8bd1f8f2ff3`, `F_c74d97b01eae257e44aa9d5bade97baf`, `F_70efdf2ec9b086079795c442636b55fb`, `F_6f4922f45568161a8cdf4ad2299f6d23`, `F_1f0e3dad99908345f7439f8ffabdffc4`, `F_98f13708210194c475687be6106a3b84`, `F_3c59dc048e8850243be8079a5c74d079`, `F_b6d767d2f8ed5d21a44b0e5886680cb9`, `F_37693cfc748049e45d87b8c7d8b9aacd`, `F_1ff1de774005f8da13f42943881c655f`, `F_8e296a067a37563370ded05f5a3bf3ec`, `F_4e732ced3463d06de0ca9a15b6153677`, `F_02e74f10e0327ad868d138f2b4fdd6f0`, `F_33e75ff09dd601bbe69f351039152189`, `F_6ea9ab1baa0efb9e19094440c317e21b`, `F_34173cb38f07f89ddbebc2ac9128303f`, `F_c16a5320fa475530d9583c34fd356ef5`, `F_6364d3f0f495b6ab9dcf8d3b5c6e0b01`, `F_182be0c5cdcd5072bb1864cdee4d3d6e`, `F_e369853df766fa44e1ed0ff613f563bd`, `F_1c383cd30b7c298ab50293adfecb7b18`, `F_19ca14e7ea6328a42e0eb13d585e4c22`, `F_a5bfc9e07964f8dddeb95fc584cd965d`, `F_a5771bce93e200c36f7cd9dfd0e5deaa`, `F_d67d8ab4f4c10bf22aa353e27879133c`, `F_d645920e395fedad7bbbed0eca3fe2e0`, `F_3416a75f4cea9109507cacd8e2f2aefc`, `F_a1d0c6e83f027327d8461063f4ac58a6`, `F_17e62166fc8586dfa4d1bc0e1742c08b`, `F_f7177163c833dff4b38fc8d2872f1ec6`, `F_6c8349cc7260ae62e3b1396831a8398f`, `F_d9d4f495e875a2e075a1a4a6e1b9770f`, `F_67c6a1e7ce56d3d6fa748ab6d9af3fd7`, `F_642e92efb79421734881b53e1e1b18b6`, `F_f457c545a9ded88f18ecee47145a72c0`, `F_c0c7c76d30bd3dcaefc96f40275bdc0a`, `F_2838023a778dfaecdc212708f721b788`, `F_9a1158154dfa42caddbd0694a4e9bdc8`, `F_d82c8d1619ad8176d665453cfb2e55f0`, `F_a684eceee76fc522773286a895bc8436`, `F_b53b3a3d6ab90ce0268229151c9bde11`, `F_9f61408e3afb633e50cdf1b20de6f466`, `F_72b32a1f754ba1c09b3695e0cb6cde7f`, `F_66f041e16a60928b05a7e228a89c3799`, `F_093f65e080a295f8076b1c5722a46aa2`, `F_072b030ba126b2f4b2374f342be9ed44`, `F_7f39f8317fbdb1988ef4c628eba02591`, `F_44f683a84163b3523afe57c2e008bc8c`, `F_03afdbd66e7929b125f8597834fa83a4`, `F_ea5d2f1c4608232e07d3aa3d998e5135`, `F_fc490ca45c00b1249bbe3554a4fdf6fb`, `F_3295c76acbf4caaed33c36b1b5fc2cb1`, `F_735b90b4568125ed6c3f678819b6e058`, `F_a3f390d88e4c41f2747bfa2f1b5f87db`, `F_14bfa6bb14875e45bba028a21ed38046`, `F_7cbbc409ec990f19c78c75bd1e06f215`, `F_e2c420d928d4bf8ce0ff2ec19b371514`, `F_32bb90e8976aab5298d5da10fe66f21d`, `F_d2ddea18f00665ce8623e36bd4e3c7c5`, `F_ad61ab143223efbc24c7d2583be69251`, `F_d09bf41544a3365a46c9077ebb5e35c3`, `F_fbd7939d674997cdb4692d34de8633c4`, `F_28dd2c7955ce926456240b2ff0100bde`, `F_35f4a8d465e6e1edc05f3d8ab658c551`, `F_d1fe173d08e959397adf34b1d77e88d7`, `F_f033ab37c30201f73f142449d037028d`, `F_43ec517d68b6edd3015b3edc9a11367b`, `F_9778d5d219c5080b9a6a17bef029331c`, `F_fe9fc289c3ff0af142b6d3bead98a923`, `F_68d30a9594728bc39aa24be94b319d21`, `F_3ef815416f775098fe977004015c6193`, `F_93db85ed909c13838ff95ccfa94cebd9`, `F_c7e1249ffc03eb9ded908c236bd1996d`, `F_2a38a4a9316c49e5a833517c45d31070`, `F_7647966b7343c29048673252e490f736`, `F_8613985ec49eb8f757ae6439e879bb2a`, `F_54229abfcfa5649e7003b83dd4755294`, `F_92cc227532d17e56e07902b254dfad10`, `F_98dce83da57b0395e163467c9dae521b`, `F_f4b9ec30ad9f68f89b29639786cb62ef`, `F_812b4ba287f5ee0bc9d43bbf5bbe87fb`, `F_26657d5ff9020d2abefe558796b99584`, `F_e2ef524fbf3d9fe611d5a8e90fefdc9c`, `F_ed3d2c21991e3bef5e069713af9fa6ca`, `F_ac627ab1ccbdb62ec96e702f07f6425b`, `F_f899139df5e1059396431415e770c6dd`, `F_38b3eff8baf56627478ec76a704e9b52`, `F_ec8956637a99787bd197eacd77acce5e`, `F_6974ce5ac660610b44d9b9fed0ff9548`, `F_c9e1074f5b3f9fc8ea15d152add07294`, `F_65b9eea6e1cc6bb9f0cd2a47751a186f`, `F_f0935e4cd5920aa6c7c996a5ee53a70f`, `F_a97da629b098b75c294dffdc3e463904`, `F_a3c65c2974270fd093ee8a9bf8ae7d0b`, `F_2723d092b63885e0d7c260cc007e8b9d`, `F_5f93f983524def3dca464469d2cf9f3e`, `F_698d51a19d8a121ce581499d7b701668`, `F_7f6ffaa6bb0b408017b62254211691b5`, `F_73278a4a86960eeb576a8fd4c9ec6997`, `F_5fd0b37cd7dbbb00f97ba6ce92bf5add`, `F_2b44928ae11fb9384c4cf38708677c48`, `F_c45147dee729311ef5b5c3003946c48f`, `F_eb160de1de89d9058fcb0b968dbbbd68`, `F_5ef059938ba799aaa845e1c2e8a762bd`, `F_07e1cd7dca89a1678042477183b7ac3f`, `F_da4fb5c6e93e74d3df8527599fa62642`, `F_4c56ff4ce4aaf9573aa5dff913df997a`, `F_a0a080f42e6f13b3a2df133f073095dd`, `F_202cb962ac59075b964b07152d234b70`, `F_c8ffe9a587b126f152ed3d89a146b445`, `F_3def184ad8f4755ff269862ea77393dd`, `F_069059b7ef840f0c74a814ec9237b6ec`, `F_ec5decca5ed3d6b8079e2e7e7bacc9f2`, `F_76dc611d6ebaafc66cc0879c71b5db5c`, `F_d1f491a404d6854880943e5c3cd9ca25`, `F_9b8619251a19057cff70779273e95aa6`, `F_1afa34a7f984eeabdbb0a7d494132ee5`, `F_65ded5353c5ee48d0b7d48c591b8f430`, `F_9fc3d7152ba9336a670e36d0ed79bc43`, `F_02522a2b2726fb0a03bb19f2d8d9524d`, `F_7f1de29e6da19d22b51c68001e7e0e54`, `F_42a0e188f5033bc65bf8d78622277c4e`, `F_3988c7f88ebcb58c6ce932b957b6f332`, `F_013d407166ec4fa56eb1e1f8cbe183b9`, `F_e00da03b685a0dd18fb6a08af0923de0`, `F_1385974ed5904a438616ff7bdb3f7439`, `F_0f28b5d49b3020afeecd95b4009adf4c`, `F_a8baa56554f96369ab93e4f3bb068c22`, `F_903ce9225fca3e988c2af215d4e544d3`, `F_0a09c8844ba8f0936c20bd791130d6b6`, `F_2b24d495052a8ce66358eb576b8912c8`, `F_a5e00132373a7031000fd987a3c9f87b`, `F_8d5e957f297893487bd98fa830fa6413`, `F_47d1e990583c9c67424d369f3414728e`, `F_f2217062e9a397a1dca429e7d70bc6ca`, `F_7ef605fc8dba5425d6965fbd4c8fbe1f`, `F_a8f15eda80c50adb0e71943adc8015cf`, `F_37a749d808e46495a8da1e5352d03cae`, `F_b3e3e393c77e35a4a3f3cbd1e429b5dc`, `F_1d7f7abc18fcb43975065399b0d1e48e`, `F_2a79ea27c279e471f4d180b08d62b00a`, `F_1c9ac0159c94d8d0cbedc973445af2da`, `F_6c4b761a28b734fe93831e3fb400ce87`, `F_06409663226af2f3114485aa4e0a23b4`, `F_140f6969d5213fd0ece03148e62e461e`, `F_b73ce398c39f506af761d2277d853a92`, `F_bd4c9ab730f5513206b999ec0d90d1fb`, `F_82aa4b0af34c2313a562076992e50aa3`, `F_0777d5c17d4066b82ab86dff8a46af6f`, `F_fa7cdfad1a5aaf8370ebeda47a1ff1c3`, `F_9766527f2b5d3e95d4a733fcfb77bd7e`, `F_7e7757b1e12abcb736ab9a754ffb617a`, `F_5878a7ab84fb43402106c575658472fa`, `F_006f52e9102a8d3be2fe5614f42ba989`, `F_3636638817772e42b59d74cff571fbb3`, `F_149e9677a5989fd342ae44213df68868`, `F_a4a042cf4fd6bfb47701cbc8a1653ada`, `F_1ff8a7b5dc7a7d1f0ed65aaa29c04b1e`, `F_f7e6c85504ce6e82442c770f7c8606f0`, `F_bf8229696f7a3bb4700cfddef19fa23f`, `F_82161242827b703e6acf9c726942a1e4`, `F_38af86134b65d0f10fe33d30dd76442e`, `F_96da2f590cd7246bbde0051047b0d6f7`, `F_8f85517967795eeef66c225f7883bdcb`, `F_8f53295a73878494e9bc8dd6c3c7104f`, `F_045117b0e0a11a242b9765e79cbf113f`, `F_fc221309746013ac554571fbd180e1c8`, `F_4c5bde74a8f110656874902f07378009`, `F_cedebb6e872f539bef8c3f919874e9d7`, `F_6cdd60ea0045eb7a6ec44c54d29ed402`, `F_eecca5b6365d9607ee5a9d336962c534`, `F_9872ed9fc22fc182d371c3e9ed316094`, `F_31fefc0e570cb3860f2a6d4b38c6490d`, `F_9dcb88e0137649590b755372b040afad`, `F_a2557a7b2e94197ff767970b67041697`, `F_cfecdb276f634854f3ef915e2e980c31`, `F_0aa1883c6411f7873cb83dacb17b0afc`, `F_58a2fc6ed39fd083f55d4182bf88826d`, `F_bd686fd640be98efaae0091fa301e613`, `F_a597e50502f5ff68e3e25b9114205d4a`, `F_0336dcbab05b9d5ad24f4333c7658a0e`, `F_084b6fbb10729ed4da8c3d3f5a3ae7c9`, `F_85d8ce590ad8981ca2c8286f79f59954`, `F_0e65972dce68dad4d52d063967f0a705`, `F_84d9ee44e457ddef7f2c4f25dc8fa865`, `F_3644a684f98ea8fe223c713b77189a77`, `F_757b505cfd34c64c85ca5b5690ee5293`, `F_854d6fae5ee42911677c739ee1734486`, `F_e2c0be24560d78c5e599c2a9c9d0bbd2`, `F_274ad4786c3abca69fa097b85867d9a4`, `F_eae27d77ca20db309e056e3d2dcd7d69`, `F_7eabe3a1649ffa2b3ff8c02ebfd5659f`, `F_69adc1e107f7f7d035d7baf04342e1ca`, `F_091d584fced301b442654dd8c23b3fc9`, `F_b1d10e7bafa4421218a51b1e1f1b0ba2`, `F_6f3ef77ac0e3619e98159e9b6febf557`, `F_eb163727917cbba1eea208541a643e74`, `F_1534b76d325a8f591b52d302e7181331`, `F_979d472a84804b9f647bc185a877a8b5`, `F_ca46c1b9512a7a8315fa3c5a946e8265`, `F_3b8a614226a953a8cd9526fca6fe9ba5`, `F_45fbc6d3e05ebd93369ce542e8f2322d`, `F_63dc7ed1010d3c3b8269faf0ba7491d4`, `F_e96ed478dab8595a7dbda4cbcbee168f`, `F_c0e190d8267e36708f955d7ab048990d`, `F_ec8ce6abb3e952a85b8551ba726a1227`, `F_060ad92489947d410d897474079c1477`, `F_bcbe3365e6ac95ea2c0343a2395834dd`, `F_115f89503138416a242f40fb7d7f338e`, `F_13fe9d84310e77f13a6d184dbf1232f3`, `F_d1c38a09acc34845c6be3a127a5aacaf`, `F_9cfdf10e8fc047a44b08ed031e1f0ed1`, `F_705f2172834666788607efbfca35afb3`, `F_74db120f0a8e5646ef5a30154e9f6deb`, `F_57aeee35c98205091e18d1140e9f38cf`, `F_6da9003b743b65f4c0ccd295cc484e57`, `F_9b04d152845ec0a378394003c96da594`, `F_be83ab3ecd0db773eb2dc1b0a17836a1`, `F_e165421110ba03099a1c0393373c5b43`, `F_289dff07669d7a23de0ef88d2f7129e7`, `F_577ef1154f3240ad5b9b413aa7346a1e`, `F_01161aaa0b6d1345dd8fe4e481144d84`, `F_539fd53b59e3bb12d203f45a912eeaf2`, `F_ac1dd209cbcc5e5d1c6e28598e8cbbe8`, `F_555d6702c950ecb729a966504af0a635`, `F_335f5352088d7d9bf74191e006d8e24c`, `F_f340f1b1f65b6df5b5e3f94d95b11daf`, `F_e4a6222cdb5b34375400904f03d8e6a5`, `F_cb70ab375662576bd1ac5aaf16b3fca4`, `F_9188905e74c28e489b44e954ec0b9bca`, `F_0266e33d3f546cb5436a10798e657d97`, `F_38db3aed920cf82ab059bfccbd02be6a`, `F_3cec07e9ba5f5bb252d13f5f431e4bbb`, `F_621bf66ddb7c962aa0d22ac97d69b793`, `F_077e29b11be80ab57e1a2ecabb7da330`, `F_6c9882bbac1c7093bd25041881277658`, `F_19f3cd308f1455b3fa09a282e0d496f4`, `F_03c6b06952c750899bb03d998e631860`, `F_c24cd76e1ce41366a4bbe8a49b02a028`, `F_c52f1bd66cc19d05628bd8bf27af3ad6`, `F_fe131d7f5a6b38b23cc967316c13dae2`, `F_f718499c1c8cef6730f9fd03c8125cab`, `F_d96409bf894217686ba124d7356686c9`, `F_502e4a16930e414107ee22b6198c578f`, `F_cfa0860e83a4c3a763a7e62d825349f7`, `F_a4f23670e1833f3fdb077ca70bbd5d66`, `F_b1a59b315fc9a3002ce38bbe070ec3f5`, `F_36660e59856b4de58a219bcf4e27eba3`, `F_8c19f571e251e61cb8dd3612f26d5ecf`, `F_d6baf65e0b240ce177cf70da146c8dc8`, `F_e56954b4f6347e897f954495eab16a88`, `F_f7664060cc52bc6f3d620bcedc94a4b6`, `F_eda80a3d5b344bc40f3bc04f65b7a357`, `F_8f121ce07d74717e0b1f21d122e04521`, `F_06138bc5af6023646ede0e1f7c1eac75`, `F_39059724f73a9969845dfe4146c5660e`, `F_7f100b7b36092fb9b06dfb4fac360931`, `F_7a614fd06c325499f1680b9896beedeb`, `F_4734ba6f3de83d861c3176a6273cac6d`, `F_d947bf06a885db0d477d707121934ff8`, `F_63923f49e5241343aa7acb6a06a751e7`, `F_db8e1af0cb3aca1ae2d0018624204529`, `F_20f07591c6fcb220ffe637cda29bb3f6`, `F_07cdfd23373b17c6b337251c22b7ea57`, `F_d395771085aab05244a4fb8fd91bf4ee`, `F_92c8c96e4c37100777c7190b76d28233`, `F_e3796ae838835da0b6f6ea37bcf8bcb7`, `F_6a9aeddfc689c1d0e3b9ccc3ab651bc5`, `F_0f49c89d1e7298bb9930789c8ed59d48`, `F_46ba9f2a6976570b0353203ec4474217`, `F_0e01938fc48a2cfb5f2217fbfb00722d`, `F_16a5cdae362b8d27a1d8f8c7b78b4330`, `F_918317b57931b6b7a7d29490fe5ec9f9`, `F_48aedb8880cab8c45637abc7493ecddd`, `F_839ab46820b524afda05122893c2fe8e`, `F_f90f2aca5c640289d0a29417bcb63a37`, `F_9c838d2e45b2ad1094d42f4ef36764f6`, `F_1700002963a49da13542e0726b7bb758`, `F_53c3bce66e43be4f209556518c2fcb54`, `F_6883966fd8f918a4aa29be29d2c386fb`, `F_49182f81e6a13cf5eaa496d51fea6406`, `F_d296c101daa88a51f6ca8cfc1ac79b50`, `F_9fd81843ad7f202f26c1a174c7357585`, `F_26e359e83860db1d11b6acca57d8ea88`, `F_ef0d3930a7b6c95bd2b32ed45989c61f`, `F_94f6d7e04a4d452035300f18b984988c`, `F_34ed066df378efacc9b924ec161e7639`, `F_577bcc914f9e55d5e4e4f82f9f00e7d4`, `F_11b9842e0a271ff252c1903e7132cd68`, `F_37bc2f75bf1bcfe8450a1a41c200364c`, `F_496e05e1aea0a9c4655800e8a7b9ea28`, `F_b2eb7349035754953b57a32e2841bda5`, `F_8e98d81f8217304975ccb23337bb5761`, `F_a8c88a0055f636e4a163a5e3d16adab7`, `F_eddea82ad2755b24c4e168c5fc2ebd40`, `F_06eb61b839a0cefee4967c67ccb099dc`, `F_9dfcd5e558dfa04aaf37f137a1d9d3e5`, `F_950a4152c2b4aa3ad78bdd6b366cc179`, `F_158f3069a435b314a80bdcb024f8e422`, `F_758874998f5bd0c393da094e1967a72b`, `F_ad13a2a07ca4b7642959dc0c4c740ab6`, `F_3fe94a002317b5f9259f82690aeea4cd`, `F_5b8add2a5d98b1a652ea7fd72d942dac`, `F_432aca3a1e345e339f35a30c8f65edce`, `F_8d3bba7425e7c98c50f52ca1b52d3735`, `F_320722549d1751cf3f247855f937b982`, `F_caf1a3dfb505ffed0d024130f58c5cfa`, `F_5737c6ec2e0716f3d8a7a5c4e0de0d9a`, `F_bc6dc48b743dc5d013b1abaebd2faed2`, `F_f2fc990265c712c49d51a18a32b39f0c`, `F_89f0fd5c927d466d6ec9a21b9ac34ffa`, `F_a666587afda6e89aec274a3657558a27`, `F_b83aac23b9528732c23cc7352950e880`, `F_cd00692c3bfe59267d5ecfac5310286c`, `F_6faa8040da20ef399b63a72d0e4ab575`, `F_fe73f687e5bc5280214e0486b273a5f9`) VALUES (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); | ||
4140 | 1473 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
4141 | 1474 | UNLOCK TABLES; | ||
4142 | 1475 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4143 | 1476 | |||
4144 | 1477 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4145 | 1478 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4146 | 1479 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4147 | 1480 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4148 | 1481 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4149 | 1482 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4150 | 1483 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4151 | 1484 | |||
4152 | 1485 | drop table t1; | ||
4153 | 1486 | # | ||
4154 | 1487 | # Test for --add-drop-database | ||
4155 | 1488 | # | ||
4156 | 1489 | CREATE TABLE t1 (a int); | ||
4157 | 1490 | INSERT INTO t1 VALUES (1),(2),(3); | ||
4158 | 1491 | |||
4159 | 1492 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4160 | 1493 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4161 | 1494 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4162 | 1495 | /*!40101 SET NAMES utf8 */; | ||
4163 | 1496 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4164 | 1497 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4165 | 1498 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4166 | 1499 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4167 | 1500 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4168 | 1501 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4169 | 1502 | |||
4170 | 1503 | /*!40000 DROP DATABASE IF EXISTS `test`*/; | ||
4171 | 1504 | |||
4172 | 1505 | CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */; | ||
4173 | 1506 | |||
4174 | 1507 | USE `test`; | ||
4175 | 1508 | DROP TABLE IF EXISTS `t1`; | ||
4176 | 1509 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4177 | 1510 | /*!40101 SET character_set_client = utf8 */; | ||
4178 | 1511 | CREATE TABLE `t1` ( | ||
4179 | 1512 | `a` int(11) DEFAULT NULL | ||
4180 | 1513 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4181 | 1514 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4182 | 1515 | |||
4183 | 1516 | LOCK TABLES `t1` WRITE; | ||
4184 | 1517 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
4185 | 1518 | INSERT INTO `t1` VALUES (1),(2),(3); | ||
4186 | 1519 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
4187 | 1520 | UNLOCK TABLES; | ||
4188 | 1521 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4189 | 1522 | |||
4190 | 1523 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4191 | 1524 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4192 | 1525 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4193 | 1526 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4194 | 1527 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4195 | 1528 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4196 | 1529 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4197 | 1530 | |||
4198 | 1531 | DROP TABLE t1; | ||
4199 | 1532 | # | ||
4200 | 1533 | # Bug#9558 mysqldump --no-data db t1 t2 format still dumps data | ||
4201 | 1534 | # | ||
4202 | 1535 | CREATE DATABASE mysqldump_test_db; | ||
4203 | 1536 | USE mysqldump_test_db; | ||
4204 | 1537 | CREATE TABLE t1 ( a INT ); | ||
4205 | 1538 | CREATE TABLE t2 ( a INT ); | ||
4206 | 1539 | INSERT INTO t1 VALUES (1), (2); | ||
4207 | 1540 | INSERT INTO t2 VALUES (1), (2); | ||
4208 | 1541 | |||
4209 | 1542 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4210 | 1543 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4211 | 1544 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4212 | 1545 | /*!40101 SET NAMES utf8 */; | ||
4213 | 1546 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4214 | 1547 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4215 | 1548 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4216 | 1549 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4217 | 1550 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4218 | 1551 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4219 | 1552 | DROP TABLE IF EXISTS `t1`; | ||
4220 | 1553 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4221 | 1554 | /*!40101 SET character_set_client = utf8 */; | ||
4222 | 1555 | CREATE TABLE `t1` ( | ||
4223 | 1556 | `a` int(11) DEFAULT NULL | ||
4224 | 1557 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4225 | 1558 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4226 | 1559 | DROP TABLE IF EXISTS `t2`; | ||
4227 | 1560 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4228 | 1561 | /*!40101 SET character_set_client = utf8 */; | ||
4229 | 1562 | CREATE TABLE `t2` ( | ||
4230 | 1563 | `a` int(11) DEFAULT NULL | ||
4231 | 1564 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4232 | 1565 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4233 | 1566 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4234 | 1567 | |||
4235 | 1568 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4236 | 1569 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4237 | 1570 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4238 | 1571 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4239 | 1572 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4240 | 1573 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4241 | 1574 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4242 | 1575 | |||
4243 | 1576 | |||
4244 | 1577 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4245 | 1578 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4246 | 1579 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4247 | 1580 | /*!40101 SET NAMES utf8 */; | ||
4248 | 1581 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4249 | 1582 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4250 | 1583 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4251 | 1584 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4252 | 1585 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4253 | 1586 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4254 | 1587 | DROP TABLE IF EXISTS `t1`; | ||
4255 | 1588 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4256 | 1589 | /*!40101 SET character_set_client = utf8 */; | ||
4257 | 1590 | CREATE TABLE `t1` ( | ||
4258 | 1591 | `a` int(11) DEFAULT NULL | ||
4259 | 1592 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4260 | 1593 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4261 | 1594 | DROP TABLE IF EXISTS `t2`; | ||
4262 | 1595 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4263 | 1596 | /*!40101 SET character_set_client = utf8 */; | ||
4264 | 1597 | CREATE TABLE `t2` ( | ||
4265 | 1598 | `a` int(11) DEFAULT NULL | ||
4266 | 1599 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4267 | 1600 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4268 | 1601 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4269 | 1602 | |||
4270 | 1603 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4271 | 1604 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4272 | 1605 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4273 | 1606 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4274 | 1607 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4275 | 1608 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4276 | 1609 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4277 | 1610 | |||
4278 | 1611 | <?xml version="1.0"?> | ||
4279 | 1612 | <mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
4280 | 1613 | <database name="mysqldump_test_db"> | ||
4281 | 1614 | <table_structure name="t1"> | ||
4282 | 1615 | <field Field="a" Type="int(11)" Null="YES" Key="" Extra="" Comment="" /> | ||
4283 | 1616 | </table_structure> | ||
4284 | 1617 | <table_structure name="t2"> | ||
4285 | 1618 | <field Field="a" Type="int(11)" Null="YES" Key="" Extra="" Comment="" /> | ||
4286 | 1619 | </table_structure> | ||
4287 | 1620 | </database> | ||
4288 | 1621 | </mysqldump> | ||
4289 | 1622 | <?xml version="1.0"?> | ||
4290 | 1623 | <mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
4291 | 1624 | <database name="mysqldump_test_db"> | ||
4292 | 1625 | <table_structure name="t1"> | ||
4293 | 1626 | <field Field="a" Type="int(11)" Null="YES" Key="" Extra="" Comment="" /> | ||
4294 | 1627 | </table_structure> | ||
4295 | 1628 | <table_structure name="t2"> | ||
4296 | 1629 | <field Field="a" Type="int(11)" Null="YES" Key="" Extra="" Comment="" /> | ||
4297 | 1630 | </table_structure> | ||
4298 | 1631 | </database> | ||
4299 | 1632 | </mysqldump> | ||
4300 | 1633 | DROP TABLE t1, t2; | ||
4301 | 1634 | DROP DATABASE mysqldump_test_db; | ||
4302 | 1635 | # | ||
4303 | 1636 | # Testing with tables and databases that don't exists | ||
4304 | 1637 | # or contains illegal characters | ||
4305 | 1638 | # (Bug#9358 mysqldump crashes if tablename starts with \) | ||
4306 | 1639 | # | ||
4307 | 1640 | create database mysqldump_test_db; | ||
4308 | 1641 | use mysqldump_test_db; | ||
4309 | 1642 | create table t1(a varchar(30) primary key, b int not null); | ||
4310 | 1643 | create table t2(a varchar(30) primary key, b int not null); | ||
4311 | 1644 | create table t3(a varchar(30) primary key, b int not null); | ||
4312 | 1645 | test_sequence | ||
4313 | 1646 | ------ Testing with illegal table names ------ | ||
4314 | 1647 | mysqldump: Couldn't find table: "\d-2-1.sql" | ||
4315 | 1648 | mysqldump: Couldn't find table: "\t1" | ||
4316 | 1649 | mysqldump: Couldn't find table: "\t1" | ||
4317 | 1650 | mysqldump: Couldn't find table: "\\t1" | ||
4318 | 1651 | mysqldump: Couldn't find table: "t\1" | ||
4319 | 1652 | mysqldump: Couldn't find table: "t\1" | ||
4320 | 1653 | mysqldump: Couldn't find table: "t/1" | ||
4321 | 1654 | mysqldump: Couldn't find table: "T_1" | ||
4322 | 1655 | mysqldump: Couldn't find table: "T%1" | ||
4323 | 1656 | mysqldump: Couldn't find table: "T'1" | ||
4324 | 1657 | mysqldump: Couldn't find table: "T_1" | ||
4325 | 1658 | mysqldump: Couldn't find table: "T_" | ||
4326 | 1659 | test_sequence | ||
4327 | 1660 | ------ Testing with illegal database names ------ | ||
4328 | 1661 | mysqldump: Got error: 1049: Unknown database 'mysqldump_test_d' when selecting the database | ||
4329 | 1662 | mysqldump: Got error: 1049: Unknown database 'mysqld\ump_test_db' when selecting the database | ||
4330 | 1663 | drop table t1, t2, t3; | ||
4331 | 1664 | drop database mysqldump_test_db; | ||
4332 | 1665 | use test; | ||
4333 | 1666 | # | ||
4334 | 1667 | # Bug#9657 mysqldump xml ( -x ) does not format NULL fields correctly | ||
4335 | 1668 | # | ||
4336 | 1669 | create table t1 (a int(10)); | ||
4337 | 1670 | create table t2 (pk int primary key auto_increment, | ||
4338 | 1671 | a int(10), b varchar(30), c datetime, d blob, e text); | ||
4339 | 1672 | insert into t1 values (NULL), (10), (20); | ||
4340 | 1673 | insert into t2 (a, b) values (NULL, NULL),(10, NULL),(NULL, "twenty"),(30, "thirty"); | ||
4341 | 1674 | <?xml version="1.0"?> | ||
4342 | 1675 | <mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
4343 | 1676 | <database name="test"> | ||
4344 | 1677 | <table_data name="t1"> | ||
4345 | 1678 | <row> | ||
4346 | 1679 | <field name="a" xsi:nil="true" /> | ||
4347 | 1680 | </row> | ||
4348 | 1681 | <row> | ||
4349 | 1682 | <field name="a">10</field> | ||
4350 | 1683 | </row> | ||
4351 | 1684 | <row> | ||
4352 | 1685 | <field name="a">20</field> | ||
4353 | 1686 | </row> | ||
4354 | 1687 | </table_data> | ||
4355 | 1688 | <table_data name="t2"> | ||
4356 | 1689 | <row> | ||
4357 | 1690 | <field name="pk">1</field> | ||
4358 | 1691 | <field name="a" xsi:nil="true" /> | ||
4359 | 1692 | <field name="b" xsi:nil="true" /> | ||
4360 | 1693 | <field name="c" xsi:nil="true" /> | ||
4361 | 1694 | <field name="d" xsi:nil="true" /> | ||
4362 | 1695 | <field name="e" xsi:nil="true" /> | ||
4363 | 1696 | </row> | ||
4364 | 1697 | <row> | ||
4365 | 1698 | <field name="pk">2</field> | ||
4366 | 1699 | <field name="a">10</field> | ||
4367 | 1700 | <field name="b" xsi:nil="true" /> | ||
4368 | 1701 | <field name="c" xsi:nil="true" /> | ||
4369 | 1702 | <field name="d" xsi:nil="true" /> | ||
4370 | 1703 | <field name="e" xsi:nil="true" /> | ||
4371 | 1704 | </row> | ||
4372 | 1705 | <row> | ||
4373 | 1706 | <field name="pk">3</field> | ||
4374 | 1707 | <field name="a" xsi:nil="true" /> | ||
4375 | 1708 | <field name="b">twenty</field> | ||
4376 | 1709 | <field name="c" xsi:nil="true" /> | ||
4377 | 1710 | <field name="d" xsi:nil="true" /> | ||
4378 | 1711 | <field name="e" xsi:nil="true" /> | ||
4379 | 1712 | </row> | ||
4380 | 1713 | <row> | ||
4381 | 1714 | <field name="pk">4</field> | ||
4382 | 1715 | <field name="a">30</field> | ||
4383 | 1716 | <field name="b">thirty</field> | ||
4384 | 1717 | <field name="c" xsi:nil="true" /> | ||
4385 | 1718 | <field name="d" xsi:nil="true" /> | ||
4386 | 1719 | <field name="e" xsi:nil="true" /> | ||
4387 | 1720 | </row> | ||
4388 | 1721 | </table_data> | ||
4389 | 1722 | </database> | ||
4390 | 1723 | </mysqldump> | ||
4391 | 1724 | drop table t1, t2; | ||
4392 | 1725 | # | ||
4393 | 1726 | # Bug#12123 mysqldump --tab results in text file which can't be imported | ||
4394 | 1727 | # | ||
4395 | 1728 | create table t1 (a text character set utf8, b text character set latin1); | ||
4396 | 1729 | insert t1 values (0x4F736E616272C3BC636B, 0x4BF66C6E); | ||
4397 | 1730 | select * from t1; | ||
4398 | 1731 | a b | ||
4399 | 1732 | Osnabrück Köln | ||
4400 | 1733 | test.t1: Records: 1 Deleted: 0 Skipped: 0 Warnings: 0 | ||
4401 | 1734 | select * from t1; | ||
4402 | 1735 | a b | ||
4403 | 1736 | Osnabrück Köln | ||
4404 | 1737 | drop table t1; | ||
4405 | 1738 | # | ||
4406 | 1739 | # Bug#15328 Segmentation fault occured if my.cnf is invalid for escape sequence | ||
4407 | 1740 | # | ||
4408 | 1741 | --fields-optionally-enclosed-by=" | ||
4409 | 1742 | # | ||
4410 | 1743 | # Bug#19025 mysqldump doesn't correctly dump "auto_increment = [int]" | ||
4411 | 1744 | # | ||
4412 | 1745 | create table `t1` ( | ||
4413 | 1746 | t1_name varchar(255) default null, | ||
4414 | 1747 | t1_id int(10) unsigned not null auto_increment, | ||
4415 | 1748 | key (t1_name), | ||
4416 | 1749 | primary key (t1_id) | ||
4417 | 1750 | ) auto_increment = 1000 default charset=latin1; | ||
4418 | 1751 | insert into t1 (t1_name) values('bla'); | ||
4419 | 1752 | insert into t1 (t1_name) values('bla'); | ||
4420 | 1753 | insert into t1 (t1_name) values('bla'); | ||
4421 | 1754 | select * from t1; | ||
4422 | 1755 | t1_name t1_id | ||
4423 | 1756 | bla 1000 | ||
4424 | 1757 | bla 1001 | ||
4425 | 1758 | bla 1002 | ||
4426 | 1759 | show create table `t1`; | ||
4427 | 1760 | Table Create Table | ||
4428 | 1761 | t1 CREATE TABLE `t1` ( | ||
4429 | 1762 | `t1_name` varchar(255) DEFAULT NULL, | ||
4430 | 1763 | `t1_id` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
4431 | 1764 | PRIMARY KEY (`t1_id`), | ||
4432 | 1765 | KEY `t1_name` (`t1_name`) | ||
4433 | 1766 | ) ENGINE=MyISAM AUTO_INCREMENT=1003 DEFAULT CHARSET=latin1 | ||
4434 | 1767 | DROP TABLE `t1`; | ||
4435 | 1768 | select * from t1; | ||
4436 | 1769 | t1_name t1_id | ||
4437 | 1770 | bla 1000 | ||
4438 | 1771 | bla 1001 | ||
4439 | 1772 | bla 1002 | ||
4440 | 1773 | show create table `t1`; | ||
4441 | 1774 | Table Create Table | ||
4442 | 1775 | t1 CREATE TABLE `t1` ( | ||
4443 | 1776 | `t1_name` varchar(255) DEFAULT NULL, | ||
4444 | 1777 | `t1_id` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
4445 | 1778 | PRIMARY KEY (`t1_id`), | ||
4446 | 1779 | KEY `t1_name` (`t1_name`) | ||
4447 | 1780 | ) ENGINE=MyISAM AUTO_INCREMENT=1003 DEFAULT CHARSET=latin1 | ||
4448 | 1781 | drop table `t1`; | ||
4449 | 1782 | # | ||
4450 | 1783 | # Bug#18536 wrong table order | ||
4451 | 1784 | # | ||
4452 | 1785 | create table t1(a int); | ||
4453 | 1786 | create table t2(a int); | ||
4454 | 1787 | create table t3(a int); | ||
4455 | 1788 | |||
4456 | 1789 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4457 | 1790 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4458 | 1791 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4459 | 1792 | /*!40101 SET NAMES utf8 */; | ||
4460 | 1793 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4461 | 1794 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4462 | 1795 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4463 | 1796 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4464 | 1797 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4465 | 1798 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4466 | 1799 | DROP TABLE IF EXISTS `t3`; | ||
4467 | 1800 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4468 | 1801 | /*!40101 SET character_set_client = utf8 */; | ||
4469 | 1802 | CREATE TABLE `t3` ( | ||
4470 | 1803 | `a` int(11) DEFAULT NULL | ||
4471 | 1804 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4472 | 1805 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4473 | 1806 | DROP TABLE IF EXISTS `t1`; | ||
4474 | 1807 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4475 | 1808 | /*!40101 SET character_set_client = utf8 */; | ||
4476 | 1809 | CREATE TABLE `t1` ( | ||
4477 | 1810 | `a` int(11) DEFAULT NULL | ||
4478 | 1811 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4479 | 1812 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4480 | 1813 | DROP TABLE IF EXISTS `t2`; | ||
4481 | 1814 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4482 | 1815 | /*!40101 SET character_set_client = utf8 */; | ||
4483 | 1816 | CREATE TABLE `t2` ( | ||
4484 | 1817 | `a` int(11) DEFAULT NULL | ||
4485 | 1818 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4486 | 1819 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4487 | 1820 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4488 | 1821 | |||
4489 | 1822 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4490 | 1823 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4491 | 1824 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4492 | 1825 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4493 | 1826 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4494 | 1827 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4495 | 1828 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4496 | 1829 | |||
4497 | 1830 | drop table t1, t2, t3; | ||
4498 | 1831 | # | ||
4499 | 1832 | # Bug#21288 mysqldump segmentation fault when using --where | ||
4500 | 1833 | # | ||
4501 | 1834 | create table t1 (a int); | ||
4502 | 1835 | mysqldump: Couldn't execute 'SELECT /*!40001 SQL_NO_CACHE */ * FROM `t1` WHERE xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' at line 1 (1064) | ||
4503 | 1836 | mysqldump: Got error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' at line 1 when retrieving data from server | ||
4504 | 1837 | |||
4505 | 1838 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4506 | 1839 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4507 | 1840 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4508 | 1841 | /*!40101 SET NAMES utf8 */; | ||
4509 | 1842 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4510 | 1843 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4511 | 1844 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4512 | 1845 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4513 | 1846 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4514 | 1847 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4515 | 1848 | DROP TABLE IF EXISTS `t1`; | ||
4516 | 1849 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4517 | 1850 | /*!40101 SET character_set_client = utf8 */; | ||
4518 | 1851 | CREATE TABLE `t1` ( | ||
4519 | 1852 | `a` int(11) DEFAULT NULL | ||
4520 | 1853 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4521 | 1854 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4522 | 1855 | |||
4523 | 1856 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4524 | 1857 | |||
4525 | 1858 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4526 | 1859 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4527 | 1860 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4528 | 1861 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4529 | 1862 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4530 | 1863 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4531 | 1864 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4532 | 1865 | |||
4533 | 1866 | drop table t1; | ||
4534 | 1867 | # | ||
4535 | 1868 | # Bug#13926 --order-by-primary fails if PKEY contains quote character | ||
4536 | 1869 | # | ||
4537 | 1870 | DROP TABLE IF EXISTS `t1`; | ||
4538 | 1871 | CREATE TABLE `t1` ( | ||
4539 | 1872 | `a b` INT, | ||
4540 | 1873 | `c"d` INT, | ||
4541 | 1874 | `e``f` INT, | ||
4542 | 1875 | PRIMARY KEY (`a b`, `c"d`, `e``f`) | ||
4543 | 1876 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4544 | 1877 | insert into t1 values (0815, 4711, 2006); | ||
4545 | 1878 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4546 | 1879 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4547 | 1880 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4548 | 1881 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4549 | 1882 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */; | ||
4550 | 1883 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4551 | 1884 | DROP TABLE IF EXISTS "t1"; | ||
4552 | 1885 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4553 | 1886 | /*!40101 SET character_set_client = utf8 */; | ||
4554 | 1887 | CREATE TABLE "t1" ( | ||
4555 | 1888 | "a b" int(11) NOT NULL DEFAULT '0', | ||
4556 | 1889 | "c""d" int(11) NOT NULL DEFAULT '0', | ||
4557 | 1890 | "e`f" int(11) NOT NULL DEFAULT '0', | ||
4558 | 1891 | PRIMARY KEY ("a b","c""d","e`f") | ||
4559 | 1892 | ); | ||
4560 | 1893 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4561 | 1894 | |||
4562 | 1895 | LOCK TABLES "t1" WRITE; | ||
4563 | 1896 | /*!40000 ALTER TABLE "t1" DISABLE KEYS */; | ||
4564 | 1897 | INSERT INTO "t1" VALUES (815,4711,2006); | ||
4565 | 1898 | /*!40000 ALTER TABLE "t1" ENABLE KEYS */; | ||
4566 | 1899 | UNLOCK TABLES; | ||
4567 | 1900 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4568 | 1901 | |||
4569 | 1902 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4570 | 1903 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4571 | 1904 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4572 | 1905 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4573 | 1906 | |||
4574 | 1907 | |||
4575 | 1908 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4576 | 1909 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4577 | 1910 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4578 | 1911 | /*!40101 SET NAMES utf8 */; | ||
4579 | 1912 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4580 | 1913 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4581 | 1914 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4582 | 1915 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4583 | 1916 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4584 | 1917 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4585 | 1918 | DROP TABLE IF EXISTS `t1`; | ||
4586 | 1919 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4587 | 1920 | /*!40101 SET character_set_client = utf8 */; | ||
4588 | 1921 | CREATE TABLE `t1` ( | ||
4589 | 1922 | `a b` int(11) NOT NULL DEFAULT '0', | ||
4590 | 1923 | `c"d` int(11) NOT NULL DEFAULT '0', | ||
4591 | 1924 | `e``f` int(11) NOT NULL DEFAULT '0', | ||
4592 | 1925 | PRIMARY KEY (`a b`,`c"d`,`e``f`) | ||
4593 | 1926 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4594 | 1927 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4595 | 1928 | |||
4596 | 1929 | LOCK TABLES `t1` WRITE; | ||
4597 | 1930 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
4598 | 1931 | INSERT INTO `t1` VALUES (815,4711,2006); | ||
4599 | 1932 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
4600 | 1933 | UNLOCK TABLES; | ||
4601 | 1934 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4602 | 1935 | |||
4603 | 1936 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4604 | 1937 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4605 | 1938 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4606 | 1939 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4607 | 1940 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4608 | 1941 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4609 | 1942 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4610 | 1943 | |||
4611 | 1944 | DROP TABLE `t1`; | ||
4612 | 1945 | End of 4.1 tests | ||
4613 | 1946 | # | ||
4614 | 1947 | # Bug#10213 mysqldump crashes when dumping VIEWs(on MacOS X) | ||
4615 | 1948 | # | ||
4616 | 1949 | create database db1; | ||
4617 | 1950 | use db1; | ||
4618 | 1951 | CREATE TABLE t2 ( | ||
4619 | 1952 | a varchar(30) default NULL, | ||
4620 | 1953 | KEY a (a(5)) | ||
4621 | 1954 | ); | ||
4622 | 1955 | INSERT INTO t2 VALUES ('alfred'); | ||
4623 | 1956 | INSERT INTO t2 VALUES ('angie'); | ||
4624 | 1957 | INSERT INTO t2 VALUES ('bingo'); | ||
4625 | 1958 | INSERT INTO t2 VALUES ('waffle'); | ||
4626 | 1959 | INSERT INTO t2 VALUES ('lemon'); | ||
4627 | 1960 | create view v2 as select * from t2 where a like 'a%' with check option; | ||
4628 | 1961 | |||
4629 | 1962 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4630 | 1963 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4631 | 1964 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4632 | 1965 | /*!40101 SET NAMES utf8 */; | ||
4633 | 1966 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4634 | 1967 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4635 | 1968 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4636 | 1969 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4637 | 1970 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4638 | 1971 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4639 | 1972 | DROP TABLE IF EXISTS `t2`; | ||
4640 | 1973 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4641 | 1974 | /*!40101 SET character_set_client = utf8 */; | ||
4642 | 1975 | CREATE TABLE `t2` ( | ||
4643 | 1976 | `a` varchar(30) DEFAULT NULL, | ||
4644 | 1977 | KEY `a` (`a`(5)) | ||
4645 | 1978 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4646 | 1979 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4647 | 1980 | |||
4648 | 1981 | LOCK TABLES `t2` WRITE; | ||
4649 | 1982 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | ||
4650 | 1983 | INSERT INTO `t2` VALUES ('alfred'),('angie'),('bingo'),('waffle'),('lemon'); | ||
4651 | 1984 | /*!40000 ALTER TABLE `t2` ENABLE KEYS */; | ||
4652 | 1985 | UNLOCK TABLES; | ||
4653 | 1986 | DROP TABLE IF EXISTS `v2`; | ||
4654 | 1987 | /*!50001 DROP VIEW IF EXISTS `v2`*/; | ||
4655 | 1988 | SET @saved_cs_client = @@character_set_client; | ||
4656 | 1989 | SET character_set_client = utf8; | ||
4657 | 1990 | /*!50001 CREATE TABLE `v2` ( | ||
4658 | 1991 | `a` varchar(30) | ||
4659 | 1992 | ) ENGINE=MyISAM */; | ||
4660 | 1993 | SET character_set_client = @saved_cs_client; | ||
4661 | 1994 | /*!50001 DROP TABLE IF EXISTS `v2`*/; | ||
4662 | 1995 | /*!50001 DROP VIEW IF EXISTS `v2`*/; | ||
4663 | 1996 | /*!50001 SET @saved_cs_client = @@character_set_client */; | ||
4664 | 1997 | /*!50001 SET @saved_cs_results = @@character_set_results */; | ||
4665 | 1998 | /*!50001 SET @saved_col_connection = @@collation_connection */; | ||
4666 | 1999 | /*!50001 SET character_set_client = latin1 */; | ||
4667 | 2000 | /*!50001 SET character_set_results = latin1 */; | ||
4668 | 2001 | /*!50001 SET collation_connection = latin1_swedish_ci */; | ||
4669 | 2002 | /*!50001 CREATE ALGORITHM=UNDEFINED */ | ||
4670 | 2003 | /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | ||
4671 | 2004 | /*!50001 VIEW `v2` AS select `t2`.`a` AS `a` from `t2` where (`t2`.`a` like 'a%') */ | ||
4672 | 2005 | /*!50002 WITH CASCADED CHECK OPTION */; | ||
4673 | 2006 | /*!50001 SET character_set_client = @saved_cs_client */; | ||
4674 | 2007 | /*!50001 SET character_set_results = @saved_cs_results */; | ||
4675 | 2008 | /*!50001 SET collation_connection = @saved_col_connection */; | ||
4676 | 2009 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4677 | 2010 | |||
4678 | 2011 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4679 | 2012 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4680 | 2013 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4681 | 2014 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4682 | 2015 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4683 | 2016 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4684 | 2017 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4685 | 2018 | |||
4686 | 2019 | drop table t2; | ||
4687 | 2020 | drop view v2; | ||
4688 | 2021 | drop database db1; | ||
4689 | 2022 | use test; | ||
4690 | 2023 | # | ||
4691 | 2024 | # Bug#10713 mysqldump includes database in create view and referenced tables | ||
4692 | 2025 | # | ||
4693 | 2026 | create database db2; | ||
4694 | 2027 | use db2; | ||
4695 | 2028 | create table t1 (a int); | ||
4696 | 2029 | create table t2 (a int, b varchar(10), primary key(a)); | ||
4697 | 2030 | insert into t2 values (1, "on"), (2, "off"), (10, "pol"), (12, "meg"); | ||
4698 | 2031 | insert into t1 values (289), (298), (234), (456), (789); | ||
4699 | 2032 | create view v1 as select * from t2; | ||
4700 | 2033 | create view v2 as select * from t1; | ||
4701 | 2034 | drop table t1, t2; | ||
4702 | 2035 | drop view v1, v2; | ||
4703 | 2036 | drop database db2; | ||
4704 | 2037 | use test; | ||
4705 | 2038 | create database db1; | ||
4706 | 2039 | use db1; | ||
4707 | 2040 | show tables; | ||
4708 | 2041 | Tables_in_db1 | ||
4709 | 2042 | t1 | ||
4710 | 2043 | t2 | ||
4711 | 2044 | v1 | ||
4712 | 2045 | v2 | ||
4713 | 2046 | select * from t2 order by a; | ||
4714 | 2047 | a b | ||
4715 | 2048 | 1 on | ||
4716 | 2049 | 2 off | ||
4717 | 2050 | 10 pol | ||
4718 | 2051 | 12 meg | ||
4719 | 2052 | drop table t1, t2; | ||
4720 | 2053 | drop database db1; | ||
4721 | 2054 | use test; | ||
4722 | 2055 | create table t1(a int); | ||
4723 | 2056 | create view v1 as select * from t1; | ||
4724 | 2057 | |||
4725 | 2058 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4726 | 2059 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4727 | 2060 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4728 | 2061 | /*!40101 SET NAMES utf8 */; | ||
4729 | 2062 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4730 | 2063 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4731 | 2064 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4732 | 2065 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4733 | 2066 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4734 | 2067 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4735 | 2068 | DROP TABLE IF EXISTS `t1`; | ||
4736 | 2069 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4737 | 2070 | /*!40101 SET character_set_client = utf8 */; | ||
4738 | 2071 | CREATE TABLE `t1` ( | ||
4739 | 2072 | `a` int(11) DEFAULT NULL | ||
4740 | 2073 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4741 | 2074 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4742 | 2075 | |||
4743 | 2076 | LOCK TABLES `t1` WRITE; | ||
4744 | 2077 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
4745 | 2078 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
4746 | 2079 | UNLOCK TABLES; | ||
4747 | 2080 | DROP TABLE IF EXISTS `v1`; | ||
4748 | 2081 | /*!50001 DROP VIEW IF EXISTS `v1`*/; | ||
4749 | 2082 | SET @saved_cs_client = @@character_set_client; | ||
4750 | 2083 | SET character_set_client = utf8; | ||
4751 | 2084 | /*!50001 CREATE TABLE `v1` ( | ||
4752 | 2085 | `a` int(11) | ||
4753 | 2086 | ) ENGINE=MyISAM */; | ||
4754 | 2087 | SET character_set_client = @saved_cs_client; | ||
4755 | 2088 | /*!50001 DROP TABLE IF EXISTS `v1`*/; | ||
4756 | 2089 | /*!50001 DROP VIEW IF EXISTS `v1`*/; | ||
4757 | 2090 | /*!50001 SET @saved_cs_client = @@character_set_client */; | ||
4758 | 2091 | /*!50001 SET @saved_cs_results = @@character_set_results */; | ||
4759 | 2092 | /*!50001 SET @saved_col_connection = @@collation_connection */; | ||
4760 | 2093 | /*!50001 SET character_set_client = latin1 */; | ||
4761 | 2094 | /*!50001 SET character_set_results = latin1 */; | ||
4762 | 2095 | /*!50001 SET collation_connection = latin1_swedish_ci */; | ||
4763 | 2096 | /*!50001 CREATE ALGORITHM=UNDEFINED */ | ||
4764 | 2097 | /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | ||
4765 | 2098 | /*!50001 VIEW `v1` AS select `t1`.`a` AS `a` from `t1` */; | ||
4766 | 2099 | /*!50001 SET character_set_client = @saved_cs_client */; | ||
4767 | 2100 | /*!50001 SET character_set_results = @saved_cs_results */; | ||
4768 | 2101 | /*!50001 SET collation_connection = @saved_col_connection */; | ||
4769 | 2102 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4770 | 2103 | |||
4771 | 2104 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4772 | 2105 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4773 | 2106 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4774 | 2107 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4775 | 2108 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4776 | 2109 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4777 | 2110 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4778 | 2111 | |||
4779 | 2112 | drop view v1; | ||
4780 | 2113 | drop table t1; | ||
4781 | 2114 | # | ||
4782 | 2115 | # Bug#10213 mysqldump crashes when dumping VIEWs(on MacOS X) | ||
4783 | 2116 | # | ||
4784 | 2117 | create database mysqldump_test_db; | ||
4785 | 2118 | use mysqldump_test_db; | ||
4786 | 2119 | CREATE TABLE t2 ( | ||
4787 | 2120 | a varchar(30) default NULL, | ||
4788 | 2121 | KEY a (a(5)) | ||
4789 | 2122 | ); | ||
4790 | 2123 | INSERT INTO t2 VALUES ('alfred'); | ||
4791 | 2124 | INSERT INTO t2 VALUES ('angie'); | ||
4792 | 2125 | INSERT INTO t2 VALUES ('bingo'); | ||
4793 | 2126 | INSERT INTO t2 VALUES ('waffle'); | ||
4794 | 2127 | INSERT INTO t2 VALUES ('lemon'); | ||
4795 | 2128 | create view v2 as select * from t2 where a like 'a%' with check option; | ||
4796 | 2129 | |||
4797 | 2130 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4798 | 2131 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4799 | 2132 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4800 | 2133 | /*!40101 SET NAMES utf8 */; | ||
4801 | 2134 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4802 | 2135 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4803 | 2136 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4804 | 2137 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4805 | 2138 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4806 | 2139 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4807 | 2140 | DROP TABLE IF EXISTS `t2`; | ||
4808 | 2141 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4809 | 2142 | /*!40101 SET character_set_client = utf8 */; | ||
4810 | 2143 | CREATE TABLE `t2` ( | ||
4811 | 2144 | `a` varchar(30) DEFAULT NULL, | ||
4812 | 2145 | KEY `a` (`a`(5)) | ||
4813 | 2146 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4814 | 2147 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4815 | 2148 | |||
4816 | 2149 | LOCK TABLES `t2` WRITE; | ||
4817 | 2150 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | ||
4818 | 2151 | INSERT INTO `t2` VALUES ('alfred'),('angie'),('bingo'),('waffle'),('lemon'); | ||
4819 | 2152 | /*!40000 ALTER TABLE `t2` ENABLE KEYS */; | ||
4820 | 2153 | UNLOCK TABLES; | ||
4821 | 2154 | DROP TABLE IF EXISTS `v2`; | ||
4822 | 2155 | /*!50001 DROP VIEW IF EXISTS `v2`*/; | ||
4823 | 2156 | SET @saved_cs_client = @@character_set_client; | ||
4824 | 2157 | SET character_set_client = utf8; | ||
4825 | 2158 | /*!50001 CREATE TABLE `v2` ( | ||
4826 | 2159 | `a` varchar(30) | ||
4827 | 2160 | ) ENGINE=MyISAM */; | ||
4828 | 2161 | SET character_set_client = @saved_cs_client; | ||
4829 | 2162 | /*!50001 DROP TABLE IF EXISTS `v2`*/; | ||
4830 | 2163 | /*!50001 DROP VIEW IF EXISTS `v2`*/; | ||
4831 | 2164 | /*!50001 SET @saved_cs_client = @@character_set_client */; | ||
4832 | 2165 | /*!50001 SET @saved_cs_results = @@character_set_results */; | ||
4833 | 2166 | /*!50001 SET @saved_col_connection = @@collation_connection */; | ||
4834 | 2167 | /*!50001 SET character_set_client = latin1 */; | ||
4835 | 2168 | /*!50001 SET character_set_results = latin1 */; | ||
4836 | 2169 | /*!50001 SET collation_connection = latin1_swedish_ci */; | ||
4837 | 2170 | /*!50001 CREATE ALGORITHM=UNDEFINED */ | ||
4838 | 2171 | /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | ||
4839 | 2172 | /*!50001 VIEW `v2` AS select `t2`.`a` AS `a` from `t2` where (`t2`.`a` like 'a%') */ | ||
4840 | 2173 | /*!50002 WITH CASCADED CHECK OPTION */; | ||
4841 | 2174 | /*!50001 SET character_set_client = @saved_cs_client */; | ||
4842 | 2175 | /*!50001 SET character_set_results = @saved_cs_results */; | ||
4843 | 2176 | /*!50001 SET collation_connection = @saved_col_connection */; | ||
4844 | 2177 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4845 | 2178 | |||
4846 | 2179 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4847 | 2180 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4848 | 2181 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4849 | 2182 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4850 | 2183 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4851 | 2184 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4852 | 2185 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4853 | 2186 | |||
4854 | 2187 | drop table t2; | ||
4855 | 2188 | drop view v2; | ||
4856 | 2189 | drop database mysqldump_test_db; | ||
4857 | 2190 | use test; | ||
4858 | 2191 | # | ||
4859 | 2192 | # Bug#9756 mysql client failing on dumps containing certain \ sequences | ||
4860 | 2193 | # | ||
4861 | 2194 | CREATE TABLE t1 (a char(10)); | ||
4862 | 2195 | INSERT INTO t1 VALUES ('\''); | ||
4863 | 2196 | |||
4864 | 2197 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4865 | 2198 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4866 | 2199 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4867 | 2200 | /*!40101 SET NAMES utf8 */; | ||
4868 | 2201 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4869 | 2202 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4870 | 2203 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4871 | 2204 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4872 | 2205 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4873 | 2206 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4874 | 2207 | DROP TABLE IF EXISTS `t1`; | ||
4875 | 2208 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4876 | 2209 | /*!40101 SET character_set_client = utf8 */; | ||
4877 | 2210 | CREATE TABLE `t1` ( | ||
4878 | 2211 | `a` char(10) DEFAULT NULL | ||
4879 | 2212 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4880 | 2213 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4881 | 2214 | |||
4882 | 2215 | LOCK TABLES `t1` WRITE; | ||
4883 | 2216 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
4884 | 2217 | INSERT INTO `t1` VALUES ('\''); | ||
4885 | 2218 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
4886 | 2219 | UNLOCK TABLES; | ||
4887 | 2220 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
4888 | 2221 | |||
4889 | 2222 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
4890 | 2223 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
4891 | 2224 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
4892 | 2225 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
4893 | 2226 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
4894 | 2227 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
4895 | 2228 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
4896 | 2229 | |||
4897 | 2230 | DROP TABLE t1; | ||
4898 | 2231 | # | ||
4899 | 2232 | # Bug#10927 mysqldump: Can't reload dump with view that consist of other view | ||
4900 | 2233 | # | ||
4901 | 2234 | create table t1(a int, b int, c varchar(30)); | ||
4902 | 2235 | insert into t1 values(1, 2, "one"), (2, 4, "two"), (3, 6, "three"); | ||
4903 | 2236 | create view v3 as | ||
4904 | 2237 | select * from t1; | ||
4905 | 2238 | create view v1 as | ||
4906 | 2239 | select * from v3 where b in (1, 2, 3, 4, 5, 6, 7); | ||
4907 | 2240 | create view v2 as | ||
4908 | 2241 | select v3.a from v3, v1 where v1.a=v3.a and v3.b=3 limit 1; | ||
4909 | 2242 | |||
4910 | 2243 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
4911 | 2244 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
4912 | 2245 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
4913 | 2246 | /*!40101 SET NAMES utf8 */; | ||
4914 | 2247 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
4915 | 2248 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
4916 | 2249 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
4917 | 2250 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
4918 | 2251 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
4919 | 2252 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
4920 | 2253 | DROP TABLE IF EXISTS `t1`; | ||
4921 | 2254 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
4922 | 2255 | /*!40101 SET character_set_client = utf8 */; | ||
4923 | 2256 | CREATE TABLE `t1` ( | ||
4924 | 2257 | `a` int(11) DEFAULT NULL, | ||
4925 | 2258 | `b` int(11) DEFAULT NULL, | ||
4926 | 2259 | `c` varchar(30) DEFAULT NULL | ||
4927 | 2260 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
4928 | 2261 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
4929 | 2262 | |||
4930 | 2263 | LOCK TABLES `t1` WRITE; | ||
4931 | 2264 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
4932 | 2265 | INSERT INTO `t1` VALUES (1,2,'one'),(2,4,'two'),(3,6,'three'); | ||
4933 | 2266 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
4934 | 2267 | UNLOCK TABLES; | ||
4935 | 2268 | DROP TABLE IF EXISTS `v1`; | ||
4936 | 2269 | /*!50001 DROP VIEW IF EXISTS `v1`*/; | ||
4937 | 2270 | SET @saved_cs_client = @@character_set_client; | ||
4938 | 2271 | SET character_set_client = utf8; | ||
4939 | 2272 | /*!50001 CREATE TABLE `v1` ( | ||
4940 | 2273 | `a` int(11), | ||
4941 | 2274 | `b` int(11), | ||
4942 | 2275 | `c` varchar(30) | ||
4943 | 2276 | ) ENGINE=MyISAM */; | ||
4944 | 2277 | SET character_set_client = @saved_cs_client; | ||
4945 | 2278 | DROP TABLE IF EXISTS `v2`; | ||
4946 | 2279 | /*!50001 DROP VIEW IF EXISTS `v2`*/; | ||
4947 | 2280 | SET @saved_cs_client = @@character_set_client; | ||
4948 | 2281 | SET character_set_client = utf8; | ||
4949 | 2282 | /*!50001 CREATE TABLE `v2` ( | ||
4950 | 2283 | `a` int(11) | ||
4951 | 2284 | ) ENGINE=MyISAM */; | ||
4952 | 2285 | SET character_set_client = @saved_cs_client; | ||
4953 | 2286 | DROP TABLE IF EXISTS `v3`; | ||
4954 | 2287 | /*!50001 DROP VIEW IF EXISTS `v3`*/; | ||
4955 | 2288 | SET @saved_cs_client = @@character_set_client; | ||
4956 | 2289 | SET character_set_client = utf8; | ||
4957 | 2290 | /*!50001 CREATE TABLE `v3` ( | ||
4958 | 2291 | `a` int(11), | ||
4959 | 2292 | `b` int(11), | ||
4960 | 2293 | `c` varchar(30) | ||
4961 | 2294 | ) ENGINE=MyISAM */; | ||
4962 | 2295 | SET character_set_client = @saved_cs_client; | ||
4963 | 2296 | /*!50001 DROP TABLE IF EXISTS `v1`*/; | ||
4964 | 2297 | /*!50001 DROP VIEW IF EXISTS `v1`*/; | ||
4965 | 2298 | /*!50001 SET @saved_cs_client = @@character_set_client */; | ||
4966 | 2299 | /*!50001 SET @saved_cs_results = @@character_set_results */; | ||
4967 | 2300 | /*!50001 SET @saved_col_connection = @@collation_connection */; | ||
4968 | 2301 | /*!50001 SET character_set_client = latin1 */; | ||
4969 | 2302 | /*!50001 SET character_set_results = latin1 */; | ||
4970 | 2303 | /*!50001 SET collation_connection = latin1_swedish_ci */; | ||
4971 | 2304 | /*!50001 CREATE ALGORITHM=UNDEFINED */ | ||
4972 | 2305 | /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | ||
4973 | 2306 | /*!50001 VIEW `v1` AS select `v3`.`a` AS `a`,`v3`.`b` AS `b`,`v3`.`c` AS `c` from `v3` where (`v3`.`b` in (1,2,3,4,5,6,7)) */; | ||
4974 | 2307 | /*!50001 SET character_set_client = @saved_cs_client */; | ||
4975 | 2308 | /*!50001 SET character_set_results = @saved_cs_results */; | ||
4976 | 2309 | /*!50001 SET collation_connection = @saved_col_connection */; | ||
4977 | 2310 | /*!50001 DROP TABLE IF EXISTS `v2`*/; | ||
4978 | 2311 | /*!50001 DROP VIEW IF EXISTS `v2`*/; | ||
4979 | 2312 | /*!50001 SET @saved_cs_client = @@character_set_client */; | ||
4980 | 2313 | /*!50001 SET @saved_cs_results = @@character_set_results */; | ||
4981 | 2314 | /*!50001 SET @saved_col_connection = @@collation_connection */; | ||
4982 | 2315 | /*!50001 SET character_set_client = latin1 */; | ||
4983 | 2316 | /*!50001 SET character_set_results = latin1 */; | ||
4984 | 2317 | /*!50001 SET collation_connection = latin1_swedish_ci */; | ||
4985 | 2318 | /*!50001 CREATE ALGORITHM=UNDEFINED */ | ||
4986 | 2319 | /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | ||
4987 | 2320 | /*!50001 VIEW `v2` AS select `v3`.`a` AS `a` from (`v3` join `v1`) where ((`v1`.`a` = `v3`.`a`) and (`v3`.`b` = 3)) limit 1 */; | ||
4988 | 2321 | /*!50001 SET character_set_client = @saved_cs_client */; | ||
4989 | 2322 | /*!50001 SET character_set_results = @saved_cs_results */; | ||
4990 | 2323 | /*!50001 SET collation_connection = @saved_col_connection */; | ||
4991 | 2324 | /*!50001 DROP TABLE IF EXISTS `v3`*/; | ||
4992 | 2325 | /*!50001 DROP VIEW IF EXISTS `v3`*/; | ||
4993 | 2326 | /*!50001 SET @saved_cs_client = @@character_set_client */; | ||
4994 | 2327 | /*!50001 SET @saved_cs_results = @@character_set_results */; | ||
4995 | 2328 | /*!50001 SET @saved_col_connection = @@collation_connection */; | ||
4996 | 2329 | /*!50001 SET character_set_client = latin1 */; | ||
4997 | 2330 | /*!50001 SET character_set_results = latin1 */; | ||
4998 | 2331 | /*!50001 SET collation_connection = latin1_swedish_ci */; | ||
4999 | 2332 | /*!50001 CREATE ALGORITHM=UNDEFINED */ | ||
5000 | 2333 | /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ |