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

MMDB_get_value returns MAP instead of utf8-string for subdivisions iso_code #61

Closed
z0nk opened this issue Dec 8, 2014 · 2 comments
Closed

Comments

@z0nk
Copy link

z0nk commented Dec 8, 2014

MMDB_get_value(&result.entry, &entry_data, "subdivisions", "iso_code", NULL); returns as type 7 (MAP) and not the expected type 2 (UTF8-STRING)

The geoname_id and names for the subdivisions are correct!

@oschwald
Copy link
Member

oschwald commented Dec 8, 2014

subdivisions is an array of subdivisions. You need to add an index.

That said, it does seem like we should return an error for the above query.

@oschwald
Copy link
Member

This was fixed by #67.

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

No branches or pull requests

2 participants