Skip to content

Where is HAVE_SQLITE3_COLUMN_DATABASE_NAME defined? #460

@fractaledmind

Description

@fractaledmind

I am trying to understand how the gem determines whether or not to include the database_name method in the definition of the Statement class.

The code references a HAVE_SQLITE3_COLUMN_DATABASE_NAME constant in two places:

#ifdef HAVE_SQLITE3_COLUMN_DATABASE_NAME

#ifdef HAVE_SQLITE3_COLUMN_DATABASE_NAME

And the tests say that this method is defined or not depending on how SQLite was compiled:

# This method may not exist depending on how sqlite3 was compiled

But, a search of the SQLite source doesn't return any use of this constant. And the docs say that the compilation flag used is SQLITE_ENABLE_COLUMN_METADATA.

So, how and where is the HAVE_SQLITE3_COLUMN_DATABASE_NAME constant set and how does that relate to the SQLITE_ENABLE_COLUMN_METADATA compilation flag?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions