Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] No export on PostgreSQL Temporary Tables #1022

Open
DasBen opened this issue Jan 5, 2024 · 5 comments
Open

[BUG] No export on PostgreSQL Temporary Tables #1022

DasBen opened this issue Jan 5, 2024 · 5 comments
Labels
bug Something isn't working NotActive

Comments

@DasBen
Copy link

DasBen commented Jan 5, 2024

  • Database type and version:
    • PostgreSQL 14.10 on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit

Was happy about the free version and just bought the premium package. Then i instantly found a bug 🤣

I'm creating multiple temporary tables with postgres and then joining them to export these as csv. This example has only one, but this is still reproducable:

DROP TABLE IF EXISTS network_params_aggr_numeric;

SELECT DISTINCT
    network,
    value as "numeric"
INTO TEMPORARY TABLE network_params_aggr_numeric
FROM network_params
WHERE 1=1
AND network  > 0 and network IN (SELECT code FROM networks)
AND param_type IN (3);

SELECT
     n.code AS "code",
     np.numeric AS "numeric"
FROM networks n
JOIN network_params_aggr_numeric np ON n.code = np.network
WHERE n.code > 0

Now we have two scenarios:

  • Export without "Remove Pagination SQL" to Editor -> this is working ✔
  • Export with "Remove Pagination SQL" to Editor -> throws an Error ❌ -> "2024-01-05 11:53:20 Cannot read properties of null (reading 'name')"

I guess the "Remove Pagination SQL" is opening a second session, so that the temporary tables are not available.

Of course I can create persistent tables and then just drop them, but that is what the temporary tables are for.

@DasBen DasBen added the bug Something isn't working label Jan 5, 2024
@cweijan
Copy link
Owner

cweijan commented Jan 5, 2024

Thanks for the feedback, a new connection will be used when performing the export, I will try to fix this.

@cweijan
Copy link
Owner

cweijan commented Jan 11, 2024

Fixed in version 6.9.10.

@cweijan cweijan closed this as completed Jan 11, 2024
@DasBen
Copy link
Author

DasBen commented Jan 11, 2024

I just retried with 6.9.10 and still get the same error:

2024-01-11 12:56:11 Cannot read properties of null (reading 'name')

Here a screenshot of the active version:
image

@cweijan
Copy link
Owner

cweijan commented Jan 11, 2024

Thanks feedback, I will check it again.

@cweijan cweijan reopened this Jan 11, 2024
@DasBen
Copy link
Author

DasBen commented Jan 11, 2024

Thanks for trying to fix this so fast 👍 Keep up the good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working NotActive
Projects
None yet
Development

No branches or pull requests

2 participants