ruby-informix 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/Changelog +37 -1
  2. data/README +4 -2
  3. data/informix.c +1606 -658
  4. data/informix.ec +1176 -323
  5. metadata +4 -3
data/Changelog CHANGED
@@ -1,3 +1,39 @@
1
+ 0.5.0 12/27/2006
2
+ ------------------
3
+ New features:
4
+ * Easier to install
5
+ * BigDecimal accepted for input parameters
6
+ * BigDecimal used for instantiating DECIMAL and MONEY values
7
+ * Cursor, Statement, Slob and Database accept an optional block that
8
+ automatically frees resources after execution.
9
+ Based on ideas and pseudo-code by
10
+ Edwin Fine <emofine at finecomputerconsultants dot com> and me.
11
+ * Database#slob shortcut for creating Slob objects.
12
+ * Slob::Stat class implemented. Returned by Slob#stat, represents the
13
+ SLOB status. Methods: atime, ctime, mtime, refcnt and size. Includes
14
+ Comparable.
15
+ * Slob new methods: <<, rewind, stat, pos, pos=, lock, unlock,
16
+ estbytes, extsz, flags, maxbytes, sbspace,
17
+ extsz=, flags=,
18
+ atime, ctime, mtime, refcnt and size
19
+ * Thread safe
20
+
21
+ Remarks:
22
+ * DECIMAL and MONEY columns are no longer returned as Float. BigDecimal
23
+ is used instead.
24
+
25
+ Bugs fixed:
26
+ * If there was an error reading (ifx_lo_read) an SLOB, memory
27
+ allocated for the read buffer was not freed. Noticed by
28
+ Edwin Fine <emofine at finecomputerconsultants dot com>
29
+ * maxbytes option was ignored when creating an Slob object
30
+ * Documentation for Slob mentioned an RDRW constant, but it actually
31
+ is RDWR.
32
+
33
+ Special thanks to Guy Bowerman, Jonathan Leffler and Logan Capaldo for their
34
+ feedback and help.
35
+
36
+
1
37
  0.4.0 12/13/2006
2
38
  ------------------
3
39
  New features:
@@ -37,7 +73,7 @@ New features:
37
73
  ------------------
38
74
  Bugs fixed:
39
75
  * changing free() for xfree() avoids crashes on Windows XP SP1. Noticed
40
- by Dinko <dsrkoc at helix hr>
76
+ by Dinko <dsrkoc at helix dot hr>
41
77
 
42
78
 
43
79
  0.2.0 04/24/2006
data/README CHANGED
@@ -47,7 +47,8 @@ http://ruby-informix.rubyforge.org
47
47
 
48
48
  All built-in data types are supported, except interval. As you would expect,
49
49
  numeric, string and boolean data types are mapped to their respective objects
50
- in Ruby; DATE, DATETIME and NULL are mapped to Date, Time and nil respectively.
50
+ in Ruby; DECIMAL/MONEY, DATE, DATETIME and NULL are mapped to BigDecimal, Date,
51
+ Time and nil respectively.
51
52
 
52
53
  The notable exception is TEXT/BYTE columns, where Ruby/Informix expects an
53
54
  IO-based (File) or IO-like (StringIO) object as input, and returns an String
@@ -59,7 +60,8 @@ Objects (CLOB/BLOB).
59
60
 
60
61
  4. Recommendations
61
62
 
62
- * use #drop for prepared statements and cursors to release Informix resources
63
+ * use #drop for prepared statements and cursors or use them with blocks,
64
+ to release Informix resources.
63
65
  * you can optimize cursor execution by changing the fetch and insert buffers,
64
66
  setting the environment variable FET_BUF_SIZE to up to 32767 for Informix 9.x,
65
67
  or BIG_FET_BUF_SIZE for Informix 10.x