-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
I've noticed that when feeding in multiple semicolon-delimited statements as part of a single string, only the first statement is actually executed. for example:
database db("test.db");
db << "create table 'data'('col' integer); create table 'meta'('col' integer);";
// only the first table is created
The practical use case here is executing a whole bunch of statements to setup the schema when creating a new db.
if I split the string on semicolons and feed each string in, everything works. If this is expected behavior, it should probably be documented - even though I notice the the usage idioms only show examples of single statements.
Metadata
Metadata
Assignees
Labels
No labels