Skip to content

Map str2num does not seem do anything with pyton 3 to ms sql server #116

@yozgoesdigital

Description

@yozgoesdigital

When running the export tool and use map via str2num it does not seem to do anything. Also changed data type van varchar to NUMERIC on database side, but the tool changes the column type back to TEXT:

2019-01-07 15:47:06,718 commcare_export.writers WARNING Altering column cc_waste_intake.quantity from NUMERIC(18, 0) to TEXT for value: "<class 'str'>:7.45"

adding "--strict-types" in CLI command could be used as a workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions