Changes between Version 3 and Version 4 of rfc21_ogrsqlcast
- Timestamp:
- Jan 26, 2008, 3:58:27 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
rfc21_ogrsqlcast
v3 v4 86 86 To implement the addition the following changes should be made in the OGR codebase: 87 87 88 1. In swq.h I'll have to add to 3 fields to swq_col_def to hold the field_alias the target_type 89 and the field_length, and add SWQ_DATETIME to the swq_field_type enum. 88 1. In swq.h I'll have to add to 4 fields to swq_col_def to hold the field_alias the target_type, the field_length, and field_precision 90 89 91 2. In swq.c I'll have to change swq_select_preparse to take care of the field alias and the 90 2. In swq.h SWQ_DATETIME will be added to swq_field_type enum. 91 92 3. In swq.c I'll have to change swq_select_preparse to take care of the field alias and the 92 93 CAST specification. 93 94 94 3. A new function (swq_parse_typename) will be added to parse the supported typenames.95 4. A new function (swq_parse_typename) will be added to parse the supported typenames. 95 96 96 4. In ogr_gensql.cpp the .ctor of OGRGenSQLResultsLayer will be changed to set up the field name and the97 5. In ogr_gensql.cpp the .ctor of OGRGenSQLResultsLayer will be changed to set up the field name and the 97 98 field length to the target data source 98 99 99 5. In ogr_gensql.cpp TranslateFeature will be modified to take care of the type change if specified.100 6. In ogr_gensql.cpp TranslateFeature will be modified to take care of the type change if specified. 100 101 101 102 == Backward Compatibility ==