~ubuntu-branches/debian/jessie/sqlheavy/jessie

« back to all changes in this revision

Viewing changes to sqlheavy/sqlheavy-error.c

  • Committer: Package Import Robot
  • Author(s): Devid Antonio Filoni
  • Date: 2012-05-17 09:47:17 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120517094717-ue17pqaud5tywjj5
Tags: 0.1.1-1
* New upstream release (Closes: #663320).
* Fix debug-package-should-be-priority-extra lintian warning.
* debian/control: switch to vala-0.16 in Build-Depends field.
* debian/libsqlheavy-dev.install, debian/libsqlheavygtk-dev.install:
  install files in vala-0.16 dir.
* Update libsqlheavy0.1-0.symbols.amd64 file.
* debian/rules: update override_dh_makeshlibs target.
* Bump Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* sqlheavy-error.c generated by valac 0.12.1, the Vala compiler
 
1
/* sqlheavy-error.c generated by valac 0.16.0, the Vala compiler
2
2
 * generated from sqlheavy-error.vala, do not modify */
3
3
 
4
4
 
25
25
 
26
26
gboolean sql_heavy_error_if_not_ok (gint ec, SQLHeavyQueryable* queryable, GError** error) {
27
27
        gboolean result = FALSE;
28
 
        const gchar* _tmp0_ = NULL;
29
 
        gchar* _tmp1_;
 
28
        gint _tmp0_;
 
29
        gint _tmp1_;
 
30
        const gchar* _tmp2_ = NULL;
 
31
        gchar* _tmp3_;
30
32
        gchar* msg;
 
33
        gint _tmp4_;
31
34
        GError * _inner_error_ = NULL;
32
 
        if (ec == SQLITE_OK) {
 
35
        _tmp0_ = ec;
 
36
        if (_tmp0_ == SQLITE_OK) {
33
37
                result = TRUE;
34
38
                return result;
35
39
        }
36
 
        _tmp0_ = sql_heavy_sqlite_errstr (ec);
37
 
        _tmp1_ = g_strdup (_tmp0_);
38
 
        msg = _tmp1_;
39
 
        switch (ec) {
 
40
        _tmp1_ = ec;
 
41
        _tmp2_ = sql_heavy_sqlite_errstr (_tmp1_);
 
42
        _tmp3_ = g_strdup (_tmp2_);
 
43
        msg = _tmp3_;
 
44
        _tmp4_ = ec;
 
45
        switch (_tmp4_) {
40
46
                case SQLITE_ERROR:
41
47
                {
42
 
                        GError* _tmp2_ = NULL;
43
 
                        _tmp2_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ERROR, msg);
44
 
                        _inner_error_ = _tmp2_;
45
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
46
 
                                g_propagate_error (error, _inner_error_);
47
 
                                _g_free0 (msg);
48
 
                                return FALSE;
49
 
                        } else {
50
 
                                _g_free0 (msg);
51
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
52
 
                                g_clear_error (&_inner_error_);
53
 
                                return FALSE;
54
 
                        }
55
 
                }
56
 
                case SQLITE_INTERNAL:
57
 
                {
58
 
                        GError* _tmp3_ = NULL;
59
 
                        _tmp3_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_INTERNAL, msg);
60
 
                        _inner_error_ = _tmp3_;
61
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
62
 
                                g_propagate_error (error, _inner_error_);
63
 
                                _g_free0 (msg);
64
 
                                return FALSE;
65
 
                        } else {
66
 
                                _g_free0 (msg);
67
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
68
 
                                g_clear_error (&_inner_error_);
69
 
                                return FALSE;
70
 
                        }
71
 
                }
72
 
                case SQLITE_PERM:
73
 
                {
74
 
                        GError* _tmp4_ = NULL;
75
 
                        _tmp4_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ACCESS_DENIED, msg);
76
 
                        _inner_error_ = _tmp4_;
77
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
78
 
                                g_propagate_error (error, _inner_error_);
79
 
                                _g_free0 (msg);
80
 
                                return FALSE;
81
 
                        } else {
82
 
                                _g_free0 (msg);
83
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
84
 
                                g_clear_error (&_inner_error_);
85
 
                                return FALSE;
86
 
                        }
87
 
                }
88
 
                case SQLITE_ABORT:
89
 
                {
90
 
                        GError* _tmp5_ = NULL;
91
 
                        _tmp5_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ABORTED, msg);
92
 
                        _inner_error_ = _tmp5_;
93
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
94
 
                                g_propagate_error (error, _inner_error_);
95
 
                                _g_free0 (msg);
96
 
                                return FALSE;
