Commit 62f4505
committed
MDEV-36269: improve error handling for source command
- refactor and move batch_readline_init to mysql.cc for proper error handling
- add unit test and move it to the end of main/mysql_client_test.test to resolve embedded test failures
- remove unnecessary code and duplicates to clean up implementation
- redirect error message from stderr to stdout in .test file
- use labels to avoid code duplication1 parent c4264c9 commit 62f4505
File tree
5 files changed
+92
-45
lines changed- client
- mysql-test/main
5 files changed
+92
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1207 | 1207 | | |
1208 | 1208 | | |
1209 | 1209 | | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1210 | 1279 | | |
1211 | 1280 | | |
1212 | 1281 | | |
| |||
1281 | 1350 | | |
1282 | 1351 | | |
1283 | 1352 | | |
1284 | | - | |
| 1353 | + | |
1285 | 1354 | | |
1286 | | - | |
1287 | | - | |
1288 | 1355 | | |
1289 | 1356 | | |
1290 | 1357 | | |
| |||
4682 | 4749 | | |
4683 | 4750 | | |
4684 | 4751 | | |
4685 | | - | |
4686 | 4752 | | |
4687 | 4753 | | |
4688 | 4754 | | |
| |||
4702 | 4768 | | |
4703 | 4769 | | |
4704 | 4770 | | |
4705 | | - | |
4706 | | - | |
4707 | | - | |
4708 | | - | |
4709 | | - | |
4710 | | - | |
4711 | | - | |
4712 | 4771 | | |
4713 | | - | |
| 4772 | + | |
4714 | 4773 | | |
4715 | | - | |
4716 | | - | |
| 4774 | + | |
4717 | 4775 | | |
4718 | 4776 | | |
4719 | 4777 | | |
| |||
4732 | 4790 | | |
4733 | 4791 | | |
4734 | 4792 | | |
4735 | | - | |
| 4793 | + | |
4736 | 4794 | | |
4737 | 4795 | | |
4738 | 4796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 31 | | |
59 | 32 | | |
60 | 33 | | |
| |||
105 | 78 | | |
106 | 79 | | |
107 | 80 | | |
108 | | - | |
109 | | - | |
| 81 | + | |
110 | 82 | | |
111 | 83 | | |
112 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
0 commit comments