Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MapMint cannot read PostgreSQL table with uppercase and special character in column name #12

Open
niroshansb opened this issue Dec 9, 2017 · 0 comments

Comments

@niroshansb
Copy link

My table uses special characters and upper case for column names, and I unable to create sql view with the following command;

CREATE VIEW odk_prod.newlayer AS (SELECT "_URI", "LOCATION_LNG", "LOCATION_LAT", ST_SetSRID(ST_MakePoint("LOCATION_LNG", "LOCATION_LAT"),4326) FROM odk_prod."BIMARI_CORE");

Is there a way to directly create a view as shown above ?

Right now I need to rename the column name to lower case as below

CREATE VIEW public.odk_niroshan_newlayer AS (SELECT "_URI" as uri, "LOCATION_LNG" as long, "LOCATION_LAT" as lat, ST_SetSRID(ST_MakePoint("LOCATION_LNG", "LOCATION_LAT"),4326) as wkb_geometry FROM public.bimari);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant