cassiusdrow
Member²
I write queries in order to generate other queries or code as a column in the output. Then I select the column and copy it and paste it back into the SQL window. This has worked fine before, but since installing version 7, if any of the generated lines of code contain line feeds, that piece of code will have double quotes around it.
Run this example:
Copy the CD column and paste in the SQL Window. You will get something like this:
Notice the last few lines have double quotes around them.
Is this behavior intended? Can it be changed?
Run this example:
Code:
SELECT 'SELECT COUNT(*) cnt' || DECODE( t.owner, 'SYSTEM', chr(10) || ' ', ' ') ||
'FROM ' || LOWER( t.owner || '.' || t.table_name) || ';' cd
FROM SYS.dba_tables t
WHERE t.owner IN ('SYS', 'SYSTEM')
AND t.table_name LIKE 'AQ%'
ORDER BY t.owner, t.table_name
Code:
SELECT COUNT(*) cnt FROM sys.aq$_message_types;
SELECT COUNT(*) cnt FROM sys.aq$_pending_messages;
SELECT COUNT(*) cnt FROM sys.aq$_propagation_status;
SELECT COUNT(*) cnt FROM sys.aq$_queue_statistics;
SELECT COUNT(*) cnt FROM sys.aq$_queue_table_affinities;
SELECT COUNT(*) cnt FROM sys.aq$_schedules;
"SELECT COUNT(*) cnt
FROM system.aq$_queues;"
"SELECT COUNT(*) cnt
FROM system.aq$_queue_tables;"
"SELECT COUNT(*) cnt
FROM system.aq$_schedules;"
Is this behavior intended? Can it be changed?