ruby-informix 0.6.1 → 0.6.2

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 (4) hide show
  1. data/Changelog +10 -1
  2. data/ifx_except.c +15 -16
  3. data/ifx_except.ec +3 -4
  4. metadata +2 -2
data/Changelog CHANGED
@@ -1,4 +1,13 @@
1
- 0.6.1 13/10/2007
1
+ 0.6.2 10/20/2007
2
+ ------------------
3
+ Bugs fixed:
4
+ * Microsoft's cl compiler was failing due to a variable declaration
5
+ where it is not allowed.
6
+
7
+ Noticed by Joe Lanotte <joe.lanotte at comcast dot net>
8
+
9
+
10
+ 0.6.1 10/13/2007
2
11
  ------------------
3
12
  Bugs fixed:
4
13
  * Database#columns was returning an empty array from within the
data/ifx_except.c CHANGED
@@ -1,7 +1,7 @@
1
1
  #include <sqlhdr.h>
2
2
  #include <sqliapi.h>
3
3
  #line 1 "ifx_except.ec"
4
- /* $Id: ifx_except.ec,v 1.1 2007/01/31 02:16:32 santana Exp $ */
4
+ /* $Id: ifx_except.ec,v 1.2 2007/10/20 10:17:35 santana Exp $ */
5
5
  /*
6
6
  * Copyright (c) 2006, 2007 Edwin M. Fine <efine@finecomputerconsultants.com>
7
7
  * All rights reserved.
@@ -53,7 +53,7 @@
53
53
  /* Constants */
54
54
  #define NUM_SQL_EXCEPTION_ARGS 7 /* Number of things we get from GET EXCEPTION */
55
55
 
56
- static const char * const vcs_id = "$Id: ifx_except.ec,v 1.1 2007/01/31 02:16:32 santana Exp $";
56
+ static const char * const vcs_id = "$Id: ifx_except.ec,v 1.2 2007/10/20 10:17:35 santana Exp $";
57
57
 
58
58
  /*
59
59
  * Ruby object/class/module handles
@@ -308,10 +308,11 @@ int4 sql_code;
308
308
  mint sql_exception_number;
309
309
  mint exc_count = 0;
310
310
  mint message_len;
311
+ mint i;
311
312
  /*
312
313
  * EXEC SQL END DECLARE SECTION;
313
314
  */
314
- #line 307 "ifx_except.ec"
315
+ #line 308 "ifx_except.ec"
315
316
 
316
317
 
317
318
  new_instance = rb_class_new_instance(0, 0, exception_class);
@@ -331,19 +332,19 @@ mint message_len;
331
332
  /*
332
333
  * EXEC SQL GET DIAGNOSTICS :exc_count = NUMBER;
333
334
  */
334
- #line 323 "ifx_except.ec"
335
+ #line 324 "ifx_except.ec"
335
336
  {
336
- #line 323 "ifx_except.ec"
337
+ #line 324 "ifx_except.ec"
337
338
  static ifx_hostvar_t _SQhtab[] =
338
339
  {
339
340
  { 0, 1, 102, sizeof(exc_count), 0, 0, 0, 0 },
340
341
  { 0, 0, 0, 0, 0, 0, 0, 0 }
341
- #line 323 "ifx_except.ec"
342
+ #line 324 "ifx_except.ec"
342
343
  };
343
344
  _SQhtab[0].hostaddr = (char *)&exc_count;
344
- #line 323 "ifx_except.ec"
345
+ #line 324 "ifx_except.ec"
345
346
  sqli_diag_get(ESQLINTVERSION, _SQhtab, -1);
346
- #line 323 "ifx_except.ec"
347
+ #line 324 "ifx_except.ec"
347
348
  }
348
349
 
349
350
  if (exc_count == 0) { /* Something went wrong */
@@ -359,8 +360,6 @@ mint message_len;
359
360
  }
360
361
  }
361
362
 
362
- mint i;
363
-
364
363
  for (i = 0; i < exc_count; ++i) {
365
364
  sql_exception_number = i + 1;
366
365
 
@@ -376,9 +375,9 @@ mint message_len;
376
375
  * :connection_name = CONNECTION_NAME
377
376
  * ;
378
377
  */
379
- #line 343 "ifx_except.ec"
378
+ #line 342 "ifx_except.ec"
380
379
  {
381
- #line 352 "ifx_except.ec"
380
+ #line 351 "ifx_except.ec"
382
381
  static ifx_hostvar_t _SQhtab[] =
383
382
  {
384
383
  { 0, 11, 103, sizeof(sql_code), 0, 0, 0, 0 },
@@ -390,7 +389,7 @@ mint message_len;
390
389
  { 0, 9, 100, 256, 0, 0, 0, 0 },
391
390
  { 0, 10, 100, 256, 0, 0, 0, 0 },
392
391
  { 0, 0, 0, 0, 0, 0, 0, 0 }
393
- #line 352 "ifx_except.ec"
392
+ #line 351 "ifx_except.ec"
394
393
  };
395
394
  _SQhtab[0].hostaddr = (char *)&sql_code;
396
395
  _SQhtab[1].hostaddr = (sql_state);
@@ -400,9 +399,9 @@ mint message_len;
400
399
  _SQhtab[5].hostaddr = (char *)&message_len;
401
400
  _SQhtab[6].hostaddr = (server_name);
402
401
  _SQhtab[7].hostaddr = (connection_name);
403
- #line 352 "ifx_except.ec"
402
+ #line 351 "ifx_except.ec"
404
403
  sqli_diag_get(ESQLINTVERSION, _SQhtab, sql_exception_number);
405
- #line 352 "ifx_except.ec"
404
+ #line 351 "ifx_except.ec"
406
405
  }
407
406
 
408
407
  TRIM_BLANKS(class_origin_val);
@@ -520,4 +519,4 @@ void rbifx_except_init(VALUE mInformix, ifx_except_symbols_t *syms)
520
519
  }
521
520
 
522
521
 
523
- #line 467 "ifx_except.ec"
522
+ #line 466 "ifx_except.ec"
data/ifx_except.ec CHANGED
@@ -1,4 +1,4 @@
1
- /* $Id: ifx_except.ec,v 1.1 2007/01/31 02:16:32 santana Exp $ */
1
+ /* $Id: ifx_except.ec,v 1.2 2007/10/20 10:17:35 santana Exp $ */
2
2
  /*
3
3
  * Copyright (c) 2006, 2007 Edwin M. Fine <efine@finecomputerconsultants.com>
4
4
  * All rights reserved.
@@ -50,7 +50,7 @@
50
50
  /* Constants */
51
51
  #define NUM_SQL_EXCEPTION_ARGS 7 /* Number of things we get from GET EXCEPTION */
52
52
 
53
- static const char * const vcs_id = "$Id: ifx_except.ec,v 1.1 2007/01/31 02:16:32 santana Exp $";
53
+ static const char * const vcs_id = "$Id: ifx_except.ec,v 1.2 2007/10/20 10:17:35 santana Exp $";
54
54
 
55
55
  /*
56
56
  * Ruby object/class/module handles
@@ -304,6 +304,7 @@ VALUE rbifx_ext_exception(VALUE exception_class)
304
304
  mint sql_exception_number;
305
305
  mint exc_count = 0;
306
306
  mint message_len;
307
+ mint i;
307
308
  EXEC SQL END DECLARE SECTION;
308
309
 
309
310
  new_instance = rb_class_new_instance(0, 0, exception_class);
@@ -335,8 +336,6 @@ VALUE rbifx_ext_exception(VALUE exception_class)
335
336
  }
336
337
  }
337
338
 
338
- mint i;
339
-
340
339
  for (i = 0; i < exc_count; ++i) {
341
340
  sql_exception_number = i + 1;
342
341
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: ruby-informix
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.6.1
7
- date: 2007-10-13 00:00:00 -05:00
6
+ version: 0.6.2
7
+ date: 2007-10-20 00:00:00 -05:00
8
8
  summary: Informix driver for Ruby
9
9
  require_paths:
10
10
  - lib