gd_bam 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bam/version.rb +1 -1
- data/lib/generators/etl.rb +14 -1
- metadata +1 -1
data/lib/bam/version.rb
CHANGED
data/lib/generators/etl.rb
CHANGED
@@ -131,8 +131,21 @@ function string gd_date_compliance(string a_date) {
|
|
131
131
|
return a_date;
|
132
132
|
}
|
133
133
|
|
134
|
+
function decimal deal_with_scientific_notation(long a_number) {
|
135
|
+
if (isnull(a_number)) {
|
136
|
+
return null;
|
137
|
+
} else {
|
138
|
+
return str2decimal(num2str(a_number));
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
|
134
143
|
function decimal deal_with_scientific_notation(string a_number) {
|
135
|
-
|
144
|
+
if (isnull(a_number) || a_number == "") {
|
145
|
+
return null;
|
146
|
+
} else {
|
147
|
+
return str2decimal(a_number);
|
148
|
+
}
|
136
149
|
}
|
137
150
|
|
138
151
|
function integer transform() {
|