@@ -169,29 +169,32 @@ private void FillColumns(DataTable dataTable)
169
169
new DataColumn ( "TABLE_SCHEMA" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
170
170
new DataColumn ( "TABLE_NAME" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
171
171
new DataColumn ( "COLUMN_NAME" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
172
- new DataColumn ( "ORDINAL_POSITION" , typeof ( int ) ) , // lgtm[cs/local-not-disposed]
172
+ new DataColumn ( "ORDINAL_POSITION" , typeof ( uint ) ) , // lgtm[cs/local-not-disposed]
173
173
new DataColumn ( "COLUMN_DEFAULT" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
174
174
new DataColumn ( "IS_NULLABLE" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
175
175
new DataColumn ( "DATA_TYPE" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
176
- new DataColumn ( "CHARACTER_MAXIMUM_LENGTH" , typeof ( int ) ) , // lgtm[cs/local-not-disposed]
177
- new DataColumn ( "CHARACTER_OCTET_LENGTH" , typeof ( int ) ) , // lgtm[cs/local-not-disposed]
178
- new DataColumn ( "NUMERIC_PRECISION" , typeof ( int ) ) , // lgtm[cs/local-not-disposed]
179
- new DataColumn ( "NUMERIC_SCALE" , typeof ( int ) ) , // lgtm[cs/local-not-disposed]
180
- new DataColumn ( "DATETIME_PRECISION" , typeof ( int ) ) , // lgtm[cs/local-not-disposed]
176
+ new DataColumn ( "CHARACTER_MAXIMUM_LENGTH" , typeof ( long ) ) , // lgtm[cs/local-not-disposed]
177
+ new DataColumn ( "NUMERIC_PRECISION" , typeof ( ulong ) ) , // lgtm[cs/local-not-disposed]
178
+ new DataColumn ( "NUMERIC_SCALE" , typeof ( ulong ) ) , // lgtm[cs/local-not-disposed]
179
+ new DataColumn ( "DATETIME_PRECISION" , typeof ( uint ) ) , // lgtm[cs/local-not-disposed]
181
180
new DataColumn ( "CHARACTER_SET_NAME" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
182
181
new DataColumn ( "COLLATION_NAME" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
183
- new DataColumn ( "COLUMN_TYPE" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
184
182
new DataColumn ( "COLUMN_KEY" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
185
183
new DataColumn ( "EXTRA" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
186
184
new DataColumn ( "PRIVILEGES" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
187
185
new DataColumn ( "COLUMN_COMMENT" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
188
- new DataColumn ( "GENERATION_EXPRESSION" , typeof ( string ) ) , // lgtm[cs/local-not-disposed]
189
186
} ) ;
190
187
188
+ using ( var command = new MySqlCommand ( "SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = 'information_schema' AND table_name = 'COLUMNS' AND column_name = 'GENERATION_EXPRESSION';" , m_connection ) )
189
+ {
190
+ if ( command . ExecuteScalar ( ) is object )
191
+ dataTable . Columns . Add ( new DataColumn ( "GENERATION_EXPRESSION" , typeof ( string ) ) ) ; // lgtm[cs/local-not-disposed]
192
+ }
193
+
191
194
using ( var command = new MySqlCommand ( "SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = 'information_schema' AND table_name = 'COLUMNS' AND column_name = 'SRS_ID';" , m_connection ) )
192
195
{
193
196
if ( command . ExecuteScalar ( ) is object )
194
- dataTable . Columns . Add ( new DataColumn ( "SRS_ID" , typeof ( string ) ) ) ; // lgtm[cs/local-not-disposed]
197
+ dataTable . Columns . Add ( new DataColumn ( "SRS_ID" , typeof ( uint ) ) ) ; // lgtm[cs/local-not-disposed]
195
198
}
196
199
197
200
FillDataTable ( dataTable , "COLUMNS" ) ;
0 commit comments