97
 
                        } else {
98
 
                                _g_free0 (msg);
99
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
100
 
                                g_clear_error (&_inner_error_);
101
 
                                return FALSE;
102
 
                        }
103
 
                }
104
 
                case SQLITE_BUSY:
105
 
                {
106
 
                        GError* _tmp6_ = NULL;
107
 
                        _tmp6_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_BUSY, msg);
 
48
                        const gchar* _tmp5_;
 
49
                        GError* _tmp6_;
 
50
                        _tmp5_ = msg;
 
51
                        _tmp6_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ERROR, _tmp5_);
108
52
                        _inner_error_ = _tmp6_;
109
53
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
110
54
                                g_propagate_error (error, _inner_error_);
117
61
                                return FALSE;
118
62
                        }
119
63
                }
120
 
                case SQLITE_LOCKED:
121
 
                {
122
 
                        GError* _tmp7_ = NULL;
123
 
                        _tmp7_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_LOCKED, msg);
124
 
                        _inner_error_ = _tmp7_;
125
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
126
 
                                g_propagate_error (error, _inner_error_);
127
 
                                _g_free0 (msg);
128
 
                                return FALSE;
129
 
                        } else {
130
 
                                _g_free0 (msg);
131
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
132
 
                                g_clear_error (&_inner_error_);
133
 
                                return FALSE;
134
 
                        }
135
 
                }
136
 
                case SQLITE_NOMEM:
137
 
                {
138
 
                        GError* _tmp8_ = NULL;
139
 
                        _tmp8_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NO_MEMORY, msg);
 
64
                case SQLITE_INTERNAL:
 
65
                {
 
66
                        const gchar* _tmp7_;
 
67
                        GError* _tmp8_;
 
68
                        _tmp7_ = msg;
 
69
                        _tmp8_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_INTERNAL, _tmp7_);
140
70
                        _inner_error_ = _tmp8_;
141
71
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
142
72
                                g_propagate_error (error, _inner_error_);
149
79
                                return FALSE;
150
80
                        }
151
81
                }
152
 
                case SQLITE_READONLY:
153
 
                {
154
 
                        GError* _tmp9_ = NULL;
155
 
                        _tmp9_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_READ_ONLY, msg);
156
 
                        _inner_error_ = _tmp9_;
157
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
158
 
                                g_propagate_error (error, _inner_error_);
159
 
                                _g_free0 (msg);
160
 
                                return FALSE;
161
 
                        } else {
162
 
                                _g_free0 (msg);
163
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
164
 
                                g_clear_error (&_inner_error_);
165
 
                                return FALSE;
166
 
                        }
167
 
                }
168
 
                case SQLITE_INTERRUPT:
169
 
                {
170
 
                        GError* _tmp10_ = NULL;
171
 
                        _tmp10_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_INTERRUPTED, msg);
 
82
                case SQLITE_PERM:
 
83
                {
 
84
                        const gchar* _tmp9_;
 
85
                        GError* _tmp10_;
 
86
                        _tmp9_ = msg;
 
87
                        _tmp10_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ACCESS_DENIED, _tmp9_);
172
88
                        _inner_error_ = _tmp10_;
173
89
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
174
90
                                g_propagate_error (error, _inner_error_);
181
97
                                return FALSE;
182
98
                        }
183
99
                }
184
 
                case SQLITE_IOERR:
185
 
                {
186
 
                        GError* _tmp11_ = NULL;
187
 
                        _tmp11_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_IO, msg);
188
 
                        _inner_error_ = _tmp11_;
189
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
190
 
                                g_propagate_error (error, _inner_error_);
191
 
                                _g_free0 (msg);
192
 
                                return FALSE;
193
 
                        } else {
194
 
                                _g_free0 (msg);
195
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
196
 
                                g_clear_error (&_inner_error_);
197
 
                                return FALSE;
198
 
                        }
199
 
                }
200
 
                case SQLITE_CORRUPT:
201
 
                {
202
 
                        GError* _tmp12_ = NULL;
203
 
                        _tmp12_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CORRUPT, msg);
 
100
                case SQLITE_ABORT:
 
101
                {
 
102
                        const gchar* _tmp11_;
 
103
                        GError* _tmp12_;
 
104
                        _tmp11_ = msg;
 
105
                        _tmp12_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ABORTED, _tmp11_);
204
106
                        _inner_error_ = _tmp12_;
205
107
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
206
108
                                g_propagate_error (error, _inner_error_);
213
115
                                return FALSE;
214
116
                        }
215
117
                }
216
 
                case SQLITE_FULL:
217
 
                {
218
 
                        GError* _tmp13_ = NULL;
219
 
                        _tmp13_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_FULL, msg);
220
 
                        _inner_error_ = _tmp13_;
