Skip to content

How to support such a statement "ATTACH DATABASE x AS y KEY z"? #51

Open
@kamylee

Description

How to support such a statement "ATTACH DATABASE x AS y KEY z"?

sqlite3* db = 0;
ret = sqlite3_open("test2.db", &db);
std::string sqlTemp = "ATTACH DATABASE 'test2.db' AS test2 KEY '123456';";
sqlite3_exec(db, sqlTemp.c_str(), NULL, NULL, &pErrMsg);

But it made a mistake: file is not a database.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions