GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Multi-line SQL generated by pgAdmin that is pasted into "Filter Rows..." results in a syntax error · Issue #8254 · pgadmin-org/pgadmin4 Closed DescriptionDescribe the bug Generated SQL copied from one pgAdmin window into a "Filter Rows..." window of another results in broken SQL because the CR/LF is not interpreted as white space To Reproduce Assume you have a table called Person, with PK "person_id_pk", and a table called Student with FK "person_id_fk". Steps to reproduce the behavior:
I.e, the CR/LF at the end of line 1 of the generated/copied/pasted SQL is being stripped out, but not replaced with a space, so the two joined lines are resulting in illegal syntax. --> BUG#2: you can't edit the query to correct the mistake. I.e., clicking on the "Sort/Filter" icon doesn't do anything (and, hovering over it shows the default (arrow) cursor without tooltip, rather than the pointer (finger) cursor saying "Sort/Filter". So all you can do is go back to step 6, and start again. Note, the work around in step 7 is to put the cursor at the end of line 1 and manually add a space character after "public.person" Expected behavior I expect that when someone pastes in multi-line SQL, and if those lines really do need to be joined, then you'd ensure that that a space character is used (e.g., use .join( " " ), rather than .join( "" )... depending on the language you're using) so that it doesn't result in a syntax error. Or perhaps the CR/LF shouldn't be stripped out at all? And, I would expect that if the "View/Edit Data" | "Filtered Rows..." contains a syntax error, I should be able to click on the "Sort/Filter" icon to correct my mistake. Error message See step 8, above Screenshots If applicable, add screenshots to help explain your problem. Desktop (please complete the following information):
Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |