문제

i was able to run and oracle stored procedure thanks to this question: How do I run an Oracle stored procedure in Ruby

Now, i'm trying to do the same but on an oracle stored function. Thanks in advance.

도움이 되었습니까?

해결책

Oracle function always return some value, so, instead of

cursor = conn.parse ('begin ROAMFLEX.GETMSISDNSTATUS(:msi, :status, :remaining_credit);end;')

you will use

cursor = conn.parse ('begin :res = ROAMFLEX.GETMSISDNSTATUS(:msi, :status, :remaining_credit);end;')
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top