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

added types for int8, int16, Time for mysql driver #26

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/db.cr
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module DB
# Types supported to interface with database driver.
# These can be used in any `ResultSet#read` or any `Database#query` related
# method to be used as query parameters
TYPES = [Nil, String, Int32, Int64, Float32, Float64, Bytes]
TYPES = [Nil, String, Int8, Int16, Int32, Int64, Float32, Float64, Bytes, Time]

# See `DB::TYPES` in `DB`. `Any` is a union of all types in `DB::TYPES`
{% begin %}
Expand Down
2 changes: 1 addition & 1 deletion src/db/statement.cr
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module DB

# See `QueryMethods#exec`
def exec
perform_exec_and_release(Slice(Any).new(0))
perform_exec_and_release(Slice(Any).empty)
end

# See `QueryMethods#exec`
Expand Down