Most of the changes in 1.2.0 seem to have been aimed at reducing
the number of compiler warnings produced. Many (most?) were
already present in the Ruby version which produces zero warnings
with gcc version 4.0.2. One notable omission: I can’t
seem to find strlcpy on a default Ubuntu install, so
this change was not applied.
i think the story is that the glibc people don’t want strl* in their library, so developers wanting to use those functions on glibc-based systems need to provide them themselves:
Sam, I’m relatively new to ruby...I’m trying to figure out if the work you are doing will work with the ruby-dbi and work better than the ruby-db2 project or if its just a direct to db2 kind of module?
At the moment, it is a direct to DB2 module. My hope is that since it is based on the same code as the PHP DB2 module, which was created by a team including Dan Scott that this would be more complete than the ruby-db2 effort.
Reports on the current state of the ruby-db2 project aren’t so good. When I started porting the PHP DB2 code, the ruby-db2 code had been untouched for over a year. Now I see that there was a releaseyesterday, curiously with no record in cvs.
If there are dbi test cases I can use, I would gladly develop a dbi layer on top of this base. If there is somebody I can collaborate with (or hand this code over to), so much the better. If ruby-db2 becomes viable again, and this code is not necessary, well that’s OK with me too.
I had given up on ruby-db2 as it won’t compile in the Windows environment. I have 80% of the code complete for a DBI based ruby interface to DB2. I have a couple more things to get working, and then I want to put it up on Sourceforge as a probject. Then I want to do a complete rewrite (knowing what I have done wrong the first time).
Current status is that I can connect, prepare, do, execute and retrieve results. Datatypes for most elements are working, with the exception of 64 bit binary numbers and decimal numbers.
Yet to do: Linux testing (everything so far has been Windows). column, table, datasource lists, ping, cancel, fetch_scroll, fetch_many, and fetch_all
How much effort would it be to implement a rails connector on top of your db2 lib?
I tried ruby-db2 from the ruby-dbi project but the code (even the one file)is a mess. It bails me out even on “require 'db2/db2cli'”. So I’d have a look on your lib but I need db2 working on rails very soon, so I have to estimate the time to rewrite parts of rails or rewrite the ruby-db2 code.