我懂了.
责备sqlite3_bind_parameter_index:
Return the index of an sql parameter given its name. The index value returned is suitable for use as the second parameter to sqlite3_bind(). A zero is returned if no matching parameter is found.
你去吧奇怪的选择,考虑到他们似乎使用了一个signed int作为索引,这意味着他们可以使用-1来表示不匹配.也许背后的原因更具历史性,sqlite已经存在了一段时间……