221
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
222
 
                                g_propagate_error (error, _inner_error_);
223
 
                                _g_free0 (msg);
224
 
                                return FALSE;
225
 
                        } else {
226
 
                                _g_free0 (msg);
227
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
228
 
                                g_clear_error (&_inner_error_);
229
 
                                return FALSE;
230
 
                        }
231
 
                }
232
 
                case SQLITE_CANTOPEN:
233
 
                {
234
 
                        GError* _tmp14_ = NULL;
235
 
                        _tmp14_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CAN_NOT_OPEN, msg);
 
118
                case SQLITE_BUSY:
 
119
                {
 
120
                        const gchar* _tmp13_;
 
121
                        GError* _tmp14_;
 
122
                        _tmp13_ = msg;
 
123
                        _tmp14_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_BUSY, _tmp13_);
236
124
                        _inner_error_ = _tmp14_;
237
125
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
238
126
                                g_propagate_error (error, _inner_error_);
245
133
                                return FALSE;
246
134
                        }
247
135
                }
248
 
                case SQLITE_EMPTY:
249
 
                {
250
 
                        GError* _tmp15_ = NULL;
251
 
                        _tmp15_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_EMPTY, msg);
252
 
                        _inner_error_ = _tmp15_;
253
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
254
 
                                g_propagate_error (error, _inner_error_);
255
 
                                _g_free0 (msg);
256
 
                                return FALSE;
257
 
                        } else {
258
 
                                _g_free0 (msg);
259
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
260
 
                                g_clear_error (&_inner_error_);
261
 
                                return FALSE;
262
 
                        }
263
 
                }
264
 
                case SQLITE_SCHEMA:
265
 
                {
266
 
                        GError* _tmp16_ = NULL;
267
 
                        _tmp16_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_SCHEMA, msg);
 
136
                case SQLITE_LOCKED:
 
137
                {
 
138
                        const gchar* _tmp15_;
 
139
                        GError* _tmp16_;
 
140
                        _tmp15_ = msg;
 
141
                        _tmp16_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_LOCKED, _tmp15_);
268
142
                        _inner_error_ = _tmp16_;
269
143
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
270
144
                                g_propagate_error (error, _inner_error_);
277
151
                                return FALSE;
278
152
                        }
279
153
                }
280
 
                case SQLITE_TOOBIG:
281
 
                {
282
 
                        GError* _tmp17_ = NULL;
283
 
                        _tmp17_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_TOO_BIG, msg);
284
 
                        _inner_error_ = _tmp17_;
285
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
286
 
                                g_propagate_error (error, _inner_error_);
287
 
                                _g_free0 (msg);
288
 
                                return FALSE;
289
 
                        } else {
290
 
                                _g_free0 (msg);
291
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
292
 
                                g_clear_error (&_inner_error_);
293
 
                                return FALSE;
294
 
                        }
295
 
                }
296
 
                case SQLITE_CONSTRAINT:
297
 
                {
298
 
                        GError* _tmp18_ = NULL;
299
 
                        _tmp18_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CONSTRAINT, msg);
 
154
                case SQLITE_NOMEM:
 
155
                {
 
156
                        const gchar* _tmp17_;
 
157
                        GError* _tmp18_;
 
158
                        _tmp17_ = msg;
 
159
                        _tmp18_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NO_MEMORY, _tmp17_);
300
160
                        _inner_error_ = _tmp18_;
301
161
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
302
162
                                g_propagate_error (error, _inner_error_);
309
169
                                return FALSE;
310
170
                        }
311
171
                }
312
 
                case SQLITE_MISMATCH:
313
 
                {
314
 
                        GError* _tmp19_ = NULL;
315
 
                        _tmp19_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_MISMATCH, msg);
316
 
                        _inner_error_ = _tmp19_;
317
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
318
 
                                g_propagate_error (error, _inner_error_);
319
 
                                _g_free0 (msg);
320
 
                                return FALSE;
321
 
                        } else {
322
 
                                _g_free0 (msg);
323
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
324
 
                                g_clear_error (&_inner_error_);
325
 
                                return FALSE;
326
 
                        }
327
 
                }
328
 
                case SQLITE_MISUSE:
329
 
                {
330
 
                        GError* _tmp20_ = NULL;
331
 
                        _tmp20_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_MISUSE, msg);
 
172
                case SQLITE_READONLY:
 
173
                {
 
174
                        const gchar* _tmp19_;
 
175
                        GError* _tmp20_;
 
176
                        _tmp19_ = msg;
 
177
                        _tmp20_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_READ_ONLY, _tmp19_);
332
178
                        _inner_error_ = _tmp20_;
333
179
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
334
180
                                g_propagate_error (error, _inner_error_);
341
187
                                return FALSE;
342
188
                        }
343
189
                }
344
 
                case SQLITE_NOLFS:
345
 
                {
346
 
                        GError* _tmp21_ = NULL;
347
 
                        _tmp21_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NOLFS, msg);
348
 
                        _inner_error_ = _tmp21_;
349
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
350
 
                                g_propagate_error (error, _inner_error_);
351
 
                                _g_free0 (msg);
352
 
                                return FALSE;
353
 
                        } else {
354
 
                                _g_free0 (msg);
355
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
356
 
                                g_clear_error (&_inner_error_);
357
 
                                return FALSE;
358
 
                        }
359
 
                }
360
 
                case SQLITE_AUTH:
361
 
                {
362
 
                        GError* _tmp22_ = NULL;
363
 
                        _tmp22_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_AUTH, msg);
 
190
                case SQLITE_INTERRUPT:
 
191
                {
 
192
                        const gchar* _tmp21_;
 
193
                        GError* _tmp22_;
 
194
                        _tmp21_ = msg;
 
195
                        _tmp22_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_INTERRUPTED, _tmp21_);
364
196
                        _inner_error_ = _tmp22_;
365
197
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
366
198
                                g_propagate_error (error, _inner_error_);
373
205
                                return FALSE;
374
206
                        }
375
207
                }
376
 
                case SQLITE_FORMAT:
377
 
                {
378
 
                        GError* _tmp23_ = NULL;
379
 
                        _tmp23_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_FORMAT, msg);
380
 
                        _inner_error_ = _tmp23_;
381
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
382
 
                                g_propagate_error (error, _inner_error_);
383
 
                                _g_free0 (msg);
384
 
                                return FALSE;
385
 
                        } else {
386
 
                                _g_free0 (msg);
387
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
388
 
                                g_clear_error (&_inner_error_);
389
 
                                return FALSE;
390
 
                        }
391
 
                }
392
 
                case SQLITE_RANGE:
393
 
                {
394
 
                        GError* _tmp24_ = NULL;
395
 
                        _tmp24_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_RANGE, msg);
 
208
                case SQLITE_IOERR:
 
209
                {
 
210
                        const gchar* _tmp23_;
 
211
                        GError* _tmp24_;
 
212
                        _tmp23_ = msg;
 
213
                        _tmp24_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_IO, _tmp23_);
396
214
                        _inner_error_ = _tmp24_;
397
215
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
398
216
                                g_propagate_error (error, _inner_error_);
405
223
                                return FALSE;
406
224
                        }
407
225
                }
408
 
                case SQLITE_NOTADB:
409
 
                {
410
 
                        GError* _tmp25_ = NULL;
411
 
                        _tmp25_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NOTADB, msg);
412
 
                        _inner_error_ = _tmp25_;
413
 
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
414
 
                                g_propagate_error (error, _inner_error_);
415
 
                                _g_free0 (msg);
416
 
                                return FALSE;
417
 
                        } else {
418
 
                                _g_free0 (msg);
419
 
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
420
 
                                g_clear_error (&_inner_error_);
421
 
                                return FALSE;
422
 
                        }
423
 
                }
424
 
                default:
425
 
                {
426
 
                        GError* _tmp26_ = NULL;
427
 
                        _tmp26_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_UNKNOWN, msg);
 
226
                case SQLITE_CORRUPT:
 
227
                {
 
228
                        const gchar* _tmp25_;
 
229
                        GError* _tmp26_;
 
230
                        _tmp25_ = msg;
 
231
                        _tmp26_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CORRUPT, _tmp25_);
428
232
                        _inner_error_ = _tmp26_;
429
233
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
430
234
                                g_propagate_error (error, _inner_error_);
437
241
                                return FALSE;
438
242
                        }
439
243
                }
 
244
                case SQLITE_FULL:
 
245
                {
 
246
                        const gchar* _tmp27_;
 
247
                        GError* _tmp28_;
 
248
                        _tmp27_ = msg;
 
249
                        _tmp28_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_FULL, _tmp27_);
 
250
                        _inner_error_ = _tmp28_;
 
251
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
252
                                g_propagate_error (error, _inner_error_);
 
253
                                _g_free0 (msg);
 
254
                                return FALSE;
 
255
                        } else {
 
256
                                _g_free0 (msg);
 
257
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
258
                                g_clear_error (&_inner_error_);
 
259
                                return FALSE;
 
260
                        }
 
261
                }
 
262
                case SQLITE_CANTOPEN:
 
263
                {
 
264
                        const gchar* _tmp29_;
 
265
                        GError* _tmp30_;
 
266
                        _tmp29_ = msg;
 
267
                        _tmp30_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CAN_NOT_OPEN, _tmp29_);
 
268
                        _inner_error_ = _tmp30_;
 
269
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
270
                                g_propagate_error (error, _inner_error_);
 
271
                                _g_free0 (msg);
 
272
                                return FALSE;
 
273
                        } else {
 
274
                                _g_free0 (msg);
 
275
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
276
                                g_clear_error (&_inner_error_);
 
277
                                return FALSE;
 
278
                        }
 
279
                }
 
280
                case SQLITE_EMPTY:
 
281
                {
 
282
                        const gchar* _tmp31_;
 
283
                        GError* _tmp32_;
 
284
                        _tmp31_ = msg;
 
285
                        _tmp32_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_EMPTY, _tmp31_);
 
286
                        _inner_error_ = _tmp32_;
 
287
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
288
                                g_propagate_error (error, _inner_error_);
 
289
                                _g_free0 (msg);
 
290
                                return FALSE;
 
291
                        } else {
 
292
                                _g_free0 (msg);
 
293
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
294
                                g_clear_error (&_inner_error_);
 
295
                                return FALSE;
 
296
                        }
 
297
                }
 
298
                case SQLITE_SCHEMA:
 
299
                {
 
300
                        const gchar* _tmp33_;
 
301
                        GError* _tmp34_;
 
302
                        _tmp33_ = msg;
 
303
                        _tmp34_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_SCHEMA, _tmp33_);
 
304
                        _inner_error_ = _tmp34_;
 
305
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
306
                                g_propagate_error (error, _inner_error_);
 
307
                                _g_free0 (msg);
 
308
                                return FALSE;
 
309
                        } else {
 
310
                                _g_free0 (msg);
 
311
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
312
                                g_clear_error (&_inner_error_);
 
313
                                return FALSE;
 
314
                        }
 
315
                }
 
316
                case SQLITE_TOOBIG:
 
317
                {
 
318
                        const gchar* _tmp35_;
 
319
                        GError* _tmp36_;
 
320
                        _tmp35_ = msg;
 
321
                        _tmp36_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_TOO_BIG, _tmp35_);
 
322
                        _inner_error_ = _tmp36_;
 
323
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
324
                                g_propagate_error (error, _inner_error_);
 
325
                                _g_free0 (msg);
 
326
                                return FALSE;
 
327
                        } else {
 
328
                                _g_free0 (msg);
 
329
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
330
                                g_clear_error (&_inner_error_);
 
331
                                return FALSE;
 
332
                        }
 
333
                }
 
334
                case SQLITE_CONSTRAINT:
 
335
                {
 
336
                        const gchar* _tmp37_;
 
337
                        GError* _tmp38_;
 
338
                        _tmp37_ = msg;
 
339
                        _tmp38_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CONSTRAINT, _tmp37_);
 
340
                        _inner_error_ = _tmp38_;
 
341
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
342
                                g_propagate_error (error, _inner_error_);
 
343
                                _g_free0 (msg);
 
344
                                return FALSE;
 
345
                        } else {
 
346
                                _g_free0 (msg);
 
347
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
348
                                g_clear_error (&_inner_error_);
 
349
                                return FALSE;
 
350
                        }
 
351
                }
 
352
                case SQLITE_MISMATCH:
 
353
                {
 
354
                        const gchar* _tmp39_;
 
355
                        GError* _tmp40_;
 
356
                        _tmp39_ = msg;
 
357
                        _tmp40_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_MISMATCH, _tmp39_);
 
358
                        _inner_error_ = _tmp40_;
 
359
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
360
                                g_propagate_error (error, _inner_error_);
 
361
                                _g_free0 (msg);
 
362
                                return FALSE;
 
363
                        } else {
 
364
                                _g_free0 (msg);
 
365
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
366
                                g_clear_error (&_inner_error_);
 
367
                                return FALSE;
 
368
                        }
 
369
                }
 
370
                case SQLITE_MISUSE:
 
371
                {
 
372
                        const gchar* _tmp41_;
 
373
                        GError* _tmp42_;
 
374
                        _tmp41_ = msg;
 
375
                        _tmp42_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_MISUSE, _tmp41_);
 
376
                        _inner_error_ = _tmp42_;
 
377
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
378
                                g_propagate_error (error, _inner_error_);
 
379
                                _g_free0 (msg);
 
380
                                return FALSE;
 
381
                        } else {
 
382
                                _g_free0 (msg);
 
383
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
384
                                g_clear_error (&_inner_error_);
 
385
                                return FALSE;
 
386
                        }
 
387
                }
 
388
                case SQLITE_NOLFS:
 
389
                {
 
390
                        const gchar* _tmp43_;
 
391
                        GError* _tmp44_;
 
392
                        _tmp43_ = msg;
 
393
                        _tmp44_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NOLFS, _tmp43_);
 
394
                        _inner_error_ = _tmp44_;
 
395
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
396
                                g_propagate_error (error, _inner_error_);
 
397
                                _g_free0 (msg);
 
398
                                return FALSE;
 
399
                        } else {
 
400
                                _g_free0 (msg);
 
401
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
402
                                g_clear_error (&_inner_error_);
 
403
                                return FALSE;
 
404
                        }
 
405
                }
 
406
                case SQLITE_AUTH:
 
407
                {
 
408
                        const gchar* _tmp45_;
 
409
                        GError* _tmp46_;
 
410
                        _tmp45_ = msg;
 
411
                        _tmp46_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_AUTH, _tmp45_);
 
412
                        _inner_error_ = _tmp46_;
 
413
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
414
                                g_propagate_error (error, _inner_error_);
 
415
                                _g_free0 (msg);
 
416
                                return FALSE;
 
417
                        } else {
 
418
                                _g_free0 (msg);
 
419
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
420
                                g_clear_error (&_inner_error_);
 
421
                                return FALSE;
 
422
                        }
 
423
                }
 
424
                case SQLITE_FORMAT:
 
425
                {
 
426
                        const gchar* _tmp47_;
 
427
                        GError* _tmp48_;
 
428
                        _tmp47_ = msg;
 
429
                        _tmp48_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_FORMAT, _tmp47_);
 
430
                        _inner_error_ = _tmp48_;
 
431
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
432
                                g_propagate_error (error, _inner_error_);
 
433
                                _g_free0 (msg);
 
434
                                return FALSE;
 
435
                        } else {
 
436
                                _g_free0 (msg);
 
437
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
438
                                g_clear_error (&_inner_error_);
 
439
                                return FALSE;
 
440
                        }
 
441
                }
 
442
                case SQLITE_RANGE:
 
443
                {
 
444
                        const gchar* _tmp49_;
 
445
                        GError* _tmp50_;
 
446
                        _tmp49_ = msg;
 
447
                        _tmp50_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_RANGE, _tmp49_);
 
448
                        _inner_error_ = _tmp50_;
 
449
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
450
                                g_propagate_error (error, _inner_error_);
 
451
                                _g_free0 (msg);
 
452
                                return FALSE;
 
453
                        } else {
 
454
                                _g_free0 (msg);
 
455
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
456
                                g_clear_error (&_inner_error_);
 
457
                                return FALSE;
 
458
                        }
 
459
                }
 
460
                case SQLITE_NOTADB:
 
461
                {
 
462
                        const gchar* _tmp51_;
 
463
                        GError* _tmp52_;
 
464
                        _tmp51_ = msg;
 
465
                        _tmp52_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NOTADB, _tmp51_);
 
466
                        _inner_error_ = _tmp52_;
 
467
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
468
                                g_propagate_error (error, _inner_error_);
 
469
                                _g_free0 (msg);
 
470
                                return FALSE;
 
471
                        } else {
 
472
                                _g_free0 (msg);
 
473
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
474
                                g_clear_error (&_inner_error_);
 
475
                                return FALSE;
 
476
                        }
 
477
                }
 
478
                default:
 
479
                {
 
480
                        const gchar* _tmp53_;
 
481
                        GError* _tmp54_;
 
482
                        _tmp53_ = msg;
 
483
                        _tmp54_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_UNKNOWN, _tmp53_);
 
484
                        _inner_error_ = _tmp54_;
 
485
                        if (_inner_error_->domain == SQL_HEAVY_ERROR) {
 
486
                                g_propagate_error (error, _inner_error_);
 
487
                                _g_free0 (msg);
 
488
                                return FALSE;
 
489
                        } else {
 
490
                                _g_free0 (msg);
 
491
                                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
492
                                g_clear_error (&_inner_error_);
 
493
                                return FALSE;
 
494
                        }
 
495
                }
440
496
        }
441
497
        _g_free0 (msg);
442
498
}
455
511
   */
456
512
gint sql_heavy_sqlite_code_from_error (GError* e) {
457
513
        gint result = 0;
458
 
        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_INTERNAL)) {
 
514
        GError* _tmp0_;
 
515
        _tmp0_ = e;
 
516
        if (g_error_matches (_tmp0_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_INTERNAL)) {
459
517
                result = SQLITE_INTERNAL;
460
518
                return result;
461
519
        } else {
462
 
                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ACCESS_DENIED)) {
 
520
                GError* _tmp1_;
 
521
                _tmp1_ = e;
 
522
                if (g_error_matches (_tmp1_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ACCESS_DENIED)) {
463
523
                        result = SQLITE_PERM;
464
524
                        return result;
465
525
                } else {
466
 
                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ERROR)) {
 
526
                        GError* _tmp2_;
 
527
                        _tmp2_ = e;
 
528
                        if (g_error_matches (_tmp2_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ERROR)) {
467
529
                                result = SQLITE_ERROR;
468
530
                                return result;
469
531
                        } else {
470
 
                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ABORTED)) {
 
532
                                GError* _tmp3_;
 
533
                                _tmp3_ = e;
 
534
                                if (g_error_matches (_tmp3_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_ABORTED)) {
471
535
                                        result = SQLITE_ABORT;
472
536
                                        return result;
473
537
                                } else {
474
 
                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_BUSY)) {
 
538
                                        GError* _tmp4_;
 
539
                                        _tmp4_ = e;
 
540
                                        if (g_error_matches (_tmp4_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_BUSY)) {
475
541
                                                result = SQLITE_BUSY;
476
542
                                                return result;
477
543
                                        } else {
478
 
                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_LOCKED)) {
 
544
                                                GError* _tmp5_;
 
545
                                                _tmp5_ = e;
 
546
                                                if (g_error_matches (_tmp5_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_LOCKED)) {
479
547
                                                        result = SQLITE_LOCKED;
480
548
                                                        return result;
481
549
                                                } else {
482
 
                                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NO_MEMORY)) {
 
550
                                                        GError* _tmp6_;
 
551
                                                        _tmp6_ = e;
 
552
                                                        if (g_error_matches (_tmp6_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NO_MEMORY)) {
483
553
                                                                result = SQLITE_NOMEM;
484
554
                                                                return result;
485
555
                                                        } else {
486
 
                                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_READ_ONLY)) {
 
556
                                                                GError* _tmp7_;
 
557
                                                                _tmp7_ = e;
 
558
                                                                if (g_error_matches (_tmp7_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_READ_ONLY)) {
487
559
                                                                        result = SQLITE_READONLY;
488
560
                                                                        return result;
489
561
                                                                } else {
490
 
                                                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_INTERRUPTED)) {
 
562
                                                                        GError* _tmp8_;
 
563
                                                                        _tmp8_ = e;
 
564
                                                                        if (g_error_matches (_tmp8_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_INTERRUPTED)) {
491
565
                                                                                result = SQLITE_INTERRUPT;
492
566
                                                                                return result;
493
567
                                                                        } else {
494
 
                                                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_IO)) {
 
568
                                                                                GError* _tmp9_;
 
569
                                                                                _tmp9_ = e;
 
570
                                                                                if (g_error_matches (_tmp9_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_IO)) {
495
571
                                                                                        result = SQLITE_IOERR;
496
572
                                                                                        return result;
497
573
                                                                                } else {
498
 
                                                                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CORRUPT)) {
 
574
                                                                                        GError* _tmp10_;
 
575
                                                                                        _tmp10_ = e;
 
576
                                                                                        if (g_error_matches (_tmp10_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CORRUPT)) {
499
577
                                                                                                result = SQLITE_CORRUPT;
500
578
                                                                                                return result;
501
579
                                                                                        } else {
502
 
                                                                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_FULL)) {
 
580
                                                                                                GError* _tmp11_;
 
581
                                                                                                _tmp11_ = e;
 
582
                                                                                                if (g_error_matches (_tmp11_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_FULL)) {
503
583
                                                                                                        result = SQLITE_FULL;
504
584
                                                                                                        return result;
505
585
                                                                                                } else {
506
 
                                                                                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CAN_NOT_OPEN)) {
 
586
                                                                                                        GError* _tmp12_;
 
587
                                                                                                        _tmp12_ = e;
 
588
                                                                                                        if (g_error_matches (_tmp12_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CAN_NOT_OPEN)) {
507
589
                                                                                                                result = SQLITE_CANTOPEN;
508
590
                                                                                                                return result;
509
591
                                                                                                        } else {
510
 
                                                                                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_EMPTY)) {
 
592
                                                                                                                GError* _tmp13_;
 
593
                                                                                                                _tmp13_ = e;
 
594
                                                                                                                if (g_error_matches (_tmp13_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_EMPTY)) {
511
595
                                                                                                                        result = SQLITE_EMPTY;
512
596
                                                                                                                        return result;
513
597
                                                                                                                } else {
514
 
                                                                                                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_SCHEMA)) {
 
598
                                                                                                                        GError* _tmp14_;
 
599
                                                                                                                        _tmp14_ = e;
 
600
                                                                                                                        if (g_error_matches (_tmp14_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_SCHEMA)) {
515
601
                                                                                                                                result = SQLITE_SCHEMA;
516
602
                                                                                                                                return result;
517
603
                                                                                                                        } else {
518
 
                                                                                                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_TOO_BIG)) {
 
604
                                                                                                                                GError* _tmp15_;
 
605
                                                                                                                                _tmp15_ = e;
 
606
                                                                                                                                if (g_error_matches (_tmp15_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_TOO_BIG)) {
519
607
                                                                                                                                        result = SQLITE_TOOBIG;
520
608
                                                                                                                                        return result;
521
609
                                                                                                                                } else {
522
 
                                                                                                                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CONSTRAINT)) {
 
610
                                                                                                                                        GError* _tmp16_;
 
611
                                                                                                                                        _tmp16_ = e;
 
612
                                                                                                                                        if (g_error_matches (_tmp16_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_CONSTRAINT)) {
523
613
                                                                                                                                                result = SQLITE_CONSTRAINT;
524
614
                                                                                                                                                return result;
525
615
                                                                                                                                        } else {
526
 
                                                                                                                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_MISMATCH)) {
 
616
                                                                                                                                                GError* _tmp17_;
 
617
                                                                                                                                                _tmp17_ = e;
 
618
                                                                                                                                                if (g_error_matches (_tmp17_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_MISMATCH)) {
527
619
                                                                                                                                                        result = SQLITE_MISMATCH;
528
620
                                                                                                                                                        return result;
529
621
                                                                                                                                                } else {
530
 
                                                                                                                                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_MISUSE)) {
 
622
                                                                                                                                                        GError* _tmp18_;
 
623
                                                                                                                                                        _tmp18_ = e;
 
624
                                                                                                                                                        if (g_error_matches (_tmp18_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_MISUSE)) {
531
625
                                                                                                                                                                result = SQLITE_MISUSE;
532
626
                                                                                                                                                                return result;
533
627
                                                                                                                                                        } else {
534
 
                                                                                                                                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NOLFS)) {
 
628
                                                                                                                                                                GError* _tmp19_;
 
629
                                                                                                                                                                _tmp19_ = e;
 
630
                                                                                                                                                                if (g_error_matches (_tmp19_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NOLFS)) {
535
631
                                                                                                                                                                        result = SQLITE_NOLFS;
536
632
                                                                                                                                                                        return result;
537
633
                                                                                                                                                                } else {
538
 
                                                                                                                                                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_AUTH)) {
 
634
                                                                                                                                                                        GError* _tmp20_;
 
635
                                                                                                                                                                        _tmp20_ = e;
 
636
                                                                                                                                                                        if (g_error_matches (_tmp20_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_AUTH)) {
539
637
                                                                                                                                                                                result = SQLITE_AUTH;
540
638
                                                                                                                                                                                return result;
541
639
                                                                                                                                                                        } else {
542
 
                                                                                                                                                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_FORMAT)) {
 
640
                                                                                                                                                                                GError* _tmp21_;
 
641
                                                                                                                                                                                _tmp21_ = e;
 
642
                                                                                                                                                                                if (g_error_matches (_tmp21_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_FORMAT)) {
543
643
                                                                                                                                                                                        result = SQLITE_FORMAT;
544
644
                                                                                                                                                                                        return result;
545
645
                                                                                                                                                                                } else {
546
 
                                                                                                                                                                                        if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_RANGE)) {
 
646
                                                                                                                                                                                        GError* _tmp22_;
 
647
                                                                                                                                                                                        _tmp22_ = e;
 
648
                                                                                                                                                                                        if (g_error_matches (_tmp22_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_RANGE)) {
547
649
                                                                                                                                                                                                result = SQLITE_RANGE;
548
650
                                                                                                                                                                                                return result;
549
651
                                                                                                                                                                                        } else {
550
 
                                                                                                                                                                                                if (g_error_matches (e, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NOTADB)) {
 
652
                                                                                                                                                                                                GError* _tmp23_;
 
653
                                                                                                                                                                                                _tmp23_ = e;
 
654
                                                                                                                                                                                                if (g_error_matches (_tmp23_, SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_NOTADB)) {
551
655
                                                                                                                                                                                                        result = SQLITE_NOTADB;
552
656
                                                                                                                                                                                                        return result;
553
657
                                                                                                                                                                                                } else {
585
689
   */
586
690
const gchar* sql_heavy_sqlite_errstr (gint ec) {
587
691
        const gchar* result = NULL;
588
 
        switch (ec) {
 
692
        gint _tmp0_;
 
693
        _tmp0_ = ec;
 
694
        switch (_tmp0_) {
589
695
                case SQLITE_ERROR:
590
696
                {
591
697
                        result = "SQL error or missing database";