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

Views not loading correctly #259

Open
hassanad94 opened this issue Jan 7, 2025 · 4 comments
Open

Views not loading correctly #259

hassanad94 opened this issue Jan 7, 2025 · 4 comments

Comments

@hassanad94
Copy link

Screenshot 2025-01-07 at 17 33 42

Error: Error invoking remote method 'query': LibsqlError: SQLITE_ERROR: no such column: propertyIDs

select * from propertyIDs its working fine.

Screenshot 2025-01-07 at 17 34 12

@invisal
Copy link
Collaborator

invisal commented Jan 7, 2025

Thanks for reporting. I am looking into it.

Is this SQLite file, Cloudflare D1 or Turso?

@hassanad94
Copy link
Author

Its a SQLite file.

@hassanad94
Copy link
Author

Thats my schema

sqlite> .schema propertyIDs
CREATE VIEW propertyIDs AS SELECT * FROM (SELECT
(ROW_NUMBER() OVER (ORDER BY created)) AS id_number,
id,
table_name,
featured,
updated,
price,
for_sale,
off_market,
active,
long_address,
address,
created,
uploader
FROM (
SELECT id, 'houses' AS table_name, featured, price, for_sale, off_market, updated, active, long_address, address, created, uploader FROM houses
UNION
SELECT id, 'flats' AS table_name, featured, price, for_sale, off_market, updated, active, long_address, address, created, uploaderFROM flats
UNION
SELECT id, 'lands' AS table_name, featured, price, for_sale, off_market, updated, active, long_address, address, created, uploader FROM lands
) AS combined_table
ORDER BY created);

@invisal
Copy link
Collaborator

invisal commented Jan 8, 2025

image

Can you toggle developer tool. Then click on view again. The console will tell which SQL does it execute. Can you copy and paste the SQL here?

Thanks

@invisal invisal added the bug Something isn't working label Jan 10, 2025
@invisal invisal removed the bug Something isn't working label Jan 17, 2025
@invisal invisal transferred this issue from outerbase/studio-desktop Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants