SQLite Forum

sqlite3_bind_parameter_count question
Login
Hello. I've encountered inconsistent behaviour with SQLite and wanted to get some clarification here.

Basically, `sqlite3_bind_parameter_count` returns incorrect count for an SQL with multiple statements(separated by semicolon)

Example:
```
CREATE TABLE IF NOT EXISTS test(id);
INSERT INTO test VALUES(?);
INSERT INTO test VALUES(?);
```

Calling `sqlite3_prepare_v2` and then `sqlite3_bind_parameter_count` yields 0 parameter count, while it should be 2.

Is this intended behaviour? If so, how do I get the actual parameter count?