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

GeometryDDL does not consider table schema in Oracle #29

Open
perliedman opened this issue Apr 16, 2013 · 2 comments
Open

GeometryDDL does not consider table schema in Oracle #29

perliedman opened this issue Apr 16, 2013 · 2 comments

Comments

@perliedman
Copy link

I'm using Oracle 11g and have mapped a table like this:

        geometry_table = Table('Geometry', metadata,
            Column('id', Integer, primary_key=True),
            GeometryExtensionColumn('geometry', Geometry(srid=3006)),
            schema='test'
        )
        GeometryDDL(geometry_table)

The table is created properly with the expected schema ("test"), but when GeometryDDL adds the geometry column, it executes this statement:

ALTER TABLE Geometry ADD geometry SDO_GEOMETRY

Note that it's missing both proper quoting and schema. I would expect the statement to be:

ALTER TABLE "test"."Geometry" ADD "geometry" SDO_GEOMETRY

Looking at the code, it appears to ignore schemas and quoting issues all together.

Is this a known issue? Is there some way to work around this?

@elemoine
Copy link
Member

Probably a bug. Oracle hasn't received much attention and testing. Patch welcome.

@perliedman
Copy link
Author

Can't promise anything, since I don't use Oracle on a regular basis, and I don't know that much about it, but I'll try to find some time for this.

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

2 participants