Lines Matching refs:vm
105 void *vm; /* SQLite 2/3 VM/statement */ member
793 if (v->vm) { in doclose()
796 sqlite3_finalize((sqlite3_stmt *) v->vm); in doclose()
798 sqlite_finalize((sqlite_vm *) v->vm, 0); in doclose()
802 sqlite_finalize((sqlite_vm *) v->vm, 0); in doclose()
805 sqlite3_finalize((sqlite3_stmt *) v->vm); in doclose()
808 v->vm = 0; in doclose()
2481 if (v->vm) { in dovmfinal()
2484 sqlite3_finalize((sqlite3_stmt *) v->vm); in dovmfinal()
2486 sqlite_finalize((sqlite_vm *) v->vm, 0); in dovmfinal()
2490 sqlite_finalize((sqlite_vm *) v->vm, 0); in dovmfinal()
2493 sqlite3_finalize((sqlite3_stmt *) v->vm); in dovmfinal()
2496 v->vm = 0; in dovmfinal()
2530 if (v->vm) { in dostmtfinal()
2531 sqlite3_finalize((sqlite3_stmt *) v->vm); in dostmtfinal()
2533 v->vm = 0; in dostmtfinal()
2622 if (v && v->vm && v->h) { in Java_SQLite_Vm_step()
2635 ret = sqlite3_step((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2637 ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2655 sqlite3_column_name((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2659 ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2677 sqlite3_column_name((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2678 if (sqlite3_column_type((sqlite3_stmt *) v->vm, i) in Java_SQLite_Vm_step()
2681 sqlite3_column_blob((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2683 sqlite3_column_bytes((sqlite3_stmt *) v->vm, in Java_SQLite_Vm_step()
2705 sqlite3_column_text((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2712 ret = sqlite_step((sqlite_vm *) v->vm, &tmp, &data, &cols); in Java_SQLite_Vm_step()
2718 ret = sqlite_step((sqlite_vm *) v->vm, &tmp, &data, &cols); in Java_SQLite_Vm_step()
2722 ret = sqlite3_step((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2724 ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2742 sqlite3_column_name((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2746 ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2763 cols[i] = sqlite3_column_name((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2764 if (sqlite3_column_type((sqlite3_stmt *) v->vm, i) in Java_SQLite_Vm_step()
2767 sqlite3_column_blob((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2769 sqlite3_column_bytes((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2790 sqlite3_column_text((sqlite3_stmt *) v->vm, i); in Java_SQLite_Vm_step()
2802 v->hh.stmt = (sqlite3_stmt *) v->vm; in Java_SQLite_Vm_step()
2806 v->hh.stmt = (sqlite3_stmt *) v->vm; in Java_SQLite_Vm_step()
2828 v->hh.stmt = (sqlite3_stmt *) v->vm; in Java_SQLite_Vm_step()
2832 v->hh.stmt = (sqlite3_stmt *) v->vm; in Java_SQLite_Vm_step()
2848 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2850 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_step()
2854 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_step()
2857 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2860 v->vm = 0; in Java_SQLite_Vm_step()
2865 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2867 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_step()
2871 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_step()
2874 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_step()
2878 v->vm = 0; in Java_SQLite_Vm_step()
2902 if (v && v->vm) { in Java_SQLite_Vm_compile()
2905 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_compile()
2907 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_compile()
2911 sqlite_finalize((sqlite_vm *) v->vm, 0); in Java_SQLite_Vm_compile()
2914 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Vm_compile()
2917 v->vm = 0; in Java_SQLite_Vm_compile()
3000 v->vm = svm; in Java_SQLite_Vm_compile()
3014 jobject vm) in Java_SQLite_Database_vm_1compile() argument
3034 if (!vm) { in Java_SQLite_Database_vm_1compile()
3106 setvmerr(env, vm, ret); in Java_SQLite_Database_vm_1compile()
3146 v->vm = svm; in Java_SQLite_Database_vm_1compile()
3164 (*env)->SetLongField(env, vm, F_SQLite_Vm_handle, vv.j); in Java_SQLite_Database_vm_1compile()
3173 jobject vm, jobjectArray args) in Java_SQLite_Database_vm_1compile_1args() argument
3195 if (!vm) { in Java_SQLite_Database_vm_1compile_1args()
3329 setvmerr(env, vm, rc); in Java_SQLite_Database_vm_1compile_1args()
3345 setvmerr(env, vm, SQLITE_NOMEM); in Java_SQLite_Database_vm_1compile_1args()
3351 v->vm = svm; in Java_SQLite_Database_vm_1compile_1args()
3370 (*env)->SetLongField(env, vm, F_SQLite_Vm_handle, vv.j); in Java_SQLite_Database_vm_1compile_1args()
3487 if (v && v->vm) { in Java_SQLite_Stmt_prepare()
3488 sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_prepare()
3489 v->vm = 0; in Java_SQLite_Stmt_prepare()
3523 v->vm = svm; in Java_SQLite_Stmt_prepare()
3610 v->vm = svm; in Java_SQLite_Database_stmt_1prepare()
3643 if (v && v->vm && v->h) { in Java_SQLite_Stmt_step()
3646 ret = sqlite3_step((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_step()
3671 if (v && v->vm && v->h) { in Java_SQLite_Stmt_close()
3674 ret = sqlite3_finalize((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_close()
3675 v->vm = 0; in Java_SQLite_Stmt_close()
3697 if (v && v->vm && v->h) { in Java_SQLite_Stmt_reset()
3698 sqlite3_reset((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_reset()
3713 if (v && v->vm && v->h) { in Java_SQLite_Stmt_clear_1bindings()
3714 sqlite3_clear_bindings((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_clear_1bindings()
3729 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__II()
3730 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__II()
3737 ret = sqlite3_bind_int((sqlite3_stmt *) v->vm, pos, val); in Java_SQLite_Stmt_bind__II()
3756 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__IJ()
3757 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__IJ()
3764 ret = sqlite3_bind_int64((sqlite3_stmt *) v->vm, pos, val); in Java_SQLite_Stmt_bind__IJ()
3783 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__ID()
3784 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__ID()
3791 ret = sqlite3_bind_double((sqlite3_stmt *) v->vm, pos, val); in Java_SQLite_Stmt_bind__ID()
3810 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__I_3B()
3811 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__I_3B()
3829 ret = sqlite3_bind_blob((sqlite3_stmt *) v->vm, in Java_SQLite_Stmt_bind__I_3B()
3832 ret = sqlite3_bind_blob((sqlite3_stmt *) v->vm, in Java_SQLite_Stmt_bind__I_3B()
3836 ret = sqlite3_bind_null((sqlite3_stmt *) v->vm, pos); in Java_SQLite_Stmt_bind__I_3B()
3860 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3861 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3889 ret = sqlite3_bind_text16((sqlite3_stmt *) v->vm, in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3892 ret = sqlite3_bind_text16((sqlite3_stmt *) v->vm, pos, "", 0, in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3896 ret = sqlite3_bind_null((sqlite3_stmt *) v->vm, pos); in Java_SQLite_Stmt_bind__ILjava_lang_String_2()
3919 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind__I()
3920 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind__I()
3927 ret = sqlite3_bind_null((sqlite3_stmt *) v->vm, pos); in Java_SQLite_Stmt_bind__I()
3946 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind_1zeroblob()
3947 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind_1zeroblob()
3954 ret = sqlite3_bind_zeroblob((sqlite3_stmt *) v->vm, pos, len); in Java_SQLite_Stmt_bind_1zeroblob()
3973 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind_1parameter_1count()
3974 return sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind_1parameter_1count()
3989 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind_1parameter_1name()
3990 int npar = sqlite3_bind_parameter_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_bind_1parameter_1name()
3997 name = sqlite3_bind_parameter_name((sqlite3_stmt *) v->vm, pos); in Java_SQLite_Stmt_bind_1parameter_1name()
4017 if (v && v->vm && v->h) { in Java_SQLite_Stmt_bind_1parameter_1index()
4029 pos = sqlite3_bind_parameter_index((sqlite3_stmt *) v->vm, n); in Java_SQLite_Stmt_bind_1parameter_1index()
4047 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1int()
4048 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1int()
4054 return sqlite3_column_int((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1int()
4069 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1long()
4070 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1long()
4076 return sqlite3_column_int64((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1long()
4091 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1double()
4092 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1double()
4098 return sqlite3_column_double((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1double()
4113 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1bytes()
4114 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1bytes()
4123 data = sqlite3_column_blob((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1bytes()
4125 nbytes = sqlite3_column_bytes((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1bytes()
4150 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1string()
4151 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1string()
4160 data = sqlite3_column_text16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1string()
4162 nbytes = sqlite3_column_bytes16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1string()
4187 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1type()
4188 int ncol = sqlite3_data_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1type()
4194 return sqlite3_column_type((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1type()
4209 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1count()
4210 return sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1count()
4225 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1table_1name()
4226 int ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1table_1name()
4233 str = sqlite3_column_table_name16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1table_1name()
4252 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1database_1name()
4253 int ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1database_1name()
4260 str = sqlite3_column_database_name16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1database_1name()
4279 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1decltype()
4280 int ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1decltype()
4287 str = sqlite3_column_decltype16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1decltype()
4306 if (v && v->vm && v->h) { in Java_SQLite_Stmt_column_1origin_1name()
4307 int ncol = sqlite3_column_count((sqlite3_stmt *) v->vm); in Java_SQLite_Stmt_column_1origin_1name()
4314 str = sqlite3_column_origin_name16((sqlite3_stmt *) v->vm, col); in Java_SQLite_Stmt_column_1origin_1name()
4334 if (v && v->vm && v->h) { in Java_SQLite_Stmt_status()
4335 count = sqlite3_stmt_status((sqlite3_stmt *) v->vm, op, in Java_SQLite_Stmt_status()
5002 JNI_OnLoad(JavaVM *vm, void *reserved) in JNI_OnLoad() argument
5014 if ((*vm)->GetEnv(vm, (void **) &env, JNI_VERSION_1_2)) { in JNI_OnLoad()
5026 JNI_OnUnload(JavaVM *vm, void *reserved) in JNI_OnUnload() argument
5030 if ((*vm)->GetEnv(vm, (void **) &env, JNI_VERSION_1_2)) { in JNI_OnUnload()