(self, connection)
| 1103 | |
| 1104 | @testing.fixture |
| 1105 | def scalar_strings(self, connection): |
| 1106 | connection.exec_driver_sql( |
| 1107 | "CREATE OR REPLACE TYPE strings_t IS TABLE OF VARCHAR2 (100)" |
| 1108 | ) |
| 1109 | connection.exec_driver_sql(r""" |
| 1110 | CREATE OR REPLACE FUNCTION scalar_strings ( |
| 1111 | count_in IN INTEGER, string_in IN VARCHAR2) |
| 1112 | RETURN strings_t |
| 1113 | AUTHID DEFINER |
| 1114 | IS |
| 1115 | l_strings strings_t := strings_t (); |
| 1116 | BEGIN |
| 1117 | l_strings.EXTEND (count_in); |
| 1118 | |
| 1119 | FOR indx IN 1 .. count_in |
| 1120 | LOOP |
| 1121 | l_strings (indx) := string_in; |
| 1122 | END LOOP; |
| 1123 | |
| 1124 | RETURN l_strings; |
| 1125 | END; |
| 1126 | """) |
| 1127 | yield |
| 1128 | connection.exec_driver_sql("DROP FUNCTION scalar_strings") |
| 1129 | connection.exec_driver_sql("DROP TYPE strings_t") |
| 1130 | |
| 1131 | @testing.fixture |
| 1132 | def two_strings(self, connection): |
no test coverage detected