Strip quotes off of quoted table names to make them safe for use in index names, sequence names, etc. For example '"USER"."TABLE"' (an Oracle naming scheme) becomes 'USER"."TABLE'.
(table_name)
| 333 | |
| 334 | |
| 335 | def strip_quotes(table_name): |
| 336 | """ |
| 337 | Strip quotes off of quoted table names to make them safe for use in index |
| 338 | names, sequence names, etc. For example '"USER"."TABLE"' (an Oracle naming |
| 339 | scheme) becomes 'USER"."TABLE'. |
| 340 | """ |
| 341 | has_quotes = table_name.startswith('"') and table_name.endswith('"') |
| 342 | return table_name[1:-1] if has_quotes else table_name |
no outgoing calls
no test coverage detected