I am trying to connect to an oracle database with the following connection settings:
connection = { :adapter => 'oracle',
:user => 'xxxxxx',
:password => 'mypassword',
:host => "myhost.com"
}
DataMapper.setup :default, connection
Reading do_oracle.c from 570 you should be able to connect if just a host
name is specified in a TNS names alias but it doesn't check it
// If just host name is specified then use it as TNS names alias
if ((r_host != Qnil && RSTRING_LEN(r_host) > 0) &&
(r_port == Qnil) &&
(r_path == Qnil || RSTRING_LEN(r_path) == 0)) {
connect_string = host;
Attached is a patch to correct this I think (I am on windows and cannot
compile)
dominic sisneros
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.
check_nil_path.patch
Description: Binary data
