the problem is that I can not get the data from a "select" or otherwise.

is different "sequel" oracle and postgres?

this "DB [: item]"  should bring records, but does not return anything,
just gives the error: error: # <ArgumentError: wrong number of arguments (0
for 1..2)>


Sorry, I'm using the "sequel", a few days ago

2015-03-06 16:52 GMT-03:00 Jeremy Evans <[email protected]>:

> On Friday, March 6, 2015 at 11:50:25 AM UTC-8, Lucas Viecelli wrote:
>>
>> I'm trying to get results of an oracle database, but I can not get the
>> expected result, is not possible data from a query.
>> My connection:
>>
>>  db = Sequel.oracle('db', :user=>'user', :password=>'pass', :host =>
>> "192.168.10.168", :port=> '1521')
>>
>> Use connection:
>>  db[:item]
>>  output error: #<ArgumentError: wrong number of arguments (0 for 1..2)>
>>
>> or
>>
>> db['select * from item']
>> output error: #<ArgumentError: wrong number of arguments (0 for 1..2)>
>>
>> the syntax must be correct,  use in postgresql and it works!
>>
>> Oracle settings should not be .. because by ActiveRecord, is possible get
>> db records
>>
>
> Can you provide a backtrace for the exception?
>
> Thanks,
> Jeremy
>
> --
> You received this message because you are subscribed to the Google Groups
> "sequel-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sequel-talk.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Atenciosamente.

*Lucas Viecelli*

<http://www.leosoft.com.br/coopcred>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to