Skip to content

XMLType unsupported #28

@jgebal

Description

@jgebal

Hi.
I'd like to user ruby-plsql-spec on a database where XMType is hevily used (all API is bazsed on XMLType).
Unfortunatelly the type is unsupported right now.

Here is a test to do the check (used OCI8 dirver).

require_relative 'spec_helper'
describe "XMLType" do
before(:all) do
plsql.execute <<-SQL
CREATE OR REPLACE PACKAGE test_package IS
xml_variable XMLType;
END;
SQL
plsql.execute <<-SQL
CREATE OR REPLACE PACKAGE BODY test_package IS
END;
SQL
end
after(:all) do
plsql.execute "DROP PACKAGE test_package"
end
it "should set and get XMLType variable" do
plsql.test_package.xml_variable = 'abc<'
plsql.test_package.xml_variable.should == 'abc'
end

end

And here are some resources i've found about XMLType.
http://www.ruby-forum.com/topic/56982
I'm not sure if it should be vixible in Ruby as plain String or maybe an XML Docukment like here:
http://www.tutorialspoint.com/ruby/ruby_xml_xslt.htm
Do you plan to add a support for XMLType?

Regards
Jacek

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions