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

SQLPro for SQLite display a column value as NULL when a value is not null. #990

Closed
chipbeaulieu opened this issue Jun 7, 2024 · 9 comments
Assignees

Comments

@chipbeaulieu
Copy link

Describe the bug
SQLPro is displaying values in a column as NULL when the value is not null.

To Reproduce
This is certainly a strange bug.

  1. using Terminal, open an existing sqlite db.
  2. execute .read File to run a set up of update commands on a table (7 records, 2 columns)
  3. Exit sqlite cl, and open the same db in SQLPro
  4. Query on those same records
  5. A random, but repeatable list of the records will show NULL in the first of the updated columns
  6. Opening the same db in command line with the same query shows the values as expected.

Other notes:

  1. Reloading the db in SQLPro has no effect
  2. Running the same update commands in SQLPro wrapped in a TRANSACTION has no affect - the value still displays as NULL
  3. If I run the same update commands in SQLPro w/o a transaction, the values now appear in the query as expected.
  4. Also, I am updating two columns, but only the first one is ever displayed as null
  5. Restarting SQLPro does not fix the display issue.
  6. If I query for NULL in SQLPro, it does not return the records.

Expected behavior
When records are updated outside SQLPro, the value should be displayed in SQLPro.

Screenshots
The first screen shot shows the command I use in SQLite to update the database with a query showing a value.
The second screen shot shows the query from the same db returning the 8 updated records. All 8 records were updated and should return results, but records 1,2,3,5,6 show NULL.

Environment details (please complete the following information):

  • MacBookPro M2 Max
  • OS: macOS 14.5
  • SQLPro app Version: SQLPro for SQLite, Version 2024.30 (Build 4374.5)
  • Installation source: Mac App Store
  • Target database server: sqlite
SQLite3 SQLPro
@chipbeaulieu
Copy link
Author

I am uploading another screen shot of SQLPro running the identical query as sqlite3. The above query would return the same record, but I want to make sure the steps are the same.
SQLPro2

@hankinsoft
Copy link
Owner

Any chance you could provide the database, or even a create a database which this can be reproduced with?

@chipbeaulieu
Copy link
Author

chipbeaulieu commented Jun 9, 2024 via email

@chipbeaulieu
Copy link
Author

chipbeaulieu commented Jun 9, 2024 via email

@hankinsoft
Copy link
Owner

Hi, not received - could you email them to kyle @ hankinsoft.com? Thanks!

@hankinsoft
Copy link
Owner

Hi - could you try:
https://sqlprostudio.s3.us-east-1.amazonaws.com/sqlite/SQLProSQLite.2024.31.app.zip

And let me know if that sorts it out? If so, I will get the Mac app store version updated as well.

@chipbeaulieu
Copy link
Author

chipbeaulieu commented Jun 10, 2024 via email

@hankinsoft
Copy link
Owner

Awesome, glad to hear it. Yep, it was to do with the quotes. The App Store build is available now as well. If you happen to get the chance, would you consider leaving a rating or review on the App Store? As an independent developer, they help me out a ton. Please let me know if you have any other issues.

@chipbeaulieu
Copy link
Author

chipbeaulieu commented Jun 12, 2024 via email

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