140
141
paramtype = TYPE_UNKNOWN;
148
PyErr_SetString(pysqlite_ProgrammingError, "You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.");
145
157
longval = PyInt_AsLong(parameter);
146
158
rc = sqlite3_bind_int64(self->st, pos, (sqlite_int64)longval);
150
161
longlongval = PyLong_AsLongLong(parameter);
151
162
/* in the overflow error case, longlongval is -1, and an exception is set */
152
163
rc = sqlite3_bind_int64(self->st, pos, (sqlite_int64)longlongval);
156
166
rc = sqlite3_bind_double(self->st, pos, PyFloat_AsDouble(parameter));