Lines Matching refs:vm

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