dbd-sqlanywhere 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +3 -0
  2. data/lib/dbd/SQLAnywhere.rb +6 -4
  3. metadata +4 -4
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  =CHANGE LOG
2
2
 
3
+ =====1.0.1 -- 2012/11/06
4
+ - Changed to bind input for DateTime, Time properly(converting DateTime only used date
5
+ part, converting Time discared the fractional part. This has been fixed)
3
6
  =====1.0.0 -- 2012/08/29
4
7
  - Changed to have each row element to be stored as String object by "default" so that dbh.convert_types = false would return the String element properly.
5
8
  - Changed sth.column_info not to assign any value "precision" and "scale" for the datatype that does not specify the precision or length.
@@ -38,7 +38,7 @@ module DBI
38
38
  module DBD
39
39
  module SQLAnywhere
40
40
 
41
- VERSION = "1.0.0"
41
+ VERSION = "1.0.1"
42
42
 
43
43
  def self.driver_name
44
44
  "SQLAnywhere"
@@ -81,12 +81,14 @@ module SQLAnywhere
81
81
  1
82
82
  when ::FalseClass
83
83
  0
84
+ when DBI::Timestamp
85
+ DateTime.parse(obj.to_s).strftime("%Y/%m/%d %H:%M:%S.%6N")
86
+ when ::DateTime
87
+ obj.strftime("%Y/%m/%d %H:%M:%S.%6N")
84
88
  when ::Time
85
- obj.strftime("%H:%M:%S")
89
+ obj.strftime("%Y/%m/%d %H:%M:%S.%6N")
86
90
  when ::Date
87
91
  obj.strftime("%Y/%m/%d")
88
- when ::DateTime, DBI::Timestamp
89
- DateTime.parse(obj.to_s).strftime("%Y/%m/%d %H:%M:%S")
90
92
  when ::String
91
93
  obj
92
94
  when ::BigDecimal
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbd-sqlanywhere
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Eric Farrar
8
+ - SQL Anywhere
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-04 00:00:00.000000000 Z
12
+ date: 2012-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlanywhere
@@ -46,7 +46,7 @@ dependencies:
46
46
  description: ! ' Ruby DBI driver (DBD) for SQL Anywhere
47
47
 
48
48
  '
49
- email: eric.farrar@ianywhere.com
49
+ email: sqlany_interfaces@sybase.com
50
50
  executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: