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

fix: convert decimal to the type expected by go-mysql-server #49

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

fanyang01
Copy link
Collaborator

go-mysql-server uses the Decimal type in the github.com/shopspring/decimal package, while go-duckdb uses the self-defined duckdb.Decimal type. This PR converts the latter to the former.

In addition, the wrapper for sql.Rows is improved to pre-alloate the buffers during initialization (rather than for each row).

@fanyang01 fanyang01 requested a review from GaoYusong September 4, 2024 11:03
iter.go Show resolved Hide resolved
Copy link
Contributor

@GaoYusong GaoYusong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@fanyang01 fanyang01 merged commit 6377aa9 into main Sep 4, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants