Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix float data-type #45

Merged
merged 1 commit into from

2 participants

@jgordor

Added convert_value_to_type => float

Fixes float model data type (is ok for mysql, other adapter can need some conversions)

@evanmiller evanmiller merged commit ab826e1 into ErlyORM:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 26, 2012
  1. @jgordor
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/boss_record_lib.erl
View
4 src/boss_record_lib.erl
@@ -113,4 +113,6 @@ convert_value_to_type("false", boolean) -> false;
convert_value_to_type(1, boolean) -> true;
convert_value_to_type(0, boolean) -> false;
convert_value_to_type(true, boolean) -> true;
-convert_value_to_type(false, boolean) -> false.
+convert_value_to_type(false, boolean) -> false;
+
+convert_value_to_type(Val, float) -> Val.
Something went wrong with that request. Please try again.