@@ -34,7 +34,7 @@ abstract class Context
34
34
*
35
35
* @var int
36
36
*/
37
- const KEYWORD_MAX_LENGTH = 30 ;
37
+ public const KEYWORD_MAX_LENGTH = 30 ;
38
38
39
39
/**
40
40
* The maximum length of a label.
@@ -44,7 +44,7 @@ abstract class Context
44
44
*
45
45
* @var int
46
46
*/
47
- const LABEL_MAX_LENGTH = 16 ;
47
+ public const LABEL_MAX_LENGTH = 16 ;
48
48
49
49
/**
50
50
* The maximum length of an operator.
@@ -53,7 +53,7 @@ abstract class Context
53
53
*
54
54
* @var int
55
55
*/
56
- const OPERATOR_MAX_LENGTH = 4 ;
56
+ public const OPERATOR_MAX_LENGTH = 4 ;
57
57
58
58
/**
59
59
* The name of the default content.
@@ -162,109 +162,109 @@ abstract class Context
162
162
163
163
// Compatibility mode for Microsoft's SQL server.
164
164
// This is the equivalent of ANSI_QUOTES.
165
- const SQL_MODE_COMPAT_MYSQL = 2 ;
165
+ public const SQL_MODE_COMPAT_MYSQL = 2 ;
166
166
167
167
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_allow_invalid_dates
168
- const SQL_MODE_ALLOW_INVALID_DATES = 1 ;
168
+ public const SQL_MODE_ALLOW_INVALID_DATES = 1 ;
169
169
170
170
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_ansi_quotes
171
- const SQL_MODE_ANSI_QUOTES = 2 ;
171
+ public const SQL_MODE_ANSI_QUOTES = 2 ;
172
172
173
173
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_error_for_division_by_zero
174
- const SQL_MODE_ERROR_FOR_DIVISION_BY_ZERO = 4 ;
174
+ public const SQL_MODE_ERROR_FOR_DIVISION_BY_ZERO = 4 ;
175
175
176
176
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_high_not_precedence
177
- const SQL_MODE_HIGH_NOT_PRECEDENCE = 8 ;
177
+ public const SQL_MODE_HIGH_NOT_PRECEDENCE = 8 ;
178
178
179
179
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_ignore_space
180
- const SQL_MODE_IGNORE_SPACE = 16 ;
180
+ public const SQL_MODE_IGNORE_SPACE = 16 ;
181
181
182
182
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_auto_create_user
183
- const SQL_MODE_NO_AUTO_CREATE_USER = 32 ;
183
+ public const SQL_MODE_NO_AUTO_CREATE_USER = 32 ;
184
184
185
185
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_auto_value_on_zero
186
- const SQL_MODE_NO_AUTO_VALUE_ON_ZERO = 64 ;
186
+ public const SQL_MODE_NO_AUTO_VALUE_ON_ZERO = 64 ;
187
187
188
188
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_backslash_escapes
189
- const SQL_MODE_NO_BACKSLASH_ESCAPES = 128 ;
189
+ public const SQL_MODE_NO_BACKSLASH_ESCAPES = 128 ;
190
190
191
191
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_dir_in_create
192
- const SQL_MODE_NO_DIR_IN_CREATE = 256 ;
192
+ public const SQL_MODE_NO_DIR_IN_CREATE = 256 ;
193
193
194
194
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_dir_in_create
195
- const SQL_MODE_NO_ENGINE_SUBSTITUTION = 512 ;
195
+ public const SQL_MODE_NO_ENGINE_SUBSTITUTION = 512 ;
196
196
197
197
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_field_options
198
- const SQL_MODE_NO_FIELD_OPTIONS = 1024 ;
198
+ public const SQL_MODE_NO_FIELD_OPTIONS = 1024 ;
199
199
200
200
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_key_options
201
- const SQL_MODE_NO_KEY_OPTIONS = 2048 ;
201
+ public const SQL_MODE_NO_KEY_OPTIONS = 2048 ;
202
202
203
203
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_table_options
204
- const SQL_MODE_NO_TABLE_OPTIONS = 4096 ;
204
+ public const SQL_MODE_NO_TABLE_OPTIONS = 4096 ;
205
205
206
206
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_unsigned_subtraction
207
- const SQL_MODE_NO_UNSIGNED_SUBTRACTION = 8192 ;
207
+ public const SQL_MODE_NO_UNSIGNED_SUBTRACTION = 8192 ;
208
208
209
209
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_zero_date
210
- const SQL_MODE_NO_ZERO_DATE = 16384 ;
210
+ public const SQL_MODE_NO_ZERO_DATE = 16384 ;
211
211
212
212
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_no_zero_in_date
213
- const SQL_MODE_NO_ZERO_IN_DATE = 32768 ;
213
+ public const SQL_MODE_NO_ZERO_IN_DATE = 32768 ;
214
214
215
215
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_only_full_group_by
216
- const SQL_MODE_ONLY_FULL_GROUP_BY = 65536 ;
216
+ public const SQL_MODE_ONLY_FULL_GROUP_BY = 65536 ;
217
217
218
218
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_pipes_as_concat
219
- const SQL_MODE_PIPES_AS_CONCAT = 131072 ;
219
+ public const SQL_MODE_PIPES_AS_CONCAT = 131072 ;
220
220
221
221
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_real_as_float
222
- const SQL_MODE_REAL_AS_FLOAT = 262144 ;
222
+ public const SQL_MODE_REAL_AS_FLOAT = 262144 ;
223
223
224
224
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_strict_all_tables
225
- const SQL_MODE_STRICT_ALL_TABLES = 524288 ;
225
+ public const SQL_MODE_STRICT_ALL_TABLES = 524288 ;
226
226
227
227
// https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sqlmode_strict_trans_tables
228
- const SQL_MODE_STRICT_TRANS_TABLES = 1048576 ;
228
+ public const SQL_MODE_STRICT_TRANS_TABLES = 1048576 ;
229
229
230
230
// Custom modes.
231
231
232
232
// The table and column names and any other field that must be escaped will
233
233
// not be.
234
234
// Reserved keywords are being escaped regardless this mode is used or not.
235
- const SQL_MODE_NO_ENCLOSING_QUOTES = 1073741824 ;
235
+ public const SQL_MODE_NO_ENCLOSING_QUOTES = 1073741824 ;
236
236
237
237
/*
238
238
* Combination SQL Modes
239
239
* https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sql-mode-combo
240
240
*/
241
241
242
242
// REAL_AS_FLOAT, PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE
243
- const SQL_MODE_ANSI = 393234 ;
243
+ public const SQL_MODE_ANSI = 393234 ;
244
244
245
245
// PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS,
246
246
// NO_TABLE_OPTIONS, NO_FIELD_OPTIONS,
247
- const SQL_MODE_DB2 = 138258 ;
247
+ public const SQL_MODE_DB2 = 138258 ;
248
248
249
249
// PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS,
250
250
// NO_TABLE_OPTIONS, NO_FIELD_OPTIONS, NO_AUTO_CREATE_USER
251
- const SQL_MODE_MAXDB = 138290 ;
251
+ public const SQL_MODE_MAXDB = 138290 ;
252
252
253
253
// PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS,
254
254
// NO_TABLE_OPTIONS, NO_FIELD_OPTIONS
255
- const SQL_MODE_MSSQL = 138258 ;
255
+ public const SQL_MODE_MSSQL = 138258 ;
256
256
257
257
// PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS,
258
258
// NO_TABLE_OPTIONS, NO_FIELD_OPTIONS, NO_AUTO_CREATE_USER
259
- const SQL_MODE_ORACLE = 138290 ;
259
+ public const SQL_MODE_ORACLE = 138290 ;
260
260
261
261
// PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS,
262
262
// NO_TABLE_OPTIONS, NO_FIELD_OPTIONS
263
- const SQL_MODE_POSTGRESQL = 138258 ;
263
+ public const SQL_MODE_POSTGRESQL = 138258 ;
264
264
265
265
// STRICT_TRANS_TABLES, STRICT_ALL_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE,
266
266
// ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER
267
- const SQL_MODE_TRADITIONAL = 1622052 ;
267
+ public const SQL_MODE_TRADITIONAL = 1622052 ;
268
268
269
269
// -------------------------------------------------------------------------
270
270
// Keyword.
0 commit comments