Changes between Version 3 and Version 4 of rfc21_ogrsqlcast


Ignore:
Timestamp:
Jan 26, 2008, 3:58:27 AM (16 years ago)
Author:
tamas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rfc21_ogrsqlcast

    v3 v4  
    8686To implement the addition the following changes should be made in the OGR codebase:
    8787
    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.
     881. 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
    9089
    91 2. In swq.c I'll have to change swq_select_preparse to take care of the field alias and the
     902. In swq.h SWQ_DATETIME will be added to swq_field_type enum.
     91
     923. In swq.c I'll have to change swq_select_preparse to take care of the field alias and the
    9293CAST specification.
    9394
    94 3. A new function (swq_parse_typename) will be added to parse the supported typenames.
     954. A new function (swq_parse_typename) will be added to parse the supported typenames.
    9596
    96 4. In ogr_gensql.cpp the .ctor of OGRGenSQLResultsLayer will be changed to set up the field name and the
     975. In ogr_gensql.cpp the .ctor of OGRGenSQLResultsLayer will be changed to set up the field name and the
    9798field length to the target data source
    9899
    99 5. In ogr_gensql.cpp TranslateFeature will be modified to take care of the type change if specified.
     1006. In ogr_gensql.cpp TranslateFeature will be modified to take care of the type change if specified.
    100101
    101102== Backward Compatibility ==