DBI ADO problem

M

Mark Ericson

------=_Part_577_13308187.1134587483102
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I was wondering if this exception thrown by my use of DBI ADO is meaningfu=
l
to anyone?

c:/ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb:141:in `finish': undefined
method
`Fields' for nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:789:in `finish'
from c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:631:in `prepare'

I'm simply trying to call prepare on a method and this looks like some kind
of internal error within the ADO implementation.

------=_Part_577_13308187.1134587483102--
 
G

Gerard Oneill

Yes, because I'm getting something similar. However I was using win32ole
directly with the ADO COM objects, using a prepared command, thus
creating and adding parameters.

I can give my version of code if someone needs it.

I looked all over the internet (translation: googled) and couldn't find
someone who tried to do one of two things: Pass in a nil (NULL on the
DB side) parameter, specified the default value (not sure if there *is*
a way to do that using ADO, but the FIELDS of the record sets looked
promising), or specified a "no value" for that fields which might allow
the SQLServer provider to use the default.

BTW, a similar error happened when setting a recordset field to nil.

So I'll piggy back on your question ;).

Related, if someone could use the WIN32OLE ADO api to specify a date,
that would be awesome also ;)

Ger.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top