FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(sqlite): getObjectDdl must bind with ? not :name + a List · Issue #796 · QueryaHub/Querya-Desktop · GitHub

fix(sqlite): getObjectDdl must bind with ? not :name + a List #796

Description

Summary

getObjectDdl runs SELECT sql FROM sqlite_master WHERE name = :name with positional [objectName]. sqflite positional parameters are ?. Unbound / empty result → DDL dialog No definition found for a table that exists.

Scope

  • Use ? + [objectName] or a named map that the driver actually binds.
  • Quote nothing extra (parameter, not identifier).
  • Test: CREATE TABLE foo → getObjectDdl('foo') returns the CREATE SQL.

Out of scope

  • Pretty-printing DDL.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend database driver execution and queriesbugSomething isn't workingsqliteSQLite database driver and workspace

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL