tiny_tds 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/ext/tiny_tds/result.c +3 -3
- data/ext/tiny_tds/result.h +2 -0
- data/lib/tiny_tds.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/ext/tiny_tds/result.c
CHANGED
@@ -89,7 +89,7 @@ static VALUE rb_tinytds_result_fetch_row(VALUE self, ID timezone, int symbolize_
|
|
89
89
|
val = INT2NUM(*(DBINT *)data);
|
90
90
|
break;
|
91
91
|
case SYBINT8:
|
92
|
-
val =
|
92
|
+
val = LL2NUM(*(DBBIGINT *)data);
|
93
93
|
break;
|
94
94
|
case SYBBIT:
|
95
95
|
val = *(int *)data ? Qtrue : Qfalse;
|
@@ -116,8 +116,8 @@ static VALUE rb_tinytds_result_fetch_row(VALUE self, ID timezone, int symbolize_
|
|
116
116
|
case SYBMONEY: {
|
117
117
|
DBMONEY *money = (DBMONEY *)data;
|
118
118
|
char converted_money[25];
|
119
|
-
long money_value = ((long)money->mnyhigh << 32) | money->mnylow;
|
120
|
-
sprintf(converted_money, "%
|
119
|
+
long long money_value = ((long long)money->mnyhigh << 32) | money->mnylow;
|
120
|
+
sprintf(converted_money, "%lld", money_value);
|
121
121
|
val = rb_funcall(cBigDecimal, intern_new, 2, rb_str_new2(converted_money), opt_four);
|
122
122
|
val = rb_funcall(val, intern_divide, 1, opt_tenk);
|
123
123
|
break;
|
data/ext/tiny_tds/result.h
CHANGED
data/lib/tiny_tds.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_tds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ken Collins
|