Lines 1-63
Link Here
|
1 |
--- sql/sql_view.cc.orig 2016-11-27 19:44:54 UTC |
|
|
2 |
+++ sql/sql_view.cc |
3 |
@@ -773,46 +773,46 @@ static const int required_view_parameter |
4 |
*/ |
5 |
static File_option view_parameters[]= |
6 |
{{{ C_STRING_WITH_LEN("query")}, |
7 |
- my_offsetof(TABLE_LIST, select_stmt), |
8 |
+ static_cast<int>(my_offsetof(TABLE_LIST, select_stmt)), |
9 |
FILE_OPTIONS_ESTRING}, |
10 |
{{ C_STRING_WITH_LEN("md5")}, |
11 |
- my_offsetof(TABLE_LIST, md5), |
12 |
+ static_cast<int>(my_offsetof(TABLE_LIST, md5)), |
13 |
FILE_OPTIONS_STRING}, |
14 |
{{ C_STRING_WITH_LEN("updatable")}, |
15 |
- my_offsetof(TABLE_LIST, updatable_view), |
16 |
+ static_cast<int>(my_offsetof(TABLE_LIST, updatable_view)), |
17 |
FILE_OPTIONS_ULONGLONG}, |
18 |
{{ C_STRING_WITH_LEN("algorithm")}, |
19 |
- my_offsetof(TABLE_LIST, algorithm), |
20 |
+ static_cast<int>(my_offsetof(TABLE_LIST, algorithm)), |
21 |
FILE_OPTIONS_ULONGLONG}, |
22 |
{{ C_STRING_WITH_LEN("definer_user")}, |
23 |
- my_offsetof(TABLE_LIST, definer.user), |
24 |
+ static_cast<int>(my_offsetof(TABLE_LIST, definer.user)), |
25 |
FILE_OPTIONS_STRING}, |
26 |
{{ C_STRING_WITH_LEN("definer_host")}, |
27 |
- my_offsetof(TABLE_LIST, definer.host), |
28 |
+ static_cast<int>(my_offsetof(TABLE_LIST, definer.host)), |
29 |
FILE_OPTIONS_STRING}, |
30 |
{{ C_STRING_WITH_LEN("suid")}, |
31 |
- my_offsetof(TABLE_LIST, view_suid), |
32 |
+ static_cast<int>(my_offsetof(TABLE_LIST, view_suid)), |
33 |
FILE_OPTIONS_ULONGLONG}, |
34 |
{{ C_STRING_WITH_LEN("with_check_option")}, |
35 |
- my_offsetof(TABLE_LIST, with_check), |
36 |
+ static_cast<int>(my_offsetof(TABLE_LIST, with_check)), |
37 |
FILE_OPTIONS_ULONGLONG}, |
38 |
{{ C_STRING_WITH_LEN("timestamp")}, |
39 |
- my_offsetof(TABLE_LIST, timestamp), |
40 |
+ static_cast<int>(my_offsetof(TABLE_LIST, timestamp)), |
41 |
FILE_OPTIONS_TIMESTAMP}, |
42 |
{{ C_STRING_WITH_LEN("create-version")}, |
43 |
- my_offsetof(TABLE_LIST, file_version), |
44 |
+ static_cast<int>(my_offsetof(TABLE_LIST, file_version)), |
45 |
FILE_OPTIONS_ULONGLONG}, |
46 |
{{ C_STRING_WITH_LEN("source")}, |
47 |
- my_offsetof(TABLE_LIST, source), |
48 |
+ static_cast<int>(my_offsetof(TABLE_LIST, source)), |
49 |
FILE_OPTIONS_ESTRING}, |
50 |
{{(char*) STRING_WITH_LEN("client_cs_name")}, |
51 |
- my_offsetof(TABLE_LIST, view_client_cs_name), |
52 |
+ static_cast<int>(my_offsetof(TABLE_LIST, view_client_cs_name)), |
53 |
FILE_OPTIONS_STRING}, |
54 |
{{(char*) STRING_WITH_LEN("connection_cl_name")}, |
55 |
- my_offsetof(TABLE_LIST, view_connection_cl_name), |
56 |
+ static_cast<int>(my_offsetof(TABLE_LIST, view_connection_cl_name)), |
57 |
FILE_OPTIONS_STRING}, |
58 |
{{(char*) STRING_WITH_LEN("view_body_utf8")}, |
59 |
- my_offsetof(TABLE_LIST, view_body_utf8), |
60 |
+ static_cast<int>(my_offsetof(TABLE_LIST, view_body_utf8)), |
61 |
FILE_OPTIONS_ESTRING}, |
62 |
{{NullS, 0}, 0, |
63 |
FILE_OPTIONS_STRING} |