From pardee.r at ghc.org Tue Nov 24 11:40:01 2009 From: pardee.r at ghc.org (Pardee, Roy) Date: Tue, 24 Nov 2009 08:40:01 -0800 Subject: [ruby-dbi-users] Thinking of trying to resurrect the ADO DBD--anybody already working on that? Message-ID: <587F57B26FAA8246A81D10D251EB8AB424D0C929@EXCH07.GHCMASTER.GHC.ORG> Hey All, It looks to me like the one thing keeping me from moving to ruby 1.9 is the lack of a DBI driver for ADO. I'm thinking of trying to put something together (most likely borrowing heavily from Michael Neumann's original ado.rb, at least as an initial strategy). (This would be a stretch for me skills-wise, so nobody should hold their breath waiting for it.) Has anybody already taken that on by chance? Are there other DBD developers on here w/advice for me? Many thanks! -Roy GHC Confidentiality Statement This message and any attached files might contain confidential information protected by federal and state law. The information is intended only for the use of the individual(s) or entities originally named as addressees. The improper disclosure of such information may be subject to civil or criminal penalties. If this message reached you in error, please contact the sender and destroy this message. Disclosing, copying, forwarding, or distributing the information by unauthorized individuals or entities is strictly prohibited by law. From erik at hollensbe.org Wed Nov 25 02:55:57 2009 From: erik at hollensbe.org (Erik Hollensbe) Date: Wed, 25 Nov 2009 02:55:57 -0500 Subject: [ruby-dbi-users] Thinking of trying to resurrect the ADO DBD--anybody already working on that? In-Reply-To: <587F57B26FAA8246A81D10D251EB8AB424D0C929@EXCH07.GHCMASTER.GHC.ORG> References: <587F57B26FAA8246A81D10D251EB8AB424D0C929@EXCH07.GHCMASTER.GHC.ORG> Message-ID: <4B0CE30D.2080807@hollensbe.org> On 11/24/2009 11:40 AM, Pardee, Roy wrote: > Hey All, > > It looks to me like the one thing keeping me from moving to ruby 1.9 is the lack of a DBI driver for ADO. I'm thinking of trying to put something together (most likely borrowing heavily from Michael Neumann's original ado.rb, at least as an initial strategy). > > (This would be a stretch for me skills-wise, so nobody should hold their breath waiting for it.) > > Has anybody already taken that on by chance? > Nobody has, and I can assure you that it would be greatly appreciated by many users. > Are there other DBD developers on here w/advice for me? > Getting type conversion in the 0.4.x series is going to be a complete pain in the ass, that's my fault. You will likely be hitting a moving target in upcoming months as I (please, lord, grant me the free time to get this done) attempt to revamp this system for 0.6.x. Other than that, there are some outstanding issues getting DBI to work on 1.9, but Mike has patched those out, and I just have to roll them in and release them. Pistos, Mike and myself populate a channel on freenode: #ruby-dbi. Responses can take a while sometimes ("busy" is putting it pretty lightly when it comes to how taxed all three of us are), but Pistos maintains m4dbi and Mike and I work on the core and DBDs, so that's your best bet of getting help while you're working on this. Godspeed and best of luck, you'd definitely being doing the windows-using populace a tremendous favor. Also, metaskills (who writes the SQL server adapter for rails, which uses DBI) would likely be interested in your plight as well. You can find him on github. -Erik From pardee.r at ghc.org Wed Nov 25 12:00:46 2009 From: pardee.r at ghc.org (Pardee, Roy) Date: Wed, 25 Nov 2009 09:00:46 -0800 Subject: [ruby-dbi-users] Thinking of trying to resurrect the ADO DBD--anybody already working on that? In-Reply-To: <4B0CE30D.2080807@hollensbe.org> References: <587F57B26FAA8246A81D10D251EB8AB424D0C929@EXCH07.GHCMASTER.GHC.ORG> <4B0CE30D.2080807@hollensbe.org> Message-ID: <587F57B26FAA8246A81D10D251EB8AB424D0C93B@EXCH07.GHCMASTER.GHC.ORG> Thanks much for the response Erik! The moving target thing is a bummer. Maybe I should wait? I posted close to this same message on the sqlserver-adapter google group Yesterday I started learning how to package code w/rubygems and--just for a goof--tried to gem up Neumann's old code in such a way that dbi 0.4.3 would locate & attempt to use it. Not surprisingly, it barfed w/a "dbi.rb:300:in `block in load_driver': Unable to load driver 'ADO' (underlying error: uninitialized constant DBI::DBD::ADO) (DBI::InterfaceError)". That was after 16 warnings from the Deprecated gem about methods being redefined/discarded. Not sure if that means I missed my mark in terms of the gemification/namespacing or what. Reading dbd_SPEC.rdoc now to try and get oriented... I'll see if I can figure out how to get on freenode. Thanks! -Roy -----Original Message----- From: ruby-dbi-users-bounces at rubyforge.org [mailto:ruby-dbi-users-bounces at rubyforge.org] On Behalf Of Erik Hollensbe Sent: Tuesday, November 24, 2009 11:56 PM To: List for support requests, questions, and user discussion. Subject: Re: [ruby-dbi-users] Thinking of trying to resurrect the ADO DBD--anybody already working on that? On 11/24/2009 11:40 AM, Pardee, Roy wrote: > Hey All, > > It looks to me like the one thing keeping me from moving to ruby 1.9 is the lack of a DBI driver for ADO. I'm thinking of trying to put something together (most likely borrowing heavily from Michael Neumann's original ado.rb, at least as an initial strategy). > > (This would be a stretch for me skills-wise, so nobody should hold > their breath waiting for it.) > > Has anybody already taken that on by chance? > Nobody has, and I can assure you that it would be greatly appreciated by many users. > Are there other DBD developers on here w/advice for me? > Getting type conversion in the 0.4.x series is going to be a complete pain in the ass, that's my fault. You will likely be hitting a moving target in upcoming months as I (please, lord, grant me the free time to get this done) attempt to revamp this system for 0.6.x. Other than that, there are some outstanding issues getting DBI to work on 1.9, but Mike has patched those out, and I just have to roll them in and release them. Pistos, Mike and myself populate a channel on freenode: #ruby-dbi. Responses can take a while sometimes ("busy" is putting it pretty lightly when it comes to how taxed all three of us are), but Pistos maintains m4dbi and Mike and I work on the core and DBDs, so that's your best bet of getting help while you're working on this. Godspeed and best of luck, you'd definitely being doing the windows-using populace a tremendous favor. Also, metaskills (who writes the SQL server adapter for rails, which uses DBI) would likely be interested in your plight as well. You can find him on github. -Erik _______________________________________________ ruby-dbi-users mailing list ruby-dbi-users at rubyforge.org http://rubyforge.org/mailman/listinfo/ruby-dbi-users GHC Confidentiality Statement This message and any attached files might contain confidential information protected by federal and state law. The information is intended only for the use of the individual(s) or entities originally named as addressees. The improper disclosure of such information may be subject to civil or criminal penalties. If this message reached you in error, please contact the sender and destroy this message. Disclosing, copying, forwarding, or distributing the information by unauthorized individuals or entities is strictly prohibited by law. From erik at hollensbe.org Wed Nov 25 17:17:42 2009 From: erik at hollensbe.org (Erik Hollensbe) Date: Wed, 25 Nov 2009 17:17:42 -0500 Subject: [ruby-dbi-users] Thinking of trying to resurrect the ADO DBD--anybody already working on that? In-Reply-To: <587F57B26FAA8246A81D10D251EB8AB424D0C93B@EXCH07.GHCMASTER.GHC.ORG> References: <587F57B26FAA8246A81D10D251EB8AB424D0C929@EXCH07.GHCMASTER.GHC.ORG> <4B0CE30D.2080807@hollensbe.org> <587F57B26FAA8246A81D10D251EB8AB424D0C93B@EXCH07.GHCMASTER.GHC.ORG> Message-ID: <4B0DAD06.6020000@hollensbe.org> On 11/25/2009 12:00 PM, Pardee, Roy wrote: > Thanks much for the response Erik! The moving target thing is a bummer. Maybe I should wait? > > I posted close to this same message on the sqlserver-adapter google group > > Yesterday I started learning how to package code w/rubygems and--just for a goof--tried to gem up Neumann's old code in such a way that dbi 0.4.3 would locate& attempt to use it. Not surprisingly, it barfed w/a "dbi.rb:300:in `block in load_driver': Unable to load driver 'ADO' (underlying error: uninitialized constant DBI::DBD::ADO) (DBI::InterfaceError)". That was after 16 warnings from the Deprecated gem about methods being redefined/discarded. > > Not sure if that means I missed my mark in terms of the gemification/namespacing or what. Reading dbd_SPEC.rdoc now to try and get oriented... > > I'll see if I can figure out how to get on freenode. > Actually, it has more to do with coupling that DBI 0.2.x and earlier and the DBDs had, they both expected the DBDs to be in very specific places on the file systems, which was based on the name of the class. You can see part of this code in 0.2.x's DBI.load_driver method. I should point out that before 0.4.x, it was very hard to get a DBD installed that was not already bundled with DBI (OCI8 is the only living exception I know of that did this.. Others existed by you installed them by hand). To repackage it, you'll actually need to modify the ADO.rb code and create a sane build process that installs it in the proper spot, etc. It sounds like you have half of this done, just keep on truckin'. Also, it's not going to work at this point; 0.4.x makes other significant changes that aren't respected by the old DBDs. Additionally, while DBD_SPEC is still current, you're probably better off reading the DBI::Base{Database,Statement,Driver} and DBI::{Database,Statement,Driver}Handle documentation. I've made plenty of notes for DBD developers in those libraries. HTH, and please keep the line open if you have any questions. I generally don't respond during work hours so be patient. :) -Erik