-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling member methods that change object state and maintaining in local variable #11
Comments
I ended up doing the following. describe "Create New Instance" do |
That is not possible at the moment as Ruby object is not directly linked to underlying Oracle object. Oracle object state "lives" through the duration of database code execution. When referencing the Ruby representation of Oracle Object Type Instance, it's best to thing of it as of values of Oracle Object stored in Ruby code, not the object itself. |
This issue is more related to the ruby-plsql or ruby-oci8 |
Is it possible to call a method on a object that changes the state of the object in the Oracle database and have that state reflected in the local ruby variable?
Ex.
my_obj = plsql.my_obj_type(:attr1=>'test',:attr2=>null)
my_obj.is_attr2_null.should == true
my_obj.set_attr2(:attr2=>'test1')
my_obj.is_attr2_null.should == false
The text was updated successfully, but these errors were encountered: