Skip to content
This repository was archived by the owner on Nov 28, 2020. It is now read-only.

Panics when database has xml data type #12

Open
jasonjb82 opened this issue Jun 8, 2018 · 2 comments
Open

Panics when database has xml data type #12

jasonjb82 opened this issue Jun 8, 2018 · 2 comments
Labels
missing datatype database data type does not have implementation yet

Comments

@jasonjb82
Copy link

jasonjb82 commented Jun 8, 2018

I get this error when trying to connect to my postgres database

thread 'main' panicked at 'not yet handled: xml', /home/jbenedict/.cargo/registry/src/esyshub.st101.workers.dev-1ecc6299db9ec823/rustorm-0.10.7/src/pg/column_info.rs:320:26
note: Run with `RUST_BACKTRACE=1` for a backtrace.

This is what appears in the browser when I open http://localhost:8000
image

@ivanceras
Copy link
Owner

@jasonjb82 Thanks for filing an issue.
This looks like you are using xml data type which I haven't added an implementation yet. I will have to add xml type soon. Are there still other postgres data types that you are using that is not very common? I'm testing the project against the sakila database examples. If you have some more exotic data types that is not found in sakila database, you can list them here for me to add the implementation altogether.

@ivanceras ivanceras added the missing datatype database data type does not have implementation yet label Jun 8, 2018
@ivanceras ivanceras changed the title Error when connecting to Postgres db Panics when database has xml data type Jun 8, 2018
@jasonjb82
Copy link
Author

jasonjb82 commented Jun 8, 2018

@ivanceras I just realised that I did not need the table that had the xml data type. However, after removing those tables, I noticed I have tables with geom data type that would probably not be supported as well. I have data in spatial formats which I have loaded to my db with PostGIS. Here's my ERD showing the data types that I have in my tables:

palmdb_erd

This is the panic error I get:

error: invalid digit found in string when parsing range1 for data_type: "geometry(Point,4326)"
thread 'main' panicked at 'not yet handled: geometry', /home/jbenedict/.cargo/registry/src/esyshub.st101.workers.dev-1ecc6299db9ec823/rustorm-0.10.7/src/pg/column_info.rs:320:26

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
missing datatype database data type does not have implementation yet
Projects
None yet
Development

No branches or pull requests

2 participants