Skip to content

Possible to make SQLite3::Statement#to_s more useful? #293

@sixtyfive

Description

@sixtyfive

Hi, after trying to debug something for a while and not being able to figure out how to see the SQL produced by sqlite3-ruby I'm now wondering why the following is the way it is:

qry = db.prepare("SELECT * FROM table WHERE a = ?")
qry.bind_params(123)
p qry.to_s # #<SQLite3::Statement:0x000055ed3b1d1f68>

An output like

SELECT * FROM table WHERE a = 123:

would be more helpful and expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions