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

How do I get the type of the function field in the return result? #600

Closed
jasonGeng88 opened this issue Jun 25, 2018 · 2 comments
Closed

Comments

@jasonGeng88
Copy link

in mysql case:
image

image

in sqlite3 case:
2018-06-25 5 48 18

image

I saw the #395 issue. Is this the same problem?

@gjrtimmer
Copy link
Collaborator

Actually I'm running into this while trying to write a TestCase for the ColumnTypeScanType function.

@gjrtimmer
Copy link
Collaborator

gjrtimmer commented Jul 3, 2018

You need to request the ColumnTypes from within a Range over rows. This is due to how SQLite works. See sqlite.org for more information. SQLite has to have _step() called before it can return what you looking for.

If anything is unclear take a peek at the v2.0.0 branch within result_test.go you can find what you are looking for.

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