-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for Object type's FLOAT data type attributes.
- Loading branch information
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
whenever sqlerror exit failure | ||
|
||
-- Get the path of this file. | ||
-- See https://dba.stackexchange.com/a/168154/142186 | ||
set termout off | ||
spool _SetupTest.tmp | ||
@@_nonexistent_script.sql | ||
spool off; | ||
var path varchar2(100); | ||
set serverout on | ||
declare | ||
output varchar2(1000) := regexp_replace(replace(q'{ | ||
@_SetupTest.tmp | ||
}',chr(10)),'.*"(.*)".*','\1'); | ||
begin | ||
if length(output) > 24 then | ||
:path:=substr(output,1,length(output)-24); | ||
else | ||
:path:='.'; | ||
end if; | ||
end; | ||
/ | ||
col path new_val path | ||
select :path path from dual; | ||
set termout on | ||
|
||
@&path/../odpi/test/sql/SetupTest.sql | ||
|
||
create type &main_user..udt_issue19_obj as object ( | ||
FloatCol float | ||
); | ||
/ | ||
create type &main_user..udt_issue19_col as varray(10) of float; | ||
/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters