~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/info_schema/columns.cc

Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                                            DRIZZLE_TYPE_VARCHAR,
75
75
                                            0,
76
76
                                            1,
77
 
                                            "",
78
 
                                            OPEN_FRM_ONLY));
 
77
                                            ""));
79
78
 
80
79
  columns->push_back(new plugin::ColumnInfo("TABLE_SCHEMA",
81
80
                                            NAME_CHAR_LEN,
82
81
                                            DRIZZLE_TYPE_VARCHAR,
83
82
                                            0,
84
83
                                            0,
85
 
                                            "",
86
 
                                            OPEN_FRM_ONLY));
 
84
                                            ""));
87
85
 
88
86
  columns->push_back(new plugin::ColumnInfo("TABLE_NAME",
89
87
                                            NAME_CHAR_LEN,
90
88
                                            DRIZZLE_TYPE_VARCHAR,
91
89
                                            0,
92
90
                                            0,
93
 
                                            "",
94
 
                                            OPEN_FRM_ONLY));
 
91
                                            ""));
95
92
 
96
93
  columns->push_back(new plugin::ColumnInfo("COLUMN_NAME",
97
94
                                            NAME_CHAR_LEN,
98
95
                                            DRIZZLE_TYPE_VARCHAR,
99
96
                                            0,
100
97
                                            0,
101
 
                                            "Field",
102
 
                                            OPEN_FRM_ONLY));
 
98
                                            "Field"));
103
99
 
104
100
  columns->push_back(new plugin::ColumnInfo("ORDINAL_POSITION",
105
101
                                            MY_INT64_NUM_DECIMAL_DIGITS,
106
102
                                            DRIZZLE_TYPE_LONGLONG,
107
103
                                            0,
108
104
                                            MY_I_S_UNSIGNED,
109
 
                                            "",
110
 
                                            OPEN_FRM_ONLY));
 
105
                                            ""));
111
106
 
112
107
  columns->push_back(new plugin::ColumnInfo("COLUMN_DEFAULT",
113
 
                                            MAX_FIELD_VARCHARLENGTH,
 
108
                                            64,
114
109
                                            DRIZZLE_TYPE_VARCHAR,
115
110
                                            0,
116
111
                                            1,
117
 
                                            "Default",
118
 
                                            OPEN_FRM_ONLY));
 
112
                                            "Default"));
119
113
 
120
114
  columns->push_back(new plugin::ColumnInfo("IS_NULLABLE",
121
115
                                            3,
122
116
                                            DRIZZLE_TYPE_VARCHAR,
123
117
                                            0,
124
118
                                            0,
125
 
                                            "Null",
126
 
                                            OPEN_FRM_ONLY));
 
119
                                            "Null"));
127
120
 
128
121
  columns->push_back(new plugin::ColumnInfo("DATA_TYPE",
129
122
                                            NAME_CHAR_LEN,
130
123
                                            DRIZZLE_TYPE_VARCHAR,
131
124
                                            0,
132
125
                                            0,
133
 
                                            "",
134
 
                                            OPEN_FRM_ONLY));
 
126
                                            ""));
135
127
 
136
128
  columns->push_back(new plugin::ColumnInfo("CHARACTER_MAXIMUM_LENGTH",
137
129
                                           MY_INT64_NUM_DECIMAL_DIGITS,
138
130
                                           DRIZZLE_TYPE_LONGLONG,
139
131
                                           0,
140
132
                                           (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED),
141
 
                                           "",
142
 
                                           OPEN_FRM_ONLY));
 
133
                                           ""));
143
134
 
144
135
  columns->push_back(new plugin::ColumnInfo("CHARACTER_OCTET_LENGTH",
145
136
                                            MY_INT64_NUM_DECIMAL_DIGITS,
146
137
                                            DRIZZLE_TYPE_LONGLONG,
147
138
                                            0,
148
139
                                            (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED),
149
 
                                            "",
150
 
                                            OPEN_FRM_ONLY));
 
140
                                            ""));
151
141
 
152
142
  columns->push_back(new plugin::ColumnInfo("NUMERIC_PRECISION",
153
143
                                            MY_INT64_NUM_DECIMAL_DIGITS,
154
144
                                            DRIZZLE_TYPE_LONGLONG,
155
145
                                            0,
156
146
                                            (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED),
157
 
                                            "",
158
 
                                            OPEN_FRM_ONLY));
 
147
                                            ""));
159
148
 
160
149
  columns->push_back(new plugin::ColumnInfo("NUMERIC_SCALE",
161
150
                                            MY_INT64_NUM_DECIMAL_DIGITS,
162
151
                                            DRIZZLE_TYPE_LONGLONG,
163
152
                                            0,
164
153
                                            (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED),
165
 
                                            "",
166
 
                                            OPEN_FRM_ONLY));
 
154
                                            ""));
167
155
 
168
156
  columns->push_back(new plugin::ColumnInfo("CHARACTER_SET_NAME",
169
157
                                            64,
170
158
                                            DRIZZLE_TYPE_VARCHAR,
171
159
                                            0,
172
160
                                            1,
173
 
                                            "",
174
 
                                            OPEN_FRM_ONLY));
 
161
                                            ""));
175
162
 
176
163
  columns->push_back(new plugin::ColumnInfo("COLLATION_NAME",
177
164
                                            64,
178
165
                                            DRIZZLE_TYPE_VARCHAR,
179
166
                                            0,
180
167
                                            1,
181
 
                                            "Collation",
182
 
                                            OPEN_FRM_ONLY));
 
168
                                            "Collation"));
183
169
 
184
170
  columns->push_back(new plugin::ColumnInfo("COLUMN_TYPE",
185
 
                                            65535,
 
171
                                            64,
186
172
                                            DRIZZLE_TYPE_VARCHAR,
187
173
                                            0,
188
174
                                            0,
189
 
                                            "Type",
190
 
                                            OPEN_FRM_ONLY));
 
175
                                            "Type"));
191
176
 
192
177
  columns->push_back(new plugin::ColumnInfo("COLUMN_KEY",
193
178
                                            3,
194
179
                                            DRIZZLE_TYPE_VARCHAR,
195
180
                                            0,
196
181
                                            0,
197
 
                                            "Key",
198
 
                                            OPEN_FRM_ONLY));
 
182
                                            "Key"));
199
183
 
200
184
  columns->push_back(new plugin::ColumnInfo("EXTRA",
201
185
                                            27,
202
186
                                            DRIZZLE_TYPE_VARCHAR,
203
187
                                            0,
204
188
                                            0,
205
 
                                            "Extra",
206
 
                                            OPEN_FRM_ONLY));
 
189
                                            "Extra"));
207
190
 
208
191
  columns->push_back(new plugin::ColumnInfo("PRIVILEGES",
209
192
                                            80,
210
193
                                            DRIZZLE_TYPE_VARCHAR,
211
194
                                            0,
212
195
                                            0,
213
 
                                            "Privileges",
214
 
                                            OPEN_FRM_ONLY));
 
196
                                            "Privileges"));
215
197
 
216
198
  columns->push_back(new plugin::ColumnInfo("COLUMN_COMMENT",
217
199
                                            COLUMN_COMMENT_MAXLEN,
218
200
                                            DRIZZLE_TYPE_VARCHAR,
219
201
                                            0,
220
202
                                            0,
221
 
                                            "Comment",
222
 
                                            OPEN_FRM_ONLY));
 
203
                                            "Comment"));
223
204
 
224
205
  columns->push_back(new plugin::ColumnInfo("STORAGE",
225
206
                                            8,
226
207
                                            DRIZZLE_TYPE_VARCHAR,
227
208
                                            0,
228
209
                                            0,
229
 
                                            "Storage",
230
 
                                            OPEN_FRM_ONLY));
 
210
                                            "Storage"));
231
211
 
232
212
  columns->push_back(new plugin::ColumnInfo("FORMAT",
233
213
                                            8,
234
214
                                            DRIZZLE_TYPE_VARCHAR,
235
215
                                            0,
236
216
                                            0,
237
 
                                            "Format",
238
 
                                            OPEN_FRM_ONLY));
 
217
                                            "Format"));
239
218
  return columns;
240
219
}
241
220