Lines Matching refs:vm
104 void *vm; /* SQLite 2/3 VM/statement */ member
792 if (v->vm) { in doclose()
795 sqlite3_finalize((sqlite3_stmt *) v->vm); in doclose()
797 sqlite_finalize((sqlite_vm *) v->vm, 0); in doclose()
801 sqlite_finalize((sqlite_vm *) v->vm, 0); in doclose()
804 sqlite3_finalize((sqlite3_stmt *) v->vm); in doclose()
807 v->vm = 0; in doclose()
2480 if (v->vm) { in dovmfinal()
2483 sqlite3_finalize((sqlite3_stmt *) v->vm); in dovmfinal()
2485 sqlite_finalize((sqlite_vm *) v->vm, 0); in dovmfinal()
2489 sqlite_finalize((sqlite_vm *) v->vm, 0); in dovmfinal()
2492 sqlite3_finalize((sqlite3_stmt *) v->vm); in dovmfinal()
2495 v->vm = 0; in dovmfinal()
2529 if (v->vm) { in dostmtfinal()
2530 sqlite3_finalize((sqlite3_stmt *) v->vm); in dostmtfinal()
2532 v->vm = 0; in dostmtfinal()
2621 if (v && v->vm && v->h) { in Java_SQLite_Vm_step()
2634 ret = sqlite3_step((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2636 ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2654 sqlite3_column_name((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2658 ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2676 sqlite3_column_name((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2677 if (sqlite3_column_type((sqlite3_stmt *) v->vm, i) in Java_SQLite_Vm_step()
2680 sqlite3_column_blob((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2682 sqlite3_column_bytes((sqlite3_stmt *) v->vm, in Java_SQLite_Vm_step()
2704 sqlite3_column_text((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2711 ret = sqlite_step((sqlite_vm *) v->vm, &tmp, &data, &cols); in Java_SQLite_Vm_step()
2717 ret = sqlite_step((sqlite_vm *) v->vm, &tmp, &data, &cols); in Java_SQLite_Vm_step()
2721 ret = sqlite3_step((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2723 ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2741 sqlite3_column_name((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2745 ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2762 cols[i] = sqlite3_column_name((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2763 if (sqlite3_column_type((sqlite3_stmt *) v->vm, i) in Java_SQLite_Vm_step()
2766 sqlite3_column_blob((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2768 sqlite3_column_bytes((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2789 sqlite3_column_text((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2801 v->hh.stmt = (sqlite3_stmt *) v->vm; in Java_SQLite_Vm_step()
2805 v->hh.stmt = (sqlite3_stmt *) v->vm; in Java_SQLite_Vm_step()
2827 v->hh.stmt = (sqlite3_stmt *) v->vm; in Java_SQLite_Vm_step()
2831 v->hh.stmt = (sqlite3_stmt *) v->vm; in Java_SQLite_Vm_step()
2847 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2849 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_step()
2853 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_step()
2856 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2859 v->vm = 0; in Java_SQLite_Vm_step()
2864 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2866 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_step()
2870 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_step()
2873 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2877 v->vm = 0; in Java_SQLite_Vm_step()
2901 if (v && v->vm) { in Java_SQLite_Vm_compile()
2904 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_compile()
2906 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_compile()
2910 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_compile()
2913 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_compile()
2916 v->vm = 0; in Java_SQLite_Vm_compile()
2999 v->vm = svm; in Java_SQLite_Vm_compile()
3013 jobject vm) in Java_SQLite_Database_vm_1compile() argument
3033 if (!vm) { in Java_SQLite_Database_vm_1compile()
3105 setvmerr(env, vm, ret); in Java_SQLite_Database_vm_1compile()
3145 v->vm = svm; in Java_SQLite_Database_vm_1compile()
3163 (*env)->SetLongField(env, vm, F_SQLite_Vm_handle, vv.j); in Java_SQLite_Database_vm_1compile()
3172 jobject vm, jobjectArray args) in Java_SQLite_Database_vm_1compile_1args() argument
3194 if (!vm) { in Java_SQLite_Database_vm_1compile_1args()
3328 setvmerr(env, vm, rc); in Java_SQLite_Database_vm_1compile_1args()
3344 setvmerr(env, vm, SQLITE_NOMEM); in Java_SQLite_Database_vm_1compile_1args()
3350 v->vm = svm; in Java_SQLite_Database_vm_1compile_1args()
3369 (*env)->SetLongField(env, vm, F_SQLite_Vm_handle, vv.j); in Java_SQLite_Database_vm_1compile_1args()
3486 if (v && v->vm) { in Java_SQLite_Stmt_prepare()
3487 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_prepare()
3488 v->vm = 0; in Java_SQLite_Stmt_prepare()
3522 v->vm = svm; in Java_SQLite_Stmt_prepare()
3609 v->vm = svm; in Java_SQLite_Database_stmt_1prepare()
3642 if (v && v->vm && v->h) { in Java_SQLite_Stmt_step()
3645 ret = sqlite3_step((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_step()
3670 if (v && v->vm && v->h) { in Java_SQLite_Stmt_close()
3673 ret = sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_close()
3674 v->vm = 0; in Java_SQLite_Stmt_close()
3696 if (v && v->vm && v->h) { in Java_SQLite_Stmt_reset()
3697 sqlite3_reset((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_reset()
3712 if (v && v->vm && v->h) { in Java_SQLite_Stmt_clear_1bindings()
3713 sqlite3_clear_bindings((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_clear_1bindings()
3728 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__II()
3729 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__II()
3736 ret = sqlite3_bind_int((sqlite3_stmt *) v->vm, pos, val); in Java_SQLite_Stmt_bind__II()
3755 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__IJ()
3756 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__IJ()
3763 ret = sqlite3_bind_int64((sqlite3_stmt *) v->vm, pos, val); in Java_SQLite_Stmt_bind__IJ()
3782 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__ID()
3783 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__ID()
3790 ret = sqlite3_bind_double((sqlite3_stmt *) v->vm, pos, val); in Java_SQLite_Stmt_bind__ID()
3809 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__I_3B()
3810 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__I_3B()
3828 ret = sqlite3_bind_blob((sqlite3_stmt *) v->vm, in Java_SQLite_Stmt_bind__I_3B()
3831 ret = sqlite3_bind_blob((sqlite3_stmt *) v->vm, in Java_SQLite_Stmt_bind__I_3B()
3835 ret = sqlite3_bind_null((sqlite3_stmt *) v->vm, pos); in Java_SQLite_Stmt_bind__I_3B()
3859 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3860 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3888 ret = sqlite3_bind_text16((sqlite3_stmt *) v->vm, in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3891 ret = sqlite3_bind_text16((sqlite3_stmt *) v->vm, pos, "", 0, in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3895 ret = sqlite3_bind_null((sqlite3_stmt *) v->vm, pos); in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3918 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__I()
3919 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__I()
3926 ret = sqlite3_bind_null((sqlite3_stmt *) v->vm, pos); in Java_SQLite_Stmt_bind__I()
3945 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind_1zeroblob()
3946 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind_1zeroblob()
3953 ret = sqlite3_bind_zeroblob((sqlite3_stmt *) v->vm, pos, len); in Java_SQLite_Stmt_bind_1zeroblob()
3972 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind_1parameter_1count()
3973 return sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind_1parameter_1count()
3988 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind_1parameter_1name()
3989 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind_1parameter_1name()
3996 name = sqlite3_bind_parameter_name((sqlite3_stmt *) v->vm, pos); in Java_SQLite_Stmt_bind_1parameter_1name()
4016 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind_1parameter_1index()
4028 pos = sqlite3_bind_parameter_index((sqlite3_stmt *) v->vm, n); in Java_SQLite_Stmt_bind_1parameter_1index()
4046 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1int()
4047 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1int()
4053 return sqlite3_column_int((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1int()
4068 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1long()
4069 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1long()
4075 return sqlite3_column_int64((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1long()
4090 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1double()
4091 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1double()
4097 return sqlite3_column_double((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1double()
4112 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1bytes()
4113 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1bytes()
4122 data = sqlite3_column_blob((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1bytes()
4124 nbytes = sqlite3_column_bytes((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1bytes()
4149 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1string()
4150 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1string()
4159 data = sqlite3_column_text16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1string()
4161 nbytes = sqlite3_column_bytes16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1string()
4186 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1type()
4187 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1type()
4193 return sqlite3_column_type((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1type()
4208 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1count()
4209 return sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1count()
4224 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1table_1name()
4225 int ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1table_1name()
4232 str = sqlite3_column_table_name16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1table_1name()
4251 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1database_1name()
4252 int ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1database_1name()
4259 str = sqlite3_column_database_name16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1database_1name()
4278 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1decltype()
4279 int ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1decltype()
4286 str = sqlite3_column_decltype16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1decltype()
4305 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1origin_1name()
4306 int ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1origin_1name()
4313 str = sqlite3_column_origin_name16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1origin_1name()
4333 if (v && v->vm && v->h) { in Java_SQLite_Stmt_status()
4334 count = sqlite3_stmt_status((sqlite3_stmt *) v->vm, op, in Java_SQLite_Stmt_status()
5001 JNI_OnLoad(JavaVM *vm, void *reserved) in JNI_OnLoad() argument
5013 if ((*vm)->GetEnv(vm, (void **) &env, JNI_VERSION_1_2)) { in JNI_OnLoad()
5025 JNI_OnUnload(JavaVM *vm, void *reserved) in JNI_OnUnload() argument
5029 if ((*vm)->GetEnv(vm, (void **) &env, JNI_VERSION_1_2)) { in JNI_OnUnload()