summaryrefslogtreecommitdiffstats
path: root/src/interfaces/ecpg
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:17:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:17:33 +0000
commit5e45211a64149b3c659b90ff2de6fa982a5a93ed (patch)
tree739caf8c461053357daa9f162bef34516c7bf452 /src/interfaces/ecpg
parentInitial commit. (diff)
downloadpostgresql-15-5e45211a64149b3c659b90ff2de6fa982a5a93ed.tar.xz
postgresql-15-5e45211a64149b3c659b90ff2de6fa982a5a93ed.zip
Adding upstream version 15.5.upstream/15.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/interfaces/ecpg')
-rw-r--r--src/interfaces/ecpg/Makefile31
-rw-r--r--src/interfaces/ecpg/README.dynSQL11
-rw-r--r--src/interfaces/ecpg/compatlib/.gitignore3
-rw-r--r--src/interfaces/ecpg/compatlib/Makefile59
-rw-r--r--src/interfaces/ecpg/compatlib/exports.txt44
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c1027
-rw-r--r--src/interfaces/ecpg/ecpglib/.gitignore3
-rw-r--r--src/interfaces/ecpg/ecpglib/Makefile70
-rw-r--r--src/interfaces/ecpg/ecpglib/connect.c766
-rw-r--r--src/interfaces/ecpg/ecpglib/data.c976
-rw-r--r--src/interfaces/ecpg/ecpglib/descriptor.c1002
-rw-r--r--src/interfaces/ecpg/ecpglib/ecpglib_extern.h257
-rw-r--r--src/interfaces/ecpg/ecpglib/error.c346
-rw-r--r--src/interfaces/ecpg/ecpglib/execute.c2301
-rw-r--r--src/interfaces/ecpg/ecpglib/exports.txt31
-rw-r--r--src/interfaces/ecpg/ecpglib/memory.c174
-rw-r--r--src/interfaces/ecpg/ecpglib/misc.c593
-rw-r--r--src/interfaces/ecpg/ecpglib/nls.mk6
-rw-r--r--src/interfaces/ecpg/ecpglib/po/cs.po199
-rw-r--r--src/interfaces/ecpg/ecpglib/po/de.po206
-rw-r--r--src/interfaces/ecpg/ecpglib/po/el.po200
-rw-r--r--src/interfaces/ecpg/ecpglib/po/es.po200
-rw-r--r--src/interfaces/ecpg/ecpglib/po/fr.po212
-rw-r--r--src/interfaces/ecpg/ecpglib/po/it.po217
-rw-r--r--src/interfaces/ecpg/ecpglib/po/ja.po199
-rw-r--r--src/interfaces/ecpg/ecpglib/po/ka.po200
-rw-r--r--src/interfaces/ecpg/ecpglib/po/ko.po198
-rw-r--r--src/interfaces/ecpg/ecpglib/po/pl.po174
-rw-r--r--src/interfaces/ecpg/ecpglib/po/pt_BR.po201
-rw-r--r--src/interfaces/ecpg/ecpglib/po/ru.po204
-rw-r--r--src/interfaces/ecpg/ecpglib/po/sv.po199
-rw-r--r--src/interfaces/ecpg/ecpglib/po/tr.po205
-rw-r--r--src/interfaces/ecpg/ecpglib/po/uk.po200
-rw-r--r--src/interfaces/ecpg/ecpglib/po/vi.po200
-rw-r--r--src/interfaces/ecpg/ecpglib/po/zh_CN.po199
-rw-r--r--src/interfaces/ecpg/ecpglib/prepare.c602
-rw-r--r--src/interfaces/ecpg/ecpglib/sqlda.c592
-rw-r--r--src/interfaces/ecpg/ecpglib/typename.c144
-rw-r--r--src/interfaces/ecpg/include/.gitignore2
-rw-r--r--src/interfaces/ecpg/include/Makefile35
-rw-r--r--src/interfaces/ecpg/include/datetime.h14
-rw-r--r--src/interfaces/ecpg/include/decimal.h13
-rw-r--r--src/interfaces/ecpg/include/ecpg-pthread-win32.h58
-rw-r--r--src/interfaces/ecpg/include/ecpg_config.h.in18
-rw-r--r--src/interfaces/ecpg/include/ecpg_informix.h90
-rw-r--r--src/interfaces/ecpg/include/ecpgerrno.h79
-rw-r--r--src/interfaces/ecpg/include/ecpglib.h103
-rw-r--r--src/interfaces/ecpg/include/ecpgtype.h109
-rw-r--r--src/interfaces/ecpg/include/pgtypes.h17
-rw-r--r--src/interfaces/ecpg/include/pgtypes_date.h32
-rw-r--r--src/interfaces/ecpg/include/pgtypes_error.h18
-rw-r--r--src/interfaces/ecpg/include/pgtypes_interval.h48
-rw-r--r--src/interfaces/ecpg/include/pgtypes_numeric.h69
-rw-r--r--src/interfaces/ecpg/include/pgtypes_timestamp.h31
-rw-r--r--src/interfaces/ecpg/include/sql3types.h43
-rw-r--r--src/interfaces/ecpg/include/sqlca.h66
-rw-r--r--src/interfaces/ecpg/include/sqlda-compat.h47
-rw-r--r--src/interfaces/ecpg/include/sqlda-native.h43
-rw-r--r--src/interfaces/ecpg/include/sqlda.h18
-rw-r--r--src/interfaces/ecpg/include/sqltypes.h57
-rw-r--r--src/interfaces/ecpg/pgtypeslib/.gitignore3
-rw-r--r--src/interfaces/ecpg/pgtypeslib/Makefile54
-rw-r--r--src/interfaces/ecpg/pgtypeslib/common.c148
-rw-r--r--src/interfaces/ecpg/pgtypeslib/datetime.c713
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt.h341
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt_common.c3002
-rw-r--r--src/interfaces/ecpg/pgtypeslib/exports.txt48
-rw-r--r--src/interfaces/ecpg/pgtypeslib/interval.c1088
-rw-r--r--src/interfaces/ecpg/pgtypeslib/numeric.c1593
-rw-r--r--src/interfaces/ecpg/pgtypeslib/pgtypeslib_extern.h41
-rw-r--r--src/interfaces/ecpg/pgtypeslib/timestamp.c925
-rw-r--r--src/interfaces/ecpg/preproc/.gitignore8
-rw-r--r--src/interfaces/ecpg/preproc/Makefile102
-rw-r--r--src/interfaces/ecpg/preproc/README.parser42
-rw-r--r--src/interfaces/ecpg/preproc/c_keywords.c66
-rw-r--r--src/interfaces/ecpg/preproc/c_kwlist.h52
-rw-r--r--src/interfaces/ecpg/preproc/c_kwlist_d.h118
-rw-r--r--src/interfaces/ecpg/preproc/check_rules.pl191
-rw-r--r--src/interfaces/ecpg/preproc/descriptor.c367
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.addons590
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.c504
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.header626
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.tokens26
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.trailer1933
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.type146
-rw-r--r--src/interfaces/ecpg/preproc/ecpg_keywords.c54
-rw-r--r--src/interfaces/ecpg/preproc/ecpg_kwlist.h67
-rw-r--r--src/interfaces/ecpg/preproc/ecpg_kwlist_d.h152
-rw-r--r--src/interfaces/ecpg/preproc/keywords.c38
-rw-r--r--src/interfaces/ecpg/preproc/nls.mk6
-rw-r--r--src/interfaces/ecpg/preproc/output.c251
-rw-r--r--src/interfaces/ecpg/preproc/parse.pl698
-rw-r--r--src/interfaces/ecpg/preproc/parser.c231
-rw-r--r--src/interfaces/ecpg/preproc/pgc.c5083
-rw-r--r--src/interfaces/ecpg/preproc/pgc.l1758
-rw-r--r--src/interfaces/ecpg/preproc/po/cs.po695
-rw-r--r--src/interfaces/ecpg/preproc/po/de.po710
-rw-r--r--src/interfaces/ecpg/preproc/po/el.po710
-rw-r--r--src/interfaces/ecpg/preproc/po/es.po716
-rw-r--r--src/interfaces/ecpg/preproc/po/fr.po769
-rw-r--r--src/interfaces/ecpg/preproc/po/it.po727
-rw-r--r--src/interfaces/ecpg/preproc/po/ja.po727
-rw-r--r--src/interfaces/ecpg/preproc/po/ka.po734
-rw-r--r--src/interfaces/ecpg/preproc/po/ko.po723
-rw-r--r--src/interfaces/ecpg/preproc/po/pl.po674
-rw-r--r--src/interfaces/ecpg/preproc/po/pt_BR.po712
-rw-r--r--src/interfaces/ecpg/preproc/po/ru.po751
-rw-r--r--src/interfaces/ecpg/preproc/po/sv.po709
-rw-r--r--src/interfaces/ecpg/preproc/po/tr.po699
-rw-r--r--src/interfaces/ecpg/preproc/po/uk.po693
-rw-r--r--src/interfaces/ecpg/preproc/po/vi.po684
-rw-r--r--src/interfaces/ecpg/preproc/po/zh_CN.po693
-rw-r--r--src/interfaces/ecpg/preproc/po/zh_TW.po645
-rw-r--r--src/interfaces/ecpg/preproc/preproc.c66595
-rw-r--r--src/interfaces/ecpg/preproc/preproc.h665
-rw-r--r--src/interfaces/ecpg/preproc/preproc.y19078
-rw-r--r--src/interfaces/ecpg/preproc/preproc_extern.h128
-rw-r--r--src/interfaces/ecpg/preproc/type.c748
-rw-r--r--src/interfaces/ecpg/preproc/type.h217
-rw-r--r--src/interfaces/ecpg/preproc/variable.c624
-rw-r--r--src/interfaces/ecpg/test/.gitignore5
-rw-r--r--src/interfaces/ecpg/test/Makefile100
-rw-r--r--src/interfaces/ecpg/test/Makefile.regress31
-rw-r--r--src/interfaces/ecpg/test/compat_informix/.gitignore18
-rw-r--r--src/interfaces/ecpg/test/compat_informix/Makefile24
-rw-r--r--src/interfaces/ecpg/test/compat_informix/charfuncs.pgc31
-rw-r--r--src/interfaces/ecpg/test/compat_informix/dec_test.pgc238
-rw-r--r--src/interfaces/ecpg/test/compat_informix/describe.pgc199
-rw-r--r--src/interfaces/ecpg/test/compat_informix/rfmtdate.pgc175
-rw-r--r--src/interfaces/ecpg/test/compat_informix/rfmtlong.pgc73
-rw-r--r--src/interfaces/ecpg/test/compat_informix/rnull.pgc97
-rw-r--r--src/interfaces/ecpg/test/compat_informix/sqlda.pgc250
-rw-r--r--src/interfaces/ecpg/test/compat_informix/test_informix.pgc95
-rw-r--r--src/interfaces/ecpg/test/compat_informix/test_informix2.pgc122
-rw-r--r--src/interfaces/ecpg/test/compat_oracle/.gitignore2
-rw-r--r--src/interfaces/ecpg/test/compat_oracle/Makefile11
-rw-r--r--src/interfaces/ecpg/test/compat_oracle/char_array.pgc93
-rw-r--r--src/interfaces/ecpg/test/connect/.gitignore10
-rw-r--r--src/interfaces/ecpg/test/connect/Makefile12
-rw-r--r--src/interfaces/ecpg/test/connect/README9
-rw-r--r--src/interfaces/ecpg/test/connect/test1.pgc65
-rw-r--r--src/interfaces/ecpg/test/connect/test2.pgc46
-rw-r--r--src/interfaces/ecpg/test/connect/test3.pgc52
-rw-r--r--src/interfaces/ecpg/test/connect/test4.pgc20
-rw-r--r--src/interfaces/ecpg/test/connect/test5.pgc76
-rw-r--r--src/interfaces/ecpg/test/ecpg_schedule61
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-charfuncs.c42
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stderr0
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stdout6
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-dec_test.c291
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-dec_test.stderr2
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-dec_test.stdout1293
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-describe.c467
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-describe.stderr112
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-describe.stdout24
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.c186
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stderr2
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stdout36
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.c84
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stderr2
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stdout10
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-rnull.c293
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-rnull.stderr124
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-rnull.stdout22
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-sqlda.c530
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr340
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-sqlda.stdout48
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-test_informix.c259
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-test_informix.stderr133
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-test_informix.stdout10
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c290
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stderr64
-rw-r--r--src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stdout2
-rw-r--r--src/interfaces/ecpg/test/expected/compat_oracle-char_array.c327
-rw-r--r--src/interfaces/ecpg/test/expected/compat_oracle-char_array.stderr175
-rw-r--r--src/interfaces/ecpg/test/expected/compat_oracle-char_array.stdout15
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test1-minGW32.stderr73
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test1.c124
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test1.stderr73
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test1.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test2.c104
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test2.stderr52
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test2.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test3.c106
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test3.stderr38
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test3.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test4.c44
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test4.stderr6
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test4.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test5.c158
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test5.stderr80
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test5.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c469
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stderr48
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout52
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c186
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stderr2
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stdout122
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c266
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr360
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stdout16
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-num_test.c202
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stderr32
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stdout8
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.c290
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stderr2
-rw-r--r--src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stdout1117
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-array_of_struct.c288
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-array_of_struct.stderr86
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-array_of_struct.stdout25
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-autoprep.c256
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-autoprep.stderr320
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-autoprep.stdout18
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-comment.c42
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-comment.stderr6
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-comment.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-cursor.c859
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-cursor.stderr412
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-cursor.stdout24
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-define.c184
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-define.stderr54
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-define.stdout2
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-describe.c481
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-describe.stderr140
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-describe.stdout4
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-init.c261
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-init.stderr14
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-init.stdout10
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-outofscope.c372
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-outofscope.stderr114
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-outofscope.stdout3
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.c293
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stderr86
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stdout25
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-strings.c82
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-strings.stderr56
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-strings.stdout2
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-type.c170
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-type.stderr40
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-type.stdout1
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-variable.c291
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-variable.stderr168
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-variable.stdout6
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-whenever.c246
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-whenever.stderr104
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-whenever.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.c164
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stderr112
-rw-r--r--src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stdout2
-rw-r--r--src/interfaces/ecpg/test/expected/sql-array.c355
-rw-r--r--src/interfaces/ecpg/test/expected/sql-array.stderr130
-rw-r--r--src/interfaces/ecpg/test/expected/sql-array.stdout13
-rw-r--r--src/interfaces/ecpg/test/expected/sql-binary.c230
-rw-r--r--src/interfaces/ecpg/test/expected/sql-binary.stderr102
-rw-r--r--src/interfaces/ecpg/test/expected/sql-binary.stdout3
-rw-r--r--src/interfaces/ecpg/test/expected/sql-bytea.c373
-rw-r--r--src/interfaces/ecpg/test/expected/sql-bytea.stderr191
-rw-r--r--src/interfaces/ecpg/test/expected/sql-bytea.stdout9
-rw-r--r--src/interfaces/ecpg/test/expected/sql-code100.c164
-rw-r--r--src/interfaces/ecpg/test/expected/sql-code100.stderr128
-rw-r--r--src/interfaces/ecpg/test/expected/sql-code100.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/sql-copystdout.c150
-rw-r--r--src/interfaces/ecpg/test/expected/sql-copystdout.stderr38
-rw-r--r--src/interfaces/ecpg/test/expected/sql-copystdout.stdout4
-rw-r--r--src/interfaces/ecpg/test/expected/sql-createtableas.c164
-rw-r--r--src/interfaces/ecpg/test/expected/sql-createtableas.stderr66
-rw-r--r--src/interfaces/ecpg/test/expected/sql-createtableas.stdout2
-rw-r--r--src/interfaces/ecpg/test/expected/sql-declare.c618
-rw-r--r--src/interfaces/ecpg/test/expected/sql-declare.stderr266
-rw-r--r--src/interfaces/ecpg/test/expected/sql-declare.stdout18
-rw-r--r--src/interfaces/ecpg/test/expected/sql-define.c205
-rw-r--r--src/interfaces/ecpg/test/expected/sql-define.stderr52
-rw-r--r--src/interfaces/ecpg/test/expected/sql-define.stdout1
-rw-r--r--src/interfaces/ecpg/test/expected/sql-desc.c377
-rw-r--r--src/interfaces/ecpg/test/expected/sql-desc.stderr140
-rw-r--r--src/interfaces/ecpg/test/expected/sql-desc.stdout4
-rw-r--r--src/interfaces/ecpg/test/expected/sql-describe.c465
-rw-r--r--src/interfaces/ecpg/test/expected/sql-describe.stderr112
-rw-r--r--src/interfaces/ecpg/test/expected/sql-describe.stdout24
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dynalloc.c340
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dynalloc.stderr102
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dynalloc.stdout4
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dynalloc2.c256
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dynalloc2.stderr98
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dynalloc2.stdout8
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dyntest.c486
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dyntest.stderr390
-rw-r--r--src/interfaces/ecpg/test/expected/sql-dyntest.stdout43
-rw-r--r--src/interfaces/ecpg/test/expected/sql-execute.c331
-rw-r--r--src/interfaces/ecpg/test/expected/sql-execute.stderr172
-rw-r--r--src/interfaces/ecpg/test/expected/sql-execute.stdout12
-rw-r--r--src/interfaces/ecpg/test/expected/sql-fetch.c237
-rw-r--r--src/interfaces/ecpg/test/expected/sql-fetch.stderr142
-rw-r--r--src/interfaces/ecpg/test/expected/sql-fetch.stdout6
-rw-r--r--src/interfaces/ecpg/test/expected/sql-func.c170
-rw-r--r--src/interfaces/ecpg/test/expected/sql-func.stderr76
-rw-r--r--src/interfaces/ecpg/test/expected/sql-func.stdout1
-rw-r--r--src/interfaces/ecpg/test/expected/sql-indicators.c189
-rw-r--r--src/interfaces/ecpg/test/expected/sql-indicators.stderr88
-rw-r--r--src/interfaces/ecpg/test/expected/sql-indicators.stdout3
-rw-r--r--src/interfaces/ecpg/test/expected/sql-insupd.c145
-rw-r--r--src/interfaces/ecpg/test/expected/sql-insupd.stderr74
-rw-r--r--src/interfaces/ecpg/test/expected/sql-insupd.stdout7
-rw-r--r--src/interfaces/ecpg/test/expected/sql-oldexec.c251
-rw-r--r--src/interfaces/ecpg/test/expected/sql-oldexec.stderr154
-rw-r--r--src/interfaces/ecpg/test/expected/sql-oldexec.stdout11
-rw-r--r--src/interfaces/ecpg/test/expected/sql-parser.c126
-rw-r--r--src/interfaces/ecpg/test/expected/sql-parser.stderr50
-rw-r--r--src/interfaces/ecpg/test/expected/sql-parser.stdout3
-rw-r--r--src/interfaces/ecpg/test/expected/sql-prepareas.c664
-rw-r--r--src/interfaces/ecpg/test/expected/sql-prepareas.stderr0
-rw-r--r--src/interfaces/ecpg/test/expected/sql-prepareas.stdout66
-rw-r--r--src/interfaces/ecpg/test/expected/sql-quote.c230
-rw-r--r--src/interfaces/ecpg/test/expected/sql-quote.stderr135
-rw-r--r--src/interfaces/ecpg/test/expected/sql-quote.stdout6
-rw-r--r--src/interfaces/ecpg/test/expected/sql-show.c170
-rw-r--r--src/interfaces/ecpg/test/expected/sql-show.stderr76
-rw-r--r--src/interfaces/ecpg/test/expected/sql-show.stdout5
-rw-r--r--src/interfaces/ecpg/test/expected/sql-sqlda.c545
-rw-r--r--src/interfaces/ecpg/test/expected/sql-sqlda.stderr460
-rw-r--r--src/interfaces/ecpg/test/expected/sql-sqlda.stdout84
-rw-r--r--src/interfaces/ecpg/test/expected/sql-twophase.c114
-rw-r--r--src/interfaces/ecpg/test/expected/sql-twophase.stderr34
-rw-r--r--src/interfaces/ecpg/test/expected/sql-twophase.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/thread-alloc.c218
-rw-r--r--src/interfaces/ecpg/test/expected/thread-alloc.stderr0
-rw-r--r--src/interfaces/ecpg/test/expected/thread-alloc.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/thread-alloc_2.stdout1
-rw-r--r--src/interfaces/ecpg/test/expected/thread-descriptor.c161
-rw-r--r--src/interfaces/ecpg/test/expected/thread-descriptor.stderr0
-rw-r--r--src/interfaces/ecpg/test/expected/thread-descriptor.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/thread-prep.c259
-rw-r--r--src/interfaces/ecpg/test/expected/thread-prep.stderr0
-rw-r--r--src/interfaces/ecpg/test/expected/thread-prep.stdout1
-rw-r--r--src/interfaces/ecpg/test/expected/thread-prep_2.stdout0
-rw-r--r--src/interfaces/ecpg/test/expected/thread-thread.c216
-rw-r--r--src/interfaces/ecpg/test/expected/thread-thread.stderr0
-rw-r--r--src/interfaces/ecpg/test/expected/thread-thread.stdout1
-rw-r--r--src/interfaces/ecpg/test/expected/thread-thread_2.stdout1
-rw-r--r--src/interfaces/ecpg/test/expected/thread-thread_implicit.c216
-rw-r--r--src/interfaces/ecpg/test/expected/thread-thread_implicit.stderr0
-rw-r--r--src/interfaces/ecpg/test/expected/thread-thread_implicit.stdout1
-rw-r--r--src/interfaces/ecpg/test/expected/thread-thread_implicit_2.stdout1
-rw-r--r--src/interfaces/ecpg/test/performance/perftest.pgc144
-rw-r--r--src/interfaces/ecpg/test/pg_regress_ecpg.c266
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/.gitignore10
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/Makefile12
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc385
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc151
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc87
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/num_test.pgc105
-rw-r--r--src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc239
-rw-r--r--src/interfaces/ecpg/test/preproc/.gitignore26
-rw-r--r--src/interfaces/ecpg/test/preproc/Makefile33
-rw-r--r--src/interfaces/ecpg/test/preproc/array_of_struct.pgc95
-rw-r--r--src/interfaces/ecpg/test/preproc/autoprep.pgc72
-rw-r--r--src/interfaces/ecpg/test/preproc/comment.pgc21
-rw-r--r--src/interfaces/ecpg/test/preproc/cursor.pgc256
-rw-r--r--src/interfaces/ecpg/test/preproc/define.pgc78
-rw-r--r--src/interfaces/ecpg/test/preproc/init.pgc100
-rw-r--r--src/interfaces/ecpg/test/preproc/outofscope.pgc116
-rw-r--r--src/interfaces/ecpg/test/preproc/pointer_to_struct.pgc100
-rw-r--r--src/interfaces/ecpg/test/preproc/strings.h8
-rw-r--r--src/interfaces/ecpg/test/preproc/strings.pgc32
-rw-r--r--src/interfaces/ecpg/test/preproc/struct.h19
-rw-r--r--src/interfaces/ecpg/test/preproc/type.pgc80
-rw-r--r--src/interfaces/ecpg/test/preproc/variable.pgc110
-rw-r--r--src/interfaces/ecpg/test/preproc/whenever.pgc67
-rw-r--r--src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc63
-rw-r--r--src/interfaces/ecpg/test/printf_hack.h29
-rw-r--r--src/interfaces/ecpg/test/regression.h5
-rw-r--r--src/interfaces/ecpg/test/sql/.gitignore50
-rw-r--r--src/interfaces/ecpg/test/sql/Makefile36
-rw-r--r--src/interfaces/ecpg/test/sql/array.pgc111
-rw-r--r--src/interfaces/ecpg/test/sql/binary.pgc70
-rw-r--r--src/interfaces/ecpg/test/sql/bytea.pgc120
-rw-r--r--src/interfaces/ecpg/test/sql/code100.pgc52
-rw-r--r--src/interfaces/ecpg/test/sql/copystdout.pgc25
-rw-r--r--src/interfaces/ecpg/test/sql/createtableas.pgc41
-rw-r--r--src/interfaces/ecpg/test/sql/declare.pgc212
-rw-r--r--src/interfaces/ecpg/test/sql/define.pgc58
-rw-r--r--src/interfaces/ecpg/test/sql/desc.pgc89
-rw-r--r--src/interfaces/ecpg/test/sql/describe.pgc199
-rw-r--r--src/interfaces/ecpg/test/sql/dynalloc.pgc89
-rw-r--r--src/interfaces/ecpg/test/sql/dynalloc2.pgc55
-rw-r--r--src/interfaces/ecpg/test/sql/dyntest.pgc199
-rw-r--r--src/interfaces/ecpg/test/sql/execute.pgc113
-rw-r--r--src/interfaces/ecpg/test/sql/fetch.pgc58
-rw-r--r--src/interfaces/ecpg/test/sql/func.pgc47
-rw-r--r--src/interfaces/ecpg/test/sql/indicators.pgc50
-rw-r--r--src/interfaces/ecpg/test/sql/insupd.pgc36
-rw-r--r--src/interfaces/ecpg/test/sql/oldexec.pgc90
-rw-r--r--src/interfaces/ecpg/test/sql/parser.pgc39
-rw-r--r--src/interfaces/ecpg/test/sql/prepareas.pgc198
-rw-r--r--src/interfaces/ecpg/test/sql/quote.pgc61
-rw-r--r--src/interfaces/ecpg/test/sql/show.pgc41
-rw-r--r--src/interfaces/ecpg/test/sql/sqlda.pgc266
-rw-r--r--src/interfaces/ecpg/test/sql/twophase.pgc44
-rw-r--r--src/interfaces/ecpg/test/thread/.gitignore10
-rw-r--r--src/interfaces/ecpg/test/thread/Makefile13
-rw-r--r--src/interfaces/ecpg/test/thread/alloc.pgc90
-rw-r--r--src/interfaces/ecpg/test/thread/descriptor.pgc68
-rw-r--r--src/interfaces/ecpg/test/thread/prep.pgc96
-rw-r--r--src/interfaces/ecpg/test/thread/thread.pgc136
-rw-r--r--src/interfaces/ecpg/test/thread/thread_implicit.pgc136
405 files changed, 170060 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/Makefile b/src/interfaces/ecpg/Makefile
new file mode 100644
index 0000000..e4bbf7b
--- /dev/null
+++ b/src/interfaces/ecpg/Makefile
@@ -0,0 +1,31 @@
+subdir = src/interfaces/ecpg
+top_builddir = ../../..
+include $(top_builddir)/src/Makefile.global
+
+SUBDIRS = include pgtypeslib ecpglib compatlib preproc
+
+# Suppress parallel build of subdirectories to avoid a bug in GNU make 3.82, cf
+# https://savannah.gnu.org/bugs/?30653
+# https://bugzilla.redhat.com/show_bug.cgi?id=835424
+# (There are some other parallelism bugs in the subdirectory makefiles
+# themselves, but there's little point in fixing them as long as we have
+# to use this big hammer.)
+ifeq ($(MAKE_VERSION),3.82)
+.NOTPARALLEL:
+endif
+
+$(recurse)
+
+all-pgtypeslib-recurse all-ecpglib-recurse all-compatlib-recurse all-preproc-recurse: all-include-recurse
+all-compatlib-recurse: all-ecpglib-recurse
+all-ecpglib-recurse: all-pgtypeslib-recurse
+install-pgtypeslib-recurse install-ecpglib-recurse install-compatlib-recurse install-preproc-recurse: install-include-recurse
+install-compatlib-recurse: install-ecpglib-recurse
+install-ecpglib-recurse: install-pgtypeslib-recurse
+
+clean distclean maintainer-clean:
+ $(MAKE) -C test clean
+
+checktcp: | temp-install
+check checktcp installcheck:
+ $(MAKE) -C test $@
diff --git a/src/interfaces/ecpg/README.dynSQL b/src/interfaces/ecpg/README.dynSQL
new file mode 100644
index 0000000..b021f4b
--- /dev/null
+++ b/src/interfaces/ecpg/README.dynSQL
@@ -0,0 +1,11 @@
+src/interfaces/ecpg/README.dynSQL
+
+descriptor statements have the following shortcomings
+
+- input descriptors (USING DESCRIPTOR <name>) are not supported
+
+ Reason: to fully support dynamic SQL the frontend/backend communication
+ should change to recognize input parameters.
+ Since this is not likely to happen in the near future and you
+ can cover the same functionality with the existing infrastructure
+ (using s[n]printf), I'll leave the work to someone else.
diff --git a/src/interfaces/ecpg/compatlib/.gitignore b/src/interfaces/ecpg/compatlib/.gitignore
new file mode 100644
index 0000000..926385c
--- /dev/null
+++ b/src/interfaces/ecpg/compatlib/.gitignore
@@ -0,0 +1,3 @@
+/compatlib.def
+/blibecpg_compatdll.def
+/exports.list
diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile
new file mode 100644
index 0000000..867ad55
--- /dev/null
+++ b/src/interfaces/ecpg/compatlib/Makefile
@@ -0,0 +1,59 @@
+#-------------------------------------------------------------------------
+#
+# Makefile for ecpg compatibility library
+#
+# Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+# Portions Copyright (c) 1994, Regents of the University of California
+#
+# src/interfaces/ecpg/compatlib/Makefile
+#
+#-------------------------------------------------------------------------
+
+subdir = src/interfaces/ecpg/compatlib
+top_builddir = ../../../..
+include $(top_builddir)/src/Makefile.global
+
+PGFILEDESC = "ECPG compat - compatibility library for ECPG"
+NAME= ecpg_compat
+SO_MAJOR_VERSION= 3
+SO_MINOR_VERSION= $(MAJORVERSION)
+
+override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
+ -I$(libpq_srcdir) -DFRONTEND $(CPPFLAGS)
+override CFLAGS += $(PTHREAD_CFLAGS)
+
+SHLIB_LINK_INTERNAL = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq_pgport_shlib)
+SHLIB_LINK = $(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
+SHLIB_PREREQS = submake-ecpglib submake-pgtypeslib
+
+SHLIB_EXPORTS = exports.txt
+
+OBJS = \
+ $(WIN32RES) \
+ informix.o
+
+PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes
+
+all: all-lib
+
+.PHONY: submake-ecpglib submake-pgtypeslib
+
+submake-ecpglib:
+ $(MAKE) -C $(top_builddir)/src/interfaces/ecpg/ecpglib all
+
+submake-pgtypeslib:
+ $(MAKE) -C $(top_builddir)/src/interfaces/ecpg/pgtypeslib all
+
+# Shared library stuff
+include $(top_srcdir)/src/Makefile.shlib
+
+install: all installdirs install-lib
+
+installdirs: installdirs-lib
+
+uninstall: uninstall-lib
+
+clean distclean: clean-lib
+ rm -f $(OBJS)
+
+maintainer-clean: distclean
diff --git a/src/interfaces/ecpg/compatlib/exports.txt b/src/interfaces/ecpg/compatlib/exports.txt
new file mode 100644
index 0000000..86e9ca1
--- /dev/null
+++ b/src/interfaces/ecpg/compatlib/exports.txt
@@ -0,0 +1,44 @@
+# src/interfaces/ecpg/compatlib/exports.txt
+# Functions to be exported by libecpg_compat DLL
+ECPG_informix_get_var 1
+ECPG_informix_set_var 2
+decadd 3
+deccmp 4
+deccopy 5
+deccvasc 6
+deccvdbl 7
+deccvint 8
+deccvlong 9
+decdiv 10
+decmul 11
+decsub 12
+dectoasc 13
+dectodbl 14
+dectoint 15
+dectolong 16
+dtcurrent 17
+dtcvasc 18
+dtcvfmtasc 19
+dtsub 20
+dttoasc 21
+dttofmtasc 22
+intoasc 23
+rdatestr 24
+rdayofweek 25
+rdefmtdate 26
+rfmtdate 27
+rfmtlong 28
+rgetmsg 29
+risnull 30
+rjulmdy 31
+rmdyjul 32
+rsetnull 33
+rstrdate 34
+rtoday 35
+rtypalign 36
+rtypmsize 37
+rtypwidth 38
+rupshift 39
+ldchar 40
+byleng 41
+ECPG_informix_reset_sqlca 42
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
new file mode 100644
index 0000000..dccf395
--- /dev/null
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -0,0 +1,1027 @@
+/* src/interfaces/ecpg/compatlib/informix.c */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include <math.h>
+#include <ctype.h>
+#include <limits.h>
+
+#include "ecpg_informix.h"
+#include "ecpgerrno.h"
+#include "ecpgtype.h"
+#include "pgtypes_date.h"
+#include "pgtypes_error.h"
+#include "pgtypes_numeric.h"
+#include "sqlca.h"
+#include "sqltypes.h"
+
+/* this is also defined in ecpglib/misc.c, by defining it twice we don't have to export the symbol */
+
+static struct sqlca_t sqlca_init =
+{
+ {
+ 'S', 'Q', 'L', 'C', 'A', ' ', ' ', ' '
+ },
+ sizeof(struct sqlca_t),
+ 0,
+ {
+ 0,
+ {
+ 0
+ }
+ },
+ {
+ 'N', 'O', 'T', ' ', 'S', 'E', 'T', ' '
+ },
+ {
+ 0, 0, 0, 0, 0, 0
+ },
+ {
+ 0, 0, 0, 0, 0, 0, 0, 0
+ },
+ {
+ '0', '0', '0', '0', '0'
+ }
+};
+static int
+deccall2(decimal *arg1, decimal *arg2, int (*ptr) (numeric *, numeric *))
+{
+ numeric *a1,
+ *a2;
+ int i;
+
+ if ((a1 = PGTYPESnumeric_new()) == NULL)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ if ((a2 = PGTYPESnumeric_new()) == NULL)
+ {
+ PGTYPESnumeric_free(a1);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ if (PGTYPESnumeric_from_decimal(arg1, a1) != 0)
+ {
+ PGTYPESnumeric_free(a1);
+ PGTYPESnumeric_free(a2);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ if (PGTYPESnumeric_from_decimal(arg2, a2) != 0)
+ {
+ PGTYPESnumeric_free(a1);
+ PGTYPESnumeric_free(a2);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ i = (*ptr) (a1, a2);
+
+ PGTYPESnumeric_free(a1);
+ PGTYPESnumeric_free(a2);
+
+ return i;
+}
+
+static int
+deccall3(decimal *arg1, decimal *arg2, decimal *result, int (*ptr) (numeric *, numeric *, numeric *))
+{
+ numeric *a1,
+ *a2,
+ *nres;
+ int i;
+
+ /*
+ * we must NOT set the result to NULL here because it may be the same
+ * variable as one of the arguments
+ */
+ if (risnull(CDECIMALTYPE, (char *) arg1) || risnull(CDECIMALTYPE, (char *) arg2))
+ return 0;
+
+ if ((a1 = PGTYPESnumeric_new()) == NULL)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ if ((a2 = PGTYPESnumeric_new()) == NULL)
+ {
+ PGTYPESnumeric_free(a1);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ if ((nres = PGTYPESnumeric_new()) == NULL)
+ {
+ PGTYPESnumeric_free(a1);
+ PGTYPESnumeric_free(a2);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ if (PGTYPESnumeric_from_decimal(arg1, a1) != 0)
+ {
+ PGTYPESnumeric_free(a1);
+ PGTYPESnumeric_free(a2);
+ PGTYPESnumeric_free(nres);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ if (PGTYPESnumeric_from_decimal(arg2, a2) != 0)
+ {
+ PGTYPESnumeric_free(a1);
+ PGTYPESnumeric_free(a2);
+ PGTYPESnumeric_free(nres);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ i = (*ptr) (a1, a2, nres);
+
+ if (i == 0) /* No error */
+ {
+
+ /* set the result to null in case it errors out later */
+ rsetnull(CDECIMALTYPE, (char *) result);
+ PGTYPESnumeric_to_decimal(nres, result);
+ }
+
+ PGTYPESnumeric_free(nres);
+ PGTYPESnumeric_free(a1);
+ PGTYPESnumeric_free(a2);
+
+ return i;
+}
+
+/* we start with the numeric functions */
+int
+decadd(decimal *arg1, decimal *arg2, decimal *sum)
+{
+ errno = 0;
+ deccall3(arg1, arg2, sum, PGTYPESnumeric_add);
+
+ if (errno == PGTYPES_NUM_OVERFLOW)
+ return ECPG_INFORMIX_NUM_OVERFLOW;
+ else if (errno == PGTYPES_NUM_UNDERFLOW)
+ return ECPG_INFORMIX_NUM_UNDERFLOW;
+ else if (errno != 0)
+ return -1;
+ else
+ return 0;
+}
+
+int
+deccmp(decimal *arg1, decimal *arg2)
+{
+ return deccall2(arg1, arg2, PGTYPESnumeric_cmp);
+}
+
+void
+deccopy(decimal *src, decimal *target)
+{
+ memcpy(target, src, sizeof(decimal));
+}
+
+int
+deccvasc(const char *cp, int len, decimal *np)
+{
+ char *str;
+ int ret = 0;
+ numeric *result;
+
+ rsetnull(CDECIMALTYPE, (char *) np);
+ if (risnull(CSTRINGTYPE, cp))
+ return 0;
+
+ str = pnstrdup(cp, len); /* decimal_in always converts the complete
+ * string */
+ if (!str)
+ ret = ECPG_INFORMIX_NUM_UNDERFLOW;
+ else
+ {
+ errno = 0;
+ result = PGTYPESnumeric_from_asc(str, NULL);
+ if (!result)
+ {
+ switch (errno)
+ {
+ case PGTYPES_NUM_OVERFLOW:
+ ret = ECPG_INFORMIX_NUM_OVERFLOW;
+ break;
+ case PGTYPES_NUM_BAD_NUMERIC:
+ ret = ECPG_INFORMIX_BAD_NUMERIC;
+ break;
+ default:
+ ret = ECPG_INFORMIX_BAD_EXPONENT;
+ break;
+ }
+ }
+ else
+ {
+ int i = PGTYPESnumeric_to_decimal(result, np);
+
+ PGTYPESnumeric_free(result);
+ if (i != 0)
+ ret = ECPG_INFORMIX_NUM_OVERFLOW;
+ }
+ }
+
+ free(str);
+ return ret;
+}
+
+int
+deccvdbl(double dbl, decimal *np)
+{
+ numeric *nres;
+ int result = 1;
+
+ rsetnull(CDECIMALTYPE, (char *) np);
+ if (risnull(CDOUBLETYPE, (char *) &dbl))
+ return 0;
+
+ nres = PGTYPESnumeric_new();
+ if (nres == NULL)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ result = PGTYPESnumeric_from_double(dbl, nres);
+ if (result == 0)
+ result = PGTYPESnumeric_to_decimal(nres, np);
+
+ PGTYPESnumeric_free(nres);
+ return result;
+}
+
+int
+deccvint(int in, decimal *np)
+{
+ numeric *nres;
+ int result = 1;
+
+ rsetnull(CDECIMALTYPE, (char *) np);
+ if (risnull(CINTTYPE, (char *) &in))
+ return 0;
+
+ nres = PGTYPESnumeric_new();
+ if (nres == NULL)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ result = PGTYPESnumeric_from_int(in, nres);
+ if (result == 0)
+ result = PGTYPESnumeric_to_decimal(nres, np);
+
+ PGTYPESnumeric_free(nres);
+ return result;
+}
+
+int
+deccvlong(long lng, decimal *np)
+{
+ numeric *nres;
+ int result = 1;
+
+ rsetnull(CDECIMALTYPE, (char *) np);
+ if (risnull(CLONGTYPE, (char *) &lng))
+ return 0;
+
+ nres = PGTYPESnumeric_new();
+ if (nres == NULL)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ result = PGTYPESnumeric_from_long(lng, nres);
+ if (result == 0)
+ result = PGTYPESnumeric_to_decimal(nres, np);
+
+ PGTYPESnumeric_free(nres);
+ return result;
+}
+
+int
+decdiv(decimal *n1, decimal *n2, decimal *result)
+{
+ int i;
+
+ errno = 0;
+ i = deccall3(n1, n2, result, PGTYPESnumeric_div);
+
+ if (i != 0)
+ switch (errno)
+ {
+ case PGTYPES_NUM_DIVIDE_ZERO:
+ return ECPG_INFORMIX_DIVIDE_ZERO;
+ break;
+ case PGTYPES_NUM_OVERFLOW:
+ return ECPG_INFORMIX_NUM_OVERFLOW;
+ break;
+ default:
+ return ECPG_INFORMIX_NUM_UNDERFLOW;
+ break;
+ }
+
+ return 0;
+}
+
+int
+decmul(decimal *n1, decimal *n2, decimal *result)
+{
+ int i;
+
+ errno = 0;
+ i = deccall3(n1, n2, result, PGTYPESnumeric_mul);
+
+ if (i != 0)
+ switch (errno)
+ {
+ case PGTYPES_NUM_OVERFLOW:
+ return ECPG_INFORMIX_NUM_OVERFLOW;
+ break;
+ default:
+ return ECPG_INFORMIX_NUM_UNDERFLOW;
+ break;
+ }
+
+ return 0;
+}
+
+int
+decsub(decimal *n1, decimal *n2, decimal *result)
+{
+ int i;
+
+ errno = 0;
+ i = deccall3(n1, n2, result, PGTYPESnumeric_sub);
+
+ if (i != 0)
+ switch (errno)
+ {
+ case PGTYPES_NUM_OVERFLOW:
+ return ECPG_INFORMIX_NUM_OVERFLOW;
+ break;
+ default:
+ return ECPG_INFORMIX_NUM_UNDERFLOW;
+ break;
+ }
+
+ return 0;
+}
+
+int
+dectoasc(decimal *np, char *cp, int len, int right)
+{
+ char *str;
+ numeric *nres;
+
+ rsetnull(CSTRINGTYPE, (char *) cp);
+ if (risnull(CDECIMALTYPE, (char *) np))
+ return 0;
+
+ nres = PGTYPESnumeric_new();
+ if (nres == NULL)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ if (PGTYPESnumeric_from_decimal(np, nres) != 0)
+ {
+ PGTYPESnumeric_free(nres);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ if (right >= 0)
+ str = PGTYPESnumeric_to_asc(nres, right);
+ else
+ str = PGTYPESnumeric_to_asc(nres, nres->dscale);
+
+ PGTYPESnumeric_free(nres);
+ if (!str)
+ return -1;
+
+ /*
+ * TODO: have to take care of len here and create exponential notation if
+ * necessary
+ */
+ if ((int) (strlen(str) + 1) > len)
+ {
+ if (len > 1)
+ {
+ cp[0] = '*';
+ cp[1] = '\0';
+ }
+ free(str);
+ return -1;
+ }
+ else
+ {
+ strcpy(cp, str);
+ free(str);
+ return 0;
+ }
+}
+
+int
+dectodbl(decimal *np, double *dblp)
+{
+ int i;
+ numeric *nres = PGTYPESnumeric_new();
+
+ if (nres == NULL)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ if (PGTYPESnumeric_from_decimal(np, nres) != 0)
+ {
+ PGTYPESnumeric_free(nres);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ i = PGTYPESnumeric_to_double(nres, dblp);
+ PGTYPESnumeric_free(nres);
+
+ return i;
+}
+
+int
+dectoint(decimal *np, int *ip)
+{
+ int ret;
+ numeric *nres = PGTYPESnumeric_new();
+
+ if (nres == NULL)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ if (PGTYPESnumeric_from_decimal(np, nres) != 0)
+ {
+ PGTYPESnumeric_free(nres);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ ret = PGTYPESnumeric_to_int(nres, ip);
+ PGTYPESnumeric_free(nres);
+
+ if (ret == PGTYPES_NUM_OVERFLOW)
+ ret = ECPG_INFORMIX_NUM_OVERFLOW;
+
+ return ret;
+}
+
+int
+dectolong(decimal *np, long *lngp)
+{
+ int ret;
+ numeric *nres = PGTYPESnumeric_new();
+
+ if (nres == NULL)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ if (PGTYPESnumeric_from_decimal(np, nres) != 0)
+ {
+ PGTYPESnumeric_free(nres);
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+ }
+
+ ret = PGTYPESnumeric_to_long(nres, lngp);
+ PGTYPESnumeric_free(nres);
+
+ if (ret == PGTYPES_NUM_OVERFLOW)
+ ret = ECPG_INFORMIX_NUM_OVERFLOW;
+
+ return ret;
+}
+
+/* Now the date functions */
+int
+rdatestr(date d, char *str)
+{
+ char *tmp = PGTYPESdate_to_asc(d);
+
+ if (!tmp)
+ return ECPG_INFORMIX_DATE_CONVERT;
+
+ /* move to user allocated buffer */
+ strcpy(str, tmp);
+ free(tmp);
+
+ return 0;
+}
+
+/*
+*
+* the input for this function is mmddyyyy and any non-numeric
+* character can be used as a separator
+*
+*/
+int
+rstrdate(const char *str, date * d)
+{
+ return rdefmtdate(d, "mm/dd/yyyy", str);
+}
+
+void
+rtoday(date * d)
+{
+ PGTYPESdate_today(d);
+}
+
+int
+rjulmdy(date d, short *mdy)
+{
+ int mdy_int[3];
+
+ PGTYPESdate_julmdy(d, mdy_int);
+ mdy[0] = (short) mdy_int[0];
+ mdy[1] = (short) mdy_int[1];
+ mdy[2] = (short) mdy_int[2];
+ return 0;
+}
+
+int
+rdefmtdate(date * d, const char *fmt, const char *str)
+{
+ /* TODO: take care of DBCENTURY environment variable */
+ /* PGSQL functions allow all centuries */
+
+ errno = 0;
+ if (PGTYPESdate_defmt_asc(d, fmt, str) == 0)
+ return 0;
+
+ switch (errno)
+ {
+ case PGTYPES_DATE_ERR_ENOSHORTDATE:
+ return ECPG_INFORMIX_ENOSHORTDATE;
+ case PGTYPES_DATE_ERR_EARGS:
+ case PGTYPES_DATE_ERR_ENOTDMY:
+ return ECPG_INFORMIX_ENOTDMY;
+ case PGTYPES_DATE_BAD_DAY:
+ return ECPG_INFORMIX_BAD_DAY;
+ case PGTYPES_DATE_BAD_MONTH:
+ return ECPG_INFORMIX_BAD_MONTH;
+ default:
+ return ECPG_INFORMIX_BAD_YEAR;
+ }
+}
+
+int
+rfmtdate(date d, const char *fmt, char *str)
+{
+ errno = 0;
+ if (PGTYPESdate_fmt_asc(d, fmt, str) == 0)
+ return 0;
+
+ if (errno == ENOMEM)
+ return ECPG_INFORMIX_OUT_OF_MEMORY;
+
+ return ECPG_INFORMIX_DATE_CONVERT;
+}
+
+int
+rmdyjul(short *mdy, date * d)
+{
+ int mdy_int[3];
+
+ mdy_int[0] = mdy[0];
+ mdy_int[1] = mdy[1];
+ mdy_int[2] = mdy[2];
+ PGTYPESdate_mdyjul(mdy_int, d);
+ return 0;
+}
+
+int
+rdayofweek(date d)
+{
+ return PGTYPESdate_dayofweek(d);
+}
+
+/* And the datetime stuff */
+
+void
+dtcurrent(timestamp * ts)
+{
+ PGTYPEStimestamp_current(ts);
+}
+
+int
+dtcvasc(char *str, timestamp * ts)
+{
+ timestamp ts_tmp;
+ int i;
+ char **endptr = &str;
+
+ errno = 0;
+ ts_tmp = PGTYPEStimestamp_from_asc(str, endptr);
+ i = errno;
+ if (i)
+ /* TODO: rewrite to Informix error codes */
+ return i;
+ if (**endptr)
+ {
+ /* extra characters exist at the end */
+ return ECPG_INFORMIX_EXTRA_CHARS;
+ }
+ /* TODO: other Informix error codes missing */
+
+ /* everything went fine */
+ *ts = ts_tmp;
+
+ return 0;
+}
+
+int
+dtcvfmtasc(char *inbuf, char *fmtstr, timestamp * dtvalue)
+{
+ return PGTYPEStimestamp_defmt_asc(inbuf, fmtstr, dtvalue);
+}
+
+int
+dtsub(timestamp * ts1, timestamp * ts2, interval * iv)
+{
+ return PGTYPEStimestamp_sub(ts1, ts2, iv);
+}
+
+int
+dttoasc(timestamp * ts, char *output)
+{
+ char *asctime = PGTYPEStimestamp_to_asc(*ts);
+
+ strcpy(output, asctime);
+ free(asctime);
+ return 0;
+}
+
+int
+dttofmtasc(timestamp * ts, char *output, int str_len, char *fmtstr)
+{
+ return PGTYPEStimestamp_fmt_asc(ts, output, str_len, fmtstr);
+}
+
+int
+intoasc(interval * i, char *str)
+{
+ char *tmp;
+
+ errno = 0;
+ tmp = PGTYPESinterval_to_asc(i);
+
+ if (!tmp)
+ return -errno;
+
+ memcpy(str, tmp, strlen(tmp));
+ free(tmp);
+ return 0;
+}
+
+static struct
+{
+ long val;
+ int maxdigits;
+ int digits;
+ int remaining;
+ char sign;
+ char *val_string;
+} value;
+
+/**
+ * initialize the struct, which holds the different forms
+ * of the long value
+ */
+static int
+initValue(long lng_val)
+{
+ int i,
+ j;
+ long l,
+ dig;
+
+ /* set some obvious things */
+ value.val = lng_val >= 0 ? lng_val : lng_val * (-1);
+ value.sign = lng_val >= 0 ? '+' : '-';
+ value.maxdigits = log10(2) * (8 * sizeof(long) - 1);
+
+ /* determine the number of digits */
+ i = 0;
+ l = 1;
+ do
+ {
+ i++;
+ l *= 10;
+ }
+ while ((l - 1) < value.val && l <= LONG_MAX / 10);
+
+ if (l <= LONG_MAX / 10)
+ {
+ value.digits = i;
+ l /= 10;
+ }
+ else
+ value.digits = i + 1;
+
+ value.remaining = value.digits;
+
+ /* convert the long to string */
+ if ((value.val_string = (char *) malloc(value.digits + 1)) == NULL)
+ return -1;
+ dig = value.val;
+ for (i = value.digits, j = 0; i > 0; i--, j++)
+ {
+ value.val_string[j] = dig / l + '0';
+ dig = dig % l;
+ l /= 10;
+ }
+ value.val_string[value.digits] = '\0';
+ return 0;
+}
+
+/* return the position of the right-most dot in some string */
+static int
+getRightMostDot(const char *str)
+{
+ size_t len = strlen(str);
+ int i,
+ j;
+
+ j = 0;
+ for (i = len - 1; i >= 0; i--)
+ {
+ if (str[i] == '.')
+ return len - j - 1;
+ j++;
+ }
+ return -1;
+}
+
+/* And finally some misc functions */
+int
+rfmtlong(long lng_val, const char *fmt, char *outbuf)
+{
+ size_t fmt_len = strlen(fmt);
+ size_t temp_len;
+ int i,
+ j, /* position in temp */
+ k,
+ dotpos;
+ int leftalign = 0,
+ blank = 0,
+ sign = 0,
+ entitydone = 0,
+ signdone = 0,
+ brackets_ok = 0;
+ char *temp;
+ char tmp[2] = " ";
+ char lastfmt = ' ',
+ fmtchar = ' ';
+
+ temp = (char *) malloc(fmt_len + 1);
+ if (!temp)
+ {
+ errno = ENOMEM;
+ return -1;
+ }
+
+ /* put all info about the long in a struct */
+ if (initValue(lng_val) == -1)
+ {
+ free(temp);
+ errno = ENOMEM;
+ return -1;
+ }
+
+ /* '<' is the only format, where we have to align left */
+ if (strchr(fmt, (int) '<'))
+ leftalign = 1;
+
+ /* '(' requires ')' */
+ if (strchr(fmt, (int) '(') && strchr(fmt, (int) ')'))
+ brackets_ok = 1;
+
+ /* get position of the right-most dot in the format-string */
+ /* and fill the temp-string wit '0's up to there. */
+ dotpos = getRightMostDot(fmt);
+
+ /* start to parse the format-string */
+ temp[0] = '\0';
+ k = value.digits - 1; /* position in the value_string */
+ for (i = fmt_len - 1, j = 0; i >= 0; i--, j++)
+ {
+ /* qualify, where we are in the value_string */
+ if (k < 0)
+ {
+ blank = 1;
+ if (k == -1)
+ sign = 1;
+ if (leftalign)
+ {
+ /* can't use strncat(,,0) here, Solaris would freak out */
+ if (sign)
+ if (signdone)
+ {
+ temp[j] = '\0';
+ break;
+ }
+ }
+ }
+ /* if we're right side of the right-most dot, print '0' */
+ if (dotpos >= 0 && dotpos <= i)
+ {
+ if (dotpos < i)
+ {
+ if (fmt[i] == ')')
+ tmp[0] = value.sign == '-' ? ')' : ' ';
+ else
+ tmp[0] = '0';
+ }
+ else
+ tmp[0] = '.';
+ strcat(temp, tmp);
+ continue;
+ }
+ /* the ',' needs special attention, if it is in the blank area */
+ if (blank && fmt[i] == ',')
+ fmtchar = lastfmt;
+ else
+ fmtchar = fmt[i];
+ /* waiting for the sign */
+ if (k < 0 && leftalign && sign && !signdone && fmtchar != '+' && fmtchar != '-')
+ continue;
+ /* analyse this format-char */
+ switch (fmtchar)
+ {
+ case ',':
+ tmp[0] = ',';
+ k++;
+ break;
+ case '*':
+ if (blank)
+ tmp[0] = '*';
+ else
+ tmp[0] = value.val_string[k];
+ break;
+ case '&':
+ if (blank)
+ tmp[0] = '0';
+ else
+ tmp[0] = value.val_string[k];
+ break;
+ case '#':
+ if (blank)
+ tmp[0] = ' ';
+ else
+ tmp[0] = value.val_string[k];
+ break;
+ case '-':
+ if (sign && value.sign == '-' && !signdone)
+ {
+ tmp[0] = '-';
+ signdone = 1;
+ }
+ else if (blank)
+ tmp[0] = ' ';
+ else
+ tmp[0] = value.val_string[k];
+ break;
+ case '+':
+ if (sign && !signdone)
+ {
+ tmp[0] = value.sign;
+ signdone = 1;
+ }
+ else if (blank)
+ tmp[0] = ' ';
+ else
+ tmp[0] = value.val_string[k];
+ break;
+ case '(':
+ if (sign && brackets_ok && value.sign == '-')
+ tmp[0] = '(';
+ else if (blank)
+ tmp[0] = ' ';
+ else
+ tmp[0] = value.val_string[k];
+ break;
+ case ')':
+ if (brackets_ok && value.sign == '-')
+ tmp[0] = ')';
+ else
+ tmp[0] = ' ';
+ break;
+ case '$':
+ if (blank && !entitydone)
+ {
+ tmp[0] = '$';
+ entitydone = 1;
+ }
+ else if (blank)
+ tmp[0] = ' ';
+ else
+ tmp[0] = value.val_string[k];
+ break;
+ case '<':
+ tmp[0] = value.val_string[k];
+ break;
+ default:
+ tmp[0] = fmt[i];
+ }
+ strcat(temp, tmp);
+ lastfmt = fmt[i];
+ k--;
+ }
+ /* safety-net */
+ temp[fmt_len] = '\0';
+
+ /* reverse the temp-string and put it into the outbuf */
+ temp_len = strlen(temp);
+ outbuf[0] = '\0';
+ for (i = temp_len - 1; i >= 0; i--)
+ {
+ tmp[0] = temp[i];
+ strcat(outbuf, tmp);
+ }
+ outbuf[temp_len] = '\0';
+
+ /* cleaning up */
+ free(temp);
+ free(value.val_string);
+
+ return 0;
+}
+
+void
+rupshift(char *str)
+{
+ for (; *str != '\0'; str++)
+ if (islower((unsigned char) *str))
+ *str = toupper((unsigned char) *str);
+}
+
+int
+byleng(char *str, int len)
+{
+ for (len--; str[len] && str[len] == ' '; len--);
+ return (len + 1);
+}
+
+void
+ldchar(char *src, int len, char *dest)
+{
+ int dlen = byleng(src, len);
+
+ memmove(dest, src, dlen);
+ dest[dlen] = '\0';
+}
+
+int
+rgetmsg(int msgnum, char *s, int maxsize)
+{
+ (void) msgnum; /* keep the compiler quiet */
+ (void) s; /* keep the compiler quiet */
+ (void) maxsize; /* keep the compiler quiet */
+ return 0;
+}
+
+int
+rtypalign(int offset, int type)
+{
+ (void) offset; /* keep the compiler quiet */
+ (void) type; /* keep the compiler quiet */
+ return 0;
+}
+
+int
+rtypmsize(int type, int len)
+{
+ (void) type; /* keep the compiler quiet */
+ (void) len; /* keep the compiler quiet */
+ return 0;
+}
+
+int
+rtypwidth(int sqltype, int sqllen)
+{
+ (void) sqltype; /* keep the compiler quiet */
+ (void) sqllen; /* keep the compiler quiet */
+ return 0;
+}
+
+void
+ECPG_informix_set_var(int number, void *pointer, int lineno)
+{
+ ECPGset_var(number, pointer, lineno);
+}
+
+void *
+ECPG_informix_get_var(int number)
+{
+ return ECPGget_var(number);
+}
+
+void
+ECPG_informix_reset_sqlca(void)
+{
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ return;
+
+ memcpy((char *) sqlca, (char *) &sqlca_init, sizeof(struct sqlca_t));
+}
+
+int
+rsetnull(int t, char *ptr)
+{
+ ECPGset_noind_null(t, ptr);
+ return 0;
+}
+
+int
+risnull(int t, const char *ptr)
+{
+ return ECPGis_noind_null(t, ptr);
+}
diff --git a/src/interfaces/ecpg/ecpglib/.gitignore b/src/interfaces/ecpg/ecpglib/.gitignore
new file mode 100644
index 0000000..f2bf3e7
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/.gitignore
@@ -0,0 +1,3 @@
+/ecpglib.def
+/blibecpgdll.def
+/exports.list
diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile
new file mode 100644
index 0000000..b00229f
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/Makefile
@@ -0,0 +1,70 @@
+#-------------------------------------------------------------------------
+#
+# Makefile for ecpg library
+#
+# Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+# Portions Copyright (c) 1994, Regents of the University of California
+#
+# src/interfaces/ecpg/ecpglib/Makefile
+#
+#-------------------------------------------------------------------------
+
+subdir = src/interfaces/ecpg/ecpglib
+top_builddir = ../../../..
+include $(top_builddir)/src/Makefile.global
+
+PGFILEDESC = "ECPG - embedded SQL in C"
+NAME= ecpg
+SO_MAJOR_VERSION= 6
+SO_MINOR_VERSION= $(MAJORVERSION)
+
+override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
+ -I$(libpq_srcdir) -I$(top_builddir)/src/port -DFRONTEND $(CPPFLAGS)
+override CFLAGS += $(PTHREAD_CFLAGS)
+
+OBJS = \
+ $(WIN32RES) \
+ connect.o \
+ data.o \
+ descriptor.o \
+ error.o \
+ execute.o \
+ memory.o \
+ misc.o \
+ prepare.o \
+ sqlda.o \
+ typename.o
+
+SHLIB_LINK_INTERNAL = -L../pgtypeslib -lpgtypes $(libpq_pgport_shlib)
+SHLIB_LINK = $(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
+SHLIB_PREREQS = submake-libpq submake-pgtypeslib
+
+SHLIB_EXPORTS = exports.txt
+
+PKG_CONFIG_REQUIRES_PRIVATE = libpq libpgtypes
+
+all: all-lib
+
+.PHONY: submake-pgtypeslib
+submake-pgtypeslib:
+ $(MAKE) -C $(top_builddir)/src/interfaces/ecpg/pgtypeslib all
+
+# Shared library stuff
+include $(top_srcdir)/src/Makefile.shlib
+
+# Make dependency on pg_config_paths.h visible.
+misc.o: misc.c $(top_builddir)/src/port/pg_config_paths.h
+
+$(top_builddir)/src/port/pg_config_paths.h:
+ $(MAKE) -C $(top_builddir)/src/port pg_config_paths.h
+
+install: all installdirs install-lib
+
+installdirs: installdirs-lib
+
+uninstall: uninstall-lib
+
+clean distclean: clean-lib
+ rm -f $(OBJS)
+
+maintainer-clean: distclean
diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c
new file mode 100644
index 0000000..db0bae1
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/connect.c
@@ -0,0 +1,766 @@
+/* src/interfaces/ecpg/ecpglib/connect.c */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include "ecpg-pthread-win32.h"
+#include "ecpgerrno.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+#include "sqlca.h"
+
+#ifdef HAVE_USELOCALE
+locale_t ecpg_clocale = (locale_t) 0;
+#endif
+
+#ifdef ENABLE_THREAD_SAFETY
+static pthread_mutex_t connections_mutex = PTHREAD_MUTEX_INITIALIZER;
+static pthread_key_t actual_connection_key;
+static pthread_once_t actual_connection_key_once = PTHREAD_ONCE_INIT;
+#endif
+static struct connection *actual_connection = NULL;
+static struct connection *all_connections = NULL;
+
+#ifdef ENABLE_THREAD_SAFETY
+static void
+ecpg_actual_connection_init(void)
+{
+ pthread_key_create(&actual_connection_key, NULL);
+}
+
+void
+ecpg_pthreads_init(void)
+{
+ pthread_once(&actual_connection_key_once, ecpg_actual_connection_init);
+}
+#endif
+
+static struct connection *
+ecpg_get_connection_nr(const char *connection_name)
+{
+ struct connection *ret = NULL;
+
+ if ((connection_name == NULL) || (strcmp(connection_name, "CURRENT") == 0))
+ {
+#ifdef ENABLE_THREAD_SAFETY
+ ecpg_pthreads_init(); /* ensure actual_connection_key is valid */
+
+ ret = pthread_getspecific(actual_connection_key);
+
+ /*
+ * if no connection in TSD for this thread, get the global default
+ * connection and hope the user knows what they're doing (i.e. using
+ * their own mutex to protect that connection from concurrent accesses
+ */
+ if (ret == NULL)
+ /* no TSD connection, going for global */
+ ret = actual_connection;
+#else
+ ret = actual_connection;
+#endif
+ }
+ else
+ {
+ struct connection *con;
+
+ for (con = all_connections; con != NULL; con = con->next)
+ {
+ if (strcmp(connection_name, con->name) == 0)
+ break;
+ }
+ ret = con;
+ }
+
+ return ret;
+}
+
+struct connection *
+ecpg_get_connection(const char *connection_name)
+{
+ struct connection *ret = NULL;
+
+ if ((connection_name == NULL) || (strcmp(connection_name, "CURRENT") == 0))
+ {
+#ifdef ENABLE_THREAD_SAFETY
+ ecpg_pthreads_init(); /* ensure actual_connection_key is valid */
+
+ ret = pthread_getspecific(actual_connection_key);
+
+ /*
+ * if no connection in TSD for this thread, get the global default
+ * connection and hope the user knows what they're doing (i.e. using
+ * their own mutex to protect that connection from concurrent accesses
+ */
+ if (ret == NULL)
+ /* no TSD connection here either, using global */
+ ret = actual_connection;
+#else
+ ret = actual_connection;
+#endif
+ }
+ else
+ {
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_lock(&connections_mutex);
+#endif
+
+ ret = ecpg_get_connection_nr(connection_name);
+
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_unlock(&connections_mutex);
+#endif
+ }
+
+ return ret;
+}
+
+static void
+ecpg_finish(struct connection *act)
+{
+ if (act != NULL)
+ {
+ struct ECPGtype_information_cache *cache,
+ *ptr;
+
+ ecpg_deallocate_all_conn(0, ECPG_COMPAT_PGSQL, act);
+ PQfinish(act->connection);
+
+ /*
+ * no need to lock connections_mutex - we're always called by
+ * ECPGdisconnect or ECPGconnect, which are holding the lock
+ */
+
+ /* remove act from the list */
+ if (act == all_connections)
+ all_connections = act->next;
+ else
+ {
+ struct connection *con;
+
+ for (con = all_connections; con->next && con->next != act; con = con->next);
+ if (con->next)
+ con->next = act->next;
+ }
+
+#ifdef ENABLE_THREAD_SAFETY
+ if (pthread_getspecific(actual_connection_key) == act)
+ pthread_setspecific(actual_connection_key, all_connections);
+#endif
+ if (actual_connection == act)
+ actual_connection = all_connections;
+
+ ecpg_log("ecpg_finish: connection %s closed\n", act->name ? act->name : "(null)");
+
+ for (cache = act->cache_head; cache; ptr = cache, cache = cache->next, ecpg_free(ptr));
+ ecpg_free(act->name);
+ ecpg_free(act);
+ /* delete cursor variables when last connection gets closed */
+ if (all_connections == NULL)
+ {
+ struct var_list *iv_ptr;
+
+ for (; ivlist; iv_ptr = ivlist, ivlist = ivlist->next, ecpg_free(iv_ptr));
+ }
+ }
+ else
+ ecpg_log("ecpg_finish: called an extra time\n");
+}
+
+bool
+ECPGsetcommit(int lineno, const char *mode, const char *connection_name)
+{
+ struct connection *con = ecpg_get_connection(connection_name);
+ PGresult *results;
+
+ if (!ecpg_init(con, connection_name, lineno))
+ return false;
+
+ ecpg_log("ECPGsetcommit on line %d: action \"%s\"; connection \"%s\"\n", lineno, mode, con->name);
+
+ if (con->autocommit && strncmp(mode, "off", strlen("off")) == 0)
+ {
+ if (PQtransactionStatus(con->connection) == PQTRANS_IDLE)
+ {
+ results = PQexec(con->connection, "begin transaction");
+ if (!ecpg_check_PQresult(results, lineno, con->connection, ECPG_COMPAT_PGSQL))
+ return false;
+ PQclear(results);
+ }
+ con->autocommit = false;
+ }
+ else if (!con->autocommit && strncmp(mode, "on", strlen("on")) == 0)
+ {
+ if (PQtransactionStatus(con->connection) != PQTRANS_IDLE)
+ {
+ results = PQexec(con->connection, "commit");
+ if (!ecpg_check_PQresult(results, lineno, con->connection, ECPG_COMPAT_PGSQL))
+ return false;
+ PQclear(results);
+ }
+ con->autocommit = true;
+ }
+
+ return true;
+}
+
+bool
+ECPGsetconn(int lineno, const char *connection_name)
+{
+ struct connection *con = ecpg_get_connection(connection_name);
+
+ if (!ecpg_init(con, connection_name, lineno))
+ return false;
+
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_setspecific(actual_connection_key, con);
+#else
+ actual_connection = con;
+#endif
+ return true;
+}
+
+
+static void
+ECPGnoticeReceiver(void *arg, const PGresult *result)
+{
+ char *sqlstate = PQresultErrorField(result, PG_DIAG_SQLSTATE);
+ char *message = PQresultErrorField(result, PG_DIAG_MESSAGE_PRIMARY);
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+ int sqlcode;
+
+ if (sqlca == NULL)
+ {
+ ecpg_log("out of memory");
+ return;
+ }
+
+ (void) arg; /* keep the compiler quiet */
+ if (sqlstate == NULL)
+ sqlstate = ECPG_SQLSTATE_ECPG_INTERNAL_ERROR;
+
+ if (message == NULL) /* Shouldn't happen, but need to be sure */
+ message = ecpg_gettext("empty message text");
+
+ /* these are not warnings */
+ if (strncmp(sqlstate, "00", 2) == 0)
+ return;
+
+ ecpg_log("ECPGnoticeReceiver: %s\n", message);
+
+ /* map to SQLCODE for backward compatibility */
+ if (strcmp(sqlstate, ECPG_SQLSTATE_INVALID_CURSOR_NAME) == 0)
+ sqlcode = ECPG_WARNING_UNKNOWN_PORTAL;
+ else if (strcmp(sqlstate, ECPG_SQLSTATE_ACTIVE_SQL_TRANSACTION) == 0)
+ sqlcode = ECPG_WARNING_IN_TRANSACTION;
+ else if (strcmp(sqlstate, ECPG_SQLSTATE_NO_ACTIVE_SQL_TRANSACTION) == 0)
+ sqlcode = ECPG_WARNING_NO_TRANSACTION;
+ else if (strcmp(sqlstate, ECPG_SQLSTATE_DUPLICATE_CURSOR) == 0)
+ sqlcode = ECPG_WARNING_PORTAL_EXISTS;
+ else
+ sqlcode = 0;
+
+ strncpy(sqlca->sqlstate, sqlstate, sizeof(sqlca->sqlstate));
+ sqlca->sqlcode = sqlcode;
+ sqlca->sqlwarn[2] = 'W';
+ sqlca->sqlwarn[0] = 'W';
+
+ strncpy(sqlca->sqlerrm.sqlerrmc, message, sizeof(sqlca->sqlerrm.sqlerrmc));
+ sqlca->sqlerrm.sqlerrmc[sizeof(sqlca->sqlerrm.sqlerrmc) - 1] = 0;
+ sqlca->sqlerrm.sqlerrml = strlen(sqlca->sqlerrm.sqlerrmc);
+
+ ecpg_log("raising sqlcode %d\n", sqlcode);
+}
+
+/* this contains some quick hacks, needs to be cleaned up, but it works */
+bool
+ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
+{
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+ enum COMPAT_MODE compat = c;
+ struct connection *this;
+ int i,
+ connect_params = 0;
+ char *dbname = name ? ecpg_strdup(name, lineno) : NULL,
+ *host = NULL,
+ *tmp,
+ *port = NULL,
+ *realname = NULL,
+ *options = NULL;
+ const char **conn_keywords;
+ const char **conn_values;
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ ecpg_free(dbname);
+ return false;
+ }
+
+ ecpg_init_sqlca(sqlca);
+
+ /*
+ * clear auto_mem structure because some error handling functions might
+ * access it
+ */
+ ecpg_clear_auto_mem();
+
+ if (INFORMIX_MODE(compat))
+ {
+ char *envname;
+
+ /*
+ * Informix uses an environment variable DBPATH that overrides the
+ * connection parameters given here. We do the same with PG_DBPATH as
+ * the syntax is different.
+ */
+ envname = getenv("PG_DBPATH");
+ if (envname)
+ {
+ ecpg_free(dbname);
+ dbname = ecpg_strdup(envname, lineno);
+ }
+ }
+
+ if (dbname == NULL && connection_name == NULL)
+ connection_name = "DEFAULT";
+
+#if ENABLE_THREAD_SAFETY
+ ecpg_pthreads_init();
+#endif
+
+ /* check if the identifier is unique */
+ if (ecpg_get_connection(connection_name))
+ {
+ ecpg_free(dbname);
+ ecpg_log("ECPGconnect: connection identifier %s is already in use\n",
+ connection_name);
+ return false;
+ }
+
+ if ((this = (struct connection *) ecpg_alloc(sizeof(struct connection), lineno)) == NULL)
+ {
+ ecpg_free(dbname);
+ return false;
+ }
+
+ if (dbname != NULL)
+ {
+ /* get the detail information from dbname */
+ if (strncmp(dbname, "tcp:", 4) == 0 || strncmp(dbname, "unix:", 5) == 0)
+ {
+ int offset = 0;
+
+ /*
+ * only allow protocols tcp and unix
+ */
+ if (strncmp(dbname, "tcp:", 4) == 0)
+ offset = 4;
+ else if (strncmp(dbname, "unix:", 5) == 0)
+ offset = 5;
+
+ if (strncmp(dbname + offset, "postgresql://", strlen("postgresql://")) == 0)
+ {
+
+ /*------
+ * new style:
+ * <tcp|unix>:postgresql://server[:port][/db-name][?options]
+ *------
+ */
+ offset += strlen("postgresql://");
+
+ tmp = strrchr(dbname + offset, '?');
+ if (tmp != NULL) /* options given */
+ {
+ options = ecpg_strdup(tmp + 1, lineno);
+ *tmp = '\0';
+ }
+
+ tmp = last_dir_separator(dbname + offset);
+ if (tmp != NULL) /* database name given */
+ {
+ if (tmp[1] != '\0') /* non-empty database name */
+ {
+ realname = ecpg_strdup(tmp + 1, lineno);
+ connect_params++;
+ }
+ *tmp = '\0';
+ }
+
+ tmp = strrchr(dbname + offset, ':');
+ if (tmp != NULL) /* port number given */
+ {
+ *tmp = '\0';
+ port = ecpg_strdup(tmp + 1, lineno);
+ connect_params++;
+ }
+
+ if (strncmp(dbname, "unix:", 5) == 0)
+ {
+ /*
+ * The alternative of using "127.0.0.1" here is deprecated
+ * and undocumented; we'll keep it for backward
+ * compatibility's sake, but not extend it to allow IPv6.
+ */
+ if (strcmp(dbname + offset, "localhost") != 0 &&
+ strcmp(dbname + offset, "127.0.0.1") != 0)
+ {
+ ecpg_log("ECPGconnect: non-localhost access via sockets on line %d\n", lineno);
+ ecpg_raise(lineno, ECPG_CONNECT, ECPG_SQLSTATE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION, realname ? realname : ecpg_gettext("<DEFAULT>"));
+ if (host)
+ ecpg_free(host);
+ if (port)
+ ecpg_free(port);
+ if (options)
+ ecpg_free(options);
+ if (realname)
+ ecpg_free(realname);
+ if (dbname)
+ ecpg_free(dbname);
+ free(this);
+ return false;
+ }
+ }
+ else
+ {
+ if (*(dbname + offset) != '\0')
+ {
+ host = ecpg_strdup(dbname + offset, lineno);
+ connect_params++;
+ }
+ }
+ }
+ }
+ else
+ {
+ /* old style: dbname[@server][:port] */
+ tmp = strrchr(dbname, ':');
+ if (tmp != NULL) /* port number given */
+ {
+ port = ecpg_strdup(tmp + 1, lineno);
+ connect_params++;
+ *tmp = '\0';
+ }
+
+ tmp = strrchr(dbname, '@');
+ if (tmp != NULL) /* host name given */
+ {
+ host = ecpg_strdup(tmp + 1, lineno);
+ connect_params++;
+ *tmp = '\0';
+ }
+
+ if (strlen(dbname) > 0)
+ {
+ realname = ecpg_strdup(dbname, lineno);
+ connect_params++;
+ }
+ else
+ realname = NULL;
+ }
+ }
+ else
+ realname = NULL;
+
+ /*
+ * Count options for the allocation done below (this may produce an
+ * overestimate, it's ok).
+ */
+ if (options)
+ for (i = 0; options[i]; i++)
+ if (options[i] == '=')
+ connect_params++;
+
+ if (user && strlen(user) > 0)
+ connect_params++;
+ if (passwd && strlen(passwd) > 0)
+ connect_params++;
+
+ /*
+ * Allocate enough space for all connection parameters. These allocations
+ * are done before manipulating the list of connections to ease the error
+ * handling on failure.
+ */
+ conn_keywords = (const char **) ecpg_alloc((connect_params + 1) * sizeof(char *), lineno);
+ conn_values = (const char **) ecpg_alloc(connect_params * sizeof(char *), lineno);
+ if (conn_keywords == NULL || conn_values == NULL)
+ {
+ if (host)
+ ecpg_free(host);
+ if (port)
+ ecpg_free(port);
+ if (options)
+ ecpg_free(options);
+ if (realname)
+ ecpg_free(realname);
+ if (dbname)
+ ecpg_free(dbname);
+ if (conn_keywords)
+ ecpg_free(conn_keywords);
+ if (conn_values)
+ ecpg_free(conn_values);
+ free(this);
+ return false;
+ }
+
+ /* add connection to our list */
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_lock(&connections_mutex);
+#endif
+
+ /*
+ * ... but first, make certain we have created ecpg_clocale. Rely on
+ * holding connections_mutex to ensure this is done by only one thread.
+ */
+#ifdef HAVE_USELOCALE
+ if (!ecpg_clocale)
+ {
+ ecpg_clocale = newlocale(LC_NUMERIC_MASK, "C", (locale_t) 0);
+ if (!ecpg_clocale)
+ {
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_unlock(&connections_mutex);
+#endif
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ if (host)
+ ecpg_free(host);
+ if (port)
+ ecpg_free(port);
+ if (options)
+ ecpg_free(options);
+ if (realname)
+ ecpg_free(realname);
+ if (dbname)
+ ecpg_free(dbname);
+ if (conn_keywords)
+ ecpg_free(conn_keywords);
+ if (conn_values)
+ ecpg_free(conn_values);
+ free(this);
+ return false;
+ }
+ }
+#endif
+
+ if (connection_name != NULL)
+ this->name = ecpg_strdup(connection_name, lineno);
+ else
+ this->name = ecpg_strdup(realname, lineno);
+
+ this->cache_head = NULL;
+ this->prep_stmts = NULL;
+
+ if (all_connections == NULL)
+ this->next = NULL;
+ else
+ this->next = all_connections;
+
+ all_connections = this;
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_setspecific(actual_connection_key, all_connections);
+#endif
+ actual_connection = all_connections;
+
+ ecpg_log("ECPGconnect: opening database %s on %s port %s %s%s %s%s\n",
+ realname ? realname : "<DEFAULT>",
+ host ? host : "<DEFAULT>",
+ port ? (ecpg_internal_regression_mode ? "<REGRESSION_PORT>" : port) : "<DEFAULT>",
+ options ? "with options " : "", options ? options : "",
+ (user && strlen(user) > 0) ? "for user " : "", user ? user : "");
+
+ i = 0;
+ if (realname)
+ {
+ conn_keywords[i] = "dbname";
+ conn_values[i] = realname;
+ i++;
+ }
+ if (host)
+ {
+ conn_keywords[i] = "host";
+ conn_values[i] = host;
+ i++;
+ }
+ if (port)
+ {
+ conn_keywords[i] = "port";
+ conn_values[i] = port;
+ i++;
+ }
+ if (user && strlen(user) > 0)
+ {
+ conn_keywords[i] = "user";
+ conn_values[i] = user;
+ i++;
+ }
+ if (passwd && strlen(passwd) > 0)
+ {
+ conn_keywords[i] = "password";
+ conn_values[i] = passwd;
+ i++;
+ }
+ if (options)
+ {
+ char *str;
+
+ /*
+ * The options string contains "keyword=value" pairs separated by
+ * '&'s. We must break this up into keywords and values to pass to
+ * libpq (it's okay to scribble on the options string). We ignore
+ * spaces just before each keyword or value.
+ */
+ for (str = options; *str;)
+ {
+ int e,
+ a;
+ char *token1,
+ *token2;
+
+ /* Skip spaces before keyword */
+ for (token1 = str; *token1 == ' '; token1++)
+ /* skip */ ;
+ /* Find end of keyword */
+ for (e = 0; token1[e] && token1[e] != '='; e++)
+ /* skip */ ;
+ if (token1[e]) /* found "=" */
+ {
+ token1[e] = '\0';
+ /* Skip spaces before value */
+ for (token2 = token1 + e + 1; *token2 == ' '; token2++)
+ /* skip */ ;
+ /* Find end of value */
+ for (a = 0; token2[a] && token2[a] != '&'; a++)
+ /* skip */ ;
+ if (token2[a]) /* found "&" => another option follows */
+ {
+ token2[a] = '\0';
+ str = token2 + a + 1;
+ }
+ else
+ str = token2 + a;
+
+ conn_keywords[i] = token1;
+ conn_values[i] = token2;
+ i++;
+ }
+ else
+ {
+ /* Bogus options syntax ... ignore trailing garbage */
+ str = token1 + e;
+ }
+ }
+ }
+
+ Assert(i <= connect_params);
+ conn_keywords[i] = NULL; /* terminator */
+
+ this->connection = PQconnectdbParams(conn_keywords, conn_values, 0);
+
+ if (host)
+ ecpg_free(host);
+ if (port)
+ ecpg_free(port);
+ if (options)
+ ecpg_free(options);
+ if (dbname)
+ ecpg_free(dbname);
+ ecpg_free(conn_values);
+ ecpg_free(conn_keywords);
+
+ if (PQstatus(this->connection) == CONNECTION_BAD)
+ {
+ const char *errmsg = PQerrorMessage(this->connection);
+ const char *db = realname ? realname : ecpg_gettext("<DEFAULT>");
+
+ /* PQerrorMessage's result already has a trailing newline */
+ ecpg_log("ECPGconnect: %s", errmsg);
+
+ ecpg_finish(this);
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_unlock(&connections_mutex);
+#endif
+
+ ecpg_raise(lineno, ECPG_CONNECT, ECPG_SQLSTATE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION, db);
+ if (realname)
+ ecpg_free(realname);
+
+ return false;
+ }
+
+ if (realname)
+ ecpg_free(realname);
+
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_unlock(&connections_mutex);
+#endif
+
+ this->autocommit = autocommit;
+
+ PQsetNoticeReceiver(this->connection, &ECPGnoticeReceiver, (void *) this);
+
+ return true;
+}
+
+bool
+ECPGdisconnect(int lineno, const char *connection_name)
+{
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+ struct connection *con;
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_lock(&connections_mutex);
+#endif
+
+ if (strcmp(connection_name, "ALL") == 0)
+ {
+ ecpg_init_sqlca(sqlca);
+ for (con = all_connections; con;)
+ {
+ struct connection *f = con;
+
+ con = con->next;
+ ecpg_finish(f);
+ }
+ }
+ else
+ {
+ con = ecpg_get_connection_nr(connection_name);
+
+ if (!ecpg_init(con, connection_name, lineno))
+ {
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_unlock(&connections_mutex);
+#endif
+ return false;
+ }
+ else
+ ecpg_finish(con);
+ }
+
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_unlock(&connections_mutex);
+#endif
+
+ return true;
+}
+
+PGconn *
+ECPGget_PGconn(const char *connection_name)
+{
+ struct connection *con;
+
+ con = ecpg_get_connection(connection_name);
+ if (con == NULL)
+ return NULL;
+
+ return con->connection;
+}
diff --git a/src/interfaces/ecpg/ecpglib/data.c b/src/interfaces/ecpg/ecpglib/data.c
new file mode 100644
index 0000000..40cbfc0
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/data.c
@@ -0,0 +1,976 @@
+/* src/interfaces/ecpg/ecpglib/data.c */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include <math.h>
+
+#include "ecpgerrno.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+#include "pgtypes_date.h"
+#include "pgtypes_interval.h"
+#include "pgtypes_numeric.h"
+#include "pgtypes_timestamp.h"
+#include "sqlca.h"
+
+/* returns true if character c is a delimiter for the given array type */
+static bool
+array_delimiter(enum ARRAY_TYPE isarray, char c)
+{
+ if (isarray == ECPG_ARRAY_ARRAY && c == ',')
+ return true;
+
+ if (isarray == ECPG_ARRAY_VECTOR && c == ' ')
+ return true;
+
+ return false;
+}
+
+/* returns true if character c marks the boundary for the given array type */
+static bool
+array_boundary(enum ARRAY_TYPE isarray, char c)
+{
+ if (isarray == ECPG_ARRAY_ARRAY && c == '}')
+ return true;
+
+ if (isarray == ECPG_ARRAY_VECTOR && c == '\0')
+ return true;
+
+ return false;
+}
+
+/* returns true if some garbage is found at the end of the scanned string */
+static bool
+garbage_left(enum ARRAY_TYPE isarray, char **scan_length, enum COMPAT_MODE compat)
+{
+ /*
+ * INFORMIX allows for selecting a numeric into an int, the result is
+ * truncated
+ */
+ if (isarray == ECPG_ARRAY_NONE)
+ {
+ if (INFORMIX_MODE(compat) && **scan_length == '.')
+ {
+ /* skip invalid characters */
+ do
+ {
+ (*scan_length)++;
+ } while (isdigit((unsigned char) **scan_length));
+ }
+
+ if (**scan_length != ' ' && **scan_length != '\0')
+ return true;
+ }
+ else if (ECPG_IS_ARRAY(isarray) && !array_delimiter(isarray, **scan_length) && !array_boundary(isarray, **scan_length))
+ return true;
+
+ return false;
+}
+
+/* stolen code from src/backend/utils/adt/float.c */
+#if defined(WIN32) && !defined(NAN)
+static const uint32 nan[2] = {0xffffffff, 0x7fffffff};
+
+#define NAN (*(const double *) nan)
+#endif
+
+static double
+get_float8_infinity(void)
+{
+#ifdef INFINITY
+ return (double) INFINITY;
+#else
+ return (double) (HUGE_VAL * HUGE_VAL);
+#endif
+}
+
+static double
+get_float8_nan(void)
+{
+ /* (double) NAN doesn't work on some NetBSD/MIPS releases */
+#if defined(NAN) && !(defined(__NetBSD__) && defined(__mips__))
+ return (double) NAN;
+#else
+ return (double) (0.0 / 0.0);
+#endif
+}
+
+static bool
+check_special_value(char *ptr, double *retval, char **endptr)
+{
+ if (pg_strncasecmp(ptr, "NaN", 3) == 0)
+ {
+ *retval = get_float8_nan();
+ *endptr = ptr + 3;
+ return true;
+ }
+ else if (pg_strncasecmp(ptr, "Infinity", 8) == 0)
+ {
+ *retval = get_float8_infinity();
+ *endptr = ptr + 8;
+ return true;
+ }
+ else if (pg_strncasecmp(ptr, "-Infinity", 9) == 0)
+ {
+ *retval = -get_float8_infinity();
+ *endptr = ptr + 9;
+ return true;
+ }
+
+ return false;
+}
+
+/* imported from src/backend/utils/adt/encode.c */
+
+unsigned
+ecpg_hex_enc_len(unsigned srclen)
+{
+ return srclen << 1;
+}
+
+unsigned
+ecpg_hex_dec_len(unsigned srclen)
+{
+ return srclen >> 1;
+}
+
+static inline char
+get_hex(char c)
+{
+ static const int8 hexlookup[128] = {
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, -1, -1, -1, -1, -1,
+ -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ };
+ int res = -1;
+
+ if (c > 0 && c < 127)
+ res = hexlookup[(unsigned char) c];
+
+ return (char) res;
+}
+
+static unsigned
+hex_decode(const char *src, unsigned len, char *dst)
+{
+ const char *s,
+ *srcend;
+ char v1,
+ v2,
+ *p;
+
+ srcend = src + len;
+ s = src;
+ p = dst;
+ while (s < srcend)
+ {
+ if (*s == ' ' || *s == '\n' || *s == '\t' || *s == '\r')
+ {
+ s++;
+ continue;
+ }
+ v1 = get_hex(*s++) << 4;
+ if (s >= srcend)
+ return -1;
+
+ v2 = get_hex(*s++);
+ *p++ = v1 | v2;
+ }
+
+ return p - dst;
+}
+
+unsigned
+ecpg_hex_encode(const char *src, unsigned len, char *dst)
+{
+ static const char hextbl[] = "0123456789abcdef";
+ const char *end = src + len;
+
+ while (src < end)
+ {
+ *dst++ = hextbl[(*src >> 4) & 0xF];
+ *dst++ = hextbl[*src & 0xF];
+ src++;
+ }
+ return len * 2;
+}
+
+bool
+ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
+ enum ECPGttype type, enum ECPGttype ind_type,
+ char *var, char *ind, long varcharsize, long offset,
+ long ind_offset, enum ARRAY_TYPE isarray, enum COMPAT_MODE compat, bool force_indicator)
+{
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+ char *pval = (char *) PQgetvalue(results, act_tuple, act_field);
+ int binary = PQfformat(results, act_field);
+ int size = PQgetlength(results, act_tuple, act_field);
+ int value_for_indicator = 0;
+ long log_offset;
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+
+ /*
+ * If we are running in a regression test, do not log the offset variable,
+ * it depends on the machine's alignment.
+ */
+ if (ecpg_internal_regression_mode)
+ log_offset = -1;
+ else
+ log_offset = offset;
+
+ ecpg_log("ecpg_get_data on line %d: RESULT: %s offset: %ld; array: %s\n", lineno, pval ? (binary ? "BINARY" : pval) : "EMPTY", log_offset, ECPG_IS_ARRAY(isarray) ? "yes" : "no");
+
+ /* pval is a pointer to the value */
+ if (!pval)
+ {
+ /*
+ * This should never happen because we already checked that we found
+ * at least one tuple, but let's play it safe.
+ */
+ ecpg_raise(lineno, ECPG_NOT_FOUND, ECPG_SQLSTATE_NO_DATA, NULL);
+ return false;
+ }
+
+ /* We will have to decode the value */
+
+ /*
+ * check for null value and set indicator accordingly, i.e. -1 if NULL and
+ * 0 if not
+ */
+ if (PQgetisnull(results, act_tuple, act_field))
+ value_for_indicator = -1;
+
+ switch (ind_type)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ *((short *) (ind + ind_offset * act_tuple)) = value_for_indicator;
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ *((int *) (ind + ind_offset * act_tuple)) = value_for_indicator;
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ *((long *) (ind + ind_offset * act_tuple)) = value_for_indicator;
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ *((long long int *) (ind + ind_offset * act_tuple)) = value_for_indicator;
+ break;
+ case ECPGt_NO_INDICATOR:
+ if (value_for_indicator == -1)
+ {
+ if (force_indicator == false)
+ {
+ /*
+ * Informix has an additional way to specify NULLs note
+ * that this uses special values to denote NULL
+ */
+ ECPGset_noind_null(type, var + offset * act_tuple);
+ }
+ else
+ {
+ ecpg_raise(lineno, ECPG_MISSING_INDICATOR,
+ ECPG_SQLSTATE_NULL_VALUE_NO_INDICATOR_PARAMETER,
+ NULL);
+ return false;
+ }
+ }
+ break;
+ default:
+ ecpg_raise(lineno, ECPG_UNSUPPORTED,
+ ECPG_SQLSTATE_ECPG_INTERNAL_ERROR,
+ ecpg_type_name(ind_type));
+ return false;
+ break;
+ }
+
+ if (value_for_indicator == -1)
+ return true;
+
+ /* let's check if it really is an array if it should be one */
+ if (isarray == ECPG_ARRAY_ARRAY)
+ {
+ if (*pval != '{')
+ {
+ ecpg_raise(lineno, ECPG_DATA_NOT_ARRAY,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, NULL);
+ return false;
+ }
+
+ switch (type)
+ {
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_varchar:
+ case ECPGt_string:
+ break;
+
+ default:
+ pval++;
+ break;
+ }
+ }
+
+ do
+ {
+ if (binary)
+ {
+ if (varcharsize == 0 || varcharsize * offset >= size)
+ memcpy(var + offset * act_tuple, pval, size);
+ else
+ {
+ memcpy(var + offset * act_tuple, pval, varcharsize * offset);
+
+ if (varcharsize * offset < size)
+ {
+ /* truncation */
+ switch (ind_type)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ *((short *) (ind + ind_offset * act_tuple)) = size;
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ *((int *) (ind + ind_offset * act_tuple)) = size;
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ *((long *) (ind + ind_offset * act_tuple)) = size;
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ *((long long int *) (ind + ind_offset * act_tuple)) = size;
+ break;
+ default:
+ break;
+ }
+ sqlca->sqlwarn[0] = sqlca->sqlwarn[1] = 'W';
+ }
+ }
+ pval += size;
+ }
+ else
+ {
+ switch (type)
+ {
+ long res;
+ unsigned long ures;
+ double dres;
+ char *scan_length;
+ numeric *nres;
+ date ddres;
+ timestamp tres;
+ interval *ires;
+ char *endptr,
+ endchar;
+
+ case ECPGt_short:
+ case ECPGt_int:
+ case ECPGt_long:
+ res = strtol(pval, &scan_length, 10);
+ if (garbage_left(isarray, &scan_length, compat))
+ {
+ ecpg_raise(lineno, ECPG_INT_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ pval = scan_length;
+
+ switch (type)
+ {
+ case ECPGt_short:
+ *((short *) (var + offset * act_tuple)) = (short) res;
+ break;
+ case ECPGt_int:
+ *((int *) (var + offset * act_tuple)) = (int) res;
+ break;
+ case ECPGt_long:
+ *((long *) (var + offset * act_tuple)) = (long) res;
+ break;
+ default:
+ /* Cannot happen */
+ break;
+ }
+ break;
+
+ case ECPGt_unsigned_short:
+ case ECPGt_unsigned_int:
+ case ECPGt_unsigned_long:
+ ures = strtoul(pval, &scan_length, 10);
+ if (garbage_left(isarray, &scan_length, compat))
+ {
+ ecpg_raise(lineno, ECPG_UINT_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ pval = scan_length;
+
+ switch (type)
+ {
+ case ECPGt_unsigned_short:
+ *((unsigned short *) (var + offset * act_tuple)) = (unsigned short) ures;
+ break;
+ case ECPGt_unsigned_int:
+ *((unsigned int *) (var + offset * act_tuple)) = (unsigned int) ures;
+ break;
+ case ECPGt_unsigned_long:
+ *((unsigned long *) (var + offset * act_tuple)) = (unsigned long) ures;
+ break;
+ default:
+ /* Cannot happen */
+ break;
+ }
+ break;
+
+#ifdef HAVE_STRTOLL
+ case ECPGt_long_long:
+ *((long long int *) (var + offset * act_tuple)) = strtoll(pval, &scan_length, 10);
+ if (garbage_left(isarray, &scan_length, compat))
+ {
+ ecpg_raise(lineno, ECPG_INT_FORMAT, ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ pval = scan_length;
+
+ break;
+#endif /* HAVE_STRTOLL */
+#ifdef HAVE_STRTOULL
+ case ECPGt_unsigned_long_long:
+ *((unsigned long long int *) (var + offset * act_tuple)) = strtoull(pval, &scan_length, 10);
+ if (garbage_left(isarray, &scan_length, compat))
+ {
+ ecpg_raise(lineno, ECPG_UINT_FORMAT, ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ pval = scan_length;
+
+ break;
+#endif /* HAVE_STRTOULL */
+
+ case ECPGt_float:
+ case ECPGt_double:
+ if (isarray && *pval == '"')
+ pval++;
+
+ if (!check_special_value(pval, &dres, &scan_length))
+ dres = strtod(pval, &scan_length);
+
+ if (isarray && *scan_length == '"')
+ scan_length++;
+
+ /* no special INFORMIX treatment for floats */
+ if (garbage_left(isarray, &scan_length, ECPG_COMPAT_PGSQL))
+ {
+ ecpg_raise(lineno, ECPG_FLOAT_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ pval = scan_length;
+
+ switch (type)
+ {
+ case ECPGt_float:
+ *((float *) (var + offset * act_tuple)) = dres;
+ break;
+ case ECPGt_double:
+ *((double *) (var + offset * act_tuple)) = dres;
+ break;
+ default:
+ /* Cannot happen */
+ break;
+ }
+ break;
+
+ case ECPGt_bool:
+ if (pval[0] == 'f' && pval[1] == '\0')
+ {
+ *((bool *) (var + offset * act_tuple)) = false;
+ pval++;
+ break;
+ }
+ else if (pval[0] == 't' && pval[1] == '\0')
+ {
+ *((bool *) (var + offset * act_tuple)) = true;
+ pval++;
+ break;
+ }
+ else if (pval[0] == '\0' && PQgetisnull(results, act_tuple, act_field))
+ {
+ /* NULL is valid */
+ break;
+ }
+
+ ecpg_raise(lineno, ECPG_CONVERT_BOOL,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ break;
+
+ case ECPGt_bytea:
+ {
+ struct ECPGgeneric_bytea *variable =
+ (struct ECPGgeneric_bytea *) (var + offset * act_tuple);
+ long dst_size,
+ src_size,
+ dec_size;
+
+ dst_size = ecpg_hex_enc_len(varcharsize);
+ src_size = size - 2; /* exclude backslash + 'x' */
+ dec_size = src_size < dst_size ? src_size : dst_size;
+ variable->len = hex_decode(pval + 2, dec_size, variable->arr);
+
+ if (dst_size < src_size)
+ {
+ long rcv_size = ecpg_hex_dec_len(size - 2);
+
+ /* truncation */
+ switch (ind_type)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ *((short *) (ind + ind_offset * act_tuple)) = rcv_size;
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ *((int *) (ind + ind_offset * act_tuple)) = rcv_size;
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ *((long *) (ind + ind_offset * act_tuple)) = rcv_size;
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ *((long long int *) (ind + ind_offset * act_tuple)) = rcv_size;
+ break;
+ default:
+ break;
+ }
+ sqlca->sqlwarn[0] = sqlca->sqlwarn[1] = 'W';
+ }
+
+ pval += size;
+ }
+ break;
+
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ {
+ char *str = (char *) (var + offset * act_tuple);
+
+ /*
+ * If varcharsize is unknown and the offset is that of
+ * char *, then this variable represents the array of
+ * character pointers. So, use extra indirection.
+ */
+ if (varcharsize == 0 && offset == sizeof(char *))
+ str = *(char **) str;
+
+ if (varcharsize > size)
+ {
+ /*
+ * compatibility mode, blank pad and null
+ * terminate char array
+ */
+ if (ORACLE_MODE(compat) && (type == ECPGt_char || type == ECPGt_unsigned_char))
+ {
+ memset(str, ' ', varcharsize);
+ memcpy(str, pval, size);
+ str[varcharsize - 1] = '\0';
+
+ /*
+ * compatibility mode empty string gets -1
+ * indicator but no warning
+ */
+ if (size == 0)
+ {
+ /* truncation */
+ switch (ind_type)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ *((short *) (ind + ind_offset * act_tuple)) = -1;
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ *((int *) (ind + ind_offset * act_tuple)) = -1;
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ *((long *) (ind + ind_offset * act_tuple)) = -1;
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ *((long long int *) (ind + ind_offset * act_tuple)) = -1;
+ break;
+ default:
+ break;
+ }
+ }
+ }
+ else
+ {
+ strncpy(str, pval, size + 1);
+ }
+ /* do the rtrim() */
+ if (type == ECPGt_string)
+ {
+ char *last = str + size;
+
+ while (last > str && (*last == ' ' || *last == '\0'))
+ {
+ *last = '\0';
+ last--;
+ }
+ }
+ }
+ else
+ {
+ int charsize = varcharsize;
+
+ /*
+ * assume that the caller provided storage exactly
+ * fit when varcharsize is zero.
+ */
+ if (varcharsize == 0)
+ charsize = size + 1;
+
+ strncpy(str, pval, charsize);
+
+ /* compatibility mode, null terminate char array */
+ if (ORACLE_MODE(compat) && (charsize - 1) < size)
+ {
+ if (type == ECPGt_char || type == ECPGt_unsigned_char)
+ str[charsize - 1] = '\0';
+ }
+
+ if (charsize < size || (ORACLE_MODE(compat) && (charsize - 1) < size))
+ {
+ /* truncation */
+ switch (ind_type)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ *((short *) (ind + ind_offset * act_tuple)) = size;
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ *((int *) (ind + ind_offset * act_tuple)) = size;
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ *((long *) (ind + ind_offset * act_tuple)) = size;
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ *((long long int *) (ind + ind_offset * act_tuple)) = size;
+ break;
+ default:
+ break;
+ }
+ sqlca->sqlwarn[0] = sqlca->sqlwarn[1] = 'W';
+ }
+ }
+ pval += size;
+ }
+ break;
+
+ case ECPGt_varchar:
+ {
+ struct ECPGgeneric_varchar *variable =
+ (struct ECPGgeneric_varchar *) (var + offset * act_tuple);
+
+ variable->len = size;
+ if (varcharsize == 0)
+ strncpy(variable->arr, pval, variable->len);
+ else
+ {
+ strncpy(variable->arr, pval, varcharsize);
+
+ if (variable->len > varcharsize)
+ {
+ /* truncation */
+ switch (ind_type)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ *((short *) (ind + ind_offset * act_tuple)) = variable->len;
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ *((int *) (ind + ind_offset * act_tuple)) = variable->len;
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ *((long *) (ind + ind_offset * act_tuple)) = variable->len;
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ *((long long int *) (ind + ind_offset * act_tuple)) = variable->len;
+ break;
+ default:
+ break;
+ }
+ sqlca->sqlwarn[0] = sqlca->sqlwarn[1] = 'W';
+
+ variable->len = varcharsize;
+ }
+ }
+ pval += size;
+ }
+ break;
+
+ case ECPGt_decimal:
+ case ECPGt_numeric:
+ for (endptr = pval; *endptr && *endptr != ',' && *endptr != '}'; endptr++);
+ endchar = *endptr;
+ *endptr = '\0';
+ nres = PGTYPESnumeric_from_asc(pval, &scan_length);
+ *endptr = endchar;
+
+ /* did we get an error? */
+ if (nres == NULL)
+ {
+ ecpg_log("ecpg_get_data on line %d: RESULT %s; errno %d\n",
+ lineno, pval, errno);
+
+ if (INFORMIX_MODE(compat))
+ {
+ /*
+ * Informix wants its own NULL value here instead
+ * of an error
+ */
+ nres = PGTYPESnumeric_new();
+ if (nres)
+ ECPGset_noind_null(ECPGt_numeric, nres);
+ else
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+ }
+ else
+ {
+ ecpg_raise(lineno, ECPG_NUMERIC_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ }
+ else
+ {
+ if (!isarray && garbage_left(isarray, &scan_length, compat))
+ {
+ free(nres);
+ ecpg_raise(lineno, ECPG_NUMERIC_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ }
+ pval = scan_length;
+
+ if (type == ECPGt_numeric)
+ PGTYPESnumeric_copy(nres, (numeric *) (var + offset * act_tuple));
+ else
+ PGTYPESnumeric_to_decimal(nres, (decimal *) (var + offset * act_tuple));
+
+ PGTYPESnumeric_free(nres);
+ break;
+
+ case ECPGt_interval:
+ if (*pval == '"')
+ pval++;
+
+ for (endptr = pval; *endptr && *endptr != ',' && *endptr != '"' && *endptr != '}'; endptr++);
+ endchar = *endptr;
+ *endptr = '\0';
+ ires = PGTYPESinterval_from_asc(pval, &scan_length);
+ *endptr = endchar;
+
+ /* did we get an error? */
+ if (ires == NULL)
+ {
+ ecpg_log("ecpg_get_data on line %d: RESULT %s; errno %d\n",
+ lineno, pval, errno);
+
+ if (INFORMIX_MODE(compat))
+ {
+ /*
+ * Informix wants its own NULL value here instead
+ * of an error
+ */
+ ires = (interval *) ecpg_alloc(sizeof(interval), lineno);
+ if (!ires)
+ return false;
+
+ ECPGset_noind_null(ECPGt_interval, ires);
+ }
+ else
+ {
+ ecpg_raise(lineno, ECPG_INTERVAL_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ }
+ else
+ {
+ if (*scan_length == '"')
+ scan_length++;
+
+ if (!isarray && garbage_left(isarray, &scan_length, compat))
+ {
+ free(ires);
+ ecpg_raise(lineno, ECPG_INTERVAL_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ }
+ pval = scan_length;
+
+ PGTYPESinterval_copy(ires, (interval *) (var + offset * act_tuple));
+ free(ires);
+ break;
+
+ case ECPGt_date:
+ if (*pval == '"')
+ pval++;
+
+ for (endptr = pval; *endptr && *endptr != ',' && *endptr != '"' && *endptr != '}'; endptr++);
+ endchar = *endptr;
+ *endptr = '\0';
+ ddres = PGTYPESdate_from_asc(pval, &scan_length);
+ *endptr = endchar;
+
+ /* did we get an error? */
+ if (errno != 0)
+ {
+ ecpg_log("ecpg_get_data on line %d: RESULT %s; errno %d\n",
+ lineno, pval, errno);
+
+ if (INFORMIX_MODE(compat))
+ {
+ /*
+ * Informix wants its own NULL value here instead
+ * of an error
+ */
+ ECPGset_noind_null(ECPGt_date, &ddres);
+ }
+ else
+ {
+ ecpg_raise(lineno, ECPG_DATE_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ }
+ else
+ {
+ if (*scan_length == '"')
+ scan_length++;
+
+ if (!isarray && garbage_left(isarray, &scan_length, compat))
+ {
+ ecpg_raise(lineno, ECPG_DATE_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ }
+
+ *((date *) (var + offset * act_tuple)) = ddres;
+ pval = scan_length;
+ break;
+
+ case ECPGt_timestamp:
+ if (*pval == '"')
+ pval++;
+
+ for (endptr = pval; *endptr && *endptr != ',' && *endptr != '"' && *endptr != '}'; endptr++);
+ endchar = *endptr;
+ *endptr = '\0';
+ tres = PGTYPEStimestamp_from_asc(pval, &scan_length);
+ *endptr = endchar;
+
+ /* did we get an error? */
+ if (errno != 0)
+ {
+ ecpg_log("ecpg_get_data on line %d: RESULT %s; errno %d\n",
+ lineno, pval, errno);
+
+ if (INFORMIX_MODE(compat))
+ {
+ /*
+ * Informix wants its own NULL value here instead
+ * of an error
+ */
+ ECPGset_noind_null(ECPGt_timestamp, &tres);
+ }
+ else
+ {
+ ecpg_raise(lineno, ECPG_TIMESTAMP_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ }
+ else
+ {
+ if (*scan_length == '"')
+ scan_length++;
+
+ if (!isarray && garbage_left(isarray, &scan_length, compat))
+ {
+ ecpg_raise(lineno, ECPG_TIMESTAMP_FORMAT,
+ ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
+ return false;
+ }
+ }
+
+ *((timestamp *) (var + offset * act_tuple)) = tres;
+ pval = scan_length;
+ break;
+
+ default:
+ ecpg_raise(lineno, ECPG_UNSUPPORTED,
+ ECPG_SQLSTATE_ECPG_INTERNAL_ERROR,
+ ecpg_type_name(type));
+ return false;
+ break;
+ }
+ if (ECPG_IS_ARRAY(isarray))
+ {
+ bool string = false;
+
+ /* set array to next entry */
+ ++act_tuple;
+
+ /* set pval to the next entry */
+
+ /*
+ * *pval != '\0' should not be needed, but is used as a safety
+ * guard
+ */
+ for (; *pval != '\0' && (string || (!array_delimiter(isarray, *pval) && !array_boundary(isarray, *pval))); ++pval)
+ if (*pval == '"')
+ string = string ? false : true;
+
+ if (array_delimiter(isarray, *pval))
+ ++pval;
+ }
+ }
+ } while (*pval != '\0' && !array_boundary(isarray, *pval));
+
+ return true;
+}
diff --git a/src/interfaces/ecpg/ecpglib/descriptor.c b/src/interfaces/ecpg/ecpglib/descriptor.c
new file mode 100644
index 0000000..f1898de
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/descriptor.c
@@ -0,0 +1,1002 @@
+/* dynamic SQL support routines
+ *
+ * src/interfaces/ecpg/ecpglib/descriptor.c
+ */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include "catalog/pg_type_d.h"
+#include "ecpg-pthread-win32.h"
+#include "ecpgerrno.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+#include "sql3types.h"
+#include "sqlca.h"
+#include "sqlda.h"
+
+static void descriptor_free(struct descriptor *desc);
+
+/* We manage descriptors separately for each thread. */
+#ifdef ENABLE_THREAD_SAFETY
+static pthread_key_t descriptor_key;
+static pthread_once_t descriptor_once = PTHREAD_ONCE_INIT;
+
+static void descriptor_deallocate_all(struct descriptor *list);
+
+static void
+descriptor_destructor(void *arg)
+{
+ descriptor_deallocate_all(arg);
+}
+
+static void
+descriptor_key_init(void)
+{
+ pthread_key_create(&descriptor_key, descriptor_destructor);
+}
+
+static struct descriptor *
+get_descriptors(void)
+{
+ pthread_once(&descriptor_once, descriptor_key_init);
+ return (struct descriptor *) pthread_getspecific(descriptor_key);
+}
+
+static void
+set_descriptors(struct descriptor *value)
+{
+ pthread_setspecific(descriptor_key, value);
+}
+#else
+static struct descriptor *all_descriptors = NULL;
+
+#define get_descriptors() (all_descriptors)
+#define set_descriptors(value) do { all_descriptors = (value); } while(0)
+#endif
+
+/* old internal convenience function that might go away later */
+static PGresult *
+ecpg_result_by_descriptor(int line, const char *name)
+{
+ struct descriptor *desc = ecpg_find_desc(line, name);
+
+ if (desc == NULL)
+ return NULL;
+ return desc->result;
+}
+
+static unsigned int
+ecpg_dynamic_type_DDT(Oid type)
+{
+ switch (type)
+ {
+ case DATEOID:
+ return SQL3_DDT_DATE;
+ case TIMEOID:
+ return SQL3_DDT_TIME;
+ case TIMESTAMPOID:
+ return SQL3_DDT_TIMESTAMP;
+ case TIMESTAMPTZOID:
+ return SQL3_DDT_TIMESTAMP_WITH_TIME_ZONE;
+ case TIMETZOID:
+ return SQL3_DDT_TIME_WITH_TIME_ZONE;
+ default:
+ return SQL3_DDT_ILLEGAL;
+ }
+}
+
+bool
+ECPGget_desc_header(int lineno, const char *desc_name, int *count)
+{
+ PGresult *ECPGresult;
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+
+ ecpg_init_sqlca(sqlca);
+ ECPGresult = ecpg_result_by_descriptor(lineno, desc_name);
+ if (!ECPGresult)
+ return false;
+
+ *count = PQnfields(ECPGresult);
+ sqlca->sqlerrd[2] = 1;
+ ecpg_log("ECPGget_desc_header: found %d attributes\n", *count);
+ return true;
+}
+
+static bool
+get_int_item(int lineno, void *var, enum ECPGttype vartype, int value)
+{
+ switch (vartype)
+ {
+ case ECPGt_short:
+ *(short *) var = (short) value;
+ break;
+ case ECPGt_int:
+ *(int *) var = (int) value;
+ break;
+ case ECPGt_long:
+ *(long *) var = (long) value;
+ break;
+ case ECPGt_unsigned_short:
+ *(unsigned short *) var = (unsigned short) value;
+ break;
+ case ECPGt_unsigned_int:
+ *(unsigned int *) var = (unsigned int) value;
+ break;
+ case ECPGt_unsigned_long:
+ *(unsigned long *) var = (unsigned long) value;
+ break;
+ case ECPGt_long_long:
+ *(long long int *) var = (long long int) value;
+ break;
+ case ECPGt_unsigned_long_long:
+ *(unsigned long long int *) var = (unsigned long long int) value;
+ break;
+ case ECPGt_float:
+ *(float *) var = (float) value;
+ break;
+ case ECPGt_double:
+ *(double *) var = (double) value;
+ break;
+ default:
+ ecpg_raise(lineno, ECPG_VAR_NOT_NUMERIC, ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION, NULL);
+ return false;
+ }
+
+ return true;
+}
+
+static bool
+set_int_item(int lineno, int *target, const void *var, enum ECPGttype vartype)
+{
+ switch (vartype)
+ {
+ case ECPGt_short:
+ *target = *(const short *) var;
+ break;
+ case ECPGt_int:
+ *target = *(const int *) var;
+ break;
+ case ECPGt_long:
+ *target = *(const long *) var;
+ break;
+ case ECPGt_unsigned_short:
+ *target = *(const unsigned short *) var;
+ break;
+ case ECPGt_unsigned_int:
+ *target = *(const unsigned int *) var;
+ break;
+ case ECPGt_unsigned_long:
+ *target = *(const unsigned long *) var;
+ break;
+ case ECPGt_long_long:
+ *target = *(const long long int *) var;
+ break;
+ case ECPGt_unsigned_long_long:
+ *target = *(const unsigned long long int *) var;
+ break;
+ case ECPGt_float:
+ *target = *(const float *) var;
+ break;
+ case ECPGt_double:
+ *target = *(const double *) var;
+ break;
+ default:
+ ecpg_raise(lineno, ECPG_VAR_NOT_NUMERIC, ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION, NULL);
+ return false;
+ }
+
+ return true;
+}
+
+static bool
+get_char_item(int lineno, void *var, enum ECPGttype vartype, char *value, int varcharsize)
+{
+ switch (vartype)
+ {
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ strncpy((char *) var, value, varcharsize);
+ break;
+ case ECPGt_varchar:
+ {
+ struct ECPGgeneric_varchar *variable =
+ (struct ECPGgeneric_varchar *) var;
+
+ if (varcharsize == 0)
+ memcpy(variable->arr, value, strlen(value));
+ else
+ strncpy(variable->arr, value, varcharsize);
+
+ variable->len = strlen(value);
+ if (varcharsize > 0 && variable->len > varcharsize)
+ variable->len = varcharsize;
+ }
+ break;
+ default:
+ ecpg_raise(lineno, ECPG_VAR_NOT_CHAR, ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION, NULL);
+ return false;
+ }
+
+ return true;
+}
+
+#define RETURN_IF_NO_DATA if (ntuples < 1) \
+ { \
+ va_end(args); \
+ ecpg_raise(lineno, ECPG_NOT_FOUND, ECPG_SQLSTATE_NO_DATA, NULL); \
+ return false; \
+ }
+
+bool
+ECPGget_desc(int lineno, const char *desc_name, int index,...)
+{
+ va_list args;
+ PGresult *ECPGresult;
+ enum ECPGdtype type;
+ int ntuples,
+ act_tuple;
+ struct variable data_var;
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+
+ va_start(args, index);
+ ecpg_init_sqlca(sqlca);
+ ECPGresult = ecpg_result_by_descriptor(lineno, desc_name);
+ if (!ECPGresult)
+ {
+ va_end(args);
+ return false;
+ }
+
+ ntuples = PQntuples(ECPGresult);
+
+ if (index < 1 || index > PQnfields(ECPGresult))
+ {
+ ecpg_raise(lineno, ECPG_INVALID_DESCRIPTOR_INDEX, ECPG_SQLSTATE_INVALID_DESCRIPTOR_INDEX, NULL);
+ va_end(args);
+ return false;
+ }
+
+ ecpg_log("ECPGget_desc: reading items for tuple %d\n", index);
+ --index;
+
+ type = va_arg(args, enum ECPGdtype);
+
+ memset(&data_var, 0, sizeof data_var);
+ data_var.type = ECPGt_EORT;
+ data_var.ind_type = ECPGt_NO_INDICATOR;
+
+ while (type != ECPGd_EODT)
+ {
+ char type_str[20];
+ long varcharsize;
+ long offset;
+ long arrsize;
+ enum ECPGttype vartype;
+ void *var;
+
+ vartype = va_arg(args, enum ECPGttype);
+ var = va_arg(args, void *);
+ varcharsize = va_arg(args, long);
+ arrsize = va_arg(args, long);
+ offset = va_arg(args, long);
+
+ switch (type)
+ {
+ case (ECPGd_indicator):
+ RETURN_IF_NO_DATA;
+ data_var.ind_type = vartype;
+ data_var.ind_pointer = var;
+ data_var.ind_varcharsize = varcharsize;
+ data_var.ind_arrsize = arrsize;
+ data_var.ind_offset = offset;
+ if (data_var.ind_arrsize == 0 || data_var.ind_varcharsize == 0)
+ data_var.ind_value = *((void **) (data_var.ind_pointer));
+ else
+ data_var.ind_value = data_var.ind_pointer;
+ break;
+
+ case ECPGd_data:
+ RETURN_IF_NO_DATA;
+ data_var.type = vartype;
+ data_var.pointer = var;
+ data_var.varcharsize = varcharsize;
+ data_var.arrsize = arrsize;
+ data_var.offset = offset;
+ if (data_var.arrsize == 0 || data_var.varcharsize == 0)
+ data_var.value = *((void **) (data_var.pointer));
+ else
+ data_var.value = data_var.pointer;
+ break;
+
+ case ECPGd_name:
+ if (!get_char_item(lineno, var, vartype, PQfname(ECPGresult, index), varcharsize))
+ {
+ va_end(args);
+ return false;
+ }
+
+ ecpg_log("ECPGget_desc: NAME = %s\n", PQfname(ECPGresult, index));
+ break;
+
+ case ECPGd_nullable:
+ if (!get_int_item(lineno, var, vartype, 1))
+ {
+ va_end(args);
+ return false;
+ }
+
+ break;
+
+ case ECPGd_key_member:
+ if (!get_int_item(lineno, var, vartype, 0))
+ {
+ va_end(args);
+ return false;
+ }
+
+ break;
+
+ case ECPGd_scale:
+ if (!get_int_item(lineno, var, vartype, (PQfmod(ECPGresult, index) - VARHDRSZ) & 0xffff))
+ {
+ va_end(args);
+ return false;
+ }
+
+ ecpg_log("ECPGget_desc: SCALE = %d\n", (PQfmod(ECPGresult, index) - VARHDRSZ) & 0xffff);
+ break;
+
+ case ECPGd_precision:
+ if (!get_int_item(lineno, var, vartype, PQfmod(ECPGresult, index) >> 16))
+ {
+ va_end(args);
+ return false;
+ }
+
+ ecpg_log("ECPGget_desc: PRECISION = %d\n", PQfmod(ECPGresult, index) >> 16);
+ break;
+
+ case ECPGd_octet:
+ if (!get_int_item(lineno, var, vartype, PQfsize(ECPGresult, index)))
+ {
+ va_end(args);
+ return false;
+ }
+
+ ecpg_log("ECPGget_desc: OCTET_LENGTH = %d\n", PQfsize(ECPGresult, index));
+ break;
+
+ case ECPGd_length:
+ if (!get_int_item(lineno, var, vartype, PQfmod(ECPGresult, index) - VARHDRSZ))
+ {
+ va_end(args);
+ return false;
+ }
+
+ ecpg_log("ECPGget_desc: LENGTH = %d\n", PQfmod(ECPGresult, index) - VARHDRSZ);
+ break;
+
+ case ECPGd_type:
+ if (!get_int_item(lineno, var, vartype, ecpg_dynamic_type(PQftype(ECPGresult, index))))
+ {
+ va_end(args);
+ return false;
+ }
+
+ ecpg_log("ECPGget_desc: TYPE = %d\n", ecpg_dynamic_type(PQftype(ECPGresult, index)));
+ break;
+
+ case ECPGd_di_code:
+ if (!get_int_item(lineno, var, vartype, ecpg_dynamic_type_DDT(PQftype(ECPGresult, index))))
+ {
+ va_end(args);
+ return false;
+ }
+
+ ecpg_log("ECPGget_desc: TYPE = %d\n", ecpg_dynamic_type_DDT(PQftype(ECPGresult, index)));
+ break;
+
+ case ECPGd_cardinality:
+ if (!get_int_item(lineno, var, vartype, PQntuples(ECPGresult)))
+ {
+ va_end(args);
+ return false;
+ }
+
+ ecpg_log("ECPGget_desc: CARDINALITY = %d\n", PQntuples(ECPGresult));
+ break;
+
+ case ECPGd_ret_length:
+ case ECPGd_ret_octet:
+
+ RETURN_IF_NO_DATA;
+
+ /*
+ * this is like ECPGstore_result
+ */
+ if (arrsize > 0 && ntuples > arrsize)
+ {
+ ecpg_log("ECPGget_desc on line %d: incorrect number of matches; %d don't fit into array of %ld\n",
+ lineno, ntuples, arrsize);
+ ecpg_raise(lineno, ECPG_TOO_MANY_MATCHES, ECPG_SQLSTATE_CARDINALITY_VIOLATION, NULL);
+ va_end(args);
+ return false;
+ }
+ /* allocate storage if needed */
+ if (arrsize == 0 && *(void **) var == NULL)
+ {
+ void *mem = (void *) ecpg_auto_alloc(offset * ntuples, lineno);
+
+ if (!mem)
+ {
+ va_end(args);
+ return false;
+ }
+ *(void **) var = mem;
+ var = mem;
+ }
+
+ for (act_tuple = 0; act_tuple < ntuples; act_tuple++)
+ {
+ if (!get_int_item(lineno, var, vartype, PQgetlength(ECPGresult, act_tuple, index)))
+ {
+ va_end(args);
+ return false;
+ }
+ var = (char *) var + offset;
+ ecpg_log("ECPGget_desc: RETURNED[%d] = %d\n", act_tuple, PQgetlength(ECPGresult, act_tuple, index));
+ }
+ break;
+
+ default:
+ snprintf(type_str, sizeof(type_str), "%d", type);
+ ecpg_raise(lineno, ECPG_UNKNOWN_DESCRIPTOR_ITEM, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR, type_str);
+ va_end(args);
+ return false;
+ }
+
+ type = va_arg(args, enum ECPGdtype);
+ }
+
+ if (data_var.type != ECPGt_EORT)
+ {
+ struct statement stmt;
+
+ memset(&stmt, 0, sizeof stmt);
+ stmt.lineno = lineno;
+
+ /* Make sure we do NOT honor the locale for numeric input */
+ /* since the database gives the standard decimal point */
+ /* (see comments in execute.c) */
+#ifdef HAVE_USELOCALE
+
+ /*
+ * To get here, the above PQnfields() test must have found nonzero
+ * fields. One needs a connection to create such a descriptor. (EXEC
+ * SQL SET DESCRIPTOR can populate the descriptor's "items", but it
+ * can't change the descriptor's PQnfields().) Any successful
+ * connection initializes ecpg_clocale.
+ */
+ Assert(ecpg_clocale);
+ stmt.oldlocale = uselocale(ecpg_clocale);
+#else
+#ifdef HAVE__CONFIGTHREADLOCALE
+ stmt.oldthreadlocale = _configthreadlocale(_ENABLE_PER_THREAD_LOCALE);
+#endif
+ stmt.oldlocale = ecpg_strdup(setlocale(LC_NUMERIC, NULL), lineno);
+ setlocale(LC_NUMERIC, "C");
+#endif
+
+ /* desperate try to guess something sensible */
+ stmt.connection = ecpg_get_connection(NULL);
+ ecpg_store_result(ECPGresult, index, &stmt, &data_var);
+
+#ifdef HAVE_USELOCALE
+ if (stmt.oldlocale != (locale_t) 0)
+ uselocale(stmt.oldlocale);
+#else
+ if (stmt.oldlocale)
+ {
+ setlocale(LC_NUMERIC, stmt.oldlocale);
+ ecpg_free(stmt.oldlocale);
+ }
+#ifdef HAVE__CONFIGTHREADLOCALE
+ if (stmt.oldthreadlocale != -1)
+ (void) _configthreadlocale(stmt.oldthreadlocale);
+#endif
+#endif
+ }
+ else if (data_var.ind_type != ECPGt_NO_INDICATOR && data_var.ind_pointer != NULL)
+
+ /*
+ * ind_type != NO_INDICATOR should always have ind_pointer != NULL but
+ * since this might be changed manually in the .c file let's play it
+ * safe
+ */
+ {
+ /*
+ * this is like ECPGstore_result but since we don't have a data
+ * variable at hand, we can't call it
+ */
+ if (data_var.ind_arrsize > 0 && ntuples > data_var.ind_arrsize)
+ {
+ ecpg_log("ECPGget_desc on line %d: incorrect number of matches (indicator); %d don't fit into array of %ld\n",
+ lineno, ntuples, data_var.ind_arrsize);
+ ecpg_raise(lineno, ECPG_TOO_MANY_MATCHES, ECPG_SQLSTATE_CARDINALITY_VIOLATION, NULL);
+ va_end(args);
+ return false;
+ }
+
+ /* allocate storage if needed */
+ if (data_var.ind_arrsize == 0 && data_var.ind_value == NULL)
+ {
+ void *mem = (void *) ecpg_auto_alloc(data_var.ind_offset * ntuples, lineno);
+
+ if (!mem)
+ {
+ va_end(args);
+ return false;
+ }
+ *(void **) data_var.ind_pointer = mem;
+ data_var.ind_value = mem;
+ }
+
+ for (act_tuple = 0; act_tuple < ntuples; act_tuple++)
+ {
+ if (!get_int_item(lineno, data_var.ind_value, data_var.ind_type, -PQgetisnull(ECPGresult, act_tuple, index)))
+ {
+ va_end(args);
+ return false;
+ }
+ data_var.ind_value = (char *) data_var.ind_value + data_var.ind_offset;
+ ecpg_log("ECPGget_desc: INDICATOR[%d] = %d\n", act_tuple, -PQgetisnull(ECPGresult, act_tuple, index));
+ }
+ }
+ sqlca->sqlerrd[2] = ntuples;
+ va_end(args);
+ return true;
+}
+
+#undef RETURN_IF_NO_DATA
+
+bool
+ECPGset_desc_header(int lineno, const char *desc_name, int count)
+{
+ struct descriptor *desc = ecpg_find_desc(lineno, desc_name);
+
+ if (desc == NULL)
+ return false;
+ desc->count = count;
+ return true;
+}
+
+static void
+set_desc_attr(struct descriptor_item *desc_item, struct variable *var,
+ char *tobeinserted)
+{
+ if (var->type != ECPGt_bytea)
+ desc_item->is_binary = false;
+
+ else
+ {
+ struct ECPGgeneric_bytea *variable =
+ (struct ECPGgeneric_bytea *) (var->value);
+
+ desc_item->is_binary = true;
+ desc_item->data_len = variable->len;
+ }
+
+ ecpg_free(desc_item->data); /* free() takes care of a potential NULL value */
+ desc_item->data = (char *) tobeinserted;
+}
+
+
+bool
+ECPGset_desc(int lineno, const char *desc_name, int index,...)
+{
+ va_list args;
+ struct descriptor *desc;
+ struct descriptor_item *desc_item;
+ struct variable *var;
+
+ desc = ecpg_find_desc(lineno, desc_name);
+ if (desc == NULL)
+ return false;
+
+ for (desc_item = desc->items; desc_item; desc_item = desc_item->next)
+ {
+ if (desc_item->num == index)
+ break;
+ }
+
+ if (desc_item == NULL)
+ {
+ desc_item = (struct descriptor_item *) ecpg_alloc(sizeof(*desc_item), lineno);
+ if (!desc_item)
+ return false;
+ desc_item->num = index;
+ if (desc->count < index)
+ desc->count = index;
+ desc_item->next = desc->items;
+ desc->items = desc_item;
+ }
+
+ if (!(var = (struct variable *) ecpg_alloc(sizeof(struct variable), lineno)))
+ return false;
+
+ va_start(args, index);
+
+ for (;;)
+ {
+ enum ECPGdtype itemtype;
+ char *tobeinserted = NULL;
+
+ itemtype = va_arg(args, enum ECPGdtype);
+
+ if (itemtype == ECPGd_EODT)
+ break;
+
+ var->type = va_arg(args, enum ECPGttype);
+ var->pointer = va_arg(args, char *);
+
+ var->varcharsize = va_arg(args, long);
+ var->arrsize = va_arg(args, long);
+ var->offset = va_arg(args, long);
+
+ if (var->arrsize == 0 || var->varcharsize == 0)
+ var->value = *((char **) (var->pointer));
+ else
+ var->value = var->pointer;
+
+ /*
+ * negative values are used to indicate an array without given bounds
+ */
+ /* reset to zero for us */
+ if (var->arrsize < 0)
+ var->arrsize = 0;
+ if (var->varcharsize < 0)
+ var->varcharsize = 0;
+
+ var->next = NULL;
+
+ switch (itemtype)
+ {
+ case ECPGd_data:
+ {
+ if (!ecpg_store_input(lineno, true, var, &tobeinserted, false))
+ {
+ ecpg_free(var);
+ va_end(args);
+ return false;
+ }
+
+ set_desc_attr(desc_item, var, tobeinserted);
+ tobeinserted = NULL;
+ break;
+ }
+
+ case ECPGd_indicator:
+ set_int_item(lineno, &desc_item->indicator, var->pointer, var->type);
+ break;
+
+ case ECPGd_length:
+ set_int_item(lineno, &desc_item->length, var->pointer, var->type);
+ break;
+
+ case ECPGd_precision:
+ set_int_item(lineno, &desc_item->precision, var->pointer, var->type);
+ break;
+
+ case ECPGd_scale:
+ set_int_item(lineno, &desc_item->scale, var->pointer, var->type);
+ break;
+
+ case ECPGd_type:
+ set_int_item(lineno, &desc_item->type, var->pointer, var->type);
+ break;
+
+ default:
+ {
+ char type_str[20];
+
+ snprintf(type_str, sizeof(type_str), "%d", itemtype);
+ ecpg_raise(lineno, ECPG_UNKNOWN_DESCRIPTOR_ITEM, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR, type_str);
+ ecpg_free(var);
+ va_end(args);
+ return false;
+ }
+ }
+ }
+ ecpg_free(var);
+ va_end(args);
+
+ return true;
+}
+
+/* Free the descriptor and items in it. */
+static void
+descriptor_free(struct descriptor *desc)
+{
+ struct descriptor_item *desc_item;
+
+ for (desc_item = desc->items; desc_item;)
+ {
+ struct descriptor_item *di;
+
+ ecpg_free(desc_item->data);
+ di = desc_item;
+ desc_item = desc_item->next;
+ ecpg_free(di);
+ }
+
+ ecpg_free(desc->name);
+ PQclear(desc->result);
+ ecpg_free(desc);
+}
+
+bool
+ECPGdeallocate_desc(int line, const char *name)
+{
+ struct descriptor *desc;
+ struct descriptor *prev;
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(line, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+
+ ecpg_init_sqlca(sqlca);
+ for (desc = get_descriptors(), prev = NULL; desc; prev = desc, desc = desc->next)
+ {
+ if (strcmp(name, desc->name) == 0)
+ {
+ if (prev)
+ prev->next = desc->next;
+ else
+ set_descriptors(desc->next);
+ descriptor_free(desc);
+ return true;
+ }
+ }
+ ecpg_raise(line, ECPG_UNKNOWN_DESCRIPTOR, ECPG_SQLSTATE_INVALID_SQL_DESCRIPTOR_NAME, name);
+ return false;
+}
+
+#ifdef ENABLE_THREAD_SAFETY
+
+/* Deallocate all descriptors in the list */
+static void
+descriptor_deallocate_all(struct descriptor *list)
+{
+ while (list)
+ {
+ struct descriptor *next = list->next;
+
+ descriptor_free(list);
+ list = next;
+ }
+}
+#endif /* ENABLE_THREAD_SAFETY */
+
+bool
+ECPGallocate_desc(int line, const char *name)
+{
+ struct descriptor *new;
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(line, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+
+ ecpg_init_sqlca(sqlca);
+ new = (struct descriptor *) ecpg_alloc(sizeof(struct descriptor), line);
+ if (!new)
+ return false;
+ new->next = get_descriptors();
+ new->name = ecpg_alloc(strlen(name) + 1, line);
+ if (!new->name)
+ {
+ ecpg_free(new);
+ return false;
+ }
+ new->count = -1;
+ new->items = NULL;
+ new->result = PQmakeEmptyPGresult(NULL, 0);
+ if (!new->result)
+ {
+ ecpg_free(new->name);
+ ecpg_free(new);
+ ecpg_raise(line, ECPG_OUT_OF_MEMORY, ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+ strcpy(new->name, name);
+ set_descriptors(new);
+ return true;
+}
+
+/* Find descriptor with name in the connection. */
+struct descriptor *
+ecpg_find_desc(int line, const char *name)
+{
+ struct descriptor *desc;
+
+ for (desc = get_descriptors(); desc; desc = desc->next)
+ {
+ if (strcmp(name, desc->name) == 0)
+ return desc;
+ }
+
+ ecpg_raise(line, ECPG_UNKNOWN_DESCRIPTOR, ECPG_SQLSTATE_INVALID_SQL_DESCRIPTOR_NAME, name);
+ return NULL; /* not found */
+}
+
+bool
+ECPGdescribe(int line, int compat, bool input, const char *connection_name, const char *stmt_name,...)
+{
+ bool ret = false;
+ struct connection *con;
+ struct prepared_statement *prep;
+ PGresult *res;
+ va_list args;
+
+ /* DESCRIBE INPUT is not yet supported */
+ if (input)
+ {
+ ecpg_raise(line, ECPG_UNSUPPORTED, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR, "DESCRIBE INPUT");
+ return ret;
+ }
+
+ con = ecpg_get_connection(connection_name);
+ if (!con)
+ {
+ ecpg_raise(line, ECPG_NO_CONN, ECPG_SQLSTATE_CONNECTION_DOES_NOT_EXIST,
+ connection_name ? connection_name : ecpg_gettext("NULL"));
+ return ret;
+ }
+ prep = ecpg_find_prepared_statement(stmt_name, con, NULL);
+ if (!prep)
+ {
+ ecpg_raise(line, ECPG_INVALID_STMT, ECPG_SQLSTATE_INVALID_SQL_STATEMENT_NAME, stmt_name);
+ return ret;
+ }
+
+ va_start(args, stmt_name);
+
+ for (;;)
+ {
+ enum ECPGttype type;
+ void *ptr;
+
+ /* variable type */
+ type = va_arg(args, enum ECPGttype);
+
+ if (type == ECPGt_EORT)
+ break;
+
+ /* rest of variable parameters */
+ ptr = va_arg(args, void *);
+ (void) va_arg(args, long); /* skip args */
+ (void) va_arg(args, long);
+ (void) va_arg(args, long);
+
+ /* variable indicator */
+ (void) va_arg(args, enum ECPGttype);
+ (void) va_arg(args, void *); /* skip args */
+ (void) va_arg(args, long);
+ (void) va_arg(args, long);
+ (void) va_arg(args, long);
+
+ switch (type)
+ {
+ case ECPGt_descriptor:
+ {
+ char *name = ptr;
+ struct descriptor *desc = ecpg_find_desc(line, name);
+
+ if (desc == NULL)
+ break;
+
+ res = PQdescribePrepared(con->connection, stmt_name);
+ if (!ecpg_check_PQresult(res, line, con->connection, compat))
+ break;
+
+ if (desc->result != NULL)
+ PQclear(desc->result);
+
+ desc->result = res;
+ ret = true;
+ break;
+ }
+ case ECPGt_sqlda:
+ {
+ if (INFORMIX_MODE(compat))
+ {
+ struct sqlda_compat **_sqlda = ptr;
+ struct sqlda_compat *sqlda;
+
+ res = PQdescribePrepared(con->connection, stmt_name);
+ if (!ecpg_check_PQresult(res, line, con->connection, compat))
+ break;
+
+ sqlda = ecpg_build_compat_sqlda(line, res, -1, compat);
+ if (sqlda)
+ {
+ struct sqlda_compat *sqlda_old = *_sqlda;
+ struct sqlda_compat *sqlda_old1;
+
+ while (sqlda_old)
+ {
+ sqlda_old1 = sqlda_old->desc_next;
+ free(sqlda_old);
+ sqlda_old = sqlda_old1;
+ }
+
+ *_sqlda = sqlda;
+ ret = true;
+ }
+
+ PQclear(res);
+ }
+ else
+ {
+ struct sqlda_struct **_sqlda = ptr;
+ struct sqlda_struct *sqlda;
+
+ res = PQdescribePrepared(con->connection, stmt_name);
+ if (!ecpg_check_PQresult(res, line, con->connection, compat))
+ break;
+
+ sqlda = ecpg_build_native_sqlda(line, res, -1, compat);
+ if (sqlda)
+ {
+ struct sqlda_struct *sqlda_old = *_sqlda;
+ struct sqlda_struct *sqlda_old1;
+
+ while (sqlda_old)
+ {
+ sqlda_old1 = sqlda_old->desc_next;
+ free(sqlda_old);
+ sqlda_old = sqlda_old1;
+ }
+
+ *_sqlda = sqlda;
+ ret = true;
+ }
+
+ PQclear(res);
+ }
+ break;
+ }
+ default:
+ /* nothing else may come */
+ ;
+ }
+ }
+
+ va_end(args);
+
+ return ret;
+}
diff --git a/src/interfaces/ecpg/ecpglib/ecpglib_extern.h b/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
new file mode 100644
index 0000000..c438cfb
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
@@ -0,0 +1,257 @@
+/* src/interfaces/ecpg/ecpglib/ecpglib_extern.h */
+
+#ifndef _ECPG_ECPGLIB_EXTERN_H
+#define _ECPG_ECPGLIB_EXTERN_H
+
+#include "ecpg_config.h"
+#include "ecpgtype.h"
+#include "libpq-fe.h"
+#include "sqlca.h"
+#include "sqlda-compat.h"
+#include "sqlda-native.h"
+
+#ifndef CHAR_BIT
+#include <limits.h>
+#endif
+#ifdef LOCALE_T_IN_XLOCALE
+#include <xlocale.h>
+#endif
+
+enum COMPAT_MODE
+{
+ ECPG_COMPAT_PGSQL = 0, ECPG_COMPAT_INFORMIX, ECPG_COMPAT_INFORMIX_SE, ECPG_COMPAT_ORACLE
+};
+
+extern bool ecpg_internal_regression_mode;
+
+#define INFORMIX_MODE(X) ((X) == ECPG_COMPAT_INFORMIX || (X) == ECPG_COMPAT_INFORMIX_SE)
+#define ORACLE_MODE(X) ((X) == ECPG_COMPAT_ORACLE)
+
+enum ARRAY_TYPE
+{
+ ECPG_ARRAY_ERROR, ECPG_ARRAY_NOT_SET, ECPG_ARRAY_ARRAY, ECPG_ARRAY_VECTOR, ECPG_ARRAY_NONE
+};
+
+#define ECPG_IS_ARRAY(X) ((X) == ECPG_ARRAY_ARRAY || (X) == ECPG_ARRAY_VECTOR)
+
+/* A generic varchar type. */
+struct ECPGgeneric_varchar
+{
+ int len;
+ char arr[FLEXIBLE_ARRAY_MEMBER];
+};
+
+/* A generic bytea type. */
+struct ECPGgeneric_bytea
+{
+ int len;
+ char arr[FLEXIBLE_ARRAY_MEMBER];
+};
+
+/*
+ * type information cache
+ */
+
+struct ECPGtype_information_cache
+{
+ struct ECPGtype_information_cache *next;
+ int oid;
+ enum ARRAY_TYPE isarray;
+};
+
+#ifdef HAVE_USELOCALE
+extern locale_t ecpg_clocale; /* LC_NUMERIC=C */
+#endif
+
+/* structure to store one statement */
+struct statement
+{
+ int lineno;
+ char *command;
+ char *name;
+ struct connection *connection;
+ enum COMPAT_MODE compat;
+ bool force_indicator;
+ enum ECPG_statement_type statement_type;
+ bool questionmarks;
+ struct variable *inlist;
+ struct variable *outlist;
+#ifdef HAVE_USELOCALE
+ locale_t oldlocale;
+#else
+ char *oldlocale;
+#ifdef HAVE__CONFIGTHREADLOCALE
+ int oldthreadlocale;
+#endif
+#endif
+ int nparams;
+ char **paramvalues;
+ int *paramlengths;
+ int *paramformats;
+ PGresult *results;
+};
+
+/* structure to store prepared statements for a connection */
+struct prepared_statement
+{
+ char *name;
+ bool prepared;
+ struct statement *stmt;
+ struct prepared_statement *next;
+};
+
+/* structure to store connections */
+struct connection
+{
+ char *name;
+ PGconn *connection;
+ bool autocommit;
+ struct ECPGtype_information_cache *cache_head;
+ struct prepared_statement *prep_stmts;
+ struct connection *next;
+};
+
+/* structure to store descriptors */
+struct descriptor
+{
+ char *name;
+ PGresult *result;
+ struct descriptor *next;
+ int count;
+ struct descriptor_item *items;
+};
+
+struct descriptor_item
+{
+ int num;
+ char *data;
+ int indicator;
+ int length;
+ int precision;
+ int scale;
+ int type;
+ bool is_binary;
+ int data_len;
+ struct descriptor_item *next;
+};
+
+struct variable
+{
+ enum ECPGttype type;
+ void *value;
+ void *pointer;
+ long varcharsize;
+ long arrsize;
+ long offset;
+ enum ECPGttype ind_type;
+ void *ind_value;
+ void *ind_pointer;
+ long ind_varcharsize;
+ long ind_arrsize;
+ long ind_offset;
+ struct variable *next;
+};
+
+struct var_list
+{
+ int number;
+ void *pointer;
+ struct var_list *next;
+};
+
+extern struct var_list *ivlist;
+
+/* Here are some methods used by the lib. */
+
+bool ecpg_add_mem(void *ptr, int lineno);
+
+bool ecpg_get_data(const PGresult *, int, int, int, enum ECPGttype type,
+ enum ECPGttype, char *, char *, long, long, long,
+ enum ARRAY_TYPE, enum COMPAT_MODE, bool);
+
+#ifdef ENABLE_THREAD_SAFETY
+void ecpg_pthreads_init(void);
+#endif
+struct connection *ecpg_get_connection(const char *);
+char *ecpg_alloc(long, int);
+char *ecpg_auto_alloc(long, int);
+char *ecpg_realloc(void *, long, int);
+void ecpg_free(void *);
+bool ecpg_init(const struct connection *, const char *, const int);
+char *ecpg_strdup(const char *, int);
+const char *ecpg_type_name(enum ECPGttype);
+int ecpg_dynamic_type(Oid);
+int sqlda_dynamic_type(Oid, enum COMPAT_MODE);
+void ecpg_clear_auto_mem(void);
+
+struct descriptor *ecpg_find_desc(int line, const char *name);
+
+struct prepared_statement *ecpg_find_prepared_statement(const char *,
+ struct connection *, struct prepared_statement **);
+
+bool ecpg_store_result(const PGresult *results, int act_field,
+ const struct statement *stmt, struct variable *var);
+bool ecpg_store_input(const int, const bool, const struct variable *, char **, bool);
+void ecpg_free_params(struct statement *stmt, bool print);
+bool ecpg_do_prologue(int, const int, const int, const char *, const bool,
+ enum ECPG_statement_type, const char *, va_list,
+ struct statement **);
+bool ecpg_build_params(struct statement *);
+bool ecpg_autostart_transaction(struct statement *stmt);
+bool ecpg_execute(struct statement *stmt);
+bool ecpg_process_output(struct statement *, bool);
+void ecpg_do_epilogue(struct statement *);
+bool ecpg_do(const int, const int, const int, const char *, const bool,
+ const int, const char *, va_list);
+
+bool ecpg_check_PQresult(PGresult *, int, PGconn *, enum COMPAT_MODE);
+void ecpg_raise(int line, int code, const char *sqlstate, const char *str);
+void ecpg_raise_backend(int line, PGresult *result, PGconn *conn, int compat);
+char *ecpg_prepared(const char *, struct connection *);
+bool ecpg_deallocate_all_conn(int lineno, enum COMPAT_MODE c, struct connection *conn);
+void ecpg_log(const char *format,...) pg_attribute_printf(1, 2);
+bool ecpg_auto_prepare(int, const char *, const int, char **, const char *);
+bool ecpg_register_prepared_stmt(struct statement *);
+void ecpg_init_sqlca(struct sqlca_t *sqlca);
+
+struct sqlda_compat *ecpg_build_compat_sqlda(int, PGresult *, int, enum COMPAT_MODE);
+void ecpg_set_compat_sqlda(int, struct sqlda_compat **, const PGresult *, int, enum COMPAT_MODE);
+struct sqlda_struct *ecpg_build_native_sqlda(int, PGresult *, int, enum COMPAT_MODE);
+void ecpg_set_native_sqlda(int, struct sqlda_struct **, const PGresult *, int, enum COMPAT_MODE);
+unsigned ecpg_hex_dec_len(unsigned srclen);
+unsigned ecpg_hex_enc_len(unsigned srclen);
+unsigned ecpg_hex_encode(const char *src, unsigned len, char *dst);
+
+#ifdef ENABLE_NLS
+extern char *ecpg_gettext(const char *msgid) pg_attribute_format_arg(1);
+#else
+#define ecpg_gettext(x) (x)
+#endif
+
+/* SQLSTATE values generated or processed by ecpglib (intentionally
+ * not exported -- users should refer to the codes directly) */
+
+#define ECPG_SQLSTATE_NO_DATA "02000"
+#define ECPG_SQLSTATE_USING_CLAUSE_DOES_NOT_MATCH_PARAMETERS "07001"
+#define ECPG_SQLSTATE_USING_CLAUSE_DOES_NOT_MATCH_TARGETS "07002"
+#define ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION "07006"
+#define ECPG_SQLSTATE_INVALID_DESCRIPTOR_INDEX "07009"
+#define ECPG_SQLSTATE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION "08001"
+#define ECPG_SQLSTATE_CONNECTION_DOES_NOT_EXIST "08003"
+#define ECPG_SQLSTATE_TRANSACTION_RESOLUTION_UNKNOWN "08007"
+#define ECPG_SQLSTATE_CARDINALITY_VIOLATION "21000"
+#define ECPG_SQLSTATE_NULL_VALUE_NO_INDICATOR_PARAMETER "22002"
+#define ECPG_SQLSTATE_ACTIVE_SQL_TRANSACTION "25001"
+#define ECPG_SQLSTATE_NO_ACTIVE_SQL_TRANSACTION "25P01"
+#define ECPG_SQLSTATE_INVALID_SQL_STATEMENT_NAME "26000"
+#define ECPG_SQLSTATE_INVALID_SQL_DESCRIPTOR_NAME "33000"
+#define ECPG_SQLSTATE_INVALID_CURSOR_NAME "34000"
+#define ECPG_SQLSTATE_SYNTAX_ERROR "42601"
+#define ECPG_SQLSTATE_DATATYPE_MISMATCH "42804"
+#define ECPG_SQLSTATE_DUPLICATE_CURSOR "42P03"
+
+/* implementation-defined internal errors of ecpg */
+#define ECPG_SQLSTATE_ECPG_INTERNAL_ERROR "YE000"
+#define ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY "YE001"
+
+#endif /* _ECPG_ECPGLIB_EXTERN_H */
diff --git a/src/interfaces/ecpg/ecpglib/error.c b/src/interfaces/ecpg/ecpglib/error.c
new file mode 100644
index 0000000..26fdcdb
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/error.c
@@ -0,0 +1,346 @@
+/* src/interfaces/ecpg/ecpglib/error.c */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include "ecpgerrno.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+#include "sqlca.h"
+
+void
+ecpg_raise(int line, int code, const char *sqlstate, const char *str)
+{
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ {
+ ecpg_log("out of memory");
+ ECPGfree_auto_mem();
+ return;
+ }
+
+ sqlca->sqlcode = code;
+ strncpy(sqlca->sqlstate, sqlstate, sizeof(sqlca->sqlstate));
+
+ switch (code)
+ {
+ case ECPG_NOT_FOUND:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("no data found on line %d"), line);
+ break;
+
+ case ECPG_OUT_OF_MEMORY:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("out of memory on line %d"), line);
+ break;
+
+ case ECPG_UNSUPPORTED:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("unsupported type \"%s\" on line %d"), str, line);
+ break;
+
+ case ECPG_TOO_MANY_ARGUMENTS:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("too many arguments on line %d"), line);
+ break;
+
+ case ECPG_TOO_FEW_ARGUMENTS:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("too few arguments on line %d"), line);
+ break;
+
+ case ECPG_INT_FORMAT:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("invalid input syntax for type int: \"%s\", on line %d"), str, line);
+ break;
+
+ case ECPG_UINT_FORMAT:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("invalid input syntax for type unsigned int: \"%s\", on line %d"), str, line);
+ break;
+
+ case ECPG_FLOAT_FORMAT:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("invalid input syntax for floating-point type: \"%s\", on line %d"), str, line);
+ break;
+
+ case ECPG_CONVERT_BOOL:
+ if (str)
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("invalid syntax for type boolean: \"%s\", on line %d"), str, line);
+ else
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("could not convert boolean value: size mismatch, on line %d"), line);
+ break;
+
+ case ECPG_EMPTY:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("empty query on line %d"), line);
+ break;
+
+ case ECPG_MISSING_INDICATOR:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("null value without indicator on line %d"), line);
+ break;
+
+ case ECPG_NO_ARRAY:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("variable does not have an array type on line %d"), line);
+ break;
+
+ case ECPG_DATA_NOT_ARRAY:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("data read from server is not an array on line %d"), line);
+ break;
+
+ case ECPG_ARRAY_INSERT:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("inserting an array of variables is not supported on line %d"), line);
+ break;
+
+ case ECPG_NO_CONN:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("connection \"%s\" does not exist on line %d"), str, line);
+ break;
+
+ case ECPG_NOT_CONN:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("not connected to connection \"%s\" on line %d"), str, line);
+ break;
+
+ case ECPG_INVALID_STMT:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("invalid statement name \"%s\" on line %d"), str, line);
+ break;
+
+ case ECPG_UNKNOWN_DESCRIPTOR:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("descriptor \"%s\" not found on line %d"), str, line);
+ break;
+
+ case ECPG_INVALID_DESCRIPTOR_INDEX:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("descriptor index out of range on line %d"), line);
+ break;
+
+ case ECPG_UNKNOWN_DESCRIPTOR_ITEM:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("unrecognized descriptor item \"%s\" on line %d"), str, line);
+ break;
+
+ case ECPG_VAR_NOT_NUMERIC:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("variable does not have a numeric type on line %d"), line);
+ break;
+
+ case ECPG_VAR_NOT_CHAR:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("variable does not have a character type on line %d"), line);
+ break;
+
+ case ECPG_TRANS:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("error in transaction processing on line %d"), line);
+ break;
+
+ case ECPG_CONNECT:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("could not connect to database \"%s\" on line %d"), str, line);
+ break;
+
+ default:
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
+ /*------
+ translator: this string will be truncated at 149 characters expanded. */
+ ecpg_gettext("SQL error %d on line %d"), code, line);
+ break;
+ }
+
+ sqlca->sqlerrm.sqlerrml = strlen(sqlca->sqlerrm.sqlerrmc);
+ ecpg_log("raising sqlcode %d on line %d: %s\n", code, line, sqlca->sqlerrm.sqlerrmc);
+
+ /* free all memory we have allocated for the user */
+ ECPGfree_auto_mem();
+}
+
+void
+ecpg_raise_backend(int line, PGresult *result, PGconn *conn, int compat)
+{
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+ char *sqlstate;
+ char *message;
+
+ if (sqlca == NULL)
+ {
+ ecpg_log("out of memory");
+ ECPGfree_auto_mem();
+ return;
+ }
+
+ /*
+ * PQresultErrorField will return NULL if "result" is NULL, or if there is
+ * no such field, which will happen for libpq-generated errors. Fall back
+ * to PQerrorMessage in such cases.
+ */
+ sqlstate = PQresultErrorField(result, PG_DIAG_SQLSTATE);
+ if (sqlstate == NULL)
+ sqlstate = ECPG_SQLSTATE_ECPG_INTERNAL_ERROR;
+ message = PQresultErrorField(result, PG_DIAG_MESSAGE_PRIMARY);
+ if (message == NULL)
+ message = PQerrorMessage(conn);
+
+ if (strcmp(sqlstate, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR) == 0)
+ {
+ /*
+ * we might get here if the connection breaks down, so let's check for
+ * this instead of giving just the generic internal error
+ */
+ if (PQstatus(conn) == CONNECTION_BAD)
+ {
+ sqlstate = "57P02";
+ message = ecpg_gettext("the connection to the server was lost");
+ }
+ }
+
+ /* copy error message */
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc), "%s on line %d", message, line);
+ sqlca->sqlerrm.sqlerrml = strlen(sqlca->sqlerrm.sqlerrmc);
+
+ /* copy SQLSTATE */
+ strncpy(sqlca->sqlstate, sqlstate, sizeof(sqlca->sqlstate));
+
+ /* assign SQLCODE for backward compatibility */
+ if (strncmp(sqlca->sqlstate, "23505", sizeof(sqlca->sqlstate)) == 0)
+ sqlca->sqlcode = INFORMIX_MODE(compat) ? ECPG_INFORMIX_DUPLICATE_KEY : ECPG_DUPLICATE_KEY;
+ else if (strncmp(sqlca->sqlstate, "21000", sizeof(sqlca->sqlstate)) == 0)
+ sqlca->sqlcode = INFORMIX_MODE(compat) ? ECPG_INFORMIX_SUBSELECT_NOT_ONE : ECPG_SUBSELECT_NOT_ONE;
+ else
+ sqlca->sqlcode = ECPG_PGSQL;
+
+ ecpg_log("raising sqlstate %.*s (sqlcode %ld): %s\n",
+ (int) sizeof(sqlca->sqlstate), sqlca->sqlstate, sqlca->sqlcode, sqlca->sqlerrm.sqlerrmc);
+
+ /* free all memory we have allocated for the user */
+ ECPGfree_auto_mem();
+}
+
+/* filter out all error codes */
+bool
+ecpg_check_PQresult(PGresult *results, int lineno, PGconn *connection, enum COMPAT_MODE compat)
+{
+ if (results == NULL)
+ {
+ ecpg_log("ecpg_check_PQresult on line %d: no result - %s", lineno, PQerrorMessage(connection));
+ ecpg_raise_backend(lineno, NULL, connection, compat);
+ return false;
+ }
+
+ switch (PQresultStatus(results))
+ {
+
+ case PGRES_TUPLES_OK:
+ return true;
+ break;
+ case PGRES_EMPTY_QUERY:
+ /* do nothing */
+ ecpg_raise(lineno, ECPG_EMPTY, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR, NULL);
+ PQclear(results);
+ return false;
+ break;
+ case PGRES_COMMAND_OK:
+ return true;
+ break;
+ case PGRES_NONFATAL_ERROR:
+ case PGRES_FATAL_ERROR:
+ case PGRES_BAD_RESPONSE:
+ ecpg_log("ecpg_check_PQresult on line %d: bad response - %s", lineno, PQresultErrorMessage(results));
+ ecpg_raise_backend(lineno, results, connection, compat);
+ PQclear(results);
+ return false;
+ break;
+ case PGRES_COPY_OUT:
+ return true;
+ break;
+ case PGRES_COPY_IN:
+ ecpg_log("ecpg_check_PQresult on line %d: COPY IN data transfer in progress\n", lineno);
+ PQendcopy(connection);
+ PQclear(results);
+ return false;
+ break;
+ default:
+ ecpg_log("ecpg_check_PQresult on line %d: unknown execution status type\n",
+ lineno);
+ ecpg_raise_backend(lineno, results, connection, compat);
+ PQclear(results);
+ return false;
+ break;
+ }
+}
+
+/* print out an error message */
+void
+sqlprint(void)
+{
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ {
+ ecpg_log("out of memory");
+ return;
+ }
+
+ sqlca->sqlerrm.sqlerrmc[sqlca->sqlerrm.sqlerrml] = '\0';
+ fprintf(stderr, ecpg_gettext("SQL error: %s\n"), sqlca->sqlerrm.sqlerrmc);
+}
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c
new file mode 100644
index 0000000..2ebe665
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/execute.c
@@ -0,0 +1,2301 @@
+/* src/interfaces/ecpg/ecpglib/execute.c */
+
+/*
+ * The aim is to get a simpler interface to the database routines.
+ * All the tedious messing around with tuples is supposed to be hidden
+ * by this function.
+ */
+/* Author: Linus Tolke
+ (actually most if the code is "borrowed" from the distribution and just
+ slightly modified)
+ */
+
+/* Taken over as part of PostgreSQL by Michael Meskes <meskes@postgresql.org>
+ on Feb. 5th, 1998 */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include <math.h>
+
+#include "catalog/pg_type_d.h"
+#include "ecpgerrno.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+#include "pgtypes_date.h"
+#include "pgtypes_interval.h"
+#include "pgtypes_numeric.h"
+#include "pgtypes_timestamp.h"
+#include "sql3types.h"
+#include "sqlca.h"
+#include "sqlda-compat.h"
+#include "sqlda-native.h"
+
+/*
+ * This function returns a newly malloced string that has ' and \
+ * escaped.
+ */
+static char *
+quote_postgres(char *arg, bool quote, int lineno)
+{
+ char *res;
+ size_t length;
+ size_t escaped_len;
+ size_t buffer_len;
+
+ /*
+ * if quote is false we just need to store things in a descriptor they
+ * will be quoted once they are inserted in a statement
+ */
+ if (!quote)
+ return arg;
+ else
+ {
+ length = strlen(arg);
+ buffer_len = 2 * length + 1;
+ res = (char *) ecpg_alloc(buffer_len + 3, lineno);
+ if (!res)
+ return res;
+ escaped_len = PQescapeString(res + 1, arg, buffer_len);
+ if (length == escaped_len)
+ {
+ res[0] = res[escaped_len + 1] = '\'';
+ res[escaped_len + 2] = '\0';
+ }
+ else
+ {
+ /*
+ * We don't know if the target database is using
+ * standard_conforming_strings, so we always use E'' strings.
+ */
+ memmove(res + 2, res + 1, escaped_len);
+ res[0] = ESCAPE_STRING_SYNTAX;
+ res[1] = res[escaped_len + 2] = '\'';
+ res[escaped_len + 3] = '\0';
+ }
+ ecpg_free(arg);
+ return res;
+ }
+}
+
+static void
+free_variable(struct variable *var)
+{
+ struct variable *var_next;
+
+ while (var)
+ {
+ var_next = var->next;
+ ecpg_free(var);
+ var = var_next;
+ }
+}
+
+static void
+free_statement(struct statement *stmt)
+{
+ if (stmt == NULL)
+ return;
+ free_variable(stmt->inlist);
+ free_variable(stmt->outlist);
+ ecpg_free(stmt->command);
+ ecpg_free(stmt->name);
+#ifndef HAVE_USELOCALE
+ ecpg_free(stmt->oldlocale);
+#endif
+ ecpg_free(stmt);
+}
+
+static int
+next_insert(char *text, int pos, bool questionmarks, bool std_strings)
+{
+ bool string = false;
+ int p = pos;
+
+ for (; text[p] != '\0'; p++)
+ {
+ if (string && !std_strings && text[p] == '\\') /* escape character */
+ p++;
+ else if (text[p] == '\'')
+ string = string ? false : true;
+ else if (!string)
+ {
+ if (text[p] == '$' && isdigit((unsigned char) text[p + 1]))
+ {
+ /* this can be either a dollar quote or a variable */
+ int i;
+
+ for (i = p + 1; isdigit((unsigned char) text[i]); i++)
+ /* empty loop body */ ;
+ if (!isalpha((unsigned char) text[i]) &&
+ isascii((unsigned char) text[i]) && text[i] != '_')
+ /* not dollar delimited quote */
+ return p;
+ }
+ else if (questionmarks && text[p] == '?')
+ {
+ /* also allow old style placeholders */
+ return p;
+ }
+ }
+ }
+
+ return -1;
+}
+
+static bool
+ecpg_type_infocache_push(struct ECPGtype_information_cache **cache, int oid, enum ARRAY_TYPE isarray, int lineno)
+{
+ struct ECPGtype_information_cache *new_entry
+ = (struct ECPGtype_information_cache *) ecpg_alloc(sizeof(struct ECPGtype_information_cache), lineno);
+
+ if (new_entry == NULL)
+ return false;
+
+ new_entry->oid = oid;
+ new_entry->isarray = isarray;
+ new_entry->next = *cache;
+ *cache = new_entry;
+ return true;
+}
+
+static enum ARRAY_TYPE
+ecpg_is_type_an_array(int type, const struct statement *stmt, const struct variable *var)
+{
+ char *array_query;
+ enum ARRAY_TYPE isarray = ECPG_ARRAY_NOT_SET;
+ PGresult *query;
+ struct ECPGtype_information_cache *cache_entry;
+
+ if ((stmt->connection->cache_head) == NULL)
+ {
+ /*
+ * Text like types are not an array for ecpg, but postgres counts them
+ * as an array. This define reminds you to not 'correct' these values.
+ */
+#define not_an_array_in_ecpg ECPG_ARRAY_NONE
+
+ /* populate cache with well known types to speed things up */
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), BOOLOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), BYTEAOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), CHAROID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), NAMEOID, not_an_array_in_ecpg, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), INT8OID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), INT2OID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), INT2VECTOROID, ECPG_ARRAY_VECTOR, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), INT4OID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), REGPROCOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), TEXTOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), OIDOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), TIDOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), XIDOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), CIDOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), OIDVECTOROID, ECPG_ARRAY_VECTOR, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), POINTOID, ECPG_ARRAY_VECTOR, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), LSEGOID, ECPG_ARRAY_VECTOR, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), PATHOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), BOXOID, ECPG_ARRAY_VECTOR, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), POLYGONOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), LINEOID, ECPG_ARRAY_VECTOR, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), FLOAT4OID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), FLOAT8OID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), UNKNOWNOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), CIRCLEOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), MONEYOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), INETOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), CIDROID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), BPCHAROID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), VARCHAROID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), DATEOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), TIMEOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), TIMESTAMPOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), TIMESTAMPTZOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), INTERVALOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), TIMETZOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), BITOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), VARBITOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ if (!ecpg_type_infocache_push(&(stmt->connection->cache_head), NUMERICOID, ECPG_ARRAY_NONE, stmt->lineno))
+ return ECPG_ARRAY_ERROR;
+ }
+
+ for (cache_entry = (stmt->connection->cache_head); cache_entry != NULL; cache_entry = cache_entry->next)
+ {
+ if (cache_entry->oid == type)
+ return cache_entry->isarray;
+ }
+
+ array_query = (char *) ecpg_alloc(strlen("select typlen from pg_type where oid= and typelem<>0") + 11, stmt->lineno);
+ if (array_query == NULL)
+ return ECPG_ARRAY_ERROR;
+
+ sprintf(array_query, "select typlen from pg_type where oid=%d and typelem<>0", type);
+ query = PQexec(stmt->connection->connection, array_query);
+ ecpg_free(array_query);
+ if (!ecpg_check_PQresult(query, stmt->lineno, stmt->connection->connection, stmt->compat))
+ return ECPG_ARRAY_ERROR;
+ else if (PQresultStatus(query) == PGRES_TUPLES_OK)
+ {
+ if (PQntuples(query) == 0)
+ isarray = ECPG_ARRAY_NONE;
+ else
+ {
+ isarray = (atol((char *) PQgetvalue(query, 0, 0)) == -1) ? ECPG_ARRAY_ARRAY : ECPG_ARRAY_VECTOR;
+ if (ecpg_dynamic_type(type) == SQL3_CHARACTER ||
+ ecpg_dynamic_type(type) == SQL3_CHARACTER_VARYING)
+ {
+ /*
+ * arrays of character strings are not yet implemented
+ */
+ isarray = ECPG_ARRAY_NONE;
+ }
+ }
+ PQclear(query);
+ }
+ else
+ return ECPG_ARRAY_ERROR;
+
+ ecpg_type_infocache_push(&(stmt->connection->cache_head), type, isarray, stmt->lineno);
+ ecpg_log("ecpg_is_type_an_array on line %d: type (%d); C (%d); array (%s)\n", stmt->lineno, type, var->type, ECPG_IS_ARRAY(isarray) ? "yes" : "no");
+ return isarray;
+}
+
+
+bool
+ecpg_store_result(const PGresult *results, int act_field,
+ const struct statement *stmt, struct variable *var)
+{
+ enum ARRAY_TYPE isarray;
+ int act_tuple,
+ ntuples = PQntuples(results);
+ bool status = true;
+
+ if ((isarray = ecpg_is_type_an_array(PQftype(results, act_field), stmt, var)) == ECPG_ARRAY_ERROR)
+ {
+ ecpg_raise(stmt->lineno, ECPG_OUT_OF_MEMORY, ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+
+ if (isarray == ECPG_ARRAY_NONE)
+ {
+ /*
+ * if we don't have enough space, we cannot read all tuples
+ */
+ if ((var->arrsize > 0 && ntuples > var->arrsize) || (var->ind_arrsize > 0 && ntuples > var->ind_arrsize))
+ {
+ ecpg_log("ecpg_store_result on line %d: incorrect number of matches; %d don't fit into array of %ld\n",
+ stmt->lineno, ntuples, var->arrsize);
+ ecpg_raise(stmt->lineno, INFORMIX_MODE(stmt->compat) ? ECPG_INFORMIX_SUBSELECT_NOT_ONE : ECPG_TOO_MANY_MATCHES, ECPG_SQLSTATE_CARDINALITY_VIOLATION, NULL);
+ return false;
+ }
+ }
+ else
+ {
+ /*
+ * since we read an array, the variable has to be an array too
+ */
+ if (var->arrsize == 0)
+ {
+ ecpg_raise(stmt->lineno, ECPG_NO_ARRAY, ECPG_SQLSTATE_DATATYPE_MISMATCH, NULL);
+ return false;
+ }
+ }
+
+ /*
+ * allocate memory for NULL pointers
+ */
+ if ((var->arrsize == 0 || var->varcharsize == 0) && var->value == NULL)
+ {
+ int len = 0;
+
+ if (!PQfformat(results, act_field))
+ {
+ switch (var->type)
+ {
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ if (!var->varcharsize && !var->arrsize)
+ {
+ /* special mode for handling char**foo=0 */
+ for (act_tuple = 0; act_tuple < ntuples; act_tuple++)
+ len += strlen(PQgetvalue(results, act_tuple, act_field)) + 1;
+ len *= var->offset; /* should be 1, but YMNK */
+ len += (ntuples + 1) * sizeof(char *);
+ }
+ else
+ {
+ var->varcharsize = 0;
+ /* check strlen for each tuple */
+ for (act_tuple = 0; act_tuple < ntuples; act_tuple++)
+ {
+ int len = strlen(PQgetvalue(results, act_tuple, act_field)) + 1;
+
+ if (len > var->varcharsize)
+ var->varcharsize = len;
+ }
+ var->offset *= var->varcharsize;
+ len = var->offset * ntuples;
+ }
+ break;
+ case ECPGt_varchar:
+ len = ntuples * (var->varcharsize + sizeof(int));
+ break;
+ default:
+ len = var->offset * ntuples;
+ break;
+ }
+ }
+ else
+ {
+ for (act_tuple = 0; act_tuple < ntuples; act_tuple++)
+ len += PQgetlength(results, act_tuple, act_field);
+ }
+
+ ecpg_log("ecpg_store_result on line %d: allocating memory for %d tuples\n", stmt->lineno, ntuples);
+ var->value = (char *) ecpg_auto_alloc(len, stmt->lineno);
+ if (!var->value)
+ return false;
+ *((char **) var->pointer) = var->value;
+ }
+
+ /* allocate indicator variable if needed */
+ if ((var->ind_arrsize == 0 || var->ind_varcharsize == 0) && var->ind_value == NULL && var->ind_pointer != NULL)
+ {
+ int len = var->ind_offset * ntuples;
+
+ var->ind_value = (char *) ecpg_auto_alloc(len, stmt->lineno);
+ if (!var->ind_value)
+ return false;
+ *((char **) var->ind_pointer) = var->ind_value;
+ }
+
+ /* fill the variable with the tuple(s) */
+ if (!var->varcharsize && !var->arrsize &&
+ (var->type == ECPGt_char || var->type == ECPGt_unsigned_char || var->type == ECPGt_string))
+ {
+ /* special mode for handling char**foo=0 */
+
+ /* filling the array of (char*)s */
+ char **current_string = (char **) var->value;
+
+ /* storing the data (after the last array element) */
+ char *current_data_location = (char *) &current_string[ntuples + 1];
+
+ for (act_tuple = 0; act_tuple < ntuples && status; act_tuple++)
+ {
+ int len = strlen(PQgetvalue(results, act_tuple, act_field)) + 1;
+
+ if (!ecpg_get_data(results, act_tuple, act_field, stmt->lineno,
+ var->type, var->ind_type, current_data_location,
+ var->ind_value, len, 0, var->ind_offset, isarray, stmt->compat, stmt->force_indicator))
+ status = false;
+ else
+ {
+ *current_string = current_data_location;
+ current_data_location += len;
+ current_string++;
+ }
+ }
+
+ /* terminate the list */
+ *current_string = NULL;
+ }
+ else
+ {
+ for (act_tuple = 0; act_tuple < ntuples && status; act_tuple++)
+ {
+ if (!ecpg_get_data(results, act_tuple, act_field, stmt->lineno,
+ var->type, var->ind_type, var->value,
+ var->ind_value, var->varcharsize, var->offset, var->ind_offset, isarray, stmt->compat, stmt->force_indicator))
+ status = false;
+ }
+ }
+ return status;
+}
+
+static void
+sprintf_double_value(char *ptr, double value, const char *delim)
+{
+ if (isnan(value))
+ sprintf(ptr, "%s%s", "NaN", delim);
+ else if (isinf(value))
+ {
+ if (value < 0)
+ sprintf(ptr, "%s%s", "-Infinity", delim);
+ else
+ sprintf(ptr, "%s%s", "Infinity", delim);
+ }
+ else
+ sprintf(ptr, "%.15g%s", value, delim);
+}
+
+static void
+sprintf_float_value(char *ptr, float value, const char *delim)
+{
+ if (isnan(value))
+ sprintf(ptr, "%s%s", "NaN", delim);
+ else if (isinf(value))
+ {
+ if (value < 0)
+ sprintf(ptr, "%s%s", "-Infinity", delim);
+ else
+ sprintf(ptr, "%s%s", "Infinity", delim);
+ }
+ else
+ sprintf(ptr, "%.15g%s", value, delim);
+}
+
+static char *
+convert_bytea_to_string(char *from_data, int from_len, int lineno)
+{
+ char *to_data;
+ int to_len = ecpg_hex_enc_len(from_len) + 4 + 1; /* backslash + 'x' +
+ * quote + quote */
+
+ to_data = ecpg_alloc(to_len, lineno);
+ if (!to_data)
+ return NULL;
+
+ strcpy(to_data, "'\\x");
+ ecpg_hex_encode(from_data, from_len, to_data + 3);
+ strcpy(to_data + 3 + ecpg_hex_enc_len(from_len), "\'");
+
+ return to_data;
+}
+
+bool
+ecpg_store_input(const int lineno, const bool force_indicator, const struct variable *var,
+ char **tobeinserted_p, bool quote)
+{
+ char *mallocedval = NULL;
+ char *newcopy = NULL;
+
+ /*
+ * arrays are not possible unless the column is an array, too FIXME: we do
+ * not know if the column is an array here array input to singleton column
+ * will result in a runtime error
+ */
+
+ /*
+ * Some special treatment is needed for records since we want their
+ * contents to arrive in a comma-separated list on insert (I think).
+ */
+
+ *tobeinserted_p = "";
+
+ /* check for null value and set input buffer accordingly */
+ switch (var->ind_type)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ if (*(short *) var->ind_value < 0)
+ *tobeinserted_p = NULL;
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ if (*(int *) var->ind_value < 0)
+ *tobeinserted_p = NULL;
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ if (*(long *) var->ind_value < 0L)
+ *tobeinserted_p = NULL;
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ if (*(long long int *) var->ind_value < (long long) 0)
+ *tobeinserted_p = NULL;
+ break;
+ case ECPGt_NO_INDICATOR:
+ if (force_indicator == false)
+ {
+ if (ECPGis_noind_null(var->type, var->value))
+ *tobeinserted_p = NULL;
+ }
+ break;
+ default:
+ break;
+ }
+ if (*tobeinserted_p != NULL)
+ {
+ int asize = var->arrsize ? var->arrsize : 1;
+
+ switch (var->type)
+ {
+ int element;
+
+ case ECPGt_short:
+ if (!(mallocedval = ecpg_alloc(asize * 20, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf(mallocedval + strlen(mallocedval), "%hd,", ((short *) var->value)[element]);
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf(mallocedval, "%hd", *((short *) var->value));
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_int:
+ if (!(mallocedval = ecpg_alloc(asize * 20, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf(mallocedval + strlen(mallocedval), "%d,", ((int *) var->value)[element]);
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf(mallocedval, "%d", *((int *) var->value));
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_unsigned_short:
+ if (!(mallocedval = ecpg_alloc(asize * 20, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf(mallocedval + strlen(mallocedval), "%hu,", ((unsigned short *) var->value)[element]);
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf(mallocedval, "%hu", *((unsigned short *) var->value));
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_unsigned_int:
+ if (!(mallocedval = ecpg_alloc(asize * 20, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf(mallocedval + strlen(mallocedval), "%u,", ((unsigned int *) var->value)[element]);
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf(mallocedval, "%u", *((unsigned int *) var->value));
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_long:
+ if (!(mallocedval = ecpg_alloc(asize * 20, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf(mallocedval + strlen(mallocedval), "%ld,", ((long *) var->value)[element]);
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf(mallocedval, "%ld", *((long *) var->value));
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_unsigned_long:
+ if (!(mallocedval = ecpg_alloc(asize * 20, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf(mallocedval + strlen(mallocedval), "%lu,", ((unsigned long *) var->value)[element]);
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf(mallocedval, "%lu", *((unsigned long *) var->value));
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_long_long:
+ if (!(mallocedval = ecpg_alloc(asize * 30, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf(mallocedval + strlen(mallocedval), "%lld,", ((long long int *) var->value)[element]);
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf(mallocedval, "%lld", *((long long int *) var->value));
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_unsigned_long_long:
+ if (!(mallocedval = ecpg_alloc(asize * 30, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf(mallocedval + strlen(mallocedval), "%llu,", ((unsigned long long int *) var->value)[element]);
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf(mallocedval, "%llu", *((unsigned long long int *) var->value));
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_float:
+ if (!(mallocedval = ecpg_alloc(asize * 25, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf_float_value(mallocedval + strlen(mallocedval), ((float *) var->value)[element], ",");
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf_float_value(mallocedval, *((float *) var->value), "");
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_double:
+ if (!(mallocedval = ecpg_alloc(asize * 25, lineno)))
+ return false;
+
+ if (asize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf_double_value(mallocedval + strlen(mallocedval), ((double *) var->value)[element], ",");
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ sprintf_double_value(mallocedval, *((double *) var->value), "");
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_bool:
+ if (!(mallocedval = ecpg_alloc(var->arrsize + sizeof("{}"), lineno)))
+ return false;
+
+ if (var->arrsize > 1)
+ {
+ strcpy(mallocedval, "{");
+
+ for (element = 0; element < asize; element++)
+ sprintf(mallocedval + strlen(mallocedval), "%c,", (((bool *) var->value)[element]) ? 't' : 'f');
+
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+ }
+ else
+ {
+ if (var->offset == sizeof(char))
+ sprintf(mallocedval, "%c", (*((char *) var->value)) ? 't' : 'f');
+ else if (var->offset == sizeof(int))
+ sprintf(mallocedval, "%c", (*((int *) var->value)) ? 't' : 'f');
+ else
+ ecpg_raise(lineno, ECPG_CONVERT_BOOL, ECPG_SQLSTATE_DATATYPE_MISMATCH, NULL);
+ }
+
+ *tobeinserted_p = mallocedval;
+ break;
+
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ {
+ /* set slen to string length if type is char * */
+ int slen = (var->varcharsize == 0) ? strlen((char *) var->value) : (unsigned int) var->varcharsize;
+
+ if (!(newcopy = ecpg_alloc(slen + 1, lineno)))
+ return false;
+
+ strncpy(newcopy, (char *) var->value, slen);
+ newcopy[slen] = '\0';
+
+ mallocedval = quote_postgres(newcopy, quote, lineno);
+ if (!mallocedval)
+ {
+ ecpg_free(newcopy);
+ return false;
+ }
+
+ *tobeinserted_p = mallocedval;
+ }
+ break;
+ case ECPGt_const:
+ case ECPGt_char_variable:
+ {
+ int slen = strlen((char *) var->value);
+
+ if (!(mallocedval = ecpg_alloc(slen + 1, lineno)))
+ return false;
+
+ strncpy(mallocedval, (char *) var->value, slen);
+ mallocedval[slen] = '\0';
+
+ *tobeinserted_p = mallocedval;
+ }
+ break;
+
+ case ECPGt_bytea:
+ {
+ struct ECPGgeneric_bytea *variable =
+ (struct ECPGgeneric_bytea *) (var->value);
+
+ if (!(mallocedval = (char *) ecpg_alloc(variable->len, lineno)))
+ return false;
+
+ memcpy(mallocedval, variable->arr, variable->len);
+ *tobeinserted_p = mallocedval;
+ }
+ break;
+
+ case ECPGt_varchar:
+ {
+ struct ECPGgeneric_varchar *variable =
+ (struct ECPGgeneric_varchar *) (var->value);
+
+ if (!(newcopy = (char *) ecpg_alloc(variable->len + 1, lineno)))
+ return false;
+
+ strncpy(newcopy, variable->arr, variable->len);
+ newcopy[variable->len] = '\0';
+
+ mallocedval = quote_postgres(newcopy, quote, lineno);
+ if (!mallocedval)
+ {
+ ecpg_free(newcopy);
+ return false;
+ }
+
+ *tobeinserted_p = mallocedval;
+ }
+ break;
+
+ case ECPGt_decimal:
+ case ECPGt_numeric:
+ {
+ char *str = NULL;
+ int slen;
+ numeric *nval;
+
+ if (var->arrsize > 1)
+ mallocedval = ecpg_strdup("{", lineno);
+ else
+ mallocedval = ecpg_strdup("", lineno);
+
+ if (!mallocedval)
+ return false;
+
+ for (element = 0; element < asize; element++)
+ {
+ int result;
+
+ nval = PGTYPESnumeric_new();
+ if (!nval)
+ {
+ ecpg_free(mallocedval);
+ return false;
+ }
+
+ if (var->type == ECPGt_numeric)
+ result = PGTYPESnumeric_copy(&(((numeric *) (var->value))[element]), nval);
+ else
+ result = PGTYPESnumeric_from_decimal(&(((decimal *) (var->value))[element]), nval);
+
+ if (result != 0)
+ {
+ PGTYPESnumeric_free(nval);
+ ecpg_free(mallocedval);
+ return false;
+ }
+
+ str = PGTYPESnumeric_to_asc(nval, nval->dscale);
+ slen = strlen(str);
+ PGTYPESnumeric_free(nval);
+
+ if (!(newcopy = ecpg_realloc(mallocedval, strlen(mallocedval) + slen + 2, lineno)))
+ {
+ ecpg_free(mallocedval);
+ ecpg_free(str);
+ return false;
+ }
+ mallocedval = newcopy;
+
+ /* also copy trailing '\0' */
+ memcpy(mallocedval + strlen(mallocedval), str, slen + 1);
+ if (var->arrsize > 1)
+ strcpy(mallocedval + strlen(mallocedval), ",");
+
+ ecpg_free(str);
+ }
+
+ if (var->arrsize > 1)
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+
+ *tobeinserted_p = mallocedval;
+ }
+ break;
+
+ case ECPGt_interval:
+ {
+ char *str = NULL;
+ int slen;
+
+ if (var->arrsize > 1)
+ mallocedval = ecpg_strdup("{", lineno);
+ else
+ mallocedval = ecpg_strdup("", lineno);
+
+ if (!mallocedval)
+ return false;
+
+ for (element = 0; element < asize; element++)
+ {
+ str = quote_postgres(PGTYPESinterval_to_asc(&(((interval *) (var->value))[element])), quote, lineno);
+ if (!str)
+ {
+ ecpg_free(mallocedval);
+ return false;
+ }
+
+ slen = strlen(str);
+
+ if (!(newcopy = ecpg_realloc(mallocedval, strlen(mallocedval) + slen + 2, lineno)))
+ {
+ ecpg_free(mallocedval);
+ ecpg_free(str);
+ return false;
+ }
+ mallocedval = newcopy;
+
+ /* also copy trailing '\0' */
+ memcpy(mallocedval + strlen(mallocedval), str, slen + 1);
+ if (var->arrsize > 1)
+ strcpy(mallocedval + strlen(mallocedval), ",");
+
+ ecpg_free(str);
+ }
+
+ if (var->arrsize > 1)
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+
+ *tobeinserted_p = mallocedval;
+ }
+ break;
+
+ case ECPGt_date:
+ {
+ char *str = NULL;
+ int slen;
+
+ if (var->arrsize > 1)
+ mallocedval = ecpg_strdup("{", lineno);
+ else
+ mallocedval = ecpg_strdup("", lineno);
+
+ if (!mallocedval)
+ return false;
+
+ for (element = 0; element < asize; element++)
+ {
+ str = quote_postgres(PGTYPESdate_to_asc(((date *) (var->value))[element]), quote, lineno);
+ if (!str)
+ {
+ ecpg_free(mallocedval);
+ return false;
+ }
+
+ slen = strlen(str);
+
+ if (!(newcopy = ecpg_realloc(mallocedval, strlen(mallocedval) + slen + 2, lineno)))
+ {
+ ecpg_free(mallocedval);
+ ecpg_free(str);
+ return false;
+ }
+ mallocedval = newcopy;
+
+ /* also copy trailing '\0' */
+ memcpy(mallocedval + strlen(mallocedval), str, slen + 1);
+ if (var->arrsize > 1)
+ strcpy(mallocedval + strlen(mallocedval), ",");
+
+ ecpg_free(str);
+ }
+
+ if (var->arrsize > 1)
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+
+ *tobeinserted_p = mallocedval;
+ }
+ break;
+
+ case ECPGt_timestamp:
+ {
+ char *str = NULL;
+ int slen;
+
+ if (var->arrsize > 1)
+ mallocedval = ecpg_strdup("{", lineno);
+ else
+ mallocedval = ecpg_strdup("", lineno);
+
+ if (!mallocedval)
+ return false;
+
+ for (element = 0; element < asize; element++)
+ {
+ str = quote_postgres(PGTYPEStimestamp_to_asc(((timestamp *) (var->value))[element]), quote, lineno);
+ if (!str)
+ {
+ ecpg_free(mallocedval);
+ return false;
+ }
+
+ slen = strlen(str);
+
+ if (!(newcopy = ecpg_realloc(mallocedval, strlen(mallocedval) + slen + 2, lineno)))
+ {
+ ecpg_free(mallocedval);
+ ecpg_free(str);
+ return false;
+ }
+ mallocedval = newcopy;
+
+ /* also copy trailing '\0' */
+ memcpy(mallocedval + strlen(mallocedval), str, slen + 1);
+ if (var->arrsize > 1)
+ strcpy(mallocedval + strlen(mallocedval), ",");
+
+ ecpg_free(str);
+ }
+
+ if (var->arrsize > 1)
+ strcpy(mallocedval + strlen(mallocedval) - 1, "}");
+
+ *tobeinserted_p = mallocedval;
+ }
+ break;
+
+ case ECPGt_descriptor:
+ case ECPGt_sqlda:
+ break;
+
+ default:
+ /* Not implemented yet */
+ ecpg_raise(lineno, ECPG_UNSUPPORTED, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR, ecpg_type_name(var->type));
+ return false;
+ break;
+ }
+ }
+ return true;
+}
+
+static void
+print_param_value(char *value, int len, int is_binary, int lineno, int nth)
+{
+ char *value_s;
+ bool malloced = false;
+
+ if (value == NULL)
+ value_s = "null";
+ else if (!is_binary)
+ value_s = value;
+ else
+ {
+ value_s = ecpg_alloc(ecpg_hex_enc_len(len) + 1, lineno);
+ if (value_s != NULL)
+ {
+ ecpg_hex_encode(value, len, value_s);
+ value_s[ecpg_hex_enc_len(len)] = '\0';
+ malloced = true;
+ }
+ else
+ value_s = "no memory for logging of parameter";
+ }
+
+ ecpg_log("ecpg_free_params on line %d: parameter %d = %s\n",
+ lineno, nth, value_s);
+
+ if (malloced)
+ ecpg_free(value_s);
+}
+
+void
+ecpg_free_params(struct statement *stmt, bool print)
+{
+ int n;
+
+ for (n = 0; n < stmt->nparams; n++)
+ {
+ if (print)
+ print_param_value(stmt->paramvalues[n], stmt->paramlengths[n],
+ stmt->paramformats[n], stmt->lineno, n + 1);
+ ecpg_free(stmt->paramvalues[n]);
+ }
+ ecpg_free(stmt->paramvalues);
+ ecpg_free(stmt->paramlengths);
+ ecpg_free(stmt->paramformats);
+ stmt->paramvalues = NULL;
+ stmt->paramlengths = NULL;
+ stmt->paramformats = NULL;
+ stmt->nparams = 0;
+}
+
+static bool
+insert_tobeinserted(int position, int ph_len, struct statement *stmt, char *tobeinserted)
+{
+ char *newcopy;
+
+ if (!(newcopy = (char *) ecpg_alloc(strlen(stmt->command)
+ + strlen(tobeinserted)
+ + 1, stmt->lineno)))
+ {
+ ecpg_free(tobeinserted);
+ return false;
+ }
+
+ strcpy(newcopy, stmt->command);
+ strcpy(newcopy + position - 1, tobeinserted);
+
+ /*
+ * The strange thing in the second argument is the rest of the string from
+ * the old string
+ */
+ strcat(newcopy,
+ stmt->command
+ + position
+ + ph_len - 1);
+
+ ecpg_free(stmt->command);
+ stmt->command = newcopy;
+
+ ecpg_free(tobeinserted);
+ return true;
+}
+
+static bool
+store_input_from_desc(struct statement *stmt, struct descriptor_item *desc_item,
+ char **tobeinserted)
+{
+ struct variable var;
+
+ /*
+ * In case of binary data, only allocate memory and memcpy because binary
+ * data have been already stored into desc_item->data with
+ * ecpg_store_input() at ECPGset_desc().
+ */
+ if (desc_item->is_binary)
+ {
+ if (!(*tobeinserted = ecpg_alloc(desc_item->data_len, stmt->lineno)))
+ return false;
+ memcpy(*tobeinserted, desc_item->data, desc_item->data_len);
+ return true;
+ }
+
+ var.type = ECPGt_char;
+ var.varcharsize = strlen(desc_item->data);
+ var.value = desc_item->data;
+ var.pointer = &(desc_item->data);
+ var.arrsize = 1;
+ var.offset = 0;
+
+ if (!desc_item->indicator)
+ {
+ var.ind_type = ECPGt_NO_INDICATOR;
+ var.ind_value = var.ind_pointer = NULL;
+ var.ind_varcharsize = var.ind_arrsize = var.ind_offset = 0;
+ }
+ else
+ {
+ var.ind_type = ECPGt_int;
+ var.ind_value = &(desc_item->indicator);
+ var.ind_pointer = &(var.ind_value);
+ var.ind_varcharsize = var.ind_arrsize = 1;
+ var.ind_offset = 0;
+ }
+
+ if (!ecpg_store_input(stmt->lineno, stmt->force_indicator, &var, tobeinserted, false))
+ return false;
+
+ return true;
+}
+
+/*
+ * ecpg_build_params
+ * Build statement parameters
+ *
+ * The input values are taken from user variables, and the results are stored
+ * in arrays which can be used by PQexecParams().
+ */
+bool
+ecpg_build_params(struct statement *stmt)
+{
+ struct variable *var;
+ int desc_counter = 0;
+ int position = 0;
+ const char *value;
+ bool std_strings = false;
+
+ /* Get standard_conforming_strings setting. */
+ value = PQparameterStatus(stmt->connection->connection, "standard_conforming_strings");
+ if (value && strcmp(value, "on") == 0)
+ std_strings = true;
+
+ /*
+ * If the type is one of the fill in types then we take the argument and
+ * enter it to our parameter array at the first position. Then if there
+ * are any more fill in types we add more parameters.
+ */
+ var = stmt->inlist;
+ while (var)
+ {
+ char *tobeinserted;
+ int counter = 1;
+ bool binary_format;
+ int binary_length;
+
+
+ tobeinserted = NULL;
+ binary_length = 0;
+ binary_format = false;
+
+ /*
+ * A descriptor is a special case since it contains many variables but
+ * is listed only once.
+ */
+ if (var->type == ECPGt_descriptor)
+ {
+ /*
+ * We create an additional variable list here, so the same logic
+ * applies.
+ */
+ struct descriptor *desc;
+ struct descriptor_item *desc_item;
+
+ desc = ecpg_find_desc(stmt->lineno, var->pointer);
+ if (desc == NULL)
+ return false;
+
+ desc_counter++;
+ for (desc_item = desc->items; desc_item; desc_item = desc_item->next)
+ {
+ if (desc_item->num != desc_counter)
+ continue;
+
+ if (!store_input_from_desc(stmt, desc_item, &tobeinserted))
+ return false;
+
+ if (desc_item->is_binary)
+ {
+ binary_length = desc_item->data_len;
+ binary_format = true;
+ }
+ break;
+ }
+ if (desc->count == desc_counter)
+ desc_counter = 0;
+ }
+ else if (var->type == ECPGt_sqlda)
+ {
+ if (INFORMIX_MODE(stmt->compat))
+ {
+ struct sqlda_compat *sqlda = *(struct sqlda_compat **) var->pointer;
+ struct variable desc_inlist;
+ int i;
+
+ if (sqlda == NULL)
+ return false;
+
+ desc_counter++;
+ for (i = 0; i < sqlda->sqld; i++)
+ {
+ if (i + 1 == desc_counter)
+ {
+ desc_inlist.type = sqlda->sqlvar[i].sqltype;
+ desc_inlist.value = sqlda->sqlvar[i].sqldata;
+ desc_inlist.pointer = &(sqlda->sqlvar[i].sqldata);
+ switch (desc_inlist.type)
+ {
+ case ECPGt_char:
+ case ECPGt_varchar:
+ desc_inlist.varcharsize = strlen(sqlda->sqlvar[i].sqldata);
+ break;
+ default:
+ desc_inlist.varcharsize = 0;
+ break;
+ }
+ desc_inlist.arrsize = 1;
+ desc_inlist.offset = 0;
+ if (sqlda->sqlvar[i].sqlind)
+ {
+ desc_inlist.ind_type = ECPGt_short;
+ /* ECPG expects indicator value < 0 */
+ if (*(sqlda->sqlvar[i].sqlind))
+ *(sqlda->sqlvar[i].sqlind) = -1;
+ desc_inlist.ind_value = sqlda->sqlvar[i].sqlind;
+ desc_inlist.ind_pointer = &(sqlda->sqlvar[i].sqlind);
+ desc_inlist.ind_varcharsize = desc_inlist.ind_arrsize = 1;
+ desc_inlist.ind_offset = 0;
+ }
+ else
+ {
+ desc_inlist.ind_type = ECPGt_NO_INDICATOR;
+ desc_inlist.ind_value = desc_inlist.ind_pointer = NULL;
+ desc_inlist.ind_varcharsize = desc_inlist.ind_arrsize = desc_inlist.ind_offset = 0;
+ }
+ if (!ecpg_store_input(stmt->lineno, stmt->force_indicator, &desc_inlist, &tobeinserted, false))
+ return false;
+
+ break;
+ }
+ }
+ if (sqlda->sqld == desc_counter)
+ desc_counter = 0;
+ }
+ else
+ {
+ struct sqlda_struct *sqlda = *(struct sqlda_struct **) var->pointer;
+ struct variable desc_inlist;
+ int i;
+
+ if (sqlda == NULL)
+ return false;
+
+ desc_counter++;
+ for (i = 0; i < sqlda->sqln; i++)
+ {
+ if (i + 1 == desc_counter)
+ {
+ desc_inlist.type = sqlda->sqlvar[i].sqltype;
+ desc_inlist.value = sqlda->sqlvar[i].sqldata;
+ desc_inlist.pointer = &(sqlda->sqlvar[i].sqldata);
+ switch (desc_inlist.type)
+ {
+ case ECPGt_char:
+ case ECPGt_varchar:
+ desc_inlist.varcharsize = strlen(sqlda->sqlvar[i].sqldata);
+ break;
+ default:
+ desc_inlist.varcharsize = 0;
+ break;
+ }
+ desc_inlist.arrsize = 1;
+ desc_inlist.offset = 0;
+ if (sqlda->sqlvar[i].sqlind)
+ {
+ desc_inlist.ind_type = ECPGt_short;
+ /* ECPG expects indicator value < 0 */
+ if (*(sqlda->sqlvar[i].sqlind))
+ *(sqlda->sqlvar[i].sqlind) = -1;
+ desc_inlist.ind_value = sqlda->sqlvar[i].sqlind;
+ desc_inlist.ind_pointer = &(sqlda->sqlvar[i].sqlind);
+ desc_inlist.ind_varcharsize = desc_inlist.ind_arrsize = 1;
+ desc_inlist.ind_offset = 0;
+ }
+ else
+ {
+ desc_inlist.ind_type = ECPGt_NO_INDICATOR;
+ desc_inlist.ind_value = desc_inlist.ind_pointer = NULL;
+ desc_inlist.ind_varcharsize = desc_inlist.ind_arrsize = desc_inlist.ind_offset = 0;
+ }
+ if (!ecpg_store_input(stmt->lineno, stmt->force_indicator, &desc_inlist, &tobeinserted, false))
+ return false;
+
+ break;
+ }
+ }
+ if (sqlda->sqln == desc_counter)
+ desc_counter = 0;
+ }
+ }
+ else
+ {
+ if (!ecpg_store_input(stmt->lineno, stmt->force_indicator, var, &tobeinserted, false))
+ return false;
+
+ if (var->type == ECPGt_bytea)
+ {
+ binary_length = ((struct ECPGgeneric_bytea *) (var->value))->len;
+ binary_format = true;
+ }
+ }
+
+ /*
+ * now tobeinserted points to an area that contains the next
+ * parameter; now find the position in the string where it belongs
+ */
+ if ((position = next_insert(stmt->command, position, stmt->questionmarks, std_strings) + 1) == 0)
+ {
+ /*
+ * We have an argument but we don't have the matched up
+ * placeholder in the string
+ */
+ ecpg_raise(stmt->lineno, ECPG_TOO_MANY_ARGUMENTS,
+ ECPG_SQLSTATE_USING_CLAUSE_DOES_NOT_MATCH_PARAMETERS,
+ NULL);
+ ecpg_free_params(stmt, false);
+ ecpg_free(tobeinserted);
+ return false;
+ }
+
+ /*
+ * if var->type=ECPGt_char_variable we have a dynamic cursor we have
+ * to simulate a dynamic cursor because there is no backend
+ * functionality for it
+ */
+ if (var->type == ECPGt_char_variable)
+ {
+ int ph_len = (stmt->command[position] == '?') ? strlen("?") : strlen("$1");
+
+ if (!insert_tobeinserted(position, ph_len, stmt, tobeinserted))
+ {
+ ecpg_free_params(stmt, false);
+ return false;
+ }
+ tobeinserted = NULL;
+ }
+
+ /*
+ * if the placeholder is '$0' we have to replace it on the client side
+ * this is for places we want to support variables at that are not
+ * supported in the backend
+ */
+ else if (stmt->command[position] == '0')
+ {
+ if (stmt->statement_type == ECPGst_prepare ||
+ stmt->statement_type == ECPGst_exec_with_exprlist)
+ {
+ /* Need to double-quote the inserted statement name. */
+ char *str = ecpg_alloc(strlen(tobeinserted) + 2 + 1,
+ stmt->lineno);
+
+ if (!str)
+ {
+ ecpg_free(tobeinserted);
+ ecpg_free_params(stmt, false);
+ return false;
+ }
+ sprintf(str, "\"%s\"", tobeinserted);
+ ecpg_free(tobeinserted);
+ tobeinserted = str;
+ }
+
+ if (!insert_tobeinserted(position, 2, stmt, tobeinserted))
+ {
+ ecpg_free_params(stmt, false);
+ return false;
+ }
+ tobeinserted = NULL;
+ }
+ else if (stmt->statement_type == ECPGst_exec_with_exprlist)
+ {
+ if (binary_format)
+ {
+ char *p = convert_bytea_to_string(tobeinserted,
+ binary_length,
+ stmt->lineno);
+
+ ecpg_free(tobeinserted);
+ if (!p)
+ {
+ ecpg_free_params(stmt, false);
+ return false;
+ }
+ tobeinserted = p;
+ }
+
+ if (!insert_tobeinserted(position, 2, stmt, tobeinserted))
+ {
+ ecpg_free_params(stmt, false);
+ return false;
+ }
+ tobeinserted = NULL;
+ }
+ else
+ {
+ bool realloc_failed = false;
+ char **newparamvalues;
+ int *newparamlengths;
+ int *newparamformats;
+
+ /* enlarge all the param arrays */
+ if ((newparamvalues = (char **) ecpg_realloc(stmt->paramvalues, sizeof(char *) * (stmt->nparams + 1), stmt->lineno)))
+ stmt->paramvalues = newparamvalues;
+ else
+ realloc_failed = true;
+
+ if ((newparamlengths = (int *) ecpg_realloc(stmt->paramlengths, sizeof(int) * (stmt->nparams + 1), stmt->lineno)))
+ stmt->paramlengths = newparamlengths;
+ else
+ realloc_failed = true;
+
+ if ((newparamformats = (int *) ecpg_realloc(stmt->paramformats, sizeof(int) * (stmt->nparams + 1), stmt->lineno)))
+ stmt->paramformats = newparamformats;
+ else
+ realloc_failed = true;
+
+ if (realloc_failed)
+ {
+ ecpg_free_params(stmt, false);
+ ecpg_free(tobeinserted);
+ return false;
+ }
+
+ /* only now can we assign ownership of "tobeinserted" to stmt */
+ stmt->paramvalues[stmt->nparams] = tobeinserted;
+ stmt->paramlengths[stmt->nparams] = binary_length;
+ stmt->paramformats[stmt->nparams] = (binary_format ? 1 : 0);
+ stmt->nparams++;
+
+ /* let's see if this was an old style placeholder */
+ if (stmt->command[position] == '?')
+ {
+ /* yes, replace with new style */
+ int buffersize = sizeof(int) * CHAR_BIT * 10 / 3; /* a rough guess of the
+ * size we need */
+
+ if (!(tobeinserted = (char *) ecpg_alloc(buffersize, stmt->lineno)))
+ {
+ ecpg_free_params(stmt, false);
+ return false;
+ }
+
+ snprintf(tobeinserted, buffersize, "$%d", counter++);
+
+ if (!insert_tobeinserted(position, 2, stmt, tobeinserted))
+ {
+ ecpg_free_params(stmt, false);
+ return false;
+ }
+ tobeinserted = NULL;
+ }
+ }
+
+ if (desc_counter == 0)
+ var = var->next;
+ }
+
+ /*
+ * Check if there are unmatched things left. PREPARE AS has no parameter.
+ * Check other statement.
+ */
+ if (stmt->statement_type != ECPGst_prepare &&
+ next_insert(stmt->command, position, stmt->questionmarks, std_strings) >= 0)
+ {
+ ecpg_raise(stmt->lineno, ECPG_TOO_FEW_ARGUMENTS,
+ ECPG_SQLSTATE_USING_CLAUSE_DOES_NOT_MATCH_PARAMETERS, NULL);
+ ecpg_free_params(stmt, false);
+ return false;
+ }
+
+ return true;
+}
+
+/*
+ * ecpg_autostart_transaction
+ * If we are in non-autocommit mode, automatically start a transaction.
+ */
+bool
+ecpg_autostart_transaction(struct statement *stmt)
+{
+ if (PQtransactionStatus(stmt->connection->connection) == PQTRANS_IDLE && !stmt->connection->autocommit)
+ {
+ stmt->results = PQexec(stmt->connection->connection, "begin transaction");
+ if (!ecpg_check_PQresult(stmt->results, stmt->lineno, stmt->connection->connection, stmt->compat))
+ {
+ ecpg_free_params(stmt, false);
+ return false;
+ }
+ PQclear(stmt->results);
+ stmt->results = NULL;
+ }
+ return true;
+}
+
+/*
+ * ecpg_execute
+ * Execute the SQL statement.
+ */
+bool
+ecpg_execute(struct statement *stmt)
+{
+ ecpg_log("ecpg_execute on line %d: query: %s; with %d parameter(s) on connection %s\n", stmt->lineno, stmt->command, stmt->nparams, stmt->connection->name);
+ if (stmt->statement_type == ECPGst_execute)
+ {
+ stmt->results = PQexecPrepared(stmt->connection->connection,
+ stmt->name,
+ stmt->nparams,
+ (const char *const *) stmt->paramvalues,
+ (const int *) stmt->paramlengths,
+ (const int *) stmt->paramformats,
+ 0);
+ ecpg_log("ecpg_execute on line %d: using PQexecPrepared for \"%s\"\n", stmt->lineno, stmt->command);
+ }
+ else
+ {
+ if (stmt->nparams == 0)
+ {
+ stmt->results = PQexec(stmt->connection->connection, stmt->command);
+ ecpg_log("ecpg_execute on line %d: using PQexec\n", stmt->lineno);
+ }
+ else
+ {
+ stmt->results = PQexecParams(stmt->connection->connection,
+ stmt->command, stmt->nparams, NULL,
+ (const char *const *) stmt->paramvalues,
+ (const int *) stmt->paramlengths,
+ (const int *) stmt->paramformats,
+ 0);
+
+ ecpg_log("ecpg_execute on line %d: using PQexecParams\n", stmt->lineno);
+ }
+
+ if (stmt->statement_type == ECPGst_prepare)
+ {
+ if (!ecpg_register_prepared_stmt(stmt))
+ {
+ ecpg_free_params(stmt, true);
+ return false;
+ }
+ }
+ }
+
+ ecpg_free_params(stmt, true);
+
+ if (!ecpg_check_PQresult(stmt->results, stmt->lineno, stmt->connection->connection, stmt->compat))
+ return false;
+
+ return true;
+}
+
+/*-------
+ * ecpg_process_output
+ *
+ * Process the statement result and store it into application variables. This
+ * function can be called repeatedly during the same statement in case cursor
+ * readahead is used and the application does FETCH N which overflows the
+ * readahead window.
+ *
+ * Parameters
+ * stmt statement structure holding the PGresult and
+ * the list of output variables
+ * clear_result
+ * PQclear() the result upon returning from this function
+ *
+ * Returns success as boolean. Also an SQL error is raised in case of failure.
+ *-------
+ */
+bool
+ecpg_process_output(struct statement *stmt, bool clear_result)
+{
+ struct variable *var;
+ bool status = false;
+ char *cmdstat;
+ PGnotify *notify;
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+ int nfields,
+ ntuples,
+ act_field;
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(stmt->lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return false;
+ }
+
+ var = stmt->outlist;
+ switch (PQresultStatus(stmt->results))
+ {
+ case PGRES_TUPLES_OK:
+ nfields = PQnfields(stmt->results);
+ sqlca->sqlerrd[2] = ntuples = PQntuples(stmt->results);
+
+ ecpg_log("ecpg_process_output on line %d: correctly got %d tuples with %d fields\n", stmt->lineno, ntuples, nfields);
+ status = true;
+
+ if (ntuples < 1)
+ {
+ if (ntuples)
+ ecpg_log("ecpg_process_output on line %d: incorrect number of matches (%d)\n",
+ stmt->lineno, ntuples);
+ ecpg_raise(stmt->lineno, ECPG_NOT_FOUND, ECPG_SQLSTATE_NO_DATA, NULL);
+ status = false;
+ break;
+ }
+
+ if (var != NULL && var->type == ECPGt_descriptor)
+ {
+ struct descriptor *desc = ecpg_find_desc(stmt->lineno, var->pointer);
+
+ if (desc == NULL)
+ status = false;
+ else
+ {
+ if (desc->result)
+ PQclear(desc->result);
+ desc->result = stmt->results;
+ clear_result = false;
+ ecpg_log("ecpg_process_output on line %d: putting result (%d tuples) into descriptor %s\n",
+ stmt->lineno, PQntuples(stmt->results), (const char *) var->pointer);
+ }
+ var = var->next;
+ }
+ else if (var != NULL && var->type == ECPGt_sqlda)
+ {
+ if (INFORMIX_MODE(stmt->compat))
+ {
+ struct sqlda_compat **_sqlda = (struct sqlda_compat **) var->pointer;
+ struct sqlda_compat *sqlda = *_sqlda;
+ struct sqlda_compat *sqlda_new;
+ int i;
+
+ /*
+ * If we are passed in a previously existing sqlda (chain)
+ * then free it.
+ */
+ while (sqlda)
+ {
+ sqlda_new = sqlda->desc_next;
+ free(sqlda);
+ sqlda = sqlda_new;
+ }
+ *_sqlda = sqlda = sqlda_new = NULL;
+ for (i = ntuples - 1; i >= 0; i--)
+ {
+ /*
+ * Build a new sqlda structure. Note that only
+ * fetching 1 record is supported
+ */
+ sqlda_new = ecpg_build_compat_sqlda(stmt->lineno, stmt->results, i, stmt->compat);
+
+ if (!sqlda_new)
+ {
+ /* cleanup all SQLDAs we created up */
+ while (sqlda)
+ {
+ sqlda_new = sqlda->desc_next;
+ free(sqlda);
+ sqlda = sqlda_new;
+ }
+ *_sqlda = NULL;
+
+ ecpg_log("ecpg_process_output on line %d: out of memory allocating a new sqlda\n", stmt->lineno);
+ status = false;
+ break;
+ }
+ else
+ {
+ ecpg_log("ecpg_process_output on line %d: new sqlda was built\n", stmt->lineno);
+
+ *_sqlda = sqlda_new;
+
+ ecpg_set_compat_sqlda(stmt->lineno, _sqlda, stmt->results, i, stmt->compat);
+ ecpg_log("ecpg_process_output on line %d: putting result (1 tuple %d fields) into sqlda descriptor\n",
+ stmt->lineno, PQnfields(stmt->results));
+
+ sqlda_new->desc_next = sqlda;
+ sqlda = sqlda_new;
+ }
+ }
+ }
+ else
+ {
+ struct sqlda_struct **_sqlda = (struct sqlda_struct **) var->pointer;
+ struct sqlda_struct *sqlda = *_sqlda;
+ struct sqlda_struct *sqlda_new;
+ int i;
+
+ /*
+ * If we are passed in a previously existing sqlda (chain)
+ * then free it.
+ */
+ while (sqlda)
+ {
+ sqlda_new = sqlda->desc_next;
+ free(sqlda);
+ sqlda = sqlda_new;
+ }
+ *_sqlda = sqlda = sqlda_new = NULL;
+ for (i = ntuples - 1; i >= 0; i--)
+ {
+ /*
+ * Build a new sqlda structure. Note that only
+ * fetching 1 record is supported
+ */
+ sqlda_new = ecpg_build_native_sqlda(stmt->lineno, stmt->results, i, stmt->compat);
+
+ if (!sqlda_new)
+ {
+ /* cleanup all SQLDAs we created up */
+ while (sqlda)
+ {
+ sqlda_new = sqlda->desc_next;
+ free(sqlda);
+ sqlda = sqlda_new;
+ }
+ *_sqlda = NULL;
+
+ ecpg_log("ecpg_process_output on line %d: out of memory allocating a new sqlda\n", stmt->lineno);
+ status = false;
+ break;
+ }
+ else
+ {
+ ecpg_log("ecpg_process_output on line %d: new sqlda was built\n", stmt->lineno);
+
+ *_sqlda = sqlda_new;
+
+ ecpg_set_native_sqlda(stmt->lineno, _sqlda, stmt->results, i, stmt->compat);
+ ecpg_log("ecpg_process_output on line %d: putting result (1 tuple %d fields) into sqlda descriptor\n",
+ stmt->lineno, PQnfields(stmt->results));
+
+ sqlda_new->desc_next = sqlda;
+ sqlda = sqlda_new;
+ }
+ }
+ }
+
+ var = var->next;
+ }
+ else
+ for (act_field = 0; act_field < nfields && status; act_field++)
+ {
+ if (var != NULL)
+ {
+ status = ecpg_store_result(stmt->results, act_field, stmt, var);
+ var = var->next;
+ }
+ else if (!INFORMIX_MODE(stmt->compat))
+ {
+ ecpg_raise(stmt->lineno, ECPG_TOO_FEW_ARGUMENTS, ECPG_SQLSTATE_USING_CLAUSE_DOES_NOT_MATCH_TARGETS, NULL);
+ return false;
+ }
+ }
+
+ if (status && var != NULL)
+ {
+ ecpg_raise(stmt->lineno, ECPG_TOO_MANY_ARGUMENTS, ECPG_SQLSTATE_USING_CLAUSE_DOES_NOT_MATCH_TARGETS, NULL);
+ status = false;
+ }
+
+ break;
+ case PGRES_COMMAND_OK:
+ status = true;
+ cmdstat = PQcmdStatus(stmt->results);
+ sqlca->sqlerrd[1] = PQoidValue(stmt->results);
+ sqlca->sqlerrd[2] = atol(PQcmdTuples(stmt->results));
+ ecpg_log("ecpg_process_output on line %d: OK: %s\n", stmt->lineno, cmdstat);
+ if (stmt->compat != ECPG_COMPAT_INFORMIX_SE &&
+ !sqlca->sqlerrd[2] &&
+ (strncmp(cmdstat, "UPDATE", 6) == 0
+ || strncmp(cmdstat, "INSERT", 6) == 0
+ || strncmp(cmdstat, "DELETE", 6) == 0))
+ ecpg_raise(stmt->lineno, ECPG_NOT_FOUND, ECPG_SQLSTATE_NO_DATA, NULL);
+ break;
+ case PGRES_COPY_OUT:
+ {
+ char *buffer;
+ int res;
+
+ ecpg_log("ecpg_process_output on line %d: COPY OUT data transfer in progress\n", stmt->lineno);
+ while ((res = PQgetCopyData(stmt->connection->connection,
+ &buffer, 0)) > 0)
+ {
+ printf("%s", buffer);
+ PQfreemem(buffer);
+ }
+ if (res == -1)
+ {
+ /* COPY done */
+ PQclear(stmt->results);
+ stmt->results = PQgetResult(stmt->connection->connection);
+ if (PQresultStatus(stmt->results) == PGRES_COMMAND_OK)
+ ecpg_log("ecpg_process_output on line %d: got PGRES_COMMAND_OK after PGRES_COPY_OUT\n", stmt->lineno);
+ else
+ ecpg_log("ecpg_process_output on line %d: got error after PGRES_COPY_OUT: %s", stmt->lineno, PQresultErrorMessage(stmt->results));
+ }
+ break;
+ }
+ default:
+
+ /*
+ * execution should never reach this code because it is already
+ * handled in ecpg_check_PQresult()
+ */
+ ecpg_log("ecpg_process_output on line %d: unknown execution status type\n",
+ stmt->lineno);
+ ecpg_raise_backend(stmt->lineno, stmt->results, stmt->connection->connection, stmt->compat);
+ status = false;
+ break;
+ }
+
+ if (clear_result)
+ {
+ PQclear(stmt->results);
+ stmt->results = NULL;
+ }
+
+ /* check for asynchronous returns */
+ PQconsumeInput(stmt->connection->connection);
+ while ((notify = PQnotifies(stmt->connection->connection)) != NULL)
+ {
+ ecpg_log("ecpg_process_output on line %d: asynchronous notification of \"%s\" from backend PID %d received\n",
+ stmt->lineno, notify->relname, notify->be_pid);
+ PQfreemem(notify);
+ PQconsumeInput(stmt->connection->connection);
+ }
+
+ return status;
+}
+
+/*
+ * ecpg_do_prologue
+ *
+ * Initialize various infrastructure elements for executing the statement:
+ *
+ * - create the statement structure
+ * - set the C numeric locale for communicating with the backend
+ * - preprocess the variable list of input/output parameters into
+ * linked lists
+ */
+bool
+ecpg_do_prologue(int lineno, const int compat, const int force_indicator,
+ const char *connection_name, const bool questionmarks,
+ enum ECPG_statement_type statement_type, const char *query,
+ va_list args, struct statement **stmt_out)
+{
+ struct statement *stmt = NULL;
+ struct connection *con;
+ enum ECPGttype type;
+ struct variable **list;
+ char *prepname;
+ bool is_prepared_name_set;
+
+ *stmt_out = NULL;
+
+ if (!query)
+ {
+ ecpg_raise(lineno, ECPG_EMPTY, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR, NULL);
+ return false;
+ }
+
+#ifdef ENABLE_THREAD_SAFETY
+ ecpg_pthreads_init();
+#endif
+
+ con = ecpg_get_connection(connection_name);
+
+ if (!ecpg_init(con, connection_name, lineno))
+ return false;
+
+ stmt = (struct statement *) ecpg_alloc(sizeof(struct statement), lineno);
+
+ if (stmt == NULL)
+ return false;
+
+ /*
+ * Make sure we do NOT honor the locale for numeric input/output since the
+ * database wants the standard decimal point. If available, use
+ * uselocale() for this because it's thread-safe. Windows doesn't have
+ * that, but it usually does have _configthreadlocale(). In some versions
+ * of MinGW, _configthreadlocale() exists but always returns -1 --- so
+ * treat that situation as if the function doesn't exist.
+ */
+#ifdef HAVE_USELOCALE
+
+ /*
+ * Since ecpg_init() succeeded, we have a connection. Any successful
+ * connection initializes ecpg_clocale.
+ */
+ Assert(ecpg_clocale);
+ stmt->oldlocale = uselocale(ecpg_clocale);
+ if (stmt->oldlocale == (locale_t) 0)
+ {
+ ecpg_do_epilogue(stmt);
+ return false;
+ }
+#else
+#ifdef HAVE__CONFIGTHREADLOCALE
+ stmt->oldthreadlocale = _configthreadlocale(_ENABLE_PER_THREAD_LOCALE);
+#endif
+ stmt->oldlocale = ecpg_strdup(setlocale(LC_NUMERIC, NULL), lineno);
+ if (stmt->oldlocale == NULL)
+ {
+ ecpg_do_epilogue(stmt);
+ return false;
+ }
+ setlocale(LC_NUMERIC, "C");
+#endif
+
+ /*
+ * If statement type is ECPGst_prepnormal we are supposed to prepare the
+ * statement before executing them
+ */
+ if (statement_type == ECPGst_prepnormal)
+ {
+ if (!ecpg_auto_prepare(lineno, connection_name, compat, &prepname, query))
+ {
+ ecpg_do_epilogue(stmt);
+ return false;
+ }
+
+ /*
+ * statement is now prepared, so instead of the query we have to
+ * execute the name
+ */
+ stmt->command = prepname;
+ statement_type = ECPGst_execute;
+ }
+ else
+ stmt->command = ecpg_strdup(query, lineno);
+
+ stmt->name = NULL;
+
+ if (statement_type == ECPGst_execute)
+ {
+ /* if we have an EXECUTE command, only the name is send */
+ char *command = ecpg_prepared(stmt->command, con);
+
+ if (command)
+ {
+ stmt->name = stmt->command;
+ stmt->command = ecpg_strdup(command, lineno);
+ }
+ else
+ {
+ ecpg_raise(lineno, ECPG_INVALID_STMT, ECPG_SQLSTATE_INVALID_SQL_STATEMENT_NAME, stmt->command);
+ ecpg_do_epilogue(stmt);
+ return false;
+ }
+ }
+ /* name of PREPARE AS will be set in loop of inlist */
+
+ stmt->connection = con;
+ stmt->lineno = lineno;
+ stmt->compat = compat;
+ stmt->force_indicator = force_indicator;
+ stmt->questionmarks = questionmarks;
+ stmt->statement_type = statement_type;
+
+ /*------
+ * create a list of variables
+ *
+ * The variables are listed with input variables preceding output
+ * variables. The end of each group is marked by an end marker.
+ * Per variable we list:
+ *
+ * type - as defined in ecpgtype.h
+ * value - where to store the data
+ * varcharsize - length of string in case we have a stringvariable, else 0
+ * arraysize - 0 for pointer (we don't know the size of the array), 1 for
+ * simple variable, size for arrays
+ * offset - offset between ith and (i+1)th entry in an array, normally
+ * that means sizeof(type)
+ * ind_type - type of indicator variable
+ * ind_pointer - pointer to indicator variable
+ * ind_varcharsize - empty
+ * ind_arrsize - arraysize of indicator array
+ * ind_offset - indicator offset
+ *------
+ */
+
+ is_prepared_name_set = false;
+
+ list = &(stmt->inlist);
+
+ type = va_arg(args, enum ECPGttype);
+
+ while (type != ECPGt_EORT)
+ {
+ if (type == ECPGt_EOIT)
+ list = &(stmt->outlist);
+ else
+ {
+ struct variable *var,
+ *ptr;
+
+ if (!(var = (struct variable *) ecpg_alloc(sizeof(struct variable), lineno)))
+ {
+ ecpg_do_epilogue(stmt);
+ return false;
+ }
+
+ var->type = type;
+ var->pointer = va_arg(args, char *);
+
+ var->varcharsize = va_arg(args, long);
+ var->arrsize = va_arg(args, long);
+ var->offset = va_arg(args, long);
+
+ /*
+ * Unknown array size means pointer to an array. Unknown
+ * varcharsize usually also means pointer. But if the type is
+ * character and the array size is known, it is an array of
+ * pointers to char, so use var->pointer as it is.
+ */
+ if (var->arrsize == 0 ||
+ (var->varcharsize == 0 && ((var->type != ECPGt_char && var->type != ECPGt_unsigned_char) || (var->arrsize <= 1))))
+ var->value = *((char **) (var->pointer));
+ else
+ var->value = var->pointer;
+
+ /*
+ * negative values are used to indicate an array without given
+ * bounds
+ */
+ /* reset to zero for us */
+ if (var->arrsize < 0)
+ var->arrsize = 0;
+ if (var->varcharsize < 0)
+ var->varcharsize = 0;
+
+ var->next = NULL;
+
+ var->ind_type = va_arg(args, enum ECPGttype);
+ var->ind_pointer = va_arg(args, char *);
+ var->ind_varcharsize = va_arg(args, long);
+ var->ind_arrsize = va_arg(args, long);
+ var->ind_offset = va_arg(args, long);
+
+ if (var->ind_type != ECPGt_NO_INDICATOR
+ && (var->ind_arrsize == 0 || var->ind_varcharsize == 0))
+ var->ind_value = *((char **) (var->ind_pointer));
+ else
+ var->ind_value = var->ind_pointer;
+
+ /*
+ * negative values are used to indicate an array without given
+ * bounds
+ */
+ /* reset to zero for us */
+ if (var->ind_arrsize < 0)
+ var->ind_arrsize = 0;
+ if (var->ind_varcharsize < 0)
+ var->ind_varcharsize = 0;
+
+ /* if variable is NULL, the statement hasn't been prepared */
+ if (var->pointer == NULL)
+ {
+ ecpg_raise(lineno, ECPG_INVALID_STMT, ECPG_SQLSTATE_INVALID_SQL_STATEMENT_NAME, NULL);
+ ecpg_free(var);
+ ecpg_do_epilogue(stmt);
+ return false;
+ }
+
+ for (ptr = *list; ptr && ptr->next; ptr = ptr->next)
+ ;
+
+ if (ptr == NULL)
+ *list = var;
+ else
+ ptr->next = var;
+
+ if (!is_prepared_name_set && stmt->statement_type == ECPGst_prepare)
+ {
+ stmt->name = ecpg_strdup(var->value, lineno);
+ is_prepared_name_set = true;
+ }
+ }
+
+ type = va_arg(args, enum ECPGttype);
+ }
+
+ /* are we connected? */
+ if (con == NULL || con->connection == NULL)
+ {
+ ecpg_raise(lineno, ECPG_NOT_CONN, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR, (con) ? con->name : ecpg_gettext("<empty>"));
+ ecpg_do_epilogue(stmt);
+ return false;
+ }
+
+ if (!is_prepared_name_set && stmt->statement_type == ECPGst_prepare)
+ {
+ ecpg_raise(lineno, ECPG_TOO_FEW_ARGUMENTS, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR, (con) ? con->name : ecpg_gettext("<empty>"));
+ ecpg_do_epilogue(stmt);
+ return false;
+ }
+
+ /* initialize auto_mem struct */
+ ecpg_clear_auto_mem();
+
+ *stmt_out = stmt;
+
+ return true;
+}
+
+/*
+ * ecpg_do_epilogue
+ * Restore the application locale and free the statement structure.
+ */
+void
+ecpg_do_epilogue(struct statement *stmt)
+{
+ if (stmt == NULL)
+ return;
+
+#ifdef HAVE_USELOCALE
+ if (stmt->oldlocale != (locale_t) 0)
+ uselocale(stmt->oldlocale);
+#else
+ if (stmt->oldlocale)
+ setlocale(LC_NUMERIC, stmt->oldlocale);
+#ifdef HAVE__CONFIGTHREADLOCALE
+
+ /*
+ * This is a bit trickier than it looks: if we failed partway through
+ * statement initialization, oldthreadlocale could still be 0. But that's
+ * okay because a call with 0 is defined to be a no-op.
+ */
+ if (stmt->oldthreadlocale != -1)
+ (void) _configthreadlocale(stmt->oldthreadlocale);
+#endif
+#endif
+
+ free_statement(stmt);
+}
+
+/*
+ * Execute SQL statements in the backend.
+ * The input/output parameters (variable argument list) are passed
+ * in a va_list, so other functions can use this interface.
+ */
+bool
+ecpg_do(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query, va_list args)
+{
+ struct statement *stmt = NULL;
+
+ if (!ecpg_do_prologue(lineno, compat, force_indicator, connection_name,
+ questionmarks, (enum ECPG_statement_type) st,
+ query, args, &stmt))
+ goto fail;
+
+ if (!ecpg_build_params(stmt))
+ goto fail;
+
+ if (!ecpg_autostart_transaction(stmt))
+ goto fail;
+
+ if (!ecpg_execute(stmt))
+ goto fail;
+
+ if (!ecpg_process_output(stmt, true))
+ goto fail;
+
+ ecpg_do_epilogue(stmt);
+ return true;
+
+fail:
+ ecpg_do_epilogue(stmt);
+ return false;
+}
+
+/*
+ * Execute SQL statements in the backend.
+ * The input/output parameters are passed as variable-length argument list.
+ */
+bool
+ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...)
+{
+ va_list args;
+ bool ret;
+
+ va_start(args, query);
+ ret = ecpg_do(lineno, compat, force_indicator, connection_name,
+ questionmarks, st, query, args);
+ va_end(args);
+
+ return ret;
+}
+
+/* old descriptor interface */
+bool
+ECPGdo_descriptor(int line, const char *connection,
+ const char *descriptor, const char *query)
+{
+ return ECPGdo(line, ECPG_COMPAT_PGSQL, true, connection, '\0', 0, query, ECPGt_EOIT,
+ ECPGt_descriptor, descriptor, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL, 0L, 0L, 0L, ECPGt_EORT);
+}
diff --git a/src/interfaces/ecpg/ecpglib/exports.txt b/src/interfaces/ecpg/ecpglib/exports.txt
new file mode 100644
index 0000000..69e9617
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/exports.txt
@@ -0,0 +1,31 @@
+# src/interfaces/ecpg/ecpglib/exports.txt
+# Functions to be exported by ecpglib DLL
+ECPGallocate_desc 1
+ECPGconnect 2
+ECPGdeallocate 3
+ECPGdeallocate_all 4
+ECPGdeallocate_desc 5
+ECPGdebug 6
+ECPGdescribe 7
+ECPGdisconnect 8
+ECPGdo 9
+ECPGdo_descriptor 10
+ECPGfree_auto_mem 11
+ECPGget_desc 12
+ECPGget_desc_header 13
+ECPGget_sqlca 14
+ECPGis_noind_null 15
+ECPGprepare 16
+ECPGprepared_statement 17
+ECPGset_desc 18
+ECPGset_desc_header 19
+ECPGset_noind_null 20
+ECPGsetcommit 21
+ECPGsetconn 22
+ECPGstatus 23
+ECPGtrans 24
+sqlprint 25
+ECPGget_PGconn 26
+ECPGtransactionStatus 27
+ECPGset_var 28
+ECPGget_var 29
diff --git a/src/interfaces/ecpg/ecpglib/memory.c b/src/interfaces/ecpg/ecpglib/memory.c
new file mode 100644
index 0000000..bd81251
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/memory.c
@@ -0,0 +1,174 @@
+/* src/interfaces/ecpg/ecpglib/memory.c */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include "ecpg-pthread-win32.h"
+#include "ecpgerrno.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+
+void
+ecpg_free(void *ptr)
+{
+ free(ptr);
+}
+
+char *
+ecpg_alloc(long size, int lineno)
+{
+ char *new = (char *) calloc(1L, size);
+
+ if (!new)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY, ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return NULL;
+ }
+
+ return new;
+}
+
+char *
+ecpg_realloc(void *ptr, long size, int lineno)
+{
+ char *new = (char *) realloc(ptr, size);
+
+ if (!new)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY, ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return NULL;
+ }
+
+ return new;
+}
+
+char *
+ecpg_strdup(const char *string, int lineno)
+{
+ char *new;
+
+ if (string == NULL)
+ return NULL;
+
+ new = strdup(string);
+ if (!new)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY, ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return NULL;
+ }
+
+ return new;
+}
+
+/* keep a list of memory we allocated for the user */
+struct auto_mem
+{
+ void *pointer;
+ struct auto_mem *next;
+};
+
+#ifdef ENABLE_THREAD_SAFETY
+static pthread_key_t auto_mem_key;
+static pthread_once_t auto_mem_once = PTHREAD_ONCE_INIT;
+
+static void
+auto_mem_destructor(void *arg)
+{
+ (void) arg; /* keep the compiler quiet */
+ ECPGfree_auto_mem();
+}
+
+static void
+auto_mem_key_init(void)
+{
+ pthread_key_create(&auto_mem_key, auto_mem_destructor);
+}
+
+static struct auto_mem *
+get_auto_allocs(void)
+{
+ pthread_once(&auto_mem_once, auto_mem_key_init);
+ return (struct auto_mem *) pthread_getspecific(auto_mem_key);
+}
+
+static void
+set_auto_allocs(struct auto_mem *am)
+{
+ pthread_setspecific(auto_mem_key, am);
+}
+#else
+static struct auto_mem *auto_allocs = NULL;
+
+#define get_auto_allocs() (auto_allocs)
+#define set_auto_allocs(am) do { auto_allocs = (am); } while(0)
+#endif
+
+char *
+ecpg_auto_alloc(long size, int lineno)
+{
+ void *ptr = (void *) ecpg_alloc(size, lineno);
+
+ if (!ptr)
+ return NULL;
+
+ if (!ecpg_add_mem(ptr, lineno))
+ {
+ ecpg_free(ptr);
+ return NULL;
+ }
+ return ptr;
+}
+
+bool
+ecpg_add_mem(void *ptr, int lineno)
+{
+ struct auto_mem *am = (struct auto_mem *) ecpg_alloc(sizeof(struct auto_mem), lineno);
+
+ if (!am)
+ return false;
+
+ am->pointer = ptr;
+ am->next = get_auto_allocs();
+ set_auto_allocs(am);
+ return true;
+}
+
+void
+ECPGfree_auto_mem(void)
+{
+ struct auto_mem *am = get_auto_allocs();
+
+ /* free all memory we have allocated for the user */
+ if (am)
+ {
+ do
+ {
+ struct auto_mem *act = am;
+
+ am = am->next;
+ ecpg_free(act->pointer);
+ ecpg_free(act);
+ } while (am);
+ set_auto_allocs(NULL);
+ }
+}
+
+void
+ecpg_clear_auto_mem(void)
+{
+ struct auto_mem *am = get_auto_allocs();
+
+ /* only free our own structure */
+ if (am)
+ {
+ do
+ {
+ struct auto_mem *act = am;
+
+ am = am->next;
+ ecpg_free(act);
+ } while (am);
+ set_auto_allocs(NULL);
+ }
+}
diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c
new file mode 100644
index 0000000..1eef1ec
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/misc.c
@@ -0,0 +1,593 @@
+/* src/interfaces/ecpg/ecpglib/misc.c */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include <limits.h>
+#include <unistd.h>
+
+#include "ecpg-pthread-win32.h"
+#include "ecpgerrno.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+#include "pg_config_paths.h"
+#include "pgtypes_date.h"
+#include "pgtypes_interval.h"
+#include "pgtypes_numeric.h"
+#include "pgtypes_timestamp.h"
+#include "sqlca.h"
+
+#ifndef LONG_LONG_MIN
+#ifdef LLONG_MIN
+#define LONG_LONG_MIN LLONG_MIN
+#else
+#define LONG_LONG_MIN LONGLONG_MIN
+#endif /* LLONG_MIN */
+#endif /* LONG_LONG_MIN */
+
+bool ecpg_internal_regression_mode = false;
+
+static struct sqlca_t sqlca_init =
+{
+ {
+ 'S', 'Q', 'L', 'C', 'A', ' ', ' ', ' '
+ },
+ sizeof(struct sqlca_t),
+ 0,
+ {
+ 0,
+ {
+ 0
+ }
+ },
+ {
+ 'N', 'O', 'T', ' ', 'S', 'E', 'T', ' '
+ },
+ {
+ 0, 0, 0, 0, 0, 0
+ },
+ {
+ 0, 0, 0, 0, 0, 0, 0, 0
+ },
+ {
+ '0', '0', '0', '0', '0'
+ }
+};
+
+#ifdef ENABLE_THREAD_SAFETY
+static pthread_key_t sqlca_key;
+static pthread_once_t sqlca_key_once = PTHREAD_ONCE_INIT;
+#else
+static struct sqlca_t sqlca =
+{
+ {
+ 'S', 'Q', 'L', 'C', 'A', ' ', ' ', ' '
+ },
+ sizeof(struct sqlca_t),
+ 0,
+ {
+ 0,
+ {
+ 0
+ }
+ },
+ {
+ 'N', 'O', 'T', ' ', 'S', 'E', 'T', ' '
+ },
+ {
+ 0, 0, 0, 0, 0, 0
+ },
+ {
+ 0, 0, 0, 0, 0, 0, 0, 0
+ },
+ {
+ '0', '0', '0', '0', '0'
+ }
+};
+#endif
+
+#ifdef ENABLE_THREAD_SAFETY
+static pthread_mutex_t debug_mutex = PTHREAD_MUTEX_INITIALIZER;
+static pthread_mutex_t debug_init_mutex = PTHREAD_MUTEX_INITIALIZER;
+#endif
+static int simple_debug = 0;
+static FILE *debugstream = NULL;
+
+void
+ecpg_init_sqlca(struct sqlca_t *sqlca)
+{
+ memcpy((char *) sqlca, (char *) &sqlca_init, sizeof(struct sqlca_t));
+}
+
+bool
+ecpg_init(const struct connection *con, const char *connection_name, const int lineno)
+{
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY, ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY,
+ NULL);
+ return false;
+ }
+
+ ecpg_init_sqlca(sqlca);
+ if (con == NULL)
+ {
+ ecpg_raise(lineno, ECPG_NO_CONN, ECPG_SQLSTATE_CONNECTION_DOES_NOT_EXIST,
+ connection_name ? connection_name : ecpg_gettext("NULL"));
+ return false;
+ }
+
+ return true;
+}
+
+#ifdef ENABLE_THREAD_SAFETY
+static void
+ecpg_sqlca_key_destructor(void *arg)
+{
+ free(arg); /* sqlca structure allocated in ECPGget_sqlca */
+}
+
+static void
+ecpg_sqlca_key_init(void)
+{
+ pthread_key_create(&sqlca_key, ecpg_sqlca_key_destructor);
+}
+#endif
+
+struct sqlca_t *
+ECPGget_sqlca(void)
+{
+#ifdef ENABLE_THREAD_SAFETY
+ struct sqlca_t *sqlca;
+
+ pthread_once(&sqlca_key_once, ecpg_sqlca_key_init);
+
+ sqlca = pthread_getspecific(sqlca_key);
+ if (sqlca == NULL)
+ {
+ sqlca = malloc(sizeof(struct sqlca_t));
+ if (sqlca == NULL)
+ return NULL;
+ ecpg_init_sqlca(sqlca);
+ pthread_setspecific(sqlca_key, sqlca);
+ }
+ return sqlca;
+#else
+ return &sqlca;
+#endif
+}
+
+bool
+ECPGstatus(int lineno, const char *connection_name)
+{
+ struct connection *con = ecpg_get_connection(connection_name);
+
+ if (!ecpg_init(con, connection_name, lineno))
+ return false;
+
+ /* are we connected? */
+ if (con->connection == NULL)
+ {
+ ecpg_raise(lineno, ECPG_NOT_CONN, ECPG_SQLSTATE_ECPG_INTERNAL_ERROR, con->name);
+ return false;
+ }
+
+ return true;
+}
+
+PGTransactionStatusType
+ECPGtransactionStatus(const char *connection_name)
+{
+ const struct connection *con;
+
+ con = ecpg_get_connection(connection_name);
+ if (con == NULL)
+ {
+ /* transaction status is unknown */
+ return PQTRANS_UNKNOWN;
+ }
+
+ return PQtransactionStatus(con->connection);
+}
+
+bool
+ECPGtrans(int lineno, const char *connection_name, const char *transaction)
+{
+ PGresult *res;
+ struct connection *con = ecpg_get_connection(connection_name);
+
+ if (!ecpg_init(con, connection_name, lineno))
+ return false;
+
+ ecpg_log("ECPGtrans on line %d: action \"%s\"; connection \"%s\"\n", lineno, transaction, con ? con->name : "null");
+
+ /* if we have no connection we just simulate the command */
+ if (con && con->connection)
+ {
+ /*
+ * If we got a transaction command but have no open transaction, we
+ * have to start one, unless we are in autocommit, where the
+ * developers have to take care themselves. However, if the command is
+ * a begin statement, we just execute it once. And if the command is
+ * commit or rollback prepared, we don't execute it.
+ */
+ if (PQtransactionStatus(con->connection) == PQTRANS_IDLE &&
+ !con->autocommit &&
+ strncmp(transaction, "begin", 5) != 0 &&
+ strncmp(transaction, "start", 5) != 0 &&
+ strncmp(transaction, "commit prepared", 15) != 0 &&
+ strncmp(transaction, "rollback prepared", 17) != 0)
+ {
+ res = PQexec(con->connection, "begin transaction");
+ if (!ecpg_check_PQresult(res, lineno, con->connection, ECPG_COMPAT_PGSQL))
+ return false;
+ PQclear(res);
+ }
+
+ res = PQexec(con->connection, transaction);
+ if (!ecpg_check_PQresult(res, lineno, con->connection, ECPG_COMPAT_PGSQL))
+ return false;
+ PQclear(res);
+ }
+
+ return true;
+}
+
+
+void
+ECPGdebug(int n, FILE *dbgs)
+{
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_lock(&debug_init_mutex);
+#endif
+
+ if (n > 100)
+ {
+ ecpg_internal_regression_mode = true;
+ simple_debug = n - 100;
+ }
+ else
+ simple_debug = n;
+
+ debugstream = dbgs;
+
+ ecpg_log("ECPGdebug: set to %d\n", simple_debug);
+
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_unlock(&debug_init_mutex);
+#endif
+}
+
+void
+ecpg_log(const char *format,...)
+{
+ va_list ap;
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+ const char *intl_format;
+ int bufsize;
+ char *fmt;
+
+ if (!simple_debug)
+ return;
+
+ /* localize the error message string */
+ intl_format = ecpg_gettext(format);
+
+ /*
+ * Insert PID into the format, unless ecpg_internal_regression_mode is set
+ * (regression tests want unchanging output).
+ */
+ bufsize = strlen(intl_format) + 100;
+ fmt = (char *) malloc(bufsize);
+ if (fmt == NULL)
+ return;
+
+ if (ecpg_internal_regression_mode)
+ snprintf(fmt, bufsize, "[NO_PID]: %s", intl_format);
+ else
+ snprintf(fmt, bufsize, "[%d]: %s", (int) getpid(), intl_format);
+
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_lock(&debug_mutex);
+#endif
+
+ va_start(ap, format);
+ vfprintf(debugstream, fmt, ap);
+ va_end(ap);
+
+ /* dump out internal sqlca variables */
+ if (ecpg_internal_regression_mode && sqlca != NULL)
+ {
+ fprintf(debugstream, "[NO_PID]: sqlca: code: %ld, state: %s\n",
+ sqlca->sqlcode, sqlca->sqlstate);
+ }
+
+ fflush(debugstream);
+
+#ifdef ENABLE_THREAD_SAFETY
+ pthread_mutex_unlock(&debug_mutex);
+#endif
+
+ free(fmt);
+}
+
+void
+ECPGset_noind_null(enum ECPGttype type, void *ptr)
+{
+ switch (type)
+ {
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ *((char *) ptr) = '\0';
+ break;
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ *((short int *) ptr) = SHRT_MIN;
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ *((int *) ptr) = INT_MIN;
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ case ECPGt_date:
+ *((long *) ptr) = LONG_MIN;
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ *((long long *) ptr) = LONG_LONG_MIN;
+ break;
+ case ECPGt_float:
+ memset((char *) ptr, 0xff, sizeof(float));
+ break;
+ case ECPGt_double:
+ memset((char *) ptr, 0xff, sizeof(double));
+ break;
+ case ECPGt_varchar:
+ *(((struct ECPGgeneric_varchar *) ptr)->arr) = 0x00;
+ ((struct ECPGgeneric_varchar *) ptr)->len = 0;
+ break;
+ case ECPGt_bytea:
+ ((struct ECPGgeneric_bytea *) ptr)->len = 0;
+ break;
+ case ECPGt_decimal:
+ memset((char *) ptr, 0, sizeof(decimal));
+ ((decimal *) ptr)->sign = NUMERIC_NULL;
+ break;
+ case ECPGt_numeric:
+ memset((char *) ptr, 0, sizeof(numeric));
+ ((numeric *) ptr)->sign = NUMERIC_NULL;
+ break;
+ case ECPGt_interval:
+ memset((char *) ptr, 0xff, sizeof(interval));
+ break;
+ case ECPGt_timestamp:
+ memset((char *) ptr, 0xff, sizeof(timestamp));
+ break;
+ default:
+ break;
+ }
+}
+
+static bool
+_check(const unsigned char *ptr, int length)
+{
+ for (length--; length >= 0; length--)
+ if (ptr[length] != 0xff)
+ return false;
+
+ return true;
+}
+
+bool
+ECPGis_noind_null(enum ECPGttype type, const void *ptr)
+{
+ switch (type)
+ {
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ if (*((const char *) ptr) == '\0')
+ return true;
+ break;
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ if (*((const short int *) ptr) == SHRT_MIN)
+ return true;
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ if (*((const int *) ptr) == INT_MIN)
+ return true;
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ case ECPGt_date:
+ if (*((const long *) ptr) == LONG_MIN)
+ return true;
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ if (*((const long long *) ptr) == LONG_LONG_MIN)
+ return true;
+ break;
+ case ECPGt_float:
+ return _check(ptr, sizeof(float));
+ break;
+ case ECPGt_double:
+ return _check(ptr, sizeof(double));
+ break;
+ case ECPGt_varchar:
+ if (*(((const struct ECPGgeneric_varchar *) ptr)->arr) == 0x00)
+ return true;
+ break;
+ case ECPGt_bytea:
+ if (((const struct ECPGgeneric_bytea *) ptr)->len == 0)
+ return true;
+ break;
+ case ECPGt_decimal:
+ if (((const decimal *) ptr)->sign == NUMERIC_NULL)
+ return true;
+ break;
+ case ECPGt_numeric:
+ if (((const numeric *) ptr)->sign == NUMERIC_NULL)
+ return true;
+ break;
+ case ECPGt_interval:
+ return _check(ptr, sizeof(interval));
+ break;
+ case ECPGt_timestamp:
+ return _check(ptr, sizeof(timestamp));
+ break;
+ default:
+ break;
+ }
+
+ return false;
+}
+
+#ifdef WIN32
+#ifdef ENABLE_THREAD_SAFETY
+
+void
+win32_pthread_mutex(volatile pthread_mutex_t *mutex)
+{
+ if (mutex->handle == NULL)
+ {
+ while (InterlockedExchange((LONG *) &mutex->initlock, 1) == 1)
+ Sleep(0);
+ if (mutex->handle == NULL)
+ mutex->handle = CreateMutex(NULL, FALSE, NULL);
+ InterlockedExchange((LONG *) &mutex->initlock, 0);
+ }
+}
+
+static pthread_mutex_t win32_pthread_once_lock = PTHREAD_MUTEX_INITIALIZER;
+
+void
+win32_pthread_once(volatile pthread_once_t *once, void (*fn) (void))
+{
+ if (!*once)
+ {
+ pthread_mutex_lock(&win32_pthread_once_lock);
+ if (!*once)
+ {
+ fn();
+ *once = true;
+ }
+ pthread_mutex_unlock(&win32_pthread_once_lock);
+ }
+}
+#endif /* ENABLE_THREAD_SAFETY */
+#endif /* WIN32 */
+
+#ifdef ENABLE_NLS
+
+char *
+ecpg_gettext(const char *msgid)
+{
+ /*
+ * If multiple threads come through here at about the same time, it's okay
+ * for more than one of them to call bindtextdomain(). But it's not okay
+ * for any of them to reach dgettext() before bindtextdomain() is
+ * complete, so don't set the flag till that's done. Use "volatile" just
+ * to be sure the compiler doesn't try to get cute.
+ */
+ static volatile bool already_bound = false;
+
+ if (!already_bound)
+ {
+ /* dgettext() preserves errno, but bindtextdomain() doesn't */
+#ifdef WIN32
+ int save_errno = GetLastError();
+#else
+ int save_errno = errno;
+#endif
+ const char *ldir;
+
+ /* No relocatable lookup here because the binary could be anywhere */
+ ldir = getenv("PGLOCALEDIR");
+ if (!ldir)
+ ldir = LOCALEDIR;
+ bindtextdomain(PG_TEXTDOMAIN("ecpglib"), ldir);
+ already_bound = true;
+#ifdef WIN32
+ SetLastError(save_errno);
+#else
+ errno = save_errno;
+#endif
+ }
+
+ return dgettext(PG_TEXTDOMAIN("ecpglib"), msgid);
+}
+#endif /* ENABLE_NLS */
+
+struct var_list *ivlist = NULL;
+
+void
+ECPGset_var(int number, void *pointer, int lineno)
+{
+ struct var_list *ptr;
+
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return;
+ }
+
+ ecpg_init_sqlca(sqlca);
+
+ for (ptr = ivlist; ptr != NULL; ptr = ptr->next)
+ {
+ if (ptr->number == number)
+ {
+ /* already known => just change pointer value */
+ ptr->pointer = pointer;
+ return;
+ }
+ }
+
+ /* a new one has to be added */
+ ptr = (struct var_list *) calloc(1L, sizeof(struct var_list));
+ if (!ptr)
+ {
+ struct sqlca_t *sqlca = ECPGget_sqlca();
+
+ if (sqlca == NULL)
+ {
+ ecpg_raise(lineno, ECPG_OUT_OF_MEMORY,
+ ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, NULL);
+ return;
+ }
+
+ sqlca->sqlcode = ECPG_OUT_OF_MEMORY;
+ strncpy(sqlca->sqlstate, "YE001", sizeof(sqlca->sqlstate));
+ snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc), "out of memory on line %d", lineno);
+ sqlca->sqlerrm.sqlerrml = strlen(sqlca->sqlerrm.sqlerrmc);
+ /* free all memory we have allocated for the user */
+ ECPGfree_auto_mem();
+ }
+ else
+ {
+ ptr->number = number;
+ ptr->pointer = pointer;
+ ptr->next = ivlist;
+ ivlist = ptr;
+ }
+}
+
+void *
+ECPGget_var(int number)
+{
+ struct var_list *ptr;
+
+ for (ptr = ivlist; ptr != NULL && ptr->number != number; ptr = ptr->next);
+ return (ptr) ? ptr->pointer : NULL;
+}
diff --git a/src/interfaces/ecpg/ecpglib/nls.mk b/src/interfaces/ecpg/ecpglib/nls.mk
new file mode 100644
index 0000000..fff2dfd
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/nls.mk
@@ -0,0 +1,6 @@
+# src/interfaces/ecpg/ecpglib/nls.mk
+CATALOG_NAME = ecpglib
+AVAIL_LANGUAGES = cs de el es fr it ja ka ko pl pt_BR ru sv tr uk vi zh_CN
+GETTEXT_FILES = connect.c descriptor.c error.c execute.c misc.c
+GETTEXT_TRIGGERS = ecpg_gettext
+GETTEXT_FLAGS = ecpg_gettext:1:pass-c-format
diff --git a/src/interfaces/ecpg/ecpglib/po/cs.po b/src/interfaces/ecpg/ecpglib/po/cs.po
new file mode 100644
index 0000000..bc09566
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/cs.po
@@ -0,0 +1,199 @@
+# Czech message translation file for ecpglib
+# Copyright (C) 2012 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+#
+# Tomáš Vondra <tv@fuzzy.cz>, 2012, 2013.
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib-cs (PostgreSQL 9.3)\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@postgresql.org\n"
+"POT-Creation-Date: 2018-07-13 19:38+0000\n"
+"PO-Revision-Date: 2018-07-13 23:44+0200\n"
+"Last-Translator: Tomas Vondra <tv@fuzzy.cz>\n"
+"Language-Team: Czech <info@cspug.cx>\n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 2.0.7\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "prázdný text zprávy"
+
+#: connect.c:401 connect.c:430 connect.c:638
+msgid "<DEFAULT>"
+msgstr "<VÝCHOZÍ>"
+
+#: descriptor.c:834 misc.c:120
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "na řádce %d nenalezena žádná data"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "nedostatek paměti na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "nepodporovaný typ \"%s\" na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "příliš mnoho argumentů na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "příliš málo argumentů na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "chybná vstupní syntaxe pro typ int: \"%s\", na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "chybná vstupní syntaxe pro typ unsigned int: \"%s\", na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "chybná vstupní syntaxe pro typ floating-point: \"%s\", na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "chybná vstupní syntaxe pro typ boolean: \"%s\", na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "nelze zkonvertovat boolean hodnotu: nesprávná velikost, na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "prázdný dotaz na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "null hodnota bez indikátoru na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "proměnná nemá datový typ pole na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "data načtená ze serveru nejsou pole na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "vkládání pole proměnných není podporováno na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "spojení \"%s\" neexistuje na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "neotevřené spojení \"%s\" na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "neplatný název příkazu \"%s\" na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "deskriptor \"%s\" nenalezen na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "index deskriptoru mimo rozsah na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "nerozpoznaná položka deskriptoru \"%s\" na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "proměnná nemá číselný datový typ na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "proměnná nemá znakový datový typ na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "chyba v transakčním zpracování na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "nelze se spojit s databází \"%s\" na řádce %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "SQL chyba %d na řádce %d"
+
+#: error.c:254
+msgid "the connection to the server was lost"
+msgstr "spojení se serverem bylo ztraceno"
+
+#: error.c:347
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "SQL chyba: %s\n"
+
+#: execute.c:1968
+msgid "<empty>"
+msgstr "<prázdný>"
diff --git a/src/interfaces/ecpg/ecpglib/po/de.po b/src/interfaces/ecpg/ecpglib/po/de.po
new file mode 100644
index 0000000..94daa83
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/de.po
@@ -0,0 +1,206 @@
+# German message translation file for ecpglib
+# Copyright (C) 2019 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# Peter Eisentraut, 2009 - 2019.
+#
+# Use these quotes: »%s«
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 12\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2019-09-07 23:08+0000\n"
+"PO-Revision-Date: 2019-09-08 08:48+0200\n"
+"Last-Translator: Peter Eisentraut <peter@eisentraut.org>\n"
+"Language-Team: German <pgsql-translators@postgresql.org>\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "leerer Nachrichtentext"
+
+#: connect.c:403 connect.c:432 connect.c:640
+msgid "<DEFAULT>"
+msgstr "<DEFAULT>"
+
+#: cursor.c:195 descriptor.c:887 misc.c:120
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "keine Daten gefunden auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "Speicher aufgebraucht auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "nicht unterstützter Typ »%s« auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "zu viele Argumente auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "zu wenige Argumente auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "ungültige Eingabesyntax für Typ int: »%s«, auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "ungültige Eingabesyntax für Typ unsigned int: »%s«, auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "ungültige Eingabesyntax für Gleitkommatyp: »%s«, auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "ungültige Syntax für Typ boolean: »%s«, auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "konnte boolean-Wert nicht umwandeln: Größe stimmt nicht überein, auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "leere Anfrage auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "NULL-Wert ohne Indikator auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "Variable hat keinen Array-Typ auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "vom Server gelesene Daten sind kein Array auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "Einfügen in ein Array aus Variablen wird nicht unterstützt auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "Verbindung »%s« existiert nicht auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "nicht mit Verbindung »%s« verbunden auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "ungültiger Anweisungsname »%s« auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "Deskriptor »%s« nicht gefunden auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "Deskriptorindex außerhalb des gültigen Bereichs auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "unbekanntes Deskriptorelement »%s« auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "Variable hat keinen numerischen Typ auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "Variable hat keinen Zeichentyp auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "Fehler bei der Transaktionsverarbeitung auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "konnte nicht mit Datenbank »%s« verbinden auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "cursor is invalid on line %d"
+msgstr "Cursor ist ungültig auf Zeile %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:214
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "SQL-Fehler %d auf Zeile %d"
+
+#: error.c:261
+msgid "the connection to the server was lost"
+msgstr "die Verbindung zum Server wurde verloren"
+
+#: error.c:354
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "SQL-Fehler: %s\n"
+
+#: execute.c:2187 execute.c:2194
+msgid "<empty>"
+msgstr "<leer>"
diff --git a/src/interfaces/ecpg/ecpglib/po/el.po b/src/interfaces/ecpg/ecpglib/po/el.po
new file mode 100644
index 0000000..1aa9583
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/el.po
@@ -0,0 +1,200 @@
+# Greek message translation file for ecpglib
+# Copyright (C) 2021 PostgreSQL Global Development Group
+# This file is distributed under the same license as the ecpglib (PostgreSQL) package.
+# Georgios Kokolatos <gkokolatos@pm.me>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL) 14\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2021-08-20 09:09+0000\n"
+"PO-Revision-Date: 2021-08-23 10:40+0200\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 3.0\n"
+"Last-Translator: Georgios Kokolatos <gkokolatos@pm.me>\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"Language: el\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "κενό κείμενο μηνύματος"
+
+#: connect.c:405 connect.c:627
+msgid "<DEFAULT>"
+msgstr "<DEFAULT>"
+
+#: descriptor.c:871 misc.c:119
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "δεν βρέθηκαν δεδομένα στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "έλλειψη μνήμης στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "μη υποστηριζόμενος τύπος «%s» στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "πάρα πολλές παράμετροι στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "πολύ λίγες παράμετροι στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "μη έγκυρη σύνταξη εισόδου για τύπο int: «%s», στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "μη έγκυρη σύνταξη εισόδου για τύπο unsigned int: «%s», στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "μη έγκυρη σύνταξη εισόδου για τύπο floating-point: «%s», on-line %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "μη έγκυρη σύνταξη για τύπο boolean: «%s», στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "δεν ήταν δυνατή η μετατροπή της δυαδικής τιμής: αναντιστοιχία μεγέθους, στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "άδειο ερώτημα στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "τιμή null χωρίς ένδειξη στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "η μεταβλητή δεν έχει τύπο συστάδας στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "τα δεδομένα που διαβάζονται από το διακομιστή δεν είναι μία συστάδα στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "η εισαγωγή μίας συστάδας μεταβλητών δεν υποστηρίζεται στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "η σύνδεση «%s» δεν υπάρχει στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "δεν έχει συνδεθεί στη σύνδεση «%s» στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "μη έγκυρο όνομα δήλωσης «%s» στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "περιγραφέας «%s» δεν βρέθηκε στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "ευρετήριο περιγραφέα εκτός εύρους στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "μη αναγνωρίσιμο στοιχείο περιγραφέα «%s» στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "η μεταβλητή δεν έχει αριθμητικό τύπο στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "η μεταβλητή δεν έχει τύπο χαρακτήρα στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "σφάλμα κατά την επεξεργασία συναλλαγής στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "δεν ήταν δυνατή η σύνδεση στη βάση δεδομένων «%s» στη γραμμή %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "SQL σφάλμα %d στη γραμμή %d"
+
+#: error.c:254
+msgid "the connection to the server was lost"
+msgstr "η σύνδεση στον διακομιστή χάθηκε"
+
+#: error.c:346
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "SQL σφάλμα: %s\n"
+
+#: execute.c:2196 execute.c:2203
+msgid "<empty>"
+msgstr "<empty>"
diff --git a/src/interfaces/ecpg/ecpglib/po/es.po b/src/interfaces/ecpg/ecpglib/po/es.po
new file mode 100644
index 0000000..9af2825
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/es.po
@@ -0,0 +1,200 @@
+# Spanish message translation file for ecpglib
+#
+# Copyright (c) 2009-2021, PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+#
+# Emanuel Calvo Franco <postgres.arg@gmail.com>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL) 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2023-05-07 16:39+0000\n"
+"PO-Revision-Date: 2022-10-20 09:05+0200\n"
+"Last-Translator: Emanuel Calvo Franco <postgres-arg@gmail.com>\n"
+"Language-Team: PgSQL-es-Ayuda <pgsql-es-ayuda@lists.postgresql.org>\n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: connect.c:243
+msgid "empty message text"
+msgstr "mensaje de texto vacío"
+
+#: connect.c:410 connect.c:675
+msgid "<DEFAULT>"
+msgstr "<POR OMISIÓN>"
+
+#: descriptor.c:876 misc.c:119
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "no se encontraron datos en la línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "memoria agotada en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "tipo no soportado «%s» en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "demasiados argumentos en la línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "muy pocos argumentos en la línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "sintaxis de entrada no válida para el tipo entero: «%s», en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "sintaxis de entrada no válida para el tipo entero sin signo: «%s», en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "sintaxis de entrada no válida para el tipo de coma flotante: «%s», en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "sintaxis no válida para el tipo booleano: «%s», en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "no se puede convertir el valor booleano: tamaño incorrecto, en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "consulta vacía en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "valor nulo sin indicador en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "la variable no tiene tipo array en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "el dato leído del servidor no es un array en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "la inserción de un array de variables no está soportado en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "conexión «%s» no existe en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "no conectada a la conexión «%s» en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "nombre sentencia no válida «%s» en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "descriptor «%s» no encontrado en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "índice de descriptor fuera de rango en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "elemento de descriptor no reconocido «%s» en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "la variable no tiene un tipo numérico en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "la variable no tiene un tipo textual en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "error en el procesamiento de transacción en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "no se pudo conectar a la base de datos «%s» en línea %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "error SQL %d en línea %d"
+
+#: error.c:253
+msgid "the connection to the server was lost"
+msgstr "se ha perdido la conexión al servidor"
+
+#: error.c:345
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "error SQL: %s\n"
+
+#: execute.c:2189 execute.c:2196
+msgid "<empty>"
+msgstr "<vacío>"
diff --git a/src/interfaces/ecpg/ecpglib/po/fr.po b/src/interfaces/ecpg/ecpglib/po/fr.po
new file mode 100644
index 0000000..e976d5c
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/fr.po
@@ -0,0 +1,212 @@
+# LANGUAGE message translation file for ecpglib
+# Copyright (C) 2009-2022 PostgreSQL Global Development Group
+# This file is distributed under the same license as the ecpglib (PostgreSQL) package.
+#
+# Use these quotes: « %s »
+#
+# Stéphane Schildknecht <stephane.schildknecht@dalibo.com>, 2009.
+# Guillaume Lelarge <guillaume@lelarge.info>, 2010-2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-04-12 05:16+0000\n"
+"PO-Revision-Date: 2022-04-12 17:29+0200\n"
+"Last-Translator: Guillaume Lelarge <guillaume@lelarge.info>\n"
+"Language-Team: French <guillaume@lelarge.info>\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: Poedit 3.0.1\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "texte du message vide"
+
+#: connect.c:403 connect.c:432 connect.c:640
+msgid "<DEFAULT>"
+msgstr "<DÉFAUT>"
+
+#: cursor.c:195 descriptor.c:887 misc.c:120
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "aucune donnée trouvée sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "mémoire épuisée à la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "type « %s » non supporté sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "trop d'arguments sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "trop peu d'arguments sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "syntaxe invalide en entrée pour le type int : « %s » sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "syntaxe invalide en entrée pour le type unisgned int : « %s » sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "syntaxe invalide en entrée pour le type float : « %s » sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "syntaxe invalide en entrée pour le type booléen : « %s » sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr ""
+"n'a pas pu convertir la valeur booléenne : différence de taille sur la\n"
+"ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "requête vide sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "valeur NULL sans indicateur sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "la valeur n'a pas de type tableau sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "la donnée lue du serveur n'est pas un tableau sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "l'insertion d'un tableau de variables n'est pas supportée, sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "la connexion « %s » n'existe pas en ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "non connecté à la connexion « %s » en ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "nom d'instruction « %s » invalide sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "descripteur « %s » introuvable sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "index de descripteur hors d'échelle sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "élément descripteur « %s » non reconnu sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "la variable n'est pas de type numeric sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "la variable n'est pas de type caractère sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "erreur dans le traitement de la transaction en ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "n'a pas pu se connecter à la base de données « %s » en ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "cursor is invalid on line %d"
+msgstr "le curseur est invalide sur la ligne %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:214
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "erreur SQL %d en ligne %d"
+
+#: error.c:261
+msgid "the connection to the server was lost"
+msgstr "la connexion au serveur a été perdue"
+
+#: error.c:354
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "erreur SQL : %s\n"
+
+#: execute.c:2187 execute.c:2194
+msgid "<empty>"
+msgstr "<vide>"
diff --git a/src/interfaces/ecpg/ecpglib/po/it.po b/src/interfaces/ecpg/ecpglib/po/it.po
new file mode 100644
index 0000000..24d7435
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/it.po
@@ -0,0 +1,217 @@
+#
+# ecpglib.po
+# Italian message translation file for ecpglib
+#
+# For development and bug report please use:
+# https://github.com/dvarrazzo/postgresql-it
+#
+# Copyright (C) 2012-2017 PostgreSQL Global Development Group
+# Copyright (C) 2010, Associazione Culturale ITPUG
+#
+# Daniele Varrazzo <daniele.varrazzo@gmail.com>, 2012-2017
+# Maurizio Totti <maurizio.totti@gmail.com>, 2010
+#
+# This file is distributed under the same license as the PostgreSQL package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL) 10\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@postgresql.org\n"
+"POT-Creation-Date: 2016-04-17 00:07+0000\n"
+"PO-Revision-Date: 2012-10-30 13:08+0100\n"
+"Last-Translator: Daniele Varrazzo <daniele.varrazzo@gmail.com>\n"
+"Language-Team: https://github.com/dvarrazzo/postgresql-it\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-SourceCharset: utf-8\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "messaggio di testo vuoto"
+
+#: connect.c:401 connect.c:430 connect.c:638
+msgid "<DEFAULT>"
+msgstr "<DEFAULT>"
+
+#: descriptor.c:833 misc.c:120
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "non ci sono dati alla riga %d"
+
+# Utilizzerei 'memoria esaurita' al posto di 'errore di memoria' (GB)
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "memoria esaurita alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "tipo \"%s\" non supportato alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "troppi argomenti alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "numero di argomenti non sufficiente alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "sintassi in input non valida per il tipo int: \"%s\", alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "sintassi in input non valida per il tipo unsigned int: \"%s\", alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "sintassi in input non valida per il tipo floating-point: \"%s\", alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "sintassi in input non valida per il tipo boolean: \"%s\", alla riga %d"
+
+# Originariamente da MT: non si può convertire il valore booleano: la dimensione è sbagliata (disallineata), alla riga %d
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "conversione fallita per il valore booleano: dimensione incompatibile, alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "query vuota alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "valore nullo senza variabile 'indicatore' alla riga %d"
+
+# è difficile da tradurre diversamente (GB)
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "la variabile non è di tipo array alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "i dati letti dal server non sono di tipo array alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "inserire un array di variabili non è supportato alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "la connessione \"%s\" non esiste alla riga %d"
+
+# Inizialmente (MT): non si è connessi alla connessione \"%s\" alla riga %d
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "connessione \"%s\" non attiva alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "nome di istruzione non valido \"%s\" alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "il descrittore \"%s\" non esiste alla riga %d"
+
+# userei intervallo al posto di range (GB)
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "l'indice del descrittore è fuori intervallo alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "elemento del descrittore \"%s\" sconosciuto alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "la variabile non è di tipo numerico alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "la variabile non è di tipo carattere alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "errore nel processare la transazione alla riga %d"
+
+# Inizialmente (MT): non posso connettermi al database \"%s\" alla riga %d
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "connessione fallita al database \"%s\" alla riga %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "errore SQL %d alla riga %d"
+
+#: error.c:254
+msgid "the connection to the server was lost"
+msgstr "la connessione con il server è andata persa"
+
+#: error.c:347
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "errore SQL: %s\n"
+
+#: execute.c:1962
+msgid "<empty>"
+msgstr "<empty>"
diff --git a/src/interfaces/ecpg/ecpglib/po/ja.po b/src/interfaces/ecpg/ecpglib/po/ja.po
new file mode 100644
index 0000000..9a99b57
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/ja.po
@@ -0,0 +1,199 @@
+# Japanese message translation file for ecpglib
+# Copyright (C) 2022 PostgreSQL Global Development Group
+# This file is distributed under the same license as the pg_archivecleanup (PostgreSQL) package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL 15)\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-08-09 12:00+0900\n"
+"PO-Revision-Date: 2019-06-11 09:04+0900\n"
+"Last-Translator: Kyotaro Horiguchi <horikyota.ntt@gmail.com>\n"
+"Language-Team: Japan PostgreSQL Users Group <jpug-doc@ml.postgresql.jp>\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#: connect.c:243
+msgid "empty message text"
+msgstr "メッセージテキストが空です"
+
+#: connect.c:410 connect.c:675
+msgid "<DEFAULT>"
+msgstr "<デフォルト>"
+
+#: descriptor.c:876 misc.c:119
+msgid "NULL"
+msgstr "ヌル"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "行番号%dにおいてデータがありませんでした"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "行番号%dにおいてメモリ不足です"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "行番号%2$dにおいて非サポートのデータ型\"%1$s\"があります"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "行番号%dにおいて引数が多すぎます"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "行番号%dにおいて引数が少なすぎます"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "行番号%2$dにおいて、整数型に対して無効な入力構文があります:\"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "行番号%2$dにおいて、符号無し整数型に対して無効な入力構文があります:\"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "行番号%2$dにおいて、浮動小数点型に対して無効な入力構文があります:\"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "行番号%2$dにおいて、論理型に対して無効な入力構文があります:\"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "行番号%dにおいて、論理型に変換できませんでした。サイズが合っていません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "行番号%dにおいて問い合わせが空です"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "行番号%dにおいて、指示子が無いヌル値です"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "行番号%dにおいて、変数は配列型ではありません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "行番号%dにおいて、サーバーから読み込んだデータは配列ではありません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "行番号%dにおいて、変数の配列への挿入はサポートされません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "行番号%2$dにおいて、接続\"%1$s\"は存在しません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "行番号%2$dにおいて、接続\"%1$s\"に接続していません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "行番号%2$dにおいて、文の名前\"%1$s\"が無効です"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "行番号%2$dにおいて、記述子\"%1$s\"がありません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "行番号%dにおいて、記述子のインデックスが範囲外です"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "行番号%2$dにおいて、記述子項目\"%1$s\"が認識できません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "行番号%dにおいて、変数は数値型ではありません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "行番号%dにおいて、変数は文字型ではありません"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "行番号%dにおいて、トランザクション処理がエラーになりました"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "行番号%2$dにおいて、データベース\"%1$s\"に接続できませんでした"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "行番号%2$dにおいて、SQLエラー%1$dがあります"
+
+#: error.c:253
+msgid "the connection to the server was lost"
+msgstr "サーバーへの接続が切れました"
+
+#: error.c:345
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "SQLエラー: %s\n"
+
+#: execute.c:2189 execute.c:2196
+msgid "<empty>"
+msgstr "<空>"
diff --git a/src/interfaces/ecpg/ecpglib/po/ka.po b/src/interfaces/ecpg/ecpglib/po/ka.po
new file mode 100644
index 0000000..d0e6d4f
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/ka.po
@@ -0,0 +1,200 @@
+# Georgian message translation file for ecpglib
+# Copyright (C) 2022 PostgreSQL Global Development Group
+# This file is distributed under the same license as the ecpglib (PostgreSQL) package.
+# Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL) 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-07-02 08:50+0200\n"
+"PO-Revision-Date: 2022-07-04 13:16+0200\n"
+"Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>\n"
+"Language-Team: Georgian <nothing>\n"
+"Language: ka\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 3.1\n"
+
+#: connect.c:239
+msgid "empty message text"
+msgstr "შეტყობინების ცარიელი ტექსტი"
+
+#: connect.c:406 connect.c:635
+msgid "<DEFAULT>"
+msgstr "<ნაგულისხმები>"
+
+#: descriptor.c:871 misc.c:119
+msgid "NULL"
+msgstr "არაფერი"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "%d-ე ხაზზე მონაცემები ნაპოვნი არაა"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "%d-ე ხაზზე მეხსიერება საკმარისი არაა"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "მხარდაუჭერელი ტიპი \"%s\" %d-ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "%d-ე ხაზზე მეტისმეტად ბევრი არგუმენტია"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "%d-ე ხაზზე არგუმენტები საკმარისი არაა"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "მთელი რიცხვის შეყვანის არასწორი ფორმატი: \"%s\", %d-ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "უნიშნო მთელი რიცხვის შეყვანის არასწორი ფორმატი: \"%s\", %d-ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "წილადი რიცხვის შეყვანის არასწორი ფორმატი: \"%s\", %d-ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "ლოგიკური ტიპის მიშვნეობის შეყვანის არასწორი ფორმატი: \"%s\", %d-ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "%d-ე ხაზზე ლოგიკური მნიშვნელობის გარდაქმნის შეცდომა: არასწორი ზომა"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "%d-ეხაზე მოთხოვნა ცარიელია"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "%d-ე ხაზზე ნულოვანი მნიშვნელობა, ინდიკატორის გარეშე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "%d-ე ხაზზე ცვლადს მასივის ტიპი არ გააჩნია"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "%d-ე ხაზზე სერვერიდან წაკითხული მონაცემი მასივი არაა"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "%d-ე ხაზზე ცვლადების მასივის ჩასმა მხარდაუჭერელია"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "შეერთება სახელით \"%s\" არ არსებობს. %d-ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "შეერთება \"%s\" დაკავშირებული არაა. %d -ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "ოპერატორის არასწორი სახელი: \"%s\" . %d -ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "დესკრიპტორი \"%s\" არ არსებობს. %d-ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "%d-ე ხაზზე დესკრიპტორი ინდექსის დიაპაზონს გარეთაა"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "დესკრიპტორის უცნობი ჩანაწერი \"%s\" %d-ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "%d -ე ხაზზე ცვლადს რიცხვითი ტიპი არ გააჩნია"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "%d -ე ხაზზე ცვლადს სტრიქონის ტიპი არ გააჩნია"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "%d -ე ხაზზე ტრანზაქციის დამუშავების შეცდომა"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "ბაზასთან (\"%s\") მიერთების შეცდომა %d-ე ხაზზე"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "%d-ე ხაზზე SQL-ის შეცდომა: %d"
+
+#: error.c:253
+msgid "the connection to the server was lost"
+msgstr "სერვერთან კავშირი დაკარგულია"
+
+#: error.c:345
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "SQL-ის შეცდომა: %s\n"
+
+#: execute.c:2195 execute.c:2202
+msgid "<empty>"
+msgstr "<empty>"
diff --git a/src/interfaces/ecpg/ecpglib/po/ko.po b/src/interfaces/ecpg/ecpglib/po/ko.po
new file mode 100644
index 0000000..e798653
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/ko.po
@@ -0,0 +1,198 @@
+# LANGUAGE message translation file for ecpglib
+# Copyright (C) 2015 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# Ioseph Kim <ioseph@uri.sarang.net>, 2015
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL) 12\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2020-02-09 20:09+0000\n"
+"PO-Revision-Date: 2020-02-10 09:54+0900\n"
+"Last-Translator: Ioseph Kim <ioseph@uri.sarang.net>\n"
+"Language-Team: Korean <pgsql-kr@postgresql.kr>\n"
+"Language: ko\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "빈 메시지 텍스트"
+
+#: connect.c:401 connect.c:430 connect.c:638
+msgid "<DEFAULT>"
+msgstr "<초기값>"
+
+#: descriptor.c:876 misc.c:120
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "자료 없음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "메모리 부족: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "\"%s\" 형 지원하지 않음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "너무 많은 인자: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "너무 적은 인자: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "int 형에 대한 입력 구문 오류: \"%s\", %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "unsigned int 형에 대한 입력 구문 오류: \"%s\", %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "floating-point 형에 대한 입력 구문 오류: \"%s\", %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "boolean 형에 대한 입력 구문 오류: \"%s\", %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "boolean 값 변환 실패: 크기 다름, %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "빈 쿼리: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "지시자 없는 null 값: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "variable 형에서 배열형을 사용하고 있지 않음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "서버에서 읽은 자료가 배열형이 아님: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "변수들의 배열을 삽입하는 기능을 제공하지 않음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "\"%s\" 연결이 없음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "\"%s\" 연결이 현재 끊겼음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "\"%s\" 이름은 잘못된 쿼리구문 이름: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "\"%s\" 이름의 기술자가 없음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "기술자 색인 범위를 벗어남: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "\"%s\" 이름은 알 수 없는 기술자 항목: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "변수에 numeric 형이 없음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "변수에 character 형이 없음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "트랜잭션 처리 중 실패: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "\"%s\" 데이터베이스로 접속할 수 없음: %d 번째 줄"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "SQL 오류 %d: %d 번째 줄"
+
+#: error.c:254
+msgid "the connection to the server was lost"
+msgstr "서버 연결 끊김"
+
+#: error.c:347
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "SQL 오류: %s\n"
+
+#: execute.c:2198 execute.c:2205
+msgid "<empty>"
+msgstr "<empty>"
diff --git a/src/interfaces/ecpg/ecpglib/po/pl.po b/src/interfaces/ecpg/ecpglib/po/pl.po
new file mode 100644
index 0000000..0d5554b
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/pl.po
@@ -0,0 +1,174 @@
+# Polish message translation file for ecpglib
+# Copyright (C) 2011 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+#
+# Begina Felicysym <begina.felicysym@wp.eu>, 2011.
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL 9.1)\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@postgresql.org\n"
+"POT-Creation-Date: 2013-01-29 13:40+0000\n"
+"PO-Revision-Date: 2011-09-30 09:51-0300\n"
+"Last-Translator: Begina Felicysym <begina.felicysym@wp.eu>\n"
+"Language-Team: Begina Felicysym\n"
+"Language: pl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"X-Generator: Virtaal 0.7.1-beta1\n"
+
+#: connect.c:231
+msgid "empty message text"
+msgstr "pusty tekst komunikatu"
+
+#: connect.c:384 connect.c:413 connect.c:618
+msgid "<DEFAULT>"
+msgstr "<DOMYŚLNIE>"
+
+#: descriptor.c:807 misc.c:113
+msgid "NULL"
+msgstr "NULL"
+
+#: error.c:29
+#, c-format
+msgid "no data found on line %d"
+msgstr "nie znaleziono danych, linia %d"
+
+#: error.c:39
+#, c-format
+msgid "out of memory on line %d"
+msgstr "brak pamięci, linia %d"
+
+#: error.c:49
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "nieobsługiwany typ \"%s\", linia %d"
+
+#: error.c:59
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "zbyt wiele argumentów, linia %d"
+
+#: error.c:69
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "zbyt mało argumentów, linia %d"
+
+#: error.c:79
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "niepoprawna składnia wejścia dla typu int: \"%s\", linia %d"
+
+#: error.c:89
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "niepoprawna składnia wejścia dla typu unsigned int: \"%s\", linia %d"
+
+#: error.c:99
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "niepoprawna składnia wejścia dla typu floating-point: \"%s\", linia %d"
+
+#: error.c:110
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "niepoprawna składnia wejścia dla typu boolean: \"%s\", linia %d"
+
+#: error.c:118
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "nie można przekształcić wartości logicznej: niepoprawny rozmiar, linia %d"
+
+#: error.c:128
+#, c-format
+msgid "empty query on line %d"
+msgstr "puste zapytanie, linia %d"
+
+#: error.c:138
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "wartość null bez wskaźnika, linia %d"
+
+#: error.c:148
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "zmienna nie ma typu array, linia %d"
+
+#: error.c:158
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "dane odczytane z serwera nie są tablicą, linia %d"
+
+#: error.c:168
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "wstawienie tablicy zmiennych nie jest obsługiwane, linia %d"
+
+#: error.c:178
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "połączenie \"%s\" nie istnieje, linia %d"
+
+#: error.c:188
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "nie wykonano połączenia z \"%s\", linia %d"
+
+#: error.c:198
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "niepoprawna nazwa wyrażenia \"%s\", linia %d"
+
+#: error.c:208
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "nie odnaleziono deskryptora \"%s\", linia %d"
+
+#: error.c:218
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "indeks deskryptora poza zakresem, linia %d"
+
+#: error.c:228
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "niezrozumiały element deskryptora \"%s\", linia %d"
+
+#: error.c:238
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "zmienna nie ma typu typu numeric, linia %d"
+
+#: error.c:248
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "zmienna nie ma typu typu character, linia %d"
+
+#: error.c:258
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "błąd w przetwarzaniu transakcji, linia %d"
+
+#: error.c:268
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "nie można połączyć się z bazą danych \"%s\", linia %d"
+
+#: error.c:278
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "błąd SQL %d, linia %d"
+
+#: error.c:318
+msgid "the connection to the server was lost"
+msgstr "połączenie z serwerem zostało przerwane"
+
+#: error.c:405
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "błąd SQL: %s\n"
+
+#: execute.c:1921
+msgid "<empty>"
+msgstr "<pusty>"
diff --git a/src/interfaces/ecpg/ecpglib/po/pt_BR.po b/src/interfaces/ecpg/ecpglib/po/pt_BR.po
new file mode 100644
index 0000000..781ad17
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/pt_BR.po
@@ -0,0 +1,201 @@
+# Brazilian Portuguese message translation file for ecpglib
+#
+# Copyright (C) 2009-2022 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+#
+# Fernando Ike de Oliveira <fike@midstorm.org>, 2009.
+# Euler Taveira <euler@eulerto.com>, 2010-2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-09-10 18:24-0300\n"
+"PO-Revision-Date: 2009-02-09 13:00-0200\n"
+"Last-Translator: Fernando Ike de Oliveira <fike@midstorm.org>\n"
+"Language-Team: Brazilian Portuguese <pgsql-translators@postgresql.org>\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: connect.c:243
+msgid "empty message text"
+msgstr "mensagem vazia"
+
+#: connect.c:410 connect.c:675
+msgid "<DEFAULT>"
+msgstr "<PADRÃO>"
+
+#: descriptor.c:876 misc.c:119
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "nenhum dado encontrado na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "sem memória na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "tipo \"%s\" não é suportado na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "muitos argumentos na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "poucos argumentos na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "sintaxe de entrada é inválida para tipo inteiro: \"%s\", na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "sintaxe de entrada é inválida para tipo inteiro não-sinalizado: \"%s\", na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "sintaxe de entrada é inválida para tipo ponto flutuante: \"%s\", na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "sintaxe de entrada é inválida par tipo booleano: \"%s\", na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "não pôde converter valor booleano: tamanho não corresponde, na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "consulta vazia na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "valor nulo sem indicador na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "variável não tem um tipo matriz na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "dado lido do servidor não é uma matriz na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "inserir uma matriz de variáveis não é suportado na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "conexão \"%s\" não existe na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "não está conectado a conexão \"%s\" na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "nome de comando \"%s\" é inválido na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "descritor \"%s\" não foi encontrado na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "índice do descritor está fora do intervalo na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "item do descritor \"%s\" é desconhecido na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "variável não tem um tipo numérico na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "variável não tem um tipo caracter na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "erro ao processar transação na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "não pôde connectar ao banco de dados \"%s\" na linha %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "Erro SQL %d na linha %d"
+
+#: error.c:253
+msgid "the connection to the server was lost"
+msgstr "a conexão com servidor foi perdida"
+
+#: error.c:345
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "Erro SQL: %s\n"
+
+#: execute.c:2189 execute.c:2196
+msgid "<empty>"
+msgstr "<vazio>"
diff --git a/src/interfaces/ecpg/ecpglib/po/ru.po b/src/interfaces/ecpg/ecpglib/po/ru.po
new file mode 100644
index 0000000..d4eb7da
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/ru.po
@@ -0,0 +1,204 @@
+# Russian message translation file for ecpglib
+# Copyright (C) 2012-2016 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# Alexander Lakhin <exclusion@gmail.com>, 2012-2017, 2019.
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL current)\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-08-27 14:52+0300\n"
+"PO-Revision-Date: 2019-09-09 13:30+0300\n"
+"Last-Translator: Alexander Lakhin <exclusion@gmail.com>\n"
+"Language-Team: Russian <pgsql-ru-general@postgresql.org>\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#: connect.c:243
+msgid "empty message text"
+msgstr "пустое сообщение"
+
+#: connect.c:410 connect.c:675
+msgid "<DEFAULT>"
+msgstr "<ПО_УМОЛЧАНИЮ>"
+
+#: descriptor.c:876 misc.c:119
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "нет данных (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "нехватка памяти (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "неподдерживаемый тип \"%s\" в строке %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "слишком много аргументов в строке %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "недостаточно аргументов в строке %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "неверный синтаксис для целого числа: \"%s\" (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "неверный синтаксис для беззнакового целого: \"%s\" (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "неверный синтаксис для числа с плавающей точкой: \"%s\" (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "неверный синтаксис для логического значения: \"%s\" (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr ""
+"не удалось преобразовать логическое значение: несовпадение размера (строка "
+"%d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "пустой запрос в строке %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "значение NULL без индикатора в строке %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "переменная должна иметь тип массива (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "полученные с сервера данные - не массив (%d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "добавление массива переменных не поддерживается (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "подключение \"%s\" не существует (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "подключение \"%s\" не установлено (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "неверный оператор \"%s\" в строке %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "дескриптор \"%s\" не найден (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "индекс дескриптора вне диапазона (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "нераспознанный элемент дескриптора \"%s\" (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "переменная должна быть числовой (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "переменная должна быть символьной (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "ошибка при обработке транзакции в строке %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "ошибка подключения к базе данных \"%s\" (строка %d)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "SQL-ошибка %d в строке %d"
+
+#: error.c:253
+msgid "the connection to the server was lost"
+msgstr "подключение к серверу потеряно"
+
+#: error.c:345
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "ошибка SQL: %s\n"
+
+#: execute.c:2189 execute.c:2196
+msgid "<empty>"
+msgstr "<>"
+
+#~ msgid "cursor is invalid on line %d"
+#~ msgstr "некорректный курсор в строке %d"
diff --git a/src/interfaces/ecpg/ecpglib/po/sv.po b/src/interfaces/ecpg/ecpglib/po/sv.po
new file mode 100644
index 0000000..7ccde10
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/sv.po
@@ -0,0 +1,199 @@
+# SWEDISH message translation file for ecpglib
+# Copyright (C) 2017 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# Dennis Björklund <db@zigo.dhs.org>, 2017, 2018, 2019, 2020, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 14\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2020-04-10 02:39+0000\n"
+"PO-Revision-Date: 2021-11-07 10:36+0100\n"
+"Last-Translator: Dennis Björklund <db@zigo.dhs.org>\n"
+"Language-Team: Swedish <pgsql-translators@postgresql.org>\n"
+"Language: sv\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "tom meddelandetext"
+
+#: connect.c:401 connect.c:430 connect.c:653
+msgid "<DEFAULT>"
+msgstr "<DEFAULT>"
+
+#: descriptor.c:871 misc.c:119
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "ingen data hittad på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "slut på minne på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "ej stöd för typ \"%s\" på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "för många argument på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "för få argument på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "ogiltig inputsyntax för typ int: \"%s\", på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "ogiltig inputsyntax för typ unsigned int: \"%s\", på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "ogiltig inputsyntaxc för flyttalstyp: \"%s\", på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "ogiltig syntax för typ boolean: \"%s\", på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "kunde inte konvertera booleanskt värde: storlekarna matchar inte, på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "tom fråga på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "null-värde utan indikator på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "variabel har inte array-typ på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "data inläst från servern är inte en array på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "sätta in en array med variabler stöds inte på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "anslutning \"%s\" funns inte på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "ej ansluten till anslutning \"%s\" på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "ogiltigt satsnamn \"%s\" på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "deskriptor \"%s\" hittades inte på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "deskriptor-index utanför sitt intervall på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "okänd deskriptor-post \"%s\" på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "variabel har ej numerisk typ på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "variabel har ej character-typ på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "fel i transaktionsprocessande på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "kunde inte ansluta till databas \"%s\" på rad %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "SQL-fel %d på rad %d"
+
+#: error.c:254
+msgid "the connection to the server was lost"
+msgstr "anslutningen till servern tappades"
+
+#: error.c:347
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "SQL-fel: %s\n"
+
+#: execute.c:2196 execute.c:2203
+msgid "<empty>"
+msgstr "<tom>"
diff --git a/src/interfaces/ecpg/ecpglib/po/tr.po b/src/interfaces/ecpg/ecpglib/po/tr.po
new file mode 100644
index 0000000..38ac989
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/tr.po
@@ -0,0 +1,205 @@
+# LANGUAGE message translation file for ecpglib
+# Copyright (C) 2009 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 8.4\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2019-04-26 13:38+0000\n"
+"PO-Revision-Date: 2019-06-14 10:40+0300\n"
+"Last-Translator: Devrim GÜNDÜZ <devrim@gunduz.org>\n"
+"Language-Team: TR <devrim@gunduz.org>\n"
+"Language: tr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.8.7.1\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "boş mesaj metni"
+
+#: connect.c:403 connect.c:432 connect.c:640
+msgid "<DEFAULT>"
+msgstr "<ÖNTANIMLI>"
+
+#: descriptor.c:888 misc.c:120
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "%d. satırda veri bulunamadı"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "%d. satırda yetersiz bellek"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "%2$d. satırda desteklenmeyen veri tipi \"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "%d. satırda çok fazla argüman var"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "%d. satırda yetersiz argüman sayısı"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "%2$d. satırda int veri tipi için geçersiz girdi sözdizimi: \"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "%2$d. satırda işaretsiz tamsayı tipi için geçersiz girdi sözdizimi: \"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "%2$d. satırda kayan noktalı veri tipi için geçersiz girdi sözdizimi: \"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "%2$d. satırda boolean veri tipi için geçersiz girdi sözdizimi: \"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "boolean değer dönüştürülemedi: boyut uyuşmazlığı, %d. satırda"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "%d. satırda boş sorgu"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "%d. satırda belirteç olmadan null değer var"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "%d. satırda değişkenin veri tipi dizi değil"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "%d. satırda sunucudan okunan veri bir dizi değil"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "%d. satırda değişkenlerden oluşan dizinin eklenmesi (insert) desteklenmiyor"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "%2$d numaralı satırda \"%1$s\" bağlantısı yok"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "%2$d. satırda\"%1$s\" bağlantısına bağlanılmıyor"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "%2$d. satırda geçersiz ifade adı \"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "%2$d. satırda tanımlayıcı \"%1$s\" bulunamadı"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "%d. satırdaki açıklayıcı indeks sınırların dışında"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "%2$d. satırda bilinmeyen tanımlayıcı öğe \"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "%d. satırdaki değişken sayısal tipte değil"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "%d. satırdaki değişkenin karakter tipi yok"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "%d. satırda tranaction'ı işlerken hata oluştu"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "%2$d. satırda \"%1$s\" veritabanına bağlanılamadı"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "The cursor is invalid on line %d"
+msgstr "%d. satırda geçersiz imleç (cursor)"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:214
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "%2$d. satırda SQL hatası %1$d"
+
+#: error.c:261
+msgid "the connection to the server was lost"
+msgstr "sunucuya bağlantı kesildi"
+
+#: error.c:354
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "SQL hatası: %s\n"
+
+#: execute.c:2103
+msgid "<empty>"
+msgstr "<boş>"
diff --git a/src/interfaces/ecpg/ecpglib/po/uk.po b/src/interfaces/ecpg/ecpglib/po/uk.po
new file mode 100644
index 0000000..dcb1738
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/uk.po
@@ -0,0 +1,200 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: postgresql\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-08-12 10:39+0000\n"
+"PO-Revision-Date: 2022-09-13 11:52\n"
+"Last-Translator: \n"
+"Language-Team: Ukrainian\n"
+"Language: uk_UA\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
+"X-Crowdin-Project: postgresql\n"
+"X-Crowdin-Project-ID: 324573\n"
+"X-Crowdin-Language: uk\n"
+"X-Crowdin-File: /REL_15_STABLE/ecpglib.pot\n"
+"X-Crowdin-File-ID: 890\n"
+
+#: connect.c:243
+msgid "empty message text"
+msgstr "пусте повідомлення"
+
+#: connect.c:410 connect.c:675
+msgid "<DEFAULT>"
+msgstr "<ЗА_ЗАМОВЧУВАННЯМ>"
+
+#: descriptor.c:876 misc.c:119
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "в рядку %d не знайдено жодних даних"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "не вистачає пам'яті в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "непідтримуванний тип \"%s\" в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "забагато аргументів в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "недостатньо аргументів в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "неприпустимий синтаксис для цілочисельного типу: \"%s\" в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "неприпустимий синтаксис вводу для типу цілого числа без знаку: \"%s\" в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "неприпустимий синтаксис вводу для типу з плаваючою комою: \"%s\" в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "неприпустимий синтаксис для логічного типу: \"%s\" в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "не вдалося перетворити логічне значення: невідповідність розміру в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "пустий запит в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "значення NULL без індикатора в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "змінна не має типу масиву в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "дані, прочитані з сервера, не є масивом в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "вставлення масиву змінних не підтримується в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "підключення \"%s\" не існує в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "не підключено до підключення \"%s\" в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "неприпустимий оператор \"%s\" в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "дескриптор \"%s\" не знайдено в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "індекс дескриптора поза діапазоном в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "нерозпізнаний елемент дескриптора \"%s\" в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "змінна не має числового типу в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "змінна не має символьного типу в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "помилка в транзакції в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "неможливо під'єднатися до бази даних %s в рядку %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "помилка SQL %d в рядку %d"
+
+#: error.c:253
+msgid "the connection to the server was lost"
+msgstr "з'єднання із сервером втрачено"
+
+#: error.c:345
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "помилка SQL: %s\n"
+
+#: execute.c:2189 execute.c:2196
+msgid "<empty>"
+msgstr "<пусто>"
+
diff --git a/src/interfaces/ecpg/ecpglib/po/vi.po b/src/interfaces/ecpg/ecpglib/po/vi.po
new file mode 100644
index 0000000..850b54f
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/vi.po
@@ -0,0 +1,200 @@
+# LANGUAGE message translation file for ecpglib
+# Copyright (C) 2018 PostgreSQL Global Development Group
+# This file is distributed under the same license as the ecpglib (PostgreSQL) package.
+# FIRST AUTHOR <kakalot49@gmail.com>, 2018.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL) 11\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@postgresql.org\n"
+"POT-Creation-Date: 2018-04-22 12:08+0000\n"
+"PO-Revision-Date: 2018-04-23 21:34+0900\n"
+"Language-Team: <pgvn_translators@postgresql.vn>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 2.0.6\n"
+"Last-Translator: Dang Minh Huong <kakalot49@gmail.com>\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"Language: vi_VN\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "văn bản tin nhắn trống"
+
+#: connect.c:401 connect.c:430 connect.c:638
+msgid "<DEFAULT>"
+msgstr "<MẶC ĐỊNH>"
+
+#: descriptor.c:834 misc.c:120
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "không tìm thấy dữ liệu trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "hết bộ nhớ trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "không hỗ trợ kiểu \"%s\" trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "quá nhiều đối số trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "quá ít đối số trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "cú pháp nhập không hợp lệ cho kiểu int: \"%s\", trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "cú pháp nhập không hợp lệ cho kiểu unsigned int: \"%s\", trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "cú pháp nhập không hợp lệ cho kiểu dấu phẩy động: \"%s\", trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "cú pháp không hợp lệ cho kiểu boolean: \"%s\", trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "không thể chuyển đổi giá trị boolean: kích thước không khớp, trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "truy vấn trống trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "giá trị null không có chỉ báo (indicator) trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "biến không có kiểu mảng trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "dữ liệu đọc từ server không phải là một mảng trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "chèn một mảng các biến không được hỗ trợ trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "kết nối \"%s\" không tồn tại trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "chưa kết nối tới kết nối \"%s\" trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "tên statement không hợp lệ \"%s\" trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "không tìm thấy descriptor \"%s\" trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "chỉ mục của descriptor nằm ngoài phạm vi trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "không nhận ra descriptor item \"%s\" trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "biến số không có kiểu numeric trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "biến số không có kiểu ký tự trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "lỗi trong xử lý giao dịch trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "không thể kết nối với cơ sở dữ liệu \"%s\" trên dòng %d"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "lỗi SQL %d trên dòng %d"
+
+#: error.c:254
+msgid "the connection to the server was lost"
+msgstr "kết nối với server bị mất"
+
+#: error.c:347
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "lỗi SQL: %s\n"
+
+#: execute.c:1968
+msgid "<empty>"
+msgstr "<trống>"
diff --git a/src/interfaces/ecpg/ecpglib/po/zh_CN.po b/src/interfaces/ecpg/ecpglib/po/zh_CN.po
new file mode 100644
index 0000000..d775d4f
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/po/zh_CN.po
@@ -0,0 +1,199 @@
+# LANGUAGE message translation file for ecpglib
+# Copyright (C) 2010 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpglib (PostgreSQL) 14\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2021-08-14 05:39+0000\n"
+"PO-Revision-Date: 2021-08-15 18:50+0800\n"
+"Last-Translator: Jie Zhang <zhangjie2@fujitsu.com>\n"
+"Language-Team: Chinese (Simplified) <zhangjie2@fujitsu.com>\n"
+"Language: zh_CN\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: connect.c:237
+msgid "empty message text"
+msgstr "消息文本为空"
+
+#: connect.c:405 connect.c:627
+msgid "<DEFAULT>"
+msgstr "<DEFAULT>"
+
+#: descriptor.c:871 misc.c:119
+msgid "NULL"
+msgstr "NULL"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:33
+#, c-format
+msgid "no data found on line %d"
+msgstr "在第%d行上没有找到数据"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:40
+#, c-format
+msgid "out of memory on line %d"
+msgstr "在第%d行上内存用尽"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:47
+#, c-format
+msgid "unsupported type \"%s\" on line %d"
+msgstr "在第%2$d上出现不支持的类型\"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:54
+#, c-format
+msgid "too many arguments on line %d"
+msgstr "在第%d行上的参数多于指定的数量"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:61
+#, c-format
+msgid "too few arguments on line %d"
+msgstr "在第%d行上的参数少于指定的数量"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:68
+#, c-format
+msgid "invalid input syntax for type int: \"%s\", on line %d"
+msgstr "对于整数类型的输入语法无效: \"%s\" ,在第%d行"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:75
+#, c-format
+msgid "invalid input syntax for type unsigned int: \"%s\", on line %d"
+msgstr "对于无符号整数类型的输入语法无效: \"%s\" 在第%d行"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:82
+#, c-format
+msgid "invalid input syntax for floating-point type: \"%s\", on line %d"
+msgstr "对于浮点类型的输入语法无效: \"%s\",在第%d行"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:90
+#, c-format
+msgid "invalid syntax for type boolean: \"%s\", on line %d"
+msgstr "对于布尔类型语法无效: \"%s\",在第%d行上"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:95
+#, c-format
+msgid "could not convert boolean value: size mismatch, on line %d"
+msgstr "在第%d行上无法转换布尔类型值: 大小不匹配"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:102
+#, c-format
+msgid "empty query on line %d"
+msgstr "在第%d行上查询是空的"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:109
+#, c-format
+msgid "null value without indicator on line %d"
+msgstr "在第%d行上的空值没有标志"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:116
+#, c-format
+msgid "variable does not have an array type on line %d"
+msgstr "在第%d行上的变量没有数组类型"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:123
+#, c-format
+msgid "data read from server is not an array on line %d"
+msgstr "在第%d行上从服务器读取的数据不是数组"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:130
+#, c-format
+msgid "inserting an array of variables is not supported on line %d"
+msgstr "在第%d行上不支持正在插入一个的变量数组"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:137
+#, c-format
+msgid "connection \"%s\" does not exist on line %d"
+msgstr "在第%2$d行上连接\"%1$s\"不存在"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:144
+#, c-format
+msgid "not connected to connection \"%s\" on line %d"
+msgstr "在第%2$d行上没有连接到\"%1$s\"连接"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:151
+#, c-format
+msgid "invalid statement name \"%s\" on line %d"
+msgstr "在第%2$d行上的语句名称\"%1$s\"无效"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:158
+#, c-format
+msgid "descriptor \"%s\" not found on line %d"
+msgstr "在第%2$d行上没有找到描述符\"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:165
+#, c-format
+msgid "descriptor index out of range on line %d"
+msgstr "在第%d行上的描述符索引超出范围"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:172
+#, c-format
+msgid "unrecognized descriptor item \"%s\" on line %d"
+msgstr "在第%2$d行上出现无法识别的描述符成员\"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:179
+#, c-format
+msgid "variable does not have a numeric type on line %d"
+msgstr "在第%d上的变量没有数值类型"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:186
+#, c-format
+msgid "variable does not have a character type on line %d"
+msgstr "在第%d行上的变量没有字符类型"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:193
+#, c-format
+msgid "error in transaction processing on line %d"
+msgstr "在第%d行上的事务处理中发生错误"
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:200
+#, c-format
+msgid "could not connect to database \"%s\" on line %d"
+msgstr "在第%2$d行上无法连接数据库\"%1$s\""
+
+#. translator: this string will be truncated at 149 characters expanded.
+#: error.c:207
+#, c-format
+msgid "SQL error %d on line %d"
+msgstr "在第%2$d行上的SQL命令发生错误 代码%1$d"
+
+#: error.c:254
+msgid "the connection to the server was lost"
+msgstr "与服务器的连接丢失"
+
+#: error.c:346
+#, c-format
+msgid "SQL error: %s\n"
+msgstr "SQL语句错误: %s\n"
+
+#: execute.c:2196 execute.c:2203
+msgid "<empty>"
+msgstr "<空>"
+
diff --git a/src/interfaces/ecpg/ecpglib/prepare.c b/src/interfaces/ecpg/ecpglib/prepare.c
new file mode 100644
index 0000000..ea1146f
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/prepare.c
@@ -0,0 +1,602 @@
+/* src/interfaces/ecpg/ecpglib/prepare.c */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include <ctype.h>
+
+#include "ecpgerrno.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+#include "sqlca.h"
+
+#define STMTID_SIZE 32
+
+/*
+ * The statement cache contains stmtCacheNBuckets hash buckets, each
+ * having stmtCacheEntPerBucket entries, which we recycle as needed,
+ * giving up the least-executed entry in the bucket.
+ * stmtCacheEntries[0] is never used, so that zero can be a "not found"
+ * indicator.
+ */
+#define stmtCacheNBuckets 2039 /* should be a prime number */
+#define stmtCacheEntPerBucket 8
+
+#define stmtCacheArraySize (stmtCacheNBuckets * stmtCacheEntPerBucket + 1)
+
+typedef struct
+{
+ int lineno;
+ char stmtID[STMTID_SIZE];
+ char *ecpgQuery;
+ long execs; /* # of executions */
+ const char *connection; /* connection for the statement */
+} stmtCacheEntry;
+
+static int nextStmtID = 1;
+static stmtCacheEntry *stmtCacheEntries = NULL;
+
+static bool deallocate_one(int lineno, enum COMPAT_MODE c, struct connection *con,
+ struct prepared_statement *prev, struct prepared_statement *this);
+
+static bool
+isvarchar(unsigned char c)
+{
+ if (isalnum(c))
+ return true;
+
+ if (c == '_' || c == '>' || c == '-' || c == '.')
+ return true;
+
+ if (c >= 128)
+ return true;
+
+ return false;
+}
+
+bool
+ecpg_register_prepared_stmt(struct statement *stmt)
+{
+ struct statement *prep_stmt;
+ struct prepared_statement *this;
+ struct connection *con = stmt->connection;
+ struct prepared_statement *prev = NULL;
+ int lineno = stmt->lineno;
+
+ /* check if we already have prepared this statement */
+ this = ecpg_find_prepared_statement(stmt->name, con, &prev);
+ if (this && !deallocate_one(lineno, ECPG_COMPAT_PGSQL, con, prev, this))
+ return false;
+
+ /* allocate new statement */
+ this = (struct prepared_statement *) ecpg_alloc(sizeof(struct prepared_statement), lineno);
+ if (!this)
+ return false;
+
+ prep_stmt = (struct statement *) ecpg_alloc(sizeof(struct statement), lineno);
+ if (!prep_stmt)
+ {
+ ecpg_free(this);
+ return false;
+ }
+ memset(prep_stmt, 0, sizeof(struct statement));
+
+ /* create statement */
+ prep_stmt->lineno = lineno;
+ prep_stmt->connection = con;
+ prep_stmt->command = ecpg_strdup(stmt->command, lineno);
+ prep_stmt->inlist = prep_stmt->outlist = NULL;
+ this->name = ecpg_strdup(stmt->name, lineno);
+ this->stmt = prep_stmt;
+ this->prepared = true;
+
+ if (con->prep_stmts == NULL)
+ this->next = NULL;
+ else
+ this->next = con->prep_stmts;
+
+ con->prep_stmts = this;
+ return true;
+}
+
+static bool
+replace_variables(char **text, int lineno)
+{
+ bool string = false;
+ int counter = 1,
+ ptr = 0;
+
+ for (; (*text)[ptr] != '\0'; ptr++)
+ {
+ if ((*text)[ptr] == '\'')
+ string = string ? false : true;
+
+ if (string || (((*text)[ptr] != ':') && ((*text)[ptr] != '?')))
+ continue;
+
+ if (((*text)[ptr] == ':') && ((*text)[ptr + 1] == ':'))
+ ptr += 2; /* skip '::' */
+ else
+ {
+ /* a rough guess of the size we need: */
+ int buffersize = sizeof(int) * CHAR_BIT * 10 / 3;
+ int len;
+ char *buffer,
+ *newcopy;
+
+ if (!(buffer = (char *) ecpg_alloc(buffersize, lineno)))
+ return false;
+
+ snprintf(buffer, buffersize, "$%d", counter++);
+
+ for (len = 1; (*text)[ptr + len] && isvarchar((*text)[ptr + len]); len++)
+ /* skip */ ;
+ if (!(newcopy = (char *) ecpg_alloc(strlen(*text) - len + strlen(buffer) + 1, lineno)))
+ {
+ ecpg_free(buffer);
+ return false;
+ }
+
+ memcpy(newcopy, *text, ptr);
+ strcpy(newcopy + ptr, buffer);
+ strcat(newcopy, (*text) +ptr + len);
+
+ ecpg_free(*text);
+ ecpg_free(buffer);
+
+ *text = newcopy;
+
+ if ((*text)[ptr] == '\0') /* we reached the end */
+ ptr--; /* since we will (*text)[ptr]++ in the top
+ * level for loop */
+ }
+ }
+ return true;
+}
+
+static bool
+prepare_common(int lineno, struct connection *con, const char *name, const char *variable)
+{
+ struct statement *stmt;
+ struct prepared_statement *this;
+ PGresult *query;
+
+ /* allocate new statement */
+ this = (struct prepared_statement *) ecpg_alloc(sizeof(struct prepared_statement), lineno);
+ if (!this)
+ return false;
+
+ stmt = (struct statement *) ecpg_alloc(sizeof(struct statement), lineno);
+ if (!stmt)
+ {
+ ecpg_free(this);
+ return false;
+ }
+
+ /* create statement */
+ stmt->lineno = lineno;
+ stmt->connection = con;
+ stmt->command = ecpg_strdup(variable, lineno);
+ stmt->inlist = stmt->outlist = NULL;
+
+ /* if we have C variables in our statement replace them with '?' */
+ replace_variables(&(stmt->command), lineno);
+
+ /* add prepared statement to our list */
+ this->name = ecpg_strdup(name, lineno);
+ this->stmt = stmt;
+
+ /* and finally really prepare the statement */
+ query = PQprepare(stmt->connection->connection, name, stmt->command, 0, NULL);
+ if (!ecpg_check_PQresult(query, stmt->lineno, stmt->connection->connection, stmt->compat))
+ {
+ ecpg_free(stmt->command);
+ ecpg_free(this->name);
+ ecpg_free(this);
+ ecpg_free(stmt);
+ return false;
+ }
+
+ ecpg_log("prepare_common on line %d: name %s; query: \"%s\"\n", stmt->lineno, name, stmt->command);
+ PQclear(query);
+ this->prepared = true;
+
+ if (con->prep_stmts == NULL)
+ this->next = NULL;
+ else
+ this->next = con->prep_stmts;
+
+ con->prep_stmts = this;
+ return true;
+}
+
+/* handle the EXEC SQL PREPARE statement */
+/* questionmarks is not needed but remains in there for the time being to not change the API */
+bool
+ECPGprepare(int lineno, const char *connection_name, const bool questionmarks,
+ const char *name, const char *variable)
+{
+ struct connection *con;
+ struct prepared_statement *this,
+ *prev;
+
+ (void) questionmarks; /* quiet the compiler */
+
+ con = ecpg_get_connection(connection_name);
+ if (!ecpg_init(con, connection_name, lineno))
+ return false;
+
+ /* check if we already have prepared this statement */
+ this = ecpg_find_prepared_statement(name, con, &prev);
+ if (this && !deallocate_one(lineno, ECPG_COMPAT_PGSQL, con, prev, this))
+ return false;
+
+ return prepare_common(lineno, con, name, variable);
+}
+
+struct prepared_statement *
+ecpg_find_prepared_statement(const char *name,
+ struct connection *con, struct prepared_statement **prev_)
+{
+ struct prepared_statement *this,
+ *prev;
+
+ for (this = con->prep_stmts, prev = NULL;
+ this != NULL;
+ prev = this, this = this->next)
+ {
+ if (strcmp(this->name, name) == 0)
+ {
+ if (prev_)
+ *prev_ = prev;
+ return this;
+ }
+ }
+ return NULL;
+}
+
+static bool
+deallocate_one(int lineno, enum COMPAT_MODE c, struct connection *con,
+ struct prepared_statement *prev, struct prepared_statement *this)
+{
+ bool r = false;
+
+ ecpg_log("deallocate_one on line %d: name %s\n", lineno, this->name);
+
+ /* first deallocate the statement in the backend */
+ if (this->prepared)
+ {
+ char *text;
+ PGresult *query;
+
+ text = (char *) ecpg_alloc(strlen("deallocate \"\" ") + strlen(this->name), this->stmt->lineno);
+
+ if (text)
+ {
+ sprintf(text, "deallocate \"%s\"", this->name);
+ query = PQexec(this->stmt->connection->connection, text);
+ ecpg_free(text);
+ if (ecpg_check_PQresult(query, lineno,
+ this->stmt->connection->connection,
+ this->stmt->compat))
+ {
+ PQclear(query);
+ r = true;
+ }
+ }
+ }
+
+ /*
+ * Just ignore all errors since we do not know the list of cursors we are
+ * allowed to free. We have to trust the software.
+ */
+ if (!r && !INFORMIX_MODE(c))
+ {
+ ecpg_raise(lineno, ECPG_INVALID_STMT, ECPG_SQLSTATE_INVALID_SQL_STATEMENT_NAME, this->name);
+ return false;
+ }
+
+ /* okay, free all the resources */
+ ecpg_free(this->stmt->command);
+ ecpg_free(this->stmt);
+ ecpg_free(this->name);
+ if (prev != NULL)
+ prev->next = this->next;
+ else
+ con->prep_stmts = this->next;
+
+ ecpg_free(this);
+ return true;
+}
+
+/* handle the EXEC SQL DEALLOCATE PREPARE statement */
+bool
+ECPGdeallocate(int lineno, int c, const char *connection_name, const char *name)
+{
+ struct connection *con;
+ struct prepared_statement *this,
+ *prev;
+
+ con = ecpg_get_connection(connection_name);
+ if (!ecpg_init(con, connection_name, lineno))
+ return false;
+
+ this = ecpg_find_prepared_statement(name, con, &prev);
+ if (this)
+ return deallocate_one(lineno, c, con, prev, this);
+
+ /* prepared statement is not found */
+ if (INFORMIX_MODE(c))
+ return true;
+ ecpg_raise(lineno, ECPG_INVALID_STMT, ECPG_SQLSTATE_INVALID_SQL_STATEMENT_NAME, name);
+ return false;
+}
+
+bool
+ecpg_deallocate_all_conn(int lineno, enum COMPAT_MODE c, struct connection *con)
+{
+ /* deallocate all prepared statements */
+ while (con->prep_stmts)
+ {
+ if (!deallocate_one(lineno, c, con, NULL, con->prep_stmts))
+ return false;
+ }
+
+ return true;
+}
+
+bool
+ECPGdeallocate_all(int lineno, int compat, const char *connection_name)
+{
+ return ecpg_deallocate_all_conn(lineno, compat,
+ ecpg_get_connection(connection_name));
+}
+
+char *
+ecpg_prepared(const char *name, struct connection *con)
+{
+ struct prepared_statement *this;
+
+ this = ecpg_find_prepared_statement(name, con, NULL);
+ return this ? this->stmt->command : NULL;
+}
+
+/* return the prepared statement */
+/* lineno is not used here, but kept in to not break API */
+char *
+ECPGprepared_statement(const char *connection_name, const char *name, int lineno)
+{
+ (void) lineno; /* keep the compiler quiet */
+
+ return ecpg_prepared(name, ecpg_get_connection(connection_name));
+}
+
+/*
+ * hash a SQL statement - returns entry # of first entry in the bucket
+ */
+static int
+HashStmt(const char *ecpgQuery)
+{
+ int stmtIx,
+ bucketNo,
+ hashLeng,
+ stmtLeng;
+ uint64 hashVal,
+ rotVal;
+
+ stmtLeng = strlen(ecpgQuery);
+ hashLeng = 50; /* use 1st 50 characters of statement */
+ if (hashLeng > stmtLeng) /* if the statement isn't that long */
+ hashLeng = stmtLeng; /* use its actual length */
+
+ hashVal = 0;
+ for (stmtIx = 0; stmtIx < hashLeng; ++stmtIx)
+ {
+ hashVal = hashVal + (unsigned char) ecpgQuery[stmtIx];
+ /* rotate 32-bit hash value left 13 bits */
+ hashVal = hashVal << 13;
+ rotVal = (hashVal & UINT64CONST(0x1fff00000000)) >> 32;
+ hashVal = (hashVal & UINT64CONST(0xffffffff)) | rotVal;
+ }
+
+ bucketNo = hashVal % stmtCacheNBuckets;
+
+ /* Add 1 so that array entry 0 is never used */
+ return bucketNo * stmtCacheEntPerBucket + 1;
+}
+
+/*
+ * search the statement cache - search for entry with matching ECPG-format query
+ * Returns entry # in cache if found
+ * OR zero if not present (zero'th entry isn't used)
+ */
+static int
+SearchStmtCache(const char *ecpgQuery)
+{
+ int entNo,
+ entIx;
+
+ /* quick failure if cache not set up */
+ if (stmtCacheEntries == NULL)
+ return 0;
+
+ /* hash the statement */
+ entNo = HashStmt(ecpgQuery);
+
+ /* search the cache */
+ for (entIx = 0; entIx < stmtCacheEntPerBucket; ++entIx)
+ {
+ if (stmtCacheEntries[entNo].stmtID[0]) /* check if entry is in use */
+ {
+ if (strcmp(ecpgQuery, stmtCacheEntries[entNo].ecpgQuery) == 0)
+ break; /* found it */
+ }
+ ++entNo; /* incr entry # */
+ }
+
+ /* if entry wasn't found - set entry # to zero */
+ if (entIx >= stmtCacheEntPerBucket)
+ entNo = 0;
+
+ return entNo;
+}
+
+/*
+ * free an entry in the statement cache
+ * Returns entry # in cache used
+ * OR negative error code
+ */
+static int
+ecpg_freeStmtCacheEntry(int lineno, int compat,
+ int entNo) /* entry # to free */
+{
+ stmtCacheEntry *entry;
+ struct connection *con;
+ struct prepared_statement *this,
+ *prev;
+
+ /* fail if cache isn't set up */
+ if (stmtCacheEntries == NULL)
+ return -1;
+
+ entry = &stmtCacheEntries[entNo];
+ if (!entry->stmtID[0]) /* return if the entry isn't in use */
+ return 0;
+
+ con = ecpg_get_connection(entry->connection);
+
+ /* free the 'prepared_statement' list entry */
+ this = ecpg_find_prepared_statement(entry->stmtID, con, &prev);
+ if (this && !deallocate_one(lineno, compat, con, prev, this))
+ return -1;
+
+ entry->stmtID[0] = '\0';
+
+ /* free the memory used by the cache entry */
+ if (entry->ecpgQuery)
+ {
+ ecpg_free(entry->ecpgQuery);
+ entry->ecpgQuery = 0;
+ }
+
+ return entNo;
+}
+
+/*
+ * add an entry to the statement cache
+ * returns entry # in cache used OR negative error code
+ */
+static int
+AddStmtToCache(int lineno, /* line # of statement */
+ const char *stmtID, /* statement ID */
+ const char *connection, /* connection */
+ int compat, /* compatibility level */
+ const char *ecpgQuery) /* query */
+{
+ int ix,
+ initEntNo,
+ luEntNo,
+ entNo;
+ stmtCacheEntry *entry;
+
+ /* allocate and zero cache array if we haven't already */
+ if (stmtCacheEntries == NULL)
+ {
+ stmtCacheEntries = (stmtCacheEntry *)
+ ecpg_alloc(sizeof(stmtCacheEntry) * stmtCacheArraySize, lineno);
+ if (stmtCacheEntries == NULL)
+ return -1;
+ }
+
+ /* hash the statement */
+ initEntNo = HashStmt(ecpgQuery);
+
+ /* search for an unused entry */
+ entNo = initEntNo; /* start with the initial entry # for the
+ * bucket */
+ luEntNo = initEntNo; /* use it as the initial 'least used' entry */
+ for (ix = 0; ix < stmtCacheEntPerBucket; ++ix)
+ {
+ entry = &stmtCacheEntries[entNo];
+ if (!entry->stmtID[0]) /* unused entry - use it */
+ break;
+ if (entry->execs < stmtCacheEntries[luEntNo].execs)
+ luEntNo = entNo; /* save new 'least used' entry */
+ ++entNo; /* increment entry # */
+ }
+
+ /*
+ * if no unused entries were found, re-use the 'least used' entry found in
+ * the bucket
+ */
+ if (ix >= stmtCacheEntPerBucket)
+ entNo = luEntNo;
+
+ /* 'entNo' is the entry to use - make sure its free */
+ if (ecpg_freeStmtCacheEntry(lineno, compat, entNo) < 0)
+ return -1;
+
+ /* add the query to the entry */
+ entry = &stmtCacheEntries[entNo];
+ entry->lineno = lineno;
+ entry->ecpgQuery = ecpg_strdup(ecpgQuery, lineno);
+ entry->connection = connection;
+ entry->execs = 0;
+ memcpy(entry->stmtID, stmtID, sizeof(entry->stmtID));
+
+ return entNo;
+}
+
+/* handle cache and preparation of statements in auto-prepare mode */
+bool
+ecpg_auto_prepare(int lineno, const char *connection_name, const int compat, char **name, const char *query)
+{
+ int entNo;
+
+ /* search the statement cache for this statement */
+ entNo = SearchStmtCache(query);
+
+ /* if not found - add the statement to the cache */
+ if (entNo)
+ {
+ char *stmtID;
+ struct connection *con;
+ struct prepared_statement *prep;
+
+ ecpg_log("ecpg_auto_prepare on line %d: statement found in cache; entry %d\n", lineno, entNo);
+
+ stmtID = stmtCacheEntries[entNo].stmtID;
+
+ con = ecpg_get_connection(connection_name);
+ prep = ecpg_find_prepared_statement(stmtID, con, NULL);
+ /* This prepared name doesn't exist on this connection. */
+ if (!prep && !prepare_common(lineno, con, stmtID, query))
+ return false;
+
+ *name = ecpg_strdup(stmtID, lineno);
+ }
+ else
+ {
+ char stmtID[STMTID_SIZE];
+
+ ecpg_log("ecpg_auto_prepare on line %d: statement not in cache; inserting\n", lineno);
+
+ /* generate a statement ID */
+ sprintf(stmtID, "ecpg%d", nextStmtID++);
+
+ if (!ECPGprepare(lineno, connection_name, 0, stmtID, query))
+ return false;
+
+ entNo = AddStmtToCache(lineno, stmtID, connection_name, compat, query);
+ if (entNo < 0)
+ return false;
+
+ *name = ecpg_strdup(stmtID, lineno);
+ }
+
+ /* increase usage counter */
+ stmtCacheEntries[entNo].execs++;
+
+ return true;
+}
diff --git a/src/interfaces/ecpg/ecpglib/sqlda.c b/src/interfaces/ecpg/ecpglib/sqlda.c
new file mode 100644
index 0000000..081e326
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/sqlda.c
@@ -0,0 +1,592 @@
+/*
+ * SQLDA support routines
+ *
+ * The allocated memory area pointed by an sqlda pointer
+ * contains both the metadata and the data, so freeing up
+ * is a simple free(sqlda) as expected by the ESQL/C examples.
+ */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include "catalog/pg_type_d.h"
+#include "decimal.h"
+#include "ecpg-pthread-win32.h"
+#include "ecpgerrno.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+#include "sqlca.h"
+#include "sqlda-compat.h"
+#include "sqlda-native.h"
+
+/*
+ * Compute the next variable's offset with
+ * the current variable's size and alignment.
+ *
+ *
+ * Returns:
+ * - the current variable's offset in *current
+ * - the next variable's offset in *next
+ */
+static void
+ecpg_sqlda_align_add_size(long offset, int alignment, int size, long *current, long *next)
+{
+ if (offset % alignment)
+ offset += alignment - (offset % alignment);
+ if (current)
+ *current = offset;
+ offset += size;
+ if (next)
+ *next = offset;
+}
+
+static long
+sqlda_compat_empty_size(const PGresult *res)
+{
+ long offset;
+ int i;
+ int sqld = PQnfields(res);
+
+ /* Initial size to store main structure and field structures */
+ offset = sizeof(struct sqlda_compat) + sqld * sizeof(struct sqlvar_compat);
+
+ /* Add space for field names */
+ for (i = 0; i < sqld; i++)
+ offset += strlen(PQfname(res, i)) + 1;
+
+ /* Add padding to the first field value */
+ ecpg_sqlda_align_add_size(offset, sizeof(int), 0, &offset, NULL);
+
+ return offset;
+}
+
+static long
+sqlda_common_total_size(const PGresult *res, int row, enum COMPAT_MODE compat, long offset)
+{
+ int sqld = PQnfields(res);
+ int i;
+ long next_offset;
+
+ /* Add space for the field values */
+ for (i = 0; i < sqld; i++)
+ {
+ enum ECPGttype type = sqlda_dynamic_type(PQftype(res, i), compat);
+
+ switch (type)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ ecpg_sqlda_align_add_size(offset, sizeof(short), sizeof(short), &offset, &next_offset);
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ ecpg_sqlda_align_add_size(offset, sizeof(int), sizeof(int), &offset, &next_offset);
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ ecpg_sqlda_align_add_size(offset, sizeof(long), sizeof(long), &offset, &next_offset);
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ ecpg_sqlda_align_add_size(offset, sizeof(long long), sizeof(long long), &offset, &next_offset);
+ break;
+ case ECPGt_bool:
+ ecpg_sqlda_align_add_size(offset, sizeof(bool), sizeof(bool), &offset, &next_offset);
+ break;
+ case ECPGt_float:
+ ecpg_sqlda_align_add_size(offset, sizeof(float), sizeof(float), &offset, &next_offset);
+ break;
+ case ECPGt_double:
+ ecpg_sqlda_align_add_size(offset, sizeof(double), sizeof(double), &offset, &next_offset);
+ break;
+ case ECPGt_decimal:
+ ecpg_sqlda_align_add_size(offset, sizeof(int), sizeof(decimal), &offset, &next_offset);
+ break;
+ case ECPGt_numeric:
+
+ /*
+ * We align the numeric struct to allow it to store a pointer,
+ * while the digits array is aligned to int (which seems like
+ * overkill, but let's keep compatibility here).
+ *
+ * Unfortunately we need to deconstruct the value twice to
+ * find out the digits array's size and then later fill it.
+ */
+ ecpg_sqlda_align_add_size(offset, sizeof(NumericDigit *), sizeof(numeric), &offset, &next_offset);
+ if (!PQgetisnull(res, row, i))
+ {
+ char *val = PQgetvalue(res, row, i);
+ numeric *num;
+
+ num = PGTYPESnumeric_from_asc(val, NULL);
+ if (!num)
+ break;
+ if (num->buf)
+ ecpg_sqlda_align_add_size(next_offset, sizeof(int), num->digits - num->buf + num->ndigits, &offset, &next_offset);
+ PGTYPESnumeric_free(num);
+ }
+ break;
+ case ECPGt_date:
+ ecpg_sqlda_align_add_size(offset, sizeof(date), sizeof(date), &offset, &next_offset);
+ break;
+ case ECPGt_timestamp:
+ ecpg_sqlda_align_add_size(offset, sizeof(int64), sizeof(timestamp), &offset, &next_offset);
+ break;
+ case ECPGt_interval:
+ ecpg_sqlda_align_add_size(offset, sizeof(int64), sizeof(interval), &offset, &next_offset);
+ break;
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ default:
+ {
+ long datalen = strlen(PQgetvalue(res, row, i)) + 1;
+
+ ecpg_sqlda_align_add_size(offset, sizeof(int), datalen, &offset, &next_offset);
+ break;
+ }
+ }
+ offset = next_offset;
+ }
+ return offset;
+}
+
+
+static long
+sqlda_compat_total_size(const PGresult *res, int row, enum COMPAT_MODE compat)
+{
+ long offset;
+
+ offset = sqlda_compat_empty_size(res);
+
+ if (row < 0)
+ return offset;
+
+ offset = sqlda_common_total_size(res, row, compat, offset);
+ return offset;
+}
+
+static long
+sqlda_native_empty_size(const PGresult *res)
+{
+ long offset;
+ int sqld = PQnfields(res);
+
+ /* Initial size to store main structure and field structures */
+ offset = sizeof(struct sqlda_struct) + (sqld - 1) * sizeof(struct sqlvar_struct);
+
+ /* Add padding to the first field value */
+ ecpg_sqlda_align_add_size(offset, sizeof(int), 0, &offset, NULL);
+
+ return offset;
+}
+
+static long
+sqlda_native_total_size(const PGresult *res, int row, enum COMPAT_MODE compat)
+{
+ long offset;
+
+ offset = sqlda_native_empty_size(res);
+
+ if (row < 0)
+ return offset;
+
+ offset = sqlda_common_total_size(res, row, compat, offset);
+ return offset;
+}
+
+/*
+ * Build "struct sqlda_compat" (metadata only) from PGresult
+ * leaving enough space for the field values in
+ * the given row number
+ */
+struct sqlda_compat *
+ecpg_build_compat_sqlda(int line, PGresult *res, int row, enum COMPAT_MODE compat)
+{
+ struct sqlda_compat *sqlda;
+ struct sqlvar_compat *sqlvar;
+ char *fname;
+ long size;
+ int sqld;
+ int i;
+
+ size = sqlda_compat_total_size(res, row, compat);
+ sqlda = (struct sqlda_compat *) ecpg_alloc(size, line);
+ if (!sqlda)
+ return NULL;
+
+ memset(sqlda, 0, size);
+ sqlvar = (struct sqlvar_compat *) (sqlda + 1);
+ sqld = PQnfields(res);
+ fname = (char *) (sqlvar + sqld);
+
+ sqlda->sqld = sqld;
+ ecpg_log("ecpg_build_compat_sqlda on line %d sqld = %d\n", line, sqld);
+ sqlda->desc_occ = size; /* cheat here, keep the full allocated size */
+ sqlda->sqlvar = sqlvar;
+
+ for (i = 0; i < sqlda->sqld; i++)
+ {
+ sqlda->sqlvar[i].sqltype = sqlda_dynamic_type(PQftype(res, i), compat);
+ strcpy(fname, PQfname(res, i));
+ sqlda->sqlvar[i].sqlname = fname;
+ fname += strlen(sqlda->sqlvar[i].sqlname) + 1;
+
+ /*
+ * this is reserved for future use, so we leave it empty for the time
+ * being
+ */
+ /* sqlda->sqlvar[i].sqlformat = (char *) (long) PQfformat(res, i); */
+ sqlda->sqlvar[i].sqlxid = PQftype(res, i);
+ sqlda->sqlvar[i].sqltypelen = PQfsize(res, i);
+ }
+
+ return sqlda;
+}
+
+/*
+ * Sets values from PGresult.
+ */
+static int16 value_is_null = -1;
+static int16 value_is_not_null = 0;
+
+void
+ecpg_set_compat_sqlda(int lineno, struct sqlda_compat **_sqlda, const PGresult *res, int row, enum COMPAT_MODE compat)
+{
+ struct sqlda_compat *sqlda = (*_sqlda);
+ int i;
+ long offset,
+ next_offset;
+
+ if (row < 0)
+ return;
+
+ /* Offset for the first field value */
+ offset = sqlda_compat_empty_size(res);
+
+ /*
+ * Set sqlvar[i]->sqldata pointers and convert values to correct format
+ */
+ for (i = 0; i < sqlda->sqld; i++)
+ {
+ int isnull;
+ int datalen;
+ bool set_data = true;
+
+ switch (sqlda->sqlvar[i].sqltype)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ ecpg_sqlda_align_add_size(offset, sizeof(short), sizeof(short), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(short);
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ ecpg_sqlda_align_add_size(offset, sizeof(int), sizeof(int), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(int);
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ ecpg_sqlda_align_add_size(offset, sizeof(long), sizeof(long), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(long);
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ ecpg_sqlda_align_add_size(offset, sizeof(long long), sizeof(long long), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(long long);
+ break;
+ case ECPGt_bool:
+ ecpg_sqlda_align_add_size(offset, sizeof(bool), sizeof(bool), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(bool);
+ break;
+ case ECPGt_float:
+ ecpg_sqlda_align_add_size(offset, sizeof(float), sizeof(float), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(float);
+ break;
+ case ECPGt_double:
+ ecpg_sqlda_align_add_size(offset, sizeof(double), sizeof(double), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(double);
+ break;
+ case ECPGt_decimal:
+ ecpg_sqlda_align_add_size(offset, sizeof(int), sizeof(decimal), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(decimal);
+ break;
+ case ECPGt_numeric:
+ {
+ numeric *num;
+ char *val;
+
+ set_data = false;
+
+ ecpg_sqlda_align_add_size(offset, sizeof(NumericDigit *), sizeof(numeric), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(numeric);
+
+ if (PQgetisnull(res, row, i))
+ {
+ ECPGset_noind_null(ECPGt_numeric, sqlda->sqlvar[i].sqldata);
+ break;
+ }
+
+ val = PQgetvalue(res, row, i);
+ num = PGTYPESnumeric_from_asc(val, NULL);
+ if (!num)
+ {
+ ECPGset_noind_null(ECPGt_numeric, sqlda->sqlvar[i].sqldata);
+ break;
+ }
+
+ memcpy(sqlda->sqlvar[i].sqldata, num, sizeof(numeric));
+
+ if (num->buf)
+ {
+ ecpg_sqlda_align_add_size(next_offset, sizeof(int), num->digits - num->buf + num->ndigits, &offset, &next_offset);
+ memcpy((char *) sqlda + offset, num->buf, num->digits - num->buf + num->ndigits);
+
+ ((numeric *) sqlda->sqlvar[i].sqldata)->buf = (NumericDigit *) sqlda + offset;
+ ((numeric *) sqlda->sqlvar[i].sqldata)->digits = (NumericDigit *) sqlda + offset + (num->digits - num->buf);
+ }
+
+ PGTYPESnumeric_free(num);
+
+ break;
+ }
+ case ECPGt_date:
+ ecpg_sqlda_align_add_size(offset, sizeof(date), sizeof(date), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(date);
+ break;
+ case ECPGt_timestamp:
+ ecpg_sqlda_align_add_size(offset, sizeof(int64), sizeof(timestamp), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(timestamp);
+ break;
+ case ECPGt_interval:
+ ecpg_sqlda_align_add_size(offset, sizeof(int64), sizeof(interval), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(interval);
+ break;
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ default:
+ datalen = strlen(PQgetvalue(res, row, i)) + 1;
+ ecpg_sqlda_align_add_size(offset, sizeof(int), datalen, &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = datalen;
+ if (datalen > 32768)
+ sqlda->sqlvar[i].sqlilongdata = sqlda->sqlvar[i].sqldata;
+ break;
+ }
+
+ isnull = PQgetisnull(res, row, i);
+ ecpg_log("ecpg_set_compat_sqlda on line %d row %d col %d %s\n", lineno, row, i, isnull ? "IS NULL" : "IS NOT NULL");
+ sqlda->sqlvar[i].sqlind = isnull ? &value_is_null : &value_is_not_null;
+ sqlda->sqlvar[i].sqlitype = ECPGt_short;
+ sqlda->sqlvar[i].sqlilen = sizeof(short);
+ if (!isnull)
+ {
+ if (set_data)
+ ecpg_get_data(res, row, i, lineno,
+ sqlda->sqlvar[i].sqltype, ECPGt_NO_INDICATOR,
+ sqlda->sqlvar[i].sqldata, NULL, 0, 0, 0,
+ ECPG_ARRAY_NONE, compat, false);
+ }
+ else
+ ECPGset_noind_null(sqlda->sqlvar[i].sqltype, sqlda->sqlvar[i].sqldata);
+
+ offset = next_offset;
+ }
+}
+
+struct sqlda_struct *
+ecpg_build_native_sqlda(int line, PGresult *res, int row, enum COMPAT_MODE compat)
+{
+ struct sqlda_struct *sqlda;
+ long size;
+ int i;
+
+ size = sqlda_native_total_size(res, row, compat);
+ sqlda = (struct sqlda_struct *) ecpg_alloc(size, line);
+ if (!sqlda)
+ return NULL;
+
+ memset(sqlda, 0, size);
+
+ sprintf(sqlda->sqldaid, "SQLDA ");
+ sqlda->sqld = sqlda->sqln = PQnfields(res);
+ ecpg_log("ecpg_build_native_sqlda on line %d sqld = %d\n", line, sqlda->sqld);
+ sqlda->sqldabc = sizeof(struct sqlda_struct) + (sqlda->sqld - 1) * sizeof(struct sqlvar_struct);
+
+ for (i = 0; i < sqlda->sqld; i++)
+ {
+ char *fname;
+
+ sqlda->sqlvar[i].sqltype = sqlda_dynamic_type(PQftype(res, i), compat);
+ fname = PQfname(res, i);
+ sqlda->sqlvar[i].sqlname.length = strlen(fname);
+ strcpy(sqlda->sqlvar[i].sqlname.data, fname);
+ }
+
+ return sqlda;
+}
+
+void
+ecpg_set_native_sqlda(int lineno, struct sqlda_struct **_sqlda, const PGresult *res, int row, enum COMPAT_MODE compat)
+{
+ struct sqlda_struct *sqlda = (*_sqlda);
+ int i;
+ long offset,
+ next_offset;
+
+ if (row < 0)
+ return;
+
+ /* Offset for the first field value */
+ offset = sqlda_native_empty_size(res);
+
+ /*
+ * Set sqlvar[i]->sqldata pointers and convert values to correct format
+ */
+ for (i = 0; i < sqlda->sqld; i++)
+ {
+ int isnull;
+ int datalen;
+ bool set_data = true;
+
+ switch (sqlda->sqlvar[i].sqltype)
+ {
+ case ECPGt_short:
+ case ECPGt_unsigned_short:
+ ecpg_sqlda_align_add_size(offset, sizeof(short), sizeof(short), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(short);
+ break;
+ case ECPGt_int:
+ case ECPGt_unsigned_int:
+ ecpg_sqlda_align_add_size(offset, sizeof(int), sizeof(int), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(int);
+ break;
+ case ECPGt_long:
+ case ECPGt_unsigned_long:
+ ecpg_sqlda_align_add_size(offset, sizeof(long), sizeof(long), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(long);
+ break;
+ case ECPGt_long_long:
+ case ECPGt_unsigned_long_long:
+ ecpg_sqlda_align_add_size(offset, sizeof(long long), sizeof(long long), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(long long);
+ break;
+ case ECPGt_bool:
+ ecpg_sqlda_align_add_size(offset, sizeof(bool), sizeof(bool), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(bool);
+ break;
+ case ECPGt_float:
+ ecpg_sqlda_align_add_size(offset, sizeof(float), sizeof(float), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(float);
+ break;
+ case ECPGt_double:
+ ecpg_sqlda_align_add_size(offset, sizeof(double), sizeof(double), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(double);
+ break;
+ case ECPGt_decimal:
+ ecpg_sqlda_align_add_size(offset, sizeof(int), sizeof(decimal), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(decimal);
+ break;
+ case ECPGt_numeric:
+ {
+ numeric *num;
+ char *val;
+
+ set_data = false;
+
+ ecpg_sqlda_align_add_size(offset, sizeof(NumericDigit *), sizeof(numeric), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(numeric);
+
+ if (PQgetisnull(res, row, i))
+ {
+ ECPGset_noind_null(ECPGt_numeric, sqlda->sqlvar[i].sqldata);
+ break;
+ }
+
+ val = PQgetvalue(res, row, i);
+ num = PGTYPESnumeric_from_asc(val, NULL);
+ if (!num)
+ {
+ ECPGset_noind_null(ECPGt_numeric, sqlda->sqlvar[i].sqldata);
+ break;
+ }
+
+ memcpy(sqlda->sqlvar[i].sqldata, num, sizeof(numeric));
+
+ if (num->buf)
+ {
+ ecpg_sqlda_align_add_size(next_offset, sizeof(int), num->digits - num->buf + num->ndigits, &offset, &next_offset);
+ memcpy((char *) sqlda + offset, num->buf, num->digits - num->buf + num->ndigits);
+
+ ((numeric *) sqlda->sqlvar[i].sqldata)->buf = (NumericDigit *) sqlda + offset;
+ ((numeric *) sqlda->sqlvar[i].sqldata)->digits = (NumericDigit *) sqlda + offset + (num->digits - num->buf);
+ }
+
+ PGTYPESnumeric_free(num);
+
+ break;
+ }
+ case ECPGt_date:
+ ecpg_sqlda_align_add_size(offset, sizeof(date), sizeof(date), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(date);
+ break;
+ case ECPGt_timestamp:
+ ecpg_sqlda_align_add_size(offset, sizeof(int64), sizeof(timestamp), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(timestamp);
+ break;
+ case ECPGt_interval:
+ ecpg_sqlda_align_add_size(offset, sizeof(int64), sizeof(interval), &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = sizeof(interval);
+ break;
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ default:
+ datalen = strlen(PQgetvalue(res, row, i)) + 1;
+ ecpg_sqlda_align_add_size(offset, sizeof(int), datalen, &offset, &next_offset);
+ sqlda->sqlvar[i].sqldata = (char *) sqlda + offset;
+ sqlda->sqlvar[i].sqllen = datalen;
+ break;
+ }
+
+ isnull = PQgetisnull(res, row, i);
+ ecpg_log("ecpg_set_native_sqlda on line %d row %d col %d %s\n", lineno, row, i, isnull ? "IS NULL" : "IS NOT NULL");
+ sqlda->sqlvar[i].sqlind = isnull ? &value_is_null : &value_is_not_null;
+ if (!isnull)
+ {
+ if (set_data)
+ ecpg_get_data(res, row, i, lineno,
+ sqlda->sqlvar[i].sqltype, ECPGt_NO_INDICATOR,
+ sqlda->sqlvar[i].sqldata, NULL, 0, 0, 0,
+ ECPG_ARRAY_NONE, compat, false);
+ }
+
+ offset = next_offset;
+ }
+}
diff --git a/src/interfaces/ecpg/ecpglib/typename.c b/src/interfaces/ecpg/ecpglib/typename.c
new file mode 100644
index 0000000..1d482c4
--- /dev/null
+++ b/src/interfaces/ecpg/ecpglib/typename.c
@@ -0,0 +1,144 @@
+/* src/interfaces/ecpg/ecpglib/typename.c */
+
+#define POSTGRES_ECPG_INTERNAL
+#include "postgres_fe.h"
+
+#include "catalog/pg_type_d.h"
+#include "ecpglib.h"
+#include "ecpglib_extern.h"
+#include "ecpgtype.h"
+#include "sql3types.h"
+#include "sqltypes.h"
+
+/*
+ * This function is used to generate the correct type names.
+ */
+const char *
+ecpg_type_name(enum ECPGttype typ)
+{
+ switch (typ)
+ {
+ case ECPGt_char:
+ case ECPGt_string:
+ return "char";
+ case ECPGt_unsigned_char:
+ return "unsigned char";
+ case ECPGt_short:
+ return "short";
+ case ECPGt_unsigned_short:
+ return "unsigned short";
+ case ECPGt_int:
+ return "int";
+ case ECPGt_unsigned_int:
+ return "unsigned int";
+ case ECPGt_long:
+ return "long";
+ case ECPGt_unsigned_long:
+ return "unsigned long";
+ case ECPGt_long_long:
+ return "long long";
+ case ECPGt_unsigned_long_long:
+ return "unsigned long long";
+ case ECPGt_float:
+ return "float";
+ case ECPGt_double:
+ return "double";
+ case ECPGt_bool:
+ return "bool";
+ case ECPGt_varchar:
+ return "varchar";
+ case ECPGt_bytea:
+ return "bytea";
+ case ECPGt_char_variable:
+ return "char";
+ case ECPGt_decimal:
+ return "decimal";
+ case ECPGt_numeric:
+ return "numeric";
+ case ECPGt_date:
+ return "date";
+ case ECPGt_timestamp:
+ return "timestamp";
+ case ECPGt_interval:
+ return "interval";
+ case ECPGt_const:
+ return "Const";
+ default:
+ abort();
+ }
+ return ""; /* keep MSC compiler happy */
+}
+
+int
+ecpg_dynamic_type(Oid type)
+{
+ switch (type)
+ {
+ case BOOLOID:
+ return SQL3_BOOLEAN; /* bool */
+ case INT2OID:
+ return SQL3_SMALLINT; /* int2 */
+ case INT4OID:
+ return SQL3_INTEGER; /* int4 */
+ case TEXTOID:
+ return SQL3_CHARACTER; /* text */
+ case FLOAT4OID:
+ return SQL3_REAL; /* float4 */
+ case FLOAT8OID:
+ return SQL3_DOUBLE_PRECISION; /* float8 */
+ case BPCHAROID:
+ return SQL3_CHARACTER; /* bpchar */
+ case VARCHAROID:
+ return SQL3_CHARACTER_VARYING; /* varchar */
+ case DATEOID:
+ return SQL3_DATE_TIME_TIMESTAMP; /* date */
+ case TIMEOID:
+ return SQL3_DATE_TIME_TIMESTAMP; /* time */
+ case TIMESTAMPOID:
+ return SQL3_DATE_TIME_TIMESTAMP; /* datetime */
+ case NUMERICOID:
+ return SQL3_NUMERIC; /* numeric */
+ default:
+ return 0;
+ }
+}
+
+int
+sqlda_dynamic_type(Oid type, enum COMPAT_MODE compat)
+{
+ switch (type)
+ {
+ case CHAROID:
+ case VARCHAROID:
+ case BPCHAROID:
+ case TEXTOID:
+ return ECPGt_char;
+ case INT2OID:
+ return ECPGt_short;
+ case INT4OID:
+ return ECPGt_int;
+ case FLOAT8OID:
+ return ECPGt_double;
+ case FLOAT4OID:
+ return ECPGt_float;
+ case NUMERICOID:
+ return INFORMIX_MODE(compat) ? ECPGt_decimal : ECPGt_numeric;
+ case DATEOID:
+ return ECPGt_date;
+ case TIMESTAMPOID:
+ case TIMESTAMPTZOID:
+ return ECPGt_timestamp;
+ case INTERVALOID:
+ return ECPGt_interval;
+ case INT8OID:
+#ifdef HAVE_LONG_LONG_INT_64
+ return ECPGt_long_long;
+#endif
+#ifdef HAVE_LONG_INT_64
+ return ECPGt_long;
+#endif
+ /* Unhandled types always return a string */
+ default:
+ return ECPGt_char;
+ }
+}
diff --git a/src/interfaces/ecpg/include/.gitignore b/src/interfaces/ecpg/include/.gitignore
new file mode 100644
index 0000000..608493d
--- /dev/null
+++ b/src/interfaces/ecpg/include/.gitignore
@@ -0,0 +1,2 @@
+/ecpg_config.h
+/stamp-h
diff --git a/src/interfaces/ecpg/include/Makefile b/src/interfaces/ecpg/include/Makefile
new file mode 100644
index 0000000..9c68bf3
--- /dev/null
+++ b/src/interfaces/ecpg/include/Makefile
@@ -0,0 +1,35 @@
+subdir = src/interfaces/ecpg/include
+top_builddir = ../../../..
+include $(top_builddir)/src/Makefile.global
+
+override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
+ -I$(libpq_srcdir) -I$(top_builddir)/src/port $(CPPFLAGS)
+
+informix_esql_dir = $(pkgincludedir)/informix/esql
+ecpg_config_h = $(top_builddir)/src/interfaces/ecpg/include/ecpg_config.h
+
+all: $(ecpg_config_h)
+
+install: all installdirs install-headers
+
+.PHONY: install-headers
+ecpg_headers = ecpgerrno.h ecpglib.h ecpgtype.h sqlca.h sql3types.h ecpg_informix.h \
+ pgtypes_error.h pgtypes_numeric.h pgtypes_timestamp.h pgtypes_date.h pgtypes_interval.h pgtypes.h \
+ sqlda.h sqlda-compat.h sqlda-native.h
+informix_headers = datetime.h decimal.h sqltypes.h
+
+install-headers: $(ecpg_headers) $(informix_headers) installdirs
+ $(INSTALL_DATA) $(addprefix $(srcdir)/,$(ecpg_headers)) '$(DESTDIR)$(includedir)/'
+ $(INSTALL_DATA) $(addprefix $(srcdir)/,$(informix_headers)) '$(DESTDIR)$(informix_esql_dir)/'
+ $(INSTALL_DATA) $(ecpg_config_h) '$(DESTDIR)$(includedir)'
+
+installdirs:
+ $(MKDIR_P) '$(DESTDIR)$(includedir)' '$(DESTDIR)$(informix_esql_dir)'
+
+uninstall:
+ rm -f $(addprefix '$(DESTDIR)$(includedir)'/, $(ecpg_headers))
+ rm -f $(addprefix '$(DESTDIR)$(informix_esql_dir)'/, $(informix_headers))
+ rm -f '$(DESTDIR)$(includedir)'/$(notdir $(ecpg_config_h))
+
+distclean maintainer-clean:
+ rm -f ecpg_config.h stamp-h
diff --git a/src/interfaces/ecpg/include/datetime.h b/src/interfaces/ecpg/include/datetime.h
new file mode 100644
index 0000000..44b2422
--- /dev/null
+++ b/src/interfaces/ecpg/include/datetime.h
@@ -0,0 +1,14 @@
+/* src/interfaces/ecpg/include/datetime.h */
+
+#ifndef _ECPG_DATETIME_H
+#define _ECPG_DATETIME_H
+
+#include <ecpg_informix.h>
+
+/* source created by ecpg which defines these symbols */
+#ifndef _ECPGLIB_H
+typedef timestamp dtime_t;
+typedef interval intrvl_t;
+#endif /* ndef _ECPGLIB_H */
+
+#endif /* ndef _ECPG_DATETIME_H */
diff --git a/src/interfaces/ecpg/include/decimal.h b/src/interfaces/ecpg/include/decimal.h
new file mode 100644
index 0000000..6ac2962
--- /dev/null
+++ b/src/interfaces/ecpg/include/decimal.h
@@ -0,0 +1,13 @@
+/* src/interfaces/ecpg/include/decimal.h */
+
+#ifndef _ECPG_DECIMAL_H
+#define _ECPG_DECIMAL_H
+
+#include <ecpg_informix.h>
+
+/* source created by ecpg which defines this */
+#ifndef _ECPGLIB_H
+typedef decimal dec_t;
+#endif /* ndef _ECPGLIB_H */
+
+#endif /* ndef _ECPG_DECIMAL_H */
diff --git a/src/interfaces/ecpg/include/ecpg-pthread-win32.h b/src/interfaces/ecpg/include/ecpg-pthread-win32.h
new file mode 100644
index 0000000..33c897b
--- /dev/null
+++ b/src/interfaces/ecpg/include/ecpg-pthread-win32.h
@@ -0,0 +1,58 @@
+/* src/interfaces/ecpg/include/ecpg-pthread-win32.h */
+/*
+ * pthread mapping macros for win32 native thread implementation
+ */
+#ifndef _ECPG_PTHREAD_WIN32_H
+#define _ECPG_PTHREAD_WIN32_H
+
+#ifdef ENABLE_THREAD_SAFETY
+
+#ifndef WIN32
+
+#include <pthread.h>
+#else
+
+typedef struct pthread_mutex_t
+{
+ HANDLE handle;
+ LONG initlock;
+} pthread_mutex_t;
+
+typedef DWORD pthread_key_t;
+typedef bool pthread_once_t;
+
+#define PTHREAD_MUTEX_INITIALIZER { NULL, 0 }
+#define PTHREAD_ONCE_INIT false
+
+void win32_pthread_mutex(volatile pthread_mutex_t *mutex);
+void win32_pthread_once(volatile pthread_once_t *once, void (*fn) (void));
+
+#define pthread_mutex_lock(mutex) \
+ do { \
+ if ((mutex)->handle == NULL) \
+ win32_pthread_mutex((mutex)); \
+ WaitForSingleObject((mutex)->handle, INFINITE); \
+ } while(0)
+
+#define pthread_mutex_unlock(mutex) \
+ ReleaseMutex((mutex)->handle)
+
+#define pthread_getspecific(key) \
+ TlsGetValue((key))
+
+#define pthread_setspecific(key, value) \
+ TlsSetValue((key), (value))
+
+/* FIXME: destructor is never called in Win32. */
+#define pthread_key_create(key, destructor) \
+ do { *(key) = TlsAlloc(); ((void)(destructor)); } while(0)
+
+#define pthread_once(once, fn) \
+ do { \
+ if (!*(once)) \
+ win32_pthread_once((once), (fn)); \
+ } while(0)
+#endif /* WIN32 */
+#endif /* ENABLE_THREAD_SAFETY */
+
+#endif /* _ECPG_PTHREAD_WIN32_H */
diff --git a/src/interfaces/ecpg/include/ecpg_config.h.in b/src/interfaces/ecpg/include/ecpg_config.h.in
new file mode 100644
index 0000000..17e93c4
--- /dev/null
+++ b/src/interfaces/ecpg/include/ecpg_config.h.in
@@ -0,0 +1,18 @@
+/* Define to 1 if the system has the type `int64'. */
+#undef HAVE_INT64
+
+/* Define to 1 if `long int' works and is 64 bits. */
+#undef HAVE_LONG_INT_64
+
+/* Define to 1 if the system has the type `long long int'. */
+#define HAVE_LONG_LONG_INT 1
+
+/* Define to 1 if `long long int' works and is 64 bits. */
+#undef HAVE_LONG_LONG_INT_64
+
+/* Define to 1 to use <stdbool.h> to define type bool. */
+#undef PG_USE_STDBOOL
+
+/* Define to 1 to build client libraries as thread-safe code.
+ * (--enable-thread-safety) */
+#undef ENABLE_THREAD_SAFETY
diff --git a/src/interfaces/ecpg/include/ecpg_informix.h b/src/interfaces/ecpg/include/ecpg_informix.h
new file mode 100644
index 0000000..a5260a5
--- /dev/null
+++ b/src/interfaces/ecpg/include/ecpg_informix.h
@@ -0,0 +1,90 @@
+/*
+ * This file contains stuff needed to be as compatible to Informix as possible.
+ * src/interfaces/ecpg/include/ecpg_informix.h
+ */
+#ifndef _ECPG_INFORMIX_H
+#define _ECPG_INFORMIX_H
+
+#include <ecpglib.h>
+#include <pgtypes_date.h>
+#include <pgtypes_interval.h>
+#include <pgtypes_numeric.h>
+#include <pgtypes_timestamp.h>
+
+#define SQLNOTFOUND 100
+
+#define ECPG_INFORMIX_NUM_OVERFLOW -1200
+#define ECPG_INFORMIX_NUM_UNDERFLOW -1201
+#define ECPG_INFORMIX_DIVIDE_ZERO -1202
+#define ECPG_INFORMIX_BAD_YEAR -1204
+#define ECPG_INFORMIX_BAD_MONTH -1205
+#define ECPG_INFORMIX_BAD_DAY -1206
+#define ECPG_INFORMIX_ENOSHORTDATE -1209
+#define ECPG_INFORMIX_DATE_CONVERT -1210
+#define ECPG_INFORMIX_OUT_OF_MEMORY -1211
+#define ECPG_INFORMIX_ENOTDMY -1212
+#define ECPG_INFORMIX_BAD_NUMERIC -1213
+#define ECPG_INFORMIX_BAD_EXPONENT -1216
+#define ECPG_INFORMIX_BAD_DATE -1218
+#define ECPG_INFORMIX_EXTRA_CHARS -1264
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+extern int rdatestr(date, char *);
+extern void rtoday(date *);
+extern int rjulmdy(date, short *);
+extern int rdefmtdate(date *, const char *, const char *);
+extern int rfmtdate(date, const char *, char *);
+extern int rmdyjul(short *, date *);
+extern int rstrdate(const char *, date *);
+extern int rdayofweek(date);
+
+extern int rfmtlong(long, const char *, char *);
+extern int rgetmsg(int, char *, int);
+extern int risnull(int, const char *);
+extern int rsetnull(int, char *);
+extern int rtypalign(int, int);
+extern int rtypmsize(int, int);
+extern int rtypwidth(int, int);
+extern void rupshift(char *);
+
+extern int byleng(char *, int);
+extern void ldchar(char *, int, char *);
+
+extern void ECPG_informix_set_var(int, void *, int);
+extern void *ECPG_informix_get_var(int);
+extern void ECPG_informix_reset_sqlca(void);
+
+/* Informix defines these in decimal.h */
+int decadd(decimal *, decimal *, decimal *);
+int deccmp(decimal *, decimal *);
+void deccopy(decimal *, decimal *);
+int deccvasc(const char *, int, decimal *);
+int deccvdbl(double, decimal *);
+int deccvint(int, decimal *);
+int deccvlong(long, decimal *);
+int decdiv(decimal *, decimal *, decimal *);
+int decmul(decimal *, decimal *, decimal *);
+int decsub(decimal *, decimal *, decimal *);
+int dectoasc(decimal *, char *, int, int);
+int dectodbl(decimal *, double *);
+int dectoint(decimal *, int *);
+int dectolong(decimal *, long *);
+
+/* Informix defines these in datetime.h */
+extern void dtcurrent(timestamp *);
+extern int dtcvasc(char *, timestamp *);
+extern int dtsub(timestamp *, timestamp *, interval *);
+extern int dttoasc(timestamp *, char *);
+extern int dttofmtasc(timestamp *, char *, int, char *);
+extern int intoasc(interval *, char *);
+extern int dtcvfmtasc(char *, char *, timestamp *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* ndef _ECPG_INFORMIX_H */
diff --git a/src/interfaces/ecpg/include/ecpgerrno.h b/src/interfaces/ecpg/include/ecpgerrno.h
new file mode 100644
index 0000000..c4bc526
--- /dev/null
+++ b/src/interfaces/ecpg/include/ecpgerrno.h
@@ -0,0 +1,79 @@
+/* src/interfaces/ecpg/include/ecpgerrno.h */
+
+#ifndef _ECPG_ERRNO_H
+#define _ECPG_ERRNO_H
+
+#include <errno.h>
+
+/* This is a list of all error codes the embedded SQL program can return */
+#define ECPG_NO_ERROR 0
+#define ECPG_NOT_FOUND 100
+
+/* system error codes returned by ecpglib get the correct number,
+ * but are made negative
+ */
+#define ECPG_OUT_OF_MEMORY -ENOMEM
+
+/* first we have a set of ecpg messages, they start at 200 */
+#define ECPG_UNSUPPORTED -200
+#define ECPG_TOO_MANY_ARGUMENTS -201
+#define ECPG_TOO_FEW_ARGUMENTS -202
+#define ECPG_TOO_MANY_MATCHES -203
+#define ECPG_INT_FORMAT -204
+#define ECPG_UINT_FORMAT -205
+#define ECPG_FLOAT_FORMAT -206
+#define ECPG_NUMERIC_FORMAT -207
+#define ECPG_INTERVAL_FORMAT -208
+#define ECPG_DATE_FORMAT -209
+#define ECPG_TIMESTAMP_FORMAT -210
+#define ECPG_CONVERT_BOOL -211
+#define ECPG_EMPTY -212
+#define ECPG_MISSING_INDICATOR -213
+#define ECPG_NO_ARRAY -214
+#define ECPG_DATA_NOT_ARRAY -215
+#define ECPG_ARRAY_INSERT -216
+
+#define ECPG_NO_CONN -220
+#define ECPG_NOT_CONN -221
+
+#define ECPG_INVALID_STMT -230
+
+/* dynamic SQL related */
+#define ECPG_UNKNOWN_DESCRIPTOR -240
+#define ECPG_INVALID_DESCRIPTOR_INDEX -241
+#define ECPG_UNKNOWN_DESCRIPTOR_ITEM -242
+#define ECPG_VAR_NOT_NUMERIC -243
+#define ECPG_VAR_NOT_CHAR -244
+
+/* finally the backend error messages, they start at 400 */
+#define ECPG_PGSQL -400
+#define ECPG_TRANS -401
+#define ECPG_CONNECT -402
+#define ECPG_DUPLICATE_KEY -403
+#define ECPG_SUBSELECT_NOT_ONE -404
+
+/* for compatibility we define some different error codes for the same error
+ * if adding a new one make sure to not double define it */
+#define ECPG_INFORMIX_DUPLICATE_KEY -239
+#define ECPG_INFORMIX_SUBSELECT_NOT_ONE -284
+
+/* backend WARNINGs, starting at 600 */
+#define ECPG_WARNING_UNRECOGNIZED -600
+ /* WARNING: (transaction aborted): queries ignored until END */
+
+ /*
+ * WARNING: current transaction is aborted, queries ignored until end of
+ * transaction block
+ */
+#define ECPG_WARNING_QUERY_IGNORED -601
+ /* WARNING: PerformPortalClose: portal "*" not found */
+#define ECPG_WARNING_UNKNOWN_PORTAL -602
+ /* WARNING: BEGIN: already a transaction in progress */
+#define ECPG_WARNING_IN_TRANSACTION -603
+ /* WARNING: AbortTransaction and not in in-progress state */
+ /* WARNING: COMMIT: no transaction in progress */
+#define ECPG_WARNING_NO_TRANSACTION -604
+ /* WARNING: BlankPortalAssignName: portal * already exists */
+#define ECPG_WARNING_PORTAL_EXISTS -605
+
+#endif /* !_ECPG_ERRNO_H */
diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h
new file mode 100644
index 0000000..0024010
--- /dev/null
+++ b/src/interfaces/ecpg/include/ecpglib.h
@@ -0,0 +1,103 @@
+/*
+ * Client-visible declarations for ecpglib
+ *
+ * src/interfaces/ecpg/include/ecpglib.h
+ */
+
+#ifndef _ECPGLIB_H
+#define _ECPGLIB_H
+
+#include <string.h>
+
+#include "ecpg_config.h"
+#include "ecpgtype.h"
+#include "libpq-fe.h"
+#include "sqlca.h"
+
+/*
+ * This is a small extract from c.h since we don't want to leak all postgres
+ * definitions into ecpg programs; but we need to know what bool is.
+ */
+#ifndef __cplusplus
+
+#ifdef PG_USE_STDBOOL
+#include <stdbool.h>
+#else
+
+/*
+ * We assume bool has been defined if true and false are. This avoids
+ * duplicate-typedef errors if this file is included after c.h.
+ */
+#if !(defined(true) && defined(false))
+typedef unsigned char bool;
+#endif
+
+#ifndef true
+#define true ((bool) 1)
+#endif
+
+#ifndef false
+#define false ((bool) 0)
+#endif
+
+#endif /* not PG_USE_STDBOOL */
+#endif /* not C++ */
+
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+void ECPGdebug(int, FILE *);
+bool ECPGstatus(int, const char *);
+bool ECPGsetcommit(int, const char *, const char *);
+bool ECPGsetconn(int, const char *);
+bool ECPGconnect(int, int, const char *, const char *, const char *, const char *, int);
+bool ECPGdo(const int, const int, const int, const char *, const bool, const int, const char *,...);
+bool ECPGtrans(int, const char *, const char *);
+bool ECPGdisconnect(int, const char *);
+bool ECPGprepare(int, const char *, const bool, const char *, const char *);
+bool ECPGdeallocate(int, int, const char *, const char *);
+bool ECPGdeallocate_all(int, int, const char *);
+char *ECPGprepared_statement(const char *, const char *, int);
+PGconn *ECPGget_PGconn(const char *);
+PGTransactionStatusType ECPGtransactionStatus(const char *);
+
+ /* print an error message */
+void sqlprint(void);
+
+/* define this for simplicity as well as compatibility */
+
+#define SQLCODE sqlca.sqlcode
+#define SQLSTATE sqlca.sqlstate
+
+/* dynamic SQL */
+
+bool ECPGdo_descriptor(int, const char *, const char *, const char *);
+bool ECPGdeallocate_desc(int, const char *);
+bool ECPGallocate_desc(int, const char *);
+bool ECPGget_desc_header(int, const char *, int *);
+bool ECPGget_desc(int, const char *, int,...);
+bool ECPGset_desc_header(int, const char *, int);
+bool ECPGset_desc(int, const char *, int,...);
+
+void ECPGset_noind_null(enum ECPGttype, void *);
+bool ECPGis_noind_null(enum ECPGttype, const void *);
+bool ECPGdescribe(int, int, bool, const char *, const char *,...);
+
+void ECPGset_var(int, void *, int);
+void *ECPGget_var(int number);
+
+/* dynamic result allocation */
+void ECPGfree_auto_mem(void);
+
+#ifdef ENABLE_THREAD_SAFETY
+void ecpg_pthreads_init(void);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ECPGLIB_H */
diff --git a/src/interfaces/ecpg/include/ecpgtype.h b/src/interfaces/ecpg/include/ecpgtype.h
new file mode 100644
index 0000000..3a57508
--- /dev/null
+++ b/src/interfaces/ecpg/include/ecpgtype.h
@@ -0,0 +1,109 @@
+/*
+ * This file implements a data structure that is built and maintained by the
+ * preprocessor.
+ *
+ * All types that can be handled for host variable declarations has to
+ * be handled eventually.
+ *
+ * src/interfaces/ecpg/include/ecpgtype.h
+ */
+
+/*
+ * Here are all the types that we are to handle. Note that it is the type
+ * that is registered and that has nothing whatsoever to do with the storage
+ * class.
+ *
+ * Simple types
+ * integers: char, short, int, long (signed and unsigned)
+ * floats: float, double
+ *
+ * Complex types:
+ * VARCHAR, VARCHAR2 - Strings with length (maxlen is given in the declaration)
+ * Arrays of simple types and of VARCHAR, VARCHAR2 (size given in declaration)
+ * Records build of simple types, arrays and other structs.
+ *
+ * Complicating things:
+ * typedefs and struct names!
+ *
+ * Conclusion:
+ * This is a typically recursive definition. A structure of typed list elements
+ * would probably work fine:
+ */
+
+#ifndef _ECPGTYPE_H
+#define _ECPGTYPE_H
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+enum ECPGttype
+{
+ ECPGt_char = 1, ECPGt_unsigned_char, ECPGt_short, ECPGt_unsigned_short,
+ ECPGt_int, ECPGt_unsigned_int, ECPGt_long, ECPGt_unsigned_long,
+ ECPGt_long_long, ECPGt_unsigned_long_long,
+ ECPGt_bool,
+ ECPGt_float, ECPGt_double,
+ ECPGt_varchar, ECPGt_varchar2,
+ ECPGt_numeric, /* this is a decimal that stores its digits in
+ * a malloced array */
+ ECPGt_decimal, /* this is a decimal that stores its digits in
+ * a fixed array */
+ ECPGt_date,
+ ECPGt_timestamp,
+ ECPGt_interval,
+ ECPGt_array,
+ ECPGt_struct,
+ ECPGt_union,
+ ECPGt_descriptor, /* sql descriptor, no C variable */
+ ECPGt_char_variable,
+ ECPGt_const, /* a constant is needed sometimes */
+ ECPGt_EOIT, /* End of insert types. */
+ ECPGt_EORT, /* End of result types. */
+ ECPGt_NO_INDICATOR, /* no indicator */
+ ECPGt_string, /* trimmed (char *) type */
+ ECPGt_sqlda, /* C struct descriptor */
+ ECPGt_bytea
+};
+
+ /* descriptor items */
+enum ECPGdtype
+{
+ ECPGd_count = 1,
+ ECPGd_data,
+ ECPGd_di_code,
+ ECPGd_di_precision,
+ ECPGd_indicator,
+ ECPGd_key_member,
+ ECPGd_length,
+ ECPGd_name,
+ ECPGd_nullable,
+ ECPGd_octet,
+ ECPGd_precision,
+ ECPGd_ret_length,
+ ECPGd_ret_octet,
+ ECPGd_scale,
+ ECPGd_type,
+ ECPGd_EODT, /* End of descriptor types. */
+ ECPGd_cardinality
+};
+
+#define IS_SIMPLE_TYPE(type) (((type) >= ECPGt_char && (type) <= ECPGt_interval) || ((type) == ECPGt_string) || ((type) == ECPGt_bytea))
+
+/* we also have to handle different statement types */
+enum ECPG_statement_type
+{
+ ECPGst_normal,
+ ECPGst_execute,
+ ECPGst_exec_immediate,
+ ECPGst_prepnormal,
+ ECPGst_prepare,
+ ECPGst_exec_with_exprlist
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ECPGTYPE_H */
diff --git a/src/interfaces/ecpg/include/pgtypes.h b/src/interfaces/ecpg/include/pgtypes.h
new file mode 100644
index 0000000..dbf759b
--- /dev/null
+++ b/src/interfaces/ecpg/include/pgtypes.h
@@ -0,0 +1,17 @@
+/* src/interfaces/ecpg/include/pgtypes.h */
+
+#ifndef PGTYPES_H
+#define PGTYPES_H
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+extern void PGTYPESchar_free(char *ptr);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* PGTYPES_H */
diff --git a/src/interfaces/ecpg/include/pgtypes_date.h b/src/interfaces/ecpg/include/pgtypes_date.h
new file mode 100644
index 0000000..c668097
--- /dev/null
+++ b/src/interfaces/ecpg/include/pgtypes_date.h
@@ -0,0 +1,32 @@
+/* src/interfaces/ecpg/include/pgtypes_date.h */
+
+#ifndef PGTYPES_DATETIME
+#define PGTYPES_DATETIME
+
+#include <pgtypes.h>
+#include <pgtypes_timestamp.h>
+
+typedef long date;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+extern date * PGTYPESdate_new(void);
+extern void PGTYPESdate_free(date *);
+extern date PGTYPESdate_from_asc(char *, char **);
+extern char *PGTYPESdate_to_asc(date);
+extern date PGTYPESdate_from_timestamp(timestamp);
+extern void PGTYPESdate_julmdy(date, int *);
+extern void PGTYPESdate_mdyjul(int *, date *);
+extern int PGTYPESdate_dayofweek(date);
+extern void PGTYPESdate_today(date *);
+extern int PGTYPESdate_defmt_asc(date *, const char *, const char *);
+extern int PGTYPESdate_fmt_asc(date, const char *, char *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* PGTYPES_DATETIME */
diff --git a/src/interfaces/ecpg/include/pgtypes_error.h b/src/interfaces/ecpg/include/pgtypes_error.h
new file mode 100644
index 0000000..9fc22a2
--- /dev/null
+++ b/src/interfaces/ecpg/include/pgtypes_error.h
@@ -0,0 +1,18 @@
+/* src/interfaces/ecpg/include/pgtypes_error.h */
+
+#define PGTYPES_NUM_OVERFLOW 301
+#define PGTYPES_NUM_BAD_NUMERIC 302
+#define PGTYPES_NUM_DIVIDE_ZERO 303
+#define PGTYPES_NUM_UNDERFLOW 304
+
+#define PGTYPES_DATE_BAD_DATE 310
+#define PGTYPES_DATE_ERR_EARGS 311
+#define PGTYPES_DATE_ERR_ENOSHORTDATE 312
+#define PGTYPES_DATE_ERR_ENOTDMY 313
+#define PGTYPES_DATE_BAD_DAY 314
+#define PGTYPES_DATE_BAD_MONTH 315
+
+#define PGTYPES_TS_BAD_TIMESTAMP 320
+#define PGTYPES_TS_ERR_EINFTIME 321
+
+#define PGTYPES_INTVL_BAD_INTERVAL 330
diff --git a/src/interfaces/ecpg/include/pgtypes_interval.h b/src/interfaces/ecpg/include/pgtypes_interval.h
new file mode 100644
index 0000000..3b17cd1
--- /dev/null
+++ b/src/interfaces/ecpg/include/pgtypes_interval.h
@@ -0,0 +1,48 @@
+/* src/interfaces/ecpg/include/pgtypes_interval.h */
+
+#ifndef PGTYPES_INTERVAL
+#define PGTYPES_INTERVAL
+
+#include <ecpg_config.h>
+#include <pgtypes.h>
+
+#ifndef C_H
+
+#ifdef HAVE_LONG_INT_64
+#ifndef HAVE_INT64
+typedef long int int64;
+#endif
+#elif defined(HAVE_LONG_LONG_INT_64)
+#ifndef HAVE_INT64
+typedef long long int int64;
+#endif
+#else
+/* neither HAVE_LONG_INT_64 nor HAVE_LONG_LONG_INT_64 */
+#error must have a working 64-bit integer datatype
+#endif
+
+#define HAVE_INT64_TIMESTAMP
+#endif /* C_H */
+
+typedef struct
+{
+ int64 time; /* all time units other than months and years */
+ long month; /* months and years, after time for alignment */
+} interval;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+extern interval * PGTYPESinterval_new(void);
+extern void PGTYPESinterval_free(interval *);
+extern interval * PGTYPESinterval_from_asc(char *, char **);
+extern char *PGTYPESinterval_to_asc(interval *);
+extern int PGTYPESinterval_copy(interval *, interval *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* PGTYPES_INTERVAL */
diff --git a/src/interfaces/ecpg/include/pgtypes_numeric.h b/src/interfaces/ecpg/include/pgtypes_numeric.h
new file mode 100644
index 0000000..5c763a9
--- /dev/null
+++ b/src/interfaces/ecpg/include/pgtypes_numeric.h
@@ -0,0 +1,69 @@
+#ifndef PGTYPES_NUMERIC
+#define PGTYPES_NUMERIC
+
+#include <pgtypes.h>
+
+#define NUMERIC_POS 0x0000
+#define NUMERIC_NEG 0x4000
+#define NUMERIC_NAN 0xC000
+#define NUMERIC_NULL 0xF000
+#define NUMERIC_MAX_PRECISION 1000
+#define NUMERIC_MAX_DISPLAY_SCALE NUMERIC_MAX_PRECISION
+#define NUMERIC_MIN_DISPLAY_SCALE 0
+#define NUMERIC_MIN_SIG_DIGITS 16
+
+#define DECSIZE 30
+
+typedef unsigned char NumericDigit;
+typedef struct
+{
+ int ndigits; /* number of digits in digits[] - can be 0! */
+ int weight; /* weight of first digit */
+ int rscale; /* result scale */
+ int dscale; /* display scale */
+ int sign; /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
+ NumericDigit *buf; /* start of alloc'd space for digits[] */
+ NumericDigit *digits; /* decimal digits */
+} numeric;
+
+typedef struct
+{
+ int ndigits; /* number of digits in digits[] - can be 0! */
+ int weight; /* weight of first digit */
+ int rscale; /* result scale */
+ int dscale; /* display scale */
+ int sign; /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
+ NumericDigit digits[DECSIZE]; /* decimal digits */
+} decimal;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+numeric *PGTYPESnumeric_new(void);
+decimal *PGTYPESdecimal_new(void);
+void PGTYPESnumeric_free(numeric *);
+void PGTYPESdecimal_free(decimal *);
+numeric *PGTYPESnumeric_from_asc(char *, char **);
+char *PGTYPESnumeric_to_asc(numeric *, int);
+int PGTYPESnumeric_add(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_sub(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_mul(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_div(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_cmp(numeric *, numeric *);
+int PGTYPESnumeric_from_int(signed int, numeric *);
+int PGTYPESnumeric_from_long(signed long int, numeric *);
+int PGTYPESnumeric_copy(numeric *, numeric *);
+int PGTYPESnumeric_from_double(double, numeric *);
+int PGTYPESnumeric_to_double(numeric *, double *);
+int PGTYPESnumeric_to_int(numeric *, int *);
+int PGTYPESnumeric_to_long(numeric *, long *);
+int PGTYPESnumeric_to_decimal(numeric *, decimal *);
+int PGTYPESnumeric_from_decimal(decimal *, numeric *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* PGTYPES_NUMERIC */
diff --git a/src/interfaces/ecpg/include/pgtypes_timestamp.h b/src/interfaces/ecpg/include/pgtypes_timestamp.h
new file mode 100644
index 0000000..3e29837
--- /dev/null
+++ b/src/interfaces/ecpg/include/pgtypes_timestamp.h
@@ -0,0 +1,31 @@
+/* src/interfaces/ecpg/include/pgtypes_timestamp.h */
+
+#ifndef PGTYPES_TIMESTAMP
+#define PGTYPES_TIMESTAMP
+
+#include <pgtypes.h>
+/* pgtypes_interval.h includes ecpg_config.h */
+#include <pgtypes_interval.h>
+
+typedef int64 timestamp;
+typedef int64 TimestampTz;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+extern timestamp PGTYPEStimestamp_from_asc(char *, char **);
+extern char *PGTYPEStimestamp_to_asc(timestamp);
+extern int PGTYPEStimestamp_sub(timestamp *, timestamp *, interval *);
+extern int PGTYPEStimestamp_fmt_asc(timestamp *, char *, int, const char *);
+extern void PGTYPEStimestamp_current(timestamp *);
+extern int PGTYPEStimestamp_defmt_asc(const char *, const char *, timestamp *);
+extern int PGTYPEStimestamp_add_interval(timestamp * tin, interval * span, timestamp * tout);
+extern int PGTYPEStimestamp_sub_interval(timestamp * tin, interval * span, timestamp * tout);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* PGTYPES_TIMESTAMP */
diff --git a/src/interfaces/ecpg/include/sql3types.h b/src/interfaces/ecpg/include/sql3types.h
new file mode 100644
index 0000000..644b616
--- /dev/null
+++ b/src/interfaces/ecpg/include/sql3types.h
@@ -0,0 +1,43 @@
+#ifndef _ECPG_SQL3TYPES_H
+#define _ECPG_SQL3TYPES_H
+
+/* SQL3 dynamic type codes */
+
+/* chapter 13.1 table 2: Codes used for SQL data types in Dynamic SQL */
+
+enum
+{
+ SQL3_CHARACTER = 1,
+ SQL3_NUMERIC,
+ SQL3_DECIMAL,
+ SQL3_INTEGER,
+ SQL3_SMALLINT,
+ SQL3_FLOAT,
+ SQL3_REAL,
+ SQL3_DOUBLE_PRECISION,
+ SQL3_DATE_TIME_TIMESTAMP,
+ SQL3_INTERVAL, /* 10 */
+ SQL3_CHARACTER_VARYING = 12,
+ SQL3_ENUMERATED,
+ SQL3_BIT,
+ SQL3_BIT_VARYING,
+ SQL3_BOOLEAN,
+ SQL3_abstract
+ /* the rest is xLOB stuff */
+};
+
+/* chapter 13.1 table 3: Codes associated with datetime data types in Dynamic SQL */
+
+enum
+{
+ SQL3_DDT_DATE = 1,
+ SQL3_DDT_TIME,
+ SQL3_DDT_TIMESTAMP,
+ SQL3_DDT_TIME_WITH_TIME_ZONE,
+ SQL3_DDT_TIMESTAMP_WITH_TIME_ZONE,
+
+ SQL3_DDT_ILLEGAL /* not a datetime data type (not part of
+ * standard) */
+};
+
+#endif /* !_ECPG_SQL3TYPES_H */
diff --git a/src/interfaces/ecpg/include/sqlca.h b/src/interfaces/ecpg/include/sqlca.h
new file mode 100644
index 0000000..c5f107d
--- /dev/null
+++ b/src/interfaces/ecpg/include/sqlca.h
@@ -0,0 +1,66 @@
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/src/interfaces/ecpg/include/sqlda-compat.h b/src/interfaces/ecpg/include/sqlda-compat.h
new file mode 100644
index 0000000..7b0ac45
--- /dev/null
+++ b/src/interfaces/ecpg/include/sqlda-compat.h
@@ -0,0 +1,47 @@
+/*
+ * src/interfaces/ecpg/include/sqlda-compat.h
+ */
+
+#ifndef ECPG_SQLDA_COMPAT_H
+#define ECPG_SQLDA_COMPAT_H
+
+struct sqlvar_compat
+{
+ short sqltype; /* variable type */
+ int sqllen; /* length in bytes */
+ char *sqldata; /* pointer to data */
+ short *sqlind; /* pointer to indicator */
+ char *sqlname; /* variable name */
+ char *sqlformat; /* reserved for future use */
+ short sqlitype; /* ind variable type */
+ short sqlilen; /* ind length in bytes */
+ char *sqlidata; /* ind data pointer */
+ int sqlxid; /* extended id type */
+ char *sqltypename; /* extended type name */
+ short sqltypelen; /* length of extended type name */
+ short sqlownerlen; /* length of owner name */
+ short sqlsourcetype; /* source type for distinct of built-ins */
+ char *sqlownername; /* owner name */
+ int sqlsourceid; /* extended id of source type */
+
+ /*
+ * sqlilongdata is new. It supports data that exceeds the 32k limit.
+ * sqlilen and sqlidata are for backward compatibility and they have
+ * maximum value of <32K.
+ */
+ char *sqlilongdata; /* for data field beyond 32K */
+ int sqlflags; /* for internal use only */
+ void *sqlreserved; /* reserved for future use */
+};
+
+struct sqlda_compat
+{
+ short sqld;
+ struct sqlvar_compat *sqlvar;
+ char desc_name[19]; /* descriptor name */
+ short desc_occ; /* size of sqlda structure */
+ struct sqlda_compat *desc_next; /* pointer to next sqlda struct */
+ void *reserved; /* reserved for future use */
+};
+
+#endif /* ECPG_SQLDA_COMPAT_H */
diff --git a/src/interfaces/ecpg/include/sqlda-native.h b/src/interfaces/ecpg/include/sqlda-native.h
new file mode 100644
index 0000000..9e73f1f
--- /dev/null
+++ b/src/interfaces/ecpg/include/sqlda-native.h
@@ -0,0 +1,43 @@
+/*
+ * src/interfaces/ecpg/include/sqlda-native.h
+ */
+
+#ifndef ECPG_SQLDA_NATIVE_H
+#define ECPG_SQLDA_NATIVE_H
+
+/*
+ * Maximum length for identifiers (e.g. table names, column names,
+ * function names). Names actually are limited to one fewer byte than this,
+ * because the length must include a trailing zero byte.
+ *
+ * This should be at least as much as NAMEDATALEN of the database the
+ * applications run against.
+ */
+#define NAMEDATALEN 64
+
+struct sqlname
+{
+ short length;
+ char data[NAMEDATALEN];
+};
+
+struct sqlvar_struct
+{
+ short sqltype;
+ short sqllen;
+ char *sqldata;
+ short *sqlind;
+ struct sqlname sqlname;
+};
+
+struct sqlda_struct
+{
+ char sqldaid[8];
+ long sqldabc;
+ short sqln;
+ short sqld;
+ struct sqlda_struct *desc_next;
+ struct sqlvar_struct sqlvar[1];
+};
+
+#endif /* ECPG_SQLDA_NATIVE_H */
diff --git a/src/interfaces/ecpg/include/sqlda.h b/src/interfaces/ecpg/include/sqlda.h
new file mode 100644
index 0000000..d810e73
--- /dev/null
+++ b/src/interfaces/ecpg/include/sqlda.h
@@ -0,0 +1,18 @@
+#ifndef ECPG_SQLDA_H
+#define ECPG_SQLDA_H
+
+#ifdef _ECPG_INFORMIX_H
+
+#include "sqlda-compat.h"
+typedef struct sqlvar_compat sqlvar_t;
+typedef struct sqlda_compat sqlda_t;
+
+#else
+
+#include "sqlda-native.h"
+typedef struct sqlvar_struct sqlvar_t;
+typedef struct sqlda_struct sqlda_t;
+
+#endif
+
+#endif /* ECPG_SQLDA_H */
diff --git a/src/interfaces/ecpg/include/sqltypes.h b/src/interfaces/ecpg/include/sqltypes.h
new file mode 100644
index 0000000..e7cbfa4
--- /dev/null
+++ b/src/interfaces/ecpg/include/sqltypes.h
@@ -0,0 +1,57 @@
+#ifndef ECPG_SQLTYPES_H
+#define ECPG_SQLTYPES_H
+
+#include <limits.h>
+
+#define CCHARTYPE ECPGt_char
+#define CSHORTTYPE ECPGt_short
+#define CINTTYPE ECPGt_int
+#define CLONGTYPE ECPGt_long
+#define CFLOATTYPE ECPGt_float
+#define CDOUBLETYPE ECPGt_double
+#define CDECIMALTYPE ECPGt_decimal
+#define CFIXCHARTYPE 108
+#define CSTRINGTYPE ECPGt_char
+#define CDATETYPE ECPGt_date
+#define CMONEYTYPE 111
+#define CDTIMETYPE ECPGt_timestamp
+#define CLOCATORTYPE 113
+#define CVCHARTYPE ECPGt_varchar
+#define CINVTYPE 115
+#define CFILETYPE 116
+#define CINT8TYPE ECPGt_long_long
+#define CCOLLTYPE 118
+#define CLVCHARTYPE 119
+#define CFIXBINTYPE 120
+#define CVARBINTYPE 121
+#define CBOOLTYPE ECPGt_bool
+#define CROWTYPE 123
+#define CLVCHARPTRTYPE 124
+#define CTYPEMAX 25
+
+/*
+ * Values used in sqlda->sqlvar[i]->sqltype
+ */
+#define SQLCHAR ECPGt_char
+#define SQLSMINT ECPGt_short
+#define SQLINT ECPGt_int
+#define SQLFLOAT ECPGt_double
+#define SQLSMFLOAT ECPGt_float
+#define SQLDECIMAL ECPGt_decimal
+#define SQLSERIAL ECPGt_int
+#define SQLDATE ECPGt_date
+#define SQLDTIME ECPGt_timestamp
+#define SQLTEXT ECPGt_char
+#define SQLVCHAR ECPGt_char
+#define SQLINTERVAL ECPGt_interval
+#define SQLNCHAR ECPGt_char
+#define SQLNVCHAR ECPGt_char
+#ifdef HAVE_LONG_LONG_INT_64
+#define SQLINT8 ECPGt_long_long
+#define SQLSERIAL8 ECPGt_long_long
+#else
+#define SQLINT8 ECPGt_long
+#define SQLSERIAL8 ECPGt_long
+#endif
+
+#endif /* ndef ECPG_SQLTYPES_H */
diff --git a/src/interfaces/ecpg/pgtypeslib/.gitignore b/src/interfaces/ecpg/pgtypeslib/.gitignore
new file mode 100644
index 0000000..91402ad
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/.gitignore
@@ -0,0 +1,3 @@
+/pgtypeslib.def
+/blibpgtypesdll.def
+/exports.list
diff --git a/src/interfaces/ecpg/pgtypeslib/Makefile b/src/interfaces/ecpg/pgtypeslib/Makefile
new file mode 100644
index 0000000..763787f
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/Makefile
@@ -0,0 +1,54 @@
+#-------------------------------------------------------------------------
+#
+# Makefile for ecpg pgtypes library
+#
+# Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+# Portions Copyright (c) 1994, Regents of the University of California
+#
+# src/interfaces/ecpg/pgtypeslib/Makefile
+#
+#-------------------------------------------------------------------------
+
+subdir = src/interfaces/ecpg/pgtypeslib
+top_builddir = ../../../..
+include $(top_builddir)/src/Makefile.global
+
+PGFILEDESC = "pgtypes - library for data type mapping"
+NAME= pgtypes
+SO_MAJOR_VERSION= 3
+SO_MINOR_VERSION= $(MAJORVERSION)
+
+override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
+ -DFRONTEND $(CPPFLAGS)
+override CFLAGS += $(PTHREAD_CFLAGS)
+
+SHLIB_LINK_INTERNAL = -lpgcommon_shlib -lpgport_shlib
+SHLIB_LINK += $(filter -lintl -lm, $(LIBS))
+SHLIB_PREREQS = submake-libpgport
+
+SHLIB_EXPORTS = exports.txt
+
+OBJS = \
+ $(WIN32RES) \
+ common.o \
+ datetime.o \
+ dt_common.o \
+ interval.o \
+ numeric.o \
+ timestamp.o
+
+all: all-lib
+
+# Shared library stuff
+include $(top_srcdir)/src/Makefile.shlib
+
+install: all installdirs install-lib
+
+installdirs: installdirs-lib
+
+uninstall: uninstall-lib
+
+clean distclean: clean-lib
+ rm -f $(OBJS)
+
+maintainer-clean: distclean
diff --git a/src/interfaces/ecpg/pgtypeslib/common.c b/src/interfaces/ecpg/pgtypeslib/common.c
new file mode 100644
index 0000000..8972229
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/common.c
@@ -0,0 +1,148 @@
+/* src/interfaces/ecpg/pgtypeslib/common.c */
+
+#include "postgres_fe.h"
+
+#include "pgtypes.h"
+#include "pgtypeslib_extern.h"
+
+/* Return value is zero-filled. */
+char *
+pgtypes_alloc(long size)
+{
+ char *new = (char *) calloc(1L, size);
+
+ if (!new)
+ errno = ENOMEM;
+ return new;
+}
+
+char *
+pgtypes_strdup(const char *str)
+{
+ char *new = (char *) strdup(str);
+
+ if (!new)
+ errno = ENOMEM;
+ return new;
+}
+
+int
+pgtypes_fmt_replace(union un_fmt_comb replace_val, int replace_type, char **output, int *pstr_len)
+{
+ /*
+ * general purpose variable, set to 0 in order to fix compiler warning
+ */
+ int i = 0;
+
+ switch (replace_type)
+ {
+ case PGTYPES_TYPE_NOTHING:
+ break;
+ case PGTYPES_TYPE_STRING_CONSTANT:
+ case PGTYPES_TYPE_STRING_MALLOCED:
+ i = strlen(replace_val.str_val);
+ if (i + 1 <= *pstr_len)
+ {
+ /* include trailing terminator in what we copy */
+ memcpy(*output, replace_val.str_val, i + 1);
+ *pstr_len -= i;
+ *output += i;
+ if (replace_type == PGTYPES_TYPE_STRING_MALLOCED)
+ free(replace_val.str_val);
+ return 0;
+ }
+ else
+ return -1;
+ break;
+ case PGTYPES_TYPE_CHAR:
+ if (*pstr_len >= 2)
+ {
+ (*output)[0] = replace_val.char_val;
+ (*output)[1] = '\0';
+ (*pstr_len)--;
+ (*output)++;
+ return 0;
+ }
+ else
+ return -1;
+ break;
+ case PGTYPES_TYPE_DOUBLE_NF:
+ case PGTYPES_TYPE_INT64:
+ case PGTYPES_TYPE_UINT:
+ case PGTYPES_TYPE_UINT_2_LZ:
+ case PGTYPES_TYPE_UINT_2_LS:
+ case PGTYPES_TYPE_UINT_3_LZ:
+ case PGTYPES_TYPE_UINT_4_LZ:
+ {
+ char *t = pgtypes_alloc(PGTYPES_FMT_NUM_MAX_DIGITS);
+
+ if (!t)
+ return ENOMEM;
+ switch (replace_type)
+ {
+ case PGTYPES_TYPE_DOUBLE_NF:
+ i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
+ "%0.0g", replace_val.double_val);
+ break;
+ case PGTYPES_TYPE_INT64:
+ i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
+ INT64_FORMAT, replace_val.int64_val);
+ break;
+ case PGTYPES_TYPE_UINT:
+ i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
+ "%u", replace_val.uint_val);
+ break;
+ case PGTYPES_TYPE_UINT_2_LZ:
+ i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
+ "%02u", replace_val.uint_val);
+ break;
+ case PGTYPES_TYPE_UINT_2_LS:
+ i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
+ "%2u", replace_val.uint_val);
+ break;
+ case PGTYPES_TYPE_UINT_3_LZ:
+ i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
+ "%03u", replace_val.uint_val);
+ break;
+ case PGTYPES_TYPE_UINT_4_LZ:
+ i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
+ "%04u", replace_val.uint_val);
+ break;
+ }
+
+ if (i < 0 || i >= PGTYPES_FMT_NUM_MAX_DIGITS)
+ {
+ free(t);
+ return -1;
+ }
+ i = strlen(t);
+ *pstr_len -= i;
+
+ /*
+ * if *pstr_len == 0, we don't have enough space for the
+ * terminator and the conversion fails
+ */
+ if (*pstr_len <= 0)
+ {
+ free(t);
+ return -1;
+ }
+ strcpy(*output, t);
+ *output += i;
+ free(t);
+ }
+ break;
+ default:
+ break;
+ }
+ return 0;
+}
+
+/* Functions declared in pgtypes.h. */
+
+/* Just frees memory (mostly needed for Windows) */
+void
+PGTYPESchar_free(char *ptr)
+{
+ free(ptr);
+}
diff --git a/src/interfaces/ecpg/pgtypeslib/datetime.c b/src/interfaces/ecpg/pgtypeslib/datetime.c
new file mode 100644
index 0000000..1b25374
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/datetime.c
@@ -0,0 +1,713 @@
+/* src/interfaces/ecpg/pgtypeslib/datetime.c */
+
+#include "postgres_fe.h"
+
+#include <time.h>
+#include <ctype.h>
+#include <limits.h>
+
+#include "dt.h"
+#include "pgtypes_date.h"
+#include "pgtypes_error.h"
+#include "pgtypeslib_extern.h"
+
+date *
+PGTYPESdate_new(void)
+{
+ date *result;
+
+ result = (date *) pgtypes_alloc(sizeof(date));
+ /* result can be NULL if we run out of memory */
+ return result;
+}
+
+void
+PGTYPESdate_free(date * d)
+{
+ free(d);
+}
+
+date
+PGTYPESdate_from_timestamp(timestamp dt)
+{
+ date dDate;
+
+ dDate = 0; /* suppress compiler warning */
+
+ if (!TIMESTAMP_NOT_FINITE(dt))
+ {
+ /* Microseconds to days */
+ dDate = (dt / USECS_PER_DAY);
+ }
+
+ return dDate;
+}
+
+date
+PGTYPESdate_from_asc(char *str, char **endptr)
+{
+ date dDate;
+ fsec_t fsec;
+ struct tm tt,
+ *tm = &tt;
+ int dtype;
+ int nf;
+ char *field[MAXDATEFIELDS];
+ int ftype[MAXDATEFIELDS];
+ char lowstr[MAXDATELEN + MAXDATEFIELDS];
+ char *realptr;
+ char **ptr = (endptr != NULL) ? endptr : &realptr;
+
+ bool EuroDates = false;
+
+ errno = 0;
+ if (strlen(str) > MAXDATELEN)
+ {
+ errno = PGTYPES_DATE_BAD_DATE;
+ return INT_MIN;
+ }
+
+ if (ParseDateTime(str, lowstr, field, ftype, &nf, ptr) != 0 ||
+ DecodeDateTime(field, ftype, nf, &dtype, tm, &fsec, EuroDates) != 0)
+ {
+ errno = PGTYPES_DATE_BAD_DATE;
+ return INT_MIN;
+ }
+
+ switch (dtype)
+ {
+ case DTK_DATE:
+ break;
+
+ case DTK_EPOCH:
+ if (GetEpochTime(tm) < 0)
+ {
+ errno = PGTYPES_DATE_BAD_DATE;
+ return INT_MIN;
+ }
+ break;
+
+ default:
+ errno = PGTYPES_DATE_BAD_DATE;
+ return INT_MIN;
+ }
+
+ dDate = (date2j(tm->tm_year, tm->tm_mon, tm->tm_mday) - date2j(2000, 1, 1));
+
+ return dDate;
+}
+
+char *
+PGTYPESdate_to_asc(date dDate)
+{
+ struct tm tt,
+ *tm = &tt;
+ char buf[MAXDATELEN + 1];
+ int DateStyle = 1;
+ bool EuroDates = false;
+
+ j2date(dDate + date2j(2000, 1, 1), &(tm->tm_year), &(tm->tm_mon), &(tm->tm_mday));
+ EncodeDateOnly(tm, DateStyle, buf, EuroDates);
+ return pgtypes_strdup(buf);
+}
+
+void
+PGTYPESdate_julmdy(date jd, int *mdy)
+{
+ int y,
+ m,
+ d;
+
+ j2date((int) (jd + date2j(2000, 1, 1)), &y, &m, &d);
+ mdy[0] = m;
+ mdy[1] = d;
+ mdy[2] = y;
+}
+
+void
+PGTYPESdate_mdyjul(int *mdy, date * jdate)
+{
+ /* month is mdy[0] */
+ /* day is mdy[1] */
+ /* year is mdy[2] */
+
+ *jdate = (date) (date2j(mdy[2], mdy[0], mdy[1]) - date2j(2000, 1, 1));
+}
+
+int
+PGTYPESdate_dayofweek(date dDate)
+{
+ /*
+ * Sunday: 0 Monday: 1 Tuesday: 2 Wednesday: 3 Thursday: 4
+ * Friday: 5 Saturday: 6
+ */
+ return (int) (dDate + date2j(2000, 1, 1) + 1) % 7;
+}
+
+void
+PGTYPESdate_today(date * d)
+{
+ struct tm ts;
+
+ GetCurrentDateTime(&ts);
+ if (errno == 0)
+ *d = date2j(ts.tm_year, ts.tm_mon, ts.tm_mday) - date2j(2000, 1, 1);
+}
+
+#define PGTYPES_DATE_NUM_MAX_DIGITS 20 /* should suffice for most
+ * years... */
+
+#define PGTYPES_FMTDATE_DAY_DIGITS_LZ 1 /* LZ means "leading zeroes" */
+#define PGTYPES_FMTDATE_DOW_LITERAL_SHORT 2
+#define PGTYPES_FMTDATE_MONTH_DIGITS_LZ 3
+#define PGTYPES_FMTDATE_MONTH_LITERAL_SHORT 4
+#define PGTYPES_FMTDATE_YEAR_DIGITS_SHORT 5
+#define PGTYPES_FMTDATE_YEAR_DIGITS_LONG 6
+
+int
+PGTYPESdate_fmt_asc(date dDate, const char *fmtstring, char *outbuf)
+{
+ static struct
+ {
+ char *format;
+ int component;
+ } mapping[] =
+ {
+ /*
+ * format items have to be sorted according to their length, since the
+ * first pattern that matches gets replaced by its value
+ */
+ {
+ "ddd", PGTYPES_FMTDATE_DOW_LITERAL_SHORT
+ },
+ {
+ "dd", PGTYPES_FMTDATE_DAY_DIGITS_LZ
+ },
+ {
+ "mmm", PGTYPES_FMTDATE_MONTH_LITERAL_SHORT
+ },
+ {
+ "mm", PGTYPES_FMTDATE_MONTH_DIGITS_LZ
+ },
+ {
+ "yyyy", PGTYPES_FMTDATE_YEAR_DIGITS_LONG
+ },
+ {
+ "yy", PGTYPES_FMTDATE_YEAR_DIGITS_SHORT
+ },
+ {
+ NULL, 0
+ }
+ };
+
+ union un_fmt_comb replace_val;
+ int replace_type;
+
+ int i;
+ int dow;
+ char *start_pattern;
+ struct tm tm;
+
+ /* copy the string over */
+ strcpy(outbuf, fmtstring);
+
+ /* get the date */
+ j2date(dDate + date2j(2000, 1, 1), &(tm.tm_year), &(tm.tm_mon), &(tm.tm_mday));
+ dow = PGTYPESdate_dayofweek(dDate);
+
+ for (i = 0; mapping[i].format != NULL; i++)
+ {
+ while ((start_pattern = strstr(outbuf, mapping[i].format)) != NULL)
+ {
+ switch (mapping[i].component)
+ {
+ case PGTYPES_FMTDATE_DOW_LITERAL_SHORT:
+ replace_val.str_val = pgtypes_date_weekdays_short[dow];
+ replace_type = PGTYPES_TYPE_STRING_CONSTANT;
+ break;
+ case PGTYPES_FMTDATE_DAY_DIGITS_LZ:
+ replace_val.uint_val = tm.tm_mday;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ case PGTYPES_FMTDATE_MONTH_LITERAL_SHORT:
+ replace_val.str_val = months[tm.tm_mon - 1];
+ replace_type = PGTYPES_TYPE_STRING_CONSTANT;
+ break;
+ case PGTYPES_FMTDATE_MONTH_DIGITS_LZ:
+ replace_val.uint_val = tm.tm_mon;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ case PGTYPES_FMTDATE_YEAR_DIGITS_LONG:
+ replace_val.uint_val = tm.tm_year;
+ replace_type = PGTYPES_TYPE_UINT_4_LZ;
+ break;
+ case PGTYPES_FMTDATE_YEAR_DIGITS_SHORT:
+ replace_val.uint_val = tm.tm_year % 100;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ default:
+
+ /*
+ * should not happen, set something anyway
+ */
+ replace_val.str_val = " ";
+ replace_type = PGTYPES_TYPE_STRING_CONSTANT;
+ }
+ switch (replace_type)
+ {
+ case PGTYPES_TYPE_STRING_MALLOCED:
+ case PGTYPES_TYPE_STRING_CONSTANT:
+ memcpy(start_pattern, replace_val.str_val,
+ strlen(replace_val.str_val));
+ if (replace_type == PGTYPES_TYPE_STRING_MALLOCED)
+ free(replace_val.str_val);
+ break;
+ case PGTYPES_TYPE_UINT:
+ {
+ char *t = pgtypes_alloc(PGTYPES_DATE_NUM_MAX_DIGITS);
+
+ if (!t)
+ return -1;
+ snprintf(t, PGTYPES_DATE_NUM_MAX_DIGITS,
+ "%u", replace_val.uint_val);
+ memcpy(start_pattern, t, strlen(t));
+ free(t);
+ }
+ break;
+ case PGTYPES_TYPE_UINT_2_LZ:
+ {
+ char *t = pgtypes_alloc(PGTYPES_DATE_NUM_MAX_DIGITS);
+
+ if (!t)
+ return -1;
+ snprintf(t, PGTYPES_DATE_NUM_MAX_DIGITS,
+ "%02u", replace_val.uint_val);
+ memcpy(start_pattern, t, strlen(t));
+ free(t);
+ }
+ break;
+ case PGTYPES_TYPE_UINT_4_LZ:
+ {
+ char *t = pgtypes_alloc(PGTYPES_DATE_NUM_MAX_DIGITS);
+
+ if (!t)
+ return -1;
+ snprintf(t, PGTYPES_DATE_NUM_MAX_DIGITS,
+ "%04u", replace_val.uint_val);
+ memcpy(start_pattern, t, strlen(t));
+ free(t);
+ }
+ break;
+ default:
+
+ /*
+ * doesn't happen (we set replace_type to
+ * PGTYPES_TYPE_STRING_CONSTANT in case of an error above)
+ */
+ break;
+ }
+ }
+ }
+ return 0;
+}
+
+
+/*
+ * PGTYPESdate_defmt_asc
+ *
+ * function works as follows:
+ * - first we analyze the parameters
+ * - if this is a special case with no delimiters, add delimiters
+ * - find the tokens. First we look for numerical values. If we have found
+ * less than 3 tokens, we check for the months' names and thereafter for
+ * the abbreviations of the months' names.
+ * - then we see which parameter should be the date, the month and the
+ * year and from these values we calculate the date
+ */
+
+#define PGTYPES_DATE_MONTH_MAXLENGTH 20 /* probably even less :-) */
+int
+PGTYPESdate_defmt_asc(date * d, const char *fmt, const char *str)
+{
+ /*
+ * token[2] = { 4,6 } means that token 2 starts at position 4 and ends at
+ * (including) position 6
+ */
+ int token[3][2];
+ int token_values[3] = {-1, -1, -1};
+ char *fmt_token_order;
+ char *fmt_ystart,
+ *fmt_mstart,
+ *fmt_dstart;
+ unsigned int i;
+ int reading_digit;
+ int token_count;
+ char *str_copy;
+ struct tm tm;
+
+ tm.tm_year = tm.tm_mon = tm.tm_mday = 0; /* keep compiler quiet */
+
+ if (!d || !str || !fmt)
+ {
+ errno = PGTYPES_DATE_ERR_EARGS;
+ return -1;
+ }
+
+ /* analyze the fmt string */
+ fmt_ystart = strstr(fmt, "yy");
+ fmt_mstart = strstr(fmt, "mm");
+ fmt_dstart = strstr(fmt, "dd");
+
+ if (!fmt_ystart || !fmt_mstart || !fmt_dstart)
+ {
+ errno = PGTYPES_DATE_ERR_EARGS;
+ return -1;
+ }
+
+ if (fmt_ystart < fmt_mstart)
+ {
+ /* y m */
+ if (fmt_dstart < fmt_ystart)
+ {
+ /* d y m */
+ fmt_token_order = "dym";
+ }
+ else if (fmt_dstart > fmt_mstart)
+ {
+ /* y m d */
+ fmt_token_order = "ymd";
+ }
+ else
+ {
+ /* y d m */
+ fmt_token_order = "ydm";
+ }
+ }
+ else
+ {
+ /* fmt_ystart > fmt_mstart */
+ /* m y */
+ if (fmt_dstart < fmt_mstart)
+ {
+ /* d m y */
+ fmt_token_order = "dmy";
+ }
+ else if (fmt_dstart > fmt_ystart)
+ {
+ /* m y d */
+ fmt_token_order = "myd";
+ }
+ else
+ {
+ /* m d y */
+ fmt_token_order = "mdy";
+ }
+ }
+
+ /*
+ * handle the special cases where there is no delimiter between the
+ * digits. If we see this:
+ *
+ * only digits, 6 or 8 bytes then it might be ddmmyy and ddmmyyyy (or
+ * similar)
+ *
+ * we reduce it to a string with delimiters and continue processing
+ */
+
+ /* check if we have only digits */
+ reading_digit = 1;
+ for (i = 0; str[i]; i++)
+ {
+ if (!isdigit((unsigned char) str[i]))
+ {
+ reading_digit = 0;
+ break;
+ }
+ }
+ if (reading_digit)
+ {
+ int frag_length[3];
+ int target_pos;
+
+ i = strlen(str);
+ if (i != 8 && i != 6)
+ {
+ errno = PGTYPES_DATE_ERR_ENOSHORTDATE;
+ return -1;
+ }
+ /* okay, this really is the special case */
+
+ /*
+ * as long as the string, one additional byte for the terminator and 2
+ * for the delimiters between the 3 fields
+ */
+ str_copy = pgtypes_alloc(strlen(str) + 1 + 2);
+ if (!str_copy)
+ return -1;
+
+ /* determine length of the fragments */
+ if (i == 6)
+ {
+ frag_length[0] = 2;
+ frag_length[1] = 2;
+ frag_length[2] = 2;
+ }
+ else
+ {
+ if (fmt_token_order[0] == 'y')
+ {
+ frag_length[0] = 4;
+ frag_length[1] = 2;
+ frag_length[2] = 2;
+ }
+ else if (fmt_token_order[1] == 'y')
+ {
+ frag_length[0] = 2;
+ frag_length[1] = 4;
+ frag_length[2] = 2;
+ }
+ else
+ {
+ frag_length[0] = 2;
+ frag_length[1] = 2;
+ frag_length[2] = 4;
+ }
+ }
+ target_pos = 0;
+
+ /*
+ * XXX: Here we could calculate the positions of the tokens and save
+ * the for loop down there where we again check with isdigit() for
+ * digits.
+ */
+ for (i = 0; i < 3; i++)
+ {
+ int start_pos = 0;
+
+ if (i >= 1)
+ start_pos += frag_length[0];
+ if (i == 2)
+ start_pos += frag_length[1];
+
+ strncpy(str_copy + target_pos, str + start_pos,
+ frag_length[i]);
+ target_pos += frag_length[i];
+ if (i != 2)
+ {
+ str_copy[target_pos] = ' ';
+ target_pos++;
+ }
+ }
+ str_copy[target_pos] = '\0';
+ }
+ else
+ {
+ str_copy = pgtypes_strdup(str);
+ if (!str_copy)
+ return -1;
+
+ /* convert the whole string to lower case */
+ for (i = 0; str_copy[i]; i++)
+ str_copy[i] = (char) pg_tolower((unsigned char) str_copy[i]);
+ }
+
+ /* look for numerical tokens */
+ reading_digit = 0;
+ token_count = 0;
+ for (i = 0; i < strlen(str_copy); i++)
+ {
+ if (!isdigit((unsigned char) str_copy[i]) && reading_digit)
+ {
+ /* the token is finished */
+ token[token_count][1] = i - 1;
+ reading_digit = 0;
+ token_count++;
+ }
+ else if (isdigit((unsigned char) str_copy[i]) && !reading_digit)
+ {
+ /* we have found a token */
+ token[token_count][0] = i;
+ reading_digit = 1;
+ }
+ }
+
+ /*
+ * we're at the end of the input string, but maybe we are still reading a
+ * number...
+ */
+ if (reading_digit)
+ {
+ token[token_count][1] = i - 1;
+ token_count++;
+ }
+
+
+ if (token_count < 2)
+ {
+ /*
+ * not all tokens found, no way to find 2 missing tokens with string
+ * matches
+ */
+ free(str_copy);
+ errno = PGTYPES_DATE_ERR_ENOSHORTDATE;
+ return -1;
+ }
+
+ if (token_count != 3)
+ {
+ /*
+ * not all tokens found but we may find another one with string
+ * matches by testing for the months names and months abbreviations
+ */
+ char *month_lower_tmp = pgtypes_alloc(PGTYPES_DATE_MONTH_MAXLENGTH);
+ char *start_pos;
+ int j;
+ int offset;
+ int found = 0;
+ char **list;
+
+ if (!month_lower_tmp)
+ {
+ /* free variables we alloc'ed before */
+ free(str_copy);
+ return -1;
+ }
+ list = pgtypes_date_months;
+ for (i = 0; list[i]; i++)
+ {
+ for (j = 0; j < PGTYPES_DATE_MONTH_MAXLENGTH; j++)
+ {
+ month_lower_tmp[j] = (char) pg_tolower((unsigned char) list[i][j]);
+ if (!month_lower_tmp[j])
+ {
+ /* properly terminated */
+ break;
+ }
+ }
+ if ((start_pos = strstr(str_copy, month_lower_tmp)))
+ {
+ offset = start_pos - str_copy;
+
+ /*
+ * sort the new token into the numeric tokens, shift them if
+ * necessary
+ */
+ if (offset < token[0][0])
+ {
+ token[2][0] = token[1][0];
+ token[2][1] = token[1][1];
+ token[1][0] = token[0][0];
+ token[1][1] = token[0][1];
+ token_count = 0;
+ }
+ else if (offset < token[1][0])
+ {
+ token[2][0] = token[1][0];
+ token[2][1] = token[1][1];
+ token_count = 1;
+ }
+ else
+ token_count = 2;
+ token[token_count][0] = offset;
+ token[token_count][1] = offset + strlen(month_lower_tmp) - 1;
+
+ /*
+ * the value is the index of the month in the array of months
+ * + 1 (January is month 0)
+ */
+ token_values[token_count] = i + 1;
+ found = 1;
+ break;
+ }
+
+ /*
+ * evil[tm] hack: if we read the pgtypes_date_months and haven't
+ * found a match, reset list to point to months (abbreviations)
+ * and reset the counter variable i
+ */
+ if (list == pgtypes_date_months)
+ {
+ if (list[i + 1] == NULL)
+ {
+ list = months;
+ i = -1;
+ }
+ }
+ }
+ if (!found)
+ {
+ free(month_lower_tmp);
+ free(str_copy);
+ errno = PGTYPES_DATE_ERR_ENOTDMY;
+ return -1;
+ }
+
+ /*
+ * here we found a month. token[token_count] and
+ * token_values[token_count] reflect the month's details.
+ *
+ * only the month can be specified with a literal. Here we can do a
+ * quick check if the month is at the right position according to the
+ * format string because we can check if the token that we expect to
+ * be the month is at the position of the only token that already has
+ * a value. If we wouldn't check here we could say "December 4 1990"
+ * with a fmt string of "dd mm yy" for 12 April 1990.
+ */
+ if (fmt_token_order[token_count] != 'm')
+ {
+ /* deal with the error later on */
+ token_values[token_count] = -1;
+ }
+ free(month_lower_tmp);
+ }
+
+ /* terminate the tokens with ASCII-0 and get their values */
+ for (i = 0; i < 3; i++)
+ {
+ *(str_copy + token[i][1] + 1) = '\0';
+ /* A month already has a value set, check for token_value == -1 */
+ if (token_values[i] == -1)
+ {
+ errno = 0;
+ token_values[i] = strtol(str_copy + token[i][0], (char **) NULL, 10);
+ /* strtol sets errno in case of an error */
+ if (errno)
+ token_values[i] = -1;
+ }
+ if (fmt_token_order[i] == 'd')
+ tm.tm_mday = token_values[i];
+ else if (fmt_token_order[i] == 'm')
+ tm.tm_mon = token_values[i];
+ else if (fmt_token_order[i] == 'y')
+ tm.tm_year = token_values[i];
+ }
+ free(str_copy);
+
+ if (tm.tm_mday < 1 || tm.tm_mday > 31)
+ {
+ errno = PGTYPES_DATE_BAD_DAY;
+ return -1;
+ }
+
+ if (tm.tm_mon < 1 || tm.tm_mon > MONTHS_PER_YEAR)
+ {
+ errno = PGTYPES_DATE_BAD_MONTH;
+ return -1;
+ }
+
+ if (tm.tm_mday == 31 && (tm.tm_mon == 4 || tm.tm_mon == 6 || tm.tm_mon == 9 || tm.tm_mon == 11))
+ {
+ errno = PGTYPES_DATE_BAD_DAY;
+ return -1;
+ }
+
+ if (tm.tm_mon == 2 && tm.tm_mday > 29)
+ {
+ errno = PGTYPES_DATE_BAD_DAY;
+ return -1;
+ }
+
+ *d = date2j(tm.tm_year, tm.tm_mon, tm.tm_mday) - date2j(2000, 1, 1);
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/pgtypeslib/dt.h b/src/interfaces/ecpg/pgtypeslib/dt.h
new file mode 100644
index 0000000..893c9b6
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/dt.h
@@ -0,0 +1,341 @@
+/* src/interfaces/ecpg/pgtypeslib/dt.h */
+
+#ifndef DT_H
+#define DT_H
+
+#include <pgtypes_timestamp.h>
+
+#include <time.h>
+
+#define MAXTZLEN 10
+
+typedef int32 fsec_t;
+
+#define USE_POSTGRES_DATES 0
+#define USE_ISO_DATES 1
+#define USE_SQL_DATES 2
+#define USE_GERMAN_DATES 3
+
+#define INTSTYLE_POSTGRES 0
+#define INTSTYLE_POSTGRES_VERBOSE 1
+#define INTSTYLE_SQL_STANDARD 2
+#define INTSTYLE_ISO_8601 3
+
+#define INTERVAL_FULL_RANGE (0x7FFF)
+#define INTERVAL_MASK(b) (1 << (b))
+#define MAX_INTERVAL_PRECISION 6
+
+#define DTERR_BAD_FORMAT (-1)
+#define DTERR_FIELD_OVERFLOW (-2)
+#define DTERR_MD_FIELD_OVERFLOW (-3) /* triggers hint about DateStyle */
+#define DTERR_INTERVAL_OVERFLOW (-4)
+#define DTERR_TZDISP_OVERFLOW (-5)
+
+
+#define DAGO "ago"
+#define DCURRENT "current"
+#define EPOCH "epoch"
+#define INVALID "invalid"
+#define EARLY "-infinity"
+#define LATE "infinity"
+#define NOW "now"
+#define TODAY "today"
+#define TOMORROW "tomorrow"
+#define YESTERDAY "yesterday"
+#define ZULU "zulu"
+
+#define DMICROSEC "usecond"
+#define DMILLISEC "msecond"
+#define DSECOND "second"
+#define DMINUTE "minute"
+#define DHOUR "hour"
+#define DDAY "day"
+#define DWEEK "week"
+#define DMONTH "month"
+#define DQUARTER "quarter"
+#define DYEAR "year"
+#define DDECADE "decade"
+#define DCENTURY "century"
+#define DMILLENNIUM "millennium"
+#define DA_D "ad"
+#define DB_C "bc"
+#define DTIMEZONE "timezone"
+
+/*
+ * Fundamental time field definitions for parsing.
+ *
+ * Meridian: am, pm, or 24-hour style.
+ * Millennium: ad, bc
+ */
+
+#define AM 0
+#define PM 1
+#define HR24 2
+
+#define AD 0
+#define BC 1
+
+/*
+ * Field types for time decoding.
+ *
+ * Can't have more of these than there are bits in an unsigned int
+ * since these are turned into bit masks during parsing and decoding.
+ *
+ * Furthermore, the values for YEAR, MONTH, DAY, HOUR, MINUTE, SECOND
+ * must be in the range 0..14 so that the associated bitmasks can fit
+ * into the left half of an INTERVAL's typmod value.
+ *
+ * Copy&pasted these values from src/include/utils/datetime.h
+ * 2008-11-20, changing a number of their values.
+ */
+
+#define RESERV 0
+#define MONTH 1
+#define YEAR 2
+#define DAY 3
+#define JULIAN 4
+#define TZ 5 /* fixed-offset timezone abbreviation */
+#define DTZ 6 /* fixed-offset timezone abbrev, DST */
+#define DYNTZ 7 /* dynamic timezone abbr (unimplemented) */
+#define IGNORE_DTF 8
+#define AMPM 9
+#define HOUR 10
+#define MINUTE 11
+#define SECOND 12
+#define MILLISECOND 13
+#define MICROSECOND 14
+#define DOY 15
+#define DOW 16
+#define UNITS 17
+#define ADBC 18
+/* these are only for relative dates */
+#define AGO 19
+#define ABS_BEFORE 20
+#define ABS_AFTER 21
+/* generic fields to help with parsing */
+#define ISODATE 22
+#define ISOTIME 23
+/* hack for parsing two-word timezone specs "MET DST" etc */
+#define DTZMOD 28 /* "DST" as a separate word */
+/* reserved for unrecognized string values */
+#define UNKNOWN_FIELD 31
+
+
+/*
+ * Token field definitions for time parsing and decoding.
+ *
+ * Some field type codes (see above) use these as the "value" in datetktbl[].
+ * These are also used for bit masks in DecodeDateTime and friends
+ * so actually restrict them to within [0,31] for now.
+ * - thomas 97/06/19
+ * Not all of these fields are used for masks in DecodeDateTime
+ * so allow some larger than 31. - thomas 1997-11-17
+ *
+ * Caution: there are undocumented assumptions in the code that most of these
+ * values are not equal to IGNORE_DTF nor RESERV. Be very careful when
+ * renumbering values in either of these apparently-independent lists :-(
+ */
+
+#define DTK_NUMBER 0
+#define DTK_STRING 1
+
+#define DTK_DATE 2
+#define DTK_TIME 3
+#define DTK_TZ 4
+#define DTK_AGO 5
+
+#define DTK_SPECIAL 6
+#define DTK_EARLY 9
+#define DTK_LATE 10
+#define DTK_EPOCH 11
+#define DTK_NOW 12
+#define DTK_YESTERDAY 13
+#define DTK_TODAY 14
+#define DTK_TOMORROW 15
+#define DTK_ZULU 16
+
+#define DTK_DELTA 17
+#define DTK_SECOND 18
+#define DTK_MINUTE 19
+#define DTK_HOUR 20
+#define DTK_DAY 21
+#define DTK_WEEK 22
+#define DTK_MONTH 23
+#define DTK_QUARTER 24
+#define DTK_YEAR 25
+#define DTK_DECADE 26
+#define DTK_CENTURY 27
+#define DTK_MILLENNIUM 28
+#define DTK_MILLISEC 29
+#define DTK_MICROSEC 30
+#define DTK_JULIAN 31
+
+#define DTK_DOW 32
+#define DTK_DOY 33
+#define DTK_TZ_HOUR 34
+#define DTK_TZ_MINUTE 35
+#define DTK_ISOYEAR 36
+#define DTK_ISODOW 37
+
+
+/*
+ * Bit mask definitions for time parsing.
+ */
+/* Copy&pasted these values from src/include/utils/datetime.h */
+#define DTK_M(t) (0x01 << (t))
+#define DTK_ALL_SECS_M (DTK_M(SECOND) | DTK_M(MILLISECOND) | DTK_M(MICROSECOND))
+#define DTK_DATE_M (DTK_M(YEAR) | DTK_M(MONTH) | DTK_M(DAY))
+#define DTK_TIME_M (DTK_M(HOUR) | DTK_M(MINUTE) | DTK_M(SECOND))
+
+/*
+ * Working buffer size for input and output of interval, timestamp, etc.
+ * Inputs that need more working space will be rejected early. Longer outputs
+ * will overrun buffers, so this must suffice for all possible output. As of
+ * this writing, PGTYPESinterval_to_asc() needs the most space at ~90 bytes.
+ */
+#define MAXDATELEN 128
+/* maximum possible number of fields in a date string */
+#define MAXDATEFIELDS 25
+/* only this many chars are stored in datetktbl */
+#define TOKMAXLEN 10
+
+/* keep this struct small; it gets used a lot */
+typedef struct
+{
+ char token[TOKMAXLEN + 1]; /* always NUL-terminated */
+ char type; /* see field type codes above */
+ int32 value; /* meaning depends on type */
+} datetkn;
+
+
+/* FMODULO()
+ * Macro to replace modf(), which is broken on some platforms.
+ * t = input and remainder
+ * q = integer part
+ * u = divisor
+ */
+#define FMODULO(t,q,u) \
+do { \
+ (q) = (((t) < 0) ? ceil((t) / (u)): floor((t) / (u))); \
+ if ((q) != 0) (t) -= rint((q) * (u)); \
+} while(0)
+
+/* TMODULO()
+ * Like FMODULO(), but work on the timestamp datatype (now always int64).
+ * We assume that int64 follows the C99 semantics for division (negative
+ * quotients truncate towards zero).
+ */
+#define TMODULO(t,q,u) \
+do { \
+ (q) = ((t) / (u)); \
+ if ((q) != 0) (t) -= ((q) * (u)); \
+} while(0)
+
+/* in both timestamp.h and ecpg/dt.h */
+#define DAYS_PER_YEAR 365.25 /* assumes leap year every four years */
+#define MONTHS_PER_YEAR 12
+/*
+ * DAYS_PER_MONTH is very imprecise. The more accurate value is
+ * 365.2425/12 = 30.436875, or '30 days 10:29:06'. Right now we only
+ * return an integral number of days, but someday perhaps we should
+ * also return a 'time' value to be used as well. ISO 8601 suggests
+ * 30 days.
+ */
+#define DAYS_PER_MONTH 30 /* assumes exactly 30 days per month */
+#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */
+
+/*
+ * This doesn't adjust for uneven daylight savings time intervals or leap
+ * seconds, and it crudely estimates leap years. A more accurate value
+ * for days per years is 365.2422.
+ */
+#define SECS_PER_YEAR (36525 * 864) /* avoid floating-point computation */
+#define SECS_PER_DAY 86400
+#define SECS_PER_HOUR 3600
+#define SECS_PER_MINUTE 60
+#define MINS_PER_HOUR 60
+
+#define USECS_PER_DAY INT64CONST(86400000000)
+#define USECS_PER_HOUR INT64CONST(3600000000)
+#define USECS_PER_MINUTE INT64CONST(60000000)
+#define USECS_PER_SEC INT64CONST(1000000)
+
+/*
+ * Date/time validation
+ * Include check for leap year.
+ */
+#define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
+
+/*
+ * Julian date support --- see comments in backend's timestamp.h.
+ */
+
+#define JULIAN_MINYEAR (-4713)
+#define JULIAN_MINMONTH (11)
+#define JULIAN_MINDAY (24)
+#define JULIAN_MAXYEAR (5874898)
+#define JULIAN_MAXMONTH (6)
+#define JULIAN_MAXDAY (3)
+
+#define IS_VALID_JULIAN(y,m,d) \
+ (((y) > JULIAN_MINYEAR || \
+ ((y) == JULIAN_MINYEAR && ((m) >= JULIAN_MINMONTH))) && \
+ ((y) < JULIAN_MAXYEAR || \
+ ((y) == JULIAN_MAXYEAR && ((m) < JULIAN_MAXMONTH))))
+
+#define MIN_TIMESTAMP INT64CONST(-211813488000000000)
+#define END_TIMESTAMP INT64CONST(9223371331200000000)
+
+#define IS_VALID_TIMESTAMP(t) (MIN_TIMESTAMP <= (t) && (t) < END_TIMESTAMP)
+
+#define UTIME_MINYEAR (1901)
+#define UTIME_MINMONTH (12)
+#define UTIME_MINDAY (14)
+#define UTIME_MAXYEAR (2038)
+#define UTIME_MAXMONTH (01)
+#define UTIME_MAXDAY (18)
+
+#define IS_VALID_UTIME(y,m,d) ((((y) > UTIME_MINYEAR) \
+ || (((y) == UTIME_MINYEAR) && (((m) > UTIME_MINMONTH) \
+ || (((m) == UTIME_MINMONTH) && ((d) >= UTIME_MINDAY))))) \
+ && (((y) < UTIME_MAXYEAR) \
+ || (((y) == UTIME_MAXYEAR) && (((m) < UTIME_MAXMONTH) \
+ || (((m) == UTIME_MAXMONTH) && ((d) <= UTIME_MAXDAY))))))
+
+#define DT_NOBEGIN (-INT64CONST(0x7fffffffffffffff) - 1)
+#define DT_NOEND (INT64CONST(0x7fffffffffffffff))
+
+#define TIMESTAMP_NOBEGIN(j) do {(j) = DT_NOBEGIN;} while (0)
+#define TIMESTAMP_NOEND(j) do {(j) = DT_NOEND;} while (0)
+#define TIMESTAMP_IS_NOBEGIN(j) ((j) == DT_NOBEGIN)
+#define TIMESTAMP_IS_NOEND(j) ((j) == DT_NOEND)
+#define TIMESTAMP_NOT_FINITE(j) (TIMESTAMP_IS_NOBEGIN(j) || TIMESTAMP_IS_NOEND(j))
+
+int DecodeInterval(char **, int *, int, int *, struct tm *, fsec_t *);
+int DecodeTime(char *, int *, struct tm *, fsec_t *);
+void EncodeDateTime(struct tm *tm, fsec_t fsec, bool print_tz, int tz, const char *tzn, int style, char *str, bool EuroDates);
+void EncodeInterval(struct tm *tm, fsec_t fsec, int style, char *str);
+int tm2timestamp(struct tm *, fsec_t, int *, timestamp *);
+int DecodeUnits(int field, char *lowtoken, int *val);
+bool CheckDateTokenTables(void);
+void EncodeDateOnly(struct tm *tm, int style, char *str, bool EuroDates);
+int GetEpochTime(struct tm *);
+int ParseDateTime(char *, char *, char **, int *, int *, char **);
+int DecodeDateTime(char **, int *, int, int *, struct tm *, fsec_t *, bool);
+void j2date(int, int *, int *, int *);
+void GetCurrentDateTime(struct tm *);
+int date2j(int, int, int);
+void TrimTrailingZeros(char *);
+void dt2time(double, int *, int *, int *, fsec_t *);
+int PGTYPEStimestamp_defmt_scan(char **str, char *fmt, timestamp * d,
+ int *year, int *month, int *day,
+ int *hour, int *minute, int *second,
+ int *tz);
+
+extern char *pgtypes_date_weekdays_short[];
+extern char *pgtypes_date_months[];
+extern char *months[];
+extern char *days[];
+extern const int day_tab[2][13];
+
+#endif /* DT_H */
diff --git a/src/interfaces/ecpg/pgtypeslib/dt_common.c b/src/interfaces/ecpg/pgtypeslib/dt_common.c
new file mode 100644
index 0000000..e0fae3d
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/dt_common.c
@@ -0,0 +1,3002 @@
+/* src/interfaces/ecpg/pgtypeslib/dt_common.c */
+
+#include "postgres_fe.h"
+
+#include <time.h>
+#include <ctype.h>
+#include <math.h>
+
+#include "common/string.h"
+#include "dt.h"
+#include "pgtypes_timestamp.h"
+#include "pgtypeslib_extern.h"
+
+const int day_tab[2][13] = {
+ {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0},
+{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0}};
+
+typedef long AbsoluteTime;
+
+static const datetkn datetktbl[] = {
+/* text, token, lexval */
+ {EARLY, RESERV, DTK_EARLY}, /* "-infinity" reserved for "early time" */
+ {"acsst", DTZ, 37800}, /* Cent. Australia */
+ {"acst", DTZ, -14400}, /* Atlantic/Porto Acre */
+ {"act", TZ, -18000}, /* Atlantic/Porto Acre */
+ {DA_D, ADBC, AD}, /* "ad" for years >= 0 */
+ {"adt", DTZ, -10800}, /* Atlantic Daylight Time */
+ {"aesst", DTZ, 39600}, /* E. Australia */
+ {"aest", TZ, 36000}, /* Australia Eastern Std Time */
+ {"aft", TZ, 16200}, /* Kabul */
+ {"ahst", TZ, -36000}, /* Alaska-Hawaii Std Time */
+ {"akdt", DTZ, -28800}, /* Alaska Daylight Time */
+ {"akst", DTZ, -32400}, /* Alaska Standard Time */
+ {"allballs", RESERV, DTK_ZULU}, /* 00:00:00 */
+ {"almst", TZ, 25200}, /* Almaty Savings Time */
+ {"almt", TZ, 21600}, /* Almaty Time */
+ {"am", AMPM, AM},
+ {"amst", DTZ, 18000}, /* Armenia Summer Time (Yerevan) */
+#if 0
+ {"amst", DTZ, -10800}, /* Porto Velho */
+#endif
+ {"amt", TZ, 14400}, /* Armenia Time (Yerevan) */
+ {"anast", DTZ, 46800}, /* Anadyr Summer Time (Russia) */
+ {"anat", TZ, 43200}, /* Anadyr Time (Russia) */
+ {"apr", MONTH, 4},
+ {"april", MONTH, 4},
+#if 0
+ aqtst
+ aqtt
+ arst
+#endif
+ {"art", TZ, -10800}, /* Argentina Time */
+#if 0
+ ashst
+ ast /* Atlantic Standard Time, Arabia Standard
+ * Time, Acre Standard Time */
+#endif
+ {"ast", TZ, -14400}, /* Atlantic Std Time (Canada) */
+ {"at", IGNORE_DTF, 0}, /* "at" (throwaway) */
+ {"aug", MONTH, 8},
+ {"august", MONTH, 8},
+ {"awsst", DTZ, 32400}, /* W. Australia */
+ {"awst", TZ, 28800}, /* W. Australia */
+ {"awt", DTZ, -10800},
+ {"azost", DTZ, 0}, /* Azores Summer Time */
+ {"azot", TZ, -3600}, /* Azores Time */
+ {"azst", DTZ, 18000}, /* Azerbaijan Summer Time */
+ {"azt", TZ, 14400}, /* Azerbaijan Time */
+ {DB_C, ADBC, BC}, /* "bc" for years < 0 */
+ {"bdst", TZ, 7200}, /* British Double Summer Time */
+ {"bdt", TZ, 21600}, /* Dacca */
+ {"bnt", TZ, 28800}, /* Brunei Darussalam Time */
+ {"bort", TZ, 28800}, /* Borneo Time (Indonesia) */
+#if 0
+ bortst
+ bost
+#endif
+ {"bot", TZ, -14400}, /* Bolivia Time */
+ {"bra", TZ, -10800}, /* Brazil Time */
+#if 0
+ brst
+ brt
+#endif
+ {"bst", DTZ, 3600}, /* British Summer Time */
+#if 0
+ {"bst", TZ, -10800}, /* Brazil Standard Time */
+ {"bst", DTZ, -39600}, /* Bering Summer Time */
+#endif
+ {"bt", TZ, 10800}, /* Baghdad Time */
+ {"btt", TZ, 21600}, /* Bhutan Time */
+ {"cadt", DTZ, 37800}, /* Central Australian DST */
+ {"cast", TZ, 34200}, /* Central Australian ST */
+ {"cat", TZ, -36000}, /* Central Alaska Time */
+ {"cct", TZ, 28800}, /* China Coast Time */
+#if 0
+ {"cct", TZ, 23400}, /* Indian Cocos (Island) Time */
+#endif
+ {"cdt", DTZ, -18000}, /* Central Daylight Time */
+ {"cest", DTZ, 7200}, /* Central European Dayl.Time */
+ {"cet", TZ, 3600}, /* Central European Time */
+ {"cetdst", DTZ, 7200}, /* Central European Dayl.Time */
+ {"chadt", DTZ, 49500}, /* Chatham Island Daylight Time (13:45) */
+ {"chast", TZ, 45900}, /* Chatham Island Time (12:45) */
+#if 0
+ ckhst
+#endif
+ {"ckt", TZ, 43200}, /* Cook Islands Time */
+ {"clst", DTZ, -10800}, /* Chile Summer Time */
+ {"clt", TZ, -14400}, /* Chile Time */
+#if 0
+ cost
+#endif
+ {"cot", TZ, -18000}, /* Columbia Time */
+ {"cst", TZ, -21600}, /* Central Standard Time */
+#if 0
+ cvst
+#endif
+ {"cvt", TZ, 25200}, /* Christmas Island Time (Indian Ocean) */
+ {"cxt", TZ, 25200}, /* Christmas Island Time (Indian Ocean) */
+ {"d", UNITS, DTK_DAY}, /* "day of month" for ISO input */
+ {"davt", TZ, 25200}, /* Davis Time (Antarctica) */
+ {"ddut", TZ, 36000}, /* Dumont-d'Urville Time (Antarctica) */
+ {"dec", MONTH, 12},
+ {"december", MONTH, 12},
+ {"dnt", TZ, 3600}, /* Dansk Normal Tid */
+ {"dow", UNITS, DTK_DOW}, /* day of week */
+ {"doy", UNITS, DTK_DOY}, /* day of year */
+ {"dst", DTZMOD, SECS_PER_HOUR},
+#if 0
+ {"dusst", DTZ, 21600}, /* Dushanbe Summer Time */
+#endif
+ {"easst", DTZ, -18000}, /* Easter Island Summer Time */
+ {"east", TZ, -21600}, /* Easter Island Time */
+ {"eat", TZ, 10800}, /* East Africa Time */
+#if 0
+ {"east", DTZ, 14400}, /* Indian Antananarivo Savings Time */
+ {"eat", TZ, 10800}, /* Indian Antananarivo Time */
+ {"ect", TZ, -14400}, /* Eastern Caribbean Time */
+ {"ect", TZ, -18000}, /* Ecuador Time */
+#endif
+ {"edt", DTZ, -14400}, /* Eastern Daylight Time */
+ {"eest", DTZ, 10800}, /* Eastern Europe Summer Time */
+ {"eet", TZ, 7200}, /* East. Europe, USSR Zone 1 */
+ {"eetdst", DTZ, 10800}, /* Eastern Europe Daylight Time */
+ {"egst", DTZ, 0}, /* East Greenland Summer Time */
+ {"egt", TZ, -3600}, /* East Greenland Time */
+#if 0
+ ehdt
+#endif
+ {EPOCH, RESERV, DTK_EPOCH}, /* "epoch" reserved for system epoch time */
+ {"est", TZ, -18000}, /* Eastern Standard Time */
+ {"feb", MONTH, 2},
+ {"february", MONTH, 2},
+ {"fjst", DTZ, -46800}, /* Fiji Summer Time (13 hour offset!) */
+ {"fjt", TZ, -43200}, /* Fiji Time */
+ {"fkst", DTZ, -10800}, /* Falkland Islands Summer Time */
+ {"fkt", TZ, -7200}, /* Falkland Islands Time */
+#if 0
+ fnst
+ fnt
+#endif
+ {"fri", DOW, 5},
+ {"friday", DOW, 5},
+ {"fst", TZ, 3600}, /* French Summer Time */
+ {"fwt", DTZ, 7200}, /* French Winter Time */
+ {"galt", TZ, -21600}, /* Galapagos Time */
+ {"gamt", TZ, -32400}, /* Gambier Time */
+ {"gest", DTZ, 18000}, /* Georgia Summer Time */
+ {"get", TZ, 14400}, /* Georgia Time */
+ {"gft", TZ, -10800}, /* French Guiana Time */
+#if 0
+ ghst
+#endif
+ {"gilt", TZ, 43200}, /* Gilbert Islands Time */
+ {"gmt", TZ, 0}, /* Greenwich Mean Time */
+ {"gst", TZ, 36000}, /* Guam Std Time, USSR Zone 9 */
+ {"gyt", TZ, -14400}, /* Guyana Time */
+ {"h", UNITS, DTK_HOUR}, /* "hour" */
+#if 0
+ hadt
+ hast
+#endif
+ {"hdt", DTZ, -32400}, /* Hawaii/Alaska Daylight Time */
+#if 0
+ hkst
+#endif
+ {"hkt", TZ, 28800}, /* Hong Kong Time */
+#if 0
+ {"hmt", TZ, 10800}, /* Hellas ? ? */
+ hovst
+ hovt
+#endif
+ {"hst", TZ, -36000}, /* Hawaii Std Time */
+#if 0
+ hwt
+#endif
+ {"ict", TZ, 25200}, /* Indochina Time */
+ {"idle", TZ, 43200}, /* Intl. Date Line, East */
+ {"idlw", TZ, -43200}, /* Intl. Date Line, West */
+#if 0
+ idt /* Israeli, Iran, Indian Daylight Time */
+#endif
+ {LATE, RESERV, DTK_LATE}, /* "infinity" reserved for "late time" */
+ {"iot", TZ, 18000}, /* Indian Chagos Time */
+ {"irkst", DTZ, 32400}, /* Irkutsk Summer Time */
+ {"irkt", TZ, 28800}, /* Irkutsk Time */
+ {"irt", TZ, 12600}, /* Iran Time */
+ {"isodow", UNITS, DTK_ISODOW}, /* ISO day of week, Sunday == 7 */
+#if 0
+ isst
+#endif
+ {"ist", TZ, 7200}, /* Israel */
+ {"it", TZ, 12600}, /* Iran Time */
+ {"j", UNITS, DTK_JULIAN},
+ {"jan", MONTH, 1},
+ {"january", MONTH, 1},
+ {"javt", TZ, 25200}, /* Java Time (07:00? see JT) */
+ {"jayt", TZ, 32400}, /* Jayapura Time (Indonesia) */
+ {"jd", UNITS, DTK_JULIAN},
+ {"jst", TZ, 32400}, /* Japan Std Time,USSR Zone 8 */
+ {"jt", TZ, 27000}, /* Java Time (07:30? see JAVT) */
+ {"jul", MONTH, 7},
+ {"julian", UNITS, DTK_JULIAN},
+ {"july", MONTH, 7},
+ {"jun", MONTH, 6},
+ {"june", MONTH, 6},
+ {"kdt", DTZ, 36000}, /* Korea Daylight Time */
+ {"kgst", DTZ, 21600}, /* Kyrgyzstan Summer Time */
+ {"kgt", TZ, 18000}, /* Kyrgyzstan Time */
+ {"kost", TZ, 43200}, /* Kosrae Time */
+ {"krast", DTZ, 25200}, /* Krasnoyarsk Summer Time */
+ {"krat", TZ, 28800}, /* Krasnoyarsk Standard Time */
+ {"kst", TZ, 32400}, /* Korea Standard Time */
+ {"lhdt", DTZ, 39600}, /* Lord Howe Daylight Time, Australia */
+ {"lhst", TZ, 37800}, /* Lord Howe Standard Time, Australia */
+ {"ligt", TZ, 36000}, /* From Melbourne, Australia */
+ {"lint", TZ, 50400}, /* Line Islands Time (Kiribati; +14 hours!) */
+ {"lkt", TZ, 21600}, /* Lanka Time */
+ {"m", UNITS, DTK_MONTH}, /* "month" for ISO input */
+ {"magst", DTZ, 43200}, /* Magadan Summer Time */
+ {"magt", TZ, 39600}, /* Magadan Time */
+ {"mar", MONTH, 3},
+ {"march", MONTH, 3},
+ {"mart", TZ, -34200}, /* Marquesas Time */
+ {"mawt", TZ, 21600}, /* Mawson, Antarctica */
+ {"may", MONTH, 5},
+ {"mdt", DTZ, -21600}, /* Mountain Daylight Time */
+ {"mest", DTZ, 7200}, /* Middle Europe Summer Time */
+ {"met", TZ, 3600}, /* Middle Europe Time */
+ {"metdst", DTZ, 7200}, /* Middle Europe Daylight Time */
+ {"mewt", TZ, 3600}, /* Middle Europe Winter Time */
+ {"mez", TZ, 3600}, /* Middle Europe Zone */
+ {"mht", TZ, 43200}, /* Kwajalein */
+ {"mm", UNITS, DTK_MINUTE}, /* "minute" for ISO input */
+ {"mmt", TZ, 23400}, /* Myannar Time */
+ {"mon", DOW, 1},
+ {"monday", DOW, 1},
+#if 0
+ most
+#endif
+ {"mpt", TZ, 36000}, /* North Mariana Islands Time */
+ {"msd", DTZ, 14400}, /* Moscow Summer Time */
+ {"msk", TZ, 10800}, /* Moscow Time */
+ {"mst", TZ, -25200}, /* Mountain Standard Time */
+ {"mt", TZ, 30600}, /* Moluccas Time */
+ {"mut", TZ, 14400}, /* Mauritius Island Time */
+ {"mvt", TZ, 18000}, /* Maldives Island Time */
+ {"myt", TZ, 28800}, /* Malaysia Time */
+#if 0
+ ncst
+#endif
+ {"nct", TZ, 39600}, /* New Caledonia Time */
+ {"ndt", DTZ, -9000}, /* Nfld. Daylight Time */
+ {"nft", TZ, -12600}, /* Newfoundland Standard Time */
+ {"nor", TZ, 3600}, /* Norway Standard Time */
+ {"nov", MONTH, 11},
+ {"november", MONTH, 11},
+ {"novst", DTZ, 25200}, /* Novosibirsk Summer Time */
+ {"novt", TZ, 21600}, /* Novosibirsk Standard Time */
+ {NOW, RESERV, DTK_NOW}, /* current transaction time */
+ {"npt", TZ, 20700}, /* Nepal Standard Time (GMT-5:45) */
+ {"nst", TZ, -12600}, /* Nfld. Standard Time */
+ {"nt", TZ, -39600}, /* Nome Time */
+ {"nut", TZ, -39600}, /* Niue Time */
+ {"nzdt", DTZ, 46800}, /* New Zealand Daylight Time */
+ {"nzst", TZ, 43200}, /* New Zealand Standard Time */
+ {"nzt", TZ, 43200}, /* New Zealand Time */
+ {"oct", MONTH, 10},
+ {"october", MONTH, 10},
+ {"omsst", DTZ, 25200}, /* Omsk Summer Time */
+ {"omst", TZ, 21600}, /* Omsk Time */
+ {"on", IGNORE_DTF, 0}, /* "on" (throwaway) */
+ {"pdt", DTZ, -25200}, /* Pacific Daylight Time */
+#if 0
+ pest
+#endif
+ {"pet", TZ, -18000}, /* Peru Time */
+ {"petst", DTZ, 46800}, /* Petropavlovsk-Kamchatski Summer Time */
+ {"pett", TZ, 43200}, /* Petropavlovsk-Kamchatski Time */
+ {"pgt", TZ, 36000}, /* Papua New Guinea Time */
+ {"phot", TZ, 46800}, /* Phoenix Islands (Kiribati) Time */
+#if 0
+ phst
+#endif
+ {"pht", TZ, 28800}, /* Philippine Time */
+ {"pkt", TZ, 18000}, /* Pakistan Time */
+ {"pm", AMPM, PM},
+ {"pmdt", DTZ, -7200}, /* Pierre & Miquelon Daylight Time */
+#if 0
+ pmst
+#endif
+ {"pont", TZ, 39600}, /* Ponape Time (Micronesia) */
+ {"pst", TZ, -28800}, /* Pacific Standard Time */
+ {"pwt", TZ, 32400}, /* Palau Time */
+ {"pyst", DTZ, -10800}, /* Paraguay Summer Time */
+ {"pyt", TZ, -14400}, /* Paraguay Time */
+ {"ret", DTZ, 14400}, /* Reunion Island Time */
+ {"s", UNITS, DTK_SECOND}, /* "seconds" for ISO input */
+ {"sadt", DTZ, 37800}, /* S. Australian Dayl. Time */
+#if 0
+ samst
+ samt
+#endif
+ {"sast", TZ, 34200}, /* South Australian Std Time */
+ {"sat", DOW, 6},
+ {"saturday", DOW, 6},
+#if 0
+ sbt
+#endif
+ {"sct", DTZ, 14400}, /* Mahe Island Time */
+ {"sep", MONTH, 9},
+ {"sept", MONTH, 9},
+ {"september", MONTH, 9},
+ {"set", TZ, -3600}, /* Seychelles Time ?? */
+#if 0
+ sgt
+#endif
+ {"sst", DTZ, 7200}, /* Swedish Summer Time */
+ {"sun", DOW, 0},
+ {"sunday", DOW, 0},
+ {"swt", TZ, 3600}, /* Swedish Winter Time */
+#if 0
+ syot
+#endif
+ {"t", ISOTIME, DTK_TIME}, /* Filler for ISO time fields */
+ {"tft", TZ, 18000}, /* Kerguelen Time */
+ {"that", TZ, -36000}, /* Tahiti Time */
+ {"thu", DOW, 4},
+ {"thur", DOW, 4},
+ {"thurs", DOW, 4},
+ {"thursday", DOW, 4},
+ {"tjt", TZ, 18000}, /* Tajikistan Time */
+ {"tkt", TZ, -36000}, /* Tokelau Time */
+ {"tmt", TZ, 18000}, /* Turkmenistan Time */
+ {TODAY, RESERV, DTK_TODAY}, /* midnight */
+ {TOMORROW, RESERV, DTK_TOMORROW}, /* tomorrow midnight */
+#if 0
+ tost
+#endif
+ {"tot", TZ, 46800}, /* Tonga Time */
+#if 0
+ tpt
+#endif
+ {"truk", TZ, 36000}, /* Truk Time */
+ {"tue", DOW, 2},
+ {"tues", DOW, 2},
+ {"tuesday", DOW, 2},
+ {"tvt", TZ, 43200}, /* Tuvalu Time */
+#if 0
+ uct
+#endif
+ {"ulast", DTZ, 32400}, /* Ulan Bator Summer Time */
+ {"ulat", TZ, 28800}, /* Ulan Bator Time */
+ {"ut", TZ, 0},
+ {"utc", TZ, 0},
+ {"uyst", DTZ, -7200}, /* Uruguay Summer Time */
+ {"uyt", TZ, -10800}, /* Uruguay Time */
+ {"uzst", DTZ, 21600}, /* Uzbekistan Summer Time */
+ {"uzt", TZ, 18000}, /* Uzbekistan Time */
+ {"vet", TZ, -14400}, /* Venezuela Time */
+ {"vlast", DTZ, 39600}, /* Vladivostok Summer Time */
+ {"vlat", TZ, 36000}, /* Vladivostok Time */
+#if 0
+ vust
+#endif
+ {"vut", TZ, 39600}, /* Vanuata Time */
+ {"wadt", DTZ, 28800}, /* West Australian DST */
+ {"wakt", TZ, 43200}, /* Wake Time */
+#if 0
+ warst
+#endif
+ {"wast", TZ, 25200}, /* West Australian Std Time */
+ {"wat", TZ, -3600}, /* West Africa Time */
+ {"wdt", DTZ, 32400}, /* West Australian DST */
+ {"wed", DOW, 3},
+ {"wednesday", DOW, 3},
+ {"weds", DOW, 3},
+ {"west", DTZ, 3600}, /* Western Europe Summer Time */
+ {"wet", TZ, 0}, /* Western Europe */
+ {"wetdst", DTZ, 3600}, /* Western Europe Daylight Savings Time */
+ {"wft", TZ, 43200}, /* Wallis and Futuna Time */
+ {"wgst", DTZ, -7200}, /* West Greenland Summer Time */
+ {"wgt", TZ, -10800}, /* West Greenland Time */
+ {"wst", TZ, 28800}, /* West Australian Standard Time */
+ {"y", UNITS, DTK_YEAR}, /* "year" for ISO input */
+ {"yakst", DTZ, 36000}, /* Yakutsk Summer Time */
+ {"yakt", TZ, 32400}, /* Yakutsk Time */
+ {"yapt", TZ, 36000}, /* Yap Time (Micronesia) */
+ {"ydt", DTZ, -28800}, /* Yukon Daylight Time */
+ {"yekst", DTZ, 21600}, /* Yekaterinburg Summer Time */
+ {"yekt", TZ, 18000}, /* Yekaterinburg Time */
+ {YESTERDAY, RESERV, DTK_YESTERDAY}, /* yesterday midnight */
+ {"yst", TZ, -32400}, /* Yukon Standard Time */
+ {"z", TZ, 0}, /* time zone tag per ISO-8601 */
+ {"zp4", TZ, -14400}, /* UTC +4 hours. */
+ {"zp5", TZ, -18000}, /* UTC +5 hours. */
+ {"zp6", TZ, -21600}, /* UTC +6 hours. */
+ {ZULU, TZ, 0}, /* UTC */
+};
+
+static const datetkn deltatktbl[] = {
+ /* text, token, lexval */
+ {"@", IGNORE_DTF, 0}, /* postgres relative prefix */
+ {DAGO, AGO, 0}, /* "ago" indicates negative time offset */
+ {"c", UNITS, DTK_CENTURY}, /* "century" relative */
+ {"cent", UNITS, DTK_CENTURY}, /* "century" relative */
+ {"centuries", UNITS, DTK_CENTURY}, /* "centuries" relative */
+ {DCENTURY, UNITS, DTK_CENTURY}, /* "century" relative */
+ {"d", UNITS, DTK_DAY}, /* "day" relative */
+ {DDAY, UNITS, DTK_DAY}, /* "day" relative */
+ {"days", UNITS, DTK_DAY}, /* "days" relative */
+ {"dec", UNITS, DTK_DECADE}, /* "decade" relative */
+ {DDECADE, UNITS, DTK_DECADE}, /* "decade" relative */
+ {"decades", UNITS, DTK_DECADE}, /* "decades" relative */
+ {"decs", UNITS, DTK_DECADE}, /* "decades" relative */
+ {"h", UNITS, DTK_HOUR}, /* "hour" relative */
+ {DHOUR, UNITS, DTK_HOUR}, /* "hour" relative */
+ {"hours", UNITS, DTK_HOUR}, /* "hours" relative */
+ {"hr", UNITS, DTK_HOUR}, /* "hour" relative */
+ {"hrs", UNITS, DTK_HOUR}, /* "hours" relative */
+ {"m", UNITS, DTK_MINUTE}, /* "minute" relative */
+ {"microsecon", UNITS, DTK_MICROSEC}, /* "microsecond" relative */
+ {"mil", UNITS, DTK_MILLENNIUM}, /* "millennium" relative */
+ {"millennia", UNITS, DTK_MILLENNIUM}, /* "millennia" relative */
+ {DMILLENNIUM, UNITS, DTK_MILLENNIUM}, /* "millennium" relative */
+ {"millisecon", UNITS, DTK_MILLISEC}, /* relative */
+ {"mils", UNITS, DTK_MILLENNIUM}, /* "millennia" relative */
+ {"min", UNITS, DTK_MINUTE}, /* "minute" relative */
+ {"mins", UNITS, DTK_MINUTE}, /* "minutes" relative */
+ {DMINUTE, UNITS, DTK_MINUTE}, /* "minute" relative */
+ {"minutes", UNITS, DTK_MINUTE}, /* "minutes" relative */
+ {"mon", UNITS, DTK_MONTH}, /* "months" relative */
+ {"mons", UNITS, DTK_MONTH}, /* "months" relative */
+ {DMONTH, UNITS, DTK_MONTH}, /* "month" relative */
+ {"months", UNITS, DTK_MONTH},
+ {"ms", UNITS, DTK_MILLISEC},
+ {"msec", UNITS, DTK_MILLISEC},
+ {DMILLISEC, UNITS, DTK_MILLISEC},
+ {"mseconds", UNITS, DTK_MILLISEC},
+ {"msecs", UNITS, DTK_MILLISEC},
+ {"qtr", UNITS, DTK_QUARTER}, /* "quarter" relative */
+ {DQUARTER, UNITS, DTK_QUARTER}, /* "quarter" relative */
+ {"s", UNITS, DTK_SECOND},
+ {"sec", UNITS, DTK_SECOND},
+ {DSECOND, UNITS, DTK_SECOND},
+ {"seconds", UNITS, DTK_SECOND},
+ {"secs", UNITS, DTK_SECOND},
+ {DTIMEZONE, UNITS, DTK_TZ}, /* "timezone" time offset */
+ {"timezone_h", UNITS, DTK_TZ_HOUR}, /* timezone hour units */
+ {"timezone_m", UNITS, DTK_TZ_MINUTE}, /* timezone minutes units */
+ {"us", UNITS, DTK_MICROSEC}, /* "microsecond" relative */
+ {"usec", UNITS, DTK_MICROSEC}, /* "microsecond" relative */
+ {DMICROSEC, UNITS, DTK_MICROSEC}, /* "microsecond" relative */
+ {"useconds", UNITS, DTK_MICROSEC}, /* "microseconds" relative */
+ {"usecs", UNITS, DTK_MICROSEC}, /* "microseconds" relative */
+ {"w", UNITS, DTK_WEEK}, /* "week" relative */
+ {DWEEK, UNITS, DTK_WEEK}, /* "week" relative */
+ {"weeks", UNITS, DTK_WEEK}, /* "weeks" relative */
+ {"y", UNITS, DTK_YEAR}, /* "year" relative */
+ {DYEAR, UNITS, DTK_YEAR}, /* "year" relative */
+ {"years", UNITS, DTK_YEAR}, /* "years" relative */
+ {"yr", UNITS, DTK_YEAR}, /* "year" relative */
+ {"yrs", UNITS, DTK_YEAR}, /* "years" relative */
+};
+
+static const unsigned int szdatetktbl = lengthof(datetktbl);
+static const unsigned int szdeltatktbl = lengthof(deltatktbl);
+
+static const datetkn *datecache[MAXDATEFIELDS] = {NULL};
+
+static const datetkn *deltacache[MAXDATEFIELDS] = {NULL};
+
+char *months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", NULL};
+
+char *days[] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", NULL};
+
+char *pgtypes_date_weekdays_short[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", NULL};
+
+char *pgtypes_date_months[] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", NULL};
+
+static const datetkn *
+datebsearch(const char *key, const datetkn *base, unsigned int nel)
+{
+ if (nel > 0)
+ {
+ const datetkn *last = base + nel - 1,
+ *position;
+ int result;
+
+ while (last >= base)
+ {
+ position = base + ((last - base) >> 1);
+ /* precheck the first character for a bit of extra speed */
+ result = (int) key[0] - (int) position->token[0];
+ if (result == 0)
+ {
+ /* use strncmp so that we match truncated tokens */
+ result = strncmp(key, position->token, TOKMAXLEN);
+ if (result == 0)
+ return position;
+ }
+ if (result < 0)
+ last = position - 1;
+ else
+ base = position + 1;
+ }
+ }
+ return NULL;
+}
+
+/* DecodeUnits()
+ * Decode text string using lookup table.
+ * This routine supports time interval decoding.
+ */
+int
+DecodeUnits(int field, char *lowtoken, int *val)
+{
+ int type;
+ const datetkn *tp;
+
+ /* use strncmp so that we match truncated tokens */
+ if (deltacache[field] != NULL &&
+ strncmp(lowtoken, deltacache[field]->token, TOKMAXLEN) == 0)
+ tp = deltacache[field];
+ else
+ tp = datebsearch(lowtoken, deltatktbl, szdeltatktbl);
+ deltacache[field] = tp;
+ if (tp == NULL)
+ {
+ type = UNKNOWN_FIELD;
+ *val = 0;
+ }
+ else
+ {
+ type = tp->type;
+ *val = tp->value;
+ }
+
+ return type;
+} /* DecodeUnits() */
+
+/*
+ * Calendar time to Julian date conversions.
+ * Julian date is commonly used in astronomical applications,
+ * since it is numerically accurate and computationally simple.
+ * The algorithms here will accurately convert between Julian day
+ * and calendar date for all non-negative Julian days
+ * (i.e. from Nov 24, -4713 on).
+ *
+ * These routines will be used by other date/time packages
+ * - thomas 97/02/25
+ *
+ * Rewritten to eliminate overflow problems. This now allows the
+ * routines to work correctly for all Julian day counts from
+ * 0 to 2147483647 (Nov 24, -4713 to Jun 3, 5874898) assuming
+ * a 32-bit integer. Longer types should also work to the limits
+ * of their precision.
+ */
+
+int
+date2j(int y, int m, int d)
+{
+ int julian;
+ int century;
+
+ if (m > 2)
+ {
+ m += 1;
+ y += 4800;
+ }
+ else
+ {
+ m += 13;
+ y += 4799;
+ }
+
+ century = y / 100;
+ julian = y * 365 - 32167;
+ julian += y / 4 - century + century / 4;
+ julian += 7834 * m / 256 + d;
+
+ return julian;
+} /* date2j() */
+
+void
+j2date(int jd, int *year, int *month, int *day)
+{
+ unsigned int julian;
+ unsigned int quad;
+ unsigned int extra;
+ int y;
+
+ julian = jd;
+ julian += 32044;
+ quad = julian / 146097;
+ extra = (julian - quad * 146097) * 4 + 3;
+ julian += 60 + quad * 3 + extra / 146097;
+ quad = julian / 1461;
+ julian -= quad * 1461;
+ y = julian * 4 / 1461;
+ julian = ((y != 0) ? (julian + 305) % 365 : (julian + 306) % 366) + 123;
+ y += quad * 4;
+ *year = y - 4800;
+ quad = julian * 2141 / 65536;
+ *day = julian - 7834 * quad / 256;
+ *month = (quad + 10) % 12 + 1;
+} /* j2date() */
+
+/* DecodeSpecial()
+ * Decode text string using lookup table.
+ * Implement a cache lookup since it is likely that dates
+ * will be related in format.
+ */
+static int
+DecodeSpecial(int field, char *lowtoken, int *val)
+{
+ int type;
+ const datetkn *tp;
+
+ /* use strncmp so that we match truncated tokens */
+ if (datecache[field] != NULL &&
+ strncmp(lowtoken, datecache[field]->token, TOKMAXLEN) == 0)
+ tp = datecache[field];
+ else
+ {
+ tp = NULL;
+ if (!tp)
+ tp = datebsearch(lowtoken, datetktbl, szdatetktbl);
+ }
+ datecache[field] = tp;
+ if (tp == NULL)
+ {
+ type = UNKNOWN_FIELD;
+ *val = 0;
+ }
+ else
+ {
+ type = tp->type;
+ *val = tp->value;
+ }
+
+ return type;
+} /* DecodeSpecial() */
+
+/* EncodeDateOnly()
+ * Encode date as local time.
+ */
+void
+EncodeDateOnly(struct tm *tm, int style, char *str, bool EuroDates)
+{
+ Assert(tm->tm_mon >= 1 && tm->tm_mon <= MONTHS_PER_YEAR);
+
+ switch (style)
+ {
+ case USE_ISO_DATES:
+ /* compatible with ISO date formats */
+ if (tm->tm_year > 0)
+ sprintf(str, "%04d-%02d-%02d",
+ tm->tm_year, tm->tm_mon, tm->tm_mday);
+ else
+ sprintf(str, "%04d-%02d-%02d %s",
+ -(tm->tm_year - 1), tm->tm_mon, tm->tm_mday, "BC");
+ break;
+
+ case USE_SQL_DATES:
+ /* compatible with Oracle/Ingres date formats */
+ if (EuroDates)
+ sprintf(str, "%02d/%02d", tm->tm_mday, tm->tm_mon);
+ else
+ sprintf(str, "%02d/%02d", tm->tm_mon, tm->tm_mday);
+ if (tm->tm_year > 0)
+ sprintf(str + 5, "/%04d", tm->tm_year);
+ else
+ sprintf(str + 5, "/%04d %s", -(tm->tm_year - 1), "BC");
+ break;
+
+ case USE_GERMAN_DATES:
+ /* German-style date format */
+ sprintf(str, "%02d.%02d", tm->tm_mday, tm->tm_mon);
+ if (tm->tm_year > 0)
+ sprintf(str + 5, ".%04d", tm->tm_year);
+ else
+ sprintf(str + 5, ".%04d %s", -(tm->tm_year - 1), "BC");
+ break;
+
+ case USE_POSTGRES_DATES:
+ default:
+ /* traditional date-only style for Postgres */
+ if (EuroDates)
+ sprintf(str, "%02d-%02d", tm->tm_mday, tm->tm_mon);
+ else
+ sprintf(str, "%02d-%02d", tm->tm_mon, tm->tm_mday);
+ if (tm->tm_year > 0)
+ sprintf(str + 5, "-%04d", tm->tm_year);
+ else
+ sprintf(str + 5, "-%04d %s", -(tm->tm_year - 1), "BC");
+ break;
+ }
+}
+
+void
+TrimTrailingZeros(char *str)
+{
+ int len = strlen(str);
+
+ /* chop off trailing zeros... but leave at least 2 fractional digits */
+ while (*(str + len - 1) == '0' && *(str + len - 3) != '.')
+ {
+ len--;
+ *(str + len) = '\0';
+ }
+}
+
+/* EncodeDateTime()
+ * Encode date and time interpreted as local time.
+ *
+ * tm and fsec are the value to encode, print_tz determines whether to include
+ * a time zone (the difference between timestamp and timestamptz types), tz is
+ * the numeric time zone offset, tzn is the textual time zone, which if
+ * specified will be used instead of tz by some styles, style is the date
+ * style, str is where to write the output.
+ *
+ * Supported date styles:
+ * Postgres - day mon hh:mm:ss yyyy tz
+ * SQL - mm/dd/yyyy hh:mm:ss.ss tz
+ * ISO - yyyy-mm-dd hh:mm:ss+/-tz
+ * German - dd.mm.yyyy hh:mm:ss tz
+ * Variants (affects order of month and day for Postgres and SQL styles):
+ * US - mm/dd/yyyy
+ * European - dd/mm/yyyy
+ */
+void
+EncodeDateTime(struct tm *tm, fsec_t fsec, bool print_tz, int tz, const char *tzn, int style, char *str, bool EuroDates)
+{
+ int day,
+ hour,
+ min;
+
+ /*
+ * Negative tm_isdst means we have no valid time zone translation.
+ */
+ if (tm->tm_isdst < 0)
+ print_tz = false;
+
+ switch (style)
+ {
+ case USE_ISO_DATES:
+ /* Compatible with ISO-8601 date formats */
+
+ sprintf(str, "%04d-%02d-%02d %02d:%02d",
+ (tm->tm_year > 0) ? tm->tm_year : -(tm->tm_year - 1),
+ tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min);
+
+ /*
+ * Print fractional seconds if any. The field widths here should
+ * be at least equal to MAX_TIMESTAMP_PRECISION.
+ */
+ if (fsec != 0)
+ {
+ sprintf(str + strlen(str), ":%02d.%06d", tm->tm_sec, fsec);
+ TrimTrailingZeros(str);
+ }
+ else
+ sprintf(str + strlen(str), ":%02d", tm->tm_sec);
+
+ if (tm->tm_year <= 0)
+ sprintf(str + strlen(str), " BC");
+
+ if (print_tz)
+ {
+ hour = -(tz / SECS_PER_HOUR);
+ min = (abs(tz) / MINS_PER_HOUR) % MINS_PER_HOUR;
+ if (min != 0)
+ sprintf(str + strlen(str), "%+03d:%02d", hour, min);
+ else
+ sprintf(str + strlen(str), "%+03d", hour);
+ }
+ break;
+
+ case USE_SQL_DATES:
+ /* Compatible with Oracle/Ingres date formats */
+
+ if (EuroDates)
+ sprintf(str, "%02d/%02d", tm->tm_mday, tm->tm_mon);
+ else
+ sprintf(str, "%02d/%02d", tm->tm_mon, tm->tm_mday);
+
+ sprintf(str + 5, "/%04d %02d:%02d",
+ (tm->tm_year > 0) ? tm->tm_year : -(tm->tm_year - 1),
+ tm->tm_hour, tm->tm_min);
+
+ /*
+ * Print fractional seconds if any. The field widths here should
+ * be at least equal to MAX_TIMESTAMP_PRECISION.
+ */
+ if (fsec != 0)
+ {
+ sprintf(str + strlen(str), ":%02d.%06d", tm->tm_sec, fsec);
+ TrimTrailingZeros(str);
+ }
+ else
+ sprintf(str + strlen(str), ":%02d", tm->tm_sec);
+
+ if (tm->tm_year <= 0)
+ sprintf(str + strlen(str), " BC");
+
+ /*
+ * Note: the uses of %.*s in this function would be risky if the
+ * timezone names ever contain non-ASCII characters, since we are
+ * not being careful to do encoding-aware clipping. However, all
+ * TZ abbreviations in the IANA database are plain ASCII.
+ */
+
+ if (print_tz)
+ {
+ if (tzn)
+ sprintf(str + strlen(str), " %.*s", MAXTZLEN, tzn);
+ else
+ {
+ hour = -(tz / SECS_PER_HOUR);
+ min = (abs(tz) / MINS_PER_HOUR) % MINS_PER_HOUR;
+ if (min != 0)
+ sprintf(str + strlen(str), "%+03d:%02d", hour, min);
+ else
+ sprintf(str + strlen(str), "%+03d", hour);
+ }
+ }
+ break;
+
+ case USE_GERMAN_DATES:
+ /* German variant on European style */
+
+ sprintf(str, "%02d.%02d", tm->tm_mday, tm->tm_mon);
+
+ sprintf(str + 5, ".%04d %02d:%02d",
+ (tm->tm_year > 0) ? tm->tm_year : -(tm->tm_year - 1),
+ tm->tm_hour, tm->tm_min);
+
+ /*
+ * Print fractional seconds if any. The field widths here should
+ * be at least equal to MAX_TIMESTAMP_PRECISION.
+ */
+ if (fsec != 0)
+ {
+ sprintf(str + strlen(str), ":%02d.%06d", tm->tm_sec, fsec);
+ TrimTrailingZeros(str);
+ }
+ else
+ sprintf(str + strlen(str), ":%02d", tm->tm_sec);
+
+ if (tm->tm_year <= 0)
+ sprintf(str + strlen(str), " BC");
+
+ if (print_tz)
+ {
+ if (tzn)
+ sprintf(str + strlen(str), " %.*s", MAXTZLEN, tzn);
+ else
+ {
+ hour = -(tz / SECS_PER_HOUR);
+ min = (abs(tz) / MINS_PER_HOUR) % MINS_PER_HOUR;
+ if (min != 0)
+ sprintf(str + strlen(str), "%+03d:%02d", hour, min);
+ else
+ sprintf(str + strlen(str), "%+03d", hour);
+ }
+ }
+ break;
+
+ case USE_POSTGRES_DATES:
+ default:
+ /* Backward-compatible with traditional Postgres abstime dates */
+
+ day = date2j(tm->tm_year, tm->tm_mon, tm->tm_mday);
+ tm->tm_wday = (int) ((day + date2j(2000, 1, 1) + 1) % 7);
+
+ memcpy(str, days[tm->tm_wday], 3);
+ strcpy(str + 3, " ");
+
+ if (EuroDates)
+ sprintf(str + 4, "%02d %3s", tm->tm_mday, months[tm->tm_mon - 1]);
+ else
+ sprintf(str + 4, "%3s %02d", months[tm->tm_mon - 1], tm->tm_mday);
+
+ sprintf(str + 10, " %02d:%02d", tm->tm_hour, tm->tm_min);
+
+ /*
+ * Print fractional seconds if any. The field widths here should
+ * be at least equal to MAX_TIMESTAMP_PRECISION.
+ */
+ if (fsec != 0)
+ {
+ sprintf(str + strlen(str), ":%02d.%06d", tm->tm_sec, fsec);
+ TrimTrailingZeros(str);
+ }
+ else
+ sprintf(str + strlen(str), ":%02d", tm->tm_sec);
+
+ sprintf(str + strlen(str), " %04d",
+ (tm->tm_year > 0) ? tm->tm_year : -(tm->tm_year - 1));
+ if (tm->tm_year <= 0)
+ sprintf(str + strlen(str), " BC");
+
+ if (print_tz)
+ {
+ if (tzn)
+ sprintf(str + strlen(str), " %.*s", MAXTZLEN, tzn);
+ else
+ {
+ /*
+ * We have a time zone, but no string version. Use the
+ * numeric form, but be sure to include a leading space to
+ * avoid formatting something which would be rejected by
+ * the date/time parser later. - thomas 2001-10-19
+ */
+ hour = -(tz / SECS_PER_HOUR);
+ min = (abs(tz) / MINS_PER_HOUR) % MINS_PER_HOUR;
+ if (min != 0)
+ sprintf(str + strlen(str), " %+03d:%02d", hour, min);
+ else
+ sprintf(str + strlen(str), " %+03d", hour);
+ }
+ }
+ break;
+ }
+}
+
+int
+GetEpochTime(struct tm *tm)
+{
+ struct tm *t0;
+ time_t epoch = 0;
+
+ t0 = gmtime(&epoch);
+
+ if (t0)
+ {
+ tm->tm_year = t0->tm_year + 1900;
+ tm->tm_mon = t0->tm_mon + 1;
+ tm->tm_mday = t0->tm_mday;
+ tm->tm_hour = t0->tm_hour;
+ tm->tm_min = t0->tm_min;
+ tm->tm_sec = t0->tm_sec;
+
+ return 0;
+ }
+
+ return -1;
+} /* GetEpochTime() */
+
+static void
+abstime2tm(AbsoluteTime _time, int *tzp, struct tm *tm, char **tzn)
+{
+ time_t time = (time_t) _time;
+ struct tm *tx;
+
+ errno = 0;
+ if (tzp != NULL)
+ tx = localtime((time_t *) &time);
+ else
+ tx = gmtime((time_t *) &time);
+
+ if (!tx)
+ {
+ errno = PGTYPES_TS_BAD_TIMESTAMP;
+ return;
+ }
+
+ tm->tm_year = tx->tm_year + 1900;
+ tm->tm_mon = tx->tm_mon + 1;
+ tm->tm_mday = tx->tm_mday;
+ tm->tm_hour = tx->tm_hour;
+ tm->tm_min = tx->tm_min;
+ tm->tm_sec = tx->tm_sec;
+ tm->tm_isdst = tx->tm_isdst;
+
+#if defined(HAVE_STRUCT_TM_TM_ZONE)
+ tm->tm_gmtoff = tx->tm_gmtoff;
+ tm->tm_zone = tx->tm_zone;
+
+ if (tzp != NULL)
+ {
+ /*
+ * We have a brute force time zone per SQL99? Then use it without
+ * change since we have already rotated to the time zone.
+ */
+ *tzp = -tm->tm_gmtoff; /* tm_gmtoff is Sun/DEC-ism */
+
+ /*
+ * FreeBSD man pages indicate that this should work - tgl 97/04/23
+ */
+ if (tzn != NULL)
+ {
+ /*
+ * Copy no more than MAXTZLEN bytes of timezone to tzn, in case it
+ * contains an error message, which doesn't fit in the buffer
+ */
+ strlcpy(*tzn, tm->tm_zone, MAXTZLEN + 1);
+ if (strlen(tm->tm_zone) > MAXTZLEN)
+ tm->tm_isdst = -1;
+ }
+ }
+ else
+ tm->tm_isdst = -1;
+#elif defined(HAVE_INT_TIMEZONE)
+ if (tzp != NULL)
+ {
+ *tzp = (tm->tm_isdst > 0) ? TIMEZONE_GLOBAL - SECS_PER_HOUR : TIMEZONE_GLOBAL;
+
+ if (tzn != NULL)
+ {
+ /*
+ * Copy no more than MAXTZLEN bytes of timezone to tzn, in case it
+ * contains an error message, which doesn't fit in the buffer
+ */
+ strlcpy(*tzn, TZNAME_GLOBAL[tm->tm_isdst], MAXTZLEN + 1);
+ if (strlen(TZNAME_GLOBAL[tm->tm_isdst]) > MAXTZLEN)
+ tm->tm_isdst = -1;
+ }
+ }
+ else
+ tm->tm_isdst = -1;
+#else /* not (HAVE_STRUCT_TM_TM_ZONE ||
+ * HAVE_INT_TIMEZONE) */
+ if (tzp != NULL)
+ {
+ /* default to UTC */
+ *tzp = 0;
+ if (tzn != NULL)
+ *tzn = NULL;
+ }
+ else
+ tm->tm_isdst = -1;
+#endif
+}
+
+void
+GetCurrentDateTime(struct tm *tm)
+{
+ int tz;
+
+ abstime2tm(time(NULL), &tz, tm, NULL);
+}
+
+void
+dt2time(double jd, int *hour, int *min, int *sec, fsec_t *fsec)
+{
+ int64 time;
+
+ time = jd;
+ *hour = time / USECS_PER_HOUR;
+ time -= (*hour) * USECS_PER_HOUR;
+ *min = time / USECS_PER_MINUTE;
+ time -= (*min) * USECS_PER_MINUTE;
+ *sec = time / USECS_PER_SEC;
+ *fsec = time - (*sec * USECS_PER_SEC);
+} /* dt2time() */
+
+
+
+/* DecodeNumberField()
+ * Interpret numeric string as a concatenated date or time field.
+ * Use the context of previously decoded fields to help with
+ * the interpretation.
+ */
+static int
+DecodeNumberField(int len, char *str, int fmask,
+ int *tmask, struct tm *tm, fsec_t *fsec, bool *is2digits)
+{
+ char *cp;
+
+ /*
+ * Have a decimal point? Then this is a date or something with a seconds
+ * field...
+ */
+ if ((cp = strchr(str, '.')) != NULL)
+ {
+ char fstr[7];
+ int i;
+
+ cp++;
+
+ /*
+ * OK, we have at most six digits to care about. Let's construct a
+ * string with those digits, zero-padded on the right, and then do the
+ * conversion to an integer.
+ *
+ * XXX This truncates the seventh digit, unlike rounding it as the
+ * backend does.
+ */
+ for (i = 0; i < 6; i++)
+ fstr[i] = *cp != '\0' ? *cp++ : '0';
+ fstr[i] = '\0';
+ *fsec = strtoint(fstr, NULL, 10);
+ *cp = '\0';
+ len = strlen(str);
+ }
+ /* No decimal point and no complete date yet? */
+ else if ((fmask & DTK_DATE_M) != DTK_DATE_M)
+ {
+ /* yyyymmdd? */
+ if (len == 8)
+ {
+ *tmask = DTK_DATE_M;
+
+ tm->tm_mday = atoi(str + 6);
+ *(str + 6) = '\0';
+ tm->tm_mon = atoi(str + 4);
+ *(str + 4) = '\0';
+ tm->tm_year = atoi(str + 0);
+
+ return DTK_DATE;
+ }
+ /* yymmdd? */
+ else if (len == 6)
+ {
+ *tmask = DTK_DATE_M;
+ tm->tm_mday = atoi(str + 4);
+ *(str + 4) = '\0';
+ tm->tm_mon = atoi(str + 2);
+ *(str + 2) = '\0';
+ tm->tm_year = atoi(str + 0);
+ *is2digits = true;
+
+ return DTK_DATE;
+ }
+ /* yyddd? */
+ else if (len == 5)
+ {
+ *tmask = DTK_DATE_M;
+ tm->tm_mday = atoi(str + 2);
+ *(str + 2) = '\0';
+ tm->tm_mon = 1;
+ tm->tm_year = atoi(str + 0);
+ *is2digits = true;
+
+ return DTK_DATE;
+ }
+ }
+
+ /* not all time fields are specified? */
+ if ((fmask & DTK_TIME_M) != DTK_TIME_M)
+ {
+ /* hhmmss */
+ if (len == 6)
+ {
+ *tmask = DTK_TIME_M;
+ tm->tm_sec = atoi(str + 4);
+ *(str + 4) = '\0';
+ tm->tm_min = atoi(str + 2);
+ *(str + 2) = '\0';
+ tm->tm_hour = atoi(str + 0);
+
+ return DTK_TIME;
+ }
+ /* hhmm? */
+ else if (len == 4)
+ {
+ *tmask = DTK_TIME_M;
+ tm->tm_sec = 0;
+ tm->tm_min = atoi(str + 2);
+ *(str + 2) = '\0';
+ tm->tm_hour = atoi(str + 0);
+
+ return DTK_TIME;
+ }
+ }
+
+ return -1;
+} /* DecodeNumberField() */
+
+
+/* DecodeNumber()
+ * Interpret plain numeric field as a date value in context.
+ */
+static int
+DecodeNumber(int flen, char *str, int fmask,
+ int *tmask, struct tm *tm, fsec_t *fsec, bool *is2digits, bool EuroDates)
+{
+ int val;
+ char *cp;
+
+ *tmask = 0;
+
+ val = strtoint(str, &cp, 10);
+ if (cp == str)
+ return -1;
+
+ if (*cp == '.')
+ {
+ /*
+ * More than two digits? Then could be a date or a run-together time:
+ * 2001.360 20011225 040506.789
+ */
+ if (cp - str > 2)
+ return DecodeNumberField(flen, str, (fmask | DTK_DATE_M),
+ tmask, tm, fsec, is2digits);
+
+ *fsec = strtod(cp, &cp);
+ if (*cp != '\0')
+ return -1;
+ }
+ else if (*cp != '\0')
+ return -1;
+
+ /* Special case day of year? */
+ if (flen == 3 && (fmask & DTK_M(YEAR)) && val >= 1 && val <= 366)
+ {
+ *tmask = (DTK_M(DOY) | DTK_M(MONTH) | DTK_M(DAY));
+ tm->tm_yday = val;
+ j2date(date2j(tm->tm_year, 1, 1) + tm->tm_yday - 1,
+ &tm->tm_year, &tm->tm_mon, &tm->tm_mday);
+ }
+
+ /***
+ * Enough digits to be unequivocal year? Used to test for 4 digits or
+ * more, but we now test first for a three-digit doy so anything
+ * bigger than two digits had better be an explicit year.
+ * - thomas 1999-01-09
+ * Back to requiring a 4 digit year. We accept a two digit
+ * year farther down. - thomas 2000-03-28
+ ***/
+ else if (flen >= 4)
+ {
+ *tmask = DTK_M(YEAR);
+
+ /* already have a year? then see if we can substitute... */
+ if ((fmask & DTK_M(YEAR)) && !(fmask & DTK_M(DAY)) &&
+ tm->tm_year >= 1 && tm->tm_year <= 31)
+ {
+ tm->tm_mday = tm->tm_year;
+ *tmask = DTK_M(DAY);
+ }
+
+ tm->tm_year = val;
+ }
+
+ /* already have year? then could be month */
+ else if ((fmask & DTK_M(YEAR)) && !(fmask & DTK_M(MONTH)) && val >= 1 && val <= MONTHS_PER_YEAR)
+ {
+ *tmask = DTK_M(MONTH);
+ tm->tm_mon = val;
+ }
+ /* no year and EuroDates enabled? then could be day */
+ else if ((EuroDates || (fmask & DTK_M(MONTH))) &&
+ !(fmask & DTK_M(YEAR)) && !(fmask & DTK_M(DAY)) &&
+ val >= 1 && val <= 31)
+ {
+ *tmask = DTK_M(DAY);
+ tm->tm_mday = val;
+ }
+ else if (!(fmask & DTK_M(MONTH)) && val >= 1 && val <= MONTHS_PER_YEAR)
+ {
+ *tmask = DTK_M(MONTH);
+ tm->tm_mon = val;
+ }
+ else if (!(fmask & DTK_M(DAY)) && val >= 1 && val <= 31)
+ {
+ *tmask = DTK_M(DAY);
+ tm->tm_mday = val;
+ }
+
+ /*
+ * Check for 2 or 4 or more digits, but currently we reach here only if
+ * two digits. - thomas 2000-03-28
+ */
+ else if (!(fmask & DTK_M(YEAR)) && (flen >= 4 || flen == 2))
+ {
+ *tmask = DTK_M(YEAR);
+ tm->tm_year = val;
+
+ /* adjust ONLY if exactly two digits... */
+ *is2digits = (flen == 2);
+ }
+ else
+ return -1;
+
+ return 0;
+} /* DecodeNumber() */
+
+/* DecodeDate()
+ * Decode date string which includes delimiters.
+ * Insist on a complete set of fields.
+ */
+static int
+DecodeDate(char *str, int fmask, int *tmask, struct tm *tm, bool EuroDates)
+{
+ fsec_t fsec;
+
+ int nf = 0;
+ int i,
+ len;
+ bool bc = false;
+ bool is2digits = false;
+ int type,
+ val,
+ dmask = 0;
+ char *field[MAXDATEFIELDS];
+
+ /* parse this string... */
+ while (*str != '\0' && nf < MAXDATEFIELDS)
+ {
+ /* skip field separators */
+ while (!isalnum((unsigned char) *str))
+ str++;
+
+ field[nf] = str;
+ if (isdigit((unsigned char) *str))
+ {
+ while (isdigit((unsigned char) *str))
+ str++;
+ }
+ else if (isalpha((unsigned char) *str))
+ {
+ while (isalpha((unsigned char) *str))
+ str++;
+ }
+
+ /* Just get rid of any non-digit, non-alpha characters... */
+ if (*str != '\0')
+ *str++ = '\0';
+ nf++;
+ }
+
+#if 0
+ /* don't allow too many fields */
+ if (nf > 3)
+ return -1;
+#endif
+
+ *tmask = 0;
+
+ /* look first for text fields, since that will be unambiguous month */
+ for (i = 0; i < nf; i++)
+ {
+ if (isalpha((unsigned char) *field[i]))
+ {
+ type = DecodeSpecial(i, field[i], &val);
+ if (type == IGNORE_DTF)
+ continue;
+
+ dmask = DTK_M(type);
+ switch (type)
+ {
+ case MONTH:
+ tm->tm_mon = val;
+ break;
+
+ case ADBC:
+ bc = (val == BC);
+ break;
+
+ default:
+ return -1;
+ }
+ if (fmask & dmask)
+ return -1;
+
+ fmask |= dmask;
+ *tmask |= dmask;
+
+ /* mark this field as being completed */
+ field[i] = NULL;
+ }
+ }
+
+ /* now pick up remaining numeric fields */
+ for (i = 0; i < nf; i++)
+ {
+ if (field[i] == NULL)
+ continue;
+
+ if ((len = strlen(field[i])) <= 0)
+ return -1;
+
+ if (DecodeNumber(len, field[i], fmask, &dmask, tm, &fsec, &is2digits, EuroDates) != 0)
+ return -1;
+
+ if (fmask & dmask)
+ return -1;
+
+ fmask |= dmask;
+ *tmask |= dmask;
+ }
+
+ if ((fmask & ~(DTK_M(DOY) | DTK_M(TZ))) != DTK_DATE_M)
+ return -1;
+
+ /* there is no year zero in AD/BC notation; i.e. "1 BC" == year 0 */
+ if (bc)
+ {
+ if (tm->tm_year > 0)
+ tm->tm_year = -(tm->tm_year - 1);
+ else
+ return -1;
+ }
+ else if (is2digits)
+ {
+ if (tm->tm_year < 70)
+ tm->tm_year += 2000;
+ else if (tm->tm_year < 100)
+ tm->tm_year += 1900;
+ }
+
+ return 0;
+} /* DecodeDate() */
+
+
+/* DecodeTime()
+ * Decode time string which includes delimiters.
+ * Only check the lower limit on hours, since this same code
+ * can be used to represent time spans.
+ */
+int
+DecodeTime(char *str, int *tmask, struct tm *tm, fsec_t *fsec)
+{
+ char *cp;
+
+ *tmask = DTK_TIME_M;
+
+ tm->tm_hour = strtoint(str, &cp, 10);
+ if (*cp != ':')
+ return -1;
+ str = cp + 1;
+ tm->tm_min = strtoint(str, &cp, 10);
+ if (*cp == '\0')
+ {
+ tm->tm_sec = 0;
+ *fsec = 0;
+ }
+ else if (*cp != ':')
+ return -1;
+ else
+ {
+ str = cp + 1;
+ tm->tm_sec = strtoint(str, &cp, 10);
+ if (*cp == '\0')
+ *fsec = 0;
+ else if (*cp == '.')
+ {
+ char fstr[7];
+ int i;
+
+ cp++;
+
+ /*
+ * OK, we have at most six digits to care about. Let's construct a
+ * string with those digits, zero-padded on the right, and then do
+ * the conversion to an integer.
+ *
+ * XXX This truncates the seventh digit, unlike rounding it as the
+ * backend does.
+ */
+ for (i = 0; i < 6; i++)
+ fstr[i] = *cp != '\0' ? *cp++ : '0';
+ fstr[i] = '\0';
+ *fsec = strtoint(fstr, &cp, 10);
+ if (*cp != '\0')
+ return -1;
+ }
+ else
+ return -1;
+ }
+
+ /* do a sanity check */
+ if (tm->tm_hour < 0 || tm->tm_min < 0 || tm->tm_min > 59 ||
+ tm->tm_sec < 0 || tm->tm_sec > 59 || *fsec >= USECS_PER_SEC)
+ return -1;
+
+ return 0;
+} /* DecodeTime() */
+
+/* DecodeTimezone()
+ * Interpret string as a numeric timezone.
+ *
+ * Note: we allow timezone offsets up to 13:59. There are places that
+ * use +1300 summer time.
+ */
+static int
+DecodeTimezone(char *str, int *tzp)
+{
+ int tz;
+ int hr,
+ min;
+ char *cp;
+ int len;
+
+ /* assume leading character is "+" or "-" */
+ hr = strtoint(str + 1, &cp, 10);
+
+ /* explicit delimiter? */
+ if (*cp == ':')
+ min = strtoint(cp + 1, &cp, 10);
+ /* otherwise, might have run things together... */
+ else if (*cp == '\0' && (len = strlen(str)) > 3)
+ {
+ min = strtoint(str + len - 2, &cp, 10);
+ if (min < 0 || min >= 60)
+ return -1;
+
+ *(str + len - 2) = '\0';
+ hr = strtoint(str + 1, &cp, 10);
+ if (hr < 0 || hr > 13)
+ return -1;
+ }
+ else
+ min = 0;
+
+ tz = (hr * MINS_PER_HOUR + min) * SECS_PER_MINUTE;
+ if (*str == '-')
+ tz = -tz;
+
+ *tzp = -tz;
+ return *cp != '\0';
+} /* DecodeTimezone() */
+
+
+/* DecodePosixTimezone()
+ * Interpret string as a POSIX-compatible timezone:
+ * PST-hh:mm
+ * PST+h
+ * - thomas 2000-03-15
+ */
+static int
+DecodePosixTimezone(char *str, int *tzp)
+{
+ int val,
+ tz;
+ int type;
+ char *cp;
+ char delim;
+
+ cp = str;
+ while (*cp != '\0' && isalpha((unsigned char) *cp))
+ cp++;
+
+ if (DecodeTimezone(cp, &tz) != 0)
+ return -1;
+
+ delim = *cp;
+ *cp = '\0';
+ type = DecodeSpecial(MAXDATEFIELDS - 1, str, &val);
+ *cp = delim;
+
+ switch (type)
+ {
+ case DTZ:
+ case TZ:
+ *tzp = -(val + tz);
+ break;
+
+ default:
+ return -1;
+ }
+
+ return 0;
+} /* DecodePosixTimezone() */
+
+/* ParseDateTime()
+ * Break string into tokens based on a date/time context.
+ * Several field types are assigned:
+ * DTK_NUMBER - digits and (possibly) a decimal point
+ * DTK_DATE - digits and two delimiters, or digits and text
+ * DTK_TIME - digits, colon delimiters, and possibly a decimal point
+ * DTK_STRING - text (no digits)
+ * DTK_SPECIAL - leading "+" or "-" followed by text
+ * DTK_TZ - leading "+" or "-" followed by digits
+ * Note that some field types can hold unexpected items:
+ * DTK_NUMBER can hold date fields (yy.ddd)
+ * DTK_STRING can hold months (January) and time zones (PST)
+ * DTK_DATE can hold Posix time zones (GMT-8)
+ *
+ * The "lowstr" work buffer must have at least strlen(timestr) + MAXDATEFIELDS
+ * bytes of space. On output, field[] entries will point into it.
+ * The field[] and ftype[] arrays must have at least MAXDATEFIELDS entries.
+ */
+int
+ParseDateTime(char *timestr, char *lowstr,
+ char **field, int *ftype, int *numfields, char **endstr)
+{
+ int nf = 0;
+ char *lp = lowstr;
+
+ *endstr = timestr;
+ /* outer loop through fields */
+ while (*(*endstr) != '\0')
+ {
+ /* Record start of current field */
+ if (nf >= MAXDATEFIELDS)
+ return -1;
+ field[nf] = lp;
+
+ /* leading digit? then date or time */
+ if (isdigit((unsigned char) *(*endstr)))
+ {
+ *lp++ = *(*endstr)++;
+ while (isdigit((unsigned char) *(*endstr)))
+ *lp++ = *(*endstr)++;
+
+ /* time field? */
+ if (*(*endstr) == ':')
+ {
+ ftype[nf] = DTK_TIME;
+ *lp++ = *(*endstr)++;
+ while (isdigit((unsigned char) *(*endstr)) ||
+ (*(*endstr) == ':') || (*(*endstr) == '.'))
+ *lp++ = *(*endstr)++;
+ }
+ /* date field? allow embedded text month */
+ else if (*(*endstr) == '-' || *(*endstr) == '/' || *(*endstr) == '.')
+ {
+ /* save delimiting character to use later */
+ char *dp = (*endstr);
+
+ *lp++ = *(*endstr)++;
+ /* second field is all digits? then no embedded text month */
+ if (isdigit((unsigned char) *(*endstr)))
+ {
+ ftype[nf] = (*dp == '.') ? DTK_NUMBER : DTK_DATE;
+ while (isdigit((unsigned char) *(*endstr)))
+ *lp++ = *(*endstr)++;
+
+ /*
+ * insist that the delimiters match to get a three-field
+ * date.
+ */
+ if (*(*endstr) == *dp)
+ {
+ ftype[nf] = DTK_DATE;
+ *lp++ = *(*endstr)++;
+ while (isdigit((unsigned char) *(*endstr)) || (*(*endstr) == *dp))
+ *lp++ = *(*endstr)++;
+ }
+ }
+ else
+ {
+ ftype[nf] = DTK_DATE;
+ while (isalnum((unsigned char) *(*endstr)) || (*(*endstr) == *dp))
+ *lp++ = pg_tolower((unsigned char) *(*endstr)++);
+ }
+ }
+
+ /*
+ * otherwise, number only and will determine year, month, day, or
+ * concatenated fields later...
+ */
+ else
+ ftype[nf] = DTK_NUMBER;
+ }
+ /* Leading decimal point? Then fractional seconds... */
+ else if (*(*endstr) == '.')
+ {
+ *lp++ = *(*endstr)++;
+ while (isdigit((unsigned char) *(*endstr)))
+ *lp++ = *(*endstr)++;
+
+ ftype[nf] = DTK_NUMBER;
+ }
+
+ /*
+ * text? then date string, month, day of week, special, or timezone
+ */
+ else if (isalpha((unsigned char) *(*endstr)))
+ {
+ ftype[nf] = DTK_STRING;
+ *lp++ = pg_tolower((unsigned char) *(*endstr)++);
+ while (isalpha((unsigned char) *(*endstr)))
+ *lp++ = pg_tolower((unsigned char) *(*endstr)++);
+
+ /*
+ * Full date string with leading text month? Could also be a POSIX
+ * time zone...
+ */
+ if (*(*endstr) == '-' || *(*endstr) == '/' || *(*endstr) == '.')
+ {
+ char *dp = (*endstr);
+
+ ftype[nf] = DTK_DATE;
+ *lp++ = *(*endstr)++;
+ while (isdigit((unsigned char) *(*endstr)) || *(*endstr) == *dp)
+ *lp++ = *(*endstr)++;
+ }
+ }
+ /* skip leading spaces */
+ else if (isspace((unsigned char) *(*endstr)))
+ {
+ (*endstr)++;
+ continue;
+ }
+ /* sign? then special or numeric timezone */
+ else if (*(*endstr) == '+' || *(*endstr) == '-')
+ {
+ *lp++ = *(*endstr)++;
+ /* soak up leading whitespace */
+ while (isspace((unsigned char) *(*endstr)))
+ (*endstr)++;
+ /* numeric timezone? */
+ if (isdigit((unsigned char) *(*endstr)))
+ {
+ ftype[nf] = DTK_TZ;
+ *lp++ = *(*endstr)++;
+ while (isdigit((unsigned char) *(*endstr)) ||
+ (*(*endstr) == ':') || (*(*endstr) == '.'))
+ *lp++ = *(*endstr)++;
+ }
+ /* special? */
+ else if (isalpha((unsigned char) *(*endstr)))
+ {
+ ftype[nf] = DTK_SPECIAL;
+ *lp++ = pg_tolower((unsigned char) *(*endstr)++);
+ while (isalpha((unsigned char) *(*endstr)))
+ *lp++ = pg_tolower((unsigned char) *(*endstr)++);
+ }
+ /* otherwise something wrong... */
+ else
+ return -1;
+ }
+ /* ignore punctuation but use as delimiter */
+ else if (ispunct((unsigned char) *(*endstr)))
+ {
+ (*endstr)++;
+ continue;
+ }
+ /* otherwise, something is not right... */
+ else
+ return -1;
+
+ /* force in a delimiter after each field */
+ *lp++ = '\0';
+ nf++;
+ }
+
+ *numfields = nf;
+
+ return 0;
+} /* ParseDateTime() */
+
+
+/* DecodeDateTime()
+ * Interpret previously parsed fields for general date and time.
+ * Return 0 if full date, 1 if only time, and -1 if problems.
+ * External format(s):
+ * "<weekday> <month>-<day>-<year> <hour>:<minute>:<second>"
+ * "Fri Feb-7-1997 15:23:27"
+ * "Feb-7-1997 15:23:27"
+ * "2-7-1997 15:23:27"
+ * "1997-2-7 15:23:27"
+ * "1997.038 15:23:27" (day of year 1-366)
+ * Also supports input in compact time:
+ * "970207 152327"
+ * "97038 152327"
+ * "20011225T040506.789-07"
+ *
+ * Use the system-provided functions to get the current time zone
+ * if not specified in the input string.
+ * If the date is outside the time_t system-supported time range,
+ * then assume UTC time zone. - thomas 1997-05-27
+ */
+int
+DecodeDateTime(char **field, int *ftype, int nf,
+ int *dtype, struct tm *tm, fsec_t *fsec, bool EuroDates)
+{
+ int fmask = 0,
+ tmask,
+ type;
+ int ptype = 0; /* "prefix type" for ISO y2001m02d04 format */
+ int i;
+ int val;
+ int mer = HR24;
+ bool haveTextMonth = false;
+ bool is2digits = false;
+ bool bc = false;
+ int t = 0;
+ int *tzp = &t;
+
+ /***
+ * We'll insist on at least all of the date fields, but initialize the
+ * remaining fields in case they are not set later...
+ ***/
+ *dtype = DTK_DATE;
+ tm->tm_hour = 0;
+ tm->tm_min = 0;
+ tm->tm_sec = 0;
+ *fsec = 0;
+ /* don't know daylight savings time status apriori */
+ tm->tm_isdst = -1;
+ if (tzp != NULL)
+ *tzp = 0;
+
+ for (i = 0; i < nf; i++)
+ {
+ switch (ftype[i])
+ {
+ case DTK_DATE:
+ /***
+ * Integral julian day with attached time zone?
+ * All other forms with JD will be separated into
+ * distinct fields, so we handle just this case here.
+ ***/
+ if (ptype == DTK_JULIAN)
+ {
+ char *cp;
+ int val;
+
+ if (tzp == NULL)
+ return -1;
+
+ val = strtoint(field[i], &cp, 10);
+ if (*cp != '-')
+ return -1;
+
+ j2date(val, &tm->tm_year, &tm->tm_mon, &tm->tm_mday);
+ /* Get the time zone from the end of the string */
+ if (DecodeTimezone(cp, tzp) != 0)
+ return -1;
+
+ tmask = DTK_DATE_M | DTK_TIME_M | DTK_M(TZ);
+ ptype = 0;
+ break;
+ }
+ /***
+ * Already have a date? Then this might be a POSIX time
+ * zone with an embedded dash (e.g. "PST-3" == "EST") or
+ * a run-together time with trailing time zone (e.g. hhmmss-zz).
+ * - thomas 2001-12-25
+ ***/
+ else if (((fmask & DTK_DATE_M) == DTK_DATE_M)
+ || (ptype != 0))
+ {
+ /* No time zone accepted? Then quit... */
+ if (tzp == NULL)
+ return -1;
+
+ if (isdigit((unsigned char) *field[i]) || ptype != 0)
+ {
+ char *cp;
+
+ if (ptype != 0)
+ {
+ /* Sanity check; should not fail this test */
+ if (ptype != DTK_TIME)
+ return -1;
+ ptype = 0;
+ }
+
+ /*
+ * Starts with a digit but we already have a time
+ * field? Then we are in trouble with a date and time
+ * already...
+ */
+ if ((fmask & DTK_TIME_M) == DTK_TIME_M)
+ return -1;
+
+ if ((cp = strchr(field[i], '-')) == NULL)
+ return -1;
+
+ /* Get the time zone from the end of the string */
+ if (DecodeTimezone(cp, tzp) != 0)
+ return -1;
+ *cp = '\0';
+
+ /*
+ * Then read the rest of the field as a concatenated
+ * time
+ */
+ if ((ftype[i] = DecodeNumberField(strlen(field[i]), field[i], fmask,
+ &tmask, tm, fsec, &is2digits)) < 0)
+ return -1;
+
+ /*
+ * modify tmask after returning from
+ * DecodeNumberField()
+ */
+ tmask |= DTK_M(TZ);
+ }
+ else
+ {
+ if (DecodePosixTimezone(field[i], tzp) != 0)
+ return -1;
+
+ ftype[i] = DTK_TZ;
+ tmask = DTK_M(TZ);
+ }
+ }
+ else if (DecodeDate(field[i], fmask, &tmask, tm, EuroDates) != 0)
+ return -1;
+ break;
+
+ case DTK_TIME:
+ if (DecodeTime(field[i], &tmask, tm, fsec) != 0)
+ return -1;
+
+ /*
+ * Check upper limit on hours; other limits checked in
+ * DecodeTime()
+ */
+ /* test for > 24:00:00 */
+ if (tm->tm_hour > 24 ||
+ (tm->tm_hour == 24 && (tm->tm_min > 0 || tm->tm_sec > 0)))
+ return -1;
+ break;
+
+ case DTK_TZ:
+ {
+ int tz;
+
+ if (tzp == NULL)
+ return -1;
+
+ if (DecodeTimezone(field[i], &tz) != 0)
+ return -1;
+
+ /*
+ * Already have a time zone? Then maybe this is the second
+ * field of a POSIX time: EST+3 (equivalent to PST)
+ */
+ if (i > 0 && (fmask & DTK_M(TZ)) != 0 &&
+ ftype[i - 1] == DTK_TZ &&
+ isalpha((unsigned char) *field[i - 1]))
+ {
+ *tzp -= tz;
+ tmask = 0;
+ }
+ else
+ {
+ *tzp = tz;
+ tmask = DTK_M(TZ);
+ }
+ }
+ break;
+
+ case DTK_NUMBER:
+
+ /*
+ * Was this an "ISO date" with embedded field labels? An
+ * example is "y2001m02d04" - thomas 2001-02-04
+ */
+ if (ptype != 0)
+ {
+ char *cp;
+ int val;
+
+ val = strtoint(field[i], &cp, 10);
+
+ /*
+ * only a few kinds are allowed to have an embedded
+ * decimal
+ */
+ if (*cp == '.')
+ switch (ptype)
+ {
+ case DTK_JULIAN:
+ case DTK_TIME:
+ case DTK_SECOND:
+ break;
+ default:
+ return 1;
+ break;
+ }
+ else if (*cp != '\0')
+ return -1;
+
+ switch (ptype)
+ {
+ case DTK_YEAR:
+ tm->tm_year = val;
+ tmask = DTK_M(YEAR);
+ break;
+
+ case DTK_MONTH:
+
+ /*
+ * already have a month and hour? then assume
+ * minutes
+ */
+ if ((fmask & DTK_M(MONTH)) != 0 &&
+ (fmask & DTK_M(HOUR)) != 0)
+ {
+ tm->tm_min = val;
+ tmask = DTK_M(MINUTE);
+ }
+ else
+ {
+ tm->tm_mon = val;
+ tmask = DTK_M(MONTH);
+ }
+ break;
+
+ case DTK_DAY:
+ tm->tm_mday = val;
+ tmask = DTK_M(DAY);
+ break;
+
+ case DTK_HOUR:
+ tm->tm_hour = val;
+ tmask = DTK_M(HOUR);
+ break;
+
+ case DTK_MINUTE:
+ tm->tm_min = val;
+ tmask = DTK_M(MINUTE);
+ break;
+
+ case DTK_SECOND:
+ tm->tm_sec = val;
+ tmask = DTK_M(SECOND);
+ if (*cp == '.')
+ {
+ double frac;
+
+ frac = strtod(cp, &cp);
+ if (*cp != '\0')
+ return -1;
+ *fsec = frac * 1000000;
+ }
+ break;
+
+ case DTK_TZ:
+ tmask = DTK_M(TZ);
+ if (DecodeTimezone(field[i], tzp) != 0)
+ return -1;
+ break;
+
+ case DTK_JULIAN:
+ /***
+ * previous field was a label for "julian date"?
+ ***/
+ tmask = DTK_DATE_M;
+ j2date(val, &tm->tm_year, &tm->tm_mon, &tm->tm_mday);
+ /* fractional Julian Day? */
+ if (*cp == '.')
+ {
+ double time;
+
+ time = strtod(cp, &cp);
+ if (*cp != '\0')
+ return -1;
+
+ tmask |= DTK_TIME_M;
+ dt2time((time * USECS_PER_DAY), &tm->tm_hour, &tm->tm_min, &tm->tm_sec, fsec);
+ }
+ break;
+
+ case DTK_TIME:
+ /* previous field was "t" for ISO time */
+ if ((ftype[i] = DecodeNumberField(strlen(field[i]), field[i], (fmask | DTK_DATE_M),
+ &tmask, tm, fsec, &is2digits)) < 0)
+ return -1;
+
+ if (tmask != DTK_TIME_M)
+ return -1;
+ break;
+
+ default:
+ return -1;
+ break;
+ }
+
+ ptype = 0;
+ *dtype = DTK_DATE;
+ }
+ else
+ {
+ char *cp;
+ int flen;
+
+ flen = strlen(field[i]);
+ cp = strchr(field[i], '.');
+
+ /* Embedded decimal and no date yet? */
+ if (cp != NULL && !(fmask & DTK_DATE_M))
+ {
+ if (DecodeDate(field[i], fmask, &tmask, tm, EuroDates) != 0)
+ return -1;
+ }
+ /* embedded decimal and several digits before? */
+ else if (cp != NULL && flen - strlen(cp) > 2)
+ {
+ /*
+ * Interpret as a concatenated date or time Set the
+ * type field to allow decoding other fields later.
+ * Example: 20011223 or 040506
+ */
+ if ((ftype[i] = DecodeNumberField(flen, field[i], fmask,
+ &tmask, tm, fsec, &is2digits)) < 0)
+ return -1;
+ }
+ else if (flen > 4)
+ {
+ if ((ftype[i] = DecodeNumberField(flen, field[i], fmask,
+ &tmask, tm, fsec, &is2digits)) < 0)
+ return -1;
+ }
+ /* otherwise it is a single date/time field... */
+ else if (DecodeNumber(flen, field[i], fmask,
+ &tmask, tm, fsec, &is2digits, EuroDates) != 0)
+ return -1;
+ }
+ break;
+
+ case DTK_STRING:
+ case DTK_SPECIAL:
+ type = DecodeSpecial(i, field[i], &val);
+ if (type == IGNORE_DTF)
+ continue;
+
+ tmask = DTK_M(type);
+ switch (type)
+ {
+ case RESERV:
+ switch (val)
+ {
+ case DTK_NOW:
+ tmask = (DTK_DATE_M | DTK_TIME_M | DTK_M(TZ));
+ *dtype = DTK_DATE;
+ GetCurrentDateTime(tm);
+ break;
+
+ case DTK_YESTERDAY:
+ tmask = DTK_DATE_M;
+ *dtype = DTK_DATE;
+ GetCurrentDateTime(tm);
+ j2date(date2j(tm->tm_year, tm->tm_mon, tm->tm_mday) - 1,
+ &tm->tm_year, &tm->tm_mon, &tm->tm_mday);
+ tm->tm_hour = 0;
+ tm->tm_min = 0;
+ tm->tm_sec = 0;
+ break;
+
+ case DTK_TODAY:
+ tmask = DTK_DATE_M;
+ *dtype = DTK_DATE;
+ GetCurrentDateTime(tm);
+ tm->tm_hour = 0;
+ tm->tm_min = 0;
+ tm->tm_sec = 0;
+ break;
+
+ case DTK_TOMORROW:
+ tmask = DTK_DATE_M;
+ *dtype = DTK_DATE;
+ GetCurrentDateTime(tm);
+ j2date(date2j(tm->tm_year, tm->tm_mon, tm->tm_mday) + 1,
+ &tm->tm_year, &tm->tm_mon, &tm->tm_mday);
+ tm->tm_hour = 0;
+ tm->tm_min = 0;
+ tm->tm_sec = 0;
+ break;
+
+ case DTK_ZULU:
+ tmask = (DTK_TIME_M | DTK_M(TZ));
+ *dtype = DTK_DATE;
+ tm->tm_hour = 0;
+ tm->tm_min = 0;
+ tm->tm_sec = 0;
+ if (tzp != NULL)
+ *tzp = 0;
+ break;
+
+ default:
+ *dtype = val;
+ }
+
+ break;
+
+ case MONTH:
+
+ /*
+ * already have a (numeric) month? then see if we can
+ * substitute...
+ */
+ if ((fmask & DTK_M(MONTH)) && !haveTextMonth &&
+ !(fmask & DTK_M(DAY)) && tm->tm_mon >= 1 && tm->tm_mon <= 31)
+ {
+ tm->tm_mday = tm->tm_mon;
+ tmask = DTK_M(DAY);
+ }
+ haveTextMonth = true;
+ tm->tm_mon = val;
+ break;
+
+ case DTZMOD:
+
+ /*
+ * daylight savings time modifier (solves "MET DST"
+ * syntax)
+ */
+ tmask |= DTK_M(DTZ);
+ tm->tm_isdst = 1;
+ if (tzp == NULL)
+ return -1;
+ *tzp -= val;
+ break;
+
+ case DTZ:
+
+ /*
+ * set mask for TZ here _or_ check for DTZ later when
+ * getting default timezone
+ */
+ tmask |= DTK_M(TZ);
+ tm->tm_isdst = 1;
+ if (tzp == NULL)
+ return -1;
+ *tzp = -val;
+ ftype[i] = DTK_TZ;
+ break;
+
+ case TZ:
+ tm->tm_isdst = 0;
+ if (tzp == NULL)
+ return -1;
+ *tzp = -val;
+ ftype[i] = DTK_TZ;
+ break;
+
+ case IGNORE_DTF:
+ break;
+
+ case AMPM:
+ mer = val;
+ break;
+
+ case ADBC:
+ bc = (val == BC);
+ break;
+
+ case DOW:
+ tm->tm_wday = val;
+ break;
+
+ case UNITS:
+ tmask = 0;
+ ptype = val;
+ break;
+
+ case ISOTIME:
+
+ /*
+ * This is a filler field "t" indicating that the next
+ * field is time. Try to verify that this is sensible.
+ */
+ tmask = 0;
+
+ /* No preceding date? Then quit... */
+ if ((fmask & DTK_DATE_M) != DTK_DATE_M)
+ return -1;
+
+ /***
+ * We will need one of the following fields:
+ * DTK_NUMBER should be hhmmss.fff
+ * DTK_TIME should be hh:mm:ss.fff
+ * DTK_DATE should be hhmmss-zz
+ ***/
+ if (i >= nf - 1 ||
+ (ftype[i + 1] != DTK_NUMBER &&
+ ftype[i + 1] != DTK_TIME &&
+ ftype[i + 1] != DTK_DATE))
+ return -1;
+
+ ptype = val;
+ break;
+
+ default:
+ return -1;
+ }
+ break;
+
+ default:
+ return -1;
+ }
+
+ if (tmask & fmask)
+ return -1;
+ fmask |= tmask;
+ }
+
+ /* there is no year zero in AD/BC notation; i.e. "1 BC" == year 0 */
+ if (bc)
+ {
+ if (tm->tm_year > 0)
+ tm->tm_year = -(tm->tm_year - 1);
+ else
+ return -1;
+ }
+ else if (is2digits)
+ {
+ if (tm->tm_year < 70)
+ tm->tm_year += 2000;
+ else if (tm->tm_year < 100)
+ tm->tm_year += 1900;
+ }
+
+ if (mer != HR24 && tm->tm_hour > 12)
+ return -1;
+ if (mer == AM && tm->tm_hour == 12)
+ tm->tm_hour = 0;
+ else if (mer == PM && tm->tm_hour != 12)
+ tm->tm_hour += 12;
+
+ /* do additional checking for full date specs... */
+ if (*dtype == DTK_DATE)
+ {
+ if ((fmask & DTK_DATE_M) != DTK_DATE_M)
+ return ((fmask & DTK_TIME_M) == DTK_TIME_M) ? 1 : -1;
+
+ /*
+ * check for valid day of month, now that we know for sure the month
+ * and year...
+ */
+ if (tm->tm_mday < 1 || tm->tm_mday > day_tab[isleap(tm->tm_year)][tm->tm_mon - 1])
+ return -1;
+
+ /*
+ * backend tried to find local timezone here but we don't use the
+ * result afterwards anyway so we only check for this error: daylight
+ * savings time modifier but no standard timezone?
+ */
+ if ((fmask & DTK_DATE_M) == DTK_DATE_M && tzp != NULL && !(fmask & DTK_M(TZ)) && (fmask & DTK_M(DTZMOD)))
+ return -1;
+ }
+
+ return 0;
+} /* DecodeDateTime() */
+
+/* Function works as follows:
+ *
+ *
+ * */
+
+static char *
+find_end_token(char *str, char *fmt)
+{
+ /*
+ * str: here is28the day12the hour fmt: here is%dthe day%hthe hour
+ *
+ * we extract the 28, we read the percent sign and the type "d" then this
+ * functions gets called as find_end_token("28the day12the hour", "the
+ * day%hthehour")
+ *
+ * fmt points to "the day%hthehour", next_percent points to %hthehour and
+ * we have to find a match for everything between these positions ("the
+ * day"). We look for "the day" in str and know that the pattern we are
+ * about to scan ends where this string starts (right after the "28")
+ *
+ * At the end, *fmt is '\0' and *str isn't. end_position then is
+ * unchanged.
+ */
+ char *end_position = NULL;
+ char *next_percent,
+ *subst_location = NULL;
+ int scan_offset = 0;
+ char last_char;
+
+ /* are we at the end? */
+ if (!*fmt)
+ {
+ end_position = fmt;
+ return end_position;
+ }
+
+ /* not at the end */
+ while (fmt[scan_offset] == '%' && fmt[scan_offset + 1])
+ {
+ /*
+ * there is no delimiter, skip to the next delimiter if we're reading
+ * a number and then something that is not a number "9:15pm", we might
+ * be able to recover with the strtol end pointer. Go for the next
+ * percent sign
+ */
+ scan_offset += 2;
+ }
+ next_percent = strchr(fmt + scan_offset, '%');
+ if (next_percent)
+ {
+ /*
+ * we don't want to allocate extra memory, so we temporarily set the
+ * '%' sign to '\0' and call strstr However since we allow whitespace
+ * to float around everything, we have to shorten the pattern until we
+ * reach a non-whitespace character
+ */
+
+ subst_location = next_percent;
+ while (*(subst_location - 1) == ' ' && subst_location - 1 > fmt + scan_offset)
+ subst_location--;
+ last_char = *subst_location;
+ *subst_location = '\0';
+
+ /*
+ * the haystack is the str and the needle is the original fmt but it
+ * ends at the position where the next percent sign would be
+ */
+
+ /*
+ * There is one special case. Imagine: str = " 2", fmt = "%d %...",
+ * since we want to allow blanks as "dynamic" padding we have to
+ * accept this. Now, we are called with a fmt of " %..." and look for
+ * " " in str. We find it at the first position and never read the
+ * 2...
+ */
+ while (*str == ' ')
+ str++;
+ end_position = strstr(str, fmt + scan_offset);
+ *subst_location = last_char;
+ }
+ else
+ {
+ /*
+ * there is no other percent sign. So everything up to the end has to
+ * match.
+ */
+ end_position = str + strlen(str);
+ }
+ if (!end_position)
+ {
+ /*
+ * maybe we have the following case:
+ *
+ * str = "4:15am" fmt = "%M:%S %p"
+ *
+ * at this place we could have
+ *
+ * str = "15am" fmt = " %p"
+ *
+ * and have set fmt to " " because overwrote the % sign with a NULL
+ *
+ * In this case where we would have to match a space but can't find
+ * it, set end_position to the end of the string
+ */
+ if ((fmt + scan_offset)[0] == ' ' && fmt + scan_offset + 1 == subst_location)
+ end_position = str + strlen(str);
+ }
+ return end_position;
+}
+
+static int
+pgtypes_defmt_scan(union un_fmt_comb *scan_val, int scan_type, char **pstr, char *pfmt)
+{
+ /*
+ * scan everything between pstr and pstr_end. This is not including the
+ * last character so we might set it to '\0' for the parsing
+ */
+
+ char last_char;
+ int err = 0;
+ char *pstr_end;
+ char *strtol_end = NULL;
+
+ while (**pstr == ' ')
+ pstr++;
+ pstr_end = find_end_token(*pstr, pfmt);
+ if (!pstr_end)
+ {
+ /* there was an error, no match */
+ return 1;
+ }
+ last_char = *pstr_end;
+ *pstr_end = '\0';
+
+ switch (scan_type)
+ {
+ case PGTYPES_TYPE_UINT:
+
+ /*
+ * numbers may be blank-padded, this is the only deviation from
+ * the fmt-string we accept
+ */
+ while (**pstr == ' ')
+ (*pstr)++;
+ errno = 0;
+ scan_val->uint_val = (unsigned int) strtol(*pstr, &strtol_end, 10);
+ if (errno)
+ err = 1;
+ break;
+ case PGTYPES_TYPE_UINT_LONG:
+ while (**pstr == ' ')
+ (*pstr)++;
+ errno = 0;
+ scan_val->luint_val = (unsigned long int) strtol(*pstr, &strtol_end, 10);
+ if (errno)
+ err = 1;
+ break;
+ case PGTYPES_TYPE_STRING_MALLOCED:
+ scan_val->str_val = pgtypes_strdup(*pstr);
+ if (scan_val->str_val == NULL)
+ err = 1;
+ break;
+ }
+ if (strtol_end && *strtol_end)
+ *pstr = strtol_end;
+ else
+ *pstr = pstr_end;
+ *pstr_end = last_char;
+ return err;
+}
+
+/* XXX range checking */
+int
+PGTYPEStimestamp_defmt_scan(char **str, char *fmt, timestamp * d,
+ int *year, int *month, int *day,
+ int *hour, int *minute, int *second,
+ int *tz)
+{
+ union un_fmt_comb scan_val;
+ int scan_type;
+
+ char *pstr,
+ *pfmt,
+ *tmp;
+ int err = 1;
+ unsigned int j;
+ struct tm tm;
+
+ pfmt = fmt;
+ pstr = *str;
+
+ while (*pfmt)
+ {
+ err = 0;
+ while (*pfmt == ' ')
+ pfmt++;
+ while (*pstr == ' ')
+ pstr++;
+ if (*pfmt != '%')
+ {
+ if (*pfmt == *pstr)
+ {
+ pfmt++;
+ pstr++;
+ }
+ else
+ {
+ /* Error: no match */
+ err = 1;
+ return err;
+ }
+ continue;
+ }
+ /* here *pfmt equals '%' */
+ pfmt++;
+ switch (*pfmt)
+ {
+ case 'a':
+ pfmt++;
+
+ /*
+ * we parse the day and see if it is a week day but we do not
+ * check if the week day really matches the date
+ */
+ err = 1;
+ j = 0;
+ while (pgtypes_date_weekdays_short[j])
+ {
+ if (strncmp(pgtypes_date_weekdays_short[j], pstr,
+ strlen(pgtypes_date_weekdays_short[j])) == 0)
+ {
+ /* found it */
+ err = 0;
+ pstr += strlen(pgtypes_date_weekdays_short[j]);
+ break;
+ }
+ j++;
+ }
+ break;
+ case 'A':
+ /* see note above */
+ pfmt++;
+ err = 1;
+ j = 0;
+ while (days[j])
+ {
+ if (strncmp(days[j], pstr, strlen(days[j])) == 0)
+ {
+ /* found it */
+ err = 0;
+ pstr += strlen(days[j]);
+ break;
+ }
+ j++;
+ }
+ break;
+ case 'b':
+ case 'h':
+ pfmt++;
+ err = 1;
+ j = 0;
+ while (months[j])
+ {
+ if (strncmp(months[j], pstr, strlen(months[j])) == 0)
+ {
+ /* found it */
+ err = 0;
+ pstr += strlen(months[j]);
+ *month = j + 1;
+ break;
+ }
+ j++;
+ }
+ break;
+ case 'B':
+ /* see note above */
+ pfmt++;
+ err = 1;
+ j = 0;
+ while (pgtypes_date_months[j])
+ {
+ if (strncmp(pgtypes_date_months[j], pstr, strlen(pgtypes_date_months[j])) == 0)
+ {
+ /* found it */
+ err = 0;
+ pstr += strlen(pgtypes_date_months[j]);
+ *month = j + 1;
+ break;
+ }
+ j++;
+ }
+ break;
+ case 'c':
+ /* XXX */
+ break;
+ case 'C':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ *year = scan_val.uint_val * 100;
+ break;
+ case 'd':
+ case 'e':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ *day = scan_val.uint_val;
+ break;
+ case 'D':
+
+ /*
+ * we have to concatenate the strings in order to be able to
+ * find the end of the substitution
+ */
+ pfmt++;
+ tmp = pgtypes_alloc(strlen("%m/%d/%y") + strlen(pstr) + 1);
+ strcpy(tmp, "%m/%d/%y");
+ strcat(tmp, pfmt);
+ err = PGTYPEStimestamp_defmt_scan(&pstr, tmp, d, year, month, day, hour, minute, second, tz);
+ free(tmp);
+ return err;
+ case 'm':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ *month = scan_val.uint_val;
+ break;
+ case 'y':
+ case 'g': /* XXX difference to y (ISO) */
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ if (*year < 0)
+ {
+ /* not yet set */
+ *year = scan_val.uint_val;
+ }
+ else
+ *year += scan_val.uint_val;
+ if (*year < 100)
+ *year += 1900;
+ break;
+ case 'G':
+ /* XXX difference to %V (ISO) */
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ *year = scan_val.uint_val;
+ break;
+ case 'H':
+ case 'I':
+ case 'k':
+ case 'l':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ *hour += scan_val.uint_val;
+ break;
+ case 'j':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+
+ /*
+ * XXX what should we do with that? We could say that it's
+ * sufficient if we have the year and the day within the year
+ * to get at least a specific day.
+ */
+ break;
+ case 'M':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ *minute = scan_val.uint_val;
+ break;
+ case 'n':
+ pfmt++;
+ if (*pstr == '\n')
+ pstr++;
+ else
+ err = 1;
+ break;
+ case 'p':
+ err = 1;
+ pfmt++;
+ if (strncmp(pstr, "am", 2) == 0)
+ {
+ *hour += 0;
+ err = 0;
+ pstr += 2;
+ }
+ if (strncmp(pstr, "a.m.", 4) == 0)
+ {
+ *hour += 0;
+ err = 0;
+ pstr += 4;
+ }
+ if (strncmp(pstr, "pm", 2) == 0)
+ {
+ *hour += 12;
+ err = 0;
+ pstr += 2;
+ }
+ if (strncmp(pstr, "p.m.", 4) == 0)
+ {
+ *hour += 12;
+ err = 0;
+ pstr += 4;
+ }
+ break;
+ case 'P':
+ err = 1;
+ pfmt++;
+ if (strncmp(pstr, "AM", 2) == 0)
+ {
+ *hour += 0;
+ err = 0;
+ pstr += 2;
+ }
+ if (strncmp(pstr, "A.M.", 4) == 0)
+ {
+ *hour += 0;
+ err = 0;
+ pstr += 4;
+ }
+ if (strncmp(pstr, "PM", 2) == 0)
+ {
+ *hour += 12;
+ err = 0;
+ pstr += 2;
+ }
+ if (strncmp(pstr, "P.M.", 4) == 0)
+ {
+ *hour += 12;
+ err = 0;
+ pstr += 4;
+ }
+ break;
+ case 'r':
+ pfmt++;
+ tmp = pgtypes_alloc(strlen("%I:%M:%S %p") + strlen(pstr) + 1);
+ strcpy(tmp, "%I:%M:%S %p");
+ strcat(tmp, pfmt);
+ err = PGTYPEStimestamp_defmt_scan(&pstr, tmp, d, year, month, day, hour, minute, second, tz);
+ free(tmp);
+ return err;
+ case 'R':
+ pfmt++;
+ tmp = pgtypes_alloc(strlen("%H:%M") + strlen(pstr) + 1);
+ strcpy(tmp, "%H:%M");
+ strcat(tmp, pfmt);
+ err = PGTYPEStimestamp_defmt_scan(&pstr, tmp, d, year, month, day, hour, minute, second, tz);
+ free(tmp);
+ return err;
+ case 's':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT_LONG;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ /* number of seconds in scan_val.luint_val */
+ {
+ struct tm *tms;
+ time_t et = (time_t) scan_val.luint_val;
+
+ tms = gmtime(&et);
+
+ if (tms)
+ {
+ *year = tms->tm_year + 1900;
+ *month = tms->tm_mon + 1;
+ *day = tms->tm_mday;
+ *hour = tms->tm_hour;
+ *minute = tms->tm_min;
+ *second = tms->tm_sec;
+ }
+ else
+ err = 1;
+ }
+ break;
+ case 'S':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ *second = scan_val.uint_val;
+ break;
+ case 't':
+ pfmt++;
+ if (*pstr == '\t')
+ pstr++;
+ else
+ err = 1;
+ break;
+ case 'T':
+ pfmt++;
+ tmp = pgtypes_alloc(strlen("%H:%M:%S") + strlen(pstr) + 1);
+ strcpy(tmp, "%H:%M:%S");
+ strcat(tmp, pfmt);
+ err = PGTYPEStimestamp_defmt_scan(&pstr, tmp, d, year, month, day, hour, minute, second, tz);
+ free(tmp);
+ return err;
+ case 'u':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ if (scan_val.uint_val < 1 || scan_val.uint_val > 7)
+ err = 1;
+ break;
+ case 'U':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ if (scan_val.uint_val > 53)
+ err = 1;
+ break;
+ case 'V':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ if (scan_val.uint_val < 1 || scan_val.uint_val > 53)
+ err = 1;
+ break;
+ case 'w':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ if (scan_val.uint_val > 6)
+ err = 1;
+ break;
+ case 'W':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ if (scan_val.uint_val > 53)
+ err = 1;
+ break;
+ case 'x':
+ case 'X':
+ /* XXX */
+ break;
+ case 'Y':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_UINT;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ *year = scan_val.uint_val;
+ break;
+ case 'z':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_STRING_MALLOCED;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ if (!err)
+ {
+ err = DecodeTimezone(scan_val.str_val, tz);
+ free(scan_val.str_val);
+ }
+ break;
+ case 'Z':
+ pfmt++;
+ scan_type = PGTYPES_TYPE_STRING_MALLOCED;
+ err = pgtypes_defmt_scan(&scan_val, scan_type, &pstr, pfmt);
+ if (!err)
+ {
+ /*
+ * XXX use DecodeSpecial instead? Do we need strcasecmp
+ * here?
+ */
+ err = 1;
+ for (j = 0; j < szdatetktbl; j++)
+ {
+ if ((datetktbl[j].type == TZ || datetktbl[j].type == DTZ) &&
+ pg_strcasecmp(datetktbl[j].token,
+ scan_val.str_val) == 0)
+ {
+ *tz = -datetktbl[j].value;
+ err = 0;
+ break;
+ }
+ }
+ free(scan_val.str_val);
+ }
+ break;
+ case '+':
+ /* XXX */
+ break;
+ case '%':
+ pfmt++;
+ if (*pstr == '%')
+ pstr++;
+ else
+ err = 1;
+ break;
+ default:
+ err = 1;
+ }
+ }
+ if (!err)
+ {
+ if (*second < 0)
+ *second = 0;
+ if (*minute < 0)
+ *minute = 0;
+ if (*hour < 0)
+ *hour = 0;
+ if (*day < 0)
+ {
+ err = 1;
+ *day = 1;
+ }
+ if (*month < 0)
+ {
+ err = 1;
+ *month = 1;
+ }
+ if (*year < 0)
+ {
+ err = 1;
+ *year = 1970;
+ }
+
+ if (*second > 59)
+ {
+ err = 1;
+ *second = 0;
+ }
+ if (*minute > 59)
+ {
+ err = 1;
+ *minute = 0;
+ }
+ if (*hour > 24 || /* test for > 24:00:00 */
+ (*hour == 24 && (*minute > 0 || *second > 0)))
+ {
+ err = 1;
+ *hour = 0;
+ }
+ if (*month > MONTHS_PER_YEAR)
+ {
+ err = 1;
+ *month = 1;
+ }
+ if (*day > day_tab[isleap(*year)][*month - 1])
+ {
+ *day = day_tab[isleap(*year)][*month - 1];
+ err = 1;
+ }
+
+ tm.tm_sec = *second;
+ tm.tm_min = *minute;
+ tm.tm_hour = *hour;
+ tm.tm_mday = *day;
+ tm.tm_mon = *month;
+ tm.tm_year = *year;
+
+ tm2timestamp(&tm, 0, tz, d);
+ }
+ return err;
+}
+
+/* XXX: 1900 is compiled in as the base for years */
diff --git a/src/interfaces/ecpg/pgtypeslib/exports.txt b/src/interfaces/ecpg/pgtypeslib/exports.txt
new file mode 100644
index 0000000..2d5ec17
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/exports.txt
@@ -0,0 +1,48 @@
+# src/interfaces/ecpg/pgtypeslib/exports.txt
+# Functions to be exported by pgtypeslib DLL
+PGTYPESdate_dayofweek 1
+PGTYPESdate_defmt_asc 2
+PGTYPESdate_fmt_asc 3
+PGTYPESdate_free 4
+PGTYPESdate_from_asc 5
+PGTYPESdate_from_timestamp 6
+PGTYPESdate_julmdy 7
+PGTYPESdate_mdyjul 8
+PGTYPESdate_new 9
+PGTYPESdate_to_asc 10
+PGTYPESdate_today 11
+PGTYPESdecimal_free 12
+PGTYPESdecimal_new 13
+PGTYPESinterval_copy 14
+PGTYPESinterval_free 15
+PGTYPESinterval_from_asc 16
+PGTYPESinterval_new 17
+PGTYPESinterval_to_asc 18
+PGTYPESnumeric_add 19
+PGTYPESnumeric_cmp 20
+PGTYPESnumeric_copy 21
+PGTYPESnumeric_div 22
+PGTYPESnumeric_free 23
+PGTYPESnumeric_from_asc 24
+PGTYPESnumeric_from_decimal 25
+PGTYPESnumeric_from_double 26
+PGTYPESnumeric_from_int 27
+PGTYPESnumeric_from_long 28
+PGTYPESnumeric_mul 29
+PGTYPESnumeric_new 30
+PGTYPESnumeric_sub 31
+PGTYPESnumeric_to_asc 32
+PGTYPESnumeric_to_decimal 33
+PGTYPESnumeric_to_double 34
+PGTYPESnumeric_to_int 35
+PGTYPESnumeric_to_long 36
+PGTYPEStimestamp_add_interval 37
+PGTYPEStimestamp_current 38
+PGTYPEStimestamp_defmt_asc 39
+PGTYPEStimestamp_defmt_scan 40
+PGTYPEStimestamp_fmt_asc 41
+PGTYPEStimestamp_from_asc 42
+PGTYPEStimestamp_sub 43
+PGTYPEStimestamp_sub_interval 44
+PGTYPEStimestamp_to_asc 45
+PGTYPESchar_free 46
diff --git a/src/interfaces/ecpg/pgtypeslib/interval.c b/src/interfaces/ecpg/pgtypeslib/interval.c
new file mode 100644
index 0000000..73bde94
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/interval.c
@@ -0,0 +1,1088 @@
+/* src/interfaces/ecpg/pgtypeslib/interval.c */
+
+#include "postgres_fe.h"
+
+#include <time.h>
+#include <math.h>
+#include <limits.h>
+
+#ifdef __FAST_MATH__
+#error -ffast-math is known to break this code
+#endif
+
+#include "common/string.h"
+#include "dt.h"
+#include "pgtypes_error.h"
+#include "pgtypes_interval.h"
+#include "pgtypeslib_extern.h"
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c
+ * and changed struct pg_tm to struct tm
+ */
+static void
+AdjustFractSeconds(double frac, struct /* pg_ */ tm *tm, fsec_t *fsec, int scale)
+{
+ int sec;
+
+ if (frac == 0)
+ return;
+ frac *= scale;
+ sec = (int) frac;
+ tm->tm_sec += sec;
+ frac -= sec;
+ *fsec += rint(frac * 1000000);
+}
+
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c
+ * and changed struct pg_tm to struct tm
+ */
+static void
+AdjustFractDays(double frac, struct /* pg_ */ tm *tm, fsec_t *fsec, int scale)
+{
+ int extra_days;
+
+ if (frac == 0)
+ return;
+ frac *= scale;
+ extra_days = (int) frac;
+ tm->tm_mday += extra_days;
+ frac -= extra_days;
+ AdjustFractSeconds(frac, tm, fsec, SECS_PER_DAY);
+}
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c */
+static int
+ParseISO8601Number(const char *str, char **endptr, int *ipart, double *fpart)
+{
+ double val;
+
+ if (!(isdigit((unsigned char) *str) || *str == '-' || *str == '.'))
+ return DTERR_BAD_FORMAT;
+ errno = 0;
+ val = strtod(str, endptr);
+ /* did we not see anything that looks like a double? */
+ if (*endptr == str || errno != 0)
+ return DTERR_BAD_FORMAT;
+ /* watch out for overflow */
+ if (val < INT_MIN || val > INT_MAX)
+ return DTERR_FIELD_OVERFLOW;
+ /* be very sure we truncate towards zero (cf dtrunc()) */
+ if (val >= 0)
+ *ipart = (int) floor(val);
+ else
+ *ipart = (int) -floor(-val);
+ *fpart = val - *ipart;
+ return 0;
+}
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c */
+static int
+ISO8601IntegerWidth(const char *fieldstart)
+{
+ /* We might have had a leading '-' */
+ if (*fieldstart == '-')
+ fieldstart++;
+ return strspn(fieldstart, "0123456789");
+}
+
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c
+ * and changed struct pg_tm to struct tm
+ */
+static inline void
+ClearPgTm(struct /* pg_ */ tm *tm, fsec_t *fsec)
+{
+ tm->tm_year = 0;
+ tm->tm_mon = 0;
+ tm->tm_mday = 0;
+ tm->tm_hour = 0;
+ tm->tm_min = 0;
+ tm->tm_sec = 0;
+ *fsec = 0;
+}
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c
+ *
+ * * changed struct pg_tm to struct tm
+ *
+ * * Made the function static
+ */
+static int
+DecodeISO8601Interval(char *str,
+ int *dtype, struct /* pg_ */ tm *tm, fsec_t *fsec)
+{
+ bool datepart = true;
+ bool havefield = false;
+
+ *dtype = DTK_DELTA;
+ ClearPgTm(tm, fsec);
+
+ if (strlen(str) < 2 || str[0] != 'P')
+ return DTERR_BAD_FORMAT;
+
+ str++;
+ while (*str)
+ {
+ char *fieldstart;
+ int val;
+ double fval;
+ char unit;
+ int dterr;
+
+ if (*str == 'T') /* T indicates the beginning of the time part */
+ {
+ datepart = false;
+ havefield = false;
+ str++;
+ continue;
+ }
+
+ fieldstart = str;
+ dterr = ParseISO8601Number(str, &str, &val, &fval);
+ if (dterr)
+ return dterr;
+
+ /*
+ * Note: we could step off the end of the string here. Code below
+ * *must* exit the loop if unit == '\0'.
+ */
+ unit = *str++;
+
+ if (datepart)
+ {
+ switch (unit) /* before T: Y M W D */
+ {
+ case 'Y':
+ tm->tm_year += val;
+ tm->tm_mon += rint(fval * MONTHS_PER_YEAR);
+ break;
+ case 'M':
+ tm->tm_mon += val;
+ AdjustFractDays(fval, tm, fsec, DAYS_PER_MONTH);
+ break;
+ case 'W':
+ tm->tm_mday += val * 7;
+ AdjustFractDays(fval, tm, fsec, 7);
+ break;
+ case 'D':
+ tm->tm_mday += val;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_DAY);
+ break;
+ case 'T': /* ISO 8601 4.4.3.3 Alternative Format / Basic */
+ case '\0':
+ if (ISO8601IntegerWidth(fieldstart) == 8 && !havefield)
+ {
+ tm->tm_year += val / 10000;
+ tm->tm_mon += (val / 100) % 100;
+ tm->tm_mday += val % 100;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_DAY);
+ if (unit == '\0')
+ return 0;
+ datepart = false;
+ havefield = false;
+ continue;
+ }
+ /* Else fall through to extended alternative format */
+ /* FALLTHROUGH */
+ case '-': /* ISO 8601 4.4.3.3 Alternative Format,
+ * Extended */
+ if (havefield)
+ return DTERR_BAD_FORMAT;
+
+ tm->tm_year += val;
+ tm->tm_mon += rint(fval * MONTHS_PER_YEAR);
+ if (unit == '\0')
+ return 0;
+ if (unit == 'T')
+ {
+ datepart = false;
+ havefield = false;
+ continue;
+ }
+
+ dterr = ParseISO8601Number(str, &str, &val, &fval);
+ if (dterr)
+ return dterr;
+ tm->tm_mon += val;
+ AdjustFractDays(fval, tm, fsec, DAYS_PER_MONTH);
+ if (*str == '\0')
+ return 0;
+ if (*str == 'T')
+ {
+ datepart = false;
+ havefield = false;
+ continue;
+ }
+ if (*str != '-')
+ return DTERR_BAD_FORMAT;
+ str++;
+
+ dterr = ParseISO8601Number(str, &str, &val, &fval);
+ if (dterr)
+ return dterr;
+ tm->tm_mday += val;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_DAY);
+ if (*str == '\0')
+ return 0;
+ if (*str == 'T')
+ {
+ datepart = false;
+ havefield = false;
+ continue;
+ }
+ return DTERR_BAD_FORMAT;
+ default:
+ /* not a valid date unit suffix */
+ return DTERR_BAD_FORMAT;
+ }
+ }
+ else
+ {
+ switch (unit) /* after T: H M S */
+ {
+ case 'H':
+ tm->tm_hour += val;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_HOUR);
+ break;
+ case 'M':
+ tm->tm_min += val;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_MINUTE);
+ break;
+ case 'S':
+ tm->tm_sec += val;
+ AdjustFractSeconds(fval, tm, fsec, 1);
+ break;
+ case '\0': /* ISO 8601 4.4.3.3 Alternative Format */
+ if (ISO8601IntegerWidth(fieldstart) == 6 && !havefield)
+ {
+ tm->tm_hour += val / 10000;
+ tm->tm_min += (val / 100) % 100;
+ tm->tm_sec += val % 100;
+ AdjustFractSeconds(fval, tm, fsec, 1);
+ return 0;
+ }
+ /* Else fall through to extended alternative format */
+ /* FALLTHROUGH */
+ case ':': /* ISO 8601 4.4.3.3 Alternative Format,
+ * Extended */
+ if (havefield)
+ return DTERR_BAD_FORMAT;
+
+ tm->tm_hour += val;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_HOUR);
+ if (unit == '\0')
+ return 0;
+
+ dterr = ParseISO8601Number(str, &str, &val, &fval);
+ if (dterr)
+ return dterr;
+ tm->tm_min += val;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_MINUTE);
+ if (*str == '\0')
+ return 0;
+ if (*str != ':')
+ return DTERR_BAD_FORMAT;
+ str++;
+
+ dterr = ParseISO8601Number(str, &str, &val, &fval);
+ if (dterr)
+ return dterr;
+ tm->tm_sec += val;
+ AdjustFractSeconds(fval, tm, fsec, 1);
+ if (*str == '\0')
+ return 0;
+ return DTERR_BAD_FORMAT;
+
+ default:
+ /* not a valid time unit suffix */
+ return DTERR_BAD_FORMAT;
+ }
+ }
+
+ havefield = true;
+ }
+
+ return 0;
+}
+
+
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c
+ * with 3 exceptions
+ *
+ * * changed struct pg_tm to struct tm
+ *
+ * * ECPG code called this without a 'range' parameter
+ * removed 'int range' from the argument list and
+ * places where DecodeTime is called; and added
+ * int range = INTERVAL_FULL_RANGE;
+ *
+ * * ECPG seems not to have a global IntervalStyle
+ * so added
+ * int IntervalStyle = INTSTYLE_POSTGRES;
+ */
+int
+DecodeInterval(char **field, int *ftype, int nf, /* int range, */
+ int *dtype, struct /* pg_ */ tm *tm, fsec_t *fsec)
+{
+ int IntervalStyle = INTSTYLE_POSTGRES_VERBOSE;
+ int range = INTERVAL_FULL_RANGE;
+ bool is_before = false;
+ char *cp;
+ int fmask = 0,
+ tmask,
+ type;
+ int i;
+ int dterr;
+ int val;
+ double fval;
+
+ *dtype = DTK_DELTA;
+ type = IGNORE_DTF;
+ ClearPgTm(tm, fsec);
+
+ /* read through list backwards to pick up units before values */
+ for (i = nf - 1; i >= 0; i--)
+ {
+ switch (ftype[i])
+ {
+ case DTK_TIME:
+ dterr = DecodeTime(field[i], /* range, */
+ &tmask, tm, fsec);
+ if (dterr)
+ return dterr;
+ type = DTK_DAY;
+ break;
+
+ case DTK_TZ:
+
+ /*
+ * Timezone is a token with a leading sign character and at
+ * least one digit; there could be ':', '.', '-' embedded in
+ * it as well.
+ */
+ Assert(*field[i] == '-' || *field[i] == '+');
+
+ /*
+ * Try for hh:mm or hh:mm:ss. If not, fall through to
+ * DTK_NUMBER case, which can handle signed float numbers and
+ * signed year-month values.
+ */
+ if (strchr(field[i] + 1, ':') != NULL &&
+ DecodeTime(field[i] + 1, /* INTERVAL_FULL_RANGE, */
+ &tmask, tm, fsec) == 0)
+ {
+ if (*field[i] == '-')
+ {
+ /* flip the sign on all fields */
+ tm->tm_hour = -tm->tm_hour;
+ tm->tm_min = -tm->tm_min;
+ tm->tm_sec = -tm->tm_sec;
+ *fsec = -(*fsec);
+ }
+
+ /*
+ * Set the next type to be a day, if units are not
+ * specified. This handles the case of '1 +02:03' since we
+ * are reading right to left.
+ */
+ type = DTK_DAY;
+ tmask = DTK_M(TZ);
+ break;
+ }
+ /* FALL THROUGH */
+
+ case DTK_DATE:
+ case DTK_NUMBER:
+ if (type == IGNORE_DTF)
+ {
+ /* use typmod to decide what rightmost field is */
+ switch (range)
+ {
+ case INTERVAL_MASK(YEAR):
+ type = DTK_YEAR;
+ break;
+ case INTERVAL_MASK(MONTH):
+ case INTERVAL_MASK(YEAR) | INTERVAL_MASK(MONTH):
+ type = DTK_MONTH;
+ break;
+ case INTERVAL_MASK(DAY):
+ type = DTK_DAY;
+ break;
+ case INTERVAL_MASK(HOUR):
+ case INTERVAL_MASK(DAY) | INTERVAL_MASK(HOUR):
+ case INTERVAL_MASK(DAY) | INTERVAL_MASK(HOUR) | INTERVAL_MASK(MINUTE):
+ case INTERVAL_MASK(DAY) | INTERVAL_MASK(HOUR) | INTERVAL_MASK(MINUTE) | INTERVAL_MASK(SECOND):
+ type = DTK_HOUR;
+ break;
+ case INTERVAL_MASK(MINUTE):
+ case INTERVAL_MASK(HOUR) | INTERVAL_MASK(MINUTE):
+ type = DTK_MINUTE;
+ break;
+ case INTERVAL_MASK(SECOND):
+ case INTERVAL_MASK(HOUR) | INTERVAL_MASK(MINUTE) | INTERVAL_MASK(SECOND):
+ case INTERVAL_MASK(MINUTE) | INTERVAL_MASK(SECOND):
+ type = DTK_SECOND;
+ break;
+ default:
+ type = DTK_SECOND;
+ break;
+ }
+ }
+
+ errno = 0;
+ val = strtoint(field[i], &cp, 10);
+ if (errno == ERANGE)
+ return DTERR_FIELD_OVERFLOW;
+
+ if (*cp == '-')
+ {
+ /* SQL "years-months" syntax */
+ int val2;
+
+ val2 = strtoint(cp + 1, &cp, 10);
+ if (errno == ERANGE || val2 < 0 || val2 >= MONTHS_PER_YEAR)
+ return DTERR_FIELD_OVERFLOW;
+ if (*cp != '\0')
+ return DTERR_BAD_FORMAT;
+ type = DTK_MONTH;
+ if (*field[i] == '-')
+ val2 = -val2;
+ val = val * MONTHS_PER_YEAR + val2;
+ fval = 0;
+ }
+ else if (*cp == '.')
+ {
+ errno = 0;
+ fval = strtod(cp, &cp);
+ if (*cp != '\0' || errno != 0)
+ return DTERR_BAD_FORMAT;
+
+ if (*field[i] == '-')
+ fval = -fval;
+ }
+ else if (*cp == '\0')
+ fval = 0;
+ else
+ return DTERR_BAD_FORMAT;
+
+ tmask = 0; /* DTK_M(type); */
+
+ switch (type)
+ {
+ case DTK_MICROSEC:
+ *fsec += rint(val + fval);
+ tmask = DTK_M(MICROSECOND);
+ break;
+
+ case DTK_MILLISEC:
+ *fsec += rint((val + fval) * 1000);
+ tmask = DTK_M(MILLISECOND);
+ break;
+
+ case DTK_SECOND:
+ tm->tm_sec += val;
+ *fsec += rint(fval * 1000000);
+
+ /*
+ * If any subseconds were specified, consider this
+ * microsecond and millisecond input as well.
+ */
+ if (fval == 0)
+ tmask = DTK_M(SECOND);
+ else
+ tmask = DTK_ALL_SECS_M;
+ break;
+
+ case DTK_MINUTE:
+ tm->tm_min += val;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_MINUTE);
+ tmask = DTK_M(MINUTE);
+ break;
+
+ case DTK_HOUR:
+ tm->tm_hour += val;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_HOUR);
+ tmask = DTK_M(HOUR);
+ type = DTK_DAY;
+ break;
+
+ case DTK_DAY:
+ tm->tm_mday += val;
+ AdjustFractSeconds(fval, tm, fsec, SECS_PER_DAY);
+ tmask = (fmask & DTK_M(DAY)) ? 0 : DTK_M(DAY);
+ break;
+
+ case DTK_WEEK:
+ tm->tm_mday += val * 7;
+ AdjustFractDays(fval, tm, fsec, 7);
+ tmask = (fmask & DTK_M(DAY)) ? 0 : DTK_M(DAY);
+ break;
+
+ case DTK_MONTH:
+ tm->tm_mon += val;
+ AdjustFractDays(fval, tm, fsec, DAYS_PER_MONTH);
+ tmask = DTK_M(MONTH);
+ break;
+
+ case DTK_YEAR:
+ tm->tm_year += val;
+ tm->tm_mon += rint(fval * MONTHS_PER_YEAR);
+ tmask = (fmask & DTK_M(YEAR)) ? 0 : DTK_M(YEAR);
+ break;
+
+ case DTK_DECADE:
+ tm->tm_year += val * 10;
+ tm->tm_mon += rint(fval * MONTHS_PER_YEAR * 10);
+ tmask = (fmask & DTK_M(YEAR)) ? 0 : DTK_M(YEAR);
+ break;
+
+ case DTK_CENTURY:
+ tm->tm_year += val * 100;
+ tm->tm_mon += rint(fval * MONTHS_PER_YEAR * 100);
+ tmask = (fmask & DTK_M(YEAR)) ? 0 : DTK_M(YEAR);
+ break;
+
+ case DTK_MILLENNIUM:
+ tm->tm_year += val * 1000;
+ tm->tm_mon += rint(fval * MONTHS_PER_YEAR * 1000);
+ tmask = (fmask & DTK_M(YEAR)) ? 0 : DTK_M(YEAR);
+ break;
+
+ default:
+ return DTERR_BAD_FORMAT;
+ }
+ break;
+
+ case DTK_STRING:
+ case DTK_SPECIAL:
+ type = DecodeUnits(i, field[i], &val);
+ if (type == IGNORE_DTF)
+ continue;
+
+ tmask = 0; /* DTK_M(type); */
+ switch (type)
+ {
+ case UNITS:
+ type = val;
+ break;
+
+ case AGO:
+ is_before = true;
+ type = val;
+ break;
+
+ case RESERV:
+ tmask = (DTK_DATE_M | DTK_TIME_M);
+ *dtype = val;
+ break;
+
+ default:
+ return DTERR_BAD_FORMAT;
+ }
+ break;
+
+ default:
+ return DTERR_BAD_FORMAT;
+ }
+
+ if (tmask & fmask)
+ return DTERR_BAD_FORMAT;
+ fmask |= tmask;
+ }
+
+ /* ensure that at least one time field has been found */
+ if (fmask == 0)
+ return DTERR_BAD_FORMAT;
+
+ /* ensure fractional seconds are fractional */
+ if (*fsec != 0)
+ {
+ int sec;
+
+ sec = *fsec / USECS_PER_SEC;
+ *fsec -= sec * USECS_PER_SEC;
+ tm->tm_sec += sec;
+ }
+
+ /*----------
+ * The SQL standard defines the interval literal
+ * '-1 1:00:00'
+ * to mean "negative 1 days and negative 1 hours", while Postgres
+ * traditionally treats this as meaning "negative 1 days and positive
+ * 1 hours". In SQL_STANDARD intervalstyle, we apply the leading sign
+ * to all fields if there are no other explicit signs.
+ *
+ * We leave the signs alone if there are additional explicit signs.
+ * This protects us against misinterpreting postgres-style dump output,
+ * since the postgres-style output code has always put an explicit sign on
+ * all fields following a negative field. But note that SQL-spec output
+ * is ambiguous and can be misinterpreted on load! (So it's best practice
+ * to dump in postgres style, not SQL style.)
+ *----------
+ */
+ if (IntervalStyle == INTSTYLE_SQL_STANDARD && *field[0] == '-')
+ {
+ /* Check for additional explicit signs */
+ bool more_signs = false;
+
+ for (i = 1; i < nf; i++)
+ {
+ if (*field[i] == '-' || *field[i] == '+')
+ {
+ more_signs = true;
+ break;
+ }
+ }
+
+ if (!more_signs)
+ {
+ /*
+ * Rather than re-determining which field was field[0], just force
+ * 'em all negative.
+ */
+ if (*fsec > 0)
+ *fsec = -(*fsec);
+ if (tm->tm_sec > 0)
+ tm->tm_sec = -tm->tm_sec;
+ if (tm->tm_min > 0)
+ tm->tm_min = -tm->tm_min;
+ if (tm->tm_hour > 0)
+ tm->tm_hour = -tm->tm_hour;
+ if (tm->tm_mday > 0)
+ tm->tm_mday = -tm->tm_mday;
+ if (tm->tm_mon > 0)
+ tm->tm_mon = -tm->tm_mon;
+ if (tm->tm_year > 0)
+ tm->tm_year = -tm->tm_year;
+ }
+ }
+
+ /* finally, AGO negates everything */
+ if (is_before)
+ {
+ *fsec = -(*fsec);
+ tm->tm_sec = -tm->tm_sec;
+ tm->tm_min = -tm->tm_min;
+ tm->tm_hour = -tm->tm_hour;
+ tm->tm_mday = -tm->tm_mday;
+ tm->tm_mon = -tm->tm_mon;
+ tm->tm_year = -tm->tm_year;
+ }
+
+ return 0;
+}
+
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c */
+static char *
+AddVerboseIntPart(char *cp, int value, const char *units,
+ bool *is_zero, bool *is_before)
+{
+ if (value == 0)
+ return cp;
+ /* first nonzero value sets is_before */
+ if (*is_zero)
+ {
+ *is_before = (value < 0);
+ value = abs(value);
+ }
+ else if (*is_before)
+ value = -value;
+ sprintf(cp, " %d %s%s", value, units, (value == 1) ? "" : "s");
+ *is_zero = false;
+ return cp + strlen(cp);
+}
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c */
+static char *
+AddPostgresIntPart(char *cp, int value, const char *units,
+ bool *is_zero, bool *is_before)
+{
+ if (value == 0)
+ return cp;
+ sprintf(cp, "%s%s%d %s%s",
+ (!*is_zero) ? " " : "",
+ (*is_before && value > 0) ? "+" : "",
+ value,
+ units,
+ (value != 1) ? "s" : "");
+
+ /*
+ * Each nonzero field sets is_before for (only) the next one. This is a
+ * tad bizarre but it's how it worked before...
+ */
+ *is_before = (value < 0);
+ *is_zero = false;
+ return cp + strlen(cp);
+}
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c */
+static char *
+AddISO8601IntPart(char *cp, int value, char units)
+{
+ if (value == 0)
+ return cp;
+ sprintf(cp, "%d%c", value, units);
+ return cp + strlen(cp);
+}
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c */
+static void
+AppendSeconds(char *cp, int sec, fsec_t fsec, int precision, bool fillzeros)
+{
+ if (fsec == 0)
+ {
+ if (fillzeros)
+ sprintf(cp, "%02d", abs(sec));
+ else
+ sprintf(cp, "%d", abs(sec));
+ }
+ else
+ {
+ if (fillzeros)
+ sprintf(cp, "%02d.%0*d", abs(sec), precision, (int) Abs(fsec));
+ else
+ sprintf(cp, "%d.%0*d", abs(sec), precision, (int) Abs(fsec));
+ TrimTrailingZeros(cp);
+ }
+}
+
+
+/* copy&pasted from .../src/backend/utils/adt/datetime.c
+ *
+ * Change pg_tm to tm
+ */
+
+void
+EncodeInterval(struct /* pg_ */ tm *tm, fsec_t fsec, int style, char *str)
+{
+ char *cp = str;
+ int year = tm->tm_year;
+ int mon = tm->tm_mon;
+ int mday = tm->tm_mday;
+ int hour = tm->tm_hour;
+ int min = tm->tm_min;
+ int sec = tm->tm_sec;
+ bool is_before = false;
+ bool is_zero = true;
+
+ /*
+ * The sign of year and month are guaranteed to match, since they are
+ * stored internally as "month". But we'll need to check for is_before and
+ * is_zero when determining the signs of day and hour/minute/seconds
+ * fields.
+ */
+ switch (style)
+ {
+ /* SQL Standard interval format */
+ case INTSTYLE_SQL_STANDARD:
+ {
+ bool has_negative = year < 0 || mon < 0 ||
+ mday < 0 || hour < 0 ||
+ min < 0 || sec < 0 || fsec < 0;
+ bool has_positive = year > 0 || mon > 0 ||
+ mday > 0 || hour > 0 ||
+ min > 0 || sec > 0 || fsec > 0;
+ bool has_year_month = year != 0 || mon != 0;
+ bool has_day_time = mday != 0 || hour != 0 ||
+ min != 0 || sec != 0 || fsec != 0;
+ bool has_day = mday != 0;
+ bool sql_standard_value = !(has_negative && has_positive) &&
+ !(has_year_month && has_day_time);
+
+ /*
+ * SQL Standard wants only 1 "<sign>" preceding the whole
+ * interval ... but can't do that if mixed signs.
+ */
+ if (has_negative && sql_standard_value)
+ {
+ *cp++ = '-';
+ year = -year;
+ mon = -mon;
+ mday = -mday;
+ hour = -hour;
+ min = -min;
+ sec = -sec;
+ fsec = -fsec;
+ }
+
+ if (!has_negative && !has_positive)
+ {
+ sprintf(cp, "0");
+ }
+ else if (!sql_standard_value)
+ {
+ /*
+ * For non sql-standard interval values, force outputting
+ * the signs to avoid ambiguities with intervals with
+ * mixed sign components.
+ */
+ char year_sign = (year < 0 || mon < 0) ? '-' : '+';
+ char day_sign = (mday < 0) ? '-' : '+';
+ char sec_sign = (hour < 0 || min < 0 ||
+ sec < 0 || fsec < 0) ? '-' : '+';
+
+ sprintf(cp, "%c%d-%d %c%d %c%d:%02d:",
+ year_sign, abs(year), abs(mon),
+ day_sign, abs(mday),
+ sec_sign, abs(hour), abs(min));
+ cp += strlen(cp);
+ AppendSeconds(cp, sec, fsec, MAX_INTERVAL_PRECISION, true);
+ }
+ else if (has_year_month)
+ {
+ sprintf(cp, "%d-%d", year, mon);
+ }
+ else if (has_day)
+ {
+ sprintf(cp, "%d %d:%02d:", mday, hour, min);
+ cp += strlen(cp);
+ AppendSeconds(cp, sec, fsec, MAX_INTERVAL_PRECISION, true);
+ }
+ else
+ {
+ sprintf(cp, "%d:%02d:", hour, min);
+ cp += strlen(cp);
+ AppendSeconds(cp, sec, fsec, MAX_INTERVAL_PRECISION, true);
+ }
+ }
+ break;
+
+ /* ISO 8601 "time-intervals by duration only" */
+ case INTSTYLE_ISO_8601:
+ /* special-case zero to avoid printing nothing */
+ if (year == 0 && mon == 0 && mday == 0 &&
+ hour == 0 && min == 0 && sec == 0 && fsec == 0)
+ {
+ sprintf(cp, "PT0S");
+ break;
+ }
+ *cp++ = 'P';
+ cp = AddISO8601IntPart(cp, year, 'Y');
+ cp = AddISO8601IntPart(cp, mon, 'M');
+ cp = AddISO8601IntPart(cp, mday, 'D');
+ if (hour != 0 || min != 0 || sec != 0 || fsec != 0)
+ *cp++ = 'T';
+ cp = AddISO8601IntPart(cp, hour, 'H');
+ cp = AddISO8601IntPart(cp, min, 'M');
+ if (sec != 0 || fsec != 0)
+ {
+ if (sec < 0 || fsec < 0)
+ *cp++ = '-';
+ AppendSeconds(cp, sec, fsec, MAX_INTERVAL_PRECISION, false);
+ cp += strlen(cp);
+ *cp++ = 'S';
+ *cp = '\0';
+ }
+ break;
+
+ /* Compatible with postgresql < 8.4 when DateStyle = 'iso' */
+ case INTSTYLE_POSTGRES:
+ cp = AddPostgresIntPart(cp, year, "year", &is_zero, &is_before);
+ cp = AddPostgresIntPart(cp, mon, "mon", &is_zero, &is_before);
+ cp = AddPostgresIntPart(cp, mday, "day", &is_zero, &is_before);
+ if (is_zero || hour != 0 || min != 0 || sec != 0 || fsec != 0)
+ {
+ bool minus = (hour < 0 || min < 0 || sec < 0 || fsec < 0);
+
+ sprintf(cp, "%s%s%02d:%02d:",
+ is_zero ? "" : " ",
+ (minus ? "-" : (is_before ? "+" : "")),
+ abs(hour), abs(min));
+ cp += strlen(cp);
+ AppendSeconds(cp, sec, fsec, MAX_INTERVAL_PRECISION, true);
+ }
+ break;
+
+ /* Compatible with postgresql < 8.4 when DateStyle != 'iso' */
+ case INTSTYLE_POSTGRES_VERBOSE:
+ default:
+ strcpy(cp, "@");
+ cp++;
+ cp = AddVerboseIntPart(cp, year, "year", &is_zero, &is_before);
+ cp = AddVerboseIntPart(cp, mon, "mon", &is_zero, &is_before);
+ cp = AddVerboseIntPart(cp, mday, "day", &is_zero, &is_before);
+ cp = AddVerboseIntPart(cp, hour, "hour", &is_zero, &is_before);
+ cp = AddVerboseIntPart(cp, min, "min", &is_zero, &is_before);
+ if (sec != 0 || fsec != 0)
+ {
+ *cp++ = ' ';
+ if (sec < 0 || (sec == 0 && fsec < 0))
+ {
+ if (is_zero)
+ is_before = true;
+ else if (!is_before)
+ *cp++ = '-';
+ }
+ else if (is_before)
+ *cp++ = '-';
+ AppendSeconds(cp, sec, fsec, MAX_INTERVAL_PRECISION, false);
+ cp += strlen(cp);
+ /* We output "ago", not negatives, so use abs(). */
+ sprintf(cp, " sec%s",
+ (abs(sec) != 1 || fsec != 0) ? "s" : "");
+ is_zero = false;
+ }
+ /* identically zero? then put in a unitless zero... */
+ if (is_zero)
+ strcat(cp, " 0");
+ if (is_before)
+ strcat(cp, " ago");
+ break;
+ }
+}
+
+
+/* interval2tm()
+ * Convert an interval data type to a tm structure.
+ */
+static int
+interval2tm(interval span, struct tm *tm, fsec_t *fsec)
+{
+ int64 time;
+
+ if (span.month != 0)
+ {
+ tm->tm_year = span.month / MONTHS_PER_YEAR;
+ tm->tm_mon = span.month % MONTHS_PER_YEAR;
+ }
+ else
+ {
+ tm->tm_year = 0;
+ tm->tm_mon = 0;
+ }
+
+ time = span.time;
+
+ tm->tm_mday = time / USECS_PER_DAY;
+ time -= tm->tm_mday * USECS_PER_DAY;
+ tm->tm_hour = time / USECS_PER_HOUR;
+ time -= tm->tm_hour * USECS_PER_HOUR;
+ tm->tm_min = time / USECS_PER_MINUTE;
+ time -= tm->tm_min * USECS_PER_MINUTE;
+ tm->tm_sec = time / USECS_PER_SEC;
+ *fsec = time - (tm->tm_sec * USECS_PER_SEC);
+
+ return 0;
+} /* interval2tm() */
+
+static int
+tm2interval(struct tm *tm, fsec_t fsec, interval * span)
+{
+ if ((double) tm->tm_year * MONTHS_PER_YEAR + tm->tm_mon > INT_MAX ||
+ (double) tm->tm_year * MONTHS_PER_YEAR + tm->tm_mon < INT_MIN)
+ return -1;
+ span->month = tm->tm_year * MONTHS_PER_YEAR + tm->tm_mon;
+ span->time = (((((((tm->tm_mday * INT64CONST(24)) +
+ tm->tm_hour) * INT64CONST(60)) +
+ tm->tm_min) * INT64CONST(60)) +
+ tm->tm_sec) * USECS_PER_SEC) + fsec;
+
+ return 0;
+} /* tm2interval() */
+
+interval *
+PGTYPESinterval_new(void)
+{
+ interval *result;
+
+ result = (interval *) pgtypes_alloc(sizeof(interval));
+ /* result can be NULL if we run out of memory */
+ return result;
+}
+
+void
+PGTYPESinterval_free(interval * intvl)
+{
+ free(intvl);
+}
+
+interval *
+PGTYPESinterval_from_asc(char *str, char **endptr)
+{
+ interval *result = NULL;
+ fsec_t fsec;
+ struct tm tt,
+ *tm = &tt;
+ int dtype;
+ int nf;
+ char *field[MAXDATEFIELDS];
+ int ftype[MAXDATEFIELDS];
+ char lowstr[MAXDATELEN + MAXDATEFIELDS];
+ char *realptr;
+ char **ptr = (endptr != NULL) ? endptr : &realptr;
+
+ tm->tm_year = 0;
+ tm->tm_mon = 0;
+ tm->tm_mday = 0;
+ tm->tm_hour = 0;
+ tm->tm_min = 0;
+ tm->tm_sec = 0;
+ fsec = 0;
+
+ if (strlen(str) > MAXDATELEN)
+ {
+ errno = PGTYPES_INTVL_BAD_INTERVAL;
+ return NULL;
+ }
+
+ if (ParseDateTime(str, lowstr, field, ftype, &nf, ptr) != 0 ||
+ (DecodeInterval(field, ftype, nf, &dtype, tm, &fsec) != 0 &&
+ DecodeISO8601Interval(str, &dtype, tm, &fsec) != 0))
+ {
+ errno = PGTYPES_INTVL_BAD_INTERVAL;
+ return NULL;
+ }
+
+ result = (interval *) pgtypes_alloc(sizeof(interval));
+ if (!result)
+ return NULL;
+
+ if (dtype != DTK_DELTA)
+ {
+ errno = PGTYPES_INTVL_BAD_INTERVAL;
+ free(result);
+ return NULL;
+ }
+
+ if (tm2interval(tm, fsec, result) != 0)
+ {
+ errno = PGTYPES_INTVL_BAD_INTERVAL;
+ free(result);
+ return NULL;
+ }
+
+ errno = 0;
+ return result;
+}
+
+char *
+PGTYPESinterval_to_asc(interval * span)
+{
+ struct tm tt,
+ *tm = &tt;
+ fsec_t fsec;
+ char buf[MAXDATELEN + 1];
+ int IntervalStyle = INTSTYLE_POSTGRES_VERBOSE;
+
+ if (interval2tm(*span, tm, &fsec) != 0)
+ {
+ errno = PGTYPES_INTVL_BAD_INTERVAL;
+ return NULL;
+ }
+
+ EncodeInterval(tm, fsec, IntervalStyle, buf);
+
+ return pgtypes_strdup(buf);
+}
+
+int
+PGTYPESinterval_copy(interval * intvlsrc, interval * intvldest)
+{
+ intvldest->time = intvlsrc->time;
+ intvldest->month = intvlsrc->month;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/pgtypeslib/numeric.c b/src/interfaces/ecpg/pgtypeslib/numeric.c
new file mode 100644
index 0000000..34efc90
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/numeric.c
@@ -0,0 +1,1593 @@
+/* src/interfaces/ecpg/pgtypeslib/numeric.c */
+
+#include "postgres_fe.h"
+
+#include <ctype.h>
+#include <float.h>
+#include <limits.h>
+
+#include "pgtypes_error.h"
+#include "pgtypes_numeric.h"
+#include "pgtypeslib_extern.h"
+
+#define Max(x, y) ((x) > (y) ? (x) : (y))
+#define Min(x, y) ((x) < (y) ? (x) : (y))
+
+#define init_var(v) memset(v,0,sizeof(numeric))
+
+#define digitbuf_alloc(size) ((NumericDigit *) pgtypes_alloc(size))
+#define digitbuf_free(buf) \
+ do { \
+ if ((buf) != NULL) \
+ free(buf); \
+ } while (0)
+
+
+/* ----------
+ * alloc_var() -
+ *
+ * Allocate a digit buffer of ndigits digits (plus a spare digit for rounding)
+ * ----------
+ */
+static int
+alloc_var(numeric *var, int ndigits)
+{
+ digitbuf_free(var->buf);
+ var->buf = digitbuf_alloc(ndigits + 1);
+ if (var->buf == NULL)
+ return -1;
+ var->buf[0] = 0;
+ var->digits = var->buf + 1;
+ var->ndigits = ndigits;
+ return 0;
+}
+
+numeric *
+PGTYPESnumeric_new(void)
+{
+ numeric *var;
+
+ if ((var = (numeric *) pgtypes_alloc(sizeof(numeric))) == NULL)
+ return NULL;
+
+ if (alloc_var(var, 0) < 0)
+ {
+ free(var);
+ return NULL;
+ }
+
+ return var;
+}
+
+decimal *
+PGTYPESdecimal_new(void)
+{
+ decimal *var;
+
+ if ((var = (decimal *) pgtypes_alloc(sizeof(decimal))) == NULL)
+ return NULL;
+
+ memset(var, 0, sizeof(decimal));
+
+ return var;
+}
+
+/* ----------
+ * set_var_from_str()
+ *
+ * Parse a string and put the number into a variable
+ * ----------
+ */
+static int
+set_var_from_str(char *str, char **ptr, numeric *dest)
+{
+ bool have_dp = false;
+ int i = 0;
+
+ errno = 0;
+ *ptr = str;
+ while (*(*ptr))
+ {
+ if (!isspace((unsigned char) *(*ptr)))
+ break;
+ (*ptr)++;
+ }
+
+ if (pg_strncasecmp(*ptr, "NaN", 3) == 0)
+ {
+ *ptr += 3;
+ dest->sign = NUMERIC_NAN;
+
+ /* Should be nothing left but spaces */
+ while (*(*ptr))
+ {
+ if (!isspace((unsigned char) *(*ptr)))
+ {
+ errno = PGTYPES_NUM_BAD_NUMERIC;
+ return -1;
+ }
+ (*ptr)++;
+ }
+
+ return 0;
+ }
+
+ if (alloc_var(dest, strlen((*ptr))) < 0)
+ return -1;
+ dest->weight = -1;
+ dest->dscale = 0;
+ dest->sign = NUMERIC_POS;
+
+ switch (*(*ptr))
+ {
+ case '+':
+ dest->sign = NUMERIC_POS;
+ (*ptr)++;
+ break;
+
+ case '-':
+ dest->sign = NUMERIC_NEG;
+ (*ptr)++;
+ break;
+ }
+
+ if (*(*ptr) == '.')
+ {
+ have_dp = true;
+ (*ptr)++;
+ }
+
+ if (!isdigit((unsigned char) *(*ptr)))
+ {
+ errno = PGTYPES_NUM_BAD_NUMERIC;
+ return -1;
+ }
+
+ while (*(*ptr))
+ {
+ if (isdigit((unsigned char) *(*ptr)))
+ {
+ dest->digits[i++] = *(*ptr)++ - '0';
+ if (!have_dp)
+ dest->weight++;
+ else
+ dest->dscale++;
+ }
+ else if (*(*ptr) == '.')
+ {
+ if (have_dp)
+ {
+ errno = PGTYPES_NUM_BAD_NUMERIC;
+ return -1;
+ }
+ have_dp = true;
+ (*ptr)++;
+ }
+ else
+ break;
+ }
+ dest->ndigits = i;
+
+ /* Handle exponent, if any */
+ if (*(*ptr) == 'e' || *(*ptr) == 'E')
+ {
+ long exponent;
+ char *endptr;
+
+ (*ptr)++;
+ exponent = strtol(*ptr, &endptr, 10);
+ if (endptr == (*ptr))
+ {
+ errno = PGTYPES_NUM_BAD_NUMERIC;
+ return -1;
+ }
+ (*ptr) = endptr;
+ if (exponent >= INT_MAX / 2 || exponent <= -(INT_MAX / 2))
+ {
+ errno = PGTYPES_NUM_BAD_NUMERIC;
+ return -1;
+ }
+ dest->weight += (int) exponent;
+ dest->dscale -= (int) exponent;
+ if (dest->dscale < 0)
+ dest->dscale = 0;
+ }
+
+ /* Should be nothing left but spaces */
+ while (*(*ptr))
+ {
+ if (!isspace((unsigned char) *(*ptr)))
+ {
+ errno = PGTYPES_NUM_BAD_NUMERIC;
+ return -1;
+ }
+ (*ptr)++;
+ }
+
+ /* Strip any leading zeroes */
+ while (dest->ndigits > 0 && *(dest->digits) == 0)
+ {
+ (dest->digits)++;
+ (dest->weight)--;
+ (dest->ndigits)--;
+ }
+ if (dest->ndigits == 0)
+ dest->weight = 0;
+
+ dest->rscale = dest->dscale;
+ return 0;
+}
+
+
+/* ----------
+ * get_str_from_var() -
+ *
+ * Convert a var to text representation (guts of numeric_out).
+ * CAUTION: var's contents may be modified by rounding!
+ * ----------
+ */
+static char *
+get_str_from_var(numeric *var, int dscale)
+{
+ char *str;
+ char *cp;
+ int i;
+ int d;
+
+ if (var->sign == NUMERIC_NAN)
+ {
+ str = (char *) pgtypes_alloc(4);
+ if (str == NULL)
+ return NULL;
+ sprintf(str, "NaN");
+ return str;
+ }
+
+ /*
+ * Check if we must round up before printing the value and do so.
+ */
+ i = dscale + var->weight + 1;
+ if (i >= 0 && var->ndigits > i)
+ {
+ int carry = (var->digits[i] > 4) ? 1 : 0;
+
+ var->ndigits = i;
+
+ while (carry)
+ {
+ carry += var->digits[--i];
+ var->digits[i] = carry % 10;
+ carry /= 10;
+ }
+
+ if (i < 0)
+ {
+ var->digits--;
+ var->ndigits++;
+ var->weight++;
+ }
+ }
+ else
+ var->ndigits = Max(0, Min(i, var->ndigits));
+
+ /*
+ * Allocate space for the result
+ */
+ if ((str = (char *) pgtypes_alloc(Max(0, dscale) + Max(0, var->weight) + 4)) == NULL)
+ return NULL;
+ cp = str;
+
+ /*
+ * Output a dash for negative values
+ */
+ if (var->sign == NUMERIC_NEG)
+ *cp++ = '-';
+
+ /*
+ * Output all digits before the decimal point
+ */
+ i = Max(var->weight, 0);
+ d = 0;
+
+ while (i >= 0)
+ {
+ if (i <= var->weight && d < var->ndigits)
+ *cp++ = var->digits[d++] + '0';
+ else
+ *cp++ = '0';
+ i--;
+ }
+
+ /*
+ * If requested, output a decimal point and all the digits that follow it.
+ */
+ if (dscale > 0)
+ {
+ *cp++ = '.';
+ while (i >= -dscale)
+ {
+ if (i <= var->weight && d < var->ndigits)
+ *cp++ = var->digits[d++] + '0';
+ else
+ *cp++ = '0';
+ i--;
+ }
+ }
+
+ /*
+ * terminate the string and return it
+ */
+ *cp = '\0';
+ return str;
+}
+
+numeric *
+PGTYPESnumeric_from_asc(char *str, char **endptr)
+{
+ numeric *value = (numeric *) pgtypes_alloc(sizeof(numeric));
+ int ret;
+
+ char *realptr;
+ char **ptr = (endptr != NULL) ? endptr : &realptr;
+
+ if (!value)
+ return NULL;
+
+ ret = set_var_from_str(str, ptr, value);
+ if (ret)
+ {
+ PGTYPESnumeric_free(value);
+ return NULL;
+ }
+
+ return value;
+}
+
+char *
+PGTYPESnumeric_to_asc(numeric *num, int dscale)
+{
+ numeric *numcopy = PGTYPESnumeric_new();
+ char *s;
+
+ if (numcopy == NULL)
+ return NULL;
+
+ if (PGTYPESnumeric_copy(num, numcopy) < 0)
+ {
+ PGTYPESnumeric_free(numcopy);
+ return NULL;
+ }
+
+ if (dscale < 0)
+ dscale = num->dscale;
+
+ /* get_str_from_var may change its argument */
+ s = get_str_from_var(numcopy, dscale);
+ PGTYPESnumeric_free(numcopy);
+ return s;
+}
+
+/* ----------
+ * zero_var() -
+ *
+ * Set a variable to ZERO.
+ * Note: rscale and dscale are not touched.
+ * ----------
+ */
+static void
+zero_var(numeric *var)
+{
+ digitbuf_free(var->buf);
+ var->buf = NULL;
+ var->digits = NULL;
+ var->ndigits = 0;
+ var->weight = 0; /* by convention; doesn't really matter */
+ var->sign = NUMERIC_POS; /* anything but NAN... */
+}
+
+void
+PGTYPESnumeric_free(numeric *var)
+{
+ digitbuf_free(var->buf);
+ free(var);
+}
+
+void
+PGTYPESdecimal_free(decimal *var)
+{
+ free(var);
+}
+
+/* ----------
+ * cmp_abs() -
+ *
+ * Compare the absolute values of var1 and var2
+ * Returns: -1 for ABS(var1) < ABS(var2)
+ * 0 for ABS(var1) == ABS(var2)
+ * 1 for ABS(var1) > ABS(var2)
+ * ----------
+ */
+static int
+cmp_abs(numeric *var1, numeric *var2)
+{
+ int i1 = 0;
+ int i2 = 0;
+ int w1 = var1->weight;
+ int w2 = var2->weight;
+ int stat;
+
+ while (w1 > w2 && i1 < var1->ndigits)
+ {
+ if (var1->digits[i1++] != 0)
+ return 1;
+ w1--;
+ }
+ while (w2 > w1 && i2 < var2->ndigits)
+ {
+ if (var2->digits[i2++] != 0)
+ return -1;
+ w2--;
+ }
+
+ if (w1 == w2)
+ {
+ while (i1 < var1->ndigits && i2 < var2->ndigits)
+ {
+ stat = var1->digits[i1++] - var2->digits[i2++];
+ if (stat)
+ {
+ if (stat > 0)
+ return 1;
+ return -1;
+ }
+ }
+ }
+
+ while (i1 < var1->ndigits)
+ {
+ if (var1->digits[i1++] != 0)
+ return 1;
+ }
+ while (i2 < var2->ndigits)
+ {
+ if (var2->digits[i2++] != 0)
+ return -1;
+ }
+
+ return 0;
+}
+
+
+/* ----------
+ * add_abs() -
+ *
+ * Add the absolute values of two variables into result.
+ * result might point to one of the operands without danger.
+ * ----------
+ */
+static int
+add_abs(numeric *var1, numeric *var2, numeric *result)
+{
+ NumericDigit *res_buf;
+ NumericDigit *res_digits;
+ int res_ndigits;
+ int res_weight;
+ int res_rscale;
+ int res_dscale;
+ int i,
+ i1,
+ i2;
+ int carry = 0;
+
+ /* copy these values into local vars for speed in inner loop */
+ int var1ndigits = var1->ndigits;
+ int var2ndigits = var2->ndigits;
+ NumericDigit *var1digits = var1->digits;
+ NumericDigit *var2digits = var2->digits;
+
+ res_weight = Max(var1->weight, var2->weight) + 1;
+ res_rscale = Max(var1->rscale, var2->rscale);
+ res_dscale = Max(var1->dscale, var2->dscale);
+ res_ndigits = res_rscale + res_weight + 1;
+ if (res_ndigits <= 0)
+ res_ndigits = 1;
+
+ if ((res_buf = digitbuf_alloc(res_ndigits)) == NULL)
+ return -1;
+ res_digits = res_buf;
+
+ i1 = res_rscale + var1->weight + 1;
+ i2 = res_rscale + var2->weight + 1;
+ for (i = res_ndigits - 1; i >= 0; i--)
+ {
+ i1--;
+ i2--;
+ if (i1 >= 0 && i1 < var1ndigits)
+ carry += var1digits[i1];
+ if (i2 >= 0 && i2 < var2ndigits)
+ carry += var2digits[i2];
+
+ if (carry >= 10)
+ {
+ res_digits[i] = carry - 10;
+ carry = 1;
+ }
+ else
+ {
+ res_digits[i] = carry;
+ carry = 0;
+ }
+ }
+
+ while (res_ndigits > 0 && *res_digits == 0)
+ {
+ res_digits++;
+ res_weight--;
+ res_ndigits--;
+ }
+ while (res_ndigits > 0 && res_digits[res_ndigits - 1] == 0)
+ res_ndigits--;
+
+ if (res_ndigits == 0)
+ res_weight = 0;
+
+ digitbuf_free(result->buf);
+ result->ndigits = res_ndigits;
+ result->buf = res_buf;
+ result->digits = res_digits;
+ result->weight = res_weight;
+ result->rscale = res_rscale;
+ result->dscale = res_dscale;
+
+ return 0;
+}
+
+
+/* ----------
+ * sub_abs() -
+ *
+ * Subtract the absolute value of var2 from the absolute value of var1
+ * and store in result. result might point to one of the operands
+ * without danger.
+ *
+ * ABS(var1) MUST BE GREATER OR EQUAL ABS(var2) !!!
+ * ----------
+ */
+static int
+sub_abs(numeric *var1, numeric *var2, numeric *result)
+{
+ NumericDigit *res_buf;
+ NumericDigit *res_digits;
+ int res_ndigits;
+ int res_weight;
+ int res_rscale;
+ int res_dscale;
+ int i,
+ i1,
+ i2;
+ int borrow = 0;
+
+ /* copy these values into local vars for speed in inner loop */
+ int var1ndigits = var1->ndigits;
+ int var2ndigits = var2->ndigits;
+ NumericDigit *var1digits = var1->digits;
+ NumericDigit *var2digits = var2->digits;
+
+ res_weight = var1->weight;
+ res_rscale = Max(var1->rscale, var2->rscale);
+ res_dscale = Max(var1->dscale, var2->dscale);
+ res_ndigits = res_rscale + res_weight + 1;
+ if (res_ndigits <= 0)
+ res_ndigits = 1;
+
+ if ((res_buf = digitbuf_alloc(res_ndigits)) == NULL)
+ return -1;
+ res_digits = res_buf;
+
+ i1 = res_rscale + var1->weight + 1;
+ i2 = res_rscale + var2->weight + 1;
+ for (i = res_ndigits - 1; i >= 0; i--)
+ {
+ i1--;
+ i2--;
+ if (i1 >= 0 && i1 < var1ndigits)
+ borrow += var1digits[i1];
+ if (i2 >= 0 && i2 < var2ndigits)
+ borrow -= var2digits[i2];
+
+ if (borrow < 0)
+ {
+ res_digits[i] = borrow + 10;
+ borrow = -1;
+ }
+ else
+ {
+ res_digits[i] = borrow;
+ borrow = 0;
+ }
+ }
+
+ while (res_ndigits > 0 && *res_digits == 0)
+ {
+ res_digits++;
+ res_weight--;
+ res_ndigits--;
+ }
+ while (res_ndigits > 0 && res_digits[res_ndigits - 1] == 0)
+ res_ndigits--;
+
+ if (res_ndigits == 0)
+ res_weight = 0;
+
+ digitbuf_free(result->buf);
+ result->ndigits = res_ndigits;
+ result->buf = res_buf;
+ result->digits = res_digits;
+ result->weight = res_weight;
+ result->rscale = res_rscale;
+ result->dscale = res_dscale;
+
+ return 0;
+}
+
+/* ----------
+ * add_var() -
+ *
+ * Full version of add functionality on variable level (handling signs).
+ * result might point to one of the operands too without danger.
+ * ----------
+ */
+int
+PGTYPESnumeric_add(numeric *var1, numeric *var2, numeric *result)
+{
+ /*
+ * Decide on the signs of the two variables what to do
+ */
+ if (var1->sign == NUMERIC_POS)
+ {
+ if (var2->sign == NUMERIC_POS)
+ {
+ /*
+ * Both are positive result = +(ABS(var1) + ABS(var2))
+ */
+ if (add_abs(var1, var2, result) != 0)
+ return -1;
+ result->sign = NUMERIC_POS;
+ }
+ else
+ {
+ /*
+ * var1 is positive, var2 is negative Must compare absolute values
+ */
+ switch (cmp_abs(var1, var2))
+ {
+ case 0:
+ /* ----------
+ * ABS(var1) == ABS(var2)
+ * result = ZERO
+ * ----------
+ */
+ zero_var(result);
+ result->rscale = Max(var1->rscale, var2->rscale);
+ result->dscale = Max(var1->dscale, var2->dscale);
+ break;
+
+ case 1:
+ /* ----------
+ * ABS(var1) > ABS(var2)
+ * result = +(ABS(var1) - ABS(var2))
+ * ----------
+ */
+ if (sub_abs(var1, var2, result) != 0)
+ return -1;
+ result->sign = NUMERIC_POS;
+ break;
+
+ case -1:
+ /* ----------
+ * ABS(var1) < ABS(var2)
+ * result = -(ABS(var2) - ABS(var1))
+ * ----------
+ */
+ if (sub_abs(var2, var1, result) != 0)
+ return -1;
+ result->sign = NUMERIC_NEG;
+ break;
+ }
+ }
+ }
+ else
+ {
+ if (var2->sign == NUMERIC_POS)
+ {
+ /* ----------
+ * var1 is negative, var2 is positive
+ * Must compare absolute values
+ * ----------
+ */
+ switch (cmp_abs(var1, var2))
+ {
+ case 0:
+ /* ----------
+ * ABS(var1) == ABS(var2)
+ * result = ZERO
+ * ----------
+ */
+ zero_var(result);
+ result->rscale = Max(var1->rscale, var2->rscale);
+ result->dscale = Max(var1->dscale, var2->dscale);
+ break;
+
+ case 1:
+ /* ----------
+ * ABS(var1) > ABS(var2)
+ * result = -(ABS(var1) - ABS(var2))
+ * ----------
+ */
+ if (sub_abs(var1, var2, result) != 0)
+ return -1;
+ result->sign = NUMERIC_NEG;
+ break;
+
+ case -1:
+ /* ----------
+ * ABS(var1) < ABS(var2)
+ * result = +(ABS(var2) - ABS(var1))
+ * ----------
+ */
+ if (sub_abs(var2, var1, result) != 0)
+ return -1;
+ result->sign = NUMERIC_POS;
+ break;
+ }
+ }
+ else
+ {
+ /* ----------
+ * Both are negative
+ * result = -(ABS(var1) + ABS(var2))
+ * ----------
+ */
+ if (add_abs(var1, var2, result) != 0)
+ return -1;
+ result->sign = NUMERIC_NEG;
+ }
+ }
+
+ return 0;
+}
+
+
+/* ----------
+ * sub_var() -
+ *
+ * Full version of sub functionality on variable level (handling signs).
+ * result might point to one of the operands too without danger.
+ * ----------
+ */
+int
+PGTYPESnumeric_sub(numeric *var1, numeric *var2, numeric *result)
+{
+ /*
+ * Decide on the signs of the two variables what to do
+ */
+ if (var1->sign == NUMERIC_POS)
+ {
+ if (var2->sign == NUMERIC_NEG)
+ {
+ /* ----------
+ * var1 is positive, var2 is negative
+ * result = +(ABS(var1) + ABS(var2))
+ * ----------
+ */
+ if (add_abs(var1, var2, result) != 0)
+ return -1;
+ result->sign = NUMERIC_POS;
+ }
+ else
+ {
+ /* ----------
+ * Both are positive
+ * Must compare absolute values
+ * ----------
+ */
+ switch (cmp_abs(var1, var2))
+ {
+ case 0:
+ /* ----------
+ * ABS(var1) == ABS(var2)
+ * result = ZERO
+ * ----------
+ */
+ zero_var(result);
+ result->rscale = Max(var1->rscale, var2->rscale);
+ result->dscale = Max(var1->dscale, var2->dscale);
+ break;
+
+ case 1:
+ /* ----------
+ * ABS(var1) > ABS(var2)
+ * result = +(ABS(var1) - ABS(var2))
+ * ----------
+ */
+ if (sub_abs(var1, var2, result) != 0)
+ return -1;
+ result->sign = NUMERIC_POS;
+ break;
+
+ case -1:
+ /* ----------
+ * ABS(var1) < ABS(var2)
+ * result = -(ABS(var2) - ABS(var1))
+ * ----------
+ */
+ if (sub_abs(var2, var1, result) != 0)
+ return -1;
+ result->sign = NUMERIC_NEG;
+ break;
+ }
+ }
+ }
+ else
+ {
+ if (var2->sign == NUMERIC_NEG)
+ {
+ /* ----------
+ * Both are negative
+ * Must compare absolute values
+ * ----------
+ */
+ switch (cmp_abs(var1, var2))
+ {
+ case 0:
+ /* ----------
+ * ABS(var1) == ABS(var2)
+ * result = ZERO
+ * ----------
+ */
+ zero_var(result);
+ result->rscale = Max(var1->rscale, var2->rscale);
+ result->dscale = Max(var1->dscale, var2->dscale);
+ break;
+
+ case 1:
+ /* ----------
+ * ABS(var1) > ABS(var2)
+ * result = -(ABS(var1) - ABS(var2))
+ * ----------
+ */
+ if (sub_abs(var1, var2, result) != 0)
+ return -1;
+ result->sign = NUMERIC_NEG;
+ break;
+
+ case -1:
+ /* ----------
+ * ABS(var1) < ABS(var2)
+ * result = +(ABS(var2) - ABS(var1))
+ * ----------
+ */
+ if (sub_abs(var2, var1, result) != 0)
+ return -1;
+ result->sign = NUMERIC_POS;
+ break;
+ }
+ }
+ else
+ {
+ /* ----------
+ * var1 is negative, var2 is positive
+ * result = -(ABS(var1) + ABS(var2))
+ * ----------
+ */
+ if (add_abs(var1, var2, result) != 0)
+ return -1;
+ result->sign = NUMERIC_NEG;
+ }
+ }
+
+ return 0;
+}
+
+/* ----------
+ * mul_var() -
+ *
+ * Multiplication on variable level. Product of var1 * var2 is stored
+ * in result. Accuracy of result is determined by global_rscale.
+ * ----------
+ */
+int
+PGTYPESnumeric_mul(numeric *var1, numeric *var2, numeric *result)
+{
+ NumericDigit *res_buf;
+ NumericDigit *res_digits;
+ int res_ndigits;
+ int res_weight;
+ int res_sign;
+ int i,
+ ri,
+ i1,
+ i2;
+ long sum = 0;
+ int global_rscale = var1->rscale + var2->rscale;
+
+ res_weight = var1->weight + var2->weight + 2;
+ res_ndigits = var1->ndigits + var2->ndigits + 1;
+ if (var1->sign == var2->sign)
+ res_sign = NUMERIC_POS;
+ else
+ res_sign = NUMERIC_NEG;
+
+ if ((res_buf = digitbuf_alloc(res_ndigits)) == NULL)
+ return -1;
+ res_digits = res_buf;
+ memset(res_digits, 0, res_ndigits);
+
+ ri = res_ndigits;
+ for (i1 = var1->ndigits - 1; i1 >= 0; i1--)
+ {
+ sum = 0;
+ i = --ri;
+
+ for (i2 = var2->ndigits - 1; i2 >= 0; i2--)
+ {
+ sum += res_digits[i] + var1->digits[i1] * var2->digits[i2];
+ res_digits[i--] = sum % 10;
+ sum /= 10;
+ }
+ res_digits[i] = sum;
+ }
+
+ i = res_weight + global_rscale + 2;
+ if (i >= 0 && i < res_ndigits)
+ {
+ sum = (res_digits[i] > 4) ? 1 : 0;
+ res_ndigits = i;
+ i--;
+ while (sum)
+ {
+ sum += res_digits[i];
+ res_digits[i--] = sum % 10;
+ sum /= 10;
+ }
+ }
+
+ while (res_ndigits > 0 && *res_digits == 0)
+ {
+ res_digits++;
+ res_weight--;
+ res_ndigits--;
+ }
+ while (res_ndigits > 0 && res_digits[res_ndigits - 1] == 0)
+ res_ndigits--;
+
+ if (res_ndigits == 0)
+ {
+ res_sign = NUMERIC_POS;
+ res_weight = 0;
+ }
+
+ digitbuf_free(result->buf);
+ result->buf = res_buf;
+ result->digits = res_digits;
+ result->ndigits = res_ndigits;
+ result->weight = res_weight;
+ result->rscale = global_rscale;
+ result->sign = res_sign;
+ result->dscale = var1->dscale + var2->dscale;
+
+ return 0;
+}
+
+/*
+ * Default scale selection for division
+ *
+ * Returns the appropriate display scale for the division result,
+ * and sets global_rscale to the result scale to use during div_var.
+ *
+ * Note that this must be called before div_var.
+ */
+static int
+select_div_scale(numeric *var1, numeric *var2, int *rscale)
+{
+ int weight1,
+ weight2,
+ qweight,
+ i;
+ NumericDigit firstdigit1,
+ firstdigit2;
+ int res_dscale;
+
+ /*
+ * The result scale of a division isn't specified in any SQL standard. For
+ * PostgreSQL we select a display scale that will give at least
+ * NUMERIC_MIN_SIG_DIGITS significant digits, so that numeric gives a
+ * result no less accurate than float8; but use a scale not less than
+ * either input's display scale.
+ */
+
+ /* Get the actual (normalized) weight and first digit of each input */
+
+ weight1 = 0; /* values to use if var1 is zero */
+ firstdigit1 = 0;
+ for (i = 0; i < var1->ndigits; i++)
+ {
+ firstdigit1 = var1->digits[i];
+ if (firstdigit1 != 0)
+ {
+ weight1 = var1->weight - i;
+ break;
+ }
+ }
+
+ weight2 = 0; /* values to use if var2 is zero */
+ firstdigit2 = 0;
+ for (i = 0; i < var2->ndigits; i++)
+ {
+ firstdigit2 = var2->digits[i];
+ if (firstdigit2 != 0)
+ {
+ weight2 = var2->weight - i;
+ break;
+ }
+ }
+
+ /*
+ * Estimate weight of quotient. If the two first digits are equal, we
+ * can't be sure, but assume that var1 is less than var2.
+ */
+ qweight = weight1 - weight2;
+ if (firstdigit1 <= firstdigit2)
+ qweight--;
+
+ /* Select display scale */
+ res_dscale = NUMERIC_MIN_SIG_DIGITS - qweight;
+ res_dscale = Max(res_dscale, var1->dscale);
+ res_dscale = Max(res_dscale, var2->dscale);
+ res_dscale = Max(res_dscale, NUMERIC_MIN_DISPLAY_SCALE);
+ res_dscale = Min(res_dscale, NUMERIC_MAX_DISPLAY_SCALE);
+
+ /* Select result scale */
+ *rscale = res_dscale + 4;
+
+ return res_dscale;
+}
+
+int
+PGTYPESnumeric_div(numeric *var1, numeric *var2, numeric *result)
+{
+ NumericDigit *res_digits;
+ int res_ndigits;
+ int res_sign;
+ int res_weight;
+ numeric dividend;
+ numeric divisor[10];
+ int ndigits_tmp;
+ int weight_tmp;
+ int rscale_tmp;
+ int ri;
+ int i;
+ long guess;
+ long first_have;
+ long first_div;
+ int first_nextdigit;
+ int stat = 0;
+ int rscale;
+ int res_dscale = select_div_scale(var1, var2, &rscale);
+ int err = -1;
+ NumericDigit *tmp_buf;
+
+ /*
+ * First of all division by zero check
+ */
+ ndigits_tmp = var2->ndigits + 1;
+ if (ndigits_tmp == 1)
+ {
+ errno = PGTYPES_NUM_DIVIDE_ZERO;
+ return -1;
+ }
+
+ /*
+ * Determine the result sign, weight and number of digits to calculate
+ */
+ if (var1->sign == var2->sign)
+ res_sign = NUMERIC_POS;
+ else
+ res_sign = NUMERIC_NEG;
+ res_weight = var1->weight - var2->weight + 1;
+ res_ndigits = rscale + res_weight;
+ if (res_ndigits <= 0)
+ res_ndigits = 1;
+
+ /*
+ * Now result zero check
+ */
+ if (var1->ndigits == 0)
+ {
+ zero_var(result);
+ result->rscale = rscale;
+ return 0;
+ }
+
+ /*
+ * Initialize local variables
+ */
+ init_var(&dividend);
+ for (i = 1; i < 10; i++)
+ init_var(&divisor[i]);
+
+ /*
+ * Make a copy of the divisor which has one leading zero digit
+ */
+ divisor[1].ndigits = ndigits_tmp;
+ divisor[1].rscale = var2->ndigits;
+ divisor[1].sign = NUMERIC_POS;
+ divisor[1].buf = digitbuf_alloc(ndigits_tmp);
+ if (divisor[1].buf == NULL)
+ goto done;
+ divisor[1].digits = divisor[1].buf;
+ divisor[1].digits[0] = 0;
+ memcpy(&(divisor[1].digits[1]), var2->digits, ndigits_tmp - 1);
+
+ /*
+ * Make a copy of the dividend
+ */
+ dividend.ndigits = var1->ndigits;
+ dividend.weight = 0;
+ dividend.rscale = var1->ndigits;
+ dividend.sign = NUMERIC_POS;
+ dividend.buf = digitbuf_alloc(var1->ndigits);
+ if (dividend.buf == NULL)
+ goto done;
+ dividend.digits = dividend.buf;
+ memcpy(dividend.digits, var1->digits, var1->ndigits);
+
+ /*
+ * Setup the result. Do the allocation in a temporary buffer first, so we
+ * don't free result->buf unless we have successfully allocated a buffer
+ * to replace it with.
+ */
+ tmp_buf = digitbuf_alloc(res_ndigits + 2);
+ if (tmp_buf == NULL)
+ goto done;
+ digitbuf_free(result->buf);
+ result->buf = tmp_buf;
+ res_digits = result->buf;
+ result->digits = res_digits;
+ result->ndigits = res_ndigits;
+ result->weight = res_weight;
+ result->rscale = rscale;
+ result->sign = res_sign;
+ res_digits[0] = 0;
+
+ first_div = divisor[1].digits[1] * 10;
+ if (ndigits_tmp > 2)
+ first_div += divisor[1].digits[2];
+
+ first_have = 0;
+ first_nextdigit = 0;
+
+ weight_tmp = 1;
+ rscale_tmp = divisor[1].rscale;
+
+ for (ri = 0; ri <= res_ndigits; ri++)
+ {
+ first_have = first_have * 10;
+ if (first_nextdigit >= 0 && first_nextdigit < dividend.ndigits)
+ first_have += dividend.digits[first_nextdigit];
+ first_nextdigit++;
+
+ guess = (first_have * 10) / first_div + 1;
+ if (guess > 9)
+ guess = 9;
+
+ while (guess > 0)
+ {
+ if (divisor[guess].buf == NULL)
+ {
+ int i;
+ long sum = 0;
+
+ memcpy(&divisor[guess], &divisor[1], sizeof(numeric));
+ divisor[guess].buf = digitbuf_alloc(divisor[guess].ndigits);
+ if (divisor[guess].buf == NULL)
+ goto done;
+ divisor[guess].digits = divisor[guess].buf;
+ for (i = divisor[1].ndigits - 1; i >= 0; i--)
+ {
+ sum += divisor[1].digits[i] * guess;
+ divisor[guess].digits[i] = sum % 10;
+ sum /= 10;
+ }
+ }
+
+ divisor[guess].weight = weight_tmp;
+ divisor[guess].rscale = rscale_tmp;
+
+ stat = cmp_abs(&dividend, &divisor[guess]);
+ if (stat >= 0)
+ break;
+
+ guess--;
+ }
+
+ res_digits[ri + 1] = guess;
+ if (stat == 0)
+ {
+ ri++;
+ break;
+ }
+
+ weight_tmp--;
+ rscale_tmp++;
+
+ if (guess == 0)
+ continue;
+
+ if (sub_abs(&dividend, &divisor[guess], &dividend) != 0)
+ goto done;
+
+ first_nextdigit = dividend.weight - weight_tmp;
+ first_have = 0;
+ if (first_nextdigit >= 0 && first_nextdigit < dividend.ndigits)
+ first_have = dividend.digits[first_nextdigit];
+ first_nextdigit++;
+ }
+
+ result->ndigits = ri + 1;
+ if (ri == res_ndigits + 1)
+ {
+ int carry = (res_digits[ri] > 4) ? 1 : 0;
+
+ result->ndigits = ri;
+ res_digits[ri] = 0;
+
+ while (carry && ri > 0)
+ {
+ carry += res_digits[--ri];
+ res_digits[ri] = carry % 10;
+ carry /= 10;
+ }
+ }
+
+ while (result->ndigits > 0 && *(result->digits) == 0)
+ {
+ (result->digits)++;
+ (result->weight)--;
+ (result->ndigits)--;
+ }
+ while (result->ndigits > 0 && result->digits[result->ndigits - 1] == 0)
+ (result->ndigits)--;
+ if (result->ndigits == 0)
+ result->sign = NUMERIC_POS;
+
+ result->dscale = res_dscale;
+ err = 0; /* if we've made it this far, return success */
+
+done:
+
+ /*
+ * Tidy up
+ */
+ if (dividend.buf != NULL)
+ digitbuf_free(dividend.buf);
+
+ for (i = 1; i < 10; i++)
+ {
+ if (divisor[i].buf != NULL)
+ digitbuf_free(divisor[i].buf);
+ }
+
+ return err;
+}
+
+
+int
+PGTYPESnumeric_cmp(numeric *var1, numeric *var2)
+{
+ /* use cmp_abs function to calculate the result */
+
+ /* both are positive: normal comparison with cmp_abs */
+ if (var1->sign == NUMERIC_POS && var2->sign == NUMERIC_POS)
+ return cmp_abs(var1, var2);
+
+ /* both are negative: return the inverse of the normal comparison */
+ if (var1->sign == NUMERIC_NEG && var2->sign == NUMERIC_NEG)
+ {
+ /*
+ * instead of inverting the result, we invert the parameter ordering
+ */
+ return cmp_abs(var2, var1);
+ }
+
+ /* one is positive, one is negative: trivial */
+ if (var1->sign == NUMERIC_POS && var2->sign == NUMERIC_NEG)
+ return 1;
+ if (var1->sign == NUMERIC_NEG && var2->sign == NUMERIC_POS)
+ return -1;
+
+ errno = PGTYPES_NUM_BAD_NUMERIC;
+ return INT_MAX;
+}
+
+int
+PGTYPESnumeric_from_int(signed int int_val, numeric *var)
+{
+ /* implicit conversion */
+ signed long int long_int = int_val;
+
+ return PGTYPESnumeric_from_long(long_int, var);
+}
+
+int
+PGTYPESnumeric_from_long(signed long int long_val, numeric *var)
+{
+ /* calculate the size of the long int number */
+ /* a number n needs log_10 n digits */
+
+ /*
+ * however we multiply by 10 each time and compare instead of calculating
+ * the logarithm
+ */
+
+ int size = 0;
+ int i;
+ signed long int abs_long_val = long_val;
+ signed long int extract;
+ signed long int reach_limit;
+
+ if (abs_long_val < 0)
+ {
+ abs_long_val *= -1;
+ var->sign = NUMERIC_NEG;
+ }
+ else
+ var->sign = NUMERIC_POS;
+
+ reach_limit = 1;
+ do
+ {
+ size++;
+ reach_limit *= 10;
+ } while (reach_limit - 1 < abs_long_val && reach_limit <= LONG_MAX / 10);
+
+ if (reach_limit > LONG_MAX / 10)
+ {
+ /* add the first digit and a .0 */
+ size += 2;
+ }
+ else
+ {
+ /* always add a .0 */
+ size++;
+ reach_limit /= 10;
+ }
+
+ if (alloc_var(var, size) < 0)
+ return -1;
+
+ var->rscale = 1;
+ var->dscale = 1;
+ var->weight = size - 2;
+
+ i = 0;
+ do
+ {
+ extract = abs_long_val - (abs_long_val % reach_limit);
+ var->digits[i] = extract / reach_limit;
+ abs_long_val -= extract;
+ i++;
+ reach_limit /= 10;
+
+ /*
+ * we can abandon if abs_long_val reaches 0, because the memory is
+ * initialized properly and filled with '0', so converting 10000 in
+ * only one step is no problem
+ */
+ } while (abs_long_val > 0);
+
+ return 0;
+}
+
+int
+PGTYPESnumeric_copy(numeric *src, numeric *dst)
+{
+ int i;
+
+ if (dst == NULL)
+ return -1;
+ zero_var(dst);
+
+ dst->weight = src->weight;
+ dst->rscale = src->rscale;
+ dst->dscale = src->dscale;
+ dst->sign = src->sign;
+
+ if (alloc_var(dst, src->ndigits) != 0)
+ return -1;
+
+ for (i = 0; i < src->ndigits; i++)
+ dst->digits[i] = src->digits[i];
+
+ return 0;
+}
+
+int
+PGTYPESnumeric_from_double(double d, numeric *dst)
+{
+ char buffer[DBL_DIG + 100];
+ numeric *tmp;
+ int i;
+
+ if (sprintf(buffer, "%.*g", DBL_DIG, d) <= 0)
+ return -1;
+
+ if ((tmp = PGTYPESnumeric_from_asc(buffer, NULL)) == NULL)
+ return -1;
+ i = PGTYPESnumeric_copy(tmp, dst);
+ PGTYPESnumeric_free(tmp);
+ if (i != 0)
+ return -1;
+
+ errno = 0;
+ return 0;
+}
+
+static int
+numericvar_to_double(numeric *var, double *dp)
+{
+ char *tmp;
+ double val;
+ char *endptr;
+ numeric *varcopy = PGTYPESnumeric_new();
+
+ if (varcopy == NULL)
+ return -1;
+
+ if (PGTYPESnumeric_copy(var, varcopy) < 0)
+ {
+ PGTYPESnumeric_free(varcopy);
+ return -1;
+ }
+
+ tmp = get_str_from_var(varcopy, varcopy->dscale);
+ PGTYPESnumeric_free(varcopy);
+
+ if (tmp == NULL)
+ return -1;
+
+ /*
+ * strtod does not reset errno to 0 in case of success.
+ */
+ errno = 0;
+ val = strtod(tmp, &endptr);
+ if (errno == ERANGE)
+ {
+ free(tmp);
+ if (val == 0)
+ errno = PGTYPES_NUM_UNDERFLOW;
+ else
+ errno = PGTYPES_NUM_OVERFLOW;
+ return -1;
+ }
+
+ /* can't free tmp yet, endptr points still into it */
+ if (*endptr != '\0')
+ {
+ /* shouldn't happen ... */
+ free(tmp);
+ errno = PGTYPES_NUM_BAD_NUMERIC;
+ return -1;
+ }
+ free(tmp);
+ *dp = val;
+ return 0;
+}
+
+int
+PGTYPESnumeric_to_double(numeric *nv, double *dp)
+{
+ double tmp;
+
+ if (numericvar_to_double(nv, &tmp) != 0)
+ return -1;
+ *dp = tmp;
+ return 0;
+}
+
+int
+PGTYPESnumeric_to_int(numeric *nv, int *ip)
+{
+ long l;
+ int i;
+
+ if ((i = PGTYPESnumeric_to_long(nv, &l)) != 0)
+ return i;
+
+/* silence compilers that might complain about useless tests */
+#if SIZEOF_LONG > SIZEOF_INT
+
+ if (l < INT_MIN || l > INT_MAX)
+ {
+ errno = PGTYPES_NUM_OVERFLOW;
+ return -1;
+ }
+
+#endif
+
+ *ip = (int) l;
+ return 0;
+}
+
+int
+PGTYPESnumeric_to_long(numeric *nv, long *lp)
+{
+ char *s = PGTYPESnumeric_to_asc(nv, 0);
+ char *endptr;
+
+ if (s == NULL)
+ return -1;
+
+ errno = 0;
+ *lp = strtol(s, &endptr, 10);
+ if (endptr == s)
+ {
+ /* this should not happen actually */
+ free(s);
+ return -1;
+ }
+ free(s);
+ if (errno == ERANGE)
+ {
+ if (*lp == LONG_MIN)
+ errno = PGTYPES_NUM_UNDERFLOW;
+ else
+ errno = PGTYPES_NUM_OVERFLOW;
+ return -1;
+ }
+ return 0;
+}
+
+int
+PGTYPESnumeric_to_decimal(numeric *src, decimal *dst)
+{
+ int i;
+
+ if (src->ndigits > DECSIZE)
+ {
+ errno = PGTYPES_NUM_OVERFLOW;
+ return -1;
+ }
+
+ dst->weight = src->weight;
+ dst->rscale = src->rscale;
+ dst->dscale = src->dscale;
+ dst->sign = src->sign;
+ dst->ndigits = src->ndigits;
+
+ for (i = 0; i < src->ndigits; i++)
+ dst->digits[i] = src->digits[i];
+
+ return 0;
+}
+
+int
+PGTYPESnumeric_from_decimal(decimal *src, numeric *dst)
+{
+ int i;
+
+ zero_var(dst);
+
+ dst->weight = src->weight;
+ dst->rscale = src->rscale;
+ dst->dscale = src->dscale;
+ dst->sign = src->sign;
+
+ if (alloc_var(dst, src->ndigits) != 0)
+ return -1;
+
+ for (i = 0; i < src->ndigits; i++)
+ dst->digits[i] = src->digits[i];
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/pgtypeslib/pgtypeslib_extern.h b/src/interfaces/ecpg/pgtypeslib/pgtypeslib_extern.h
new file mode 100644
index 0000000..1012088
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/pgtypeslib_extern.h
@@ -0,0 +1,41 @@
+/* src/interfaces/ecpg/pgtypeslib/pgtypeslib_extern.h */
+
+#ifndef _ECPG_PGTYPESLIB_EXTERN_H
+#define _ECPG_PGTYPESLIB_EXTERN_H
+
+#include "pgtypes_error.h"
+
+/* These are the constants that decide which printf() format we'll use in
+ * order to get a string representation of the value */
+#define PGTYPES_TYPE_NOTHING 0
+#define PGTYPES_TYPE_STRING_MALLOCED 1
+#define PGTYPES_TYPE_STRING_CONSTANT 2
+#define PGTYPES_TYPE_CHAR 3
+#define PGTYPES_TYPE_DOUBLE_NF 4 /* no fractional part */
+#define PGTYPES_TYPE_INT64 5
+#define PGTYPES_TYPE_UINT 6
+#define PGTYPES_TYPE_UINT_2_LZ 7 /* 2 digits, pad with leading zero */
+#define PGTYPES_TYPE_UINT_2_LS 8 /* 2 digits, pad with leading
+ * space */
+#define PGTYPES_TYPE_UINT_3_LZ 9
+#define PGTYPES_TYPE_UINT_4_LZ 10
+#define PGTYPES_TYPE_UINT_LONG 11
+
+#define PGTYPES_FMT_NUM_MAX_DIGITS 40
+
+union un_fmt_comb
+{
+ char *str_val;
+ unsigned int uint_val;
+ char char_val;
+ unsigned long int luint_val;
+ double double_val;
+ int64 int64_val;
+};
+
+int pgtypes_fmt_replace(union un_fmt_comb, int, char **, int *);
+
+char *pgtypes_alloc(long);
+char *pgtypes_strdup(const char *);
+
+#endif /* _ECPG_PGTYPESLIB_EXTERN_H */
diff --git a/src/interfaces/ecpg/pgtypeslib/timestamp.c b/src/interfaces/ecpg/pgtypeslib/timestamp.c
new file mode 100644
index 0000000..54cc04a
--- /dev/null
+++ b/src/interfaces/ecpg/pgtypeslib/timestamp.c
@@ -0,0 +1,925 @@
+/*
+ * src/interfaces/ecpg/pgtypeslib/timestamp.c
+ */
+#include "postgres_fe.h"
+
+#include <time.h>
+#include <limits.h>
+#include <math.h>
+
+#ifdef __FAST_MATH__
+#error -ffast-math is known to break this code
+#endif
+
+#include "dt.h"
+#include "pgtypes_date.h"
+#include "pgtypes_timestamp.h"
+#include "pgtypeslib_extern.h"
+
+static int64
+time2t(const int hour, const int min, const int sec, const fsec_t fsec)
+{
+ return (((((hour * MINS_PER_HOUR) + min) * SECS_PER_MINUTE) + sec) * USECS_PER_SEC) + fsec;
+} /* time2t() */
+
+static timestamp
+dt2local(timestamp dt, int tz)
+{
+ dt -= (tz * USECS_PER_SEC);
+ return dt;
+} /* dt2local() */
+
+/* tm2timestamp()
+ * Convert a tm structure to a timestamp data type.
+ * Note that year is _not_ 1900-based, but is an explicit full value.
+ * Also, month is one-based, _not_ zero-based.
+ *
+ * Returns -1 on failure (overflow).
+ */
+int
+tm2timestamp(struct tm *tm, fsec_t fsec, int *tzp, timestamp * result)
+{
+ int dDate;
+ int64 time;
+
+ /* Prevent overflow in Julian-day routines */
+ if (!IS_VALID_JULIAN(tm->tm_year, tm->tm_mon, tm->tm_mday))
+ return -1;
+
+ dDate = date2j(tm->tm_year, tm->tm_mon, tm->tm_mday) - date2j(2000, 1, 1);
+ time = time2t(tm->tm_hour, tm->tm_min, tm->tm_sec, fsec);
+ *result = (dDate * USECS_PER_DAY) + time;
+ /* check for major overflow */
+ if ((*result - time) / USECS_PER_DAY != dDate)
+ return -1;
+ /* check for just-barely overflow (okay except time-of-day wraps) */
+ /* caution: we want to allow 1999-12-31 24:00:00 */
+ if ((*result < 0 && dDate > 0) ||
+ (*result > 0 && dDate < -1))
+ return -1;
+ if (tzp != NULL)
+ *result = dt2local(*result, -(*tzp));
+
+ /* final range check catches just-out-of-range timestamps */
+ if (!IS_VALID_TIMESTAMP(*result))
+ return -1;
+
+ return 0;
+} /* tm2timestamp() */
+
+static timestamp
+SetEpochTimestamp(void)
+{
+ int64 noresult = 0;
+ timestamp dt;
+ struct tm tt,
+ *tm = &tt;
+
+ if (GetEpochTime(tm) < 0)
+ return noresult;
+
+ tm2timestamp(tm, 0, NULL, &dt);
+ return dt;
+} /* SetEpochTimestamp() */
+
+/* timestamp2tm()
+ * Convert timestamp data type to POSIX time structure.
+ * Note that year is _not_ 1900-based, but is an explicit full value.
+ * Also, month is one-based, _not_ zero-based.
+ * Returns:
+ * 0 on success
+ * -1 on out of range
+ *
+ * For dates within the system-supported time_t range, convert to the
+ * local time zone. If out of this range, leave as GMT. - tgl 97/05/27
+ */
+static int
+timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, const char **tzn)
+{
+ int64 dDate,
+ date0;
+ int64 time;
+#if defined(HAVE_STRUCT_TM_TM_ZONE) || defined(HAVE_INT_TIMEZONE)
+ time_t utime;
+ struct tm *tx;
+#endif
+
+ date0 = date2j(2000, 1, 1);
+
+ time = dt;
+ TMODULO(time, dDate, USECS_PER_DAY);
+
+ if (time < INT64CONST(0))
+ {
+ time += USECS_PER_DAY;
+ dDate -= 1;
+ }
+
+ /* add offset to go from J2000 back to standard Julian date */
+ dDate += date0;
+
+ /* Julian day routine does not work for negative Julian days */
+ if (dDate < 0 || dDate > (timestamp) INT_MAX)
+ return -1;
+
+ j2date((int) dDate, &tm->tm_year, &tm->tm_mon, &tm->tm_mday);
+ dt2time(time, &tm->tm_hour, &tm->tm_min, &tm->tm_sec, fsec);
+
+ if (tzp != NULL)
+ {
+ /*
+ * Does this fall within the capabilities of the localtime()
+ * interface? Then use this to rotate to the local time zone.
+ */
+ if (IS_VALID_UTIME(tm->tm_year, tm->tm_mon, tm->tm_mday))
+ {
+#if defined(HAVE_STRUCT_TM_TM_ZONE) || defined(HAVE_INT_TIMEZONE)
+
+ utime = dt / USECS_PER_SEC +
+ ((date0 - date2j(1970, 1, 1)) * INT64CONST(86400));
+
+ tx = localtime(&utime);
+ tm->tm_year = tx->tm_year + 1900;
+ tm->tm_mon = tx->tm_mon + 1;
+ tm->tm_mday = tx->tm_mday;
+ tm->tm_hour = tx->tm_hour;
+ tm->tm_min = tx->tm_min;
+ tm->tm_isdst = tx->tm_isdst;
+
+#if defined(HAVE_STRUCT_TM_TM_ZONE)
+ tm->tm_gmtoff = tx->tm_gmtoff;
+ tm->tm_zone = tx->tm_zone;
+
+ *tzp = -tm->tm_gmtoff; /* tm_gmtoff is Sun/DEC-ism */
+ if (tzn != NULL)
+ *tzn = tm->tm_zone;
+#elif defined(HAVE_INT_TIMEZONE)
+ *tzp = (tm->tm_isdst > 0) ? TIMEZONE_GLOBAL - SECS_PER_HOUR : TIMEZONE_GLOBAL;
+ if (tzn != NULL)
+ *tzn = TZNAME_GLOBAL[(tm->tm_isdst > 0)];
+#endif
+#else /* not (HAVE_STRUCT_TM_TM_ZONE ||
+ * HAVE_INT_TIMEZONE) */
+ *tzp = 0;
+ /* Mark this as *no* time zone available */
+ tm->tm_isdst = -1;
+ if (tzn != NULL)
+ *tzn = NULL;
+#endif
+ }
+ else
+ {
+ *tzp = 0;
+ /* Mark this as *no* time zone available */
+ tm->tm_isdst = -1;
+ if (tzn != NULL)
+ *tzn = NULL;
+ }
+ }
+ else
+ {
+ tm->tm_isdst = -1;
+ if (tzn != NULL)
+ *tzn = NULL;
+ }
+
+ tm->tm_yday = dDate - date2j(tm->tm_year, 1, 1) + 1;
+
+ return 0;
+} /* timestamp2tm() */
+
+/* EncodeSpecialTimestamp()
+ * * Convert reserved timestamp data type to string.
+ * */
+static void
+EncodeSpecialTimestamp(timestamp dt, char *str)
+{
+ if (TIMESTAMP_IS_NOBEGIN(dt))
+ strcpy(str, EARLY);
+ else if (TIMESTAMP_IS_NOEND(dt))
+ strcpy(str, LATE);
+ else
+ abort(); /* shouldn't happen */
+}
+
+timestamp
+PGTYPEStimestamp_from_asc(char *str, char **endptr)
+{
+ timestamp result;
+ int64 noresult = 0;
+ fsec_t fsec;
+ struct tm tt,
+ *tm = &tt;
+ int dtype;
+ int nf;
+ char *field[MAXDATEFIELDS];
+ int ftype[MAXDATEFIELDS];
+ char lowstr[MAXDATELEN + MAXDATEFIELDS];
+ char *realptr;
+ char **ptr = (endptr != NULL) ? endptr : &realptr;
+
+ if (strlen(str) > MAXDATELEN)
+ {
+ errno = PGTYPES_TS_BAD_TIMESTAMP;
+ return noresult;
+ }
+
+ if (ParseDateTime(str, lowstr, field, ftype, &nf, ptr) != 0 ||
+ DecodeDateTime(field, ftype, nf, &dtype, tm, &fsec, 0) != 0)
+ {
+ errno = PGTYPES_TS_BAD_TIMESTAMP;
+ return noresult;
+ }
+
+ switch (dtype)
+ {
+ case DTK_DATE:
+ if (tm2timestamp(tm, fsec, NULL, &result) != 0)
+ {
+ errno = PGTYPES_TS_BAD_TIMESTAMP;
+ return noresult;
+ }
+ break;
+
+ case DTK_EPOCH:
+ result = SetEpochTimestamp();
+ break;
+
+ case DTK_LATE:
+ TIMESTAMP_NOEND(result);
+ break;
+
+ case DTK_EARLY:
+ TIMESTAMP_NOBEGIN(result);
+ break;
+
+ default:
+ errno = PGTYPES_TS_BAD_TIMESTAMP;
+ return noresult;
+ }
+
+ /* AdjustTimestampForTypmod(&result, typmod); */
+
+ /*
+ * Since it's difficult to test for noresult, make sure errno is 0 if no
+ * error occurred.
+ */
+ errno = 0;
+ return result;
+}
+
+char *
+PGTYPEStimestamp_to_asc(timestamp tstamp)
+{
+ struct tm tt,
+ *tm = &tt;
+ char buf[MAXDATELEN + 1];
+ fsec_t fsec;
+ int DateStyle = 1; /* this defaults to USE_ISO_DATES, shall we
+ * make it an option? */
+
+ if (TIMESTAMP_NOT_FINITE(tstamp))
+ EncodeSpecialTimestamp(tstamp, buf);
+ else if (timestamp2tm(tstamp, NULL, tm, &fsec, NULL) == 0)
+ EncodeDateTime(tm, fsec, false, 0, NULL, DateStyle, buf, 0);
+ else
+ {
+ errno = PGTYPES_TS_BAD_TIMESTAMP;
+ return NULL;
+ }
+ return pgtypes_strdup(buf);
+}
+
+void
+PGTYPEStimestamp_current(timestamp * ts)
+{
+ struct tm tm;
+
+ GetCurrentDateTime(&tm);
+ if (errno == 0)
+ tm2timestamp(&tm, 0, NULL, ts);
+}
+
+static int
+dttofmtasc_replace(timestamp * ts, date dDate, int dow, struct tm *tm,
+ char *output, int *pstr_len, const char *fmtstr)
+{
+ union un_fmt_comb replace_val;
+ int replace_type;
+ int i;
+ const char *p = fmtstr;
+ char *q = output;
+
+ while (*p)
+ {
+ if (*p == '%')
+ {
+ p++;
+ /* fix compiler warning */
+ replace_type = PGTYPES_TYPE_NOTHING;
+ switch (*p)
+ {
+ /* the abbreviated name of the day in the week */
+ /* XXX should be locale aware */
+ case 'a':
+ replace_val.str_val = pgtypes_date_weekdays_short[dow];
+ replace_type = PGTYPES_TYPE_STRING_CONSTANT;
+ break;
+ /* the full name of the day in the week */
+ /* XXX should be locale aware */
+ case 'A':
+ replace_val.str_val = days[dow];
+ replace_type = PGTYPES_TYPE_STRING_CONSTANT;
+ break;
+ /* the abbreviated name of the month */
+ /* XXX should be locale aware */
+ case 'b':
+ case 'h':
+ replace_val.str_val = months[tm->tm_mon - 1];
+ replace_type = PGTYPES_TYPE_STRING_CONSTANT;
+ break;
+ /* the full name of the month */
+ /* XXX should be locale aware */
+ case 'B':
+ replace_val.str_val = pgtypes_date_months[tm->tm_mon - 1];
+ replace_type = PGTYPES_TYPE_STRING_CONSTANT;
+ break;
+
+ /*
+ * The preferred date and time representation for
+ * the current locale.
+ */
+ case 'c':
+ /* XXX */
+ break;
+ /* the century number with leading zeroes */
+ case 'C':
+ replace_val.uint_val = tm->tm_year / 100;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ /* day with leading zeroes (01 - 31) */
+ case 'd':
+ replace_val.uint_val = tm->tm_mday;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ /* the date in the format mm/dd/yy */
+ case 'D':
+
+ /*
+ * ts, dDate, dow, tm is information about the timestamp
+ *
+ * q is the start of the current output buffer
+ *
+ * pstr_len is a pointer to the remaining size of output,
+ * i.e. the size of q
+ */
+ i = dttofmtasc_replace(ts, dDate, dow, tm,
+ q, pstr_len,
+ "%m/%d/%y");
+ if (i)
+ return i;
+ break;
+ /* day with leading spaces (01 - 31) */
+ case 'e':
+ replace_val.uint_val = tm->tm_mday;
+ replace_type = PGTYPES_TYPE_UINT_2_LS;
+ break;
+
+ /*
+ * alternative format modifier
+ */
+ case 'E':
+ {
+ char tmp[4] = "%Ex";
+
+ p++;
+ if (*p == '\0')
+ return -1;
+ tmp[2] = *p;
+
+ /*
+ * strftime's month is 0 based, ours is 1 based
+ */
+ tm->tm_mon -= 1;
+ i = strftime(q, *pstr_len, tmp, tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ tm->tm_mon += 1;
+ replace_type = PGTYPES_TYPE_NOTHING;
+ break;
+ }
+
+ /*
+ * The ISO 8601 year with century as a decimal number. The
+ * 4-digit year corresponding to the ISO week number.
+ */
+ case 'G':
+ {
+ /* Keep compiler quiet - Don't use a literal format */
+ const char *fmt = "%G";
+
+ tm->tm_mon -= 1;
+ i = strftime(q, *pstr_len, fmt, tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ tm->tm_mon += 1;
+ replace_type = PGTYPES_TYPE_NOTHING;
+ }
+ break;
+
+ /*
+ * Like %G, but without century, i.e., with a 2-digit year
+ * (00-99).
+ */
+ case 'g':
+ {
+ const char *fmt = "%g"; /* Keep compiler quiet about
+ * 2-digit year */
+
+ tm->tm_mon -= 1;
+ i = strftime(q, *pstr_len, fmt, tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ tm->tm_mon += 1;
+ replace_type = PGTYPES_TYPE_NOTHING;
+ }
+ break;
+ /* hour (24 hour clock) with leading zeroes */
+ case 'H':
+ replace_val.uint_val = tm->tm_hour;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ /* hour (12 hour clock) with leading zeroes */
+ case 'I':
+ replace_val.uint_val = tm->tm_hour % 12;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+
+ /*
+ * The day of the year as a decimal number with leading
+ * zeroes. It ranges from 001 to 366.
+ */
+ case 'j':
+ replace_val.uint_val = tm->tm_yday;
+ replace_type = PGTYPES_TYPE_UINT_3_LZ;
+ break;
+
+ /*
+ * The hour (24 hour clock). Leading zeroes will be turned
+ * into spaces.
+ */
+ case 'k':
+ replace_val.uint_val = tm->tm_hour;
+ replace_type = PGTYPES_TYPE_UINT_2_LS;
+ break;
+
+ /*
+ * The hour (12 hour clock). Leading zeroes will be turned
+ * into spaces.
+ */
+ case 'l':
+ replace_val.uint_val = tm->tm_hour % 12;
+ replace_type = PGTYPES_TYPE_UINT_2_LS;
+ break;
+ /* The month as a decimal number with a leading zero */
+ case 'm':
+ replace_val.uint_val = tm->tm_mon;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ /* The minute as a decimal number with a leading zero */
+ case 'M':
+ replace_val.uint_val = tm->tm_min;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ /* A newline character */
+ case 'n':
+ replace_val.char_val = '\n';
+ replace_type = PGTYPES_TYPE_CHAR;
+ break;
+ /* the AM/PM specifier (uppercase) */
+ /* XXX should be locale aware */
+ case 'p':
+ if (tm->tm_hour < 12)
+ replace_val.str_val = "AM";
+ else
+ replace_val.str_val = "PM";
+ replace_type = PGTYPES_TYPE_STRING_CONSTANT;
+ break;
+ /* the AM/PM specifier (lowercase) */
+ /* XXX should be locale aware */
+ case 'P':
+ if (tm->tm_hour < 12)
+ replace_val.str_val = "am";
+ else
+ replace_val.str_val = "pm";
+ replace_type = PGTYPES_TYPE_STRING_CONSTANT;
+ break;
+ /* the time in the format %I:%M:%S %p */
+ /* XXX should be locale aware */
+ case 'r':
+ i = dttofmtasc_replace(ts, dDate, dow, tm,
+ q, pstr_len,
+ "%I:%M:%S %p");
+ if (i)
+ return i;
+ break;
+ /* The time in 24 hour notation (%H:%M) */
+ case 'R':
+ i = dttofmtasc_replace(ts, dDate, dow, tm,
+ q, pstr_len,
+ "%H:%M");
+ if (i)
+ return i;
+ break;
+ /* The number of seconds since the Epoch (1970-01-01) */
+ case 's':
+ replace_val.int64_val = (*ts - SetEpochTimestamp()) / 1000000.0;
+ replace_type = PGTYPES_TYPE_INT64;
+ break;
+ /* seconds as a decimal number with leading zeroes */
+ case 'S':
+ replace_val.uint_val = tm->tm_sec;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ /* A tabulator */
+ case 't':
+ replace_val.char_val = '\t';
+ replace_type = PGTYPES_TYPE_CHAR;
+ break;
+ /* The time in 24 hour notation (%H:%M:%S) */
+ case 'T':
+ i = dttofmtasc_replace(ts, dDate, dow, tm,
+ q, pstr_len,
+ "%H:%M:%S");
+ if (i)
+ return i;
+ break;
+
+ /*
+ * The day of the week as a decimal, Monday = 1, Sunday =
+ * 7
+ */
+ case 'u':
+ replace_val.uint_val = dow;
+ if (replace_val.uint_val == 0)
+ replace_val.uint_val = 7;
+ replace_type = PGTYPES_TYPE_UINT;
+ break;
+ /* The week number of the year as a decimal number */
+ case 'U':
+ tm->tm_mon -= 1;
+ i = strftime(q, *pstr_len, "%U", tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ tm->tm_mon += 1;
+ replace_type = PGTYPES_TYPE_NOTHING;
+ break;
+
+ /*
+ * The ISO 8601:1988 week number of the current year as a
+ * decimal number.
+ */
+ case 'V':
+ {
+ /* Keep compiler quiet - Don't use a literal format */
+ const char *fmt = "%V";
+
+ i = strftime(q, *pstr_len, fmt, tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ replace_type = PGTYPES_TYPE_NOTHING;
+ }
+ break;
+
+ /*
+ * The day of the week as a decimal, Sunday being 0 and
+ * Monday 1.
+ */
+ case 'w':
+ replace_val.uint_val = dow;
+ replace_type = PGTYPES_TYPE_UINT;
+ break;
+ /* The week number of the year (another definition) */
+ case 'W':
+ tm->tm_mon -= 1;
+ i = strftime(q, *pstr_len, "%U", tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ tm->tm_mon += 1;
+ replace_type = PGTYPES_TYPE_NOTHING;
+ break;
+
+ /*
+ * The preferred date representation for the current
+ * locale without the time.
+ */
+ case 'x':
+ {
+ const char *fmt = "%x"; /* Keep compiler quiet about
+ * 2-digit year */
+
+ tm->tm_mon -= 1;
+ i = strftime(q, *pstr_len, fmt, tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ tm->tm_mon += 1;
+ replace_type = PGTYPES_TYPE_NOTHING;
+ }
+ break;
+
+ /*
+ * The preferred time representation for the current
+ * locale without the date.
+ */
+ case 'X':
+ tm->tm_mon -= 1;
+ i = strftime(q, *pstr_len, "%X", tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ tm->tm_mon += 1;
+ replace_type = PGTYPES_TYPE_NOTHING;
+ break;
+ /* The year without the century (2 digits, leading zeroes) */
+ case 'y':
+ replace_val.uint_val = tm->tm_year % 100;
+ replace_type = PGTYPES_TYPE_UINT_2_LZ;
+ break;
+ /* The year with the century (4 digits) */
+ case 'Y':
+ replace_val.uint_val = tm->tm_year;
+ replace_type = PGTYPES_TYPE_UINT;
+ break;
+ /* The time zone offset from GMT */
+ case 'z':
+ tm->tm_mon -= 1;
+ i = strftime(q, *pstr_len, "%z", tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ tm->tm_mon += 1;
+ replace_type = PGTYPES_TYPE_NOTHING;
+ break;
+ /* The name or abbreviation of the time zone */
+ case 'Z':
+ tm->tm_mon -= 1;
+ i = strftime(q, *pstr_len, "%Z", tm);
+ if (i == 0)
+ return -1;
+ while (*q)
+ {
+ q++;
+ (*pstr_len)--;
+ }
+ tm->tm_mon += 1;
+ replace_type = PGTYPES_TYPE_NOTHING;
+ break;
+ /* A % sign */
+ case '%':
+ replace_val.char_val = '%';
+ replace_type = PGTYPES_TYPE_CHAR;
+ break;
+ case '\0':
+ /* fmtstr: foo%' - The string ends with a % sign */
+
+ /*
+ * this is not compliant to the specification
+ */
+ return -1;
+ default:
+
+ /*
+ * if we don't know the pattern, we just copy it
+ */
+ if (*pstr_len > 1)
+ {
+ *q = '%';
+ q++;
+ (*pstr_len)--;
+ if (*pstr_len > 1)
+ {
+ *q = *p;
+ q++;
+ (*pstr_len)--;
+ }
+ else
+ {
+ *q = '\0';
+ return -1;
+ }
+ *q = '\0';
+ }
+ else
+ return -1;
+ break;
+ }
+ i = pgtypes_fmt_replace(replace_val, replace_type, &q, pstr_len);
+ if (i)
+ return i;
+ }
+ else
+ {
+ if (*pstr_len > 1)
+ {
+ *q = *p;
+ (*pstr_len)--;
+ q++;
+ *q = '\0';
+ }
+ else
+ return -1;
+ }
+ p++;
+ }
+ return 0;
+}
+
+
+int
+PGTYPEStimestamp_fmt_asc(timestamp * ts, char *output, int str_len, const char *fmtstr)
+{
+ struct tm tm;
+ fsec_t fsec;
+ date dDate;
+ int dow;
+
+ dDate = PGTYPESdate_from_timestamp(*ts);
+ dow = PGTYPESdate_dayofweek(dDate);
+ timestamp2tm(*ts, NULL, &tm, &fsec, NULL);
+
+ return dttofmtasc_replace(ts, dDate, dow, &tm, output, &str_len, fmtstr);
+}
+
+int
+PGTYPEStimestamp_sub(timestamp * ts1, timestamp * ts2, interval * iv)
+{
+ if (TIMESTAMP_NOT_FINITE(*ts1) || TIMESTAMP_NOT_FINITE(*ts2))
+ return PGTYPES_TS_ERR_EINFTIME;
+ else
+ iv->time = (*ts1 - *ts2);
+
+ iv->month = 0;
+
+ return 0;
+}
+
+int
+PGTYPEStimestamp_defmt_asc(const char *str, const char *fmt, timestamp * d)
+{
+ int year,
+ month,
+ day;
+ int hour,
+ minute,
+ second;
+ int tz;
+
+ int i;
+ char *mstr;
+ char *mfmt;
+
+ if (!fmt)
+ fmt = "%Y-%m-%d %H:%M:%S";
+ if (!fmt[0])
+ return 1;
+
+ mstr = pgtypes_strdup(str);
+ mfmt = pgtypes_strdup(fmt);
+
+ /*
+ * initialize with impossible values so that we can see if the fields
+ * where specified at all
+ */
+ /* XXX ambiguity with 1 BC for year? */
+ year = -1;
+ month = -1;
+ day = -1;
+ hour = 0;
+ minute = -1;
+ second = -1;
+ tz = 0;
+
+ i = PGTYPEStimestamp_defmt_scan(&mstr, mfmt, d, &year, &month, &day, &hour, &minute, &second, &tz);
+ free(mstr);
+ free(mfmt);
+ return i;
+}
+
+/*
+* add an interval to a time stamp
+*
+* *tout = tin + span
+*
+* returns 0 if successful
+* returns -1 if it fails
+*
+*/
+
+int
+PGTYPEStimestamp_add_interval(timestamp * tin, interval * span, timestamp * tout)
+{
+ if (TIMESTAMP_NOT_FINITE(*tin))
+ *tout = *tin;
+ else
+ {
+ if (span->month != 0)
+ {
+ struct tm tt,
+ *tm = &tt;
+ fsec_t fsec;
+
+ if (timestamp2tm(*tin, NULL, tm, &fsec, NULL) != 0)
+ return -1;
+ tm->tm_mon += span->month;
+ if (tm->tm_mon > MONTHS_PER_YEAR)
+ {
+ tm->tm_year += (tm->tm_mon - 1) / MONTHS_PER_YEAR;
+ tm->tm_mon = (tm->tm_mon - 1) % MONTHS_PER_YEAR + 1;
+ }
+ else if (tm->tm_mon < 1)
+ {
+ tm->tm_year += tm->tm_mon / MONTHS_PER_YEAR - 1;
+ tm->tm_mon = tm->tm_mon % MONTHS_PER_YEAR + MONTHS_PER_YEAR;
+ }
+
+
+ /* adjust for end of month boundary problems... */
+ if (tm->tm_mday > day_tab[isleap(tm->tm_year)][tm->tm_mon - 1])
+ tm->tm_mday = (day_tab[isleap(tm->tm_year)][tm->tm_mon - 1]);
+
+
+ if (tm2timestamp(tm, fsec, NULL, tin) != 0)
+ return -1;
+ }
+
+ *tin += span->time;
+ *tout = *tin;
+ }
+
+ return 0;
+}
+
+
+/*
+* subtract an interval from a time stamp
+*
+* *tout = tin - span
+*
+* returns 0 if successful
+* returns -1 if it fails
+*
+*/
+
+int
+PGTYPEStimestamp_sub_interval(timestamp * tin, interval * span, timestamp * tout)
+{
+ interval tspan;
+
+ tspan.month = -span->month;
+ tspan.time = -span->time;
+
+ return PGTYPEStimestamp_add_interval(tin, &tspan, tout);
+}
diff --git a/src/interfaces/ecpg/preproc/.gitignore b/src/interfaces/ecpg/preproc/.gitignore
new file mode 100644
index 0000000..958a826
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/.gitignore
@@ -0,0 +1,8 @@
+/preproc.y
+/preproc.c
+/preproc.h
+/pgc.c
+/c_kwlist_d.h
+/ecpg_kwlist_d.h
+/typename.c
+/ecpg
diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile
new file mode 100644
index 0000000..ef6d645
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/Makefile
@@ -0,0 +1,102 @@
+#-------------------------------------------------------------------------
+#
+# Makefile for src/interfaces/ecpg/preproc
+#
+# Copyright (c) 1998-2022, PostgreSQL Global Development Group
+#
+# src/interfaces/ecpg/preproc/Makefile
+#
+#-------------------------------------------------------------------------
+
+PGFILEDESC = "ecpg - embedded SQL precompiler for C"
+PGAPPICON=win32
+
+subdir = src/interfaces/ecpg/preproc
+top_builddir = ../../../..
+include $(top_builddir)/src/Makefile.global
+
+override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
+ -I. -I$(srcdir) \
+ -I$(top_srcdir)/src/interfaces/ecpg/ecpglib \
+ -I$(libpq_srcdir) \
+ $(CPPFLAGS)
+
+override CFLAGS += $(PTHREAD_CFLAGS)
+
+OBJS = \
+ $(WIN32RES) \
+ c_keywords.o \
+ descriptor.o \
+ ecpg.o \
+ ecpg_keywords.o \
+ keywords.o \
+ output.o \
+ parser.o \
+ pgc.o \
+ preproc.o \
+ type.o \
+ typename.o \
+ variable.o
+
+# where to find gen_keywordlist.pl and subsidiary files
+TOOLSDIR = $(top_srcdir)/src/tools
+GEN_KEYWORDLIST = $(PERL) -I $(TOOLSDIR) $(TOOLSDIR)/gen_keywordlist.pl
+GEN_KEYWORDLIST_DEPS = $(TOOLSDIR)/gen_keywordlist.pl $(TOOLSDIR)/PerfectHash.pm
+
+# Suppress parallel build to avoid a bug in GNU make 3.82
+# (see comments in ../Makefile)
+ifeq ($(MAKE_VERSION),3.82)
+.NOTPARALLEL:
+endif
+
+all: ecpg
+
+ecpg: $(OBJS) | submake-libpgport
+ $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) $(PTHREAD_LIBS) -o $@$(X)
+
+# We symlink typename.c from ecpglib and recompile it here
+typename.c: % : $(top_srcdir)/src/interfaces/ecpg/ecpglib/%
+ rm -f $@ && $(LN_S) $< .
+
+# See notes in src/backend/parser/Makefile about the following two rules
+preproc.h: preproc.c
+ touch $@
+
+preproc.c: BISONFLAGS += -d
+
+preproc.y: ../../../backend/parser/gram.y parse.pl ecpg.addons ecpg.header ecpg.tokens ecpg.trailer ecpg.type
+ $(PERL) $(srcdir)/parse.pl $(srcdir) < $< > $@
+ $(PERL) $(srcdir)/check_rules.pl $(srcdir) $<
+
+# generate keyword headers
+c_kwlist_d.h: c_kwlist.h $(GEN_KEYWORDLIST_DEPS)
+ $(GEN_KEYWORDLIST) --varname ScanCKeywords --no-case-fold $<
+
+ecpg_kwlist_d.h: ecpg_kwlist.h $(GEN_KEYWORDLIST_DEPS)
+ $(GEN_KEYWORDLIST) --varname ScanECPGKeywords $<
+
+# Force these dependencies to be known even without dependency info built:
+ecpg_keywords.o c_keywords.o keywords.o preproc.o pgc.o parser.o: preproc.h
+ecpg_keywords.o: ecpg_kwlist_d.h
+c_keywords.o: c_kwlist_d.h
+keywords.o: $(top_srcdir)/src/include/parser/kwlist.h
+
+distprep: preproc.y preproc.c preproc.h pgc.c c_kwlist_d.h ecpg_kwlist_d.h
+
+install: all installdirs
+ $(INSTALL_PROGRAM) ecpg$(X) '$(DESTDIR)$(bindir)'
+
+installdirs:
+ $(MKDIR_P) '$(DESTDIR)$(bindir)'
+
+uninstall:
+ rm -f '$(DESTDIR)$(bindir)/ecpg$(X)'
+
+# preproc.y, preproc.c, preproc.h, pgc.c, c_kwlist_d.h, and ecpg_kwlist_d.h
+# are in the distribution tarball, so they are not cleaned here.
+clean distclean:
+ rm -f *.o ecpg$(X)
+ rm -f typename.c
+
+maintainer-clean: distclean
+ rm -f preproc.y preproc.c preproc.h pgc.c c_kwlist_d.h ecpg_kwlist_d.h
diff --git a/src/interfaces/ecpg/preproc/README.parser b/src/interfaces/ecpg/preproc/README.parser
new file mode 100644
index 0000000..ddc3061
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/README.parser
@@ -0,0 +1,42 @@
+ECPG modifies and extends the core grammar in a way that
+1) every token in ECPG is <str> type. New tokens are
+ defined in ecpg.tokens, types are defined in ecpg.type
+2) most tokens from the core grammar are simply converted
+ to literals concatenated together to form the SQL string
+ passed to the server, this is done by parse.pl.
+3) some rules need side-effects, actions are either added
+ or completely overridden (compared to the basic token
+ concatenation) for them, these are defined in ecpg.addons,
+ the rules for ecpg.addons are explained below.
+4) new grammar rules are needed for ECPG metacommands.
+ These are in ecpg.trailer.
+5) ecpg.header contains common functions, etc. used by
+ actions for grammar rules.
+
+In "ecpg.addons", every modified rule follows this pattern:
+ ECPG: dumpedtokens postfix
+where "dumpedtokens" is simply tokens from core gram.y's
+rules concatenated together. e.g. if gram.y has this:
+ ruleA: tokenA tokenB tokenC {...}
+then "dumpedtokens" is "ruleAtokenAtokenBtokenC".
+"postfix" above can be:
+a) "block" - the automatic rule created by parse.pl is completely
+ overridden, the code block has to be written completely as
+ it were in a plain bison grammar
+b) "rule" - the automatic rule is extended on, so new syntaxes
+ are accepted for "ruleA". E.g.:
+ ECPG: ruleAtokenAtokenBtokenC rule
+ | tokenD tokenE { action_code; }
+ ...
+ It will be substituted with:
+ ruleA: <original syntax forms and actions up to and including
+ "tokenA tokenB tokenC">
+ | tokenD tokenE { action_code; }
+ ...
+c) "addon" - the automatic action for the rule (SQL syntax constructed
+ from the tokens concatenated together) is prepended with a new
+ action code part. This code part is written as is's already inside
+ the { ... }
+
+Multiple "addon" or "block" lines may appear together with the
+new code block if the code block is common for those rules.
diff --git a/src/interfaces/ecpg/preproc/c_keywords.c b/src/interfaces/ecpg/preproc/c_keywords.c
new file mode 100644
index 0000000..e51c036
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/c_keywords.c
@@ -0,0 +1,66 @@
+/*-------------------------------------------------------------------------
+ *
+ * c_keywords.c
+ * lexical token lookup for reserved words in postgres embedded SQL
+ *
+ * src/interfaces/ecpg/preproc/c_keywords.c
+ *
+ *-------------------------------------------------------------------------
+ */
+#include "postgres_fe.h"
+
+/* ScanKeywordList lookup data for C keywords */
+#include "c_kwlist_d.h"
+#include "preproc_extern.h"
+#include "preproc.h"
+
+/* Token codes for C keywords */
+#define PG_KEYWORD(kwname, value) value,
+
+static const uint16 ScanCKeywordTokens[] = {
+#include "c_kwlist.h"
+};
+
+#undef PG_KEYWORD
+
+
+/*
+ * ScanCKeywordLookup - see if a given word is a keyword
+ *
+ * Returns the token value of the keyword, or -1 if no match.
+ *
+ * Do a hash search using plain strcmp() comparison. This is much like
+ * ScanKeywordLookup(), except we want case-sensitive matching.
+ */
+int
+ScanCKeywordLookup(const char *str)
+{
+ size_t len;
+ int h;
+ const char *kw;
+
+ /*
+ * Reject immediately if too long to be any keyword. This saves useless
+ * hashing work on long strings.
+ */
+ len = strlen(str);
+ if (len > ScanCKeywords.max_kw_len)
+ return -1;
+
+ /*
+ * Compute the hash function. Since it's a perfect hash, we need only
+ * match to the specific keyword it identifies.
+ */
+ h = ScanCKeywords_hash_func(str, len);
+
+ /* An out-of-range result implies no match */
+ if (h < 0 || h >= ScanCKeywords.num_keywords)
+ return -1;
+
+ kw = GetScanKeyword(h, &ScanCKeywords);
+
+ if (strcmp(kw, str) == 0)
+ return ScanCKeywordTokens[h];
+
+ return -1;
+}
diff --git a/src/interfaces/ecpg/preproc/c_kwlist.h b/src/interfaces/ecpg/preproc/c_kwlist.h
new file mode 100644
index 0000000..f99e3d7
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/c_kwlist.h
@@ -0,0 +1,52 @@
+/*-------------------------------------------------------------------------
+ *
+ * c_kwlist.h
+ *
+ * The keyword lists are kept in their own source files for use by
+ * automatic tools. The exact representation of a keyword is determined
+ * by the PG_KEYWORD macro, which is not defined in this file; it can
+ * be defined by the caller for special purposes.
+ *
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * src/interfaces/ecpg/preproc/c_kwlist.h
+ *
+ *-------------------------------------------------------------------------
+ */
+
+/* There is deliberately not an #ifndef C_KWLIST_H here. */
+
+/*
+ * List of (keyword-name, keyword-token-value) pairs.
+ *
+ * Note: gen_keywordlist.pl requires the entries to appear in ASCII order.
+ */
+
+/* name, value */
+PG_KEYWORD("VARCHAR", VARCHAR)
+PG_KEYWORD("auto", S_AUTO)
+PG_KEYWORD("bool", SQL_BOOL)
+PG_KEYWORD("char", CHAR_P)
+PG_KEYWORD("const", S_CONST)
+PG_KEYWORD("enum", ENUM_P)
+PG_KEYWORD("extern", S_EXTERN)
+PG_KEYWORD("float", FLOAT_P)
+PG_KEYWORD("hour", HOUR_P)
+PG_KEYWORD("int", INT_P)
+PG_KEYWORD("long", SQL_LONG)
+PG_KEYWORD("minute", MINUTE_P)
+PG_KEYWORD("month", MONTH_P)
+PG_KEYWORD("register", S_REGISTER)
+PG_KEYWORD("second", SECOND_P)
+PG_KEYWORD("short", SQL_SHORT)
+PG_KEYWORD("signed", SQL_SIGNED)
+PG_KEYWORD("static", S_STATIC)
+PG_KEYWORD("struct", SQL_STRUCT)
+PG_KEYWORD("to", TO)
+PG_KEYWORD("typedef", S_TYPEDEF)
+PG_KEYWORD("union", UNION)
+PG_KEYWORD("unsigned", SQL_UNSIGNED)
+PG_KEYWORD("varchar", VARCHAR)
+PG_KEYWORD("volatile", S_VOLATILE)
+PG_KEYWORD("year", YEAR_P)
diff --git a/src/interfaces/ecpg/preproc/c_kwlist_d.h b/src/interfaces/ecpg/preproc/c_kwlist_d.h
new file mode 100644
index 0000000..d015551
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/c_kwlist_d.h
@@ -0,0 +1,118 @@
+/*-------------------------------------------------------------------------
+ *
+ * c_kwlist_d.h
+ * List of keywords represented as a ScanKeywordList.
+ *
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * NOTES
+ * ******************************
+ * *** DO NOT EDIT THIS FILE! ***
+ * ******************************
+ *
+ * It has been GENERATED by src/tools/gen_keywordlist.pl
+ *
+ *-------------------------------------------------------------------------
+ */
+
+#ifndef C_KWLIST_D_H
+#define C_KWLIST_D_H
+
+#include "common/kwlookup.h"
+
+static const char ScanCKeywords_kw_string[] =
+ "VARCHAR\0"
+ "auto\0"
+ "bool\0"
+ "char\0"
+ "const\0"
+ "enum\0"
+ "extern\0"
+ "float\0"
+ "hour\0"
+ "int\0"
+ "long\0"
+ "minute\0"
+ "month\0"
+ "register\0"
+ "second\0"
+ "short\0"
+ "signed\0"
+ "static\0"
+ "struct\0"
+ "to\0"
+ "typedef\0"
+ "union\0"
+ "unsigned\0"
+ "varchar\0"
+ "volatile\0"
+ "year";
+
+static const uint16 ScanCKeywords_kw_offsets[] = {
+ 0,
+ 8,
+ 13,
+ 18,
+ 23,
+ 29,
+ 34,
+ 41,
+ 47,
+ 52,
+ 56,
+ 61,
+ 68,
+ 74,
+ 83,
+ 90,
+ 96,
+ 103,
+ 110,
+ 117,
+ 120,
+ 128,
+ 134,
+ 143,
+ 151,
+ 160,
+};
+
+#define SCANCKEYWORDS_NUM_KEYWORDS 26
+
+static int
+ScanCKeywords_hash_func(const void *key, size_t keylen)
+{
+ static const int8 h[53] = {
+ -5, 0, 127, -9, 0, 127, 127, 3,
+ 127, 15, 127, 127, 127, 127, 11, 16,
+ 1, 0, 6, 16, 9, 5, 127, 0,
+ 127, 20, 24, -5, 5, 18, 5, 18,
+ 2, 127, 127, 127, 20, 127, -17, 0,
+ 127, 2, 127, 6, 127, -10, 12, 19,
+ 0, 0, 0, 127, 0
+ };
+
+ const unsigned char *k = (const unsigned char *) key;
+ uint32 a = 0;
+ uint32 b = 0;
+
+ while (keylen--)
+ {
+ unsigned char c = *k++;
+
+ a = a * 257 + c;
+ b = b * 17 + c;
+ }
+ return h[a % 53] + h[b % 53];
+}
+
+static const ScanKeywordList ScanCKeywords = {
+ ScanCKeywords_kw_string,
+ ScanCKeywords_kw_offsets,
+ ScanCKeywords_hash_func,
+ SCANCKEYWORDS_NUM_KEYWORDS,
+ 8
+};
+
+#endif /* C_KWLIST_D_H */
diff --git a/src/interfaces/ecpg/preproc/check_rules.pl b/src/interfaces/ecpg/preproc/check_rules.pl
new file mode 100644
index 0000000..0a3fafc
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/check_rules.pl
@@ -0,0 +1,191 @@
+#!/usr/bin/perl
+# src/interfaces/ecpg/preproc/check_rules.pl
+# test parser generator for ecpg
+# call with backend grammar as stdin
+#
+# Copyright (c) 2009-2022, PostgreSQL Global Development Group
+#
+# Written by Michael Meskes <meskes@postgresql.org>
+# Andy Colson <andy@squeakycode.net>
+#
+# Placed under the same license as PostgreSQL.
+#
+# Command line: [-v] [path only to ecpg.addons] [full filename of gram.y]
+# -v enables verbose mode... show's some stats... thought it might be interesting
+#
+# This script loads rule names from gram.y and sets $found{rule} = 1 for each.
+# Then it checks to make sure each rule in ecpg.addons was found in gram.y
+
+use strict;
+use warnings;
+no warnings 'uninitialized';
+
+my $verbose = 0;
+if ($ARGV[0] eq '-v')
+{
+ $verbose = shift;
+}
+my $path = shift || '.';
+my $parser = shift || '../../../backend/parser/gram.y';
+
+my $filename = $path . "/ecpg.addons";
+if ($verbose)
+{
+ print "parser: $parser\n";
+ print "addons: $filename\n";
+}
+
+my %replace_line = (
+ 'ExecuteStmtEXECUTEnameexecute_param_clause' =>
+ 'EXECUTE prepared_name execute_param_clause execute_rest',
+
+ 'ExecuteStmtCREATEOptTempTABLEcreate_as_targetASEXECUTEnameexecute_param_clauseopt_with_data'
+ => 'CREATE OptTemp TABLE create_as_target AS EXECUTE prepared_name execute_param_clause opt_with_data execute_rest',
+
+ 'ExecuteStmtCREATEOptTempTABLEIF_PNOTEXISTScreate_as_targetASEXECUTEnameexecute_param_clauseopt_with_data'
+ => 'CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS EXECUTE prepared_name execute_param_clause opt_with_data execute_rest',
+
+ 'PrepareStmtPREPAREnameprep_type_clauseASPreparableStmt' =>
+ 'PREPARE prepared_name prep_type_clause AS PreparableStmt');
+
+my $block = '';
+my $yaccmode = 0;
+my $in_rule = 0;
+my $brace_indent = 0;
+my (@arr, %found);
+my $comment = 0;
+my $non_term_id = '';
+my $cc = 0;
+
+open my $parser_fh, '<', $parser or die $!;
+while (<$parser_fh>)
+{
+ if (/^%%/)
+ {
+ $yaccmode++;
+ }
+
+ if ($yaccmode != 1)
+ {
+ next;
+ }
+
+ chomp; # strip record separator
+
+ next if ($_ eq '');
+
+ # Make sure any braces are split
+ s/{/ { /g;
+ s/}/ } /g;
+
+ # Any comments are split
+ s|\/\*| /* |g;
+ s|\*\/| */ |g;
+
+ # Now split the line into individual fields
+ my $n = (@arr = split(' '));
+
+ # Go through each field in turn
+ for (my $fieldIndexer = 0; $fieldIndexer < $n; $fieldIndexer++)
+ {
+ if ($arr[$fieldIndexer] eq '*/' && $comment)
+ {
+ $comment = 0;
+ next;
+ }
+ elsif ($comment)
+ {
+ next;
+ }
+ elsif ($arr[$fieldIndexer] eq '/*')
+ {
+
+ # start of a multiline comment
+ $comment = 1;
+ next;
+ }
+ elsif ($arr[$fieldIndexer] eq '//')
+ {
+ next;
+ }
+ elsif ($arr[$fieldIndexer] eq '}')
+ {
+ $brace_indent--;
+ next;
+ }
+ elsif ($arr[$fieldIndexer] eq '{')
+ {
+ $brace_indent++;
+ next;
+ }
+
+ if ($brace_indent > 0)
+ {
+ next;
+ }
+
+ if ($arr[$fieldIndexer] eq ';' || $arr[$fieldIndexer] eq '|')
+ {
+ $block = $non_term_id . $block;
+ if ($replace_line{$block})
+ {
+ $block = $non_term_id . $replace_line{$block};
+ $block =~ tr/ |//d;
+ }
+ $found{$block} = 1;
+ $cc++;
+ $block = '';
+ $in_rule = 0 if $arr[$fieldIndexer] eq ';';
+ }
+ elsif (($arr[$fieldIndexer] =~ '[A-Za-z0-9]+:')
+ || $arr[ $fieldIndexer + 1 ] eq ':')
+ {
+ die "unterminated rule at grammar line $.\n"
+ if $in_rule;
+ $in_rule = 1;
+ $non_term_id = $arr[$fieldIndexer];
+ $non_term_id =~ tr/://d;
+ }
+ else
+ {
+ $block = $block . $arr[$fieldIndexer];
+ }
+ }
+}
+
+die "unterminated rule at end of grammar\n"
+ if $in_rule;
+
+close $parser_fh;
+if ($verbose)
+{
+ print "$cc rules loaded\n";
+}
+
+my $ret = 0;
+$cc = 0;
+
+open my $ecpg_fh, '<', $filename or die $!;
+while (<$ecpg_fh>)
+{
+ if (!/^ECPG:/)
+ {
+ next;
+ }
+
+ my @Fld = split(' ', $_, 3);
+ $cc++;
+ if (not exists $found{ $Fld[1] })
+ {
+ print $Fld[1], " is not used for building parser!\n";
+ $ret = 1;
+ }
+}
+close $ecpg_fh;
+
+if ($verbose)
+{
+ print "$cc rules checked\n";
+}
+
+exit $ret;
diff --git a/src/interfaces/ecpg/preproc/descriptor.c b/src/interfaces/ecpg/preproc/descriptor.c
new file mode 100644
index 0000000..35d9471
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/descriptor.c
@@ -0,0 +1,367 @@
+/*
+ * functions needed for descriptor handling
+ *
+ * src/interfaces/ecpg/preproc/descriptor.c
+ *
+ * since descriptor might be either a string constant or a string var
+ * we need to check for a constant if we expect a constant
+ */
+
+#include "postgres_fe.h"
+
+#include "preproc_extern.h"
+
+/*
+ * assignment handling function (descriptor)
+ */
+
+static struct assignment *assignments;
+
+void
+push_assignment(char *var, enum ECPGdtype value)
+{
+ struct assignment *new = (struct assignment *) mm_alloc(sizeof(struct assignment));
+
+ new->next = assignments;
+ new->variable = mm_alloc(strlen(var) + 1);
+ strcpy(new->variable, var);
+ new->value = value;
+ assignments = new;
+}
+
+static void
+drop_assignments(void)
+{
+ while (assignments)
+ {
+ struct assignment *old_head = assignments;
+
+ assignments = old_head->next;
+ free(old_head->variable);
+ free(old_head);
+ }
+}
+
+static void
+ECPGnumeric_lvalue(char *name)
+{
+ const struct variable *v = find_variable(name);
+
+ switch (v->type->type)
+ {
+ case ECPGt_short:
+ case ECPGt_int:
+ case ECPGt_long:
+ case ECPGt_long_long:
+ case ECPGt_unsigned_short:
+ case ECPGt_unsigned_int:
+ case ECPGt_unsigned_long:
+ case ECPGt_unsigned_long_long:
+ case ECPGt_const:
+ fputs(name, base_yyout);
+ break;
+ default:
+ mmerror(PARSE_ERROR, ET_ERROR, "variable \"%s\" must have a numeric type", name);
+ break;
+ }
+}
+
+/*
+ * descriptor name lookup
+ */
+
+static struct descriptor *descriptors;
+
+void
+add_descriptor(char *name, char *connection)
+{
+ struct descriptor *new;
+
+ if (name[0] != '"')
+ return;
+
+ new = (struct descriptor *) mm_alloc(sizeof(struct descriptor));
+
+ new->next = descriptors;
+ new->name = mm_alloc(strlen(name) + 1);
+ strcpy(new->name, name);
+ if (connection)
+ {
+ new->connection = mm_alloc(strlen(connection) + 1);
+ strcpy(new->connection, connection);
+ }
+ else
+ new->connection = connection;
+ descriptors = new;
+}
+
+void
+drop_descriptor(char *name, char *connection)
+{
+ struct descriptor *i;
+ struct descriptor **lastptr = &descriptors;
+
+ if (name[0] != '"')
+ return;
+
+ for (i = descriptors; i; lastptr = &i->next, i = i->next)
+ {
+ if (strcmp(name, i->name) == 0)
+ {
+ if ((!connection && !i->connection)
+ || (connection && i->connection
+ && strcmp(connection, i->connection) == 0))
+ {
+ *lastptr = i->next;
+ if (i->connection)
+ free(i->connection);
+ free(i->name);
+ free(i);
+ return;
+ }
+ }
+ }
+ if (connection)
+ mmerror(PARSE_ERROR, ET_WARNING, "descriptor %s bound to connection %s does not exist", name, connection);
+ else
+ mmerror(PARSE_ERROR, ET_WARNING, "descriptor %s bound to the default connection does not exist", name);
+}
+
+struct descriptor
+ *
+lookup_descriptor(char *name, char *connection)
+{
+ struct descriptor *i;
+
+ if (name[0] != '"')
+ return NULL;
+
+ for (i = descriptors; i; i = i->next)
+ {
+ if (strcmp(name, i->name) == 0)
+ {
+ if ((!connection && !i->connection)
+ || (connection && i->connection
+ && strcmp(connection, i->connection) == 0))
+ return i;
+ if (connection && !i->connection)
+ {
+ /* overwrite descriptor's connection */
+ i->connection = mm_strdup(connection);
+ return i;
+ }
+ }
+ }
+ if (connection)
+ mmerror(PARSE_ERROR, ET_WARNING, "descriptor %s bound to connection %s does not exist", name, connection);
+ else
+ mmerror(PARSE_ERROR, ET_WARNING, "descriptor %s bound to the default connection does not exist", name);
+ return NULL;
+}
+
+void
+output_get_descr_header(char *desc_name)
+{
+ struct assignment *results;
+
+ fprintf(base_yyout, "{ ECPGget_desc_header(__LINE__, %s, &(", desc_name);
+ for (results = assignments; results != NULL; results = results->next)
+ {
+ if (results->value == ECPGd_count)
+ ECPGnumeric_lvalue(results->variable);
+ else
+ mmerror(PARSE_ERROR, ET_WARNING, "descriptor header item \"%d\" does not exist", results->value);
+ }
+
+ drop_assignments();
+ fprintf(base_yyout, "));\n");
+ whenever_action(3);
+}
+
+void
+output_get_descr(char *desc_name, char *index)
+{
+ struct assignment *results;
+
+ fprintf(base_yyout, "{ ECPGget_desc(__LINE__, %s, %s,", desc_name, index);
+ for (results = assignments; results != NULL; results = results->next)
+ {
+ const struct variable *v = find_variable(results->variable);
+ char *str_zero = mm_strdup("0");
+
+ switch (results->value)
+ {
+ case ECPGd_nullable:
+ mmerror(PARSE_ERROR, ET_WARNING, "nullable is always 1");
+ break;
+ case ECPGd_key_member:
+ mmerror(PARSE_ERROR, ET_WARNING, "key_member is always 0");
+ break;
+ default:
+ break;
+ }
+ fprintf(base_yyout, "%s,", get_dtype(results->value));
+ ECPGdump_a_type(base_yyout, v->name, v->type, v->brace_level,
+ NULL, NULL, -1, NULL, NULL, str_zero, NULL, NULL);
+ free(str_zero);
+ }
+ drop_assignments();
+ fputs("ECPGd_EODT);\n", base_yyout);
+
+ whenever_action(2 | 1);
+}
+
+void
+output_set_descr_header(char *desc_name)
+{
+ struct assignment *results;
+
+ fprintf(base_yyout, "{ ECPGset_desc_header(__LINE__, %s, (int)(", desc_name);
+ for (results = assignments; results != NULL; results = results->next)
+ {
+ if (results->value == ECPGd_count)
+ ECPGnumeric_lvalue(results->variable);
+ else
+ mmerror(PARSE_ERROR, ET_WARNING, "descriptor header item \"%d\" does not exist", results->value);
+ }
+
+ drop_assignments();
+ fprintf(base_yyout, "));\n");
+ whenever_action(3);
+}
+
+static const char *
+descriptor_item_name(enum ECPGdtype itemcode)
+{
+ switch (itemcode)
+ {
+ case ECPGd_cardinality:
+ return "CARDINALITY";
+ case ECPGd_count:
+ return "COUNT";
+ case ECPGd_data:
+ return "DATA";
+ case ECPGd_di_code:
+ return "DATETIME_INTERVAL_CODE";
+ case ECPGd_di_precision:
+ return "DATETIME_INTERVAL_PRECISION";
+ case ECPGd_indicator:
+ return "INDICATOR";
+ case ECPGd_key_member:
+ return "KEY_MEMBER";
+ case ECPGd_length:
+ return "LENGTH";
+ case ECPGd_name:
+ return "NAME";
+ case ECPGd_nullable:
+ return "NULLABLE";
+ case ECPGd_octet:
+ return "OCTET_LENGTH";
+ case ECPGd_precision:
+ return "PRECISION";
+ case ECPGd_ret_length:
+ return "RETURNED_LENGTH";
+ case ECPGd_ret_octet:
+ return "RETURNED_OCTET_LENGTH";
+ case ECPGd_scale:
+ return "SCALE";
+ case ECPGd_type:
+ return "TYPE";
+ default:
+ return NULL;
+ }
+}
+
+void
+output_set_descr(char *desc_name, char *index)
+{
+ struct assignment *results;
+
+ fprintf(base_yyout, "{ ECPGset_desc(__LINE__, %s, %s,", desc_name, index);
+ for (results = assignments; results != NULL; results = results->next)
+ {
+ const struct variable *v = find_variable(results->variable);
+
+ switch (results->value)
+ {
+ case ECPGd_cardinality:
+ case ECPGd_di_code:
+ case ECPGd_di_precision:
+ case ECPGd_precision:
+ case ECPGd_scale:
+ mmfatal(PARSE_ERROR, "descriptor item \"%s\" is not implemented",
+ descriptor_item_name(results->value));
+ break;
+
+ case ECPGd_key_member:
+ case ECPGd_name:
+ case ECPGd_nullable:
+ case ECPGd_octet:
+ case ECPGd_ret_length:
+ case ECPGd_ret_octet:
+ mmfatal(PARSE_ERROR, "descriptor item \"%s\" cannot be set",
+ descriptor_item_name(results->value));
+ break;
+
+ case ECPGd_data:
+ case ECPGd_indicator:
+ case ECPGd_length:
+ case ECPGd_type:
+ {
+ char *str_zero = mm_strdup("0");
+
+ fprintf(base_yyout, "%s,", get_dtype(results->value));
+ ECPGdump_a_type(base_yyout, v->name, v->type, v->brace_level,
+ NULL, NULL, -1, NULL, NULL, str_zero, NULL, NULL);
+ free(str_zero);
+ }
+ break;
+
+ default:
+ ;
+ }
+ }
+ drop_assignments();
+ fputs("ECPGd_EODT);\n", base_yyout);
+
+ whenever_action(2 | 1);
+}
+
+/* I consider dynamic allocation overkill since at most two descriptor
+ variables are possible per statement. (input and output descriptor)
+ And descriptors are no normal variables, so they don't belong into
+ the variable list.
+*/
+
+#define MAX_DESCRIPTOR_NAMELEN 128
+struct variable *
+descriptor_variable(const char *name, int input)
+{
+ static char descriptor_names[2][MAX_DESCRIPTOR_NAMELEN];
+ static struct ECPGtype descriptor_type = {ECPGt_descriptor, NULL, NULL, NULL, {NULL}, 0};
+ static struct variable varspace[2] = {
+ {descriptor_names[0], &descriptor_type, 0, NULL},
+ {descriptor_names[1], &descriptor_type, 0, NULL}
+ };
+
+ strlcpy(descriptor_names[input], name, sizeof(descriptor_names[input]));
+ return &varspace[input];
+}
+
+struct variable *
+sqlda_variable(const char *name)
+{
+ struct variable *p = (struct variable *) mm_alloc(sizeof(struct variable));
+
+ p->name = mm_strdup(name);
+ p->type = (struct ECPGtype *) mm_alloc(sizeof(struct ECPGtype));
+ p->type->type = ECPGt_sqlda;
+ p->type->size = NULL;
+ p->type->struct_sizeof = NULL;
+ p->type->u.element = NULL;
+ p->type->counter = 0;
+ p->brace_level = 0;
+ p->next = NULL;
+
+ return p;
+}
diff --git a/src/interfaces/ecpg/preproc/ecpg.addons b/src/interfaces/ecpg/preproc/ecpg.addons
new file mode 100644
index 0000000..94f7d4a
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/ecpg.addons
@@ -0,0 +1,590 @@
+/* src/interfaces/ecpg/preproc/ecpg.addons */
+ECPG: stmtClosePortalStmt block
+ {
+ if (INFORMIX_MODE)
+ {
+ if (pg_strcasecmp($1+strlen("close "), "database") == 0)
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in CLOSE DATABASE statement");
+
+ fprintf(base_yyout, "{ ECPGdisconnect(__LINE__, \"CURRENT\");");
+ whenever_action(2);
+ free($1);
+ break;
+ }
+ }
+
+ output_statement($1, 0, ECPGst_normal);
+ }
+ECPG: stmtDeallocateStmt block
+ {
+ output_deallocate_prepare_statement($1);
+ }
+ECPG: stmtDeclareCursorStmt block
+ { output_simple_statement($1, (strncmp($1, "ECPGset_var", strlen("ECPGset_var")) == 0) ? 4 : 0); }
+ECPG: stmtDiscardStmt block
+ECPG: stmtFetchStmt block
+ { output_statement($1, 1, ECPGst_normal); }
+ECPG: stmtDeleteStmt block
+ECPG: stmtInsertStmt block
+ECPG: stmtSelectStmt block
+ECPG: stmtUpdateStmt block
+ { output_statement($1, 1, ECPGst_prepnormal); }
+ECPG: stmtExecuteStmt block
+ {
+ check_declared_list($1.name);
+ if ($1.type == NULL || strlen($1.type) == 0)
+ output_statement($1.name, 1, ECPGst_execute);
+ else
+ {
+ if ($1.name[0] != '"')
+ /* case of char_variable */
+ add_variable_to_tail(&argsinsert, find_variable($1.name), &no_indicator);
+ else
+ {
+ /* case of ecpg_ident or CSTRING */
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *str = mm_strdup($1.name + 1);
+
+ /* It must be cut off double quotation because new_variable() double-quotes. */
+ str[strlen(str) - 1] = '\0';
+ sprintf(length, "%zu", strlen(str));
+ add_variable_to_tail(&argsinsert, new_variable(str, ECPGmake_simple_type(ECPGt_const, length, 0), 0), &no_indicator);
+ }
+ output_statement(cat_str(3, mm_strdup("execute"), mm_strdup("$0"), $1.type), 0, ECPGst_exec_with_exprlist);
+ }
+ }
+ECPG: stmtPrepareStmt block
+ {
+ check_declared_list($1.name);
+ if ($1.type == NULL)
+ output_prepare_statement($1.name, $1.stmt);
+ else if (strlen($1.type) == 0)
+ {
+ char *stmt = cat_str(3, mm_strdup("\""), $1.stmt, mm_strdup("\""));
+ output_prepare_statement($1.name, stmt);
+ }
+ else
+ {
+ if ($1.name[0] != '"')
+ /* case of char_variable */
+ add_variable_to_tail(&argsinsert, find_variable($1.name), &no_indicator);
+ else
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *str = mm_strdup($1.name + 1);
+
+ /* It must be cut off double quotation because new_variable() double-quotes. */
+ str[strlen(str) - 1] = '\0';
+ sprintf(length, "%zu", strlen(str));
+ add_variable_to_tail(&argsinsert, new_variable(str, ECPGmake_simple_type(ECPGt_const, length, 0), 0), &no_indicator);
+ }
+ output_statement(cat_str(5, mm_strdup("prepare"), mm_strdup("$0"), $1.type, mm_strdup("as"), $1.stmt), 0, ECPGst_prepare);
+ }
+ }
+ECPG: stmtTransactionStmt block
+ {
+ fprintf(base_yyout, "{ ECPGtrans(__LINE__, %s, \"%s\");", connection ? connection : "NULL", $1);
+ whenever_action(2);
+ free($1);
+ }
+ECPG: toplevel_stmtTransactionStmtLegacy block
+ {
+ fprintf(base_yyout, "{ ECPGtrans(__LINE__, %s, \"%s\");", connection ? connection : "NULL", $1);
+ whenever_action(2);
+ free($1);
+ }
+ECPG: stmtViewStmt rule
+ | ECPGAllocateDescr
+ {
+ fprintf(base_yyout,"ECPGallocate_desc(__LINE__, %s);",$1);
+ whenever_action(0);
+ free($1);
+ }
+ | ECPGConnect
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in CONNECT statement");
+
+ fprintf(base_yyout, "{ ECPGconnect(__LINE__, %d, %s, %d); ", compat, $1, autocommit);
+ reset_variables();
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGDeclareStmt
+ {
+ output_simple_statement($1, 0);
+ }
+ | ECPGCursorStmt
+ {
+ output_simple_statement($1, (strncmp($1, "ECPGset_var", strlen("ECPGset_var")) == 0) ? 4 : 0);
+ }
+ | ECPGDeallocateDescr
+ {
+ fprintf(base_yyout,"ECPGdeallocate_desc(__LINE__, %s);",$1);
+ whenever_action(0);
+ free($1);
+ }
+ | ECPGDeclare
+ {
+ output_simple_statement($1, 0);
+ }
+ | ECPGDescribe
+ {
+ check_declared_list($1.stmt_name);
+
+ fprintf(base_yyout, "{ ECPGdescribe(__LINE__, %d, %d, %s, %s,", compat, $1.input, connection ? connection : "NULL", $1.stmt_name);
+ dump_variables(argsresult, 1);
+ fputs("ECPGt_EORT);", base_yyout);
+ fprintf(base_yyout, "}");
+ output_line_number();
+
+ free($1.stmt_name);
+ }
+ | ECPGDisconnect
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in DISCONNECT statement");
+
+ fprintf(base_yyout, "{ ECPGdisconnect(__LINE__, %s);",
+ $1 ? $1 : "\"CURRENT\"");
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGExecuteImmediateStmt { output_statement($1, 0, ECPGst_exec_immediate); }
+ | ECPGFree
+ {
+ const char *con = connection ? connection : "NULL";
+
+ if (strcmp($1, "all") == 0)
+ fprintf(base_yyout, "{ ECPGdeallocate_all(__LINE__, %d, %s);", compat, con);
+ else if ($1[0] == ':')
+ fprintf(base_yyout, "{ ECPGdeallocate(__LINE__, %d, %s, %s);", compat, con, $1+1);
+ else
+ fprintf(base_yyout, "{ ECPGdeallocate(__LINE__, %d, %s, \"%s\");", compat, con, $1);
+
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGGetDescriptor
+ {
+ lookup_descriptor($1.name, connection);
+ output_get_descr($1.name, $1.str);
+ free($1.name);
+ free($1.str);
+ }
+ | ECPGGetDescriptorHeader
+ {
+ lookup_descriptor($1, connection);
+ output_get_descr_header($1);
+ free($1);
+ }
+ | ECPGOpen
+ {
+ struct cursor *ptr;
+
+ if ((ptr = add_additional_variables($1, true)) != NULL)
+ {
+ connection = ptr->connection ? mm_strdup(ptr->connection) : NULL;
+ output_statement(mm_strdup(ptr->command), 0, ECPGst_normal);
+ ptr->opened = true;
+ }
+ }
+ | ECPGSetAutocommit
+ {
+ fprintf(base_yyout, "{ ECPGsetcommit(__LINE__, \"%s\", %s);", $1, connection ? connection : "NULL");
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGSetConnection
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in SET CONNECTION statement");
+
+ fprintf(base_yyout, "{ ECPGsetconn(__LINE__, %s);", $1);
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGSetDescriptor
+ {
+ lookup_descriptor($1.name, connection);
+ output_set_descr($1.name, $1.str);
+ free($1.name);
+ free($1.str);
+ }
+ | ECPGSetDescriptorHeader
+ {
+ lookup_descriptor($1, connection);
+ output_set_descr_header($1);
+ free($1);
+ }
+ | ECPGTypedef
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in TYPE statement");
+
+ fprintf(base_yyout, "%s", $1);
+ free($1);
+ output_line_number();
+ }
+ | ECPGVar
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in VAR statement");
+
+ output_simple_statement($1, 0);
+ }
+ | ECPGWhenever
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in WHENEVER statement");
+
+ output_simple_statement($1, 0);
+ }
+ECPG: where_or_current_clauseWHERECURRENT_POFcursor_name block
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ $$ = cat_str(2,mm_strdup("where current of"), cursor_marker);
+ }
+ECPG: CopyStmtCOPYopt_binaryqualified_nameopt_column_listcopy_fromopt_programcopy_file_namecopy_delimiteropt_withcopy_optionswhere_clause addon
+ if (strcmp($6, "from") == 0 &&
+ (strcmp($7, "stdin") == 0 || strcmp($7, "stdout") == 0))
+ mmerror(PARSE_ERROR, ET_WARNING, "COPY FROM STDIN is not implemented");
+ECPG: var_valueNumericOnly addon
+ if ($1[0] == '$')
+ {
+ free($1);
+ $1 = mm_strdup("$0");
+ }
+ECPG: fetch_argscursor_name addon
+ struct cursor *ptr = add_additional_variables($1, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($1[0] == ':')
+ {
+ free($1);
+ $1 = mm_strdup("$0");
+ }
+ECPG: fetch_argsfrom_incursor_name addon
+ struct cursor *ptr = add_additional_variables($2, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($2[0] == ':')
+ {
+ free($2);
+ $2 = mm_strdup("$0");
+ }
+ECPG: fetch_argsNEXTopt_from_incursor_name addon
+ECPG: fetch_argsPRIORopt_from_incursor_name addon
+ECPG: fetch_argsFIRST_Popt_from_incursor_name addon
+ECPG: fetch_argsLAST_Popt_from_incursor_name addon
+ECPG: fetch_argsALLopt_from_incursor_name addon
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($3[0] == ':')
+ {
+ free($3);
+ $3 = mm_strdup("$0");
+ }
+ECPG: fetch_argsSignedIconstopt_from_incursor_name addon
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($3[0] == ':')
+ {
+ free($3);
+ $3 = mm_strdup("$0");
+ }
+ if ($1[0] == '$')
+ {
+ free($1);
+ $1 = mm_strdup("$0");
+ }
+ECPG: fetch_argsFORWARDALLopt_from_incursor_name addon
+ECPG: fetch_argsBACKWARDALLopt_from_incursor_name addon
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($4[0] == ':')
+ {
+ free($4);
+ $4 = mm_strdup("$0");
+ }
+ECPG: fetch_argsABSOLUTE_PSignedIconstopt_from_incursor_name addon
+ECPG: fetch_argsRELATIVE_PSignedIconstopt_from_incursor_name addon
+ECPG: fetch_argsFORWARDSignedIconstopt_from_incursor_name addon
+ECPG: fetch_argsBACKWARDSignedIconstopt_from_incursor_name addon
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($4[0] == ':')
+ {
+ free($4);
+ $4 = mm_strdup("$0");
+ }
+ if ($2[0] == '$')
+ {
+ free($2);
+ $2 = mm_strdup("$0");
+ }
+ECPG: cursor_namename rule
+ | char_civar
+ {
+ char *curname = mm_alloc(strlen($1) + 2);
+ sprintf(curname, ":%s", $1);
+ free($1);
+ $1 = curname;
+ $$ = $1;
+ }
+ECPG: ExplainableStmtExecuteStmt block
+ {
+ $$ = $1.name;
+ }
+ECPG: PrepareStmtPREPAREprepared_nameprep_type_clauseASPreparableStmt block
+ {
+ $$.name = $2;
+ $$.type = $3;
+ $$.stmt = $5;
+ }
+ | PREPARE prepared_name FROM execstring
+ {
+ $$.name = $2;
+ $$.type = NULL;
+ $$.stmt = $4;
+ }
+ECPG: ExecuteStmtEXECUTEprepared_nameexecute_param_clauseexecute_rest block
+ {
+ $$.name = $2;
+ $$.type = $3;
+ }
+ECPG: ExecuteStmtCREATEOptTempTABLEcreate_as_targetASEXECUTEprepared_nameexecute_param_clauseopt_with_dataexecute_rest block
+ {
+ $$.name = cat_str(8,mm_strdup("create"),$2,mm_strdup("table"),$4,mm_strdup("as execute"),$7,$8,$9);
+ }
+ECPG: ExecuteStmtCREATEOptTempTABLEIF_PNOTEXISTScreate_as_targetASEXECUTEprepared_nameexecute_param_clauseopt_with_dataexecute_rest block
+ {
+ $$.name = cat_str(8,mm_strdup("create"),$2,mm_strdup("table if not exists"),$7,mm_strdup("as execute"),$10,$11,$12);
+ }
+ECPG: DeclareCursorStmtDECLAREcursor_namecursor_optionsCURSORopt_holdFORSelectStmt block
+ {
+ struct cursor *ptr, *this;
+ char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
+ char *comment, *c1, *c2;
+ int (* strcmp_fn)(const char *, const char *) = (($2[0] == ':' || $2[0] == '"') ? strcmp : pg_strcasecmp);
+
+ if (INFORMIX_MODE && pg_strcasecmp($2, "database") == 0)
+ mmfatal(PARSE_ERROR, "\"database\" cannot be used as cursor name in INFORMIX mode");
+
+ for (ptr = cur; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp_fn($2, ptr->name) == 0)
+ {
+ if ($2[0] == ':')
+ mmerror(PARSE_ERROR, ET_ERROR, "using variable \"%s\" in different declare statements is not supported", $2+1);
+ else
+ mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" is already defined", $2);
+ }
+ }
+
+ this = (struct cursor *) mm_alloc(sizeof(struct cursor));
+
+ this->next = cur;
+ this->name = $2;
+ this->function = (current_function ? mm_strdup(current_function) : NULL);
+ this->connection = connection ? mm_strdup(connection) : NULL;
+ this->opened = false;
+ this->command = cat_str(7, mm_strdup("declare"), cursor_marker, $3, mm_strdup("cursor"), $5, mm_strdup("for"), $7);
+ this->argsinsert = argsinsert;
+ this->argsinsert_oos = NULL;
+ this->argsresult = argsresult;
+ this->argsresult_oos = NULL;
+ argsinsert = argsresult = NULL;
+ cur = this;
+
+ c1 = mm_strdup(this->command);
+ if ((c2 = strstr(c1, "*/")) != NULL)
+ {
+ /* We put this text into a comment, so we better remove [*][/]. */
+ c2[0] = '.';
+ c2[1] = '.';
+ }
+ comment = cat_str(3, mm_strdup("/*"), c1, mm_strdup("*/"));
+
+ $$ = cat2_str(adjust_outofscope_cursor_vars(this), comment);
+ }
+ECPG: ClosePortalStmtCLOSEcursor_name block
+ {
+ char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : $2;
+ struct cursor *ptr = NULL;
+ for (ptr = cur; ptr != NULL; ptr = ptr -> next)
+ {
+ if (strcmp($2, ptr -> name) == 0)
+ {
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ break;
+ }
+ }
+ $$ = cat2_str(mm_strdup("close"), cursor_marker);
+ }
+ECPG: opt_hold block
+ {
+ if (compat == ECPG_COMPAT_INFORMIX_SE && autocommit)
+ $$ = mm_strdup("with hold");
+ else
+ $$ = EMPTY;
+ }
+ECPG: into_clauseINTOOptTempTableName block
+ {
+ FoundInto = 1;
+ $$= cat2_str(mm_strdup("into"), $2);
+ }
+ | ecpg_into { $$ = EMPTY; }
+ECPG: table_refselect_with_parensopt_alias_clause addon
+ if ($2 == NULL)
+ mmerror(PARSE_ERROR, ET_ERROR, "subquery in FROM must have an alias");
+ECPG: table_refLATERAL_Pselect_with_parensopt_alias_clause addon
+ if ($3 == NULL)
+ mmerror(PARSE_ERROR, ET_ERROR, "subquery in FROM must have an alias");
+ECPG: TypenameSimpleTypenameopt_array_bounds block
+ { $$ = cat2_str($1, $2.str); }
+ECPG: TypenameSETOFSimpleTypenameopt_array_bounds block
+ { $$ = cat_str(3, mm_strdup("setof"), $2, $3.str); }
+ECPG: opt_array_boundsopt_array_bounds'['']' block
+ {
+ $$.index1 = $1.index1;
+ $$.index2 = $1.index2;
+ if (strcmp($$.index1, "-1") == 0)
+ $$.index1 = mm_strdup("0");
+ else if (strcmp($1.index2, "-1") == 0)
+ $$.index2 = mm_strdup("0");
+ $$.str = cat_str(2, $1.str, mm_strdup("[]"));
+ }
+ | opt_array_bounds '[' Iresult ']'
+ {
+ $$.index1 = $1.index1;
+ $$.index2 = $1.index2;
+ if (strcmp($1.index1, "-1") == 0)
+ $$.index1 = mm_strdup($3);
+ else if (strcmp($1.index2, "-1") == 0)
+ $$.index2 = mm_strdup($3);
+ $$.str = cat_str(4, $1.str, mm_strdup("["), $3, mm_strdup("]"));
+ }
+ECPG: opt_array_bounds
+ {
+ $$.index1 = mm_strdup("-1");
+ $$.index2 = mm_strdup("-1");
+ $$.str= EMPTY;
+ }
+ECPG: IconstICONST block
+ { $$ = make_name(); }
+ECPG: AexprConstNULL_P rule
+ | civar { $$ = $1; }
+ | civarind { $$ = $1; }
+ECPG: ColIdcol_name_keyword rule
+ | ECPGKeywords { $$ = $1; }
+ | ECPGCKeywords { $$ = $1; }
+ | CHAR_P { $$ = mm_strdup("char"); }
+ | VALUES { $$ = mm_strdup("values"); }
+ECPG: type_function_nametype_func_name_keyword rule
+ | ECPGKeywords { $$ = $1; }
+ | ECPGTypeName { $$ = $1; }
+ | ECPGCKeywords { $$ = $1; }
+ECPG: VariableShowStmtSHOWALL block
+ {
+ mmerror(PARSE_ERROR, ET_ERROR, "SHOW ALL is not implemented");
+ $$ = EMPTY;
+ }
+ECPG: FetchStmtMOVEfetch_args rule
+ | FETCH fetch_args ecpg_fetch_into
+ {
+ $$ = cat2_str(mm_strdup("fetch"), $2);
+ }
+ | FETCH FORWARD cursor_name opt_ecpg_fetch_into
+ {
+ char *cursor_marker = $3[0] == ':' ? mm_strdup("$0") : $3;
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("fetch forward"), cursor_marker);
+ }
+ | FETCH FORWARD from_in cursor_name opt_ecpg_fetch_into
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("fetch forward from"), cursor_marker);
+ }
+ | FETCH BACKWARD cursor_name opt_ecpg_fetch_into
+ {
+ char *cursor_marker = $3[0] == ':' ? mm_strdup("$0") : $3;
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("fetch backward"), cursor_marker);
+ }
+ | FETCH BACKWARD from_in cursor_name opt_ecpg_fetch_into
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("fetch backward from"), cursor_marker);
+ }
+ | MOVE FORWARD cursor_name
+ {
+ char *cursor_marker = $3[0] == ':' ? mm_strdup("$0") : $3;
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("move forward"), cursor_marker);
+ }
+ | MOVE FORWARD from_in cursor_name
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("move forward from"), cursor_marker);
+ }
+ | MOVE BACKWARD cursor_name
+ {
+ char *cursor_marker = $3[0] == ':' ? mm_strdup("$0") : $3;
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("move backward"), cursor_marker);
+ }
+ | MOVE BACKWARD from_in cursor_name
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("move backward from"), cursor_marker);
+ }
+ECPG: limit_clauseLIMITselect_limit_value','select_offset_value block
+ {
+ mmerror(PARSE_ERROR, ET_WARNING, "no longer supported LIMIT #,# syntax passed to server");
+ $$ = cat_str(4, mm_strdup("limit"), $2, mm_strdup(","), $4);
+ }
+ECPG: SignedIconstIconst rule
+ | civar { $$ = $1; }
diff --git a/src/interfaces/ecpg/preproc/ecpg.c b/src/interfaces/ecpg/preproc/ecpg.c
new file mode 100644
index 0000000..6fff9e7
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/ecpg.c
@@ -0,0 +1,504 @@
+/* src/interfaces/ecpg/preproc/ecpg.c */
+
+/* Main for ecpg, the PostgreSQL embedded SQL precompiler. */
+/* Copyright (c) 1996-2022, PostgreSQL Global Development Group */
+
+#include "postgres_fe.h"
+
+#include <unistd.h>
+
+#include "getopt_long.h"
+
+#include "preproc_extern.h"
+
+int ret_value = 0;
+bool autocommit = false,
+ auto_create_c = false,
+ system_includes = false,
+ force_indicator = true,
+ questionmarks = false,
+ regression_mode = false,
+ auto_prepare = false;
+
+char *output_filename;
+
+enum COMPAT_MODE compat = ECPG_COMPAT_PGSQL;
+
+struct _include_path *include_paths = NULL;
+struct cursor *cur = NULL;
+struct typedefs *types = NULL;
+struct _defines *defines = NULL;
+struct declared_list *g_declared_list = NULL;
+
+static void
+help(const char *progname)
+{
+ printf(_("%s is the PostgreSQL embedded SQL preprocessor for C programs.\n\n"),
+ progname);
+ printf(_("Usage:\n"
+ " %s [OPTION]... FILE...\n\n"),
+ progname);
+ printf(_("Options:\n"));
+ printf(_(" -c automatically generate C code from embedded SQL code;\n"
+ " this affects EXEC SQL TYPE\n"));
+ printf(_(" -C MODE set compatibility mode; MODE can be one of\n"
+ " \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"));
+#ifdef YYDEBUG
+ printf(_(" -d generate parser debug output\n"));
+#endif
+ printf(_(" -D SYMBOL define SYMBOL\n"));
+ printf(_(" -h parse a header file, this option includes option \"-c\"\n"));
+ printf(_(" -i parse system include files as well\n"));
+ printf(_(" -I DIRECTORY search DIRECTORY for include files\n"));
+ printf(_(" -o OUTFILE write result to OUTFILE\n"));
+ printf(_(" -r OPTION specify run-time behavior; OPTION can be:\n"
+ " \"no_indicator\", \"prepare\", \"questionmarks\"\n"));
+ printf(_(" --regression run in regression testing mode\n"));
+ printf(_(" -t turn on autocommit of transactions\n"));
+ printf(_(" -V, --version output version information, then exit\n"));
+ printf(_(" -?, --help show this help, then exit\n"));
+ printf(_("\nIf no output file is specified, the name is formed by adding .c to the\n"
+ "input file name, after stripping off .pgc if present.\n"));
+ printf(_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
+ printf(_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_URL);
+}
+
+static void
+add_include_path(char *path)
+{
+ struct _include_path *ip = include_paths,
+ *new;
+
+ new = mm_alloc(sizeof(struct _include_path));
+ new->path = path;
+ new->next = NULL;
+
+ if (ip == NULL)
+ include_paths = new;
+ else
+ {
+ for (; ip->next != NULL; ip = ip->next);
+ ip->next = new;
+ }
+}
+
+static void
+add_preprocessor_define(char *define)
+{
+ struct _defines *pd = defines;
+ char *ptr,
+ *define_copy = mm_strdup(define);
+
+ defines = mm_alloc(sizeof(struct _defines));
+
+ /* look for = sign */
+ ptr = strchr(define_copy, '=');
+ if (ptr != NULL)
+ {
+ char *tmp;
+
+ /* symbol has a value */
+ for (tmp = ptr - 1; *tmp == ' '; tmp--);
+ tmp[1] = '\0';
+ defines->olddef = define_copy;
+ defines->newdef = ptr + 1;
+ }
+ else
+ {
+ defines->olddef = define_copy;
+ defines->newdef = mm_strdup("1");
+ }
+ defines->pertinent = true;
+ defines->used = NULL;
+ defines->next = pd;
+}
+
+#define ECPG_GETOPT_LONG_REGRESSION 1
+int
+main(int argc, char *const argv[])
+{
+ static struct option ecpg_options[] = {
+ {"regression", no_argument, NULL, ECPG_GETOPT_LONG_REGRESSION},
+ {NULL, 0, NULL, 0}
+ };
+
+ int fnr,
+ c,
+ out_option = 0;
+ bool verbose = false,
+ header_mode = false;
+ struct _include_path *ip;
+ const char *progname;
+ char my_exec_path[MAXPGPATH];
+ char include_path[MAXPGPATH];
+
+ set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("ecpg"));
+
+ progname = get_progname(argv[0]);
+
+ if (find_my_exec(argv[0], my_exec_path) < 0)
+ {
+ fprintf(stderr, _("%s: could not locate my own executable path\n"), argv[0]);
+ return ILLEGAL_OPTION;
+ }
+
+ if (argc > 1)
+ {
+ if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") == 0)
+ {
+ help(progname);
+ exit(0);
+ }
+ if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0)
+ {
+ printf("ecpg (PostgreSQL) %s\n", PG_VERSION);
+ exit(0);
+ }
+ }
+
+ output_filename = NULL;
+ while ((c = getopt_long(argc, argv, "vcio:I:tD:dC:r:h", ecpg_options, NULL)) != -1)
+ {
+ switch (c)
+ {
+ case ECPG_GETOPT_LONG_REGRESSION:
+ regression_mode = true;
+ break;
+ case 'o':
+ output_filename = mm_strdup(optarg);
+ if (strcmp(output_filename, "-") == 0)
+ base_yyout = stdout;
+ else
+ base_yyout = fopen(output_filename, PG_BINARY_W);
+
+ if (base_yyout == NULL)
+ {
+ fprintf(stderr, _("%s: could not open file \"%s\": %s\n"),
+ progname, output_filename, strerror(errno));
+ output_filename = NULL;
+ }
+ else
+ out_option = 1;
+ break;
+ case 'I':
+ add_include_path(optarg);
+ break;
+ case 't':
+ autocommit = true;
+ break;
+ case 'v':
+ verbose = true;
+ break;
+ case 'h':
+ header_mode = true;
+ /* this must include "-c" to make sense, so fall through */
+ /* FALLTHROUGH */
+ case 'c':
+ auto_create_c = true;
+ break;
+ case 'i':
+ system_includes = true;
+ break;
+ case 'C':
+ if (pg_strcasecmp(optarg, "INFORMIX") == 0 || pg_strcasecmp(optarg, "INFORMIX_SE") == 0)
+ {
+ char pkginclude_path[MAXPGPATH];
+ char informix_path[MAXPGPATH];
+
+ compat = (pg_strcasecmp(optarg, "INFORMIX") == 0) ? ECPG_COMPAT_INFORMIX : ECPG_COMPAT_INFORMIX_SE;
+ get_pkginclude_path(my_exec_path, pkginclude_path);
+ snprintf(informix_path, MAXPGPATH, "%s/informix/esql", pkginclude_path);
+ add_include_path(informix_path);
+ }
+ else if (pg_strcasecmp(optarg, "ORACLE") == 0)
+ {
+ compat = ECPG_COMPAT_ORACLE;
+ }
+ else
+ {
+ fprintf(stderr, _("Try \"%s --help\" for more information.\n"), argv[0]);
+ return ILLEGAL_OPTION;
+ }
+ break;
+ case 'r':
+ if (pg_strcasecmp(optarg, "no_indicator") == 0)
+ force_indicator = false;
+ else if (pg_strcasecmp(optarg, "prepare") == 0)
+ auto_prepare = true;
+ else if (pg_strcasecmp(optarg, "questionmarks") == 0)
+ questionmarks = true;
+ else
+ {
+ fprintf(stderr, _("Try \"%s --help\" for more information.\n"), argv[0]);
+ return ILLEGAL_OPTION;
+ }
+ break;
+ case 'D':
+ add_preprocessor_define(optarg);
+ break;
+ case 'd':
+#ifdef YYDEBUG
+ base_yydebug = 1;
+#else
+ fprintf(stderr, _("%s: parser debug support (-d) not available\n"),
+ progname);
+#endif
+ break;
+ default:
+ fprintf(stderr, _("Try \"%s --help\" for more information.\n"), argv[0]);
+ return ILLEGAL_OPTION;
+ }
+ }
+
+ add_include_path(".");
+ add_include_path("/usr/local/include");
+ get_include_path(my_exec_path, include_path);
+ add_include_path(include_path);
+ add_include_path("/usr/include");
+
+ if (verbose)
+ {
+ fprintf(stderr,
+ _("%s, the PostgreSQL embedded C preprocessor, version %s\n"),
+ progname, PG_VERSION);
+ fprintf(stderr, _("EXEC SQL INCLUDE ... search starts here:\n"));
+ for (ip = include_paths; ip != NULL; ip = ip->next)
+ fprintf(stderr, " %s\n", ip->path);
+ fprintf(stderr, _("end of search list\n"));
+ return 0;
+ }
+
+ if (optind >= argc) /* no files specified */
+ {
+ fprintf(stderr, _("%s: no input files specified\n"), progname);
+ fprintf(stderr, _("Try \"%s --help\" for more information.\n"), argv[0]);
+ return ILLEGAL_OPTION;
+ }
+ else
+ {
+ /* after the options there must not be anything but filenames */
+ for (fnr = optind; fnr < argc; fnr++)
+ {
+ char *ptr2ext;
+
+ /* If argv[fnr] is "-" we have to read from stdin */
+ if (strcmp(argv[fnr], "-") == 0)
+ {
+ input_filename = mm_alloc(strlen("stdin") + 1);
+ strcpy(input_filename, "stdin");
+ base_yyin = stdin;
+ }
+ else
+ {
+ input_filename = mm_alloc(strlen(argv[fnr]) + 5);
+ strcpy(input_filename, argv[fnr]);
+
+ /* take care of relative paths */
+ ptr2ext = last_dir_separator(input_filename);
+ ptr2ext = (ptr2ext ? strrchr(ptr2ext, '.') : strrchr(input_filename, '.'));
+
+ /* no extension? */
+ if (ptr2ext == NULL)
+ {
+ ptr2ext = input_filename + strlen(input_filename);
+
+ /* no extension => add .pgc or .pgh */
+ ptr2ext[0] = '.';
+ ptr2ext[1] = 'p';
+ ptr2ext[2] = 'g';
+ ptr2ext[3] = (header_mode == true) ? 'h' : 'c';
+ ptr2ext[4] = '\0';
+ }
+
+ base_yyin = fopen(input_filename, PG_BINARY_R);
+ }
+
+ if (out_option == 0) /* calculate the output name */
+ {
+ if (strcmp(input_filename, "stdin") == 0)
+ base_yyout = stdout;
+ else
+ {
+ output_filename = mm_alloc(strlen(input_filename) + 3);
+ strcpy(output_filename, input_filename);
+
+ ptr2ext = strrchr(output_filename, '.');
+ /* make extension = .c resp. .h */
+ ptr2ext[1] = (header_mode == true) ? 'h' : 'c';
+ ptr2ext[2] = '\0';
+
+ base_yyout = fopen(output_filename, PG_BINARY_W);
+ if (base_yyout == NULL)
+ {
+ fprintf(stderr, _("%s: could not open file \"%s\": %s\n"),
+ progname, output_filename, strerror(errno));
+ free(output_filename);
+ output_filename = NULL;
+ free(input_filename);
+ continue;
+ }
+ }
+ }
+
+ if (base_yyin == NULL)
+ fprintf(stderr, _("%s: could not open file \"%s\": %s\n"),
+ progname, argv[fnr], strerror(errno));
+ else
+ {
+ struct cursor *ptr;
+ struct _defines *defptr;
+ struct typedefs *typeptr;
+ struct declared_list *list;
+
+ /* remove old cursor definitions if any are still there */
+ for (ptr = cur; ptr != NULL;)
+ {
+ struct cursor *this = ptr;
+ struct arguments *l1,
+ *l2;
+
+ free(ptr->command);
+ free(ptr->connection);
+ free(ptr->name);
+ for (l1 = ptr->argsinsert; l1; l1 = l2)
+ {
+ l2 = l1->next;
+ free(l1);
+ }
+ for (l1 = ptr->argsresult; l1; l1 = l2)
+ {
+ l2 = l1->next;
+ free(l1);
+ }
+ ptr = ptr->next;
+ free(this);
+ }
+ cur = NULL;
+
+ /* remove old declared statements if any are still there */
+ for (list = g_declared_list; list != NULL;)
+ {
+ struct declared_list *this = list;
+
+ list = list->next;
+ free(this);
+ }
+
+ /* remove non-pertinent old defines as well */
+ while (defines && !defines->pertinent)
+ {
+ defptr = defines;
+ defines = defines->next;
+
+ free(defptr->newdef);
+ free(defptr->olddef);
+ free(defptr);
+ }
+
+ for (defptr = defines; defptr != NULL; defptr = defptr->next)
+ {
+ struct _defines *this = defptr->next;
+
+ if (this && !this->pertinent)
+ {
+ defptr->next = this->next;
+
+ free(this->newdef);
+ free(this->olddef);
+ free(this);
+ }
+ }
+
+ /* and old typedefs */
+ for (typeptr = types; typeptr != NULL;)
+ {
+ struct typedefs *this = typeptr;
+
+ free(typeptr->name);
+ ECPGfree_struct_member(typeptr->struct_member_list);
+ free(typeptr->type);
+ typeptr = typeptr->next;
+ free(this);
+ }
+ types = NULL;
+
+ /* initialize whenever structures */
+ memset(&when_error, 0, sizeof(struct when));
+ memset(&when_nf, 0, sizeof(struct when));
+ memset(&when_warn, 0, sizeof(struct when));
+
+ /* and structure member lists */
+ memset(struct_member_list, 0, sizeof(struct_member_list));
+
+ /*
+ * and our variable counter for out of scope cursors'
+ * variables
+ */
+ ecpg_internal_var = 0;
+
+ /* finally the actual connection */
+ connection = NULL;
+
+ /* initialize lex */
+ lex_init();
+
+ /* we need several includes */
+ /* but not if we are in header mode */
+ if (regression_mode)
+ fprintf(base_yyout, "/* Processed by ecpg (regression mode) */\n");
+ else
+ fprintf(base_yyout, "/* Processed by ecpg (%s) */\n", PG_VERSION);
+
+ if (header_mode == false)
+ {
+ fprintf(base_yyout, "/* These include files are added by the preprocessor */\n#include <ecpglib.h>\n#include <ecpgerrno.h>\n#include <sqlca.h>\n");
+
+ /* add some compatibility headers */
+ if (INFORMIX_MODE)
+ fprintf(base_yyout, "/* Needed for informix compatibility */\n#include <ecpg_informix.h>\n");
+
+ fprintf(base_yyout, "/* End of automatic include section */\n");
+ }
+
+ if (regression_mode)
+ fprintf(base_yyout, "#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))\n");
+
+ output_line_number();
+
+ /* and parse the source */
+ base_yyparse();
+
+ /*
+ * Check whether all cursors were indeed opened. It does not
+ * really make sense to declare a cursor but not open it.
+ */
+ for (ptr = cur; ptr != NULL; ptr = ptr->next)
+ if (!(ptr->opened))
+ mmerror(PARSE_ERROR, ET_WARNING, "cursor \"%s\" has been declared but not opened", ptr->name);
+
+ if (base_yyin != NULL && base_yyin != stdin)
+ fclose(base_yyin);
+ if (out_option == 0 && base_yyout != stdout)
+ fclose(base_yyout);
+
+ /*
+ * If there was an error, delete the output file.
+ */
+ if (ret_value != 0)
+ {
+ if (strcmp(output_filename, "-") != 0 && unlink(output_filename) != 0)
+ fprintf(stderr, _("could not remove output file \"%s\"\n"), output_filename);
+ }
+ }
+
+ if (output_filename && out_option == 0)
+ {
+ free(output_filename);
+ output_filename = NULL;
+ }
+
+ free(input_filename);
+ }
+ }
+ return ret_value;
+}
diff --git a/src/interfaces/ecpg/preproc/ecpg.header b/src/interfaces/ecpg/preproc/ecpg.header
new file mode 100644
index 0000000..b8508a9
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/ecpg.header
@@ -0,0 +1,626 @@
+/* src/interfaces/ecpg/preproc/ecpg.header */
+
+/* Copyright comment */
+%{
+#include "postgres_fe.h"
+
+#include "preproc_extern.h"
+#include "ecpg_config.h"
+#include <unistd.h>
+
+/* Location tracking support --- simpler than bison's default */
+#define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do { \
+ if (N) \
+ (Current) = (Rhs)[1]; \
+ else \
+ (Current) = (Rhs)[0]; \
+ } while (0)
+
+/*
+ * The %name-prefix option below will make bison call base_yylex, but we
+ * really want it to call filtered_base_yylex (see parser.c).
+ */
+#define base_yylex filtered_base_yylex
+
+/*
+ * This is only here so the string gets into the POT. Bison uses it
+ * internally.
+ */
+#define bison_gettext_dummy gettext_noop("syntax error")
+
+/*
+ * Variables containing simple states.
+ */
+int struct_level = 0;
+int braces_open; /* brace level counter */
+char *current_function;
+int ecpg_internal_var = 0;
+char *connection = NULL;
+char *input_filename = NULL;
+
+static int FoundInto = 0;
+static int initializer = 0;
+static int pacounter = 1;
+static char pacounter_buffer[sizeof(int) * CHAR_BIT * 10 / 3]; /* a rough guess at the size we need */
+static struct this_type actual_type[STRUCT_DEPTH];
+static char *actual_startline[STRUCT_DEPTH];
+static int varchar_counter = 1;
+static int bytea_counter = 1;
+
+/* temporarily store struct members while creating the data structure */
+struct ECPGstruct_member *struct_member_list[STRUCT_DEPTH] = { NULL };
+
+/* also store struct type so we can do a sizeof() later */
+static char *ECPGstruct_sizeof = NULL;
+
+/* for forward declarations we have to store some data as well */
+static char *forward_name = NULL;
+
+struct ECPGtype ecpg_no_indicator = {ECPGt_NO_INDICATOR, NULL, NULL, NULL, {NULL}, 0};
+struct variable no_indicator = {"no_indicator", &ecpg_no_indicator, 0, NULL};
+
+static struct ECPGtype ecpg_query = {ECPGt_char_variable, NULL, NULL, NULL, {NULL}, 0};
+
+static void vmmerror(int error_code, enum errortype type, const char *error, va_list ap) pg_attribute_printf(3, 0);
+
+static bool check_declared_list(const char*);
+
+/*
+ * Handle parsing errors and warnings
+ */
+static void
+vmmerror(int error_code, enum errortype type, const char *error, va_list ap)
+{
+ /* localize the error message string */
+ error = _(error);
+
+ fprintf(stderr, "%s:%d: ", input_filename, base_yylineno);
+
+ switch(type)
+ {
+ case ET_WARNING:
+ fprintf(stderr, _("WARNING: "));
+ break;
+ case ET_ERROR:
+ fprintf(stderr, _("ERROR: "));
+ break;
+ }
+
+ vfprintf(stderr, error, ap);
+
+ fprintf(stderr, "\n");
+
+ switch(type)
+ {
+ case ET_WARNING:
+ break;
+ case ET_ERROR:
+ ret_value = error_code;
+ break;
+ }
+}
+
+void
+mmerror(int error_code, enum errortype type, const char *error, ...)
+{
+ va_list ap;
+
+ va_start(ap, error);
+ vmmerror(error_code, type, error, ap);
+ va_end(ap);
+}
+
+void
+mmfatal(int error_code, const char *error, ...)
+{
+ va_list ap;
+
+ va_start(ap, error);
+ vmmerror(error_code, ET_ERROR, error, ap);
+ va_end(ap);
+
+ if (base_yyin)
+ fclose(base_yyin);
+ if (base_yyout)
+ fclose(base_yyout);
+
+ if (strcmp(output_filename, "-") != 0 && unlink(output_filename) != 0)
+ fprintf(stderr, _("could not remove output file \"%s\"\n"), output_filename);
+ exit(error_code);
+}
+
+/*
+ * string concatenation
+ */
+
+static char *
+cat2_str(char *str1, char *str2)
+{
+ char * res_str = (char *)mm_alloc(strlen(str1) + strlen(str2) + 2);
+
+ strcpy(res_str, str1);
+ if (strlen(str1) != 0 && strlen(str2) != 0)
+ strcat(res_str, " ");
+ strcat(res_str, str2);
+ free(str1);
+ free(str2);
+ return res_str;
+}
+
+static char *
+cat_str(int count, ...)
+{
+ va_list args;
+ int i;
+ char *res_str;
+
+ va_start(args, count);
+
+ res_str = va_arg(args, char *);
+
+ /* now add all other strings */
+ for (i = 1; i < count; i++)
+ res_str = cat2_str(res_str, va_arg(args, char *));
+
+ va_end(args);
+
+ return res_str;
+}
+
+static char *
+make2_str(char *str1, char *str2)
+{
+ char * res_str = (char *)mm_alloc(strlen(str1) + strlen(str2) + 1);
+
+ strcpy(res_str, str1);
+ strcat(res_str, str2);
+ free(str1);
+ free(str2);
+ return res_str;
+}
+
+static char *
+make3_str(char *str1, char *str2, char *str3)
+{
+ char * res_str = (char *)mm_alloc(strlen(str1) + strlen(str2) +strlen(str3) + 1);
+
+ strcpy(res_str, str1);
+ strcat(res_str, str2);
+ strcat(res_str, str3);
+ free(str1);
+ free(str2);
+ free(str3);
+ return res_str;
+}
+
+/* and the rest */
+static char *
+make_name(void)
+{
+ return mm_strdup(base_yytext);
+}
+
+static char *
+create_questionmarks(char *name, bool array)
+{
+ struct variable *p = find_variable(name);
+ int count;
+ char *result = EMPTY;
+
+ /* In case we have a struct, we have to print as many "?" as there are attributes in the struct
+ * An array is only allowed together with an element argument
+ * This is essentially only used for inserts, but using a struct as input parameter is an error anywhere else
+ * so we don't have to worry here. */
+
+ if (p->type->type == ECPGt_struct || (array && p->type->type == ECPGt_array && p->type->u.element->type == ECPGt_struct))
+ {
+ struct ECPGstruct_member *m;
+
+ if (p->type->type == ECPGt_struct)
+ m = p->type->u.members;
+ else
+ m = p->type->u.element->u.members;
+
+ for (count = 0; m != NULL; m=m->next, count++);
+ }
+ else
+ count = 1;
+
+ for (; count > 0; count --)
+ {
+ sprintf(pacounter_buffer, "$%d", pacounter++);
+ result = cat_str(3, result, mm_strdup(pacounter_buffer), mm_strdup(" , "));
+ }
+
+ /* removed the trailing " ," */
+
+ result[strlen(result)-3] = '\0';
+ return result;
+}
+
+static char *
+adjust_outofscope_cursor_vars(struct cursor *cur)
+{
+ /* Informix accepts DECLARE with variables that are out of scope when OPEN is called.
+ * For instance you can DECLARE a cursor in one function, and OPEN/FETCH/CLOSE
+ * it in another functions. This is very useful for e.g. event-driver programming,
+ * but may also lead to dangerous programming. The limitation when this is allowed
+ * and doesn't cause problems have to be documented, like the allocated variables
+ * must not be realloc()'ed.
+ *
+ * We have to change the variables to our own struct and just store the pointer
+ * instead of the variable. Do it only for local variables, not for globals.
+ */
+
+ char *result = EMPTY;
+ int insert;
+
+ for (insert = 1; insert >= 0; insert--)
+ {
+ struct arguments *list;
+ struct arguments *ptr;
+ struct arguments *newlist = NULL;
+ struct variable *newvar, *newind;
+
+ list = (insert ? cur->argsinsert : cur->argsresult);
+
+ for (ptr = list; ptr != NULL; ptr = ptr->next)
+ {
+ char var_text[20];
+ char *original_var;
+ bool skip_set_var = false;
+ bool var_ptr = false;
+
+ /* change variable name to "ECPGget_var(<counter>)" */
+ original_var = ptr->variable->name;
+ sprintf(var_text, "%d))", ecpg_internal_var);
+
+ /* Don't emit ECPGset_var() calls for global variables */
+ if (ptr->variable->brace_level == 0)
+ {
+ newvar = ptr->variable;
+ skip_set_var = true;
+ }
+ else if ((ptr->variable->type->type == ECPGt_char_variable)
+ && (strncmp(ptr->variable->name, "ECPGprepared_statement", strlen("ECPGprepared_statement")) == 0))
+ {
+ newvar = ptr->variable;
+ skip_set_var = true;
+ }
+ else if ((ptr->variable->type->type != ECPGt_varchar
+ && ptr->variable->type->type != ECPGt_char
+ && ptr->variable->type->type != ECPGt_unsigned_char
+ && ptr->variable->type->type != ECPGt_string
+ && ptr->variable->type->type != ECPGt_bytea)
+ && atoi(ptr->variable->type->size) > 1)
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,
+ mm_strdup("1"),
+ ptr->variable->type->u.element->counter),
+ ptr->variable->type->size),
+ 0);
+ }
+ else if ((ptr->variable->type->type == ECPGt_varchar
+ || ptr->variable->type->type == ECPGt_char
+ || ptr->variable->type->type == ECPGt_unsigned_char
+ || ptr->variable->type->type == ECPGt_string
+ || ptr->variable->type->type == ECPGt_bytea)
+ && atoi(ptr->variable->type->size) > 1)
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->variable->type->type,
+ ptr->variable->type->size,
+ ptr->variable->type->counter),
+ 0);
+ if (ptr->variable->type->type == ECPGt_varchar ||
+ ptr->variable->type->type == ECPGt_bytea)
+ var_ptr = true;
+ }
+ else if (ptr->variable->type->type == ECPGt_struct
+ || ptr->variable->type->type == ECPGt_union)
+ {
+ newvar = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->variable->type->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->variable->type->u.members,
+ ptr->variable->type->type,
+ ptr->variable->type->type_name,
+ ptr->variable->type->struct_sizeof),
+ 0);
+ var_ptr = true;
+ }
+ else if (ptr->variable->type->type == ECPGt_array)
+ {
+ if (ptr->variable->type->u.element->type == ECPGt_struct
+ || ptr->variable->type->u.element->type == ECPGt_union)
+ {
+ newvar = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->variable->type->u.element->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->variable->type->u.element->u.members,
+ ptr->variable->type->u.element->type,
+ ptr->variable->type->u.element->type_name,
+ ptr->variable->type->u.element->struct_sizeof),
+ 0);
+ }
+ else
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,
+ ptr->variable->type->u.element->size,
+ ptr->variable->type->u.element->counter),
+ ptr->variable->type->size),
+ 0);
+ var_ptr = true;
+ }
+ }
+ else
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("*("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->variable->type->type,
+ ptr->variable->type->size,
+ ptr->variable->type->counter),
+ 0);
+ var_ptr = true;
+ }
+
+ /* create call to "ECPGset_var(<counter>, <connection>, <pointer>. <line number>)" */
+ if (!skip_set_var)
+ {
+ sprintf(var_text, "%d, %s", ecpg_internal_var++, var_ptr ? "&(" : "(");
+ result = cat_str(5, result, mm_strdup("ECPGset_var("),
+ mm_strdup(var_text), mm_strdup(original_var),
+ mm_strdup("), __LINE__);\n"));
+ }
+
+ /* now the indicator if there is one and it's not a global variable */
+ if ((ptr->indicator->type->type == ECPGt_NO_INDICATOR) || (ptr->indicator->brace_level == 0))
+ {
+ newind = ptr->indicator;
+ }
+ else
+ {
+ /* change variable name to "ECPGget_var(<counter>)" */
+ original_var = ptr->indicator->name;
+ sprintf(var_text, "%d))", ecpg_internal_var);
+ var_ptr = false;
+
+ if (ptr->indicator->type->type == ECPGt_struct
+ || ptr->indicator->type->type == ECPGt_union)
+ {
+ newind = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->indicator->type->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->indicator->type->u.members,
+ ptr->indicator->type->type,
+ ptr->indicator->type->type_name,
+ ptr->indicator->type->struct_sizeof),
+ 0);
+ var_ptr = true;
+ }
+ else if (ptr->indicator->type->type == ECPGt_array)
+ {
+ if (ptr->indicator->type->u.element->type == ECPGt_struct
+ || ptr->indicator->type->u.element->type == ECPGt_union)
+ {
+ newind = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->indicator->type->u.element->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->indicator->type->u.element->u.members,
+ ptr->indicator->type->u.element->type,
+ ptr->indicator->type->u.element->type_name,
+ ptr->indicator->type->u.element->struct_sizeof),
+ 0);
+ }
+ else
+ {
+ newind = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->indicator->type->u.element->type)),
+ mm_strdup(" *)(ECPGget_var("), mm_strdup(var_text)),
+ ECPGmake_array_type(ECPGmake_simple_type(ptr->indicator->type->u.element->type,
+ ptr->indicator->type->u.element->size,
+ ptr->indicator->type->u.element->counter),
+ ptr->indicator->type->size),
+ 0);
+ var_ptr = true;
+ }
+ }
+ else if (atoi(ptr->indicator->type->size) > 1)
+ {
+ newind = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->indicator->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->indicator->type->type,
+ ptr->indicator->type->size,
+ ptr->variable->type->counter),
+ 0);
+ }
+ else
+ {
+ newind = new_variable(cat_str(4, mm_strdup("*("),
+ mm_strdup(ecpg_type_name(ptr->indicator->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->indicator->type->type,
+ ptr->indicator->type->size,
+ ptr->variable->type->counter),
+ 0);
+ var_ptr = true;
+ }
+
+ /* create call to "ECPGset_var(<counter>, <pointer>. <line number>)" */
+ sprintf(var_text, "%d, %s", ecpg_internal_var++, var_ptr ? "&(" : "(");
+ result = cat_str(5, result, mm_strdup("ECPGset_var("),
+ mm_strdup(var_text), mm_strdup(original_var),
+ mm_strdup("), __LINE__);\n"));
+ }
+
+ add_variable_to_tail(&newlist, newvar, newind);
+ }
+
+ if (insert)
+ cur->argsinsert_oos = newlist;
+ else
+ cur->argsresult_oos = newlist;
+ }
+
+ return result;
+}
+
+/* This tests whether the cursor was declared and opened in the same function. */
+#define SAMEFUNC(cur) \
+ ((cur->function == NULL) || \
+ (cur->function != NULL && strcmp(cur->function, current_function) == 0))
+
+static struct cursor *
+add_additional_variables(char *name, bool insert)
+{
+ struct cursor *ptr;
+ struct arguments *p;
+ int (* strcmp_fn)(const char *, const char *) = ((name[0] == ':' || name[0] == '"') ? strcmp : pg_strcasecmp);
+
+ for (ptr = cur; ptr != NULL; ptr=ptr->next)
+ {
+ if (strcmp_fn(ptr->name, name) == 0)
+ break;
+ }
+
+ if (ptr == NULL)
+ {
+ mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" does not exist", name);
+ return NULL;
+ }
+
+ if (insert)
+ {
+ /* add all those input variables that were given earlier
+ * note that we have to append here but have to keep the existing order */
+ for (p = (SAMEFUNC(ptr) ? ptr->argsinsert : ptr->argsinsert_oos); p; p = p->next)
+ add_variable_to_tail(&argsinsert, p->variable, p->indicator);
+ }
+
+ /* add all those output variables that were given earlier */
+ for (p = (SAMEFUNC(ptr) ? ptr->argsresult : ptr->argsresult_oos); p; p = p->next)
+ add_variable_to_tail(&argsresult, p->variable, p->indicator);
+
+ return ptr;
+}
+
+static void
+add_typedef(char *name, char *dimension, char *length, enum ECPGttype type_enum,
+ char *type_dimension, char *type_index, int initializer, int array)
+{
+ /* add entry to list */
+ struct typedefs *ptr, *this;
+
+ if ((type_enum == ECPGt_struct ||
+ type_enum == ECPGt_union) &&
+ initializer == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "initializer not allowed in type definition");
+ else if (INFORMIX_MODE && strcmp(name, "string") == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "type name \"string\" is reserved in Informix mode");
+ else
+ {
+ for (ptr = types; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp(name, ptr->name) == 0)
+ /* re-definition is a bug */
+ mmerror(PARSE_ERROR, ET_ERROR, "type \"%s\" is already defined", name);
+ }
+ adjust_array(type_enum, &dimension, &length, type_dimension, type_index, array, true);
+
+ this = (struct typedefs *) mm_alloc(sizeof(struct typedefs));
+
+ /* initial definition */
+ this->next = types;
+ this->name = name;
+ this->brace_level = braces_open;
+ this->type = (struct this_type *) mm_alloc(sizeof(struct this_type));
+ this->type->type_enum = type_enum;
+ this->type->type_str = mm_strdup(name);
+ this->type->type_dimension = dimension; /* dimension of array */
+ this->type->type_index = length; /* length of string */
+ this->type->type_sizeof = ECPGstruct_sizeof;
+ this->struct_member_list = (type_enum == ECPGt_struct || type_enum == ECPGt_union) ?
+ ECPGstruct_member_dup(struct_member_list[struct_level]) : NULL;
+
+ if (type_enum != ECPGt_varchar &&
+ type_enum != ECPGt_bytea &&
+ type_enum != ECPGt_char &&
+ type_enum != ECPGt_unsigned_char &&
+ type_enum != ECPGt_string &&
+ atoi(this->type->type_index) >= 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "multidimensional arrays for simple data types are not supported");
+
+ types = this;
+ }
+}
+
+/*
+ * check an SQL identifier is declared or not.
+ * If it is already declared, the global variable
+ * connection will be changed to the related connection.
+ */
+static bool
+check_declared_list(const char *name)
+{
+ struct declared_list *ptr = NULL;
+ for (ptr = g_declared_list; ptr != NULL; ptr = ptr -> next)
+ {
+ if (!ptr->connection)
+ continue;
+ if (strcmp(name, ptr -> name) == 0)
+ {
+ if (connection && strcmp(ptr->connection, connection) != 0)
+ mmerror(PARSE_ERROR, ET_WARNING, "connection %s is overwritten with %s by DECLARE statement %s", connection, ptr->connection, name);
+ connection = mm_strdup(ptr -> connection);
+ return true;
+ }
+ }
+ return false;
+}
+%}
+
+%expect 0
+%name-prefix="base_yy"
+%locations
+
+%union {
+ double dval;
+ char *str;
+ int ival;
+ struct when action;
+ struct index index;
+ int tagname;
+ struct this_type type;
+ enum ECPGttype type_enum;
+ enum ECPGdtype dtype_enum;
+ struct fetch_desc descriptor;
+ struct su_symbol struct_union;
+ struct prep prep;
+ struct exec exec;
+ struct describe describe;
+}
diff --git a/src/interfaces/ecpg/preproc/ecpg.tokens b/src/interfaces/ecpg/preproc/ecpg.tokens
new file mode 100644
index 0000000..8e0527f
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/ecpg.tokens
@@ -0,0 +1,26 @@
+/* src/interfaces/ecpg/preproc/ecpg.tokens */
+
+/* special embedded SQL tokens */
+%token SQL_ALLOCATE SQL_AUTOCOMMIT SQL_BOOL SQL_BREAK
+ SQL_CARDINALITY SQL_CONNECT
+ SQL_COUNT
+ SQL_DATETIME_INTERVAL_CODE
+ SQL_DATETIME_INTERVAL_PRECISION SQL_DESCRIBE
+ SQL_DESCRIPTOR SQL_DISCONNECT SQL_FOUND
+ SQL_FREE SQL_GET SQL_GO SQL_GOTO SQL_IDENTIFIED
+ SQL_INDICATOR SQL_KEY_MEMBER SQL_LENGTH
+ SQL_LONG SQL_NULLABLE SQL_OCTET_LENGTH
+ SQL_OPEN SQL_OUTPUT SQL_REFERENCE
+ SQL_RETURNED_LENGTH SQL_RETURNED_OCTET_LENGTH SQL_SCALE
+ SQL_SECTION SQL_SHORT SQL_SIGNED SQL_SQLERROR
+ SQL_SQLPRINT SQL_SQLWARNING SQL_START SQL_STOP
+ SQL_STRUCT SQL_UNSIGNED SQL_VAR SQL_WHENEVER
+
+/* C tokens */
+%token S_ADD S_AND S_ANYTHING S_AUTO S_CONST S_DEC S_DIV
+ S_DOTPOINT S_EQUAL S_EXTERN S_INC S_LSHIFT S_MEMPOINT
+ S_MEMBER S_MOD S_MUL S_NEQUAL S_OR S_REGISTER S_RSHIFT
+ S_STATIC S_SUB S_VOLATILE
+ S_TYPEDEF
+
+%token CSTRING CVARIABLE CPP_LINE IP
diff --git a/src/interfaces/ecpg/preproc/ecpg.trailer b/src/interfaces/ecpg/preproc/ecpg.trailer
new file mode 100644
index 0000000..b65e787
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/ecpg.trailer
@@ -0,0 +1,1933 @@
+/* src/interfaces/ecpg/preproc/ecpg.trailer */
+
+statements: /*EMPTY*/
+ | statements statement
+ ;
+
+statement: ecpgstart at toplevel_stmt ';'
+ {
+ if (connection)
+ free(connection);
+ connection = NULL;
+ }
+ | ecpgstart toplevel_stmt ';'
+ {
+ if (connection)
+ free(connection);
+ connection = NULL;
+ }
+ | ecpgstart ECPGVarDeclaration
+ {
+ fprintf(base_yyout, "%s", $2);
+ free($2);
+ output_line_number();
+ }
+ | ECPGDeclaration
+ | c_thing { fprintf(base_yyout, "%s", $1); free($1); }
+ | CPP_LINE { fprintf(base_yyout, "%s", $1); free($1); }
+ | '{' { braces_open++; fputs("{", base_yyout); }
+ | '}'
+ {
+ remove_typedefs(braces_open);
+ remove_variables(braces_open--);
+ if (braces_open == 0)
+ {
+ free(current_function);
+ current_function = NULL;
+ }
+ fputs("}", base_yyout);
+ }
+ ;
+
+CreateAsStmt: CREATE OptTemp TABLE create_as_target AS {FoundInto = 0;} SelectStmt opt_with_data
+ {
+ if (FoundInto == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
+
+ $$ = cat_str(7, mm_strdup("create"), $2, mm_strdup("table"), $4, mm_strdup("as"), $7, $8);
+ }
+ | CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS {FoundInto = 0;} SelectStmt opt_with_data
+ {
+ if (FoundInto == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
+
+ $$ = cat_str(7, mm_strdup("create"), $2, mm_strdup("table if not exists"), $7, mm_strdup("as"), $10, $11);
+ }
+ ;
+
+at: AT connection_object
+ {
+ connection = $2;
+ /*
+ * Do we have a variable as connection target? Remove the variable
+ * from the variable list or else it will be used twice.
+ */
+ if (argsinsert != NULL)
+ argsinsert = NULL;
+ }
+ ;
+
+/*
+ * the exec sql connect statement: connect to the given database
+ */
+ECPGConnect: SQL_CONNECT TO connection_target opt_connection_name opt_user
+ { $$ = cat_str(5, $3, mm_strdup(","), $5, mm_strdup(","), $4); }
+ | SQL_CONNECT TO DEFAULT
+ { $$ = mm_strdup("NULL, NULL, NULL, \"DEFAULT\""); }
+ /* also allow ORACLE syntax */
+ | SQL_CONNECT ora_user
+ { $$ = cat_str(3, mm_strdup("NULL,"), $2, mm_strdup(", NULL")); }
+ | DATABASE connection_target
+ { $$ = cat2_str($2, mm_strdup(", NULL, NULL, NULL")); }
+ ;
+
+connection_target: opt_database_name opt_server opt_port
+ {
+ /* old style: dbname[@server][:port] */
+ if (strlen($2) > 0 && *($2) != '@')
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"@\", found \"%s\"", $2);
+
+ /* C strings need to be handled differently */
+ if ($1[0] == '\"')
+ $$ = $1;
+ else
+ $$ = make3_str(mm_strdup("\""), make3_str($1, $2, $3), mm_strdup("\""));
+ }
+ | db_prefix ':' server opt_port '/' opt_database_name opt_options
+ {
+ /* new style: <tcp|unix>:postgresql://server[:port][/dbname] */
+ if (strncmp($1, "unix:postgresql", strlen("unix:postgresql")) != 0 && strncmp($1, "tcp:postgresql", strlen("tcp:postgresql")) != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported");
+
+ if (strncmp($3, "//", strlen("//")) != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"://\", found \"%s\"", $3);
+
+ if (strncmp($1, "unix", strlen("unix")) == 0 &&
+ strncmp($3 + strlen("//"), "localhost", strlen("localhost")) != 0 &&
+ strncmp($3 + strlen("//"), "127.0.0.1", strlen("127.0.0.1")) != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "Unix-domain sockets only work on \"localhost\" but not on \"%s\"", $3 + strlen("//"));
+
+ $$ = make3_str(make3_str(mm_strdup("\""), $1, mm_strdup(":")), $3, make3_str(make3_str($4, mm_strdup("/"), $6), $7, mm_strdup("\"")));
+ }
+ | char_variable
+ {
+ $$ = $1;
+ }
+ | ecpg_sconst
+ {
+ /* We can only process double quoted strings not single quotes ones,
+ * so we change the quotes.
+ * Note, that the rule for ecpg_sconst adds these single quotes. */
+ $1[0] = '\"';
+ $1[strlen($1)-1] = '\"';
+ $$ = $1;
+ }
+ ;
+
+opt_database_name: name { $$ = $1; }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+db_prefix: ecpg_ident cvariable
+ {
+ if (strcmp($2, "postgresql") != 0 && strcmp($2, "postgres") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"postgresql\", found \"%s\"", $2);
+
+ if (strcmp($1, "tcp") != 0 && strcmp($1, "unix") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid connection type: %s", $1);
+
+ $$ = make3_str($1, mm_strdup(":"), $2);
+ }
+ ;
+
+server: Op server_name
+ {
+ if (strcmp($1, "@") != 0 && strcmp($1, "//") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"@\" or \"://\", found \"%s\"", $1);
+
+ $$ = make2_str($1, $2);
+ }
+ ;
+
+opt_server: server { $$ = $1; }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+server_name: ColId { $$ = $1; }
+ | ColId '.' server_name { $$ = make3_str($1, mm_strdup("."), $3); }
+ | IP { $$ = make_name(); }
+ ;
+
+opt_port: ':' Iconst { $$ = make2_str(mm_strdup(":"), $2); }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+opt_connection_name: AS connection_object { $$ = $2; }
+ | /*EMPTY*/ { $$ = mm_strdup("NULL"); }
+ ;
+
+opt_user: USER ora_user { $$ = $2; }
+ | /*EMPTY*/ { $$ = mm_strdup("NULL, NULL"); }
+ ;
+
+ora_user: user_name
+ { $$ = cat2_str($1, mm_strdup(", NULL")); }
+ | user_name '/' user_name
+ { $$ = cat_str(3, $1, mm_strdup(","), $3); }
+ | user_name SQL_IDENTIFIED BY user_name
+ { $$ = cat_str(3, $1, mm_strdup(","), $4); }
+ | user_name USING user_name
+ { $$ = cat_str(3, $1, mm_strdup(","), $3); }
+ ;
+
+user_name: RoleId
+ {
+ if ($1[0] == '\"')
+ $$ = $1;
+ else
+ $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\""));
+ }
+ | ecpg_sconst
+ {
+ if ($1[0] == '\"')
+ $$ = $1;
+ else
+ $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\""));
+ }
+ | civar
+ {
+ enum ECPGttype type = argsinsert->variable->type->type;
+
+ /* if array see what's inside */
+ if (type == ECPGt_array)
+ type = argsinsert->variable->type->u.element->type;
+
+ /* handle varchars */
+ if (type == ECPGt_varchar)
+ $$ = make2_str(mm_strdup(argsinsert->variable->name), mm_strdup(".arr"));
+ else
+ $$ = mm_strdup(argsinsert->variable->name);
+ }
+ ;
+
+char_variable: cvariable
+ {
+ /* check if we have a string variable */
+ struct variable *p = find_variable($1);
+ enum ECPGttype type = p->type->type;
+
+ /* If we have just one character this is not a string */
+ if (atol(p->type->size) == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid data type");
+ else
+ {
+ /* if array see what's inside */
+ if (type == ECPGt_array)
+ type = p->type->u.element->type;
+
+ switch (type)
+ {
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ $$ = $1;
+ break;
+ case ECPGt_varchar:
+ $$ = make2_str($1, mm_strdup(".arr"));
+ break;
+ default:
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid data type");
+ $$ = $1;
+ break;
+ }
+ }
+ }
+ ;
+
+opt_options: Op connect_options
+ {
+ if (strlen($1) == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "incomplete statement");
+
+ if (strcmp($1, "?") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "unrecognized token \"%s\"", $1);
+
+ $$ = make2_str(mm_strdup("?"), $2);
+ }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+connect_options: ColId opt_opt_value
+ {
+ $$ = make2_str($1, $2);
+ }
+ | ColId opt_opt_value Op connect_options
+ {
+ if (strlen($3) == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "incomplete statement");
+
+ if (strcmp($3, "&") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "unrecognized token \"%s\"", $3);
+
+ $$ = cat_str(3, make2_str($1, $2), $3, $4);
+ }
+ ;
+
+opt_opt_value: /*EMPTY*/
+ { $$ = EMPTY; }
+ | '=' Iconst
+ { $$ = make2_str(mm_strdup("="), $2); }
+ | '=' ecpg_ident
+ { $$ = make2_str(mm_strdup("="), $2); }
+ | '=' civar
+ { $$ = make2_str(mm_strdup("="), $2); }
+ ;
+
+prepared_name: name
+ {
+ if ($1[0] == '\"' && $1[strlen($1)-1] == '\"') /* already quoted? */
+ $$ = $1;
+ else /* not quoted => convert to lowercase */
+ {
+ size_t i;
+
+ for (i = 0; i< strlen($1); i++)
+ $1[i] = tolower((unsigned char) $1[i]);
+
+ $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\""));
+ }
+ }
+ | char_variable { $$ = $1; }
+ ;
+
+/*
+ * Declare Statement
+ */
+ECPGDeclareStmt: DECLARE prepared_name STATEMENT
+ {
+ struct declared_list *ptr = NULL;
+ /* Check whether the declared name has been defined or not */
+ for (ptr = g_declared_list; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp($2, ptr->name) == 0)
+ {
+ /* re-definition is not allowed */
+ mmerror(PARSE_ERROR, ET_ERROR, "name \"%s\" is already declared", ptr->name);
+ }
+ }
+
+ /* Add a new declared name into the g_declared_list */
+ ptr = NULL;
+ ptr = (struct declared_list *)mm_alloc(sizeof(struct declared_list));
+ if (ptr)
+ {
+ /* initial definition */
+ ptr -> name = $2;
+ if (connection)
+ ptr -> connection = mm_strdup(connection);
+ else
+ ptr -> connection = NULL;
+
+ ptr -> next = g_declared_list;
+ g_declared_list = ptr;
+ }
+
+ $$ = cat_str(3 , mm_strdup("/* declare "), mm_strdup($2), mm_strdup(" as an SQL identifier */"));
+ }
+;
+
+/*
+ * Declare a prepared cursor. The syntax is different from the standard
+ * declare statement, so we create a new rule.
+ */
+ECPGCursorStmt: DECLARE cursor_name cursor_options CURSOR opt_hold FOR prepared_name
+ {
+ struct cursor *ptr, *this;
+ char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
+ int (* strcmp_fn)(const char *, const char *) = (($2[0] == ':' || $2[0] == '"') ? strcmp : pg_strcasecmp);
+ struct variable *thisquery = (struct variable *)mm_alloc(sizeof(struct variable));
+ char *comment;
+ char *con;
+
+ if (INFORMIX_MODE && pg_strcasecmp($2, "database") == 0)
+ mmfatal(PARSE_ERROR, "\"database\" cannot be used as cursor name in INFORMIX mode");
+
+ check_declared_list($7);
+ con = connection ? connection : "NULL";
+ for (ptr = cur; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp_fn($2, ptr->name) == 0)
+ {
+ /* re-definition is a bug */
+ if ($2[0] == ':')
+ mmerror(PARSE_ERROR, ET_ERROR, "using variable \"%s\" in different declare statements is not supported", $2+1);
+ else
+ mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" is already defined", $2);
+ }
+ }
+
+ this = (struct cursor *) mm_alloc(sizeof(struct cursor));
+
+ /* initial definition */
+ this->next = cur;
+ this->name = $2;
+ this->function = (current_function ? mm_strdup(current_function) : NULL);
+ this->connection = connection ? mm_strdup(connection) : NULL;
+ this->command = cat_str(6, mm_strdup("declare"), cursor_marker, $3, mm_strdup("cursor"), $5, mm_strdup("for $1"));
+ this->argsresult = NULL;
+ this->argsresult_oos = NULL;
+
+ thisquery->type = &ecpg_query;
+ thisquery->brace_level = 0;
+ thisquery->next = NULL;
+ thisquery->name = (char *) mm_alloc(sizeof("ECPGprepared_statement(, , __LINE__)") + strlen(con) + strlen($7));
+ sprintf(thisquery->name, "ECPGprepared_statement(%s, %s, __LINE__)", con, $7);
+
+ this->argsinsert = NULL;
+ this->argsinsert_oos = NULL;
+ if ($2[0] == ':')
+ {
+ struct variable *var = find_variable($2 + 1);
+ remove_variable_from_list(&argsinsert, var);
+ add_variable_to_head(&(this->argsinsert), var, &no_indicator);
+ }
+ add_variable_to_head(&(this->argsinsert), thisquery, &no_indicator);
+
+ cur = this;
+
+ comment = cat_str(3, mm_strdup("/*"), mm_strdup(this->command), mm_strdup("*/"));
+
+ $$ = cat_str(2, adjust_outofscope_cursor_vars(this),
+ comment);
+ }
+ ;
+
+ECPGExecuteImmediateStmt: EXECUTE IMMEDIATE execstring
+ {
+ /* execute immediate means prepare the statement and
+ * immediately execute it */
+ $$ = $3;
+ };
+/*
+ * variable declaration outside exec sql declare block
+ */
+ECPGVarDeclaration: single_vt_declaration;
+
+single_vt_declaration: type_declaration { $$ = $1; }
+ | var_declaration { $$ = $1; }
+ ;
+
+precision: NumericOnly { $$ = $1; };
+
+opt_scale: ',' NumericOnly { $$ = $2; }
+ | /* EMPTY */ { $$ = EMPTY; }
+ ;
+
+ecpg_interval: opt_interval { $$ = $1; }
+ | YEAR_P TO MINUTE_P { $$ = mm_strdup("year to minute"); }
+ | YEAR_P TO SECOND_P { $$ = mm_strdup("year to second"); }
+ | DAY_P TO DAY_P { $$ = mm_strdup("day to day"); }
+ | MONTH_P TO MONTH_P { $$ = mm_strdup("month to month"); }
+ ;
+
+/*
+ * variable declaration inside exec sql declare block
+ */
+ECPGDeclaration: sql_startdeclare
+ { fputs("/* exec sql begin declare section */", base_yyout); }
+ var_type_declarations sql_enddeclare
+ {
+ fprintf(base_yyout, "%s/* exec sql end declare section */", $3);
+ free($3);
+ output_line_number();
+ }
+ ;
+
+sql_startdeclare: ecpgstart BEGIN_P DECLARE SQL_SECTION ';' {};
+
+sql_enddeclare: ecpgstart END_P DECLARE SQL_SECTION ';' {};
+
+var_type_declarations: /*EMPTY*/ { $$ = EMPTY; }
+ | vt_declarations { $$ = $1; }
+ ;
+
+vt_declarations: single_vt_declaration { $$ = $1; }
+ | CPP_LINE { $$ = $1; }
+ | vt_declarations single_vt_declaration { $$ = cat2_str($1, $2); }
+ | vt_declarations CPP_LINE { $$ = cat2_str($1, $2); }
+ ;
+
+variable_declarations: var_declaration { $$ = $1; }
+ | variable_declarations var_declaration { $$ = cat2_str($1, $2); }
+ ;
+
+type_declaration: S_TYPEDEF
+ {
+ /* reset this variable so we see if there was */
+ /* an initializer specified */
+ initializer = 0;
+ }
+ var_type opt_pointer ECPGColLabelCommon opt_array_bounds ';'
+ {
+ add_typedef($5, $6.index1, $6.index2, $3.type_enum, $3.type_dimension, $3.type_index, initializer, *$4 ? 1 : 0);
+
+ fprintf(base_yyout, "typedef %s %s %s %s;\n", $3.type_str, *$4 ? "*" : "", $5, $6.str);
+ output_line_number();
+ $$ = mm_strdup("");
+ };
+
+var_declaration:
+ storage_declaration var_type
+ {
+ actual_type[struct_level].type_storage = $1;
+ actual_type[struct_level].type_enum = $2.type_enum;
+ actual_type[struct_level].type_str = $2.type_str;
+ actual_type[struct_level].type_dimension = $2.type_dimension;
+ actual_type[struct_level].type_index = $2.type_index;
+ actual_type[struct_level].type_sizeof = $2.type_sizeof;
+
+ actual_startline[struct_level] = hashline_number();
+ }
+ variable_list ';'
+ {
+ $$ = cat_str(5, actual_startline[struct_level], $1, $2.type_str, $4, mm_strdup(";\n"));
+ }
+ | var_type
+ {
+ actual_type[struct_level].type_storage = EMPTY;
+ actual_type[struct_level].type_enum = $1.type_enum;
+ actual_type[struct_level].type_str = $1.type_str;
+ actual_type[struct_level].type_dimension = $1.type_dimension;
+ actual_type[struct_level].type_index = $1.type_index;
+ actual_type[struct_level].type_sizeof = $1.type_sizeof;
+
+ actual_startline[struct_level] = hashline_number();
+ }
+ variable_list ';'
+ {
+ $$ = cat_str(4, actual_startline[struct_level], $1.type_str, $3, mm_strdup(";\n"));
+ }
+ | struct_union_type_with_symbol ';'
+ {
+ $$ = cat2_str($1, mm_strdup(";"));
+ }
+ ;
+
+opt_bit_field: ':' Iconst { $$ =cat2_str(mm_strdup(":"), $2); }
+ | /* EMPTY */ { $$ = EMPTY; }
+ ;
+
+storage_declaration: storage_clause storage_modifier
+ {$$ = cat2_str ($1, $2); }
+ | storage_clause {$$ = $1; }
+ | storage_modifier {$$ = $1; }
+ ;
+
+storage_clause : S_EXTERN { $$ = mm_strdup("extern"); }
+ | S_STATIC { $$ = mm_strdup("static"); }
+ | S_REGISTER { $$ = mm_strdup("register"); }
+ | S_AUTO { $$ = mm_strdup("auto"); }
+ ;
+
+storage_modifier : S_CONST { $$ = mm_strdup("const"); }
+ | S_VOLATILE { $$ = mm_strdup("volatile"); }
+ ;
+
+var_type: simple_type
+ {
+ $$.type_enum = $1;
+ $$.type_str = mm_strdup(ecpg_type_name($1));
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ | struct_union_type
+ {
+ $$.type_str = $1;
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+
+ if (strncmp($1, "struct", sizeof("struct")-1) == 0)
+ {
+ $$.type_enum = ECPGt_struct;
+ $$.type_sizeof = ECPGstruct_sizeof;
+ }
+ else
+ {
+ $$.type_enum = ECPGt_union;
+ $$.type_sizeof = NULL;
+ }
+ }
+ | enum_type
+ {
+ $$.type_str = $1;
+ $$.type_enum = ECPGt_int;
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ | ECPGColLabelCommon '(' precision opt_scale ')'
+ {
+ if (strcmp($1, "numeric") == 0)
+ {
+ $$.type_enum = ECPGt_numeric;
+ $$.type_str = mm_strdup("numeric");
+ }
+ else if (strcmp($1, "decimal") == 0)
+ {
+ $$.type_enum = ECPGt_decimal;
+ $$.type_str = mm_strdup("decimal");
+ }
+ else
+ {
+ mmerror(PARSE_ERROR, ET_ERROR, "only data types numeric and decimal have precision/scale argument");
+ $$.type_enum = ECPGt_numeric;
+ $$.type_str = mm_strdup("numeric");
+ }
+
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ | ECPGColLabelCommon ecpg_interval
+ {
+ if (strlen($2) != 0 && strcmp ($1, "datetime") != 0 && strcmp ($1, "interval") != 0)
+ mmerror (PARSE_ERROR, ET_ERROR, "interval specification not allowed here");
+
+ /*
+ * Check for type names that the SQL grammar treats as
+ * unreserved keywords
+ */
+ if (strcmp($1, "varchar") == 0)
+ {
+ $$.type_enum = ECPGt_varchar;
+ $$.type_str = EMPTY; /*mm_strdup("varchar");*/
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "bytea") == 0)
+ {
+ $$.type_enum = ECPGt_bytea;
+ $$.type_str = EMPTY;
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "float") == 0)
+ {
+ $$.type_enum = ECPGt_float;
+ $$.type_str = mm_strdup("float");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "double") == 0)
+ {
+ $$.type_enum = ECPGt_double;
+ $$.type_str = mm_strdup("double");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "numeric") == 0)
+ {
+ $$.type_enum = ECPGt_numeric;
+ $$.type_str = mm_strdup("numeric");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "decimal") == 0)
+ {
+ $$.type_enum = ECPGt_decimal;
+ $$.type_str = mm_strdup("decimal");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "date") == 0)
+ {
+ $$.type_enum = ECPGt_date;
+ $$.type_str = mm_strdup("date");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "timestamp") == 0)
+ {
+ $$.type_enum = ECPGt_timestamp;
+ $$.type_str = mm_strdup("timestamp");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "interval") == 0)
+ {
+ $$.type_enum = ECPGt_interval;
+ $$.type_str = mm_strdup("interval");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "datetime") == 0)
+ {
+ $$.type_enum = ECPGt_timestamp;
+ $$.type_str = mm_strdup("timestamp");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if ((strcmp($1, "string") == 0) && INFORMIX_MODE)
+ {
+ $$.type_enum = ECPGt_string;
+ $$.type_str = mm_strdup("char");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else
+ {
+ /* this is for typedef'ed types */
+ struct typedefs *this = get_typedef($1);
+
+ $$.type_str = (this->type->type_enum == ECPGt_varchar || this->type->type_enum == ECPGt_bytea) ? EMPTY : mm_strdup(this->name);
+ $$.type_enum = this->type->type_enum;
+ $$.type_dimension = this->type->type_dimension;
+ $$.type_index = this->type->type_index;
+ if (this->type->type_sizeof && strlen(this->type->type_sizeof) != 0)
+ $$.type_sizeof = this->type->type_sizeof;
+ else
+ $$.type_sizeof = cat_str(3, mm_strdup("sizeof("), mm_strdup(this->name), mm_strdup(")"));
+
+ struct_member_list[struct_level] = ECPGstruct_member_dup(this->struct_member_list);
+ }
+ }
+ | s_struct_union_symbol
+ {
+ /* this is for named structs/unions */
+ char *name;
+ struct typedefs *this;
+ bool forward = (forward_name != NULL && strcmp($1.symbol, forward_name) == 0 && strcmp($1.su, "struct") == 0);
+
+ name = cat2_str($1.su, $1.symbol);
+ /* Do we have a forward definition? */
+ if (!forward)
+ {
+ /* No */
+
+ this = get_typedef(name);
+ $$.type_str = mm_strdup(this->name);
+ $$.type_enum = this->type->type_enum;
+ $$.type_dimension = this->type->type_dimension;
+ $$.type_index = this->type->type_index;
+ $$.type_sizeof = this->type->type_sizeof;
+ struct_member_list[struct_level] = ECPGstruct_member_dup(this->struct_member_list);
+ free(name);
+ }
+ else
+ {
+ $$.type_str = name;
+ $$.type_enum = ECPGt_long;
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = mm_strdup("");
+ struct_member_list[struct_level] = NULL;
+ }
+ }
+ ;
+
+enum_type: ENUM_P symbol enum_definition
+ { $$ = cat_str(3, mm_strdup("enum"), $2, $3); }
+ | ENUM_P enum_definition
+ { $$ = cat2_str(mm_strdup("enum"), $2); }
+ | ENUM_P symbol
+ { $$ = cat2_str(mm_strdup("enum"), $2); }
+ ;
+
+enum_definition: '{' c_list '}'
+ { $$ = cat_str(3, mm_strdup("{"), $2, mm_strdup("}")); };
+
+struct_union_type_with_symbol: s_struct_union_symbol
+ {
+ struct_member_list[struct_level++] = NULL;
+ if (struct_level >= STRUCT_DEPTH)
+ mmerror(PARSE_ERROR, ET_ERROR, "too many levels in nested structure/union definition");
+ forward_name = mm_strdup($1.symbol);
+ }
+ '{' variable_declarations '}'
+ {
+ struct typedefs *ptr, *this;
+ struct this_type su_type;
+
+ ECPGfree_struct_member(struct_member_list[struct_level]);
+ struct_member_list[struct_level] = NULL;
+ struct_level--;
+ if (strncmp($1.su, "struct", sizeof("struct")-1) == 0)
+ su_type.type_enum = ECPGt_struct;
+ else
+ su_type.type_enum = ECPGt_union;
+ su_type.type_str = cat2_str($1.su, $1.symbol);
+ free(forward_name);
+ forward_name = NULL;
+
+ /* This is essentially a typedef but needs the keyword struct/union as well.
+ * So we create the typedef for each struct definition with symbol */
+ for (ptr = types; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp(su_type.type_str, ptr->name) == 0)
+ /* re-definition is a bug */
+ mmerror(PARSE_ERROR, ET_ERROR, "type \"%s\" is already defined", su_type.type_str);
+ }
+
+ this = (struct typedefs *) mm_alloc(sizeof(struct typedefs));
+
+ /* initial definition */
+ this->next = types;
+ this->name = mm_strdup(su_type.type_str);
+ this->brace_level = braces_open;
+ this->type = (struct this_type *) mm_alloc(sizeof(struct this_type));
+ this->type->type_enum = su_type.type_enum;
+ this->type->type_str = mm_strdup(su_type.type_str);
+ this->type->type_dimension = mm_strdup("-1"); /* dimension of array */
+ this->type->type_index = mm_strdup("-1"); /* length of string */
+ this->type->type_sizeof = ECPGstruct_sizeof;
+ this->struct_member_list = struct_member_list[struct_level];
+
+ types = this;
+ $$ = cat_str(4, su_type.type_str, mm_strdup("{"), $4, mm_strdup("}"));
+ }
+ ;
+
+struct_union_type: struct_union_type_with_symbol { $$ = $1; }
+ | s_struct_union
+ {
+ struct_member_list[struct_level++] = NULL;
+ if (struct_level >= STRUCT_DEPTH)
+ mmerror(PARSE_ERROR, ET_ERROR, "too many levels in nested structure/union definition");
+ }
+ '{' variable_declarations '}'
+ {
+ ECPGfree_struct_member(struct_member_list[struct_level]);
+ struct_member_list[struct_level] = NULL;
+ struct_level--;
+ $$ = cat_str(4, $1, mm_strdup("{"), $4, mm_strdup("}"));
+ }
+ ;
+
+s_struct_union_symbol: SQL_STRUCT symbol
+ {
+ $$.su = mm_strdup("struct");
+ $$.symbol = $2;
+ ECPGstruct_sizeof = cat_str(3, mm_strdup("sizeof("), cat2_str(mm_strdup($$.su), mm_strdup($$.symbol)), mm_strdup(")"));
+ }
+ | UNION symbol
+ {
+ $$.su = mm_strdup("union");
+ $$.symbol = $2;
+ }
+ ;
+
+s_struct_union: SQL_STRUCT
+ {
+ ECPGstruct_sizeof = mm_strdup(""); /* This must not be NULL to distinguish from simple types. */
+ $$ = mm_strdup("struct");
+ }
+ | UNION
+ {
+ $$ = mm_strdup("union");
+ }
+ ;
+
+simple_type: unsigned_type { $$=$1; }
+ | opt_signed signed_type { $$=$2; }
+ ;
+
+unsigned_type: SQL_UNSIGNED SQL_SHORT { $$ = ECPGt_unsigned_short; }
+ | SQL_UNSIGNED SQL_SHORT INT_P { $$ = ECPGt_unsigned_short; }
+ | SQL_UNSIGNED { $$ = ECPGt_unsigned_int; }
+ | SQL_UNSIGNED INT_P { $$ = ECPGt_unsigned_int; }
+ | SQL_UNSIGNED SQL_LONG { $$ = ECPGt_unsigned_long; }
+ | SQL_UNSIGNED SQL_LONG INT_P { $$ = ECPGt_unsigned_long; }
+ | SQL_UNSIGNED SQL_LONG SQL_LONG { $$ = ECPGt_unsigned_long_long; }
+ | SQL_UNSIGNED SQL_LONG SQL_LONG INT_P { $$ = ECPGt_unsigned_long_long; }
+ | SQL_UNSIGNED CHAR_P { $$ = ECPGt_unsigned_char; }
+ ;
+
+signed_type: SQL_SHORT { $$ = ECPGt_short; }
+ | SQL_SHORT INT_P { $$ = ECPGt_short; }
+ | INT_P { $$ = ECPGt_int; }
+ | SQL_LONG { $$ = ECPGt_long; }
+ | SQL_LONG INT_P { $$ = ECPGt_long; }
+ | SQL_LONG SQL_LONG { $$ = ECPGt_long_long; }
+ | SQL_LONG SQL_LONG INT_P { $$ = ECPGt_long_long; }
+ | SQL_BOOL { $$ = ECPGt_bool; }
+ | CHAR_P { $$ = ECPGt_char; }
+ | DOUBLE_P { $$ = ECPGt_double; }
+ ;
+
+opt_signed: SQL_SIGNED
+ | /* EMPTY */
+ ;
+
+variable_list: variable
+ { $$ = $1; }
+ | variable_list ',' variable
+ {
+ if (actual_type[struct_level].type_enum == ECPGt_varchar || actual_type[struct_level].type_enum == ECPGt_bytea)
+ $$ = cat_str(4, $1, mm_strdup(";"), mm_strdup(actual_type[struct_level].type_storage), $3);
+ else
+ $$ = cat_str(3, $1, mm_strdup(","), $3);
+ }
+ ;
+
+variable: opt_pointer ECPGColLabel opt_array_bounds opt_bit_field opt_initializer
+ {
+ struct ECPGtype * type;
+ char *dimension = $3.index1; /* dimension of array */
+ char *length = $3.index2; /* length of string */
+ char *dim_str;
+ char *vcn;
+ int *varlen_type_counter;
+ char *struct_name;
+
+ adjust_array(actual_type[struct_level].type_enum, &dimension, &length, actual_type[struct_level].type_dimension, actual_type[struct_level].type_index, strlen($1), false);
+ switch (actual_type[struct_level].type_enum)
+ {
+ case ECPGt_struct:
+ case ECPGt_union:
+ if (atoi(dimension) < 0)
+ type = ECPGmake_struct_type(struct_member_list[struct_level], actual_type[struct_level].type_enum, actual_type[struct_level].type_str, actual_type[struct_level].type_sizeof);
+ else
+ type = ECPGmake_array_type(ECPGmake_struct_type(struct_member_list[struct_level], actual_type[struct_level].type_enum, actual_type[struct_level].type_str, actual_type[struct_level].type_sizeof), dimension);
+
+ $$ = cat_str(5, $1, mm_strdup($2), $3.str, $4, $5);
+ break;
+
+ case ECPGt_varchar:
+ case ECPGt_bytea:
+ if (actual_type[struct_level].type_enum == ECPGt_varchar)
+ {
+ varlen_type_counter = &varchar_counter;
+ struct_name = " struct varchar_";
+ }
+ else
+ {
+ varlen_type_counter = &bytea_counter;
+ struct_name = " struct bytea_";
+ }
+ if (atoi(dimension) < 0)
+ type = ECPGmake_simple_type(actual_type[struct_level].type_enum, length, *varlen_type_counter);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(actual_type[struct_level].type_enum, length, *varlen_type_counter), dimension);
+
+ if (strcmp(dimension, "0") == 0 || abs(atoi(dimension)) == 1)
+ dim_str=mm_strdup("");
+ else
+ dim_str=cat_str(3, mm_strdup("["), mm_strdup(dimension), mm_strdup("]"));
+ /* cannot check for atoi <= 0 because a defined constant will yield 0 here as well */
+ if (atoi(length) < 0 || strcmp(length, "0") == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "pointers to varchar are not implemented");
+
+ /* make sure varchar struct name is unique by adding a unique counter to its definition */
+ vcn = (char *) mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ sprintf(vcn, "%d", *varlen_type_counter);
+ if (strcmp(dimension, "0") == 0)
+ $$ = cat_str(7, make2_str(mm_strdup(struct_name), vcn), mm_strdup(" { int len; char arr["), mm_strdup(length), mm_strdup("]; } *"), mm_strdup($2), $4, $5);
+ else
+ $$ = cat_str(8, make2_str(mm_strdup(struct_name), vcn), mm_strdup(" { int len; char arr["), mm_strdup(length), mm_strdup("]; } "), mm_strdup($2), dim_str, $4, $5);
+ (*varlen_type_counter)++;
+ break;
+
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ if (atoi(dimension) == -1)
+ {
+ int i = strlen($5);
+
+ if (atoi(length) == -1 && i > 0) /* char <var>[] = "string" */
+ {
+ /* if we have an initializer but no string size set, let's use the initializer's length */
+ free(length);
+ length = mm_alloc(i+sizeof("sizeof()"));
+ sprintf(length, "sizeof(%s)", $5+2);
+ }
+ type = ECPGmake_simple_type(actual_type[struct_level].type_enum, length, 0);
+ }
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(actual_type[struct_level].type_enum, length, 0), dimension);
+
+ $$ = cat_str(5, $1, mm_strdup($2), $3.str, $4, $5);
+ break;
+
+ default:
+ if (atoi(dimension) < 0)
+ type = ECPGmake_simple_type(actual_type[struct_level].type_enum, mm_strdup("1"), 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(actual_type[struct_level].type_enum, mm_strdup("1"), 0), dimension);
+
+ $$ = cat_str(5, $1, mm_strdup($2), $3.str, $4, $5);
+ break;
+ }
+
+ if (struct_level == 0)
+ new_variable($2, type, braces_open);
+ else
+ ECPGmake_struct_member($2, type, &(struct_member_list[struct_level - 1]));
+
+ free($2);
+ }
+ ;
+
+opt_initializer: /*EMPTY*/
+ { $$ = EMPTY; }
+ | '=' c_term
+ {
+ initializer = 1;
+ $$ = cat2_str(mm_strdup("="), $2);
+ }
+ ;
+
+opt_pointer: /*EMPTY*/ { $$ = EMPTY; }
+ | '*' { $$ = mm_strdup("*"); }
+ | '*' '*' { $$ = mm_strdup("**"); }
+ ;
+
+/*
+ * We try to simulate the correct DECLARE syntax here so we get dynamic SQL
+ */
+ECPGDeclare: DECLARE STATEMENT ecpg_ident
+ {
+ /* this is only supported for compatibility */
+ $$ = cat_str(3, mm_strdup("/* declare statement"), $3, mm_strdup("*/"));
+ }
+ ;
+/*
+ * the exec sql disconnect statement: disconnect from the given database
+ */
+ECPGDisconnect: SQL_DISCONNECT dis_name { $$ = $2; }
+ ;
+
+dis_name: connection_object { $$ = $1; }
+ | CURRENT_P { $$ = mm_strdup("\"CURRENT\""); }
+ | ALL { $$ = mm_strdup("\"ALL\""); }
+ | /* EMPTY */ { $$ = mm_strdup("\"CURRENT\""); }
+ ;
+
+connection_object: name { $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\"")); }
+ | DEFAULT { $$ = mm_strdup("\"DEFAULT\""); }
+ | char_variable { $$ = $1; }
+ ;
+
+execstring: char_variable
+ { $$ = $1; }
+ | CSTRING
+ { $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\"")); }
+ ;
+
+/*
+ * the exec sql free command to deallocate a previously
+ * prepared statement
+ */
+ECPGFree: SQL_FREE cursor_name { $$ = $2; }
+ | SQL_FREE ALL { $$ = mm_strdup("all"); }
+ ;
+
+/*
+ * open is an open cursor, at the moment this has to be removed
+ */
+ECPGOpen: SQL_OPEN cursor_name opt_ecpg_using
+ {
+ if ($2[0] == ':')
+ remove_variable_from_list(&argsinsert, find_variable($2 + 1));
+ $$ = $2;
+ }
+ ;
+
+opt_ecpg_using: /*EMPTY*/ { $$ = EMPTY; }
+ | ecpg_using { $$ = $1; }
+ ;
+
+ecpg_using: USING using_list { $$ = EMPTY; }
+ | using_descriptor { $$ = $1; }
+ ;
+
+using_descriptor: USING SQL_P SQL_DESCRIPTOR quoted_ident_stringvar
+ {
+ add_variable_to_head(&argsinsert, descriptor_variable($4,0), &no_indicator);
+ $$ = EMPTY;
+ }
+ | USING SQL_DESCRIPTOR name
+ {
+ add_variable_to_head(&argsinsert, sqlda_variable($3), &no_indicator);
+ $$ = EMPTY;
+ }
+ ;
+
+into_descriptor: INTO SQL_P SQL_DESCRIPTOR quoted_ident_stringvar
+ {
+ add_variable_to_head(&argsresult, descriptor_variable($4,1), &no_indicator);
+ $$ = EMPTY;
+ }
+ | INTO SQL_DESCRIPTOR name
+ {
+ add_variable_to_head(&argsresult, sqlda_variable($3), &no_indicator);
+ $$ = EMPTY;
+ }
+ ;
+
+into_sqlda: INTO name
+ {
+ add_variable_to_head(&argsresult, sqlda_variable($2), &no_indicator);
+ $$ = EMPTY;
+ }
+ ;
+
+using_list: UsingValue | UsingValue ',' using_list;
+
+UsingValue: UsingConst
+ {
+ char *length = mm_alloc(32);
+
+ sprintf(length, "%zu", strlen($1));
+ add_variable_to_head(&argsinsert, new_variable($1, ECPGmake_simple_type(ECPGt_const, length, 0), 0), &no_indicator);
+ }
+ | civar { $$ = EMPTY; }
+ | civarind { $$ = EMPTY; }
+ ;
+
+UsingConst: Iconst { $$ = $1; }
+ | '+' Iconst { $$ = cat_str(2, mm_strdup("+"), $2); }
+ | '-' Iconst { $$ = cat_str(2, mm_strdup("-"), $2); }
+ | ecpg_fconst { $$ = $1; }
+ | '+' ecpg_fconst { $$ = cat_str(2, mm_strdup("+"), $2); }
+ | '-' ecpg_fconst { $$ = cat_str(2, mm_strdup("-"), $2); }
+ | ecpg_sconst { $$ = $1; }
+ | ecpg_bconst { $$ = $1; }
+ | ecpg_xconst { $$ = $1; }
+ ;
+
+/*
+ * We accept DESCRIBE [OUTPUT] but do nothing with DESCRIBE INPUT so far.
+ */
+ECPGDescribe: SQL_DESCRIBE INPUT_P prepared_name using_descriptor
+ {
+ $$.input = 1;
+ $$.stmt_name = $3;
+ }
+ | SQL_DESCRIBE opt_output prepared_name using_descriptor
+ {
+ struct variable *var;
+ var = argsinsert->variable;
+ remove_variable_from_list(&argsinsert, var);
+ add_variable_to_head(&argsresult, var, &no_indicator);
+
+ $$.input = 0;
+ $$.stmt_name = $3;
+ }
+ | SQL_DESCRIBE opt_output prepared_name into_descriptor
+ {
+ $$.input = 0;
+ $$.stmt_name = $3;
+ }
+ | SQL_DESCRIBE INPUT_P prepared_name into_sqlda
+ {
+ $$.input = 1;
+ $$.stmt_name = $3;
+ }
+ | SQL_DESCRIBE opt_output prepared_name into_sqlda
+ {
+ $$.input = 0;
+ $$.stmt_name = $3;
+ }
+ ;
+
+opt_output: SQL_OUTPUT { $$ = mm_strdup("output"); }
+ | /* EMPTY */ { $$ = EMPTY; }
+ ;
+
+/*
+ * dynamic SQL: descriptor based access
+ * originally written by Christof Petig <christof.petig@wtal.de>
+ * and Peter Eisentraut <peter.eisentraut@credativ.de>
+ */
+
+/*
+ * allocate a descriptor
+ */
+ECPGAllocateDescr: SQL_ALLOCATE SQL_DESCRIPTOR quoted_ident_stringvar
+ {
+ add_descriptor($3,connection);
+ $$ = $3;
+ }
+ ;
+
+
+/*
+ * deallocate a descriptor
+ */
+ECPGDeallocateDescr: DEALLOCATE SQL_DESCRIPTOR quoted_ident_stringvar
+ {
+ drop_descriptor($3,connection);
+ $$ = $3;
+ }
+ ;
+
+/*
+ * manipulate a descriptor header
+ */
+
+ECPGGetDescriptorHeader: SQL_GET SQL_DESCRIPTOR quoted_ident_stringvar ECPGGetDescHeaderItems
+ { $$ = $3; }
+ ;
+
+ECPGGetDescHeaderItems: ECPGGetDescHeaderItem
+ | ECPGGetDescHeaderItems ',' ECPGGetDescHeaderItem
+ ;
+
+ECPGGetDescHeaderItem: cvariable '=' desc_header_item
+ { push_assignment($1, $3); }
+ ;
+
+
+ECPGSetDescriptorHeader: SET SQL_DESCRIPTOR quoted_ident_stringvar ECPGSetDescHeaderItems
+ { $$ = $3; }
+ ;
+
+ECPGSetDescHeaderItems: ECPGSetDescHeaderItem
+ | ECPGSetDescHeaderItems ',' ECPGSetDescHeaderItem
+ ;
+
+ECPGSetDescHeaderItem: desc_header_item '=' IntConstVar
+ {
+ push_assignment($3, $1);
+ }
+ ;
+
+IntConstVar: Iconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+
+ sprintf(length, "%zu", strlen($1));
+ new_variable($1, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = $1;
+ }
+ | cvariable
+ {
+ $$ = $1;
+ }
+ ;
+
+desc_header_item: SQL_COUNT { $$ = ECPGd_count; }
+ ;
+
+/*
+ * manipulate a descriptor
+ */
+
+ECPGGetDescriptor: SQL_GET SQL_DESCRIPTOR quoted_ident_stringvar VALUE_P IntConstVar ECPGGetDescItems
+ { $$.str = $5; $$.name = $3; }
+ ;
+
+ECPGGetDescItems: ECPGGetDescItem
+ | ECPGGetDescItems ',' ECPGGetDescItem
+ ;
+
+ECPGGetDescItem: cvariable '=' descriptor_item { push_assignment($1, $3); };
+
+
+ECPGSetDescriptor: SET SQL_DESCRIPTOR quoted_ident_stringvar VALUE_P IntConstVar ECPGSetDescItems
+ { $$.str = $5; $$.name = $3; }
+ ;
+
+ECPGSetDescItems: ECPGSetDescItem
+ | ECPGSetDescItems ',' ECPGSetDescItem
+ ;
+
+ECPGSetDescItem: descriptor_item '=' AllConstVar
+ {
+ push_assignment($3, $1);
+ }
+ ;
+
+AllConstVar: ecpg_fconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+
+ sprintf(length, "%zu", strlen($1));
+ new_variable($1, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = $1;
+ }
+
+ | IntConstVar
+ {
+ $$ = $1;
+ }
+
+ | '-' ecpg_fconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *var = cat2_str(mm_strdup("-"), $2);
+
+ sprintf(length, "%zu", strlen(var));
+ new_variable(var, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = var;
+ }
+
+ | '-' Iconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *var = cat2_str(mm_strdup("-"), $2);
+
+ sprintf(length, "%zu", strlen(var));
+ new_variable(var, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = var;
+ }
+
+ | ecpg_sconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *var = $1 + 1;
+
+ var[strlen(var) - 1] = '\0';
+ sprintf(length, "%zu", strlen(var));
+ new_variable(var, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = var;
+ }
+ ;
+
+descriptor_item: SQL_CARDINALITY { $$ = ECPGd_cardinality; }
+ | DATA_P { $$ = ECPGd_data; }
+ | SQL_DATETIME_INTERVAL_CODE { $$ = ECPGd_di_code; }
+ | SQL_DATETIME_INTERVAL_PRECISION { $$ = ECPGd_di_precision; }
+ | SQL_INDICATOR { $$ = ECPGd_indicator; }
+ | SQL_KEY_MEMBER { $$ = ECPGd_key_member; }
+ | SQL_LENGTH { $$ = ECPGd_length; }
+ | NAME_P { $$ = ECPGd_name; }
+ | SQL_NULLABLE { $$ = ECPGd_nullable; }
+ | SQL_OCTET_LENGTH { $$ = ECPGd_octet; }
+ | PRECISION { $$ = ECPGd_precision; }
+ | SQL_RETURNED_LENGTH { $$ = ECPGd_length; }
+ | SQL_RETURNED_OCTET_LENGTH { $$ = ECPGd_ret_octet; }
+ | SQL_SCALE { $$ = ECPGd_scale; }
+ | TYPE_P { $$ = ECPGd_type; }
+ ;
+
+/*
+ * set/reset the automatic transaction mode, this needs a different handling
+ * as the other set commands
+ */
+ECPGSetAutocommit: SET SQL_AUTOCOMMIT '=' on_off { $$ = $4; }
+ | SET SQL_AUTOCOMMIT TO on_off { $$ = $4; }
+ ;
+
+on_off: ON { $$ = mm_strdup("on"); }
+ | OFF { $$ = mm_strdup("off"); }
+ ;
+
+/*
+ * set the actual connection, this needs a different handling as the other
+ * set commands
+ */
+ECPGSetConnection: SET CONNECTION TO connection_object { $$ = $4; }
+ | SET CONNECTION '=' connection_object { $$ = $4; }
+ | SET CONNECTION connection_object { $$ = $3; }
+ ;
+
+/*
+ * define a new type for embedded SQL
+ */
+ECPGTypedef: TYPE_P
+ {
+ /* reset this variable so we see if there was */
+ /* an initializer specified */
+ initializer = 0;
+ }
+ ECPGColLabelCommon IS var_type opt_array_bounds opt_reference
+ {
+ add_typedef($3, $6.index1, $6.index2, $5.type_enum, $5.type_dimension, $5.type_index, initializer, *$7 ? 1 : 0);
+
+ if (auto_create_c == false)
+ $$ = cat_str(7, mm_strdup("/* exec sql type"), mm_strdup($3), mm_strdup("is"), mm_strdup($5.type_str), mm_strdup($6.str), $7, mm_strdup("*/"));
+ else
+ $$ = cat_str(6, mm_strdup("typedef "), mm_strdup($5.type_str), *$7?mm_strdup("*"):mm_strdup(""), mm_strdup($3), mm_strdup($6.str), mm_strdup(";"));
+ }
+ ;
+
+opt_reference: SQL_REFERENCE { $$ = mm_strdup("reference"); }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+/*
+ * define the type of one variable for embedded SQL
+ */
+ECPGVar: SQL_VAR
+ {
+ /* reset this variable so we see if there was */
+ /* an initializer specified */
+ initializer = 0;
+ }
+ ColLabel IS var_type opt_array_bounds opt_reference
+ {
+ struct variable *p = find_variable($3);
+ char *dimension = $6.index1;
+ char *length = $6.index2;
+ struct ECPGtype * type;
+
+ if (($5.type_enum == ECPGt_struct ||
+ $5.type_enum == ECPGt_union) &&
+ initializer == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "initializer not allowed in EXEC SQL VAR command");
+ else
+ {
+ adjust_array($5.type_enum, &dimension, &length, $5.type_dimension, $5.type_index, *$7?1:0, false);
+
+ switch ($5.type_enum)
+ {
+ case ECPGt_struct:
+ case ECPGt_union:
+ if (atoi(dimension) < 0)
+ type = ECPGmake_struct_type(struct_member_list[struct_level], $5.type_enum, $5.type_str, $5.type_sizeof);
+ else
+ type = ECPGmake_array_type(ECPGmake_struct_type(struct_member_list[struct_level], $5.type_enum, $5.type_str, $5.type_sizeof), dimension);
+ break;
+
+ case ECPGt_varchar:
+ case ECPGt_bytea:
+ if (atoi(dimension) == -1)
+ type = ECPGmake_simple_type($5.type_enum, length, 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type($5.type_enum, length, 0), dimension);
+ break;
+
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ if (atoi(dimension) == -1)
+ type = ECPGmake_simple_type($5.type_enum, length, 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type($5.type_enum, length, 0), dimension);
+ break;
+
+ default:
+ if (atoi(length) >= 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "multidimensional arrays for simple data types are not supported");
+
+ if (atoi(dimension) < 0)
+ type = ECPGmake_simple_type($5.type_enum, mm_strdup("1"), 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type($5.type_enum, mm_strdup("1"), 0), dimension);
+ break;
+ }
+
+ ECPGfree_type(p->type);
+ p->type = type;
+ }
+
+ $$ = cat_str(7, mm_strdup("/* exec sql var"), mm_strdup($3), mm_strdup("is"), mm_strdup($5.type_str), mm_strdup($6.str), $7, mm_strdup("*/"));
+ }
+ ;
+
+/*
+ * whenever statement: decide what to do in case of error/no data found
+ * according to SQL standards we lack: SQLSTATE, CONSTRAINT and SQLEXCEPTION
+ */
+ECPGWhenever: SQL_WHENEVER SQL_SQLERROR action
+ {
+ when_error.code = $<action>3.code;
+ when_error.command = $<action>3.command;
+ $$ = cat_str(3, mm_strdup("/* exec sql whenever sqlerror "), $3.str, mm_strdup("; */"));
+ }
+ | SQL_WHENEVER NOT SQL_FOUND action
+ {
+ when_nf.code = $<action>4.code;
+ when_nf.command = $<action>4.command;
+ $$ = cat_str(3, mm_strdup("/* exec sql whenever not found "), $4.str, mm_strdup("; */"));
+ }
+ | SQL_WHENEVER SQL_SQLWARNING action
+ {
+ when_warn.code = $<action>3.code;
+ when_warn.command = $<action>3.command;
+ $$ = cat_str(3, mm_strdup("/* exec sql whenever sql_warning "), $3.str, mm_strdup("; */"));
+ }
+ ;
+
+action : CONTINUE_P
+ {
+ $<action>$.code = W_NOTHING;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("continue");
+ }
+ | SQL_SQLPRINT
+ {
+ $<action>$.code = W_SQLPRINT;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("sqlprint");
+ }
+ | SQL_STOP
+ {
+ $<action>$.code = W_STOP;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("stop");
+ }
+ | SQL_GOTO name
+ {
+ $<action>$.code = W_GOTO;
+ $<action>$.command = mm_strdup($2);
+ $<action>$.str = cat2_str(mm_strdup("goto "), $2);
+ }
+ | SQL_GO TO name
+ {
+ $<action>$.code = W_GOTO;
+ $<action>$.command = mm_strdup($3);
+ $<action>$.str = cat2_str(mm_strdup("goto "), $3);
+ }
+ | DO name '(' c_args ')'
+ {
+ $<action>$.code = W_DO;
+ $<action>$.command = cat_str(4, $2, mm_strdup("("), $4, mm_strdup(")"));
+ $<action>$.str = cat2_str(mm_strdup("do"), mm_strdup($<action>$.command));
+ }
+ | DO SQL_BREAK
+ {
+ $<action>$.code = W_BREAK;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("break");
+ }
+ | DO CONTINUE_P
+ {
+ $<action>$.code = W_CONTINUE;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("continue");
+ }
+ | CALL name '(' c_args ')'
+ {
+ $<action>$.code = W_DO;
+ $<action>$.command = cat_str(4, $2, mm_strdup("("), $4, mm_strdup(")"));
+ $<action>$.str = cat2_str(mm_strdup("call"), mm_strdup($<action>$.command));
+ }
+ | CALL name
+ {
+ $<action>$.code = W_DO;
+ $<action>$.command = cat2_str($2, mm_strdup("()"));
+ $<action>$.str = cat2_str(mm_strdup("call"), mm_strdup($<action>$.command));
+ }
+ ;
+
+/* some other stuff for ecpg */
+
+/* additional unreserved keywords */
+ECPGKeywords: ECPGKeywords_vanames { $$ = $1; }
+ | ECPGKeywords_rest { $$ = $1; }
+ ;
+
+ECPGKeywords_vanames: SQL_BREAK { $$ = mm_strdup("break"); }
+ | SQL_CARDINALITY { $$ = mm_strdup("cardinality"); }
+ | SQL_COUNT { $$ = mm_strdup("count"); }
+ | SQL_DATETIME_INTERVAL_CODE { $$ = mm_strdup("datetime_interval_code"); }
+ | SQL_DATETIME_INTERVAL_PRECISION { $$ = mm_strdup("datetime_interval_precision"); }
+ | SQL_FOUND { $$ = mm_strdup("found"); }
+ | SQL_GO { $$ = mm_strdup("go"); }
+ | SQL_GOTO { $$ = mm_strdup("goto"); }
+ | SQL_IDENTIFIED { $$ = mm_strdup("identified"); }
+ | SQL_INDICATOR { $$ = mm_strdup("indicator"); }
+ | SQL_KEY_MEMBER { $$ = mm_strdup("key_member"); }
+ | SQL_LENGTH { $$ = mm_strdup("length"); }
+ | SQL_NULLABLE { $$ = mm_strdup("nullable"); }
+ | SQL_OCTET_LENGTH { $$ = mm_strdup("octet_length"); }
+ | SQL_RETURNED_LENGTH { $$ = mm_strdup("returned_length"); }
+ | SQL_RETURNED_OCTET_LENGTH { $$ = mm_strdup("returned_octet_length"); }
+ | SQL_SCALE { $$ = mm_strdup("scale"); }
+ | SQL_SECTION { $$ = mm_strdup("section"); }
+ | SQL_SQLERROR { $$ = mm_strdup("sqlerror"); }
+ | SQL_SQLPRINT { $$ = mm_strdup("sqlprint"); }
+ | SQL_SQLWARNING { $$ = mm_strdup("sqlwarning"); }
+ | SQL_STOP { $$ = mm_strdup("stop"); }
+ ;
+
+ECPGKeywords_rest: SQL_CONNECT { $$ = mm_strdup("connect"); }
+ | SQL_DESCRIBE { $$ = mm_strdup("describe"); }
+ | SQL_DISCONNECT { $$ = mm_strdup("disconnect"); }
+ | SQL_OPEN { $$ = mm_strdup("open"); }
+ | SQL_VAR { $$ = mm_strdup("var"); }
+ | SQL_WHENEVER { $$ = mm_strdup("whenever"); }
+ ;
+
+/* additional keywords that can be SQL type names (but not ECPGColLabels) */
+ECPGTypeName: SQL_BOOL { $$ = mm_strdup("bool"); }
+ | SQL_LONG { $$ = mm_strdup("long"); }
+ | SQL_OUTPUT { $$ = mm_strdup("output"); }
+ | SQL_SHORT { $$ = mm_strdup("short"); }
+ | SQL_STRUCT { $$ = mm_strdup("struct"); }
+ | SQL_SIGNED { $$ = mm_strdup("signed"); }
+ | SQL_UNSIGNED { $$ = mm_strdup("unsigned"); }
+ ;
+
+symbol: ColLabel { $$ = $1; }
+ ;
+
+ECPGColId: ecpg_ident { $$ = $1; }
+ | unreserved_keyword { $$ = $1; }
+ | col_name_keyword { $$ = $1; }
+ | ECPGunreserved_interval { $$ = $1; }
+ | ECPGKeywords { $$ = $1; }
+ | ECPGCKeywords { $$ = $1; }
+ | CHAR_P { $$ = mm_strdup("char"); }
+ | VALUES { $$ = mm_strdup("values"); }
+ ;
+
+/*
+ * Name classification hierarchy.
+ *
+ * These productions should match those in the core grammar, except that
+ * we use all_unreserved_keyword instead of unreserved_keyword, and
+ * where possible include ECPG keywords as well as core keywords.
+ */
+
+/* Column identifier --- names that can be column, table, etc names.
+ */
+ColId: ecpg_ident { $$ = $1; }
+ | all_unreserved_keyword { $$ = $1; }
+ | col_name_keyword { $$ = $1; }
+ | ECPGKeywords { $$ = $1; }
+ | ECPGCKeywords { $$ = $1; }
+ | CHAR_P { $$ = mm_strdup("char"); }
+ | VALUES { $$ = mm_strdup("values"); }
+ ;
+
+/* Type/function identifier --- names that can be type or function names.
+ */
+type_function_name: ecpg_ident { $$ = $1; }
+ | all_unreserved_keyword { $$ = $1; }
+ | type_func_name_keyword { $$ = $1; }
+ | ECPGKeywords { $$ = $1; }
+ | ECPGCKeywords { $$ = $1; }
+ | ECPGTypeName { $$ = $1; }
+ ;
+
+/* Column label --- allowed labels in "AS" clauses.
+ * This presently includes *all* Postgres keywords.
+ */
+ColLabel: ECPGColLabel { $$ = $1; }
+ | ECPGTypeName { $$ = $1; }
+ | CHAR_P { $$ = mm_strdup("char"); }
+ | CURRENT_P { $$ = mm_strdup("current"); }
+ | INPUT_P { $$ = mm_strdup("input"); }
+ | INT_P { $$ = mm_strdup("int"); }
+ | TO { $$ = mm_strdup("to"); }
+ | UNION { $$ = mm_strdup("union"); }
+ | VALUES { $$ = mm_strdup("values"); }
+ | ECPGCKeywords { $$ = $1; }
+ | ECPGunreserved_interval { $$ = $1; }
+ ;
+
+ECPGColLabel: ECPGColLabelCommon { $$ = $1; }
+ | unreserved_keyword { $$ = $1; }
+ | reserved_keyword { $$ = $1; }
+ | ECPGKeywords_rest { $$ = $1; }
+ | CONNECTION { $$ = mm_strdup("connection"); }
+ ;
+
+ECPGColLabelCommon: ecpg_ident { $$ = $1; }
+ | col_name_keyword { $$ = $1; }
+ | type_func_name_keyword { $$ = $1; }
+ | ECPGKeywords_vanames { $$ = $1; }
+ ;
+
+ECPGCKeywords: S_AUTO { $$ = mm_strdup("auto"); }
+ | S_CONST { $$ = mm_strdup("const"); }
+ | S_EXTERN { $$ = mm_strdup("extern"); }
+ | S_REGISTER { $$ = mm_strdup("register"); }
+ | S_STATIC { $$ = mm_strdup("static"); }
+ | S_TYPEDEF { $$ = mm_strdup("typedef"); }
+ | S_VOLATILE { $$ = mm_strdup("volatile"); }
+ ;
+
+/* "Unreserved" keywords --- available for use as any kind of name.
+ */
+
+/*
+ * The following symbols must be excluded from ECPGColLabel and directly
+ * included into ColLabel to enable C variables to get names from ECPGColLabel:
+ * DAY_P, HOUR_P, MINUTE_P, MONTH_P, SECOND_P, YEAR_P.
+ *
+ * We also have to exclude CONNECTION, CURRENT, and INPUT for various reasons.
+ * CONNECTION can be added back in all_unreserved_keyword, but CURRENT and
+ * INPUT are reserved for ecpg purposes.
+ *
+ * The mentioned exclusions are done by $replace_line settings in parse.pl.
+ */
+all_unreserved_keyword: unreserved_keyword { $$ = $1; }
+ | ECPGunreserved_interval { $$ = $1; }
+ | CONNECTION { $$ = mm_strdup("connection"); }
+ ;
+
+ECPGunreserved_interval: DAY_P { $$ = mm_strdup("day"); }
+ | HOUR_P { $$ = mm_strdup("hour"); }
+ | MINUTE_P { $$ = mm_strdup("minute"); }
+ | MONTH_P { $$ = mm_strdup("month"); }
+ | SECOND_P { $$ = mm_strdup("second"); }
+ | YEAR_P { $$ = mm_strdup("year"); }
+ ;
+
+
+into_list : coutputvariable | into_list ',' coutputvariable
+ ;
+
+ecpgstart: SQL_START {
+ reset_variables();
+ pacounter = 1;
+ }
+ ;
+
+c_args: /*EMPTY*/ { $$ = EMPTY; }
+ | c_list { $$ = $1; }
+ ;
+
+coutputvariable: cvariable indicator
+ { add_variable_to_head(&argsresult, find_variable($1), find_variable($2)); }
+ | cvariable
+ { add_variable_to_head(&argsresult, find_variable($1), &no_indicator); }
+ ;
+
+
+civarind: cvariable indicator
+ {
+ if (find_variable($2)->type->type == ECPGt_array)
+ mmerror(PARSE_ERROR, ET_ERROR, "arrays of indicators are not allowed on input");
+
+ add_variable_to_head(&argsinsert, find_variable($1), find_variable($2));
+ $$ = create_questionmarks($1, false);
+ }
+ ;
+
+char_civar: char_variable
+ {
+ char *ptr = strstr($1, ".arr");
+
+ if (ptr) /* varchar, we need the struct name here, not the struct element */
+ *ptr = '\0';
+ add_variable_to_head(&argsinsert, find_variable($1), &no_indicator);
+ $$ = $1;
+ }
+ ;
+
+civar: cvariable
+ {
+ add_variable_to_head(&argsinsert, find_variable($1), &no_indicator);
+ $$ = create_questionmarks($1, false);
+ }
+ ;
+
+indicator: cvariable { check_indicator((find_variable($1))->type); $$ = $1; }
+ | SQL_INDICATOR cvariable { check_indicator((find_variable($2))->type); $$ = $2; }
+ | SQL_INDICATOR name { check_indicator((find_variable($2))->type); $$ = $2; }
+ ;
+
+cvariable: CVARIABLE
+ {
+ /* As long as multidimensional arrays are not implemented we have to check for those here */
+ char *ptr = $1;
+ int brace_open=0, brace = false;
+
+ for (; *ptr; ptr++)
+ {
+ switch (*ptr)
+ {
+ case '[':
+ if (brace)
+ mmfatal(PARSE_ERROR, "multidimensional arrays for simple data types are not supported");
+ brace_open++;
+ break;
+ case ']':
+ brace_open--;
+ if (brace_open == 0)
+ brace = true;
+ break;
+ case '\t':
+ case ' ':
+ break;
+ default:
+ if (brace_open == 0)
+ brace = false;
+ break;
+ }
+ }
+ $$ = $1;
+ }
+ ;
+
+ecpg_param: PARAM { $$ = make_name(); } ;
+
+ecpg_bconst: BCONST { $$ = $1; } ;
+
+ecpg_fconst: FCONST { $$ = make_name(); } ;
+
+ecpg_sconst: SCONST { $$ = $1; } ;
+
+ecpg_xconst: XCONST { $$ = $1; } ;
+
+ecpg_ident: IDENT { $$ = $1; }
+ | CSTRING { $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\"")); }
+ ;
+
+quoted_ident_stringvar: name
+ { $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\"")); }
+ | char_variable
+ { $$ = make3_str(mm_strdup("("), $1, mm_strdup(")")); }
+ ;
+
+/*
+ * C stuff
+ */
+
+c_stuff_item: c_anything { $$ = $1; }
+ | '(' ')' { $$ = mm_strdup("()"); }
+ | '(' c_stuff ')'
+ { $$ = cat_str(3, mm_strdup("("), $2, mm_strdup(")")); }
+ ;
+
+c_stuff: c_stuff_item { $$ = $1; }
+ | c_stuff c_stuff_item
+ { $$ = cat2_str($1, $2); }
+ ;
+
+c_list: c_term { $$ = $1; }
+ | c_list ',' c_term { $$ = cat_str(3, $1, mm_strdup(","), $3); }
+ ;
+
+c_term: c_stuff { $$ = $1; }
+ | '{' c_list '}' { $$ = cat_str(3, mm_strdup("{"), $2, mm_strdup("}")); }
+ ;
+
+c_thing: c_anything { $$ = $1; }
+ | '(' { $$ = mm_strdup("("); }
+ | ')' { $$ = mm_strdup(")"); }
+ | ',' { $$ = mm_strdup(","); }
+ | ';' { $$ = mm_strdup(";"); }
+ ;
+
+c_anything: ecpg_ident { $$ = $1; }
+ | Iconst { $$ = $1; }
+ | ecpg_fconst { $$ = $1; }
+ | ecpg_sconst { $$ = $1; }
+ | '*' { $$ = mm_strdup("*"); }
+ | '+' { $$ = mm_strdup("+"); }
+ | '-' { $$ = mm_strdup("-"); }
+ | '/' { $$ = mm_strdup("/"); }
+ | '%' { $$ = mm_strdup("%"); }
+ | NULL_P { $$ = mm_strdup("NULL"); }
+ | S_ADD { $$ = mm_strdup("+="); }
+ | S_AND { $$ = mm_strdup("&&"); }
+ | S_ANYTHING { $$ = make_name(); }
+ | S_AUTO { $$ = mm_strdup("auto"); }
+ | S_CONST { $$ = mm_strdup("const"); }
+ | S_DEC { $$ = mm_strdup("--"); }
+ | S_DIV { $$ = mm_strdup("/="); }
+ | S_DOTPOINT { $$ = mm_strdup(".*"); }
+ | S_EQUAL { $$ = mm_strdup("=="); }
+ | S_EXTERN { $$ = mm_strdup("extern"); }
+ | S_INC { $$ = mm_strdup("++"); }
+ | S_LSHIFT { $$ = mm_strdup("<<"); }
+ | S_MEMBER { $$ = mm_strdup("->"); }
+ | S_MEMPOINT { $$ = mm_strdup("->*"); }
+ | S_MOD { $$ = mm_strdup("%="); }
+ | S_MUL { $$ = mm_strdup("*="); }
+ | S_NEQUAL { $$ = mm_strdup("!="); }
+ | S_OR { $$ = mm_strdup("||"); }
+ | S_REGISTER { $$ = mm_strdup("register"); }
+ | S_RSHIFT { $$ = mm_strdup(">>"); }
+ | S_STATIC { $$ = mm_strdup("static"); }
+ | S_SUB { $$ = mm_strdup("-="); }
+ | S_TYPEDEF { $$ = mm_strdup("typedef"); }
+ | S_VOLATILE { $$ = mm_strdup("volatile"); }
+ | SQL_BOOL { $$ = mm_strdup("bool"); }
+ | ENUM_P { $$ = mm_strdup("enum"); }
+ | HOUR_P { $$ = mm_strdup("hour"); }
+ | INT_P { $$ = mm_strdup("int"); }
+ | SQL_LONG { $$ = mm_strdup("long"); }
+ | MINUTE_P { $$ = mm_strdup("minute"); }
+ | MONTH_P { $$ = mm_strdup("month"); }
+ | SECOND_P { $$ = mm_strdup("second"); }
+ | SQL_SHORT { $$ = mm_strdup("short"); }
+ | SQL_SIGNED { $$ = mm_strdup("signed"); }
+ | SQL_STRUCT { $$ = mm_strdup("struct"); }
+ | SQL_UNSIGNED { $$ = mm_strdup("unsigned"); }
+ | YEAR_P { $$ = mm_strdup("year"); }
+ | CHAR_P { $$ = mm_strdup("char"); }
+ | FLOAT_P { $$ = mm_strdup("float"); }
+ | TO { $$ = mm_strdup("to"); }
+ | UNION { $$ = mm_strdup("union"); }
+ | VARCHAR { $$ = mm_strdup("varchar"); }
+ | '[' { $$ = mm_strdup("["); }
+ | ']' { $$ = mm_strdup("]"); }
+ | '=' { $$ = mm_strdup("="); }
+ | ':' { $$ = mm_strdup(":"); }
+ ;
+
+DeallocateStmt: DEALLOCATE prepared_name { check_declared_list($2); $$ = $2; }
+ | DEALLOCATE PREPARE prepared_name { check_declared_list($3); $$ = $3; }
+ | DEALLOCATE ALL { $$ = mm_strdup("all"); }
+ | DEALLOCATE PREPARE ALL { $$ = mm_strdup("all"); }
+ ;
+
+Iresult: Iconst { $$ = $1; }
+ | '(' Iresult ')' { $$ = cat_str(3, mm_strdup("("), $2, mm_strdup(")")); }
+ | Iresult '+' Iresult { $$ = cat_str(3, $1, mm_strdup("+"), $3); }
+ | Iresult '-' Iresult { $$ = cat_str(3, $1, mm_strdup("-"), $3); }
+ | Iresult '*' Iresult { $$ = cat_str(3, $1, mm_strdup("*"), $3); }
+ | Iresult '/' Iresult { $$ = cat_str(3, $1, mm_strdup("/"), $3); }
+ | Iresult '%' Iresult { $$ = cat_str(3, $1, mm_strdup("%"), $3); }
+ | ecpg_sconst { $$ = $1; }
+ | ColId { $$ = $1; }
+ | ColId '(' var_type ')' { if (pg_strcasecmp($1, "sizeof") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "operator not allowed in variable definition");
+ else
+ $$ = cat_str(4, $1, mm_strdup("("), $3.type_str, mm_strdup(")"));
+ }
+ ;
+
+execute_rest: /* EMPTY */ { $$ = EMPTY; }
+ | ecpg_using opt_ecpg_into { $$ = EMPTY; }
+ | ecpg_into ecpg_using { $$ = EMPTY; }
+ | ecpg_into { $$ = EMPTY; }
+ ;
+
+ecpg_into: INTO into_list { $$ = EMPTY; }
+ | into_descriptor { $$ = $1; }
+ ;
+
+opt_ecpg_into: /* EMPTY */ { $$ = EMPTY; }
+ | ecpg_into { $$ = $1; }
+ ;
+
+ecpg_fetch_into: ecpg_into { $$ = $1; }
+ | using_descriptor
+ {
+ struct variable *var;
+
+ var = argsinsert->variable;
+ remove_variable_from_list(&argsinsert, var);
+ add_variable_to_head(&argsresult, var, &no_indicator);
+ $$ = $1;
+ }
+ ;
+
+opt_ecpg_fetch_into: /* EMPTY */ { $$ = EMPTY; }
+ | ecpg_fetch_into { $$ = $1; }
+ ;
+
+%%
+
+void base_yyerror(const char *error)
+{
+ /* translator: %s is typically the translation of "syntax error" */
+ mmerror(PARSE_ERROR, ET_ERROR, "%s at or near \"%s\"",
+ _(error), token_start ? token_start : base_yytext);
+}
+
+void parser_init(void)
+{
+ /* This function is empty. It only exists for compatibility with the backend parser right now. */
+}
diff --git a/src/interfaces/ecpg/preproc/ecpg.type b/src/interfaces/ecpg/preproc/ecpg.type
new file mode 100644
index 0000000..d1cde69
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/ecpg.type
@@ -0,0 +1,146 @@
+/* src/interfaces/ecpg/preproc/ecpg.type */
+%type <str> ECPGAllocateDescr
+%type <str> ECPGCKeywords
+%type <str> ECPGColId
+%type <str> ECPGColLabel
+%type <str> ECPGColLabelCommon
+%type <str> ECPGConnect
+%type <str> ECPGCursorStmt
+%type <str> ECPGDeallocateDescr
+%type <str> ECPGDeclaration
+%type <str> ECPGDeclare
+%type <str> ECPGDeclareStmt
+%type <str> ECPGDisconnect
+%type <str> ECPGExecuteImmediateStmt
+%type <str> ECPGFree
+%type <str> ECPGGetDescHeaderItem
+%type <str> ECPGGetDescItem
+%type <str> ECPGGetDescriptorHeader
+%type <str> ECPGKeywords
+%type <str> ECPGKeywords_rest
+%type <str> ECPGKeywords_vanames
+%type <str> ECPGOpen
+%type <str> ECPGSetAutocommit
+%type <str> ECPGSetConnection
+%type <str> ECPGSetDescHeaderItem
+%type <str> ECPGSetDescItem
+%type <str> ECPGSetDescriptorHeader
+%type <str> ECPGTypeName
+%type <str> ECPGTypedef
+%type <str> ECPGVar
+%type <str> ECPGVarDeclaration
+%type <str> ECPGWhenever
+%type <str> ECPGunreserved_interval
+%type <str> UsingConst
+%type <str> UsingValue
+%type <str> all_unreserved_keyword
+%type <str> c_anything
+%type <str> c_args
+%type <str> c_list
+%type <str> c_stuff
+%type <str> c_stuff_item
+%type <str> c_term
+%type <str> c_thing
+%type <str> char_variable
+%type <str> char_civar
+%type <str> civar
+%type <str> civarind
+%type <str> ColId
+%type <str> ColLabel
+%type <str> connect_options
+%type <str> connection_object
+%type <str> connection_target
+%type <str> coutputvariable
+%type <str> cvariable
+%type <str> db_prefix
+%type <str> CreateAsStmt
+%type <str> DeallocateStmt
+%type <str> dis_name
+%type <str> ecpg_bconst
+%type <str> ecpg_fconst
+%type <str> ecpg_ident
+%type <str> ecpg_interval
+%type <str> ecpg_into
+%type <str> ecpg_fetch_into
+%type <str> ecpg_param
+%type <str> ecpg_sconst
+%type <str> ecpg_using
+%type <str> ecpg_xconst
+%type <str> enum_definition
+%type <str> enum_type
+%type <str> execstring
+%type <str> execute_rest
+%type <str> indicator
+%type <str> into_descriptor
+%type <str> into_sqlda
+%type <str> Iresult
+%type <str> on_off
+%type <str> opt_bit_field
+%type <str> opt_connection_name
+%type <str> opt_database_name
+%type <str> opt_ecpg_into
+%type <str> opt_ecpg_fetch_into
+%type <str> opt_ecpg_using
+%type <str> opt_initializer
+%type <str> opt_options
+%type <str> opt_output
+%type <str> opt_pointer
+%type <str> opt_port
+%type <str> opt_reference
+%type <str> opt_scale
+%type <str> opt_server
+%type <str> opt_user
+%type <str> opt_opt_value
+%type <str> ora_user
+%type <str> precision
+%type <str> prepared_name
+%type <str> quoted_ident_stringvar
+%type <str> s_struct_union
+%type <str> server
+%type <str> server_name
+%type <str> single_vt_declaration
+%type <str> storage_clause
+%type <str> storage_declaration
+%type <str> storage_modifier
+%type <str> struct_union_type
+%type <str> struct_union_type_with_symbol
+%type <str> symbol
+%type <str> type_declaration
+%type <str> type_function_name
+%type <str> user_name
+%type <str> using_descriptor
+%type <str> var_declaration
+%type <str> var_type_declarations
+%type <str> variable
+%type <str> variable_declarations
+%type <str> variable_list
+%type <str> vt_declarations
+
+%type <str> Op
+%type <str> IntConstVar
+%type <str> AllConstVar
+%type <str> CSTRING
+%type <str> CPP_LINE
+%type <str> CVARIABLE
+%type <str> BCONST
+%type <str> SCONST
+%type <str> XCONST
+%type <str> IDENT
+
+%type <struct_union> s_struct_union_symbol
+
+%type <descriptor> ECPGGetDescriptor
+%type <descriptor> ECPGSetDescriptor
+
+%type <type_enum> simple_type
+%type <type_enum> signed_type
+%type <type_enum> unsigned_type
+
+%type <dtype_enum> descriptor_item
+%type <dtype_enum> desc_header_item
+
+%type <type> var_type
+
+%type <action> action
+
+%type <describe> ECPGDescribe
diff --git a/src/interfaces/ecpg/preproc/ecpg_keywords.c b/src/interfaces/ecpg/preproc/ecpg_keywords.c
new file mode 100644
index 0000000..a2db06f
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/ecpg_keywords.c
@@ -0,0 +1,54 @@
+/*-------------------------------------------------------------------------
+ *
+ * ecpg_keywords.c
+ * lexical token lookup for reserved words in postgres embedded SQL
+ *
+ * IDENTIFICATION
+ * src/interfaces/ecpg/preproc/ecpg_keywords.c
+ *
+ *-------------------------------------------------------------------------
+ */
+
+#include "postgres_fe.h"
+
+#include <ctype.h>
+
+/* ScanKeywordList lookup data for ECPG keywords */
+#include "ecpg_kwlist_d.h"
+#include "preproc_extern.h"
+#include "preproc.h"
+
+/* Token codes for ECPG keywords */
+#define PG_KEYWORD(kwname, value) value,
+
+static const uint16 ECPGScanKeywordTokens[] = {
+#include "ecpg_kwlist.h"
+};
+
+#undef PG_KEYWORD
+
+
+/*
+ * ScanECPGKeywordLookup - see if a given word is a keyword
+ *
+ * Returns the token value of the keyword, or -1 if no match.
+ *
+ * Keywords are matched using the same case-folding rules as in the backend.
+ */
+int
+ScanECPGKeywordLookup(const char *text)
+{
+ int kwnum;
+
+ /* First check SQL symbols defined by the backend. */
+ kwnum = ScanKeywordLookup(text, &ScanKeywords);
+ if (kwnum >= 0)
+ return SQLScanKeywordTokens[kwnum];
+
+ /* Try ECPG-specific keywords. */
+ kwnum = ScanKeywordLookup(text, &ScanECPGKeywords);
+ if (kwnum >= 0)
+ return ECPGScanKeywordTokens[kwnum];
+
+ return -1;
+}
diff --git a/src/interfaces/ecpg/preproc/ecpg_kwlist.h b/src/interfaces/ecpg/preproc/ecpg_kwlist.h
new file mode 100644
index 0000000..0332e98
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/ecpg_kwlist.h
@@ -0,0 +1,67 @@
+/*-------------------------------------------------------------------------
+ *
+ * ecpg_kwlist.h
+ *
+ * The keyword lists are kept in their own source files for use by
+ * automatic tools. The exact representation of a keyword is determined
+ * by the PG_KEYWORD macro, which is not defined in this file; it can
+ * be defined by the caller for special purposes.
+ *
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * src/interfaces/ecpg/preproc/ecpg_kwlist.h
+ *
+ *-------------------------------------------------------------------------
+ */
+
+/* There is deliberately not an #ifndef ECPG_KWLIST_H here. */
+
+/*
+ * List of (keyword-name, keyword-token-value) pairs.
+ *
+ * Note: gen_keywordlist.pl requires the entries to appear in ASCII order.
+ */
+
+/* name, value */
+PG_KEYWORD("allocate", SQL_ALLOCATE)
+PG_KEYWORD("autocommit", SQL_AUTOCOMMIT)
+PG_KEYWORD("bool", SQL_BOOL)
+PG_KEYWORD("break", SQL_BREAK)
+PG_KEYWORD("cardinality", SQL_CARDINALITY)
+PG_KEYWORD("connect", SQL_CONNECT)
+PG_KEYWORD("count", SQL_COUNT)
+PG_KEYWORD("datetime_interval_code", SQL_DATETIME_INTERVAL_CODE)
+PG_KEYWORD("datetime_interval_precision", SQL_DATETIME_INTERVAL_PRECISION)
+PG_KEYWORD("describe", SQL_DESCRIBE)
+PG_KEYWORD("descriptor", SQL_DESCRIPTOR)
+PG_KEYWORD("disconnect", SQL_DISCONNECT)
+PG_KEYWORD("found", SQL_FOUND)
+PG_KEYWORD("free", SQL_FREE)
+PG_KEYWORD("get", SQL_GET)
+PG_KEYWORD("go", SQL_GO)
+PG_KEYWORD("goto", SQL_GOTO)
+PG_KEYWORD("identified", SQL_IDENTIFIED)
+PG_KEYWORD("indicator", SQL_INDICATOR)
+PG_KEYWORD("key_member", SQL_KEY_MEMBER)
+PG_KEYWORD("length", SQL_LENGTH)
+PG_KEYWORD("long", SQL_LONG)
+PG_KEYWORD("nullable", SQL_NULLABLE)
+PG_KEYWORD("octet_length", SQL_OCTET_LENGTH)
+PG_KEYWORD("open", SQL_OPEN)
+PG_KEYWORD("output", SQL_OUTPUT)
+PG_KEYWORD("reference", SQL_REFERENCE)
+PG_KEYWORD("returned_length", SQL_RETURNED_LENGTH)
+PG_KEYWORD("returned_octet_length", SQL_RETURNED_OCTET_LENGTH)
+PG_KEYWORD("scale", SQL_SCALE)
+PG_KEYWORD("section", SQL_SECTION)
+PG_KEYWORD("short", SQL_SHORT)
+PG_KEYWORD("signed", SQL_SIGNED)
+PG_KEYWORD("sqlerror", SQL_SQLERROR)
+PG_KEYWORD("sqlprint", SQL_SQLPRINT)
+PG_KEYWORD("sqlwarning", SQL_SQLWARNING)
+PG_KEYWORD("stop", SQL_STOP)
+PG_KEYWORD("struct", SQL_STRUCT)
+PG_KEYWORD("unsigned", SQL_UNSIGNED)
+PG_KEYWORD("var", SQL_VAR)
+PG_KEYWORD("whenever", SQL_WHENEVER)
diff --git a/src/interfaces/ecpg/preproc/ecpg_kwlist_d.h b/src/interfaces/ecpg/preproc/ecpg_kwlist_d.h
new file mode 100644
index 0000000..a88febd
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/ecpg_kwlist_d.h
@@ -0,0 +1,152 @@
+/*-------------------------------------------------------------------------
+ *
+ * ecpg_kwlist_d.h
+ * List of keywords represented as a ScanKeywordList.
+ *
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * NOTES
+ * ******************************
+ * *** DO NOT EDIT THIS FILE! ***
+ * ******************************
+ *
+ * It has been GENERATED by src/tools/gen_keywordlist.pl
+ *
+ *-------------------------------------------------------------------------
+ */
+
+#ifndef ECPG_KWLIST_D_H
+#define ECPG_KWLIST_D_H
+
+#include "common/kwlookup.h"
+
+static const char ScanECPGKeywords_kw_string[] =
+ "allocate\0"
+ "autocommit\0"
+ "bool\0"
+ "break\0"
+ "cardinality\0"
+ "connect\0"
+ "count\0"
+ "datetime_interval_code\0"
+ "datetime_interval_precision\0"
+ "describe\0"
+ "descriptor\0"
+ "disconnect\0"
+ "found\0"
+ "free\0"
+ "get\0"
+ "go\0"
+ "goto\0"
+ "identified\0"
+ "indicator\0"
+ "key_member\0"
+ "length\0"
+ "long\0"
+ "nullable\0"
+ "octet_length\0"
+ "open\0"
+ "output\0"
+ "reference\0"
+ "returned_length\0"
+ "returned_octet_length\0"
+ "scale\0"
+ "section\0"
+ "short\0"
+ "signed\0"
+ "sqlerror\0"
+ "sqlprint\0"
+ "sqlwarning\0"
+ "stop\0"
+ "struct\0"
+ "unsigned\0"
+ "var\0"
+ "whenever";
+
+static const uint16 ScanECPGKeywords_kw_offsets[] = {
+ 0,
+ 9,
+ 20,
+ 25,
+ 31,
+ 43,
+ 51,
+ 57,
+ 80,
+ 108,
+ 117,
+ 128,
+ 139,
+ 145,
+ 150,
+ 154,
+ 157,
+ 162,
+ 173,
+ 183,
+ 194,
+ 201,
+ 206,
+ 215,
+ 228,
+ 233,
+ 240,
+ 250,
+ 266,
+ 288,
+ 294,
+ 302,
+ 308,
+ 315,
+ 324,
+ 333,
+ 344,
+ 349,
+ 356,
+ 365,
+ 369,
+};
+
+#define SCANECPGKEYWORDS_NUM_KEYWORDS 41
+
+static int
+ScanECPGKeywords_hash_func(const void *key, size_t keylen)
+{
+ static const int8 h[83] = {
+ 0, 24, 127, 127, 3, 13, -21, 127,
+ 0, 20, 2, 18, 24, 32, 127, 0,
+ 127, 127, 22, 127, 127, 127, -23, 127,
+ 127, 0, 127, 127, 127, -8, 22, 1,
+ 0, 7, 0, 6, 16, 34, 127, 127,
+ 16, 0, 44, 127, 127, 127, -12, 127,
+ 21, 18, 0, 127, -9, 28, 7, 4,
+ 127, 26, 127, 14, 127, -8, 127, 29,
+ 127, 0, 0, 38, 127, 9, 25, 0,
+ 0, 127, 15, 20, 127, 7, -1, 5,
+ 19, 127, 11
+ };
+
+ const unsigned char *k = (const unsigned char *) key;
+ uint32 a = 0;
+ uint32 b = 0;
+
+ while (keylen--)
+ {
+ unsigned char c = *k++ | 0x20;
+
+ a = a * 257 + c;
+ b = b * 31 + c;
+ }
+ return h[a % 83] + h[b % 83];
+}
+
+static const ScanKeywordList ScanECPGKeywords = {
+ ScanECPGKeywords_kw_string,
+ ScanECPGKeywords_kw_offsets,
+ ScanECPGKeywords_hash_func,
+ SCANECPGKEYWORDS_NUM_KEYWORDS,
+ 27
+};
+
+#endif /* ECPG_KWLIST_D_H */
diff --git a/src/interfaces/ecpg/preproc/keywords.c b/src/interfaces/ecpg/preproc/keywords.c
new file mode 100644
index 0000000..16e6574
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/keywords.c
@@ -0,0 +1,38 @@
+/*-------------------------------------------------------------------------
+ *
+ * keywords.c
+ * lexical token lookup for key words in PostgreSQL
+ *
+ *
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ *
+ * IDENTIFICATION
+ * src/interfaces/ecpg/preproc/keywords.c
+ *
+ *-------------------------------------------------------------------------
+ */
+#include "postgres_fe.h"
+
+/*
+ * This is much trickier than it looks. We are #include'ing kwlist.h
+ * but the token numbers that go into the table are from preproc.h
+ * not the backend's gram.h. Therefore this token table will match
+ * the ScanKeywords table supplied from common/keywords.c, including all
+ * keywords known to the backend, but it will supply the token numbers used
+ * by ecpg's grammar, which is what we need. The ecpg grammar must
+ * define all the same token names the backend does, else we'll get
+ * undefined-symbol failures in this compile.
+ */
+
+#include "preproc_extern.h"
+#include "preproc.h"
+
+#define PG_KEYWORD(kwname, value, category, collabel) value,
+
+const uint16 SQLScanKeywordTokens[] = {
+#include "parser/kwlist.h"
+};
+
+#undef PG_KEYWORD
diff --git a/src/interfaces/ecpg/preproc/nls.mk b/src/interfaces/ecpg/preproc/nls.mk
new file mode 100644
index 0000000..7265d97
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/nls.mk
@@ -0,0 +1,6 @@
+# src/interfaces/ecpg/preproc/nls.mk
+CATALOG_NAME = ecpg
+AVAIL_LANGUAGES = cs de el es fr it ja ka ko pl pt_BR ru sv tr uk vi zh_CN zh_TW
+GETTEXT_FILES = descriptor.c ecpg.c pgc.c preproc.c type.c variable.c
+GETTEXT_TRIGGERS = mmerror:3 mmfatal:2
+GETTEXT_FLAGS = mmerror:3:c-format mmfatal:2:c-format
diff --git a/src/interfaces/ecpg/preproc/output.c b/src/interfaces/ecpg/preproc/output.c
new file mode 100644
index 0000000..cf8aadd
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/output.c
@@ -0,0 +1,251 @@
+/* src/interfaces/ecpg/preproc/output.c */
+
+#include "postgres_fe.h"
+
+#include "preproc_extern.h"
+
+static void output_escaped_str(char *cmd, bool quoted);
+
+void
+output_line_number(void)
+{
+ char *line = hashline_number();
+
+ fprintf(base_yyout, "%s", line);
+ free(line);
+}
+
+void
+output_simple_statement(char *stmt, int whenever_mode)
+{
+ output_escaped_str(stmt, false);
+ if (whenever_mode)
+ whenever_action(whenever_mode);
+ output_line_number();
+ free(stmt);
+}
+
+
+/*
+ * store the whenever action here
+ */
+struct when when_error,
+ when_nf,
+ when_warn;
+
+static void
+print_action(struct when *w)
+{
+ switch (w->code)
+ {
+ case W_SQLPRINT:
+ fprintf(base_yyout, "sqlprint();");
+ break;
+ case W_GOTO:
+ fprintf(base_yyout, "goto %s;", w->command);
+ break;
+ case W_DO:
+ fprintf(base_yyout, "%s;", w->command);
+ break;
+ case W_STOP:
+ fprintf(base_yyout, "exit (1);");
+ break;
+ case W_BREAK:
+ fprintf(base_yyout, "break;");
+ break;
+ case W_CONTINUE:
+ fprintf(base_yyout, "continue;");
+ break;
+ default:
+ fprintf(base_yyout, "{/* %d not implemented yet */}", w->code);
+ break;
+ }
+}
+
+void
+whenever_action(int mode)
+{
+ if ((mode & 1) == 1 && when_nf.code != W_NOTHING)
+ {
+ output_line_number();
+ fprintf(base_yyout, "\nif (sqlca.sqlcode == ECPG_NOT_FOUND) ");
+ print_action(&when_nf);
+ }
+ if (when_warn.code != W_NOTHING)
+ {
+ output_line_number();
+ fprintf(base_yyout, "\nif (sqlca.sqlwarn[0] == 'W') ");
+ print_action(&when_warn);
+ }
+ if (when_error.code != W_NOTHING)
+ {
+ output_line_number();
+ fprintf(base_yyout, "\nif (sqlca.sqlcode < 0) ");
+ print_action(&when_error);
+ }
+
+ if ((mode & 2) == 2)
+ fputc('}', base_yyout);
+
+ output_line_number();
+}
+
+char *
+hashline_number(void)
+{
+ /* do not print line numbers if we are in debug mode */
+ if (input_filename
+#ifdef YYDEBUG
+ && !base_yydebug
+#endif
+ )
+ {
+ /* "* 2" here is for escaping '\' and '"' below */
+ char *line = mm_alloc(strlen("\n#line %d \"%s\"\n") + sizeof(int) * CHAR_BIT * 10 / 3 + strlen(input_filename) * 2);
+ char *src,
+ *dest;
+
+ sprintf(line, "\n#line %d \"", base_yylineno);
+ src = input_filename;
+ dest = line + strlen(line);
+ while (*src)
+ {
+ if (*src == '\\' || *src == '"')
+ *dest++ = '\\';
+ *dest++ = *src++;
+ }
+ *dest = '\0';
+ strcat(dest, "\"\n");
+
+ return line;
+ }
+
+ return EMPTY;
+}
+
+static char *ecpg_statement_type_name[] = {
+ "ECPGst_normal",
+ "ECPGst_execute",
+ "ECPGst_exec_immediate",
+ "ECPGst_prepnormal",
+ "ECPGst_prepare",
+ "ECPGst_exec_with_exprlist"
+};
+
+void
+output_statement(char *stmt, int whenever_mode, enum ECPG_statement_type st)
+{
+ fprintf(base_yyout, "{ ECPGdo(__LINE__, %d, %d, %s, %d, ", compat, force_indicator, connection ? connection : "NULL", questionmarks);
+
+ if (st == ECPGst_prepnormal && !auto_prepare)
+ st = ECPGst_normal;
+
+ /*
+ * In following cases, stmt is CSTRING or char_variable. They must be
+ * output directly. - prepared_name of EXECUTE without exprlist -
+ * execstring of EXECUTE IMMEDIATE
+ */
+ fprintf(base_yyout, "%s, ", ecpg_statement_type_name[st]);
+ if (st == ECPGst_execute || st == ECPGst_exec_immediate)
+ fprintf(base_yyout, "%s, ", stmt);
+ else
+ {
+ fputs("\"", base_yyout);
+ output_escaped_str(stmt, false);
+ fputs("\", ", base_yyout);
+ }
+
+ /* dump variables to C file */
+ dump_variables(argsinsert, 1);
+ fputs("ECPGt_EOIT, ", base_yyout);
+ dump_variables(argsresult, 1);
+ fputs("ECPGt_EORT);", base_yyout);
+ reset_variables();
+
+ whenever_action(whenever_mode | 2);
+ free(stmt);
+}
+
+void
+output_prepare_statement(char *name, char *stmt)
+{
+ fprintf(base_yyout, "{ ECPGprepare(__LINE__, %s, %d, ", connection ? connection : "NULL", questionmarks);
+ output_escaped_str(name, true);
+ fputs(", ", base_yyout);
+ output_escaped_str(stmt, true);
+ fputs(");", base_yyout);
+ whenever_action(2);
+ free(name);
+}
+
+void
+output_deallocate_prepare_statement(char *name)
+{
+ const char *con = connection ? connection : "NULL";
+
+ if (strcmp(name, "all") != 0)
+ {
+ fprintf(base_yyout, "{ ECPGdeallocate(__LINE__, %d, %s, ", compat, con);
+ output_escaped_str(name, true);
+ fputs(");", base_yyout);
+ }
+ else
+ fprintf(base_yyout, "{ ECPGdeallocate_all(__LINE__, %d, %s);", compat, con);
+
+ whenever_action(2);
+ free(name);
+}
+
+static void
+output_escaped_str(char *str, bool quoted)
+{
+ int i = 0;
+ int len = strlen(str);
+
+ if (quoted && str[0] == '"' && str[len - 1] == '"') /* do not escape quotes
+ * at beginning and end
+ * if quoted string */
+ {
+ i = 1;
+ len--;
+ fputs("\"", base_yyout);
+ }
+
+ /* output this char by char as we have to filter " and \n */
+ for (; i < len; i++)
+ {
+ if (str[i] == '"')
+ fputs("\\\"", base_yyout);
+ else if (str[i] == '\n')
+ fputs("\\\n", base_yyout);
+ else if (str[i] == '\\')
+ {
+ int j = i;
+
+ /*
+ * check whether this is a continuation line if it is, do not
+ * output anything because newlines are escaped anyway
+ */
+
+ /* accept blanks after the '\' as some other compilers do too */
+ do
+ {
+ j++;
+ } while (str[j] == ' ' || str[j] == '\t');
+
+ if ((str[j] != '\n') && (str[j] != '\r' || str[j + 1] != '\n')) /* not followed by a
+ * newline */
+ fputs("\\\\", base_yyout);
+ }
+ else if (str[i] == '\r' && str[i + 1] == '\n')
+ {
+ fputs("\\\r\n", base_yyout);
+ i++;
+ }
+ else
+ fputc(str[i], base_yyout);
+ }
+
+ if (quoted && str[0] == '"' && str[len] == '"')
+ fputs("\"", base_yyout);
+}
diff --git a/src/interfaces/ecpg/preproc/parse.pl b/src/interfaces/ecpg/preproc/parse.pl
new file mode 100644
index 0000000..dee6b82
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/parse.pl
@@ -0,0 +1,698 @@
+#!/usr/bin/perl
+# src/interfaces/ecpg/preproc/parse.pl
+# parser generator for ecpg version 2
+# call with backend parser as stdin
+#
+# Copyright (c) 2007-2022, PostgreSQL Global Development Group
+#
+# Written by Mike Aubury <mike.aubury@aubit.com>
+# Michael Meskes <meskes@postgresql.org>
+# Andy Colson <andy@squeakycode.net>
+#
+# Placed under the same license as PostgreSQL.
+#
+
+use strict;
+use warnings;
+no warnings 'uninitialized';
+
+my $path = shift @ARGV;
+$path = "." unless $path;
+
+my $copymode = 0;
+my $brace_indent = 0;
+my $yaccmode = 0;
+my $in_rule = 0;
+my $header_included = 0;
+my $feature_not_supported = 0;
+my $tokenmode = 0;
+
+my (%buff, $infield, $comment, %tokens, %addons);
+my ($stmt_mode, @fields);
+my ($line, $non_term_id);
+
+
+# some token have to be replaced by other symbols
+# either in the rule
+my %replace_token = (
+ 'BCONST' => 'ecpg_bconst',
+ 'FCONST' => 'ecpg_fconst',
+ 'Sconst' => 'ecpg_sconst',
+ 'XCONST' => 'ecpg_xconst',
+ 'IDENT' => 'ecpg_ident',
+ 'PARAM' => 'ecpg_param',);
+
+# or in the block
+my %replace_string = (
+ 'NOT_LA' => 'not',
+ 'NULLS_LA' => 'nulls',
+ 'WITH_LA' => 'with',
+ 'TYPECAST' => '::',
+ 'DOT_DOT' => '..',
+ 'COLON_EQUALS' => ':=',
+ 'EQUALS_GREATER' => '=>',
+ 'LESS_EQUALS' => '<=',
+ 'GREATER_EQUALS' => '>=',
+ 'NOT_EQUALS' => '<>',);
+
+# specific replace_types for specific non-terminals - never include the ':'
+# ECPG-only replace_types are defined in ecpg-replace_types
+my %replace_types = (
+ 'PrepareStmt' => '<prep>',
+ 'ExecuteStmt' => '<exec>',
+ 'opt_array_bounds' => '<index>',
+
+ # "ignore" means: do not create type and rules for this non-term-id
+ 'parse_toplevel' => 'ignore',
+ 'stmtmulti' => 'ignore',
+ 'CreateAsStmt' => 'ignore',
+ 'DeallocateStmt' => 'ignore',
+ 'ColId' => 'ignore',
+ 'type_function_name' => 'ignore',
+ 'ColLabel' => 'ignore',
+ 'Sconst' => 'ignore',
+ 'opt_distinct_clause' => 'ignore',
+ 'PLpgSQL_Expr' => 'ignore',
+ 'PLAssignStmt' => 'ignore',
+ 'plassign_target' => 'ignore',
+ 'plassign_equals' => 'ignore',);
+
+# these replace_line commands excise certain keywords from the core keyword
+# lists. Be sure to account for these in ColLabel and related productions.
+my %replace_line = (
+ 'unreserved_keywordCONNECTION' => 'ignore',
+ 'unreserved_keywordCURRENT_P' => 'ignore',
+ 'unreserved_keywordDAY_P' => 'ignore',
+ 'unreserved_keywordHOUR_P' => 'ignore',
+ 'unreserved_keywordINPUT_P' => 'ignore',
+ 'unreserved_keywordMINUTE_P' => 'ignore',
+ 'unreserved_keywordMONTH_P' => 'ignore',
+ 'unreserved_keywordSECOND_P' => 'ignore',
+ 'unreserved_keywordYEAR_P' => 'ignore',
+ 'col_name_keywordCHAR_P' => 'ignore',
+ 'col_name_keywordINT_P' => 'ignore',
+ 'col_name_keywordVALUES' => 'ignore',
+ 'reserved_keywordTO' => 'ignore',
+ 'reserved_keywordUNION' => 'ignore',
+
+ # some other production rules have to be ignored or replaced
+ 'fetch_argsFORWARDopt_from_incursor_name' => 'ignore',
+ 'fetch_argsBACKWARDopt_from_incursor_name' => 'ignore',
+ "opt_array_boundsopt_array_bounds'['Iconst']'" => 'ignore',
+ 'VariableShowStmtSHOWvar_name' => 'SHOW var_name ecpg_into',
+ 'VariableShowStmtSHOWTIMEZONE' => 'SHOW TIME ZONE ecpg_into',
+ 'VariableShowStmtSHOWTRANSACTIONISOLATIONLEVEL' =>
+ 'SHOW TRANSACTION ISOLATION LEVEL ecpg_into',
+ 'VariableShowStmtSHOWSESSIONAUTHORIZATION' =>
+ 'SHOW SESSION AUTHORIZATION ecpg_into',
+ 'returning_clauseRETURNINGtarget_list' =>
+ 'RETURNING target_list opt_ecpg_into',
+ 'ExecuteStmtEXECUTEnameexecute_param_clause' =>
+ 'EXECUTE prepared_name execute_param_clause execute_rest',
+ 'ExecuteStmtCREATEOptTempTABLEcreate_as_targetASEXECUTEnameexecute_param_clauseopt_with_data'
+ => 'CREATE OptTemp TABLE create_as_target AS EXECUTE prepared_name execute_param_clause opt_with_data execute_rest',
+ 'ExecuteStmtCREATEOptTempTABLEIF_PNOTEXISTScreate_as_targetASEXECUTEnameexecute_param_clauseopt_with_data'
+ => 'CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS EXECUTE prepared_name execute_param_clause opt_with_data execute_rest',
+ 'PrepareStmtPREPAREnameprep_type_clauseASPreparableStmt' =>
+ 'PREPARE prepared_name prep_type_clause AS PreparableStmt',
+ 'var_nameColId' => 'ECPGColId');
+
+preload_addons();
+
+main();
+
+dump_buffer('header');
+dump_buffer('tokens');
+dump_buffer('types');
+dump_buffer('ecpgtype');
+dump_buffer('orig_tokens');
+print '%%', "\n";
+print 'prog: statements;', "\n";
+dump_buffer('rules');
+include_file('trailer', 'ecpg.trailer');
+dump_buffer('trailer');
+
+sub main
+{
+ line: while (<>)
+ {
+ if (/ERRCODE_FEATURE_NOT_SUPPORTED/)
+ {
+ $feature_not_supported = 1;
+ next line;
+ }
+
+ chomp;
+
+ # comment out the line below to make the result file match (blank line wise)
+ # the prior version.
+ #next if ($_ eq '');
+
+ # Dump the action for a rule -
+ # stmt_mode indicates if we are processing the 'stmt:'
+ # rule (mode==0 means normal, mode==1 means stmt:)
+ # flds are the fields to use. These may start with a '$' - in
+ # which case they are the result of a previous non-terminal
+ #
+ # if they don't start with a '$' then they are token name
+ #
+ # len is the number of fields in flds...
+ # leadin is the padding to apply at the beginning (just use for formatting)
+
+ if (/^%%/)
+ {
+ $tokenmode = 2;
+ $copymode = 1;
+ $yaccmode++;
+ $infield = 0;
+ }
+
+ my $prec = 0;
+
+ # Make sure any braces are split
+ s/{/ { /g;
+ s/}/ } /g;
+
+ # Any comments are split
+ s|\/\*| /* |g;
+ s|\*\/| */ |g;
+
+ # Now split the line into individual fields
+ my @arr = split(' ');
+
+ if ($arr[0] eq '%token' && $tokenmode == 0)
+ {
+ $tokenmode = 1;
+ include_file('tokens', 'ecpg.tokens');
+ }
+ elsif ($arr[0] eq '%type' && $header_included == 0)
+ {
+ include_file('header', 'ecpg.header');
+ include_file('ecpgtype', 'ecpg.type');
+ $header_included = 1;
+ }
+
+ if ($tokenmode == 1)
+ {
+ my $str = '';
+ my $prior = '';
+ for my $a (@arr)
+ {
+ if ($a eq '/*')
+ {
+ $comment++;
+ next;
+ }
+ if ($a eq '*/')
+ {
+ $comment--;
+ next;
+ }
+ if ($comment)
+ {
+ next;
+ }
+ if (substr($a, 0, 1) eq '<')
+ {
+ next;
+
+ # its a type
+ }
+ $tokens{$a} = 1;
+
+ $str = $str . ' ' . $a;
+ if ($a eq 'IDENT' && $prior eq '%nonassoc')
+ {
+
+ # add more tokens to the list
+ $str = $str . "\n%nonassoc CSTRING";
+ }
+ $prior = $a;
+ }
+ add_to_buffer('orig_tokens', $str);
+ next line;
+ }
+
+ # Don't worry about anything if we're not in the right section of gram.y
+ if ($yaccmode != 1)
+ {
+ next line;
+ }
+
+
+ # Go through each field in turn
+ for (
+ my $fieldIndexer = 0;
+ $fieldIndexer < scalar(@arr);
+ $fieldIndexer++)
+ {
+ if ($arr[$fieldIndexer] eq '*/' && $comment)
+ {
+ $comment = 0;
+ next;
+ }
+ elsif ($comment)
+ {
+ next;
+ }
+ elsif ($arr[$fieldIndexer] eq '/*')
+ {
+
+ # start of a multiline comment
+ $comment = 1;
+ next;
+ }
+ elsif ($arr[$fieldIndexer] eq '//')
+ {
+ next line;
+ }
+ elsif ($arr[$fieldIndexer] eq '}')
+ {
+ $brace_indent--;
+ next;
+ }
+ elsif ($arr[$fieldIndexer] eq '{')
+ {
+ $brace_indent++;
+ next;
+ }
+
+ if ($brace_indent > 0)
+ {
+ next;
+ }
+ if ($arr[$fieldIndexer] eq ';')
+ {
+ if ($copymode)
+ {
+ if ($infield)
+ {
+ dump_line($stmt_mode, \@fields);
+ }
+ add_to_buffer('rules', ";\n\n");
+ }
+ else
+ {
+ $copymode = 1;
+ }
+ @fields = ();
+ $infield = 0;
+ $line = '';
+ $in_rule = 0;
+ next;
+ }
+
+ if ($arr[$fieldIndexer] eq '|')
+ {
+ if ($copymode)
+ {
+ if ($infield)
+ {
+ $infield = $infield + dump_line($stmt_mode, \@fields);
+ }
+ if ($infield > 1)
+ {
+ $line = '| ';
+ }
+ }
+ @fields = ();
+ next;
+ }
+
+ if (exists $replace_token{ $arr[$fieldIndexer] })
+ {
+ $arr[$fieldIndexer] = $replace_token{ $arr[$fieldIndexer] };
+ }
+
+ # Are we looking at a declaration of a non-terminal ?
+ if (($arr[$fieldIndexer] =~ /[A-Za-z0-9]+:/)
+ || $arr[ $fieldIndexer + 1 ] eq ':')
+ {
+ $non_term_id = $arr[$fieldIndexer];
+ $non_term_id =~ tr/://d;
+
+ if (not defined $replace_types{$non_term_id})
+ {
+ $replace_types{$non_term_id} = '<str>';
+ $copymode = 1;
+ }
+ elsif ($replace_types{$non_term_id} eq 'ignore')
+ {
+ $copymode = 0;
+ $line = '';
+ next line;
+ }
+ $line = $line . ' ' . $arr[$fieldIndexer];
+
+ # Do we have the : attached already ?
+ # If yes, we'll have already printed the ':'
+ if (!($arr[$fieldIndexer] =~ '[A-Za-z0-9]+:'))
+ {
+
+ # Consume the ':' which is next...
+ $line = $line . ':';
+ $fieldIndexer++;
+ }
+
+ # Special mode?
+ if ($non_term_id eq 'stmt')
+ {
+ $stmt_mode = 1;
+ }
+ else
+ {
+ $stmt_mode = 0;
+ }
+ my $tstr =
+ '%type '
+ . $replace_types{$non_term_id} . ' '
+ . $non_term_id;
+ add_to_buffer('types', $tstr);
+
+ if ($copymode)
+ {
+ add_to_buffer('rules', $line);
+ }
+ $line = '';
+ @fields = ();
+ $infield = 1;
+ die "unterminated rule at grammar line $.\n"
+ if $in_rule;
+ $in_rule = 1;
+ next;
+ }
+ elsif ($copymode)
+ {
+ $line = $line . ' ' . $arr[$fieldIndexer];
+ }
+ if ($arr[$fieldIndexer] eq '%prec')
+ {
+ $prec = 1;
+ next;
+ }
+
+ if ( $copymode
+ && !$prec
+ && !$comment
+ && length($arr[$fieldIndexer])
+ && $infield)
+ {
+ if ($arr[$fieldIndexer] ne 'Op'
+ && ( $tokens{ $arr[$fieldIndexer] } > 0
+ || $arr[$fieldIndexer] =~ /'.+'/)
+ || $stmt_mode == 1)
+ {
+ my $S;
+ if (exists $replace_string{ $arr[$fieldIndexer] })
+ {
+ $S = $replace_string{ $arr[$fieldIndexer] };
+ }
+ else
+ {
+ $S = $arr[$fieldIndexer];
+ }
+ $S =~ s/_P//g;
+ $S =~ tr/'//d;
+ if ($stmt_mode == 1)
+ {
+ push(@fields, $S);
+ }
+ else
+ {
+ push(@fields, lc($S));
+ }
+ }
+ else
+ {
+ push(@fields, '$' . (scalar(@fields) + 1));
+ }
+ }
+ }
+ }
+ die "unterminated rule at end of grammar\n"
+ if $in_rule;
+ return;
+}
+
+
+# append a file onto a buffer.
+# Arguments: buffer_name, filename (without path)
+sub include_file
+{
+ my ($buffer, $filename) = @_;
+ my $full = "$path/$filename";
+ open(my $fh, '<', $full) or die;
+ while (<$fh>)
+ {
+ chomp;
+ add_to_buffer($buffer, $_);
+ }
+ close($fh);
+ return;
+}
+
+sub include_addon
+{
+ my ($buffer, $block, $fields, $stmt_mode) = @_;
+ my $rec = $addons{$block};
+ return 0 unless $rec;
+
+ if ($rec->{type} eq 'rule')
+ {
+ dump_fields($stmt_mode, $fields, ' { ');
+ }
+ elsif ($rec->{type} eq 'addon')
+ {
+ add_to_buffer('rules', ' { ');
+ }
+
+ #add_to_buffer( $stream, $_ );
+ #We have an array to add to the buffer, we'll add it ourself instead of
+ #calling add_to_buffer, which does not know about arrays
+
+ push(@{ $buff{$buffer} }, @{ $rec->{lines} });
+
+ if ($rec->{type} eq 'addon')
+ {
+ dump_fields($stmt_mode, $fields, '');
+ }
+
+
+ # if we added something (ie there are lines in our array), return 1
+ return 1 if (scalar(@{ $rec->{lines} }) > 0);
+ return 0;
+}
+
+
+# include_addon does this same thing, but does not call this
+# sub... so if you change this, you need to fix include_addon too
+# Pass: buffer_name, string_to_append
+sub add_to_buffer
+{
+ push(@{ $buff{ $_[0] } }, "$_[1]\n");
+ return;
+}
+
+sub dump_buffer
+{
+ my ($buffer) = @_;
+ print '/* ', $buffer, ' */', "\n";
+ my $ref = $buff{$buffer};
+ print @$ref;
+ return;
+}
+
+sub dump_fields
+{
+ my ($mode, $flds, $ln) = @_;
+ my $len = scalar(@$flds);
+
+ if ($mode == 0)
+ {
+
+ #Normal
+ add_to_buffer('rules', $ln);
+ if ($feature_not_supported == 1)
+ {
+
+ # we found an unsupported feature, but we have to
+ # filter out ExecuteStmt: CREATE OptTemp TABLE ...
+ # because the warning there is only valid in some situations
+ if ($flds->[0] ne 'create' || $flds->[2] ne 'table')
+ {
+ add_to_buffer('rules',
+ 'mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");'
+ );
+ }
+ $feature_not_supported = 0;
+ }
+
+ if ($len == 0)
+ {
+
+ # We have no fields ?
+ add_to_buffer('rules', ' $$=EMPTY; }');
+ }
+ else
+ {
+
+ # Go through each field and try to 'aggregate' the tokens
+ # into a single 'mm_strdup' where possible
+ my @flds_new;
+ my $str;
+ for (my $z = 0; $z < $len; $z++)
+ {
+ if (substr($flds->[$z], 0, 1) eq '$')
+ {
+ push(@flds_new, $flds->[$z]);
+ next;
+ }
+
+ $str = $flds->[$z];
+
+ while (1)
+ {
+ if ($z >= $len - 1
+ || substr($flds->[ $z + 1 ], 0, 1) eq '$')
+ {
+
+ # We're at the end...
+ push(@flds_new, "mm_strdup(\"$str\")");
+ last;
+ }
+ $z++;
+ $str = $str . ' ' . $flds->[$z];
+ }
+ }
+
+ # So - how many fields did we end up with ?
+ $len = scalar(@flds_new);
+ if ($len == 1)
+ {
+
+ # Straight assignment
+ $str = ' $$ = ' . $flds_new[0] . ';';
+ add_to_buffer('rules', $str);
+ }
+ else
+ {
+
+ # Need to concatenate the results to form
+ # our final string
+ $str =
+ ' $$ = cat_str(' . $len . ',' . join(',', @flds_new) . ');';
+ add_to_buffer('rules', $str);
+ }
+ add_to_buffer('rules', '}');
+ }
+ }
+ else
+ {
+
+ # we're in the stmt: rule
+ if ($len)
+ {
+
+ # or just the statement ...
+ add_to_buffer('rules',
+ ' { output_statement($1, 0, ECPGst_normal); }');
+ }
+ else
+ {
+ add_to_buffer('rules', ' { $$ = NULL; }');
+ }
+ }
+ return;
+}
+
+
+sub dump_line
+{
+ my ($stmt_mode, $fields) = @_;
+ my $block = $non_term_id . $line;
+ $block =~ tr/ |//d;
+ my $rep = $replace_line{$block};
+ if ($rep)
+ {
+ if ($rep eq 'ignore')
+ {
+ return 0;
+ }
+
+ if (index($line, '|') != -1)
+ {
+ $line = '| ' . $rep;
+ }
+ else
+ {
+ $line = $rep;
+ }
+ $block = $non_term_id . $line;
+ $block =~ tr/ |//d;
+ }
+ add_to_buffer('rules', $line);
+ my $i = include_addon('rules', $block, $fields, $stmt_mode);
+ if ($i == 0)
+ {
+ dump_fields($stmt_mode, $fields, ' { ');
+ }
+ return 1;
+}
+
+=top
+ load addons into cache
+ %addons = {
+ stmtClosePortalStmt => { 'type' => 'block', 'lines' => [ "{", "if (INFORMIX_MODE)" ..., "}" ] },
+ stmtViewStmt => { 'type' => 'rule', 'lines' => [ "| ECPGAllocateDescr", ... ] }
+ }
+
+=cut
+
+sub preload_addons
+{
+ my $filename = $path . "/ecpg.addons";
+ open(my $fh, '<', $filename) or die;
+
+ # there may be multiple lines starting ECPG: and then multiple lines of code.
+ # the code need to be add to all prior ECPG records.
+ my (@needsRules, @code, $record);
+
+ # there may be comments before the first ECPG line, skip them
+ my $skip = 1;
+ while (<$fh>)
+ {
+ if (/^ECPG:\s(\S+)\s?(\w+)?/)
+ {
+ $skip = 0;
+ if (@code)
+ {
+ for my $x (@needsRules)
+ {
+ push(@{ $x->{lines} }, @code);
+ }
+ @code = ();
+ @needsRules = ();
+ }
+ $record = {};
+ $record->{type} = $2;
+ $record->{lines} = [];
+ if (exists $addons{$1}) { die "Ga! there are dups!\n"; }
+ $addons{$1} = $record;
+ push(@needsRules, $record);
+ }
+ else
+ {
+ next if $skip;
+ push(@code, $_);
+ }
+ }
+ close($fh);
+ if (@code)
+ {
+ for my $x (@needsRules)
+ {
+ push(@{ $x->{lines} }, @code);
+ }
+ }
+ return;
+}
diff --git a/src/interfaces/ecpg/preproc/parser.c b/src/interfaces/ecpg/preproc/parser.c
new file mode 100644
index 0000000..a44e07a
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/parser.c
@@ -0,0 +1,231 @@
+/*-------------------------------------------------------------------------
+ *
+ * parser.c
+ * Main entry point/driver for PostgreSQL grammar
+ *
+ * This should match src/backend/parser/parser.c, except that we do not
+ * need to bother with re-entrant interfaces.
+ *
+ * Note: ECPG doesn't report error location like the backend does.
+ * This file will need work if we ever want it to.
+ *
+ *
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * IDENTIFICATION
+ * src/interfaces/ecpg/preproc/parser.c
+ *
+ *-------------------------------------------------------------------------
+ */
+
+#include "postgres_fe.h"
+
+#include "preproc_extern.h"
+#include "preproc.h"
+
+
+static bool have_lookahead; /* is lookahead info valid? */
+static int lookahead_token; /* one-token lookahead */
+static YYSTYPE lookahead_yylval; /* yylval for lookahead token */
+static YYLTYPE lookahead_yylloc; /* yylloc for lookahead token */
+static char *lookahead_yytext; /* start current token */
+
+static bool check_uescapechar(unsigned char escape);
+static bool ecpg_isspace(char ch);
+
+
+/*
+ * Intermediate filter between parser and base lexer (base_yylex in scan.l).
+ *
+ * This filter is needed because in some cases the standard SQL grammar
+ * requires more than one token lookahead. We reduce these cases to one-token
+ * lookahead by replacing tokens here, in order to keep the grammar LALR(1).
+ *
+ * Using a filter is simpler than trying to recognize multiword tokens
+ * directly in scan.l, because we'd have to allow for comments between the
+ * words. Furthermore it's not clear how to do that without re-introducing
+ * scanner backtrack, which would cost more performance than this filter
+ * layer does.
+ *
+ * We also use this filter to convert UIDENT and USCONST sequences into
+ * plain IDENT and SCONST tokens. While that could be handled by additional
+ * productions in the main grammar, it's more efficient to do it like this.
+ */
+int
+filtered_base_yylex(void)
+{
+ int cur_token;
+ int next_token;
+ YYSTYPE cur_yylval;
+ YYLTYPE cur_yylloc;
+ char *cur_yytext;
+
+ /* Get next token --- we might already have it */
+ if (have_lookahead)
+ {
+ cur_token = lookahead_token;
+ base_yylval = lookahead_yylval;
+ base_yylloc = lookahead_yylloc;
+ base_yytext = lookahead_yytext;
+ have_lookahead = false;
+ }
+ else
+ cur_token = base_yylex();
+
+ /*
+ * If this token isn't one that requires lookahead, just return it.
+ */
+ switch (cur_token)
+ {
+ case NOT:
+ case NULLS_P:
+ case WITH:
+ case UIDENT:
+ case USCONST:
+ break;
+ default:
+ return cur_token;
+ }
+
+ /* Save and restore lexer output variables around the call */
+ cur_yylval = base_yylval;
+ cur_yylloc = base_yylloc;
+ cur_yytext = base_yytext;
+
+ /* Get next token, saving outputs into lookahead variables */
+ next_token = base_yylex();
+
+ lookahead_token = next_token;
+ lookahead_yylval = base_yylval;
+ lookahead_yylloc = base_yylloc;
+ lookahead_yytext = base_yytext;
+
+ base_yylval = cur_yylval;
+ base_yylloc = cur_yylloc;
+ base_yytext = cur_yytext;
+
+ have_lookahead = true;
+
+ /* Replace cur_token if needed, based on lookahead */
+ switch (cur_token)
+ {
+ case NOT:
+ /* Replace NOT by NOT_LA if it's followed by BETWEEN, IN, etc */
+ switch (next_token)
+ {
+ case BETWEEN:
+ case IN_P:
+ case LIKE:
+ case ILIKE:
+ case SIMILAR:
+ cur_token = NOT_LA;
+ break;
+ }
+ break;
+
+ case NULLS_P:
+ /* Replace NULLS_P by NULLS_LA if it's followed by FIRST or LAST */
+ switch (next_token)
+ {
+ case FIRST_P:
+ case LAST_P:
+ cur_token = NULLS_LA;
+ break;
+ }
+ break;
+
+ case WITH:
+ /* Replace WITH by WITH_LA if it's followed by TIME or ORDINALITY */
+ switch (next_token)
+ {
+ case TIME:
+ case ORDINALITY:
+ cur_token = WITH_LA;
+ break;
+ }
+ break;
+ case UIDENT:
+ case USCONST:
+ /* Look ahead for UESCAPE */
+ if (next_token == UESCAPE)
+ {
+ /* Yup, so get third token, which had better be SCONST */
+ const char *escstr;
+
+ /*
+ * Again save and restore lexer output variables around the
+ * call
+ */
+ cur_yylval = base_yylval;
+ cur_yylloc = base_yylloc;
+ cur_yytext = base_yytext;
+
+ /* Get third token */
+ next_token = base_yylex();
+
+ if (next_token != SCONST)
+ mmerror(PARSE_ERROR, ET_ERROR, "UESCAPE must be followed by a simple string literal");
+
+ /*
+ * Save and check escape string, which the scanner returns
+ * with quotes
+ */
+ escstr = base_yylval.str;
+ if (strlen(escstr) != 3 || !check_uescapechar(escstr[1]))
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid Unicode escape character");
+
+ base_yylval = cur_yylval;
+ base_yylloc = cur_yylloc;
+ base_yytext = cur_yytext;
+
+ /* Combine 3 tokens into 1 */
+ base_yylval.str = psprintf("%s UESCAPE %s", base_yylval.str, escstr);
+
+ /* Clear have_lookahead, thereby consuming all three tokens */
+ have_lookahead = false;
+ }
+
+ if (cur_token == UIDENT)
+ cur_token = IDENT;
+ else if (cur_token == USCONST)
+ cur_token = SCONST;
+ break;
+ }
+
+ return cur_token;
+}
+
+/*
+ * check_uescapechar() and ecpg_isspace() should match their equivalents
+ * in pgc.l.
+ */
+
+/* is 'escape' acceptable as Unicode escape character (UESCAPE syntax) ? */
+static bool
+check_uescapechar(unsigned char escape)
+{
+ if (isxdigit(escape)
+ || escape == '+'
+ || escape == '\''
+ || escape == '"'
+ || ecpg_isspace(escape))
+ return false;
+ else
+ return true;
+}
+
+/*
+ * ecpg_isspace() --- return true if flex scanner considers char whitespace
+ */
+static bool
+ecpg_isspace(char ch)
+{
+ if (ch == ' ' ||
+ ch == '\t' ||
+ ch == '\n' ||
+ ch == '\r' ||
+ ch == '\f')
+ return true;
+ return false;
+}
diff --git a/src/interfaces/ecpg/preproc/pgc.c b/src/interfaces/ecpg/preproc/pgc.c
new file mode 100644
index 0000000..4c674ec
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/pgc.c
@@ -0,0 +1,5083 @@
+#line 2 "pgc.c"
+/*-------------------------------------------------------------------------
+ *
+ * pgc.l
+ * lexical scanner for ecpg
+ *
+ * This is a modified version of src/backend/parser/scan.l
+ *
+ * The ecpg scanner is not backup-free, so the fail rules are
+ * only here to simplify syncing this file with scan.l.
+ *
+ *
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * IDENTIFICATION
+ * src/interfaces/ecpg/preproc/pgc.l
+ *
+ *-------------------------------------------------------------------------
+ */
+#include "postgres_fe.h"
+
+#include <ctype.h>
+#include <limits.h>
+
+#include "common/string.h"
+
+#include "preproc_extern.h"
+#include "preproc.h"
+
+#line 32 "pgc.c"
+
+#define YY_INT_ALIGNED short int
+
+/* A lexical scanner generated by flex */
+
+#define yy_create_buffer base_yy_create_buffer
+#define yy_delete_buffer base_yy_delete_buffer
+#define yy_scan_buffer base_yy_scan_buffer
+#define yy_scan_string base_yy_scan_string
+#define yy_scan_bytes base_yy_scan_bytes
+#define yy_init_buffer base_yy_init_buffer
+#define yy_flush_buffer base_yy_flush_buffer
+#define yy_load_buffer_state base_yy_load_buffer_state
+#define yy_switch_to_buffer base_yy_switch_to_buffer
+#define yypush_buffer_state base_yypush_buffer_state
+#define yypop_buffer_state base_yypop_buffer_state
+#define yyensure_buffer_stack base_yyensure_buffer_stack
+#define yy_flex_debug base_yy_flex_debug
+#define yyin base_yyin
+#define yyleng base_yyleng
+#define yylex base_yylex
+#define yylineno base_yylineno
+#define yyout base_yyout
+#define yyrestart base_yyrestart
+#define yytext base_yytext
+#define yywrap base_yywrap
+#define yyalloc base_yyalloc
+#define yyrealloc base_yyrealloc
+#define yyfree base_yyfree
+
+#define FLEX_SCANNER
+#define YY_FLEX_MAJOR_VERSION 2
+#define YY_FLEX_MINOR_VERSION 6
+#define YY_FLEX_SUBMINOR_VERSION 4
+#if YY_FLEX_SUBMINOR_VERSION > 0
+#define FLEX_BETA
+#endif
+
+#ifdef yy_create_buffer
+#define base_yy_create_buffer_ALREADY_DEFINED
+#else
+#define yy_create_buffer base_yy_create_buffer
+#endif
+
+#ifdef yy_delete_buffer
+#define base_yy_delete_buffer_ALREADY_DEFINED
+#else
+#define yy_delete_buffer base_yy_delete_buffer
+#endif
+
+#ifdef yy_scan_buffer
+#define base_yy_scan_buffer_ALREADY_DEFINED
+#else
+#define yy_scan_buffer base_yy_scan_buffer
+#endif
+
+#ifdef yy_scan_string
+#define base_yy_scan_string_ALREADY_DEFINED
+#else
+#define yy_scan_string base_yy_scan_string
+#endif
+
+#ifdef yy_scan_bytes
+#define base_yy_scan_bytes_ALREADY_DEFINED
+#else
+#define yy_scan_bytes base_yy_scan_bytes
+#endif
+
+#ifdef yy_init_buffer
+#define base_yy_init_buffer_ALREADY_DEFINED
+#else
+#define yy_init_buffer base_yy_init_buffer
+#endif
+
+#ifdef yy_flush_buffer
+#define base_yy_flush_buffer_ALREADY_DEFINED
+#else
+#define yy_flush_buffer base_yy_flush_buffer
+#endif
+
+#ifdef yy_load_buffer_state
+#define base_yy_load_buffer_state_ALREADY_DEFINED
+#else
+#define yy_load_buffer_state base_yy_load_buffer_state
+#endif
+
+#ifdef yy_switch_to_buffer
+#define base_yy_switch_to_buffer_ALREADY_DEFINED
+#else
+#define yy_switch_to_buffer base_yy_switch_to_buffer
+#endif
+
+#ifdef yypush_buffer_state
+#define base_yypush_buffer_state_ALREADY_DEFINED
+#else
+#define yypush_buffer_state base_yypush_buffer_state
+#endif
+
+#ifdef yypop_buffer_state
+#define base_yypop_buffer_state_ALREADY_DEFINED
+#else
+#define yypop_buffer_state base_yypop_buffer_state
+#endif
+
+#ifdef yyensure_buffer_stack
+#define base_yyensure_buffer_stack_ALREADY_DEFINED
+#else
+#define yyensure_buffer_stack base_yyensure_buffer_stack
+#endif
+
+#ifdef yylex
+#define base_yylex_ALREADY_DEFINED
+#else
+#define yylex base_yylex
+#endif
+
+#ifdef yyrestart
+#define base_yyrestart_ALREADY_DEFINED
+#else
+#define yyrestart base_yyrestart
+#endif
+
+#ifdef yylex_init
+#define base_yylex_init_ALREADY_DEFINED
+#else
+#define yylex_init base_yylex_init
+#endif
+
+#ifdef yylex_init_extra
+#define base_yylex_init_extra_ALREADY_DEFINED
+#else
+#define yylex_init_extra base_yylex_init_extra
+#endif
+
+#ifdef yylex_destroy
+#define base_yylex_destroy_ALREADY_DEFINED
+#else
+#define yylex_destroy base_yylex_destroy
+#endif
+
+#ifdef yyget_debug
+#define base_yyget_debug_ALREADY_DEFINED
+#else
+#define yyget_debug base_yyget_debug
+#endif
+
+#ifdef yyset_debug
+#define base_yyset_debug_ALREADY_DEFINED
+#else
+#define yyset_debug base_yyset_debug
+#endif
+
+#ifdef yyget_extra
+#define base_yyget_extra_ALREADY_DEFINED
+#else
+#define yyget_extra base_yyget_extra
+#endif
+
+#ifdef yyset_extra
+#define base_yyset_extra_ALREADY_DEFINED
+#else
+#define yyset_extra base_yyset_extra
+#endif
+
+#ifdef yyget_in
+#define base_yyget_in_ALREADY_DEFINED
+#else
+#define yyget_in base_yyget_in
+#endif
+
+#ifdef yyset_in
+#define base_yyset_in_ALREADY_DEFINED
+#else
+#define yyset_in base_yyset_in
+#endif
+
+#ifdef yyget_out
+#define base_yyget_out_ALREADY_DEFINED
+#else
+#define yyget_out base_yyget_out
+#endif
+
+#ifdef yyset_out
+#define base_yyset_out_ALREADY_DEFINED
+#else
+#define yyset_out base_yyset_out
+#endif
+
+#ifdef yyget_leng
+#define base_yyget_leng_ALREADY_DEFINED
+#else
+#define yyget_leng base_yyget_leng
+#endif
+
+#ifdef yyget_text
+#define base_yyget_text_ALREADY_DEFINED
+#else
+#define yyget_text base_yyget_text
+#endif
+
+#ifdef yyget_lineno
+#define base_yyget_lineno_ALREADY_DEFINED
+#else
+#define yyget_lineno base_yyget_lineno
+#endif
+
+#ifdef yyset_lineno
+#define base_yyset_lineno_ALREADY_DEFINED
+#else
+#define yyset_lineno base_yyset_lineno
+#endif
+
+#ifdef yywrap
+#define base_yywrap_ALREADY_DEFINED
+#else
+#define yywrap base_yywrap
+#endif
+
+#ifdef yyalloc
+#define base_yyalloc_ALREADY_DEFINED
+#else
+#define yyalloc base_yyalloc
+#endif
+
+#ifdef yyrealloc
+#define base_yyrealloc_ALREADY_DEFINED
+#else
+#define yyrealloc base_yyrealloc
+#endif
+
+#ifdef yyfree
+#define base_yyfree_ALREADY_DEFINED
+#else
+#define yyfree base_yyfree
+#endif
+
+#ifdef yytext
+#define base_yytext_ALREADY_DEFINED
+#else
+#define yytext base_yytext
+#endif
+
+#ifdef yyleng
+#define base_yyleng_ALREADY_DEFINED
+#else
+#define yyleng base_yyleng
+#endif
+
+#ifdef yyin
+#define base_yyin_ALREADY_DEFINED
+#else
+#define yyin base_yyin
+#endif
+
+#ifdef yyout
+#define base_yyout_ALREADY_DEFINED
+#else
+#define yyout base_yyout
+#endif
+
+#ifdef yy_flex_debug
+#define base_yy_flex_debug_ALREADY_DEFINED
+#else
+#define yy_flex_debug base_yy_flex_debug
+#endif
+
+#ifdef yylineno
+#define base_yylineno_ALREADY_DEFINED
+#else
+#define yylineno base_yylineno
+#endif
+
+/* First, we deal with platform-specific or compiler-specific issues. */
+
+/* begin standard C headers. */
+#include <stdio.h>
+#include <string.h>
+#include <errno.h>
+#include <stdlib.h>
+
+/* end standard C headers. */
+
+/* flex integer type definitions */
+
+#ifndef FLEXINT_H
+#define FLEXINT_H
+
+/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
+
+#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+
+/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
+ * if you want the limit (max/min) macros for int types.
+ */
+#ifndef __STDC_LIMIT_MACROS
+#define __STDC_LIMIT_MACROS 1
+#endif
+
+#include <inttypes.h>
+typedef int8_t flex_int8_t;
+typedef uint8_t flex_uint8_t;
+typedef int16_t flex_int16_t;
+typedef uint16_t flex_uint16_t;
+typedef int32_t flex_int32_t;
+typedef uint32_t flex_uint32_t;
+#else
+typedef signed char flex_int8_t;
+typedef short int flex_int16_t;
+typedef int flex_int32_t;
+typedef unsigned char flex_uint8_t;
+typedef unsigned short int flex_uint16_t;
+typedef unsigned int flex_uint32_t;
+
+/* Limits of integral types. */
+#ifndef INT8_MIN
+#define INT8_MIN (-128)
+#endif
+#ifndef INT16_MIN
+#define INT16_MIN (-32767-1)
+#endif
+#ifndef INT32_MIN
+#define INT32_MIN (-2147483647-1)
+#endif
+#ifndef INT8_MAX
+#define INT8_MAX (127)
+#endif
+#ifndef INT16_MAX
+#define INT16_MAX (32767)
+#endif
+#ifndef INT32_MAX
+#define INT32_MAX (2147483647)
+#endif
+#ifndef UINT8_MAX
+#define UINT8_MAX (255U)
+#endif
+#ifndef UINT16_MAX
+#define UINT16_MAX (65535U)
+#endif
+#ifndef UINT32_MAX
+#define UINT32_MAX (4294967295U)
+#endif
+
+#ifndef SIZE_MAX
+#define SIZE_MAX (~(size_t)0)
+#endif
+
+#endif /* ! C99 */
+
+#endif /* ! FLEXINT_H */
+
+/* begin standard C++ headers. */
+
+/* TODO: this is always defined, so inline it */
+#define yyconst const
+
+#if defined(__GNUC__) && __GNUC__ >= 3
+#define yynoreturn __attribute__((__noreturn__))
+#else
+#define yynoreturn
+#endif
+
+/* Returned upon end-of-file. */
+#define YY_NULL 0
+
+/* Promotes a possibly negative, possibly signed char to an
+ * integer in range [0..255] for use as an array index.
+ */
+#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
+
+/* Enter a start condition. This macro really ought to take a parameter,
+ * but we do it the disgusting crufty way forced on us by the ()-less
+ * definition of BEGIN.
+ */
+#define BEGIN (yy_start) = 1 + 2 *
+/* Translate the current start state into a value that can be later handed
+ * to BEGIN to return to the state. The YYSTATE alias is for lex
+ * compatibility.
+ */
+#define YY_START (((yy_start) - 1) / 2)
+#define YYSTATE YY_START
+/* Action number for EOF rule of a given start state. */
+#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
+/* Special action meaning "start processing a new file". */
+#define YY_NEW_FILE yyrestart( yyin )
+#define YY_END_OF_BUFFER_CHAR 0
+
+/* Size of default input buffer. */
+#ifndef YY_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k.
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
+ * Ditto for the __ia64__ case accordingly.
+ */
+#define YY_BUF_SIZE 32768
+#else
+#define YY_BUF_SIZE 16384
+#endif /* __ia64__ */
+#endif
+
+/* The state buf must be large enough to hold one state per character in the main buffer.
+ */
+#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
+
+#ifndef YY_TYPEDEF_YY_BUFFER_STATE
+#define YY_TYPEDEF_YY_BUFFER_STATE
+typedef struct yy_buffer_state *YY_BUFFER_STATE;
+#endif
+
+#ifndef YY_TYPEDEF_YY_SIZE_T
+#define YY_TYPEDEF_YY_SIZE_T
+typedef size_t yy_size_t;
+#endif
+
+extern int yyleng;
+
+extern FILE *yyin, *yyout;
+
+#define EOB_ACT_CONTINUE_SCAN 0
+#define EOB_ACT_END_OF_FILE 1
+#define EOB_ACT_LAST_MATCH 2
+
+ /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
+ * access to the local variable yy_act. Since yyless() is a macro, it would break
+ * existing scanners that call yyless() from OUTSIDE yylex.
+ * One obvious solution it to make yy_act a global. I tried that, and saw
+ * a 5% performance hit in a non-yylineno scanner, because yy_act is
+ * normally declared as a register variable-- so it is not worth it.
+ */
+ #define YY_LESS_LINENO(n) \
+ do { \
+ int yyl;\
+ for ( yyl = n; yyl < yyleng; ++yyl )\
+ if ( yytext[yyl] == '\n' )\
+ --yylineno;\
+ }while(0)
+ #define YY_LINENO_REWIND_TO(dst) \
+ do {\
+ const char *p;\
+ for ( p = yy_cp-1; p >= (dst); --p)\
+ if ( *p == '\n' )\
+ --yylineno;\
+ }while(0)
+
+/* Return all but the first "n" matched characters back to the input stream. */
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ int yyless_macro_arg = (n); \
+ YY_LESS_LINENO(yyless_macro_arg);\
+ *yy_cp = (yy_hold_char); \
+ YY_RESTORE_YY_MORE_OFFSET \
+ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
+ YY_DO_BEFORE_ACTION; /* set up yytext again */ \
+ } \
+ while ( 0 )
+#define unput(c) yyunput( c, (yytext_ptr) )
+
+#ifndef YY_STRUCT_YY_BUFFER_STATE
+#define YY_STRUCT_YY_BUFFER_STATE
+struct yy_buffer_state
+ {
+ FILE *yy_input_file;
+
+ char *yy_ch_buf; /* input buffer */
+ char *yy_buf_pos; /* current position in input buffer */
+
+ /* Size of input buffer in bytes, not including room for EOB
+ * characters.
+ */
+ int yy_buf_size;
+
+ /* Number of characters read into yy_ch_buf, not including EOB
+ * characters.
+ */
+ int yy_n_chars;
+
+ /* Whether we "own" the buffer - i.e., we know we created it,
+ * and can realloc() it to grow it, and should free() it to
+ * delete it.
+ */
+ int yy_is_our_buffer;
+
+ /* Whether this is an "interactive" input source; if so, and
+ * if we're using stdio for input, then we want to use getc()
+ * instead of fread(), to make sure we stop fetching input after
+ * each newline.
+ */
+ int yy_is_interactive;
+
+ /* Whether we're considered to be at the beginning of a line.
+ * If so, '^' rules will be active on the next match, otherwise
+ * not.
+ */
+ int yy_at_bol;
+
+ int yy_bs_lineno; /**< The line count. */
+ int yy_bs_column; /**< The column count. */
+
+ /* Whether to try to fill the input buffer when we reach the
+ * end of it.
+ */
+ int yy_fill_buffer;
+
+ int yy_buffer_status;
+
+#define YY_BUFFER_NEW 0
+#define YY_BUFFER_NORMAL 1
+ /* When an EOF's been seen but there's still some text to process
+ * then we mark the buffer as YY_EOF_PENDING, to indicate that we
+ * shouldn't try reading from the input source any more. We might
+ * still have a bunch of tokens to match, though, because of
+ * possible backing-up.
+ *
+ * When we actually see the EOF, we change the status to "new"
+ * (via yyrestart()), so that the user can continue scanning by
+ * just pointing yyin at a new input file.
+ */
+#define YY_BUFFER_EOF_PENDING 2
+
+ };
+#endif /* !YY_STRUCT_YY_BUFFER_STATE */
+
+/* Stack of input buffers. */
+static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
+static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
+static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
+
+/* We provide macros for accessing buffer states in case in the
+ * future we want to put the buffer states in a more general
+ * "scanner state".
+ *
+ * Returns the top of the stack, or NULL.
+ */
+#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
+ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
+ : NULL)
+/* Same as previous macro, but useful when we know that the buffer stack is not
+ * NULL or when we need an lvalue. For internal use only.
+ */
+#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
+
+/* yy_hold_char holds the character lost when yytext is formed. */
+static char yy_hold_char;
+static int yy_n_chars; /* number of characters read into yy_ch_buf */
+int yyleng;
+
+/* Points to current character in buffer. */
+static char *yy_c_buf_p = NULL;
+static int yy_init = 0; /* whether we need to initialize */
+static int yy_start = 0; /* start state number */
+
+/* Flag which is used to allow yywrap()'s to do buffer switches
+ * instead of setting up a fresh yyin. A bit of a hack ...
+ */
+static int yy_did_buffer_switch_on_eof;
+
+void yyrestart ( FILE *input_file );
+void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
+YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
+void yy_delete_buffer ( YY_BUFFER_STATE b );
+void yy_flush_buffer ( YY_BUFFER_STATE b );
+void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
+void yypop_buffer_state ( void );
+
+static void yyensure_buffer_stack ( void );
+static void yy_load_buffer_state ( void );
+static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
+#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
+
+YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
+YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
+YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
+
+void *yyalloc ( yy_size_t );
+void *yyrealloc ( void *, yy_size_t );
+void yyfree ( void * );
+
+#define yy_new_buffer yy_create_buffer
+#define yy_set_interactive(is_interactive) \
+ { \
+ if ( ! YY_CURRENT_BUFFER ){ \
+ yyensure_buffer_stack (); \
+ YY_CURRENT_BUFFER_LVALUE = \
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
+ } \
+ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
+ }
+#define yy_set_bol(at_bol) \
+ { \
+ if ( ! YY_CURRENT_BUFFER ){\
+ yyensure_buffer_stack (); \
+ YY_CURRENT_BUFFER_LVALUE = \
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
+ } \
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
+ }
+#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
+
+/* Begin user sect3 */
+
+#define base_yywrap() (/*CONSTCOND*/1)
+#define YY_SKIP_YYWRAP
+typedef flex_uint8_t YY_CHAR;
+
+FILE *yyin = NULL, *yyout = NULL;
+
+typedef int yy_state_type;
+
+extern int yylineno;
+int yylineno = 1;
+
+extern char *yytext;
+#ifdef yytext_ptr
+#undef yytext_ptr
+#endif
+#define yytext_ptr yytext
+
+static yy_state_type yy_get_previous_state ( void );
+static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
+static int yy_get_next_buffer ( void );
+static void yynoreturn yy_fatal_error ( const char* msg );
+
+/* Done after the current pattern has been matched and before the
+ * corresponding action - sets up yytext.
+ */
+#define YY_DO_BEFORE_ACTION \
+ (yytext_ptr) = yy_bp; \
+ yyleng = (int) (yy_cp - yy_bp); \
+ (yy_hold_char) = *yy_cp; \
+ *yy_cp = '\0'; \
+ (yy_c_buf_p) = yy_cp;
+#define YY_NUM_RULES 142
+#define YY_END_OF_BUFFER 143
+/* This struct is not used in this scanner,
+ but its presence is necessary. */
+struct yy_trans_info
+ {
+ flex_int32_t yy_verify;
+ flex_int32_t yy_nxt;
+ };
+static const flex_int16_t yy_accept[578] =
+ { 0,
+ 0, 0, 10, 10, 0, 0, 0, 0, 0, 0,
+ 9, 9, 0, 0, 0, 0, 19, 19, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 143, 141, 10, 17, 5, 5,
+ 6, 6, 42, 38, 44, 39, 44, 9, 23, 17,
+ 20, 19, 19, 19, 19, 24, 24, 17, 29, 23,
+ 33, 33, 35, 40, 132, 132, 130, 89, 89, 130,
+ 130, 111, 89, 89, 111, 43, 111, 71, 83, 111,
+ 12, 87, 88, 82, 85, 81, 86, 111, 84, 59,
+
+ 59, 79, 80, 111, 94, 111, 77, 77, 92, 93,
+ 90, 111, 91, 69, 1, 1, 55, 36, 55, 53,
+ 54, 55, 14, 54, 54, 54, 54, 59, 54, 54,
+ 54, 54, 68, 68, 68, 68, 68, 68, 140, 140,
+ 140, 140, 136, 136, 135, 134, 133, 117, 117, 10,
+ 5, 7, 4, 3, 42, 41, 44, 9, 23, 21,
+ 19, 19, 19, 19, 18, 19, 19, 24, 26, 27,
+ 26, 26, 26, 22, 33, 32, 34, 0, 0, 131,
+ 0, 0, 0, 0, 0, 103, 0, 0, 0, 0,
+ 0, 0, 108, 99, 0, 78, 106, 100, 104, 101,
+
+ 105, 95, 110, 60, 2, 0, 107, 60, 59, 0,
+ 73, 97, 102, 96, 77, 77, 98, 1, 0, 55,
+ 52, 55, 0, 0, 30, 56, 31, 1, 46, 60,
+ 2, 60, 59, 64, 64, 45, 47, 67, 49, 51,
+ 48, 50, 68, 8, 15, 13, 0, 11, 0, 139,
+ 0, 0, 0, 135, 133, 0, 0, 116, 3, 19,
+ 19, 19, 19, 27, 0, 0, 28, 34, 0, 0,
+ 0, 0, 0, 76, 76, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 109, 2, 0,
+ 72, 61, 60, 63, 62, 73, 77, 55, 55, 57,
+
+ 31, 1, 1, 65, 65, 2, 60, 59, 63, 62,
+ 67, 0, 0, 0, 37, 16, 138, 137, 19, 19,
+ 18, 19, 19, 27, 0, 0, 28, 0, 0, 0,
+ 0, 0, 0, 0, 0, 76, 76, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 77, 55,
+ 0, 60, 59, 66, 67, 0, 0, 0, 67, 138,
+ 138, 137, 137, 19, 0, 0, 125, 0, 0, 0,
+ 0, 0, 0, 0, 76, 76, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 77, 55, 55, 0, 60, 60, 67, 0, 0, 0,
+
+ 0, 0, 25, 125, 0, 127, 0, 121, 0, 0,
+ 0, 0, 0, 0, 76, 76, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 115, 0, 77, 55,
+ 0, 0, 60, 0, 0, 0, 0, 67, 67, 0,
+ 0, 129, 121, 123, 0, 0, 0, 0, 113, 0,
+ 115, 0, 70, 58, 0, 0, 0, 0, 0, 67,
+ 0, 123, 0, 0, 0, 74, 74, 113, 119, 70,
+ 70, 77, 77, 77, 77, 58, 67, 0, 0, 0,
+ 0, 74, 74, 74, 0, 74, 0, 119, 0, 0,
+ 0, 77, 77, 77, 77, 77, 77, 58, 67, 0,
+
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 77,
+ 77, 77, 77, 77, 77, 77, 77, 124, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 77, 77, 77,
+ 77, 77, 77, 77, 77, 124, 0, 126, 0, 120,
+ 0, 0, 0, 0, 0, 0, 77, 77, 77, 77,
+ 77, 77, 0, 128, 120, 122, 75, 75, 0, 0,
+ 114, 77, 77, 77, 114, 122, 75, 75, 75, 75,
+ 112, 0, 112, 77, 118, 118, 0
+ } ;
+
+static const YY_CHAR yy_ec[256] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
+ 1, 2, 4, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 2, 5, 6, 7, 8, 9, 10, 11, 12,
+ 13, 14, 15, 16, 17, 18, 19, 20, 21, 21,
+ 21, 21, 21, 21, 21, 22, 22, 23, 24, 25,
+ 26, 27, 28, 28, 29, 30, 31, 32, 33, 34,
+ 35, 35, 36, 35, 35, 37, 38, 39, 40, 41,
+ 42, 43, 44, 45, 46, 35, 35, 47, 35, 35,
+ 48, 49, 50, 51, 52, 28, 29, 30, 31, 32,
+
+ 33, 34, 35, 35, 53, 35, 35, 37, 38, 39,
+ 40, 41, 42, 43, 44, 45, 54, 35, 35, 55,
+ 35, 35, 56, 57, 58, 28, 1, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59
+ } ;
+
+static const YY_CHAR yy_meta[60] =
+ { 0,
+ 1, 2, 3, 3, 4, 5, 4, 6, 7, 4,
+ 8, 9, 9, 10, 7, 1, 11, 12, 13, 14,
+ 14, 14, 15, 16, 17, 18, 19, 4, 20, 20,
+ 20, 20, 20, 20, 21, 21, 21, 21, 21, 21,
+ 21, 21, 21, 21, 21, 21, 21, 22, 23, 9,
+ 4, 21, 21, 21, 21, 1, 4, 1, 21
+ } ;
+
+static const flex_int16_t yy_base[654] =
+ { 0,
+ 0, 0, 2225, 2218, 0, 53, 2222, 2221, 0, 5,
+ 2215, 2214, 2212, 2211, 2210, 2209, 18, 27, 1, 34,
+ 7, 12, 0, 30, 2213, 2212, 2206, 2202, 110, 0,
+ 38, 168, 201, 0, 260, 0, 28, 60, 71, 171,
+ 319, 0, 378, 0, 2211, 2785, 0, 2785, 0, 0,
+ 29, 2196, 0, 2200, 2785, 2785, 10, 0, 0, 2194,
+ 2785, 86, 89, 175, 2187, 0, 0, 2192, 418, 2191,
+ 0, 0, 2192, 2190, 2785, 438, 2785, 2785, 2785, 147,
+ 22, 2785, 94, 186, 2169, 2785, 11, 412, 2168, 2183,
+ 2785, 2785, 2785, 168, 50, 2785, 82, 177, 433, 435,
+
+ 456, 2785, 2785, 2167, 2164, 2162, 0, 39, 2785, 2785,
+ 2785, 2131, 2785, 2785, 447, 477, 2161, 2785, 486, 477,
+ 0, 0, 2785, 2785, 2169, 449, 2171, 486, 13, 158,
+ 2157, 2153, 0, 2167, 2166, 2164, 2162, 2160, 2145, 0,
+ 2785, 0, 2785, 514, 2785, 2785, 0, 2785, 521, 0,
+ 0, 88, 2785, 0, 0, 2785, 2785, 0, 0, 2785,
+ 524, 529, 2151, 545, 2785, 2147, 548, 0, 2785, 440,
+ 0, 0, 0, 2785, 0, 2785, 2155, 551, 555, 2785,
+ 449, 2128, 2128, 564, 410, 2785, 579, 496, 535, 2127,
+ 453, 2119, 2785, 2785, 496, 2785, 2785, 2785, 2785, 2785,
+
+ 2785, 2143, 2785, 619, 0, 2153, 2785, 624, 629, 638,
+ 0, 2785, 2785, 2785, 0, 2122, 2785, 661, 508, 0,
+ 0, 664, 526, 538, 2785, 655, 2146, 717, 2785, 664,
+ 0, 678, 683, 2785, 692, 2785, 2785, 670, 0, 0,
+ 0, 0, 0, 2785, 2785, 2785, 637, 2785, 2129, 2785,
+ 2146, 2098, 726, 2785, 0, 735, 745, 2785, 0, 691,
+ 749, 753, 758, 500, 0, 0, 0, 2116, 710, 2091,
+ 470, 2090, 747, 2785, 0, 2105, 0, 769, 497, 2077,
+ 2086, 531, 2075, 2084, 2080, 2082, 2079, 2785, 0, 2107,
+ 2785, 2785, 775, 783, 789, 0, 2059, 807, 2033, 2785,
+
+ 2016, 0, 860, 2785, 798, 0, 807, 821, 816, 824,
+ 813, 1974, 0, 845, 2785, 2785, 848, 878, 887, 890,
+ 910, 920, 916, 2785, 0, 0, 2785, 1941, 1927, 670,
+ 1924, 1900, 853, 896, 926, 932, 936, 1531, 1531, 1522,
+ 1524, 1527, 1527, 1517, 1517, 705, 1515, 1518, 939, 981,
+ 926, 931, 936, 2785, 944, 963, 970, 999, 1008, 973,
+ 2785, 1015, 2785, 1020, 0, 0, 1025, 1031, 1505, 1504,
+ 1503, 1038, 1470, 1040, 1496, 1043, 642, 1049, 1475, 1441,
+ 1428, 429, 1422, 1385, 1370, 626, 1371, 671, 1345, 1062,
+ 1335, 0, 721, 1049, 1054, 1063, 997, 1106, 1076, 1163,
+
+ 1097, 0, 2785, 1116, 1134, 2785, 1137, 1140, 1322, 1317,
+ 1339, 849, 1323, 1217, 1221, 1224, 0, 1302, 1283, 1289,
+ 0, 1286, 1262, 1271, 1262, 1236, 1146, 1225, 1213, 1228,
+ 1131, 1212, 1224, 1273, 0, 0, 1224, 1043, 1330, 0,
+ 1245, 2785, 1166, 1184, 1249, 1206, 0, 1204, 1252, 1196,
+ 1256, 1177, 1379, 1241, 1194, 1174, 693, 1405, 0, 1463,
+ 0, 1284, 1302, 728, 1155, 1289, 1306, 1309, 1312, 1512,
+ 0, 1141, 834, 844, 1120, 1297, 1566, 0, 872, 1114,
+ 767, 1323, 1348, 1357, 1106, 1360, 1096, 1363, 1095, 916,
+ 1086, 1090, 1228, 1073, 821, 1073, 1070, 2785, 0, 1063,
+
+ 1062, 823, 1057, 1054, 1044, 1040, 1016, 1017, 1004, 873,
+ 971, 926, 946, 911, 900, 869, 872, 1366, 1369, 869,
+ 862, 851, 913, 916, 968, 829, 790, 768, 1372, 1382,
+ 764, 730, 700, 924, 685, 1385, 1392, 2785, 1395, 1388,
+ 648, 625, 622, 627, 935, 620, 509, 1398, 1401, 460,
+ 411, 1405, 1459, 2785, 1424, 1427, 1451, 1466, 163, 149,
+ 1482, 1485, 1489, 72, 1492, 1495, 1498, 1501, 1504, 1515,
+ 1518, 49, 1521, 1524, 1527, 1530, 2785, 1625, 1648, 1671,
+ 1694, 1717, 1740, 1763, 1786, 1809, 1832, 1855, 1878, 1901,
+ 1924, 1947, 1970, 1993, 2016, 2039, 2061, 2084, 973, 2106,
+
+ 2127, 2145, 2163, 2177, 2187, 2194, 2210, 2231, 2254, 2277,
+ 2295, 2315, 2333, 2352, 1074, 1101, 1113, 2370, 2388, 2407,
+ 1140, 1400, 2425, 2446, 1403, 2466, 2474, 2490, 2507, 2528,
+ 2551, 2574, 2592, 2612, 2633, 1159, 1251, 1280, 1521, 557,
+ 2655, 1326, 1459, 2677, 2695, 1523, 1526, 2717, 2740, 1533,
+ 2762, 1535, 1536
+ } ;
+
+static const flex_int16_t yy_def[654] =
+ { 0,
+ 578, 578, 579, 579, 580, 580, 581, 581, 582, 582,
+ 583, 583, 584, 584, 584, 584, 585, 585, 586, 586,
+ 584, 584, 587, 587, 581, 581, 584, 584, 577, 29,
+ 588, 588, 577, 33, 577, 35, 589, 589, 590, 590,
+ 577, 41, 577, 43, 577, 577, 591, 577, 592, 592,
+ 577, 577, 593, 577, 577, 577, 577, 594, 595, 577,
+ 577, 577, 577, 577, 577, 596, 596, 577, 597, 595,
+ 598, 598, 599, 577, 577, 600, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 601, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+
+ 577, 577, 577, 577, 577, 577, 602, 602, 577, 577,
+ 577, 577, 577, 577, 577, 577, 603, 577, 601, 604,
+ 603, 603, 577, 577, 603, 577, 603, 605, 606, 603,
+ 603, 603, 607, 607, 607, 607, 607, 607, 608, 609,
+ 577, 610, 577, 577, 577, 577, 611, 577, 612, 591,
+ 592, 577, 577, 613, 593, 577, 577, 594, 595, 577,
+ 577, 577, 577, 577, 577, 577, 614, 596, 577, 577,
+ 615, 616, 617, 577, 598, 577, 618, 577, 600, 577,
+ 577, 577, 577, 577, 601, 577, 577, 187, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+
+ 577, 577, 577, 577, 619, 620, 577, 577, 577, 577,
+ 621, 577, 577, 577, 602, 602, 577, 577, 601, 603,
+ 603, 187, 187, 577, 577, 622, 623, 624, 577, 625,
+ 626, 625, 627, 577, 577, 577, 577, 628, 603, 603,
+ 603, 603, 629, 577, 577, 577, 577, 577, 630, 577,
+ 631, 632, 577, 577, 633, 577, 634, 577, 613, 635,
+ 614, 614, 614, 577, 636, 637, 638, 618, 577, 577,
+ 577, 577, 187, 577, 273, 273, 187, 273, 187, 187,
+ 187, 273, 577, 577, 577, 577, 577, 577, 619, 620,
+ 577, 577, 577, 577, 577, 621, 602, 273, 298, 577,
+
+ 623, 624, 624, 577, 577, 626, 625, 627, 577, 639,
+ 628, 577, 640, 641, 577, 577, 577, 577, 635, 635,
+ 635, 635, 614, 577, 642, 643, 577, 577, 577, 577,
+ 577, 577, 577, 644, 273, 273, 273, 187, 187, 187,
+ 187, 273, 273, 577, 577, 577, 577, 577, 602, 644,
+ 577, 625, 627, 577, 645, 641, 641, 641, 641, 577,
+ 577, 577, 577, 635, 646, 647, 577, 577, 577, 577,
+ 577, 577, 577, 644, 648, 644, 273, 644, 187, 187,
+ 187, 187, 273, 273, 577, 577, 577, 577, 577, 577,
+ 602, 350, 298, 577, 625, 625, 645, 649, 641, 577,
+
+ 641, 650, 577, 577, 577, 577, 577, 577, 577, 577,
+ 648, 577, 273, 644, 644, 644, 187, 187, 187, 187,
+ 273, 273, 577, 577, 577, 577, 577, 577, 602, 298,
+ 577, 577, 625, 649, 434, 434, 434, 434, 651, 652,
+ 577, 577, 577, 577, 577, 187, 273, 577, 577, 577,
+ 577, 577, 602, 577, 577, 434, 434, 434, 434, 651,
+ 653, 577, 577, 577, 577, 187, 577, 577, 577, 577,
+ 470, 602, 602, 602, 602, 577, 577, 647, 577, 577,
+ 577, 273, 577, 273, 273, 577, 577, 577, 577, 577,
+ 577, 602, 602, 602, 602, 602, 602, 577, 477, 577,
+
+ 577, 577, 577, 577, 273, 577, 577, 577, 577, 602,
+ 602, 602, 602, 602, 602, 602, 602, 577, 577, 577,
+ 577, 577, 273, 577, 577, 577, 577, 602, 602, 602,
+ 602, 602, 602, 602, 602, 577, 577, 577, 577, 577,
+ 577, 273, 577, 577, 577, 577, 602, 602, 602, 602,
+ 602, 602, 577, 577, 577, 577, 273, 577, 577, 577,
+ 577, 602, 602, 602, 577, 577, 273, 577, 273, 577,
+ 577, 577, 577, 602, 577, 577, 0, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577
+ } ;
+
+static const flex_int16_t yy_nxt[2845] =
+ { 0,
+ 577, 577, 72, 67, 50, 56, 50, 73, 50, 50,
+ 56, 68, 577, 51, 50, 157, 50, 48, 52, 62,
+ 63, 64, 48, 577, 50, 50, 50, 50, 62, 63,
+ 64, 577, 72, 140, 65, 236, 67, 73, 237, 78,
+ 79, 78, 152, 65, 68, 80, 188, 153, 57, 69,
+ 50, 141, 142, 57, 141, 70, 50, 50, 157, 50,
+ 70, 50, 50, 189, 198, 140, 51, 50, 183, 50,
+ 81, 52, 144, 144, 144, 199, 183, 50, 50, 50,
+ 50, 575, 69, 141, 142, 216, 141, 161, 162, 162,
+ 164, 164, 164, 216, 145, 184, 184, 184, 200, 165,
+
+ 185, 152, 163, 50, 574, 166, 153, 201, 202, 50,
+ 75, 75, 75, 75, 75, 75, 75, 75, 75, 75,
+ 75, 75, 75, 75, 75, 75, 75, 75, 75, 75,
+ 75, 75, 75, 75, 75, 75, 75, 75, 76, 76,
+ 76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
+ 76, 76, 76, 76, 76, 76, 76, 75, 75, 75,
+ 75, 76, 76, 76, 76, 75, 75, 75, 76, 78,
+ 79, 78, 144, 144, 144, 80, 164, 164, 164, 181,
+ 572, 195, 182, 239, 240, 165, 196, 184, 184, 184,
+ 203, 166, 185, 197, 145, 571, 204, 204, 204, 182,
+
+ 81, 82, 83, 84, 83, 85, 86, 87, 88, 89,
+ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
+ 100, 101, 101, 102, 103, 104, 105, 106, 82, 107,
+ 107, 107, 107, 108, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 109, 82,
+ 110, 82, 107, 107, 107, 107, 111, 112, 113, 107,
+ 114, 115, 116, 115, 117, 118, 119, 120, 121, 122,
+ 123, 124, 124, 121, 121, 124, 125, 126, 127, 128,
+ 128, 128, 129, 124, 130, 131, 132, 122, 133, 134,
+ 133, 133, 135, 133, 133, 133, 133, 133, 136, 133,
+
+ 133, 133, 133, 133, 133, 137, 138, 124, 114, 124,
+ 121, 133, 133, 137, 138, 114, 122, 114, 133, 146,
+ 146, 146, 146, 146, 146, 146, 146, 146, 146, 146,
+ 146, 146, 146, 146, 146, 146, 146, 146, 146, 146,
+ 146, 146, 146, 146, 146, 146, 146, 147, 147, 147,
+ 147, 147, 147, 147, 147, 147, 147, 147, 147, 147,
+ 147, 147, 147, 147, 147, 147, 146, 146, 146, 146,
+ 147, 147, 147, 147, 146, 146, 146, 147, 148, 148,
+ 148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
+ 148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
+
+ 148, 148, 148, 148, 148, 148, 149, 149, 149, 149,
+ 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
+ 149, 149, 149, 149, 149, 148, 148, 148, 148, 149,
+ 149, 149, 149, 148, 148, 148, 149, 170, 170, 178,
+ 178, 178, 564, 190, 181, 188, 205, 191, 218, 218,
+ 218, 206, 208, 219, 209, 209, 209, 192, 207, 264,
+ 264, 180, 189, 171, 191, 192, 229, 210, 230, 230,
+ 230, 172, 173, 208, 420, 209, 209, 209, 218, 218,
+ 218, 211, 420, 219, 225, 269, 271, 270, 210, 211,
+ 222, 286, 222, 563, 222, 222, 226, 226, 226, 222,
+
+ 222, 331, 222, 232, 222, 233, 233, 233, 332, 195,
+ 222, 222, 222, 222, 196, 253, 253, 253, 235, 324,
+ 324, 223, 256, 256, 256, 161, 162, 162, 338, 279,
+ 164, 164, 164, 280, 281, 339, 222, 254, 224, 165,
+ 163, 562, 222, 223, 258, 166, 164, 164, 164, 262,
+ 162, 162, 178, 178, 178, 165, 178, 178, 178, 279,
+ 224, 166, 342, 280, 263, 184, 184, 184, 282, 343,
+ 185, 282, 283, 284, 180, 283, 355, 355, 180, 273,
+ 273, 274, 275, 273, 273, 273, 273, 273, 273, 273,
+ 273, 273, 273, 273, 273, 273, 273, 276, 273, 273,
+
+ 273, 273, 273, 273, 273, 273, 273, 277, 277, 277,
+ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
+ 277, 277, 277, 277, 277, 277, 273, 278, 273, 273,
+ 273, 277, 277, 277, 273, 273, 273, 273, 204, 204,
+ 204, 292, 315, 293, 293, 293, 208, 316, 209, 209,
+ 209, 210, 294, 561, 294, 377, 210, 295, 295, 295,
+ 413, 210, 218, 218, 218, 559, 558, 219, 298, 557,
+ 298, 424, 298, 298, 226, 226, 226, 298, 298, 424,
+ 298, 556, 299, 230, 230, 230, 312, 313, 298, 298,
+ 298, 298, 320, 164, 164, 292, 305, 307, 307, 307,
+
+ 232, 321, 308, 308, 308, 369, 309, 322, 309, 437,
+ 305, 310, 310, 310, 298, 235, 426, 314, 552, 458,
+ 298, 303, 369, 303, 426, 303, 303, 253, 253, 253,
+ 303, 303, 550, 303, 393, 303, 256, 256, 256, 430,
+ 387, 303, 303, 303, 303, 328, 256, 256, 256, 254,
+ 262, 162, 162, 329, 262, 162, 162, 387, 258, 262,
+ 162, 162, 328, 549, 479, 263, 480, 303, 258, 263,
+ 335, 336, 337, 303, 323, 273, 273, 273, 273, 273,
+ 273, 273, 273, 273, 273, 273, 273, 273, 273, 273,
+ 273, 273, 273, 273, 293, 293, 293, 548, 503, 273,
+
+ 273, 273, 295, 295, 295, 504, 547, 210, 295, 295,
+ 295, 298, 309, 298, 309, 298, 298, 310, 310, 310,
+ 298, 298, 546, 298, 351, 299, 352, 352, 352, 312,
+ 313, 298, 298, 298, 298, 310, 310, 310, 232, 305,
+ 353, 353, 353, 310, 310, 310, 356, 356, 356, 360,
+ 360, 360, 514, 235, 372, 372, 372, 298, 520, 515,
+ 314, 358, 412, 298, 303, 545, 303, 273, 303, 303,
+ 493, 361, 494, 303, 303, 520, 303, 495, 303, 362,
+ 362, 362, 496, 541, 303, 303, 303, 303, 320, 164,
+ 164, 320, 164, 164, 359, 540, 373, 321, 375, 376,
+
+ 321, 363, 539, 322, 535, 534, 322, 500, 528, 377,
+ 303, 320, 164, 164, 276, 501, 303, 262, 162, 162,
+ 321, 320, 164, 164, 500, 528, 322, 335, 336, 337,
+ 321, 533, 323, 335, 336, 337, 364, 335, 336, 337,
+ 390, 390, 390, 532, 378, 394, 394, 394, 351, 481,
+ 395, 395, 395, 396, 508, 353, 353, 353, 530, 542,
+ 312, 313, 543, 305, 356, 356, 356, 542, 235, 551,
+ 543, 356, 356, 356, 360, 360, 360, 551, 177, 358,
+ 560, 531, 391, 375, 376, 392, 358, 392, 560, 392,
+ 392, 314, 177, 177, 393, 392, 361, 392, 531, 299,
+
+ 356, 356, 356, 544, 529, 392, 392, 392, 392, 356,
+ 356, 356, 359, 312, 313, 398, 362, 362, 362, 359,
+ 544, 320, 164, 164, 399, 400, 404, 404, 404, 378,
+ 321, 392, 405, 405, 405, 527, 364, 392, 363, 372,
+ 372, 372, 375, 376, 314, 375, 376, 526, 359, 525,
+ 414, 415, 416, 377, 406, 401, 377, 359, 276, 457,
+ 458, 276, 377, 390, 390, 390, 431, 276, 432, 432,
+ 432, 351, 524, 433, 433, 433, 523, 356, 356, 356,
+ 292, 373, 433, 433, 433, 522, 305, 265, 378, 521,
+ 459, 378, 398, 265, 519, 305, 518, 378, 356, 356,
+
+ 356, 517, 400, 516, 513, 428, 434, 435, 356, 356,
+ 434, 434, 434, 358, 266, 434, 434, 404, 404, 404,
+ 266, 434, 437, 510, 509, 359, 267, 507, 434, 434,
+ 434, 434, 267, 434, 506, 405, 405, 405, 441, 441,
+ 441, 443, 443, 443, 505, 502, 359, 451, 451, 451,
+ 454, 454, 454, 296, 434, 438, 434, 406, 497, 296,
+ 442, 434, 434, 434, 356, 356, 356, 443, 443, 443,
+ 357, 357, 325, 492, 357, 357, 357, 357, 325, 358,
+ 357, 357, 357, 357, 357, 462, 462, 462, 481, 357,
+ 437, 439, 439, 439, 439, 439, 439, 439, 439, 439,
+
+ 439, 439, 439, 439, 439, 439, 439, 439, 439, 439,
+ 357, 431, 359, 470, 439, 439, 439, 439, 414, 415,
+ 416, 439, 414, 415, 416, 414, 415, 416, 469, 431,
+ 377, 455, 455, 455, 377, 276, 467, 377, 466, 276,
+ 437, 350, 276, 433, 433, 433, 441, 441, 441, 453,
+ 463, 463, 463, 468, 468, 468, 305, 451, 451, 451,
+ 476, 476, 476, 511, 326, 378, 452, 450, 442, 378,
+ 326, 512, 378, 434, 435, 356, 356, 434, 434, 434,
+ 511, 464, 434, 434, 465, 462, 462, 462, 434, 456,
+ 482, 483, 484, 327, 449, 434, 434, 434, 434, 327,
+
+ 434, 465, 448, 463, 463, 463, 447, 486, 486, 486,
+ 468, 468, 468, 488, 488, 488, 498, 498, 498, 421,
+ 446, 434, 438, 434, 482, 483, 484, 417, 434, 434,
+ 434, 356, 356, 356, 464, 417, 334, 465, 357, 365,
+ 485, 357, 357, 357, 357, 365, 399, 400, 357, 486,
+ 486, 486, 412, 445, 465, 444, 357, 487, 482, 483,
+ 484, 486, 486, 486, 488, 488, 488, 536, 536, 536,
+ 537, 537, 537, 536, 536, 536, 429, 401, 427, 359,
+ 471, 471, 471, 537, 537, 537, 536, 536, 536, 555,
+ 555, 555, 538, 537, 537, 537, 553, 553, 553, 553,
+
+ 553, 553, 555, 555, 555, 538, 565, 565, 565, 425,
+ 472, 473, 423, 300, 474, 538, 304, 422, 554, 300,
+ 300, 554, 304, 304, 475, 555, 555, 555, 566, 566,
+ 566, 474, 475, 477, 477, 477, 477, 477, 477, 477,
+ 477, 477, 477, 477, 477, 477, 477, 477, 477, 477,
+ 477, 477, 567, 568, 569, 421, 477, 477, 477, 477,
+ 553, 553, 553, 477, 356, 356, 356, 570, 570, 570,
+ 419, 357, 366, 418, 357, 357, 357, 357, 366, 399,
+ 400, 357, 554, 565, 565, 565, 573, 573, 573, 357,
+ 566, 566, 566, 565, 565, 565, 566, 566, 566, 567,
+
+ 568, 569, 570, 570, 570, 567, 568, 569, 417, 412,
+ 401, 410, 359, 471, 471, 471, 570, 570, 570, 573,
+ 573, 573, 573, 573, 573, 576, 576, 576, 576, 576,
+ 576, 576, 576, 576, 354, 409, 402, 408, 407, 403,
+ 354, 354, 402, 489, 464, 403, 440, 490, 461, 478,
+ 389, 388, 440, 386, 461, 478, 385, 491, 384, 383,
+ 382, 381, 380, 379, 490, 491, 434, 435, 356, 356,
+ 434, 434, 434, 499, 436, 434, 434, 436, 436, 436,
+ 436, 434, 457, 458, 436, 499, 499, 499, 434, 434,
+ 434, 434, 436, 434, 499, 499, 499, 499, 499, 499,
+
+ 499, 499, 499, 499, 499, 499, 499, 499, 499, 499,
+ 499, 499, 499, 459, 434, 438, 434, 499, 499, 499,
+ 499, 434, 434, 434, 499, 46, 46, 46, 46, 46,
+ 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
+ 46, 46, 46, 46, 46, 46, 46, 46, 47, 47,
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
+ 47, 49, 49, 49, 49, 49, 49, 49, 49, 49,
+ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
+ 49, 49, 49, 49, 53, 53, 53, 53, 53, 53,
+
+ 53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
+ 53, 53, 53, 53, 53, 53, 53, 55, 55, 55,
+ 55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
+ 55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
+ 58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
+ 58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
+ 58, 58, 58, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
+ 59, 59, 59, 59, 59, 59, 61, 61, 61, 61,
+ 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
+
+ 61, 61, 61, 61, 61, 61, 61, 61, 61, 66,
+ 66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
+ 66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
+ 66, 66, 71, 71, 71, 71, 71, 71, 71, 71,
+ 71, 71, 71, 71, 71, 71, 71, 71, 71, 71,
+ 71, 71, 71, 71, 71, 77, 77, 77, 77, 77,
+ 77, 77, 77, 77, 77, 77, 77, 77, 77, 77,
+ 77, 77, 77, 77, 77, 77, 77, 77, 139, 139,
+ 139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
+ 139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
+
+ 139, 143, 143, 143, 143, 143, 143, 143, 143, 143,
+ 143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
+ 143, 143, 143, 143, 150, 150, 150, 150, 150, 150,
+ 150, 371, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 151, 151, 151,
+ 151, 151, 151, 151, 151, 151, 370, 151, 151, 368,
+ 151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
+ 155, 155, 155, 155, 367, 155, 155, 155, 155, 155,
+ 155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
+ 155, 155, 155, 158, 158, 158, 158, 158, 158, 158,
+
+ 313, 158, 158, 158, 158, 158, 158, 158, 158, 158,
+ 158, 158, 158, 158, 158, 158, 159, 159, 159, 159,
+ 159, 159, 159, 225, 159, 159, 159, 159, 159, 159,
+ 159, 159, 159, 159, 159, 159, 159, 159, 159, 168,
+ 168, 168, 168, 168, 168, 168, 350, 168, 168, 168,
+ 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
+ 168, 169, 169, 169, 169, 169, 169, 169, 169, 169,
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
+ 169, 169, 169, 169, 175, 175, 175, 175, 175, 349,
+ 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
+
+ 175, 175, 175, 175, 175, 175, 175, 179, 179, 291,
+ 348, 179, 347, 346, 345, 344, 341, 340, 334, 179,
+ 333, 179, 330, 176, 318, 179, 179, 187, 187, 187,
+ 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
+ 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
+ 215, 317, 250, 225, 297, 291, 288, 287, 215, 285,
+ 272, 271, 176, 260, 215, 215, 220, 167, 250, 220,
+ 248, 247, 220, 220, 246, 220, 245, 244, 242, 220,
+ 220, 220, 227, 241, 231, 228, 221, 217, 214, 213,
+ 227, 212, 194, 193, 186, 156, 227, 227, 234, 176,
+
+ 234, 174, 160, 167, 160, 156, 234, 234, 238, 154,
+ 577, 238, 60, 238, 238, 243, 60, 74, 74, 60,
+ 60, 60, 60, 243, 48, 48, 54, 54, 48, 243,
+ 243, 249, 249, 249, 249, 48, 249, 249, 249, 249,
+ 249, 249, 249, 249, 249, 249, 249, 577, 249, 577,
+ 249, 249, 249, 249, 251, 251, 251, 251, 577, 251,
+ 251, 251, 251, 251, 251, 251, 251, 251, 251, 251,
+ 251, 251, 251, 251, 251, 251, 251, 252, 252, 252,
+ 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
+ 252, 252, 252, 252, 252, 577, 252, 252, 252, 252,
+
+ 255, 577, 577, 577, 577, 577, 577, 577, 255, 577,
+ 577, 577, 577, 577, 255, 255, 257, 257, 577, 577,
+ 257, 577, 577, 577, 577, 577, 577, 577, 257, 577,
+ 257, 577, 577, 577, 257, 257, 259, 577, 577, 259,
+ 577, 577, 259, 259, 577, 259, 577, 577, 577, 259,
+ 259, 259, 261, 261, 261, 261, 261, 261, 261, 261,
+ 261, 261, 261, 261, 261, 261, 261, 261, 261, 261,
+ 261, 261, 261, 261, 261, 268, 577, 577, 577, 577,
+ 577, 577, 577, 268, 577, 577, 577, 577, 577, 268,
+ 268, 289, 577, 577, 289, 577, 577, 289, 289, 577,
+
+ 289, 577, 577, 577, 289, 289, 289, 290, 290, 290,
+ 290, 290, 290, 290, 290, 290, 290, 290, 290, 290,
+ 290, 290, 290, 290, 290, 290, 290, 290, 290, 290,
+ 301, 577, 577, 577, 577, 577, 577, 577, 301, 577,
+ 577, 577, 577, 577, 301, 301, 302, 302, 577, 302,
+ 302, 302, 302, 302, 302, 302, 302, 302, 302, 302,
+ 302, 302, 302, 302, 302, 302, 302, 302, 302, 306,
+ 577, 577, 306, 577, 577, 306, 306, 577, 306, 577,
+ 577, 577, 306, 306, 306, 234, 577, 234, 577, 577,
+ 577, 577, 577, 234, 234, 311, 577, 577, 577, 577,
+
+ 311, 311, 577, 311, 577, 577, 577, 577, 577, 311,
+ 311, 311, 243, 577, 577, 577, 577, 577, 577, 577,
+ 243, 577, 577, 577, 577, 577, 243, 243, 249, 249,
+ 249, 249, 577, 249, 249, 249, 249, 249, 249, 249,
+ 249, 249, 249, 249, 577, 249, 577, 249, 249, 249,
+ 249, 251, 251, 251, 251, 251, 251, 251, 251, 251,
+ 251, 251, 251, 251, 251, 251, 251, 251, 251, 251,
+ 251, 251, 251, 251, 252, 252, 252, 252, 252, 252,
+ 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
+ 252, 252, 252, 252, 252, 252, 252, 255, 577, 577,
+
+ 577, 577, 577, 577, 577, 255, 577, 577, 577, 577,
+ 577, 255, 255, 257, 257, 577, 577, 257, 577, 577,
+ 577, 577, 577, 577, 577, 257, 577, 257, 577, 577,
+ 577, 257, 257, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 357, 357, 577, 577,
+ 357, 357, 577, 357, 357, 357, 357, 357, 357, 577,
+ 577, 577, 577, 357, 357, 357, 357, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+
+ 397, 577, 577, 577, 577, 397, 397, 577, 397, 577,
+ 577, 577, 577, 577, 397, 397, 397, 411, 411, 411,
+ 411, 411, 411, 411, 411, 411, 411, 411, 411, 577,
+ 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
+ 436, 436, 436, 436, 436, 436, 436, 436, 436, 436,
+ 436, 436, 436, 436, 436, 436, 436, 436, 436, 436,
+ 436, 436, 436, 460, 460, 577, 577, 460, 460, 577,
+ 460, 460, 460, 460, 460, 460, 577, 577, 577, 577,
+ 460, 460, 460, 460, 45, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577
+ } ;
+
+static const flex_int16_t yy_chk[2845] =
+ { 0,
+ 0, 0, 23, 19, 5, 9, 5, 23, 5, 5,
+ 10, 19, 0, 5, 5, 57, 5, 21, 5, 17,
+ 17, 17, 22, 0, 5, 5, 5, 5, 18, 18,
+ 18, 0, 24, 37, 17, 129, 20, 24, 129, 31,
+ 31, 31, 51, 18, 20, 31, 87, 51, 9, 19,
+ 5, 37, 37, 10, 37, 21, 5, 6, 57, 6,
+ 22, 6, 6, 87, 95, 38, 6, 6, 81, 6,
+ 31, 6, 39, 39, 39, 95, 81, 6, 6, 6,
+ 6, 572, 20, 38, 38, 108, 38, 62, 62, 62,
+ 63, 63, 63, 108, 39, 83, 83, 83, 97, 63,
+
+ 83, 152, 62, 6, 564, 63, 152, 97, 97, 6,
+ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
+ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
+ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
+ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
+ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
+ 29, 29, 29, 29, 29, 29, 29, 29, 29, 32,
+ 32, 32, 40, 40, 40, 32, 64, 64, 64, 80,
+ 560, 94, 80, 130, 130, 64, 94, 84, 84, 84,
+ 98, 64, 84, 94, 40, 559, 98, 98, 98, 80,
+
+ 32, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
+ 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
+ 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
+ 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
+
+ 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
+ 35, 35, 35, 35, 35, 35, 35, 35, 35, 41,
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
+ 41, 41, 41, 41, 41, 41, 41, 41, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 69, 69, 76,
+ 76, 76, 551, 88, 88, 185, 99, 88, 115, 115,
+ 115, 99, 100, 115, 100, 100, 100, 88, 99, 170,
+ 170, 76, 185, 69, 88, 88, 126, 100, 126, 126,
+ 126, 69, 69, 101, 382, 101, 101, 101, 116, 116,
+ 116, 100, 382, 116, 120, 181, 191, 181, 101, 100,
+ 119, 191, 119, 550, 119, 119, 120, 120, 120, 119,
+
+ 119, 271, 119, 128, 119, 128, 128, 128, 271, 195,
+ 119, 119, 119, 119, 195, 144, 144, 144, 128, 264,
+ 264, 119, 149, 149, 149, 161, 161, 161, 279, 188,
+ 162, 162, 162, 188, 188, 279, 119, 144, 119, 162,
+ 161, 547, 119, 219, 149, 162, 164, 164, 164, 167,
+ 167, 167, 178, 178, 178, 164, 179, 179, 179, 223,
+ 219, 164, 282, 223, 167, 184, 184, 184, 189, 282,
+ 184, 224, 189, 189, 178, 224, 640, 640, 179, 187,
+ 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
+ 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
+
+ 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
+ 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
+ 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
+ 187, 187, 187, 187, 187, 187, 187, 187, 204, 204,
+ 204, 208, 247, 208, 208, 208, 209, 247, 209, 209,
+ 209, 204, 210, 546, 210, 377, 208, 210, 210, 210,
+ 377, 209, 218, 218, 218, 544, 543, 218, 222, 542,
+ 222, 386, 222, 222, 226, 226, 226, 222, 222, 386,
+ 222, 541, 222, 230, 230, 230, 238, 238, 222, 222,
+ 222, 222, 260, 260, 260, 232, 230, 232, 232, 232,
+
+ 233, 260, 233, 233, 233, 330, 235, 260, 235, 457,
+ 232, 235, 235, 235, 222, 233, 388, 238, 535, 457,
+ 222, 228, 330, 228, 388, 228, 228, 253, 253, 253,
+ 228, 228, 533, 228, 393, 228, 256, 256, 256, 393,
+ 346, 228, 228, 228, 228, 269, 257, 257, 257, 253,
+ 261, 261, 261, 269, 262, 262, 262, 346, 256, 263,
+ 263, 263, 269, 532, 464, 261, 464, 228, 257, 262,
+ 278, 278, 278, 228, 263, 273, 273, 273, 273, 273,
+ 273, 273, 273, 273, 273, 273, 273, 273, 273, 273,
+ 273, 273, 273, 273, 293, 293, 293, 531, 481, 273,
+
+ 273, 273, 294, 294, 294, 481, 528, 293, 295, 295,
+ 295, 298, 305, 298, 305, 298, 298, 305, 305, 305,
+ 298, 298, 527, 298, 307, 298, 307, 307, 307, 311,
+ 311, 298, 298, 298, 298, 309, 309, 309, 308, 307,
+ 308, 308, 308, 310, 310, 310, 314, 314, 314, 317,
+ 317, 317, 495, 308, 333, 333, 333, 298, 502, 495,
+ 311, 314, 412, 298, 303, 526, 303, 412, 303, 303,
+ 473, 317, 473, 303, 303, 502, 303, 474, 303, 318,
+ 318, 318, 474, 522, 303, 303, 303, 303, 319, 319,
+ 319, 320, 320, 320, 314, 521, 333, 319, 334, 334,
+
+ 320, 318, 520, 319, 517, 516, 320, 479, 510, 334,
+ 303, 321, 321, 321, 334, 479, 303, 323, 323, 323,
+ 321, 322, 322, 322, 479, 510, 321, 335, 335, 335,
+ 322, 515, 323, 336, 336, 336, 322, 337, 337, 337,
+ 349, 349, 349, 514, 334, 351, 351, 351, 352, 490,
+ 352, 352, 352, 353, 490, 353, 353, 353, 512, 523,
+ 355, 355, 524, 352, 356, 356, 356, 523, 353, 534,
+ 524, 357, 357, 357, 360, 360, 360, 534, 599, 356,
+ 545, 513, 349, 350, 350, 350, 357, 350, 545, 350,
+ 350, 355, 599, 599, 350, 350, 360, 350, 513, 350,
+
+ 358, 358, 358, 525, 511, 350, 350, 350, 350, 359,
+ 359, 359, 356, 397, 397, 358, 362, 362, 362, 357,
+ 525, 364, 364, 364, 359, 359, 367, 367, 367, 350,
+ 364, 350, 368, 368, 368, 509, 364, 350, 362, 372,
+ 372, 372, 374, 374, 397, 376, 376, 508, 358, 507,
+ 378, 378, 378, 374, 368, 359, 376, 359, 374, 438,
+ 438, 376, 378, 390, 390, 390, 394, 378, 394, 394,
+ 394, 395, 506, 395, 395, 395, 505, 399, 399, 399,
+ 396, 372, 396, 396, 396, 504, 395, 615, 374, 503,
+ 438, 376, 399, 615, 501, 396, 500, 378, 401, 401,
+
+ 401, 497, 399, 496, 494, 390, 398, 398, 398, 398,
+ 398, 398, 398, 401, 616, 398, 398, 404, 404, 404,
+ 616, 398, 398, 492, 491, 399, 617, 489, 398, 398,
+ 398, 398, 617, 398, 487, 405, 405, 405, 407, 407,
+ 407, 408, 408, 408, 485, 480, 401, 427, 427, 427,
+ 431, 431, 431, 621, 398, 398, 398, 405, 475, 621,
+ 407, 398, 398, 398, 400, 400, 400, 443, 443, 443,
+ 400, 400, 636, 472, 400, 400, 400, 400, 636, 400,
+ 400, 400, 400, 400, 400, 444, 444, 444, 465, 400,
+ 456, 400, 400, 400, 400, 400, 400, 400, 400, 400,
+
+ 400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
+ 400, 455, 400, 452, 400, 400, 400, 400, 414, 414,
+ 414, 400, 415, 415, 415, 416, 416, 416, 450, 432,
+ 414, 432, 432, 432, 415, 414, 448, 416, 446, 415,
+ 437, 430, 416, 433, 433, 433, 441, 441, 441, 429,
+ 445, 445, 445, 449, 449, 449, 433, 451, 451, 451,
+ 454, 454, 454, 493, 637, 414, 428, 426, 441, 415,
+ 637, 493, 416, 434, 434, 434, 434, 434, 434, 434,
+ 493, 445, 434, 434, 445, 462, 462, 462, 434, 434,
+ 466, 466, 466, 638, 425, 434, 434, 434, 434, 638,
+
+ 434, 445, 424, 463, 463, 463, 423, 467, 467, 467,
+ 468, 468, 468, 469, 469, 469, 476, 476, 476, 422,
+ 420, 434, 434, 434, 482, 482, 482, 419, 434, 434,
+ 434, 439, 439, 439, 463, 418, 413, 463, 439, 642,
+ 466, 439, 439, 439, 439, 642, 439, 439, 439, 483,
+ 483, 483, 411, 410, 463, 409, 439, 467, 484, 484,
+ 484, 486, 486, 486, 488, 488, 488, 518, 518, 518,
+ 519, 519, 519, 529, 529, 529, 391, 439, 389, 439,
+ 453, 453, 453, 530, 530, 530, 536, 536, 536, 540,
+ 540, 540, 519, 537, 537, 537, 539, 539, 539, 548,
+
+ 548, 548, 549, 549, 549, 530, 552, 552, 552, 387,
+ 453, 453, 385, 622, 453, 537, 625, 384, 539, 622,
+ 622, 548, 625, 625, 453, 555, 555, 555, 556, 556,
+ 556, 453, 453, 458, 458, 458, 458, 458, 458, 458,
+ 458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
+ 458, 458, 557, 557, 557, 383, 458, 458, 458, 458,
+ 553, 553, 553, 458, 460, 460, 460, 558, 558, 558,
+ 381, 460, 643, 380, 460, 460, 460, 460, 643, 460,
+ 460, 460, 553, 561, 561, 561, 562, 562, 562, 460,
+ 563, 563, 563, 565, 565, 565, 566, 566, 566, 567,
+
+ 567, 567, 568, 568, 568, 569, 569, 569, 379, 375,
+ 460, 373, 460, 470, 470, 470, 570, 570, 570, 571,
+ 571, 571, 573, 573, 573, 574, 574, 574, 575, 575,
+ 575, 576, 576, 576, 639, 371, 646, 370, 369, 647,
+ 639, 639, 646, 470, 470, 647, 650, 470, 652, 653,
+ 348, 347, 650, 345, 652, 653, 344, 470, 343, 342,
+ 341, 340, 339, 338, 470, 470, 477, 477, 477, 477,
+ 477, 477, 477, 477, 477, 477, 477, 477, 477, 477,
+ 477, 477, 477, 477, 477, 477, 477, 477, 477, 477,
+ 477, 477, 477, 477, 477, 477, 477, 477, 477, 477,
+
+ 477, 477, 477, 477, 477, 477, 477, 477, 477, 477,
+ 477, 477, 477, 477, 477, 477, 477, 477, 477, 477,
+ 477, 477, 477, 477, 477, 578, 578, 578, 578, 578,
+ 578, 578, 578, 578, 578, 578, 578, 578, 578, 578,
+ 578, 578, 578, 578, 578, 578, 578, 578, 579, 579,
+ 579, 579, 579, 579, 579, 579, 579, 579, 579, 579,
+ 579, 579, 579, 579, 579, 579, 579, 579, 579, 579,
+ 579, 580, 580, 580, 580, 580, 580, 580, 580, 580,
+ 580, 580, 580, 580, 580, 580, 580, 580, 580, 580,
+ 580, 580, 580, 580, 581, 581, 581, 581, 581, 581,
+
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 582, 582, 582,
+ 582, 582, 582, 582, 582, 582, 582, 582, 582, 582,
+ 582, 582, 582, 582, 582, 582, 582, 582, 582, 582,
+ 583, 583, 583, 583, 583, 583, 583, 583, 583, 583,
+ 583, 583, 583, 583, 583, 583, 583, 583, 583, 583,
+ 583, 583, 583, 584, 584, 584, 584, 584, 584, 584,
+ 584, 584, 584, 584, 584, 584, 584, 584, 584, 584,
+ 584, 584, 584, 584, 584, 584, 585, 585, 585, 585,
+ 585, 585, 585, 585, 585, 585, 585, 585, 585, 585,
+
+ 585, 585, 585, 585, 585, 585, 585, 585, 585, 586,
+ 586, 586, 586, 586, 586, 586, 586, 586, 586, 586,
+ 586, 586, 586, 586, 586, 586, 586, 586, 586, 586,
+ 586, 586, 587, 587, 587, 587, 587, 587, 587, 587,
+ 587, 587, 587, 587, 587, 587, 587, 587, 587, 587,
+ 587, 587, 587, 587, 587, 588, 588, 588, 588, 588,
+ 588, 588, 588, 588, 588, 588, 588, 588, 588, 588,
+ 588, 588, 588, 588, 588, 588, 588, 588, 589, 589,
+ 589, 589, 589, 589, 589, 589, 589, 589, 589, 589,
+ 589, 589, 589, 589, 589, 589, 589, 589, 589, 589,
+
+ 589, 590, 590, 590, 590, 590, 590, 590, 590, 590,
+ 590, 590, 590, 590, 590, 590, 590, 590, 590, 590,
+ 590, 590, 590, 590, 591, 591, 591, 591, 591, 591,
+ 591, 332, 591, 591, 591, 591, 591, 591, 591, 591,
+ 591, 591, 591, 591, 591, 591, 591, 592, 592, 592,
+ 592, 592, 592, 592, 592, 592, 331, 592, 592, 329,
+ 592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
+ 593, 593, 593, 593, 328, 593, 593, 593, 593, 593,
+ 593, 593, 593, 593, 593, 593, 593, 593, 593, 593,
+ 593, 593, 593, 594, 594, 594, 594, 594, 594, 594,
+
+ 312, 594, 594, 594, 594, 594, 594, 594, 594, 594,
+ 594, 594, 594, 594, 594, 594, 595, 595, 595, 595,
+ 595, 595, 595, 301, 595, 595, 595, 595, 595, 595,
+ 595, 595, 595, 595, 595, 595, 595, 595, 595, 596,
+ 596, 596, 596, 596, 596, 596, 299, 596, 596, 596,
+ 596, 596, 596, 596, 596, 596, 596, 596, 596, 596,
+ 596, 597, 597, 597, 597, 597, 597, 597, 597, 597,
+ 597, 597, 597, 597, 597, 597, 597, 597, 597, 597,
+ 597, 597, 597, 597, 598, 598, 598, 598, 598, 297,
+ 598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
+
+ 598, 598, 598, 598, 598, 598, 598, 600, 600, 290,
+ 287, 600, 286, 285, 284, 283, 281, 280, 276, 600,
+ 272, 600, 270, 268, 252, 600, 600, 601, 601, 601,
+ 601, 601, 601, 601, 601, 601, 601, 601, 601, 601,
+ 601, 601, 601, 601, 601, 601, 601, 601, 601, 601,
+ 602, 251, 249, 227, 216, 206, 202, 192, 602, 190,
+ 183, 182, 177, 166, 602, 602, 603, 163, 139, 603,
+ 138, 137, 603, 603, 136, 603, 135, 134, 132, 603,
+ 603, 603, 604, 131, 127, 125, 117, 112, 106, 105,
+ 604, 104, 90, 89, 85, 74, 604, 604, 605, 73,
+
+ 605, 70, 68, 65, 60, 54, 605, 605, 606, 52,
+ 45, 606, 28, 606, 606, 607, 27, 26, 25, 16,
+ 15, 14, 13, 607, 12, 11, 8, 7, 4, 607,
+ 607, 608, 608, 608, 608, 3, 608, 608, 608, 608,
+ 608, 608, 608, 608, 608, 608, 608, 0, 608, 0,
+ 608, 608, 608, 608, 609, 609, 609, 609, 0, 609,
+ 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
+ 609, 609, 609, 609, 609, 609, 609, 610, 610, 610,
+ 610, 610, 610, 610, 610, 610, 610, 610, 610, 610,
+ 610, 610, 610, 610, 610, 0, 610, 610, 610, 610,
+
+ 611, 0, 0, 0, 0, 0, 0, 0, 611, 0,
+ 0, 0, 0, 0, 611, 611, 612, 612, 0, 0,
+ 612, 0, 0, 0, 0, 0, 0, 0, 612, 0,
+ 612, 0, 0, 0, 612, 612, 613, 0, 0, 613,
+ 0, 0, 613, 613, 0, 613, 0, 0, 0, 613,
+ 613, 613, 614, 614, 614, 614, 614, 614, 614, 614,
+ 614, 614, 614, 614, 614, 614, 614, 614, 614, 614,
+ 614, 614, 614, 614, 614, 618, 0, 0, 0, 0,
+ 0, 0, 0, 618, 0, 0, 0, 0, 0, 618,
+ 618, 619, 0, 0, 619, 0, 0, 619, 619, 0,
+
+ 619, 0, 0, 0, 619, 619, 619, 620, 620, 620,
+ 620, 620, 620, 620, 620, 620, 620, 620, 620, 620,
+ 620, 620, 620, 620, 620, 620, 620, 620, 620, 620,
+ 623, 0, 0, 0, 0, 0, 0, 0, 623, 0,
+ 0, 0, 0, 0, 623, 623, 624, 624, 0, 624,
+ 624, 624, 624, 624, 624, 624, 624, 624, 624, 624,
+ 624, 624, 624, 624, 624, 624, 624, 624, 624, 626,
+ 0, 0, 626, 0, 0, 626, 626, 0, 626, 0,
+ 0, 0, 626, 626, 626, 627, 0, 627, 0, 0,
+ 0, 0, 0, 627, 627, 628, 0, 0, 0, 0,
+
+ 628, 628, 0, 628, 0, 0, 0, 0, 0, 628,
+ 628, 628, 629, 0, 0, 0, 0, 0, 0, 0,
+ 629, 0, 0, 0, 0, 0, 629, 629, 630, 630,
+ 630, 630, 0, 630, 630, 630, 630, 630, 630, 630,
+ 630, 630, 630, 630, 0, 630, 0, 630, 630, 630,
+ 630, 631, 631, 631, 631, 631, 631, 631, 631, 631,
+ 631, 631, 631, 631, 631, 631, 631, 631, 631, 631,
+ 631, 631, 631, 631, 632, 632, 632, 632, 632, 632,
+ 632, 632, 632, 632, 632, 632, 632, 632, 632, 632,
+ 632, 632, 632, 632, 632, 632, 632, 633, 0, 0,
+
+ 0, 0, 0, 0, 0, 633, 0, 0, 0, 0,
+ 0, 633, 633, 634, 634, 0, 0, 634, 0, 0,
+ 0, 0, 0, 0, 0, 634, 0, 634, 0, 0,
+ 0, 634, 634, 635, 635, 635, 635, 635, 635, 635,
+ 635, 635, 635, 635, 635, 635, 635, 635, 635, 635,
+ 635, 635, 635, 635, 635, 635, 641, 641, 0, 0,
+ 641, 641, 0, 641, 641, 641, 641, 641, 641, 0,
+ 0, 0, 0, 641, 641, 641, 641, 644, 644, 644,
+ 644, 644, 644, 644, 644, 644, 644, 644, 644, 644,
+ 644, 644, 644, 644, 644, 644, 644, 644, 644, 644,
+
+ 645, 0, 0, 0, 0, 645, 645, 0, 645, 0,
+ 0, 0, 0, 0, 645, 645, 645, 648, 648, 648,
+ 648, 648, 648, 648, 648, 648, 648, 648, 648, 0,
+ 648, 648, 648, 648, 648, 648, 648, 648, 648, 648,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 651, 651, 0, 0, 651, 651, 0,
+ 651, 651, 651, 651, 651, 651, 0, 0, 0, 0,
+ 651, 651, 651, 651, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
+ 577, 577, 577, 577
+ } ;
+
+/* Table of booleans, true if rule could match eol. */
+static const flex_int32_t yy_rule_can_match_eol[143] =
+ { 0,
+1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1,
+ 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1,
+ 1, 1, 0, };
+
+static yy_state_type yy_last_accepting_state;
+static char *yy_last_accepting_cpos;
+
+extern int yy_flex_debug;
+int yy_flex_debug = 0;
+
+/* The intent behind this definition is that it'll catch
+ * any uses of REJECT which flex missed.
+ */
+#define REJECT reject_used_but_not_detected
+#define yymore() yymore_used_but_not_detected
+#define YY_MORE_ADJ 0
+#define YY_RESTORE_YY_MORE_OFFSET
+char *yytext;
+#line 1 "pgc.l"
+
+#line 33 "pgc.l"
+
+/* LCOV_EXCL_START */
+
+extern YYSTYPE base_yylval;
+
+static int xcdepth = 0; /* depth of nesting in slash-star comments */
+static char *dolqstart = NULL; /* current $foo$ quote start string */
+
+/*
+ * literalbuf is used to accumulate literal values when multiple rules
+ * are needed to parse a single literal. Call startlit to reset buffer
+ * to empty, addlit to add text. Note that the buffer is permanently
+ * malloc'd to the largest size needed so far in the current run.
+ */
+static char *literalbuf = NULL; /* expandable buffer */
+static int literallen; /* actual current length */
+static int literalalloc; /* current allocated buffer size */
+
+/* Used for detecting global state together with braces_open */
+static int parenths_open;
+
+/* Used to tell parse_include() whether the command was #include or #include_next */
+static bool include_next;
+
+#define startlit() (literalbuf[0] = '\0', literallen = 0)
+static void addlit(char *ytext, int yleng);
+static void addlitchar(unsigned char);
+static int process_integer_literal(const char *token, YYSTYPE *lval);
+static void parse_include(void);
+static bool ecpg_isspace(char ch);
+static bool isdefine(void);
+static bool isinformixdefine(void);
+
+char *token_start;
+
+/* vars to keep track of start conditions when scanning literals */
+static int state_before_str_start;
+static int state_before_str_stop;
+
+struct _yy_buffer
+{
+ YY_BUFFER_STATE buffer;
+ long lineno;
+ char *filename;
+ struct _yy_buffer *next;
+} *yy_buffer = NULL;
+
+static char *old;
+
+/*
+ * Vars for handling ifdef/elif/endif constructs. preproc_tos is the current
+ * nesting depth of such constructs, and stacked_if_value[preproc_tos] is the
+ * state for the innermost level. (For convenience, stacked_if_value[0] is
+ * initialized as though we are in the active branch of some outermost IF.)
+ * The active field is true if the current branch is active (being expanded).
+ * The saw_active field is true if we have found any successful branch,
+ * so that all subsequent branches of this level should be skipped.
+ * The else_branch field is true if we've found an 'else' (so that another
+ * 'else' or 'elif' at this level is an error.)
+ * For IFs nested within an inactive branch, all branches always have active
+ * set to false, but saw_active and else_branch are maintained normally.
+ * ifcond is valid only while evaluating an if-condition; it's true if we
+ * are doing ifdef, false if ifndef.
+ */
+#define MAX_NESTED_IF 128
+static short preproc_tos;
+static bool ifcond;
+static struct _if_value
+{
+ bool active;
+ bool saw_active;
+ bool else_branch;
+} stacked_if_value[MAX_NESTED_IF];
+
+#line 1672 "pgc.c"
+#define YY_NO_INPUT 1
+/*
+ * OK, here is a short description of lex/flex rules behavior.
+ * The longest pattern which matches an input string is always chosen.
+ * For equal-length patterns, the first occurring in the rules list is chosen.
+ * INITIAL is the starting state, to which all non-conditional rules apply.
+ * Exclusive states change parsing rules while the state is active. When in
+ * an exclusive state, only those rules defined for that state apply.
+ *
+ * We use exclusive states for quoted strings, extended comments,
+ * and to eliminate parsing troubles for numeric strings.
+ * Exclusive states:
+ * <xb> bit string literal
+ * <xc> extended C-style comments
+ * <xd> delimited identifiers (double-quoted identifiers)
+ * <xdc> double-quoted strings in C
+ * <xh> hexadecimal byte string
+ * <xn> national character quoted strings
+ * <xq> standard quoted strings
+ * <xqs> quote stop (detect continued strings)
+ * <xe> extended quoted strings (support backslash escape sequences)
+ * <xqc> single-quoted strings in C
+ * <xdolq> $foo$ quoted strings
+ * <xui> quoted identifier with Unicode escapes
+ * <xus> quoted string with Unicode escapes
+ * <xcond> condition of an EXEC SQL IFDEF construct
+ * <xskip> skipping the inactive part of an EXEC SQL IFDEF construct
+ *
+ * Note: we intentionally don't mimic the backend's <xeu> state; we have
+ * no need to distinguish it from <xe> state.
+ *
+ * Remember to add an <<EOF>> case whenever you add a new exclusive state!
+ * The default one is probably not the right thing.
+ */
+
+/* Additional exclusive states that are specific to ECPG */
+
+/*
+ * In order to make the world safe for Windows and Mac clients as well as
+ * Unix ones, we accept either \n or \r as a newline. A DOS-style \r\n
+ * sequence will be seen as two successive newlines, but that doesn't cause
+ * any problems. SQL-style comments, which start with -- and extend to the
+ * next newline, are treated as equivalent to a single whitespace character.
+ *
+ * NOTE a fine point: if there is no newline following --, we will absorb
+ * everything to the end of the input as a comment. This is correct. Older
+ * versions of Postgres failed to recognize -- as a comment if the input
+ * did not end with a newline.
+ *
+ * XXX perhaps \f (formfeed) should be treated as a newline as well?
+ *
+ * XXX if you change the set of whitespace characters, fix ecpg_isspace()
+ * to agree.
+ */
+/*
+ * SQL requires at least one newline in the whitespace separating
+ * string literals that are to be concatenated. Silly, but who are we
+ * to argue? Note that {whitespace_with_newline} should not have * after
+ * it, whereas {whitespace} should generally have a * after it...
+ */
+/* If we see {quote} then {quotecontinue}, the quoted string continues */
+/*
+ * {quotecontinuefail} is needed to avoid lexer backup when we fail to match
+ * {quotecontinue}. It might seem that this could just be {whitespace}*,
+ * but if there's a dash after {whitespace_with_newline}, it must be consumed
+ * to see if there's another dash --- which would start a {comment} and thus
+ * allow continuation of the {quotecontinue} token.
+ */
+/* Bit string
+ */
+/* Hexadecimal byte string */
+/* National character */
+/* Quoted string that allows backslash escapes */
+/* Extended quote
+ * xqdouble implements embedded quote, ''''
+ */
+/* $foo$ style quotes ("dollar quoting")
+ * The quoted string starts with $foo$ where "foo" is an optional string
+ * in the form of an identifier, except that it may not contain "$",
+ * and extends to the first occurrence of an identical string.
+ * There is *no* processing of the quoted text.
+ *
+ * {dolqfailed} is an error rule to avoid scanner backup when {dolqdelim}
+ * fails to match its trailing "$".
+ */
+/* Double quote
+ * Allows embedded spaces and other special characters into identifiers.
+ */
+/* Quoted identifier with Unicode escapes */
+/* Quoted string with Unicode escapes */
+/* special stuff for C strings */
+/* C-style comments
+ *
+ * The "extended comment" syntax closely resembles allowable operator syntax.
+ * The tricky part here is to get lex to recognize a string starting with
+ * slash-star as a comment, when interpreting it as an operator would produce
+ * a longer match --- remember lex will prefer a longer match! Also, if we
+ * have something like plus-slash-star, lex will think this is a 3-character
+ * operator whereas we want to see it as a + operator and a comment start.
+ * The solution is two-fold:
+ * 1. append {op_chars}* to xcstart so that it matches as much text as
+ * {operator} would. Then the tie-breaker (first matching rule of same
+ * length) ensures xcstart wins. We put back the extra stuff with yyless()
+ * in case it contains a star-slash that should terminate the comment.
+ * 2. In the operator rule, check for slash-star within the operator, and
+ * if found throw it back with yyless(). This handles the plus-slash-star
+ * problem.
+ * Dash-dash comments have similar interactions with the operator rule.
+ */
+/* Assorted special-case operators and operator-like tokens */
+/*
+ * These operator-like tokens (unlike the above ones) also match the {operator}
+ * rule, which means that they might be overridden by a longer match if they
+ * are followed by a comment start or a + or - character. Accordingly, if you
+ * add to this list, you must also add corresponding code to the {operator}
+ * block to return the correct token in such cases. (This is not needed in
+ * psqlscan.l since the token value is ignored there.)
+ */
+/*
+ * "self" is the set of chars that should be returned as single-character
+ * tokens. "op_chars" is the set of chars that can make up "Op" tokens,
+ * which can be one or more characters long (but if a single-char token
+ * appears in the "self" set, it is not to be returned as an Op). Note
+ * that the sets overlap, but each has some chars that are not in the other.
+ *
+ * If you change either set, adjust the character lists appearing in the
+ * rule for "operator"!
+ */
+/*
+ * Numbers
+ *
+ * Unary minus is not part of a number here. Instead we pass it separately to
+ * the parser, and there it gets coerced via doNegate().
+ *
+ * {decimalfail} is used because we would like "1..10" to lex as 1, dot_dot, 10.
+ *
+ * {realfail} is added to prevent the need for scanner
+ * backup when the {real} rule fails to match completely.
+ */
+/* special characters for other dbms */
+/* we have to react differently in compat mode */
+/*
+ * Dollar quoted strings are totally opaque, and no escaping is done on them.
+ * Other quoted strings must allow some special characters such as single-quote
+ * and newline.
+ * Embedded single-quotes are implemented both in the SQL standard
+ * style of two adjacent single quotes "''" and in the Postgres/Java style
+ * of escaped-quote "\'".
+ * Other embedded escaped characters are matched explicitly and the leading
+ * backslash is dropped from the string.
+ * Note that xcstart must appear before operator, as explained above!
+ * Also whitespace (comment) must appear before operator.
+ */
+/* some stuff needed for ecpg */
+/* C version of hex number */
+/* we might want to parse all cpp include files */
+/* take care of cpp lines, they may also be continued */
+/* first a general line for all commands not starting with "i" */
+/* and then the other commands starting with "i", we have to add these
+ * separately because the cppline production would match on "include" too
+ */
+#line 1834 "pgc.c"
+
+#define INITIAL 0
+#define xb 1
+#define xc 2
+#define xd 3
+#define xdc 4
+#define xh 5
+#define xn 6
+#define xq 7
+#define xqs 8
+#define xe 9
+#define xqc 10
+#define xdolq 11
+#define xui 12
+#define xus 13
+#define xcond 14
+#define xskip 15
+#define C 16
+#define SQL 17
+#define incl 18
+#define def 19
+#define def_ident 20
+#define undef 21
+
+#ifndef YY_NO_UNISTD_H
+/* Special case for "unistd.h", since it is non-ANSI. We include it way
+ * down here because we want the user's section 1 to have been scanned first.
+ * The user has a chance to override it with an option.
+ */
+#include <unistd.h>
+#endif
+
+#ifndef YY_EXTRA_TYPE
+#define YY_EXTRA_TYPE void *
+#endif
+
+static int yy_init_globals ( void );
+
+/* Accessor methods to globals.
+ These are made visible to non-reentrant scanners for convenience. */
+
+int yylex_destroy ( void );
+
+int yyget_debug ( void );
+
+void yyset_debug ( int debug_flag );
+
+YY_EXTRA_TYPE yyget_extra ( void );
+
+void yyset_extra ( YY_EXTRA_TYPE user_defined );
+
+FILE *yyget_in ( void );
+
+void yyset_in ( FILE * _in_str );
+
+FILE *yyget_out ( void );
+
+void yyset_out ( FILE * _out_str );
+
+ int yyget_leng ( void );
+
+char *yyget_text ( void );
+
+int yyget_lineno ( void );
+
+void yyset_lineno ( int _line_number );
+
+/* Macros after this point can all be overridden by user definitions in
+ * section 1.
+ */
+
+#ifndef YY_SKIP_YYWRAP
+#ifdef __cplusplus
+extern "C" int yywrap ( void );
+#else
+extern int yywrap ( void );
+#endif
+#endif
+
+#ifndef YY_NO_UNPUT
+
+ static void yyunput ( int c, char *buf_ptr );
+
+#endif
+
+#ifndef yytext_ptr
+static void yy_flex_strncpy ( char *, const char *, int );
+#endif
+
+#ifdef YY_NEED_STRLEN
+static int yy_flex_strlen ( const char * );
+#endif
+
+#ifndef YY_NO_INPUT
+#ifdef __cplusplus
+static int yyinput ( void );
+#else
+static int input ( void );
+#endif
+
+#endif
+
+/* Amount of stuff to slurp up with each read. */
+#ifndef YY_READ_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k */
+#define YY_READ_BUF_SIZE 16384
+#else
+#define YY_READ_BUF_SIZE 8192
+#endif /* __ia64__ */
+#endif
+
+/* Copy whatever the last rule matched to the standard output. */
+#ifndef ECHO
+/* This used to be an fputs(), but since the string might contain NUL's,
+ * we now use fwrite().
+ */
+#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
+#endif
+
+/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
+ * is returned in "result".
+ */
+#ifndef YY_INPUT
+#define YY_INPUT(buf,result,max_size) \
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
+ { \
+ int c = '*'; \
+ int n; \
+ for ( n = 0; n < max_size && \
+ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
+ buf[n] = (char) c; \
+ if ( c == '\n' ) \
+ buf[n++] = (char) c; \
+ if ( c == EOF && ferror( yyin ) ) \
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
+ result = n; \
+ } \
+ else \
+ { \
+ errno=0; \
+ while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
+ { \
+ if( errno != EINTR) \
+ { \
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
+ break; \
+ } \
+ errno=0; \
+ clearerr(yyin); \
+ } \
+ }\
+\
+
+#endif
+
+/* No semi-colon after return; correct usage is to write "yyterminate();" -
+ * we don't want an extra ';' after the "return" because that will cause
+ * some compilers to complain about unreachable statements.
+ */
+#ifndef yyterminate
+#define yyterminate() return YY_NULL
+#endif
+
+/* Number of entries by which start-condition stack grows. */
+#ifndef YY_START_STACK_INCR
+#define YY_START_STACK_INCR 25
+#endif
+
+/* Report a fatal error. */
+#ifndef YY_FATAL_ERROR
+#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
+#endif
+
+/* end tables serialization structures and prototypes */
+
+/* Default declaration of generated scanner - a define so the user can
+ * easily add parameters.
+ */
+#ifndef YY_DECL
+#define YY_DECL_IS_OURS 1
+
+extern int yylex (void);
+
+#define YY_DECL int yylex (void)
+#endif /* !YY_DECL */
+
+/* Code executed at the beginning of each rule, after yytext and yyleng
+ * have been set up.
+ */
+#ifndef YY_USER_ACTION
+#define YY_USER_ACTION
+#endif
+
+/* Code executed at the end of each rule. */
+#ifndef YY_BREAK
+#define YY_BREAK /*LINTED*/break;
+#endif
+
+#define YY_RULE_SETUP \
+ YY_USER_ACTION
+
+/** The main scanner function which does all the work.
+ */
+YY_DECL
+{
+ yy_state_type yy_current_state;
+ char *yy_cp, *yy_bp;
+ int yy_act;
+
+ if ( !(yy_init) )
+ {
+ (yy_init) = 1;
+
+#ifdef YY_USER_INIT
+ YY_USER_INIT;
+#endif
+
+ if ( ! (yy_start) )
+ (yy_start) = 1; /* first start state */
+
+ if ( ! yyin )
+ yyin = stdin;
+
+ if ( ! yyout )
+ yyout = stdout;
+
+ if ( ! YY_CURRENT_BUFFER ) {
+ yyensure_buffer_stack ();
+ YY_CURRENT_BUFFER_LVALUE =
+ yy_create_buffer( yyin, YY_BUF_SIZE );
+ }
+
+ yy_load_buffer_state( );
+ }
+
+ {
+#line 431 "pgc.l"
+
+
+
+#line 435 "pgc.l"
+ /* code to execute during start of each call of yylex() */
+ token_start = NULL;
+
+
+#line 2081 "pgc.c"
+
+ while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
+ {
+ yy_cp = (yy_c_buf_p);
+
+ /* Support of yytext. */
+ *yy_cp = (yy_hold_char);
+
+ /* yy_bp points to the position in yy_ch_buf of the start of
+ * the current run.
+ */
+ yy_bp = yy_cp;
+
+ yy_current_state = (yy_start);
+yy_match:
+ do
+ {
+ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
+ if ( yy_accept[yy_current_state] )
+ {
+ (yy_last_accepting_state) = yy_current_state;
+ (yy_last_accepting_cpos) = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 578 )
+ yy_c = yy_meta[yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
+ ++yy_cp;
+ }
+ while ( yy_current_state != 577 );
+ yy_cp = (yy_last_accepting_cpos);
+ yy_current_state = (yy_last_accepting_state);
+
+yy_find_action:
+ yy_act = yy_accept[yy_current_state];
+
+ YY_DO_BEFORE_ACTION;
+
+ if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
+ {
+ int yyl;
+ for ( yyl = 0; yyl < yyleng; ++yyl )
+ if ( yytext[yyl] == '\n' )
+
+ yylineno++;
+;
+ }
+
+do_action: /* This label is used only to access EOF actions. */
+
+ switch ( yy_act )
+ { /* beginning of action switch */
+ case 0: /* must back up */
+ /* undo the effects of YY_DO_BEFORE_ACTION */
+ *yy_cp = (yy_hold_char);
+ yy_cp = (yy_last_accepting_cpos);
+ yy_current_state = (yy_last_accepting_state);
+ goto yy_find_action;
+
+case 1:
+/* rule 1 can match eol */
+YY_RULE_SETUP
+#line 440 "pgc.l"
+{
+ /* ignore */
+ }
+ YY_BREAK
+/* <SQL> */
+
+case 2:
+YY_RULE_SETUP
+#line 446 "pgc.l"
+{
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ xcdepth = 0;
+ BEGIN(xc);
+ /* Put back any characters past slash-star; see above */
+ yyless(2);
+ fputs("/*", yyout);
+ }
+ YY_BREAK
+/* <C,SQL> */
+
+case 3:
+YY_RULE_SETUP
+#line 458 "pgc.l"
+{
+ if (state_before_str_start == SQL)
+ {
+ xcdepth++;
+ /* Put back any characters past slash-star; see above */
+ yyless(2);
+ fputs("/_*", yyout);
+ }
+ else if (state_before_str_start == C)
+ {
+ ECHO;
+ }
+ }
+ YY_BREAK
+case 4:
+YY_RULE_SETUP
+#line 472 "pgc.l"
+{
+ if (state_before_str_start == SQL)
+ {
+ if (xcdepth <= 0)
+ {
+ ECHO;
+ BEGIN(SQL);
+ token_start = NULL;
+ }
+ else
+ {
+ xcdepth--;
+ fputs("*_/", yyout);
+ }
+ }
+ else if (state_before_str_start == C)
+ {
+ ECHO;
+ BEGIN(C);
+ token_start = NULL;
+ }
+ }
+ YY_BREAK
+case 5:
+/* rule 5 can match eol */
+YY_RULE_SETUP
+#line 495 "pgc.l"
+{
+ ECHO;
+ }
+ YY_BREAK
+case 6:
+YY_RULE_SETUP
+#line 499 "pgc.l"
+{
+ ECHO;
+ }
+ YY_BREAK
+case 7:
+YY_RULE_SETUP
+#line 503 "pgc.l"
+{
+ ECHO;
+ }
+ YY_BREAK
+case YY_STATE_EOF(xc):
+#line 507 "pgc.l"
+{
+ mmfatal(PARSE_ERROR, "unterminated /* comment");
+ }
+ YY_BREAK
+/* <xc> */
+
+case 8:
+YY_RULE_SETUP
+#line 513 "pgc.l"
+{
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xb);
+ startlit();
+ }
+ YY_BREAK
+/* <SQL> */
+case 9:
+/* rule 9 can match eol */
+#line 522 "pgc.l"
+case 10:
+/* rule 10 can match eol */
+YY_RULE_SETUP
+#line 522 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case YY_STATE_EOF(xb):
+#line 525 "pgc.l"
+{ mmfatal(PARSE_ERROR, "unterminated bit string literal"); }
+ YY_BREAK
+case 11:
+YY_RULE_SETUP
+#line 527 "pgc.l"
+{
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xh);
+ startlit();
+ }
+ YY_BREAK
+case YY_STATE_EOF(xh):
+#line 533 "pgc.l"
+{ mmfatal(PARSE_ERROR, "unterminated hexadecimal string literal"); }
+ YY_BREAK
+case 12:
+YY_RULE_SETUP
+#line 535 "pgc.l"
+{
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xqc);
+ startlit();
+ }
+ YY_BREAK
+
+case 13:
+YY_RULE_SETUP
+#line 543 "pgc.l"
+{
+ /* National character.
+ * Transfer it as-is to the backend.
+ */
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xn);
+ startlit();
+ }
+ YY_BREAK
+case 14:
+YY_RULE_SETUP
+#line 553 "pgc.l"
+{
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xq);
+ startlit();
+ }
+ YY_BREAK
+case 15:
+YY_RULE_SETUP
+#line 559 "pgc.l"
+{
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xe);
+ startlit();
+ }
+ YY_BREAK
+case 16:
+YY_RULE_SETUP
+#line 565 "pgc.l"
+{
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xus);
+ startlit();
+ }
+ YY_BREAK
+/* <SQL> */
+case 17:
+YY_RULE_SETUP
+#line 573 "pgc.l"
+{
+ /*
+ * When we are scanning a quoted string and see an end
+ * quote, we must look ahead for a possible continuation.
+ * If we don't see one, we know the end quote was in fact
+ * the end of the string. To reduce the lexer table size,
+ * we use a single "xqs" state to do the lookahead for all
+ * types of strings.
+ */
+ state_before_str_stop = YYSTATE;
+ BEGIN(xqs);
+ }
+ YY_BREAK
+case 18:
+/* rule 18 can match eol */
+YY_RULE_SETUP
+#line 585 "pgc.l"
+{
+ /*
+ * Found a quote continuation, so return to the in-quote
+ * state and continue scanning the literal. Nothing is
+ * added to the literal's contents.
+ */
+ BEGIN(state_before_str_stop);
+ }
+ YY_BREAK
+case 19:
+/* rule 19 can match eol */
+#line 594 "pgc.l"
+case 20:
+/* rule 20 can match eol */
+#line 595 "pgc.l"
+YY_RULE_SETUP
+case YY_STATE_EOF(xqs):
+#line 595 "pgc.l"
+{
+ /*
+ * Failed to see a quote continuation. Throw back
+ * everything after the end quote, and handle the string
+ * according to the state we were in previously.
+ */
+ yyless(0);
+ BEGIN(state_before_str_start);
+
+ switch (state_before_str_stop)
+ {
+ case xb:
+ if (literalbuf[strspn(literalbuf, "01")] != '\0')
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid bit string literal");
+ base_yylval.str = psprintf("b'%s'", literalbuf);
+ return BCONST;
+ case xh:
+ if (literalbuf[strspn(literalbuf, "0123456789abcdefABCDEF")] != '\0')
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid hexadecimal string literal");
+ base_yylval.str = psprintf("x'%s'", literalbuf);
+ return XCONST;
+ case xq:
+ /* fallthrough */
+ case xqc:
+ base_yylval.str = psprintf("'%s'", literalbuf);
+ return SCONST;
+ case xe:
+ base_yylval.str = psprintf("E'%s'", literalbuf);
+ return SCONST;
+ case xn:
+ base_yylval.str = psprintf("N'%s'", literalbuf);
+ return SCONST;
+ case xus:
+ base_yylval.str = psprintf("U&'%s'", literalbuf);
+ return USCONST;
+ default:
+ mmfatal(PARSE_ERROR, "unhandled previous state in xqs\n");
+ }
+ }
+ YY_BREAK
+case 21:
+YY_RULE_SETUP
+#line 635 "pgc.l"
+{ addlit(yytext, yyleng); }
+ YY_BREAK
+case 22:
+YY_RULE_SETUP
+#line 636 "pgc.l"
+{ addlit(yytext, yyleng); }
+ YY_BREAK
+case 23:
+/* rule 23 can match eol */
+YY_RULE_SETUP
+#line 637 "pgc.l"
+{ addlit(yytext, yyleng); }
+ YY_BREAK
+case 24:
+/* rule 24 can match eol */
+YY_RULE_SETUP
+#line 638 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case 25:
+YY_RULE_SETUP
+#line 641 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case 26:
+/* rule 26 can match eol */
+YY_RULE_SETUP
+#line 644 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case 27:
+YY_RULE_SETUP
+#line 647 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case 28:
+YY_RULE_SETUP
+#line 650 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case 29:
+YY_RULE_SETUP
+#line 653 "pgc.l"
+{
+ /* This is only needed for \ just before EOF */
+ addlitchar(yytext[0]);
+ }
+ YY_BREAK
+case YY_STATE_EOF(xq):
+case YY_STATE_EOF(xqc):
+case YY_STATE_EOF(xe):
+case YY_STATE_EOF(xn):
+case YY_STATE_EOF(xus):
+#line 657 "pgc.l"
+{ mmfatal(PARSE_ERROR, "unterminated quoted string"); }
+ YY_BREAK
+
+case 30:
+YY_RULE_SETUP
+#line 660 "pgc.l"
+{
+ token_start = yytext;
+ if (dolqstart)
+ free(dolqstart);
+ dolqstart = mm_strdup(yytext);
+ BEGIN(xdolq);
+ startlit();
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case 31:
+YY_RULE_SETUP
+#line 669 "pgc.l"
+{
+ /* throw back all but the initial "$" */
+ yyless(1);
+ /* and treat it as {other} */
+ return yytext[0];
+ }
+ YY_BREAK
+/* <SQL> */
+case 32:
+YY_RULE_SETUP
+#line 677 "pgc.l"
+{
+ if (strcmp(yytext, dolqstart) == 0)
+ {
+ addlit(yytext, yyleng);
+ free(dolqstart);
+ dolqstart = NULL;
+ BEGIN(SQL);
+ base_yylval.str = mm_strdup(literalbuf);
+ return SCONST;
+ }
+ else
+ {
+ /*
+ * When we fail to match $...$ to dolqstart, transfer
+ * the $... part to the output, but put back the final
+ * $ for rescanning. Consider $delim$...$junk$delim$
+ */
+ addlit(yytext, yyleng - 1);
+ yyless(yyleng - 1);
+ }
+ }
+ YY_BREAK
+case 33:
+/* rule 33 can match eol */
+YY_RULE_SETUP
+#line 698 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case 34:
+YY_RULE_SETUP
+#line 701 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case 35:
+YY_RULE_SETUP
+#line 704 "pgc.l"
+{
+ /* single quote or dollar sign */
+ addlitchar(yytext[0]);
+ }
+ YY_BREAK
+case YY_STATE_EOF(xdolq):
+#line 708 "pgc.l"
+{ mmfatal(PARSE_ERROR, "unterminated dollar-quoted string"); }
+ YY_BREAK
+
+case 36:
+YY_RULE_SETUP
+#line 711 "pgc.l"
+{
+ state_before_str_start = YYSTATE;
+ BEGIN(xd);
+ startlit();
+ }
+ YY_BREAK
+case 37:
+YY_RULE_SETUP
+#line 716 "pgc.l"
+{
+ state_before_str_start = YYSTATE;
+ BEGIN(xui);
+ startlit();
+ }
+ YY_BREAK
+/* <SQL> */
+case 38:
+YY_RULE_SETUP
+#line 723 "pgc.l"
+{
+ BEGIN(state_before_str_start);
+ if (literallen == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "zero-length delimited identifier");
+ /*
+ * The server will truncate the identifier here. We do
+ * not, as (1) it does not change the result; (2) we don't
+ * know what NAMEDATALEN the server might use; (3) this
+ * code path is also taken for literal query strings in
+ * PREPARE and EXECUTE IMMEDIATE, which can certainly be
+ * longer than NAMEDATALEN.
+ */
+ base_yylval.str = mm_strdup(literalbuf);
+ return CSTRING;
+ }
+ YY_BREAK
+case 39:
+YY_RULE_SETUP
+#line 738 "pgc.l"
+{
+ BEGIN(state_before_str_start);
+ base_yylval.str = mm_strdup(literalbuf);
+ return CSTRING;
+ }
+ YY_BREAK
+case 40:
+YY_RULE_SETUP
+#line 743 "pgc.l"
+{
+ BEGIN(state_before_str_start);
+ if (literallen == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "zero-length delimited identifier");
+ /* The backend will truncate the identifier here. We do not as it does not change the result. */
+ base_yylval.str = psprintf("U&\"%s\"", literalbuf);
+ return UIDENT;
+ }
+ YY_BREAK
+case 41:
+YY_RULE_SETUP
+#line 751 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case 42:
+/* rule 42 can match eol */
+YY_RULE_SETUP
+#line 754 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case YY_STATE_EOF(xd):
+case YY_STATE_EOF(xui):
+#line 757 "pgc.l"
+{ mmfatal(PARSE_ERROR, "unterminated quoted identifier"); }
+ YY_BREAK
+case 43:
+YY_RULE_SETUP
+#line 758 "pgc.l"
+{
+ state_before_str_start = YYSTATE;
+ BEGIN(xdc);
+ startlit();
+ }
+ YY_BREAK
+case 44:
+/* rule 44 can match eol */
+YY_RULE_SETUP
+#line 763 "pgc.l"
+{
+ addlit(yytext, yyleng);
+ }
+ YY_BREAK
+case YY_STATE_EOF(xdc):
+#line 766 "pgc.l"
+{ mmfatal(PARSE_ERROR, "unterminated quoted string"); }
+ YY_BREAK
+
+case 45:
+YY_RULE_SETUP
+#line 769 "pgc.l"
+{
+ return TYPECAST;
+ }
+ YY_BREAK
+case 46:
+YY_RULE_SETUP
+#line 773 "pgc.l"
+{
+ return DOT_DOT;
+ }
+ YY_BREAK
+case 47:
+YY_RULE_SETUP
+#line 777 "pgc.l"
+{
+ return COLON_EQUALS;
+ }
+ YY_BREAK
+case 48:
+YY_RULE_SETUP
+#line 781 "pgc.l"
+{
+ return EQUALS_GREATER;
+ }
+ YY_BREAK
+case 49:
+YY_RULE_SETUP
+#line 785 "pgc.l"
+{
+ return LESS_EQUALS;
+ }
+ YY_BREAK
+case 50:
+YY_RULE_SETUP
+#line 789 "pgc.l"
+{
+ return GREATER_EQUALS;
+ }
+ YY_BREAK
+case 51:
+YY_RULE_SETUP
+#line 793 "pgc.l"
+{
+ /* We accept both "<>" and "!=" as meaning NOT_EQUALS */
+ return NOT_EQUALS;
+ }
+ YY_BREAK
+case 52:
+YY_RULE_SETUP
+#line 798 "pgc.l"
+{
+ /* We accept both "<>" and "!=" as meaning NOT_EQUALS */
+ return NOT_EQUALS;
+ }
+ YY_BREAK
+case 53:
+YY_RULE_SETUP
+#line 803 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ unput(':');
+ }
+ else
+ return yytext[0];
+ }
+ YY_BREAK
+case 54:
+YY_RULE_SETUP
+#line 813 "pgc.l"
+{
+ /*
+ * We may find a ';' inside a structure
+ * definition in a TYPE or VAR statement.
+ * This is not an EOL marker.
+ */
+ if (yytext[0] == ';' && struct_level == 0)
+ BEGIN(C);
+ return yytext[0];
+ }
+ YY_BREAK
+case 55:
+YY_RULE_SETUP
+#line 824 "pgc.l"
+{
+ /*
+ * Check for embedded slash-star or dash-dash; those
+ * are comment starts, so operator must stop there.
+ * Note that slash-star or dash-dash at the first
+ * character will match a prior rule, not this one.
+ */
+ int nchars = yyleng;
+ char *slashstar = strstr(yytext, "/*");
+ char *dashdash = strstr(yytext, "--");
+
+ if (slashstar && dashdash)
+ {
+ /* if both appear, take the first one */
+ if (slashstar > dashdash)
+ slashstar = dashdash;
+ }
+ else if (!slashstar)
+ slashstar = dashdash;
+ if (slashstar)
+ nchars = slashstar - yytext;
+
+ /*
+ * For SQL compatibility, '+' and '-' cannot be the
+ * last char of a multi-char operator unless the operator
+ * contains chars that are not in SQL operators.
+ * The idea is to lex '=-' as two operators, but not
+ * to forbid operator names like '?-' that could not be
+ * sequences of SQL operators.
+ */
+ if (nchars > 1 &&
+ (yytext[nchars - 1] == '+' ||
+ yytext[nchars - 1] == '-'))
+ {
+ int ic;
+
+ for (ic = nchars - 2; ic >= 0; ic--)
+ {
+ char c = yytext[ic];
+ if (c == '~' || c == '!' || c == '@' ||
+ c == '#' || c == '^' || c == '&' ||
+ c == '|' || c == '`' || c == '?' ||
+ c == '%')
+ break;
+ }
+ if (ic < 0)
+ {
+ /*
+ * didn't find a qualifying character, so remove
+ * all trailing [+-]
+ */
+ do {
+ nchars--;
+ } while (nchars > 1 &&
+ (yytext[nchars - 1] == '+' ||
+ yytext[nchars - 1] == '-'));
+ }
+ }
+
+ if (nchars < yyleng)
+ {
+ /* Strip the unwanted chars from the token */
+ yyless(nchars);
+ /*
+ * If what we have left is only one char, and it's
+ * one of the characters matching "self", then
+ * return it as a character token the same way
+ * that the "self" rule would have.
+ */
+ if (nchars == 1 &&
+ strchr(",()[].;:+-*/%^<>=", yytext[0]))
+ return yytext[0];
+ /*
+ * Likewise, if what we have left is two chars, and
+ * those match the tokens ">=", "<=", "=>", "<>" or
+ * "!=", then we must return the appropriate token
+ * rather than the generic Op.
+ */
+ if (nchars == 2)
+ {
+ if (yytext[0] == '=' && yytext[1] == '>')
+ return EQUALS_GREATER;
+ if (yytext[0] == '>' && yytext[1] == '=')
+ return GREATER_EQUALS;
+ if (yytext[0] == '<' && yytext[1] == '=')
+ return LESS_EQUALS;
+ if (yytext[0] == '<' && yytext[1] == '>')
+ return NOT_EQUALS;
+ if (yytext[0] == '!' && yytext[1] == '=')
+ return NOT_EQUALS;
+ }
+ }
+
+ base_yylval.str = mm_strdup(yytext);
+ return Op;
+ }
+ YY_BREAK
+case 56:
+YY_RULE_SETUP
+#line 921 "pgc.l"
+{
+ base_yylval.ival = atol(yytext+1);
+ return PARAM;
+ }
+ YY_BREAK
+case 57:
+YY_RULE_SETUP
+#line 925 "pgc.l"
+{
+ mmfatal(PARSE_ERROR, "trailing junk after parameter");
+ }
+ YY_BREAK
+case 58:
+YY_RULE_SETUP
+#line 929 "pgc.l"
+{
+ base_yylval.str = mm_strdup(yytext);
+ return IP;
+ }
+ YY_BREAK
+/* <SQL> */
+
+case 59:
+YY_RULE_SETUP
+#line 936 "pgc.l"
+{
+ return process_integer_literal(yytext, &base_yylval);
+ }
+ YY_BREAK
+case 60:
+YY_RULE_SETUP
+#line 939 "pgc.l"
+{
+ base_yylval.str = mm_strdup(yytext);
+ return FCONST;
+ }
+ YY_BREAK
+case 61:
+YY_RULE_SETUP
+#line 943 "pgc.l"
+{
+ /* throw back the .., and treat as integer */
+ yyless(yyleng - 2);
+ return process_integer_literal(yytext, &base_yylval);
+ }
+ YY_BREAK
+case 62:
+YY_RULE_SETUP
+#line 948 "pgc.l"
+{
+ base_yylval.str = mm_strdup(yytext);
+ return FCONST;
+ }
+ YY_BREAK
+case 63:
+YY_RULE_SETUP
+#line 952 "pgc.l"
+{
+ /*
+ * throw back the [Ee][+-], and figure out whether what
+ * remains is an {integer} or {decimal}.
+ */
+ yyless(yyleng - 2);
+ return process_integer_literal(yytext, &base_yylval);
+ }
+ YY_BREAK
+/* <C,SQL> */
+
+/*
+ * Note that some trailing junk is valid in C (such as 100LL), so we
+ * contain this to SQL mode.
+ */
+case 64:
+YY_RULE_SETUP
+#line 967 "pgc.l"
+{
+ mmfatal(PARSE_ERROR, "trailing junk after numeric literal");
+ }
+ YY_BREAK
+case 65:
+YY_RULE_SETUP
+#line 970 "pgc.l"
+{
+ mmfatal(PARSE_ERROR, "trailing junk after numeric literal");
+ }
+ YY_BREAK
+case 66:
+YY_RULE_SETUP
+#line 973 "pgc.l"
+{
+ mmfatal(PARSE_ERROR, "trailing junk after numeric literal");
+ }
+ YY_BREAK
+case 67:
+/* rule 67 can match eol */
+YY_RULE_SETUP
+#line 977 "pgc.l"
+{
+ base_yylval.str = mm_strdup(yytext+1);
+ return CVARIABLE;
+ }
+ YY_BREAK
+case 68:
+YY_RULE_SETUP
+#line 982 "pgc.l"
+{
+ if (!isdefine())
+ {
+ int kwvalue;
+
+ /* Is it an SQL/ECPG keyword? */
+ kwvalue = ScanECPGKeywordLookup(yytext);
+ if (kwvalue >= 0)
+ return kwvalue;
+
+ /* Is it a C keyword? */
+ kwvalue = ScanCKeywordLookup(yytext);
+ if (kwvalue >= 0)
+ return kwvalue;
+
+ /*
+ * None of the above. Return it as an identifier.
+ *
+ * The backend will attempt to truncate and case-fold
+ * the identifier, but I see no good reason for ecpg
+ * to do so; that's just another way that ecpg could get
+ * out of step with the backend.
+ */
+ base_yylval.str = mm_strdup(yytext);
+ return IDENT;
+ }
+ }
+ YY_BREAK
+case 69:
+YY_RULE_SETUP
+#line 1010 "pgc.l"
+{
+ return yytext[0];
+ }
+ YY_BREAK
+/* <SQL> */
+/*
+ * Begin ECPG-specific rules
+ */
+case 70:
+/* rule 70 can match eol */
+YY_RULE_SETUP
+#line 1019 "pgc.l"
+{ BEGIN(SQL); return SQL_START; }
+ YY_BREAK
+case 71:
+YY_RULE_SETUP
+#line 1020 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ BEGIN(SQL);
+ return SQL_START;
+ }
+ else
+ return S_ANYTHING;
+ }
+ YY_BREAK
+case 72:
+/* rule 72 can match eol */
+YY_RULE_SETUP
+#line 1030 "pgc.l"
+{ ECHO; }
+ YY_BREAK
+case 73:
+YY_RULE_SETUP
+#line 1031 "pgc.l"
+{
+ char* endptr;
+
+ errno = 0;
+ base_yylval.ival = strtoul((char *) yytext, &endptr, 16);
+ if (*endptr != '\0' || errno == ERANGE)
+ {
+ errno = 0;
+ base_yylval.str = mm_strdup(yytext);
+ return SCONST;
+ }
+ return ICONST;
+ }
+ YY_BREAK
+case 74:
+/* rule 74 can match eol */
+YY_RULE_SETUP
+#line 1044 "pgc.l"
+{
+ if (system_includes)
+ {
+ include_next = false;
+ BEGIN(incl);
+ }
+ else
+ {
+ base_yylval.str = mm_strdup(yytext);
+ return CPP_LINE;
+ }
+ }
+ YY_BREAK
+case 75:
+/* rule 75 can match eol */
+YY_RULE_SETUP
+#line 1056 "pgc.l"
+{
+ if (system_includes)
+ {
+ include_next = true;
+ BEGIN(incl);
+ }
+ else
+ {
+ base_yylval.str = mm_strdup(yytext);
+ return CPP_LINE;
+ }
+ }
+ YY_BREAK
+case 76:
+/* rule 76 can match eol */
+YY_RULE_SETUP
+#line 1068 "pgc.l"
+{
+ base_yylval.str = mm_strdup(yytext);
+ return CPP_LINE;
+ }
+ YY_BREAK
+case 77:
+YY_RULE_SETUP
+#line 1072 "pgc.l"
+{
+ /*
+ * Try to detect a function name:
+ * look for identifiers at the global scope
+ * keep the last identifier before the first '(' and '{'
+ */
+ if (braces_open == 0 && parenths_open == 0)
+ {
+ if (current_function)
+ free(current_function);
+ current_function = mm_strdup(yytext);
+ }
+ /* Informix uses SQL defines only in SQL space */
+ /* however, some defines have to be taken care of for compatibility */
+ if ((!INFORMIX_MODE || !isinformixdefine()) && !isdefine())
+ {
+ int kwvalue;
+
+ kwvalue = ScanCKeywordLookup(yytext);
+ if (kwvalue >= 0)
+ return kwvalue;
+ else
+ {
+ base_yylval.str = mm_strdup(yytext);
+ return IDENT;
+ }
+ }
+ }
+ YY_BREAK
+case 78:
+YY_RULE_SETUP
+#line 1100 "pgc.l"
+{ mmerror(PARSE_ERROR, ET_ERROR, "nested /* ... */ comments"); }
+ YY_BREAK
+case 79:
+YY_RULE_SETUP
+#line 1101 "pgc.l"
+{ return ':'; }
+ YY_BREAK
+case 80:
+YY_RULE_SETUP
+#line 1102 "pgc.l"
+{ return ';'; }
+ YY_BREAK
+case 81:
+YY_RULE_SETUP
+#line 1103 "pgc.l"
+{ return ','; }
+ YY_BREAK
+case 82:
+YY_RULE_SETUP
+#line 1104 "pgc.l"
+{ return '*'; }
+ YY_BREAK
+case 83:
+YY_RULE_SETUP
+#line 1105 "pgc.l"
+{ return '%'; }
+ YY_BREAK
+case 84:
+YY_RULE_SETUP
+#line 1106 "pgc.l"
+{ return '/'; }
+ YY_BREAK
+case 85:
+YY_RULE_SETUP
+#line 1107 "pgc.l"
+{ return '+'; }
+ YY_BREAK
+case 86:
+YY_RULE_SETUP
+#line 1108 "pgc.l"
+{ return '-'; }
+ YY_BREAK
+case 87:
+YY_RULE_SETUP
+#line 1109 "pgc.l"
+{ parenths_open++; return '('; }
+ YY_BREAK
+case 88:
+YY_RULE_SETUP
+#line 1110 "pgc.l"
+{ parenths_open--; return ')'; }
+ YY_BREAK
+case 89:
+/* rule 89 can match eol */
+YY_RULE_SETUP
+#line 1111 "pgc.l"
+{ ECHO; }
+ YY_BREAK
+case 90:
+YY_RULE_SETUP
+#line 1112 "pgc.l"
+{ return '{'; }
+ YY_BREAK
+case 91:
+YY_RULE_SETUP
+#line 1113 "pgc.l"
+{ return '}'; }
+ YY_BREAK
+case 92:
+YY_RULE_SETUP
+#line 1114 "pgc.l"
+{ return '['; }
+ YY_BREAK
+case 93:
+YY_RULE_SETUP
+#line 1115 "pgc.l"
+{ return ']'; }
+ YY_BREAK
+case 94:
+YY_RULE_SETUP
+#line 1116 "pgc.l"
+{ return '='; }
+ YY_BREAK
+case 95:
+YY_RULE_SETUP
+#line 1117 "pgc.l"
+{ return S_MEMBER; }
+ YY_BREAK
+case 96:
+YY_RULE_SETUP
+#line 1118 "pgc.l"
+{ return S_RSHIFT; }
+ YY_BREAK
+case 97:
+YY_RULE_SETUP
+#line 1119 "pgc.l"
+{ return S_LSHIFT; }
+ YY_BREAK
+case 98:
+YY_RULE_SETUP
+#line 1120 "pgc.l"
+{ return S_OR; }
+ YY_BREAK
+case 99:
+YY_RULE_SETUP
+#line 1121 "pgc.l"
+{ return S_AND; }
+ YY_BREAK
+case 100:
+YY_RULE_SETUP
+#line 1122 "pgc.l"
+{ return S_INC; }
+ YY_BREAK
+case 101:
+YY_RULE_SETUP
+#line 1123 "pgc.l"
+{ return S_DEC; }
+ YY_BREAK
+case 102:
+YY_RULE_SETUP
+#line 1124 "pgc.l"
+{ return S_EQUAL; }
+ YY_BREAK
+case 103:
+YY_RULE_SETUP
+#line 1125 "pgc.l"
+{ return S_NEQUAL; }
+ YY_BREAK
+case 104:
+YY_RULE_SETUP
+#line 1126 "pgc.l"
+{ return S_ADD; }
+ YY_BREAK
+case 105:
+YY_RULE_SETUP
+#line 1127 "pgc.l"
+{ return S_SUB; }
+ YY_BREAK
+case 106:
+YY_RULE_SETUP
+#line 1128 "pgc.l"
+{ return S_MUL; }
+ YY_BREAK
+case 107:
+YY_RULE_SETUP
+#line 1129 "pgc.l"
+{ return S_DIV; }
+ YY_BREAK
+case 108:
+YY_RULE_SETUP
+#line 1130 "pgc.l"
+{ return S_MOD; }
+ YY_BREAK
+case 109:
+YY_RULE_SETUP
+#line 1131 "pgc.l"
+{ return S_MEMPOINT; }
+ YY_BREAK
+case 110:
+YY_RULE_SETUP
+#line 1132 "pgc.l"
+{ return S_DOTPOINT; }
+ YY_BREAK
+case 111:
+YY_RULE_SETUP
+#line 1133 "pgc.l"
+{ return S_ANYTHING; }
+ YY_BREAK
+case 112:
+/* rule 112 can match eol */
+YY_RULE_SETUP
+#line 1134 "pgc.l"
+{ BEGIN(def_ident); }
+ YY_BREAK
+case 113:
+/* rule 113 can match eol */
+YY_RULE_SETUP
+#line 1135 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ BEGIN(def_ident);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+ YY_BREAK
+case 114:
+/* rule 114 can match eol */
+YY_RULE_SETUP
+#line 1147 "pgc.l"
+{ BEGIN(undef); }
+ YY_BREAK
+case 115:
+/* rule 115 can match eol */
+YY_RULE_SETUP
+#line 1148 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ BEGIN(undef);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+ YY_BREAK
+case 116:
+/* rule 116 can match eol */
+YY_RULE_SETUP
+#line 1160 "pgc.l"
+{
+ struct _defines *ptr, *ptr2 = NULL;
+ int i;
+
+ /*
+ * Skip the ";" and trailing whitespace. Note that yytext
+ * contains at least one non-space character plus the ";"
+ */
+ for (i = strlen(yytext)-2;
+ i > 0 && ecpg_isspace(yytext[i]);
+ i--)
+ ;
+ yytext[i+1] = '\0';
+
+
+ for (ptr = defines; ptr != NULL; ptr2 = ptr, ptr = ptr->next)
+ {
+ if (strcmp(yytext, ptr->olddef) == 0)
+ {
+ if (ptr2 == NULL)
+ defines = ptr->next;
+ else
+ ptr2->next = ptr->next;
+ free(ptr->newdef);
+ free(ptr->olddef);
+ free(ptr);
+ break;
+ }
+ }
+
+ BEGIN(C);
+ }
+ YY_BREAK
+case 117:
+/* rule 117 can match eol */
+YY_RULE_SETUP
+#line 1192 "pgc.l"
+{
+ mmfatal(PARSE_ERROR, "missing identifier in EXEC SQL UNDEF command");
+ yyterminate();
+ }
+ YY_BREAK
+case 118:
+/* rule 118 can match eol */
+YY_RULE_SETUP
+#line 1196 "pgc.l"
+{ BEGIN(incl); }
+ YY_BREAK
+case 119:
+/* rule 119 can match eol */
+YY_RULE_SETUP
+#line 1197 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ BEGIN(incl);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+ YY_BREAK
+case 120:
+/* rule 120 can match eol */
+YY_RULE_SETUP
+#line 1209 "pgc.l"
+{
+ if (preproc_tos >= MAX_NESTED_IF-1)
+ mmfatal(PARSE_ERROR, "too many nested EXEC SQL IFDEF conditions");
+ preproc_tos++;
+ stacked_if_value[preproc_tos].active = false;
+ stacked_if_value[preproc_tos].saw_active = false;
+ stacked_if_value[preproc_tos].else_branch = false;
+ ifcond = true;
+ BEGIN(xcond);
+ }
+ YY_BREAK
+case 121:
+/* rule 121 can match eol */
+YY_RULE_SETUP
+#line 1219 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos >= MAX_NESTED_IF-1)
+ mmfatal(PARSE_ERROR, "too many nested EXEC SQL IFDEF conditions");
+ preproc_tos++;
+ stacked_if_value[preproc_tos].active = false;
+ stacked_if_value[preproc_tos].saw_active = false;
+ stacked_if_value[preproc_tos].else_branch = false;
+ ifcond = true;
+ BEGIN(xcond);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+ YY_BREAK
+case 122:
+/* rule 122 can match eol */
+YY_RULE_SETUP
+#line 1238 "pgc.l"
+{
+ if (preproc_tos >= MAX_NESTED_IF-1)
+ mmfatal(PARSE_ERROR, "too many nested EXEC SQL IFDEF conditions");
+ preproc_tos++;
+ stacked_if_value[preproc_tos].active = false;
+ stacked_if_value[preproc_tos].saw_active = false;
+ stacked_if_value[preproc_tos].else_branch = false;
+ ifcond = false;
+ BEGIN(xcond);
+ }
+ YY_BREAK
+case 123:
+/* rule 123 can match eol */
+YY_RULE_SETUP
+#line 1248 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos >= MAX_NESTED_IF-1)
+ mmfatal(PARSE_ERROR, "too many nested EXEC SQL IFDEF conditions");
+ preproc_tos++;
+ stacked_if_value[preproc_tos].active = false;
+ stacked_if_value[preproc_tos].saw_active = false;
+ stacked_if_value[preproc_tos].else_branch = false;
+ ifcond = false;
+ BEGIN(xcond);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+ YY_BREAK
+case 124:
+/* rule 124 can match eol */
+YY_RULE_SETUP
+#line 1267 "pgc.l"
+{
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
+ if (stacked_if_value[preproc_tos].else_branch)
+ mmfatal(PARSE_ERROR, "missing \"EXEC SQL ENDIF;\"");
+ ifcond = true;
+ BEGIN(xcond);
+ }
+ YY_BREAK
+case 125:
+/* rule 125 can match eol */
+YY_RULE_SETUP
+#line 1275 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
+ if (stacked_if_value[preproc_tos].else_branch)
+ mmfatal(PARSE_ERROR, "missing \"EXEC SQL ENDIF;\"");
+ ifcond = true;
+ BEGIN(xcond);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+ YY_BREAK
+case 126:
+/* rule 126 can match eol */
+YY_RULE_SETUP
+#line 1293 "pgc.l"
+{ /* only exec sql endif pops the stack, so take care of duplicated 'else' */
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
+ else if (stacked_if_value[preproc_tos].else_branch)
+ mmfatal(PARSE_ERROR, "more than one EXEC SQL ELSE");
+ else
+ {
+ stacked_if_value[preproc_tos].else_branch = true;
+ stacked_if_value[preproc_tos].active =
+ (stacked_if_value[preproc_tos-1].active &&
+ !stacked_if_value[preproc_tos].saw_active);
+ stacked_if_value[preproc_tos].saw_active = true;
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+ }
+ YY_BREAK
+case 127:
+/* rule 127 can match eol */
+YY_RULE_SETUP
+#line 1312 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
+ else if (stacked_if_value[preproc_tos].else_branch)
+ mmfatal(PARSE_ERROR, "more than one EXEC SQL ELSE");
+ else
+ {
+ stacked_if_value[preproc_tos].else_branch = true;
+ stacked_if_value[preproc_tos].active =
+ (stacked_if_value[preproc_tos-1].active &&
+ !stacked_if_value[preproc_tos].saw_active);
+ stacked_if_value[preproc_tos].saw_active = true;
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+ YY_BREAK
+case 128:
+/* rule 128 can match eol */
+YY_RULE_SETUP
+#line 1340 "pgc.l"
+{
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "unmatched EXEC SQL ENDIF");
+ else
+ preproc_tos--;
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+ YY_BREAK
+case 129:
+/* rule 129 can match eol */
+YY_RULE_SETUP
+#line 1351 "pgc.l"
+{
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "unmatched EXEC SQL ENDIF");
+ else
+ preproc_tos--;
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+ YY_BREAK
+case 130:
+YY_RULE_SETUP
+#line 1372 "pgc.l"
+{ /* ignore */ }
+ YY_BREAK
+case 131:
+/* rule 131 can match eol */
+YY_RULE_SETUP
+#line 1374 "pgc.l"
+{
+ {
+ struct _defines *defptr;
+ unsigned int i;
+ bool this_active;
+
+ /*
+ * Skip the ";" and trailing whitespace. Note that yytext
+ * contains at least one non-space character plus the ";"
+ */
+ for (i = strlen(yytext)-2;
+ i > 0 && ecpg_isspace(yytext[i]);
+ i--)
+ ;
+ yytext[i+1] = '\0';
+
+ for (defptr = defines;
+ defptr != NULL &&
+ strcmp(yytext, defptr->olddef) != 0;
+ defptr = defptr->next)
+ /* skip */ ;
+
+ this_active = (defptr ? ifcond : !ifcond);
+ stacked_if_value[preproc_tos].active =
+ (stacked_if_value[preproc_tos-1].active &&
+ !stacked_if_value[preproc_tos].saw_active &&
+ this_active);
+ stacked_if_value[preproc_tos].saw_active |= this_active;
+ }
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+ YY_BREAK
+case 132:
+/* rule 132 can match eol */
+YY_RULE_SETUP
+#line 1410 "pgc.l"
+{
+ mmfatal(PARSE_ERROR, "missing identifier in EXEC SQL IFDEF command");
+ yyterminate();
+ }
+ YY_BREAK
+case 133:
+YY_RULE_SETUP
+#line 1414 "pgc.l"
+{
+ old = mm_strdup(yytext);
+ BEGIN(def);
+ startlit();
+ }
+ YY_BREAK
+case 134:
+/* rule 134 can match eol */
+YY_RULE_SETUP
+#line 1419 "pgc.l"
+{
+ mmfatal(PARSE_ERROR, "missing identifier in EXEC SQL DEFINE command");
+ yyterminate();
+ }
+ YY_BREAK
+case 135:
+/* rule 135 can match eol */
+YY_RULE_SETUP
+#line 1423 "pgc.l"
+{
+ struct _defines *ptr, *this;
+
+ for (ptr = defines; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp(old, ptr->olddef) == 0)
+ {
+ free(ptr->newdef);
+ ptr->newdef = mm_strdup(literalbuf);
+ }
+ }
+ if (ptr == NULL)
+ {
+ this = (struct _defines *) mm_alloc(sizeof(struct _defines));
+
+ /* initial definition */
+ this->olddef = old;
+ this->newdef = mm_strdup(literalbuf);
+ this->next = defines;
+ this->used = NULL;
+ defines = this;
+ }
+
+ BEGIN(C);
+ }
+ YY_BREAK
+case 136:
+/* rule 136 can match eol */
+YY_RULE_SETUP
+#line 1448 "pgc.l"
+{ addlit(yytext, yyleng); }
+ YY_BREAK
+case 137:
+/* rule 137 can match eol */
+YY_RULE_SETUP
+#line 1449 "pgc.l"
+{ parse_include(); }
+ YY_BREAK
+case 138:
+/* rule 138 can match eol */
+YY_RULE_SETUP
+#line 1450 "pgc.l"
+{ parse_include(); }
+ YY_BREAK
+case 139:
+/* rule 139 can match eol */
+YY_RULE_SETUP
+#line 1451 "pgc.l"
+{ parse_include(); }
+ YY_BREAK
+case 140:
+/* rule 140 can match eol */
+YY_RULE_SETUP
+#line 1452 "pgc.l"
+{
+ mmfatal(PARSE_ERROR, "syntax error in EXEC SQL INCLUDE command");
+ yyterminate();
+ }
+ YY_BREAK
+case YY_STATE_EOF(INITIAL):
+case YY_STATE_EOF(xcond):
+case YY_STATE_EOF(xskip):
+case YY_STATE_EOF(C):
+case YY_STATE_EOF(SQL):
+case YY_STATE_EOF(incl):
+case YY_STATE_EOF(def):
+case YY_STATE_EOF(def_ident):
+case YY_STATE_EOF(undef):
+#line 1457 "pgc.l"
+{
+ if (yy_buffer == NULL)
+ {
+ if (preproc_tos > 0)
+ {
+ preproc_tos = 0;
+ mmfatal(PARSE_ERROR, "missing \"EXEC SQL ENDIF;\"");
+ }
+ yyterminate();
+ }
+ else
+ {
+ struct _yy_buffer *yb = yy_buffer;
+ int i;
+ struct _defines *ptr;
+
+ for (ptr = defines; ptr; ptr = ptr->next)
+ if (ptr->used == yy_buffer)
+ {
+ ptr->used = NULL;
+ break;
+ }
+
+ if (yyin != NULL)
+ fclose(yyin);
+
+ yy_delete_buffer(YY_CURRENT_BUFFER);
+ yy_switch_to_buffer(yy_buffer->buffer);
+
+ yylineno = yy_buffer->lineno;
+
+ /* We have to output the filename only if we change files here */
+ i = strcmp(input_filename, yy_buffer->filename);
+
+ free(input_filename);
+ input_filename = yy_buffer->filename;
+
+ yy_buffer = yy_buffer->next;
+ free(yb);
+
+ if (i != 0)
+ output_line_number();
+
+ }
+ }
+ YY_BREAK
+case 141:
+/* rule 141 can match eol */
+YY_RULE_SETUP
+#line 1503 "pgc.l"
+{ mmfatal(PARSE_ERROR, "internal error: unreachable state; please report this to <%s>", PACKAGE_BUGREPORT); }
+ YY_BREAK
+case 142:
+YY_RULE_SETUP
+#line 1505 "pgc.l"
+YY_FATAL_ERROR( "flex scanner jammed" );
+ YY_BREAK
+#line 3812 "pgc.c"
+
+ case YY_END_OF_BUFFER:
+ {
+ /* Amount of text matched not including the EOB char. */
+ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
+
+ /* Undo the effects of YY_DO_BEFORE_ACTION. */
+ *yy_cp = (yy_hold_char);
+ YY_RESTORE_YY_MORE_OFFSET
+
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
+ {
+ /* We're scanning a new file or input source. It's
+ * possible that this happened because the user
+ * just pointed yyin at a new source and called
+ * yylex(). If so, then we have to assure
+ * consistency between YY_CURRENT_BUFFER and our
+ * globals. Here is the right place to do so, because
+ * this is the first action (other than possibly a
+ * back-up) that will match for the new input source.
+ */
+ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
+ YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
+ }
+
+ /* Note that here we test for yy_c_buf_p "<=" to the position
+ * of the first EOB in the buffer, since yy_c_buf_p will
+ * already have been incremented past the NUL character
+ * (since all states make transitions on EOB to the
+ * end-of-buffer state). Contrast this with the test
+ * in input().
+ */
+ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
+ { /* This was really a NUL. */
+ yy_state_type yy_next_state;
+
+ (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state( );
+
+ /* Okay, we're now positioned to make the NUL
+ * transition. We couldn't have
+ * yy_get_previous_state() go ahead and do it
+ * for us because it doesn't know how to deal
+ * with the possibility of jamming (and we don't
+ * want to build jamming into it because then it
+ * will run more slowly).
+ */
+
+ yy_next_state = yy_try_NUL_trans( yy_current_state );
+
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
+
+ if ( yy_next_state )
+ {
+ /* Consume the NUL. */
+ yy_cp = ++(yy_c_buf_p);
+ yy_current_state = yy_next_state;
+ goto yy_match;
+ }
+
+ else
+ {
+ yy_cp = (yy_last_accepting_cpos);
+ yy_current_state = (yy_last_accepting_state);
+ goto yy_find_action;
+ }
+ }
+
+ else switch ( yy_get_next_buffer( ) )
+ {
+ case EOB_ACT_END_OF_FILE:
+ {
+ (yy_did_buffer_switch_on_eof) = 0;
+
+ if ( yywrap( ) )
+ {
+ /* Note: because we've taken care in
+ * yy_get_next_buffer() to have set up
+ * yytext, we can now set up
+ * yy_c_buf_p so that if some total
+ * hoser (like flex itself) wants to
+ * call the scanner after we return the
+ * YY_NULL, it'll still work - another
+ * YY_NULL will get returned.
+ */
+ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
+
+ yy_act = YY_STATE_EOF(YY_START);
+ goto do_action;
+ }
+
+ else
+ {
+ if ( ! (yy_did_buffer_switch_on_eof) )
+ YY_NEW_FILE;
+ }
+ break;
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ (yy_c_buf_p) =
+ (yytext_ptr) + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state( );
+
+ yy_cp = (yy_c_buf_p);
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
+ goto yy_match;
+
+ case EOB_ACT_LAST_MATCH:
+ (yy_c_buf_p) =
+ &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
+
+ yy_current_state = yy_get_previous_state( );
+
+ yy_cp = (yy_c_buf_p);
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
+ goto yy_find_action;
+ }
+ break;
+ }
+
+ default:
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--no action found" );
+ } /* end of action switch */
+ } /* end of scanning one token */
+ } /* end of user's declarations */
+} /* end of yylex */
+
+/* yy_get_next_buffer - try to read in a new buffer
+ *
+ * Returns a code representing an action:
+ * EOB_ACT_LAST_MATCH -
+ * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
+ * EOB_ACT_END_OF_FILE - end of file
+ */
+static int yy_get_next_buffer (void)
+{
+ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
+ char *source = (yytext_ptr);
+ int number_to_move, i;
+ int ret_val;
+
+ if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--end of buffer missed" );
+
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
+ { /* Don't try to fill the buffer, so this is an EOF. */
+ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
+ {
+ /* We matched a single character, the EOB, so
+ * treat this as a final EOF.
+ */
+ return EOB_ACT_END_OF_FILE;
+ }
+
+ else
+ {
+ /* We matched some text prior to the EOB, first
+ * process it.
+ */
+ return EOB_ACT_LAST_MATCH;
+ }
+ }
+
+ /* Try to read more data. */
+
+ /* First move last chars to start of buffer. */
+ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
+
+ for ( i = 0; i < number_to_move; ++i )
+ *(dest++) = *(source++);
+
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
+ /* don't do the read, it's not guaranteed to return an EOF,
+ * just force an EOF
+ */
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
+
+ else
+ {
+ int num_to_read =
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
+
+ while ( num_to_read <= 0 )
+ { /* Not enough room in the buffer - grow it. */
+
+ /* just a shorter name for the current buffer */
+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
+
+ int yy_c_buf_p_offset =
+ (int) ((yy_c_buf_p) - b->yy_ch_buf);
+
+ if ( b->yy_is_our_buffer )
+ {
+ int new_size = b->yy_buf_size * 2;
+
+ if ( new_size <= 0 )
+ b->yy_buf_size += b->yy_buf_size / 8;
+ else
+ b->yy_buf_size *= 2;
+
+ b->yy_ch_buf = (char *)
+ /* Include room in for 2 EOB chars. */
+ yyrealloc( (void *) b->yy_ch_buf,
+ (yy_size_t) (b->yy_buf_size + 2) );
+ }
+ else
+ /* Can't grow it, we don't own it. */
+ b->yy_ch_buf = NULL;
+
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR(
+ "fatal error - scanner input buffer overflow" );
+
+ (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
+
+ num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
+ number_to_move - 1;
+
+ }
+
+ if ( num_to_read > YY_READ_BUF_SIZE )
+ num_to_read = YY_READ_BUF_SIZE;
+
+ /* Read in more data. */
+ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
+ (yy_n_chars), num_to_read );
+
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
+ }
+
+ if ( (yy_n_chars) == 0 )
+ {
+ if ( number_to_move == YY_MORE_ADJ )
+ {
+ ret_val = EOB_ACT_END_OF_FILE;
+ yyrestart( yyin );
+ }
+
+ else
+ {
+ ret_val = EOB_ACT_LAST_MATCH;
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
+ YY_BUFFER_EOF_PENDING;
+ }
+ }
+
+ else
+ ret_val = EOB_ACT_CONTINUE_SCAN;
+
+ if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
+ /* Extend the array by 50%, plus the number we really need. */
+ int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
+ (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
+ if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
+ /* "- 2" to take care of EOB's */
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
+ }
+
+ (yy_n_chars) += number_to_move;
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
+
+ (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
+
+ return ret_val;
+}
+
+/* yy_get_previous_state - get the state just before the EOB char was reached */
+
+ static yy_state_type yy_get_previous_state (void)
+{
+ yy_state_type yy_current_state;
+ char *yy_cp;
+
+ yy_current_state = (yy_start);
+
+ for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
+ {
+ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ if ( yy_accept[yy_current_state] )
+ {
+ (yy_last_accepting_state) = yy_current_state;
+ (yy_last_accepting_cpos) = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 578 )
+ yy_c = yy_meta[yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
+ }
+
+ return yy_current_state;
+}
+
+/* yy_try_NUL_trans - try to make a transition on the NUL character
+ *
+ * synopsis
+ * next_state = yy_try_NUL_trans( current_state );
+ */
+ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
+{
+ int yy_is_jam;
+ char *yy_cp = (yy_c_buf_p);
+
+ YY_CHAR yy_c = 1;
+ if ( yy_accept[yy_current_state] )
+ {
+ (yy_last_accepting_state) = yy_current_state;
+ (yy_last_accepting_cpos) = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 578 )
+ yy_c = yy_meta[yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
+ yy_is_jam = (yy_current_state == 577);
+
+ return yy_is_jam ? 0 : yy_current_state;
+}
+
+#ifndef YY_NO_UNPUT
+
+ static void yyunput (int c, char * yy_bp )
+{
+ char *yy_cp;
+
+ yy_cp = (yy_c_buf_p);
+
+ /* undo effects of setting up yytext */
+ *yy_cp = (yy_hold_char);
+
+ if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
+ { /* need to shift things up to make room */
+ /* +2 for EOB chars. */
+ int number_to_move = (yy_n_chars) + 2;
+ char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
+ char *source =
+ &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
+
+ while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
+ *--dest = *--source;
+
+ yy_cp += (int) (dest - source);
+ yy_bp += (int) (dest - source);
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
+ (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
+
+ if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
+ YY_FATAL_ERROR( "flex scanner push-back overflow" );
+ }
+
+ *--yy_cp = (char) c;
+
+ if ( c == '\n' ){
+ --yylineno;
+ }
+
+ (yytext_ptr) = yy_bp;
+ (yy_hold_char) = *yy_cp;
+ (yy_c_buf_p) = yy_cp;
+}
+
+#endif
+
+#ifndef YY_NO_INPUT
+#ifdef __cplusplus
+ static int yyinput (void)
+#else
+ static int input (void)
+#endif
+
+{
+ int c;
+
+ *(yy_c_buf_p) = (yy_hold_char);
+
+ if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
+ {
+ /* yy_c_buf_p now points to the character we want to return.
+ * If this occurs *before* the EOB characters, then it's a
+ * valid NUL; if not, then we've hit the end of the buffer.
+ */
+ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
+ /* This was really a NUL. */
+ *(yy_c_buf_p) = '\0';
+
+ else
+ { /* need more input */
+ int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
+ ++(yy_c_buf_p);
+
+ switch ( yy_get_next_buffer( ) )
+ {
+ case EOB_ACT_LAST_MATCH:
+ /* This happens because yy_g_n_b()
+ * sees that we've accumulated a
+ * token and flags that we need to
+ * try matching the token before
+ * proceeding. But for input(),
+ * there's no matching to consider.
+ * So convert the EOB_ACT_LAST_MATCH
+ * to EOB_ACT_END_OF_FILE.
+ */
+
+ /* Reset buffer status. */
+ yyrestart( yyin );
+
+ /*FALLTHROUGH*/
+
+ case EOB_ACT_END_OF_FILE:
+ {
+ if ( yywrap( ) )
+ return 0;
+
+ if ( ! (yy_did_buffer_switch_on_eof) )
+ YY_NEW_FILE;
+#ifdef __cplusplus
+ return yyinput();
+#else
+ return input();
+#endif
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ (yy_c_buf_p) = (yytext_ptr) + offset;
+ break;
+ }
+ }
+ }
+
+ c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
+ *(yy_c_buf_p) = '\0'; /* preserve yytext */
+ (yy_hold_char) = *++(yy_c_buf_p);
+
+ if ( c == '\n' )
+
+ yylineno++;
+;
+
+ return c;
+}
+#endif /* ifndef YY_NO_INPUT */
+
+/** Immediately switch to a different input stream.
+ * @param input_file A readable stream.
+ *
+ * @note This function does not reset the start condition to @c INITIAL .
+ */
+ void yyrestart (FILE * input_file )
+{
+
+ if ( ! YY_CURRENT_BUFFER ){
+ yyensure_buffer_stack ();
+ YY_CURRENT_BUFFER_LVALUE =
+ yy_create_buffer( yyin, YY_BUF_SIZE );
+ }
+
+ yy_init_buffer( YY_CURRENT_BUFFER, input_file );
+ yy_load_buffer_state( );
+}
+
+/** Switch to a different input buffer.
+ * @param new_buffer The new input buffer.
+ *
+ */
+ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
+{
+
+ /* TODO. We should be able to replace this entire function body
+ * with
+ * yypop_buffer_state();
+ * yypush_buffer_state(new_buffer);
+ */
+ yyensure_buffer_stack ();
+ if ( YY_CURRENT_BUFFER == new_buffer )
+ return;
+
+ if ( YY_CURRENT_BUFFER )
+ {
+ /* Flush out information for old buffer. */
+ *(yy_c_buf_p) = (yy_hold_char);
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
+ }
+
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
+ yy_load_buffer_state( );
+
+ /* We don't actually know whether we did this switch during
+ * EOF (yywrap()) processing, but the only time this flag
+ * is looked at is after yywrap() is called, so it's safe
+ * to go ahead and always set it.
+ */
+ (yy_did_buffer_switch_on_eof) = 1;
+}
+
+static void yy_load_buffer_state (void)
+{
+ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
+ (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
+ yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
+ (yy_hold_char) = *(yy_c_buf_p);
+}
+
+/** Allocate and initialize an input buffer state.
+ * @param file A readable stream.
+ * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
+ *
+ * @return the allocated buffer state.
+ */
+ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
+{
+ YY_BUFFER_STATE b;
+
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_buf_size = size;
+
+ /* yy_ch_buf has to be 2 characters longer than the size given because
+ * we need to put in 2 end-of-buffer characters.
+ */
+ b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_is_our_buffer = 1;
+
+ yy_init_buffer( b, file );
+
+ return b;
+}
+
+/** Destroy the buffer.
+ * @param b a buffer created with yy_create_buffer()
+ *
+ */
+ void yy_delete_buffer (YY_BUFFER_STATE b )
+{
+
+ if ( ! b )
+ return;
+
+ if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
+ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
+
+ if ( b->yy_is_our_buffer )
+ yyfree( (void *) b->yy_ch_buf );
+
+ yyfree( (void *) b );
+}
+
+/* Initializes or reinitializes a buffer.
+ * This function is sometimes called more than once on the same buffer,
+ * such as during a yyrestart() or at EOF.
+ */
+ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
+
+{
+ int oerrno = errno;
+
+ yy_flush_buffer( b );
+
+ b->yy_input_file = file;
+ b->yy_fill_buffer = 1;
+
+ /* If b is the current buffer, then yy_init_buffer was _probably_
+ * called from yyrestart() or through yy_get_next_buffer.
+ * In that case, we don't want to reset the lineno or column.
+ */
+ if (b != YY_CURRENT_BUFFER){
+ b->yy_bs_lineno = 1;
+ b->yy_bs_column = 0;
+ }
+
+ b->yy_is_interactive = 0;
+
+ errno = oerrno;
+}
+
+/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
+ * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
+ *
+ */
+ void yy_flush_buffer (YY_BUFFER_STATE b )
+{
+ if ( ! b )
+ return;
+
+ b->yy_n_chars = 0;
+
+ /* We always need two end-of-buffer characters. The first causes
+ * a transition to the end-of-buffer state. The second causes
+ * a jam in that state.
+ */
+ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
+ b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
+
+ b->yy_buf_pos = &b->yy_ch_buf[0];
+
+ b->yy_at_bol = 1;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ if ( b == YY_CURRENT_BUFFER )
+ yy_load_buffer_state( );
+}
+
+/** Pushes the new state onto the stack. The new state becomes
+ * the current state. This function will allocate the stack
+ * if necessary.
+ * @param new_buffer The new state.
+ *
+ */
+void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
+{
+ if (new_buffer == NULL)
+ return;
+
+ yyensure_buffer_stack();
+
+ /* This block is copied from yy_switch_to_buffer. */
+ if ( YY_CURRENT_BUFFER )
+ {
+ /* Flush out information for old buffer. */
+ *(yy_c_buf_p) = (yy_hold_char);
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
+ }
+
+ /* Only push if top exists. Otherwise, replace top. */
+ if (YY_CURRENT_BUFFER)
+ (yy_buffer_stack_top)++;
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
+
+ /* copied from yy_switch_to_buffer. */
+ yy_load_buffer_state( );
+ (yy_did_buffer_switch_on_eof) = 1;
+}
+
+/** Removes and deletes the top of the stack, if present.
+ * The next element becomes the new top.
+ *
+ */
+void yypop_buffer_state (void)
+{
+ if (!YY_CURRENT_BUFFER)
+ return;
+
+ yy_delete_buffer(YY_CURRENT_BUFFER );
+ YY_CURRENT_BUFFER_LVALUE = NULL;
+ if ((yy_buffer_stack_top) > 0)
+ --(yy_buffer_stack_top);
+
+ if (YY_CURRENT_BUFFER) {
+ yy_load_buffer_state( );
+ (yy_did_buffer_switch_on_eof) = 1;
+ }
+}
+
+/* Allocates the stack if it does not exist.
+ * Guarantees space for at least one push.
+ */
+static void yyensure_buffer_stack (void)
+{
+ yy_size_t num_to_alloc;
+
+ if (!(yy_buffer_stack)) {
+
+ /* First allocation is just for 2 elements, since we don't know if this
+ * scanner will even need a stack. We use 2 instead of 1 to avoid an
+ * immediate realloc on the next call.
+ */
+ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
+ (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
+ (num_to_alloc * sizeof(struct yy_buffer_state*)
+ );
+ if ( ! (yy_buffer_stack) )
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
+
+ memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
+
+ (yy_buffer_stack_max) = num_to_alloc;
+ (yy_buffer_stack_top) = 0;
+ return;
+ }
+
+ if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
+
+ /* Increase the buffer to prepare for a possible push. */
+ yy_size_t grow_size = 8 /* arbitrary grow size */;
+
+ num_to_alloc = (yy_buffer_stack_max) + grow_size;
+ (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
+ ((yy_buffer_stack),
+ num_to_alloc * sizeof(struct yy_buffer_state*)
+ );
+ if ( ! (yy_buffer_stack) )
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
+
+ /* zero only the new slots.*/
+ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
+ (yy_buffer_stack_max) = num_to_alloc;
+ }
+}
+
+/** Setup the input buffer state to scan directly from a user-specified character buffer.
+ * @param base the character buffer
+ * @param size the size in bytes of the character buffer
+ *
+ * @return the newly allocated buffer state object.
+ */
+YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
+{
+ YY_BUFFER_STATE b;
+
+ if ( size < 2 ||
+ base[size-2] != YY_END_OF_BUFFER_CHAR ||
+ base[size-1] != YY_END_OF_BUFFER_CHAR )
+ /* They forgot to leave room for the EOB's. */
+ return NULL;
+
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
+
+ b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
+ b->yy_buf_pos = b->yy_ch_buf = base;
+ b->yy_is_our_buffer = 0;
+ b->yy_input_file = NULL;
+ b->yy_n_chars = b->yy_buf_size;
+ b->yy_is_interactive = 0;
+ b->yy_at_bol = 1;
+ b->yy_fill_buffer = 0;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ yy_switch_to_buffer( b );
+
+ return b;
+}
+
+/** Setup the input buffer state to scan a string. The next call to yylex() will
+ * scan from a @e copy of @a str.
+ * @param yystr a NUL-terminated string to scan
+ *
+ * @return the newly allocated buffer state object.
+ * @note If you want to scan bytes that may contain NUL values, then use
+ * yy_scan_bytes() instead.
+ */
+YY_BUFFER_STATE yy_scan_string (const char * yystr )
+{
+
+ return yy_scan_bytes( yystr, (int) strlen(yystr) );
+}
+
+/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
+ * scan from a @e copy of @a bytes.
+ * @param yybytes the byte buffer to scan
+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
+ *
+ * @return the newly allocated buffer state object.
+ */
+YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
+{
+ YY_BUFFER_STATE b;
+ char *buf;
+ yy_size_t n;
+ int i;
+
+ /* Get memory for full buffer, including space for trailing EOB's. */
+ n = (yy_size_t) (_yybytes_len + 2);
+ buf = (char *) yyalloc( n );
+ if ( ! buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
+
+ for ( i = 0; i < _yybytes_len; ++i )
+ buf[i] = yybytes[i];
+
+ buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
+
+ b = yy_scan_buffer( buf, n );
+ if ( ! b )
+ YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
+
+ /* It's okay to grow etc. this buffer, and we should throw it
+ * away when we're done.
+ */
+ b->yy_is_our_buffer = 1;
+
+ return b;
+}
+
+#ifndef YY_EXIT_FAILURE
+#define YY_EXIT_FAILURE 2
+#endif
+
+static void yynoreturn yy_fatal_error (const char* msg )
+{
+ fprintf( stderr, "%s\n", msg );
+ exit( YY_EXIT_FAILURE );
+}
+
+/* Redefine yyless() so it works in section 3 code. */
+
+#undef yyless
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ int yyless_macro_arg = (n); \
+ YY_LESS_LINENO(yyless_macro_arg);\
+ yytext[yyleng] = (yy_hold_char); \
+ (yy_c_buf_p) = yytext + yyless_macro_arg; \
+ (yy_hold_char) = *(yy_c_buf_p); \
+ *(yy_c_buf_p) = '\0'; \
+ yyleng = yyless_macro_arg; \
+ } \
+ while ( 0 )
+
+/* Accessor methods (get/set functions) to struct members. */
+
+/** Get the current line number.
+ *
+ */
+int yyget_lineno (void)
+{
+
+ return yylineno;
+}
+
+/** Get the input stream.
+ *
+ */
+FILE *yyget_in (void)
+{
+ return yyin;
+}
+
+/** Get the output stream.
+ *
+ */
+FILE *yyget_out (void)
+{
+ return yyout;
+}
+
+/** Get the length of the current token.
+ *
+ */
+int yyget_leng (void)
+{
+ return yyleng;
+}
+
+/** Get the current token.
+ *
+ */
+
+char *yyget_text (void)
+{
+ return yytext;
+}
+
+/** Set the current line number.
+ * @param _line_number line number
+ *
+ */
+void yyset_lineno (int _line_number )
+{
+
+ yylineno = _line_number;
+}
+
+/** Set the input stream. This does not discard the current
+ * input buffer.
+ * @param _in_str A readable stream.
+ *
+ * @see yy_switch_to_buffer
+ */
+void yyset_in (FILE * _in_str )
+{
+ yyin = _in_str ;
+}
+
+void yyset_out (FILE * _out_str )
+{
+ yyout = _out_str ;
+}
+
+int yyget_debug (void)
+{
+ return yy_flex_debug;
+}
+
+void yyset_debug (int _bdebug )
+{
+ yy_flex_debug = _bdebug ;
+}
+
+static int yy_init_globals (void)
+{
+ /* Initialization is the same as for the non-reentrant scanner.
+ * This function is called from yylex_destroy(), so don't allocate here.
+ */
+
+ /* We do not touch yylineno unless the option is enabled. */
+ yylineno = 1;
+
+ (yy_buffer_stack) = NULL;
+ (yy_buffer_stack_top) = 0;
+ (yy_buffer_stack_max) = 0;
+ (yy_c_buf_p) = NULL;
+ (yy_init) = 0;
+ (yy_start) = 0;
+
+/* Defined in main.c */
+#ifdef YY_STDINIT
+ yyin = stdin;
+ yyout = stdout;
+#else
+ yyin = NULL;
+ yyout = NULL;
+#endif
+
+ /* For future reference: Set errno on error, since we are called by
+ * yylex_init()
+ */
+ return 0;
+}
+
+/* yylex_destroy is for both reentrant and non-reentrant scanners. */
+int yylex_destroy (void)
+{
+
+ /* Pop the buffer stack, destroying each element. */
+ while(YY_CURRENT_BUFFER){
+ yy_delete_buffer( YY_CURRENT_BUFFER );
+ YY_CURRENT_BUFFER_LVALUE = NULL;
+ yypop_buffer_state();
+ }
+
+ /* Destroy the stack itself. */
+ yyfree((yy_buffer_stack) );
+ (yy_buffer_stack) = NULL;
+
+ /* Reset the globals. This is important in a non-reentrant scanner so the next time
+ * yylex() is called, initialization will occur. */
+ yy_init_globals( );
+
+ return 0;
+}
+
+/*
+ * Internal utility routines.
+ */
+
+#ifndef yytext_ptr
+static void yy_flex_strncpy (char* s1, const char * s2, int n )
+{
+
+ int i;
+ for ( i = 0; i < n; ++i )
+ s1[i] = s2[i];
+}
+#endif
+
+#ifdef YY_NEED_STRLEN
+static int yy_flex_strlen (const char * s )
+{
+ int n;
+ for ( n = 0; s[n]; ++n )
+ ;
+
+ return n;
+}
+#endif
+
+void *yyalloc (yy_size_t size )
+{
+ return malloc(size);
+}
+
+void *yyrealloc (void * ptr, yy_size_t size )
+{
+
+ /* The cast to (char *) in the following accommodates both
+ * implementations that use char* generic pointers, and those
+ * that use void* generic pointers. It works with the latter
+ * because both ANSI C and C++ allow castless assignment from
+ * any pointer type to void*, and deal with argument conversions
+ * as though doing an assignment.
+ */
+ return realloc(ptr, size);
+}
+
+void yyfree (void * ptr )
+{
+ free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
+}
+
+#define YYTABLES_NAME "yytables"
+
+#line 1505 "pgc.l"
+
+
+/* LCOV_EXCL_STOP */
+
+void
+lex_init(void)
+{
+ braces_open = 0;
+ parenths_open = 0;
+ current_function = NULL;
+
+ yylineno = 1;
+
+ /* initialize state for if/else/endif */
+ preproc_tos = 0;
+ stacked_if_value[preproc_tos].active = true;
+ stacked_if_value[preproc_tos].saw_active = true;
+ stacked_if_value[preproc_tos].else_branch = false;
+
+ /* initialize literal buffer to a reasonable but expansible size */
+ if (literalbuf == NULL)
+ {
+ literalalloc = 1024;
+ literalbuf = (char *) mm_alloc(literalalloc);
+ }
+ startlit();
+
+ BEGIN(C);
+}
+
+static void
+addlit(char *ytext, int yleng)
+{
+ /* enlarge buffer if needed */
+ if ((literallen+yleng) >= literalalloc)
+ {
+ do
+ literalalloc *= 2;
+ while ((literallen+yleng) >= literalalloc);
+ literalbuf = (char *) realloc(literalbuf, literalalloc);
+ }
+ /* append new data, add trailing null */
+ memcpy(literalbuf+literallen, ytext, yleng);
+ literallen += yleng;
+ literalbuf[literallen] = '\0';
+}
+
+static void
+addlitchar(unsigned char ychar)
+{
+ /* enlarge buffer if needed */
+ if ((literallen+1) >= literalalloc)
+ {
+ literalalloc *= 2;
+ literalbuf = (char *) realloc(literalbuf, literalalloc);
+ }
+ /* append new data, add trailing null */
+ literalbuf[literallen] = ychar;
+ literallen += 1;
+ literalbuf[literallen] = '\0';
+}
+
+/*
+ * Process {integer}. Note this will also do the right thing with {decimal},
+ * ie digits and a decimal point.
+ */
+static int
+process_integer_literal(const char *token, YYSTYPE *lval)
+{
+ int val;
+ char *endptr;
+
+ errno = 0;
+ val = strtoint(token, &endptr, 10);
+ if (*endptr != '\0' || errno == ERANGE)
+ {
+ /* integer too large (or contains decimal pt), treat it as a float */
+ lval->str = mm_strdup(token);
+ return FCONST;
+ }
+ lval->ival = val;
+ return ICONST;
+}
+
+static void
+parse_include(void)
+{
+ /* got the include file name */
+ struct _yy_buffer *yb;
+ struct _include_path *ip;
+ char inc_file[MAXPGPATH];
+ unsigned int i;
+
+ yb = mm_alloc(sizeof(struct _yy_buffer));
+
+ yb->buffer = YY_CURRENT_BUFFER;
+ yb->lineno = yylineno;
+ yb->filename = input_filename;
+ yb->next = yy_buffer;
+
+ yy_buffer = yb;
+
+ /*
+ * skip the ";" if there is one and trailing whitespace. Note that
+ * yytext contains at least one non-space character plus the ";"
+ */
+ for (i = strlen(yytext)-2;
+ i > 0 && ecpg_isspace(yytext[i]);
+ i--)
+ ;
+
+ if (yytext[i] == ';')
+ i--;
+
+ yytext[i+1] = '\0';
+
+ yyin = NULL;
+
+ /* If file name is enclosed in '"' remove these and look only in '.' */
+ /* Informix does look into all include paths though, except filename starts with '/' */
+ if (yytext[0] == '"' && yytext[i] == '"' &&
+ ((compat != ECPG_COMPAT_INFORMIX && compat != ECPG_COMPAT_INFORMIX_SE) || yytext[1] == '/'))
+ {
+ yytext[i] = '\0';
+ memmove(yytext, yytext+1, strlen(yytext));
+
+ strlcpy(inc_file, yytext, sizeof(inc_file));
+ yyin = fopen(inc_file, "r");
+ if (!yyin)
+ {
+ if (strlen(inc_file) <= 2 || strcmp(inc_file + strlen(inc_file) - 2, ".h") != 0)
+ {
+ strcat(inc_file, ".h");
+ yyin = fopen(inc_file, "r");
+ }
+ }
+
+ }
+ else
+ {
+ if ((yytext[0] == '"' && yytext[i] == '"') || (yytext[0] == '<' && yytext[i] == '>'))
+ {
+ yytext[i] = '\0';
+ memmove(yytext, yytext+1, strlen(yytext));
+ }
+
+ for (ip = include_paths; yyin == NULL && ip != NULL; ip = ip->next)
+ {
+ if (strlen(ip->path) + strlen(yytext) + 4 > MAXPGPATH)
+ {
+ fprintf(stderr, _("Error: include path \"%s/%s\" is too long on line %d, skipping\n"), ip->path, yytext, yylineno);
+ continue;
+ }
+ snprintf (inc_file, sizeof(inc_file), "%s/%s", ip->path, yytext);
+ yyin = fopen(inc_file, "r");
+ if (!yyin)
+ {
+ if (strcmp(inc_file + strlen(inc_file) - 2, ".h") != 0)
+ {
+ strcat(inc_file, ".h");
+ yyin = fopen(inc_file, "r");
+ }
+ }
+ /* if the command was "include_next" we have to disregard the first hit */
+ if (yyin && include_next)
+ {
+ fclose (yyin);
+ yyin = NULL;
+ include_next = false;
+ }
+ }
+ }
+ if (!yyin)
+ mmfatal(NO_INCLUDE_FILE, "could not open include file \"%s\" on line %d", yytext, yylineno);
+
+ input_filename = mm_strdup(inc_file);
+ yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE));
+ yylineno = 1;
+ output_line_number();
+
+ BEGIN(C);
+}
+
+/*
+ * ecpg_isspace() --- return true if flex scanner considers char whitespace
+ */
+static bool
+ecpg_isspace(char ch)
+{
+ if (ch == ' ' ||
+ ch == '\t' ||
+ ch == '\n' ||
+ ch == '\r' ||
+ ch == '\f')
+ return true;
+ return false;
+}
+
+static bool isdefine(void)
+{
+ struct _defines *ptr;
+
+ /* is it a define? */
+ for (ptr = defines; ptr; ptr = ptr->next)
+ {
+ if (strcmp(yytext, ptr->olddef) == 0 && ptr->used == NULL)
+ {
+ struct _yy_buffer *yb;
+
+ yb = mm_alloc(sizeof(struct _yy_buffer));
+
+ yb->buffer = YY_CURRENT_BUFFER;
+ yb->lineno = yylineno;
+ yb->filename = mm_strdup(input_filename);
+ yb->next = yy_buffer;
+
+ ptr->used = yy_buffer = yb;
+
+ yy_scan_string(ptr->newdef);
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool isinformixdefine(void)
+{
+ const char *new = NULL;
+
+ if (strcmp(yytext, "dec_t") == 0)
+ new = "decimal";
+ else if (strcmp(yytext, "intrvl_t") == 0)
+ new = "interval";
+ else if (strcmp(yytext, "dtime_t") == 0)
+ new = "timestamp";
+
+ if (new)
+ {
+ struct _yy_buffer *yb;
+
+ yb = mm_alloc(sizeof(struct _yy_buffer));
+
+ yb->buffer = YY_CURRENT_BUFFER;
+ yb->lineno = yylineno;
+ yb->filename = mm_strdup(input_filename);
+ yb->next = yy_buffer;
+ yy_buffer = yb;
+
+ yy_scan_string(new);
+ return true;
+ }
+
+ return false;
+}
+
diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l
new file mode 100644
index 0000000..996718c
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/pgc.l
@@ -0,0 +1,1758 @@
+%top{
+/*-------------------------------------------------------------------------
+ *
+ * pgc.l
+ * lexical scanner for ecpg
+ *
+ * This is a modified version of src/backend/parser/scan.l
+ *
+ * The ecpg scanner is not backup-free, so the fail rules are
+ * only here to simplify syncing this file with scan.l.
+ *
+ *
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * IDENTIFICATION
+ * src/interfaces/ecpg/preproc/pgc.l
+ *
+ *-------------------------------------------------------------------------
+ */
+#include "postgres_fe.h"
+
+#include <ctype.h>
+#include <limits.h>
+
+#include "common/string.h"
+
+#include "preproc_extern.h"
+#include "preproc.h"
+}
+
+%{
+
+/* LCOV_EXCL_START */
+
+extern YYSTYPE base_yylval;
+
+static int xcdepth = 0; /* depth of nesting in slash-star comments */
+static char *dolqstart = NULL; /* current $foo$ quote start string */
+
+/*
+ * literalbuf is used to accumulate literal values when multiple rules
+ * are needed to parse a single literal. Call startlit to reset buffer
+ * to empty, addlit to add text. Note that the buffer is permanently
+ * malloc'd to the largest size needed so far in the current run.
+ */
+static char *literalbuf = NULL; /* expandable buffer */
+static int literallen; /* actual current length */
+static int literalalloc; /* current allocated buffer size */
+
+/* Used for detecting global state together with braces_open */
+static int parenths_open;
+
+/* Used to tell parse_include() whether the command was #include or #include_next */
+static bool include_next;
+
+#define startlit() (literalbuf[0] = '\0', literallen = 0)
+static void addlit(char *ytext, int yleng);
+static void addlitchar(unsigned char);
+static int process_integer_literal(const char *token, YYSTYPE *lval);
+static void parse_include(void);
+static bool ecpg_isspace(char ch);
+static bool isdefine(void);
+static bool isinformixdefine(void);
+
+char *token_start;
+
+/* vars to keep track of start conditions when scanning literals */
+static int state_before_str_start;
+static int state_before_str_stop;
+
+struct _yy_buffer
+{
+ YY_BUFFER_STATE buffer;
+ long lineno;
+ char *filename;
+ struct _yy_buffer *next;
+} *yy_buffer = NULL;
+
+static char *old;
+
+/*
+ * Vars for handling ifdef/elif/endif constructs. preproc_tos is the current
+ * nesting depth of such constructs, and stacked_if_value[preproc_tos] is the
+ * state for the innermost level. (For convenience, stacked_if_value[0] is
+ * initialized as though we are in the active branch of some outermost IF.)
+ * The active field is true if the current branch is active (being expanded).
+ * The saw_active field is true if we have found any successful branch,
+ * so that all subsequent branches of this level should be skipped.
+ * The else_branch field is true if we've found an 'else' (so that another
+ * 'else' or 'elif' at this level is an error.)
+ * For IFs nested within an inactive branch, all branches always have active
+ * set to false, but saw_active and else_branch are maintained normally.
+ * ifcond is valid only while evaluating an if-condition; it's true if we
+ * are doing ifdef, false if ifndef.
+ */
+#define MAX_NESTED_IF 128
+static short preproc_tos;
+static bool ifcond;
+static struct _if_value
+{
+ bool active;
+ bool saw_active;
+ bool else_branch;
+} stacked_if_value[MAX_NESTED_IF];
+
+%}
+
+%option 8bit
+%option never-interactive
+%option nodefault
+%option noinput
+%option noyywrap
+%option warn
+%option yylineno
+%option prefix="base_yy"
+
+/*
+ * OK, here is a short description of lex/flex rules behavior.
+ * The longest pattern which matches an input string is always chosen.
+ * For equal-length patterns, the first occurring in the rules list is chosen.
+ * INITIAL is the starting state, to which all non-conditional rules apply.
+ * Exclusive states change parsing rules while the state is active. When in
+ * an exclusive state, only those rules defined for that state apply.
+ *
+ * We use exclusive states for quoted strings, extended comments,
+ * and to eliminate parsing troubles for numeric strings.
+ * Exclusive states:
+ * <xb> bit string literal
+ * <xc> extended C-style comments
+ * <xd> delimited identifiers (double-quoted identifiers)
+ * <xdc> double-quoted strings in C
+ * <xh> hexadecimal byte string
+ * <xn> national character quoted strings
+ * <xq> standard quoted strings
+ * <xqs> quote stop (detect continued strings)
+ * <xe> extended quoted strings (support backslash escape sequences)
+ * <xqc> single-quoted strings in C
+ * <xdolq> $foo$ quoted strings
+ * <xui> quoted identifier with Unicode escapes
+ * <xus> quoted string with Unicode escapes
+ * <xcond> condition of an EXEC SQL IFDEF construct
+ * <xskip> skipping the inactive part of an EXEC SQL IFDEF construct
+ *
+ * Note: we intentionally don't mimic the backend's <xeu> state; we have
+ * no need to distinguish it from <xe> state.
+ *
+ * Remember to add an <<EOF>> case whenever you add a new exclusive state!
+ * The default one is probably not the right thing.
+ */
+
+%x xb
+%x xc
+%x xd
+%x xdc
+%x xh
+%x xn
+%x xq
+%x xqs
+%x xe
+%x xqc
+%x xdolq
+%x xui
+%x xus
+%x xcond
+%x xskip
+
+/* Additional exclusive states that are specific to ECPG */
+%x C SQL incl def def_ident undef
+
+/*
+ * In order to make the world safe for Windows and Mac clients as well as
+ * Unix ones, we accept either \n or \r as a newline. A DOS-style \r\n
+ * sequence will be seen as two successive newlines, but that doesn't cause
+ * any problems. SQL-style comments, which start with -- and extend to the
+ * next newline, are treated as equivalent to a single whitespace character.
+ *
+ * NOTE a fine point: if there is no newline following --, we will absorb
+ * everything to the end of the input as a comment. This is correct. Older
+ * versions of Postgres failed to recognize -- as a comment if the input
+ * did not end with a newline.
+ *
+ * XXX perhaps \f (formfeed) should be treated as a newline as well?
+ *
+ * XXX if you change the set of whitespace characters, fix ecpg_isspace()
+ * to agree.
+ */
+
+space [ \t\n\r\f]
+horiz_space [ \t\f]
+newline [\n\r]
+non_newline [^\n\r]
+
+comment ("--"{non_newline}*)
+
+whitespace ({space}+|{comment})
+
+/*
+ * SQL requires at least one newline in the whitespace separating
+ * string literals that are to be concatenated. Silly, but who are we
+ * to argue? Note that {whitespace_with_newline} should not have * after
+ * it, whereas {whitespace} should generally have a * after it...
+ */
+
+horiz_whitespace ({horiz_space}|{comment})
+whitespace_with_newline ({horiz_whitespace}*{newline}{whitespace}*)
+
+quote '
+/* If we see {quote} then {quotecontinue}, the quoted string continues */
+quotecontinue {whitespace_with_newline}{quote}
+
+/*
+ * {quotecontinuefail} is needed to avoid lexer backup when we fail to match
+ * {quotecontinue}. It might seem that this could just be {whitespace}*,
+ * but if there's a dash after {whitespace_with_newline}, it must be consumed
+ * to see if there's another dash --- which would start a {comment} and thus
+ * allow continuation of the {quotecontinue} token.
+ */
+quotecontinuefail {whitespace}*"-"?
+
+/* Bit string
+ */
+xbstart [bB]{quote}
+xbinside [^']*
+
+/* Hexadecimal byte string */
+xhstart [xX]{quote}
+xhinside [^']*
+
+/* National character */
+xnstart [nN]{quote}
+
+/* Quoted string that allows backslash escapes */
+xestart [eE]{quote}
+xeinside [^\\']+
+xeescape [\\][^0-7]
+xeoctesc [\\][0-7]{1,3}
+xehexesc [\\]x[0-9A-Fa-f]{1,2}
+xeunicode [\\](u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})
+
+/* Extended quote
+ * xqdouble implements embedded quote, ''''
+ */
+xqstart {quote}
+xqdouble {quote}{quote}
+xqcquote [\\]{quote}
+xqinside [^']+
+
+/* $foo$ style quotes ("dollar quoting")
+ * The quoted string starts with $foo$ where "foo" is an optional string
+ * in the form of an identifier, except that it may not contain "$",
+ * and extends to the first occurrence of an identical string.
+ * There is *no* processing of the quoted text.
+ *
+ * {dolqfailed} is an error rule to avoid scanner backup when {dolqdelim}
+ * fails to match its trailing "$".
+ */
+dolq_start [A-Za-z\200-\377_]
+dolq_cont [A-Za-z\200-\377_0-9]
+dolqdelim \$({dolq_start}{dolq_cont}*)?\$
+dolqfailed \${dolq_start}{dolq_cont}*
+dolqinside [^$]+
+
+/* Double quote
+ * Allows embedded spaces and other special characters into identifiers.
+ */
+dquote \"
+xdstart {dquote}
+xdstop {dquote}
+xddouble {dquote}{dquote}
+xdinside [^"]+
+
+/* Quoted identifier with Unicode escapes */
+xuistart [uU]&{dquote}
+
+/* Quoted string with Unicode escapes */
+xusstart [uU]&{quote}
+
+/* special stuff for C strings */
+xdcqq \\\\
+xdcqdq \\\"
+xdcother [^"]
+xdcinside ({xdcqq}|{xdcqdq}|{xdcother})
+
+
+/* C-style comments
+ *
+ * The "extended comment" syntax closely resembles allowable operator syntax.
+ * The tricky part here is to get lex to recognize a string starting with
+ * slash-star as a comment, when interpreting it as an operator would produce
+ * a longer match --- remember lex will prefer a longer match! Also, if we
+ * have something like plus-slash-star, lex will think this is a 3-character
+ * operator whereas we want to see it as a + operator and a comment start.
+ * The solution is two-fold:
+ * 1. append {op_chars}* to xcstart so that it matches as much text as
+ * {operator} would. Then the tie-breaker (first matching rule of same
+ * length) ensures xcstart wins. We put back the extra stuff with yyless()
+ * in case it contains a star-slash that should terminate the comment.
+ * 2. In the operator rule, check for slash-star within the operator, and
+ * if found throw it back with yyless(). This handles the plus-slash-star
+ * problem.
+ * Dash-dash comments have similar interactions with the operator rule.
+ */
+xcstart \/\*{op_chars}*
+xcstop \*+\/
+xcinside [^*/]+
+
+ident_start [A-Za-z\200-\377_]
+ident_cont [A-Za-z\200-\377_0-9\$]
+
+identifier {ident_start}{ident_cont}*
+
+array ({ident_cont}|{whitespace}|[\[\]\+\-\*\%\/\(\)\>\.])*
+
+/* Assorted special-case operators and operator-like tokens */
+typecast "::"
+dot_dot \.\.
+colon_equals ":="
+
+/*
+ * These operator-like tokens (unlike the above ones) also match the {operator}
+ * rule, which means that they might be overridden by a longer match if they
+ * are followed by a comment start or a + or - character. Accordingly, if you
+ * add to this list, you must also add corresponding code to the {operator}
+ * block to return the correct token in such cases. (This is not needed in
+ * psqlscan.l since the token value is ignored there.)
+ */
+equals_greater "=>"
+less_equals "<="
+greater_equals ">="
+less_greater "<>"
+not_equals "!="
+
+/*
+ * "self" is the set of chars that should be returned as single-character
+ * tokens. "op_chars" is the set of chars that can make up "Op" tokens,
+ * which can be one or more characters long (but if a single-char token
+ * appears in the "self" set, it is not to be returned as an Op). Note
+ * that the sets overlap, but each has some chars that are not in the other.
+ *
+ * If you change either set, adjust the character lists appearing in the
+ * rule for "operator"!
+ */
+self [,()\[\].;\:\+\-\*\/\%\^\<\>\=]
+op_chars [\~\!\@\#\^\&\|\`\?\+\-\*\/\%\<\>\=]
+operator {op_chars}+
+
+/*
+ * Numbers
+ *
+ * Unary minus is not part of a number here. Instead we pass it separately to
+ * the parser, and there it gets coerced via doNegate().
+ *
+ * {decimalfail} is used because we would like "1..10" to lex as 1, dot_dot, 10.
+ *
+ * {realfail} is added to prevent the need for scanner
+ * backup when the {real} rule fails to match completely.
+ */
+digit [0-9]
+
+integer {digit}+
+decimal (({digit}*\.{digit}+)|({digit}+\.{digit}*))
+decimalfail {digit}+\.\.
+real ({integer}|{decimal})[Ee][-+]?{digit}+
+realfail ({integer}|{decimal})[Ee][-+]
+
+integer_junk {integer}{ident_start}
+decimal_junk {decimal}{ident_start}
+real_junk {real}{ident_start}
+
+param \${integer}
+param_junk \${integer}{ident_start}
+
+/* special characters for other dbms */
+/* we have to react differently in compat mode */
+informix_special [\$]
+
+other .
+
+/*
+ * Dollar quoted strings are totally opaque, and no escaping is done on them.
+ * Other quoted strings must allow some special characters such as single-quote
+ * and newline.
+ * Embedded single-quotes are implemented both in the SQL standard
+ * style of two adjacent single quotes "''" and in the Postgres/Java style
+ * of escaped-quote "\'".
+ * Other embedded escaped characters are matched explicitly and the leading
+ * backslash is dropped from the string.
+ * Note that xcstart must appear before operator, as explained above!
+ * Also whitespace (comment) must appear before operator.
+ */
+
+/* some stuff needed for ecpg */
+exec [eE][xX][eE][cC]
+sql [sS][qQ][lL]
+define [dD][eE][fF][iI][nN][eE]
+include [iI][nN][cC][lL][uU][dD][eE]
+include_next [iI][nN][cC][lL][uU][dD][eE]_[nN][eE][xX][tT]
+import [iI][mM][pP][oO][rR][tT]
+undef [uU][nN][dD][eE][fF]
+
+/* C version of hex number */
+xch 0[xX][0-9A-Fa-f]*
+
+ccomment "//".*\n
+
+if [iI][fF]
+ifdef [iI][fF][dD][eE][fF]
+ifndef [iI][fF][nN][dD][eE][fF]
+else [eE][lL][sS][eE]
+elif [eE][lL][iI][fF]
+endif [eE][nN][dD][iI][fF]
+
+struct [sS][tT][rR][uU][cC][tT]
+
+exec_sql {exec}{space}*{sql}{space}*
+ipdigit ({digit}|{digit}{digit}|{digit}{digit}{digit})
+ip {ipdigit}\.{ipdigit}\.{ipdigit}\.{ipdigit}
+
+/* we might want to parse all cpp include files */
+cppinclude {space}*#{include}{space}*
+cppinclude_next {space}*#{include_next}{space}*
+
+/* take care of cpp lines, they may also be continued */
+/* first a general line for all commands not starting with "i" */
+/* and then the other commands starting with "i", we have to add these
+ * separately because the cppline production would match on "include" too
+ */
+cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+\/)|.|\\{space}*{newline})*{newline}
+
+%%
+
+%{
+ /* code to execute during start of each call of yylex() */
+ token_start = NULL;
+%}
+
+<SQL>{
+{whitespace} {
+ /* ignore */
+ }
+} /* <SQL> */
+
+<C,SQL>{
+{xcstart} {
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ xcdepth = 0;
+ BEGIN(xc);
+ /* Put back any characters past slash-star; see above */
+ yyless(2);
+ fputs("/*", yyout);
+ }
+} /* <C,SQL> */
+
+<xc>{
+{xcstart} {
+ if (state_before_str_start == SQL)
+ {
+ xcdepth++;
+ /* Put back any characters past slash-star; see above */
+ yyless(2);
+ fputs("/_*", yyout);
+ }
+ else if (state_before_str_start == C)
+ {
+ ECHO;
+ }
+ }
+
+{xcstop} {
+ if (state_before_str_start == SQL)
+ {
+ if (xcdepth <= 0)
+ {
+ ECHO;
+ BEGIN(SQL);
+ token_start = NULL;
+ }
+ else
+ {
+ xcdepth--;
+ fputs("*_/", yyout);
+ }
+ }
+ else if (state_before_str_start == C)
+ {
+ ECHO;
+ BEGIN(C);
+ token_start = NULL;
+ }
+ }
+
+{xcinside} {
+ ECHO;
+ }
+
+{op_chars} {
+ ECHO;
+ }
+
+\*+ {
+ ECHO;
+ }
+
+<<EOF>> {
+ mmfatal(PARSE_ERROR, "unterminated /* comment");
+ }
+} /* <xc> */
+
+<SQL>{
+{xbstart} {
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xb);
+ startlit();
+ }
+} /* <SQL> */
+
+<xh>{xhinside} |
+<xb>{xbinside} {
+ addlit(yytext, yyleng);
+ }
+<xb><<EOF>> { mmfatal(PARSE_ERROR, "unterminated bit string literal"); }
+
+<SQL>{xhstart} {
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xh);
+ startlit();
+ }
+<xh><<EOF>> { mmfatal(PARSE_ERROR, "unterminated hexadecimal string literal"); }
+
+<C>{xqstart} {
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xqc);
+ startlit();
+ }
+
+<SQL>{
+{xnstart} {
+ /* National character.
+ * Transfer it as-is to the backend.
+ */
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xn);
+ startlit();
+ }
+
+{xqstart} {
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xq);
+ startlit();
+ }
+{xestart} {
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xe);
+ startlit();
+ }
+{xusstart} {
+ token_start = yytext;
+ state_before_str_start = YYSTATE;
+ BEGIN(xus);
+ startlit();
+ }
+} /* <SQL> */
+
+<xb,xh,xq,xqc,xe,xn,xus>{quote} {
+ /*
+ * When we are scanning a quoted string and see an end
+ * quote, we must look ahead for a possible continuation.
+ * If we don't see one, we know the end quote was in fact
+ * the end of the string. To reduce the lexer table size,
+ * we use a single "xqs" state to do the lookahead for all
+ * types of strings.
+ */
+ state_before_str_stop = YYSTATE;
+ BEGIN(xqs);
+ }
+<xqs>{quotecontinue} {
+ /*
+ * Found a quote continuation, so return to the in-quote
+ * state and continue scanning the literal. Nothing is
+ * added to the literal's contents.
+ */
+ BEGIN(state_before_str_stop);
+ }
+<xqs>{quotecontinuefail} |
+<xqs>{other} |
+<xqs><<EOF>> {
+ /*
+ * Failed to see a quote continuation. Throw back
+ * everything after the end quote, and handle the string
+ * according to the state we were in previously.
+ */
+ yyless(0);
+ BEGIN(state_before_str_start);
+
+ switch (state_before_str_stop)
+ {
+ case xb:
+ if (literalbuf[strspn(literalbuf, "01")] != '\0')
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid bit string literal");
+ base_yylval.str = psprintf("b'%s'", literalbuf);
+ return BCONST;
+ case xh:
+ if (literalbuf[strspn(literalbuf, "0123456789abcdefABCDEF")] != '\0')
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid hexadecimal string literal");
+ base_yylval.str = psprintf("x'%s'", literalbuf);
+ return XCONST;
+ case xq:
+ /* fallthrough */
+ case xqc:
+ base_yylval.str = psprintf("'%s'", literalbuf);
+ return SCONST;
+ case xe:
+ base_yylval.str = psprintf("E'%s'", literalbuf);
+ return SCONST;
+ case xn:
+ base_yylval.str = psprintf("N'%s'", literalbuf);
+ return SCONST;
+ case xus:
+ base_yylval.str = psprintf("U&'%s'", literalbuf);
+ return USCONST;
+ default:
+ mmfatal(PARSE_ERROR, "unhandled previous state in xqs\n");
+ }
+ }
+
+<xq,xe,xn,xus>{xqdouble} { addlit(yytext, yyleng); }
+<xqc>{xqcquote} { addlit(yytext, yyleng); }
+<xq,xqc,xn,xus>{xqinside} { addlit(yytext, yyleng); }
+<xe>{xeinside} {
+ addlit(yytext, yyleng);
+ }
+<xe>{xeunicode} {
+ addlit(yytext, yyleng);
+ }
+<xe>{xeescape} {
+ addlit(yytext, yyleng);
+ }
+<xe>{xeoctesc} {
+ addlit(yytext, yyleng);
+ }
+<xe>{xehexesc} {
+ addlit(yytext, yyleng);
+ }
+<xe>. {
+ /* This is only needed for \ just before EOF */
+ addlitchar(yytext[0]);
+ }
+<xq,xqc,xe,xn,xus><<EOF>> { mmfatal(PARSE_ERROR, "unterminated quoted string"); }
+
+<SQL>{
+{dolqdelim} {
+ token_start = yytext;
+ if (dolqstart)
+ free(dolqstart);
+ dolqstart = mm_strdup(yytext);
+ BEGIN(xdolq);
+ startlit();
+ addlit(yytext, yyleng);
+ }
+{dolqfailed} {
+ /* throw back all but the initial "$" */
+ yyless(1);
+ /* and treat it as {other} */
+ return yytext[0];
+ }
+} /* <SQL> */
+
+<xdolq>{dolqdelim} {
+ if (strcmp(yytext, dolqstart) == 0)
+ {
+ addlit(yytext, yyleng);
+ free(dolqstart);
+ dolqstart = NULL;
+ BEGIN(SQL);
+ base_yylval.str = mm_strdup(literalbuf);
+ return SCONST;
+ }
+ else
+ {
+ /*
+ * When we fail to match $...$ to dolqstart, transfer
+ * the $... part to the output, but put back the final
+ * $ for rescanning. Consider $delim$...$junk$delim$
+ */
+ addlit(yytext, yyleng - 1);
+ yyless(yyleng - 1);
+ }
+ }
+<xdolq>{dolqinside} {
+ addlit(yytext, yyleng);
+ }
+<xdolq>{dolqfailed} {
+ addlit(yytext, yyleng);
+ }
+<xdolq>. {
+ /* single quote or dollar sign */
+ addlitchar(yytext[0]);
+ }
+<xdolq><<EOF>> { mmfatal(PARSE_ERROR, "unterminated dollar-quoted string"); }
+
+<SQL>{
+{xdstart} {
+ state_before_str_start = YYSTATE;
+ BEGIN(xd);
+ startlit();
+ }
+{xuistart} {
+ state_before_str_start = YYSTATE;
+ BEGIN(xui);
+ startlit();
+ }
+} /* <SQL> */
+
+<xd>{xdstop} {
+ BEGIN(state_before_str_start);
+ if (literallen == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "zero-length delimited identifier");
+ /*
+ * The server will truncate the identifier here. We do
+ * not, as (1) it does not change the result; (2) we don't
+ * know what NAMEDATALEN the server might use; (3) this
+ * code path is also taken for literal query strings in
+ * PREPARE and EXECUTE IMMEDIATE, which can certainly be
+ * longer than NAMEDATALEN.
+ */
+ base_yylval.str = mm_strdup(literalbuf);
+ return CSTRING;
+ }
+<xdc>{xdstop} {
+ BEGIN(state_before_str_start);
+ base_yylval.str = mm_strdup(literalbuf);
+ return CSTRING;
+ }
+<xui>{dquote} {
+ BEGIN(state_before_str_start);
+ if (literallen == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "zero-length delimited identifier");
+ /* The backend will truncate the identifier here. We do not as it does not change the result. */
+ base_yylval.str = psprintf("U&\"%s\"", literalbuf);
+ return UIDENT;
+ }
+<xd,xui>{xddouble} {
+ addlit(yytext, yyleng);
+ }
+<xd,xui>{xdinside} {
+ addlit(yytext, yyleng);
+ }
+<xd,xui><<EOF>> { mmfatal(PARSE_ERROR, "unterminated quoted identifier"); }
+<C>{xdstart} {
+ state_before_str_start = YYSTATE;
+ BEGIN(xdc);
+ startlit();
+ }
+<xdc>{xdcinside} {
+ addlit(yytext, yyleng);
+ }
+<xdc><<EOF>> { mmfatal(PARSE_ERROR, "unterminated quoted string"); }
+
+<SQL>{
+{typecast} {
+ return TYPECAST;
+ }
+
+{dot_dot} {
+ return DOT_DOT;
+ }
+
+{colon_equals} {
+ return COLON_EQUALS;
+ }
+
+{equals_greater} {
+ return EQUALS_GREATER;
+ }
+
+{less_equals} {
+ return LESS_EQUALS;
+ }
+
+{greater_equals} {
+ return GREATER_EQUALS;
+ }
+
+{less_greater} {
+ /* We accept both "<>" and "!=" as meaning NOT_EQUALS */
+ return NOT_EQUALS;
+ }
+
+{not_equals} {
+ /* We accept both "<>" and "!=" as meaning NOT_EQUALS */
+ return NOT_EQUALS;
+ }
+
+{informix_special} {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ unput(':');
+ }
+ else
+ return yytext[0];
+ }
+
+{self} {
+ /*
+ * We may find a ';' inside a structure
+ * definition in a TYPE or VAR statement.
+ * This is not an EOL marker.
+ */
+ if (yytext[0] == ';' && struct_level == 0)
+ BEGIN(C);
+ return yytext[0];
+ }
+
+{operator} {
+ /*
+ * Check for embedded slash-star or dash-dash; those
+ * are comment starts, so operator must stop there.
+ * Note that slash-star or dash-dash at the first
+ * character will match a prior rule, not this one.
+ */
+ int nchars = yyleng;
+ char *slashstar = strstr(yytext, "/*");
+ char *dashdash = strstr(yytext, "--");
+
+ if (slashstar && dashdash)
+ {
+ /* if both appear, take the first one */
+ if (slashstar > dashdash)
+ slashstar = dashdash;
+ }
+ else if (!slashstar)
+ slashstar = dashdash;
+ if (slashstar)
+ nchars = slashstar - yytext;
+
+ /*
+ * For SQL compatibility, '+' and '-' cannot be the
+ * last char of a multi-char operator unless the operator
+ * contains chars that are not in SQL operators.
+ * The idea is to lex '=-' as two operators, but not
+ * to forbid operator names like '?-' that could not be
+ * sequences of SQL operators.
+ */
+ if (nchars > 1 &&
+ (yytext[nchars - 1] == '+' ||
+ yytext[nchars - 1] == '-'))
+ {
+ int ic;
+
+ for (ic = nchars - 2; ic >= 0; ic--)
+ {
+ char c = yytext[ic];
+ if (c == '~' || c == '!' || c == '@' ||
+ c == '#' || c == '^' || c == '&' ||
+ c == '|' || c == '`' || c == '?' ||
+ c == '%')
+ break;
+ }
+ if (ic < 0)
+ {
+ /*
+ * didn't find a qualifying character, so remove
+ * all trailing [+-]
+ */
+ do {
+ nchars--;
+ } while (nchars > 1 &&
+ (yytext[nchars - 1] == '+' ||
+ yytext[nchars - 1] == '-'));
+ }
+ }
+
+ if (nchars < yyleng)
+ {
+ /* Strip the unwanted chars from the token */
+ yyless(nchars);
+ /*
+ * If what we have left is only one char, and it's
+ * one of the characters matching "self", then
+ * return it as a character token the same way
+ * that the "self" rule would have.
+ */
+ if (nchars == 1 &&
+ strchr(",()[].;:+-*/%^<>=", yytext[0]))
+ return yytext[0];
+ /*
+ * Likewise, if what we have left is two chars, and
+ * those match the tokens ">=", "<=", "=>", "<>" or
+ * "!=", then we must return the appropriate token
+ * rather than the generic Op.
+ */
+ if (nchars == 2)
+ {
+ if (yytext[0] == '=' && yytext[1] == '>')
+ return EQUALS_GREATER;
+ if (yytext[0] == '>' && yytext[1] == '=')
+ return GREATER_EQUALS;
+ if (yytext[0] == '<' && yytext[1] == '=')
+ return LESS_EQUALS;
+ if (yytext[0] == '<' && yytext[1] == '>')
+ return NOT_EQUALS;
+ if (yytext[0] == '!' && yytext[1] == '=')
+ return NOT_EQUALS;
+ }
+ }
+
+ base_yylval.str = mm_strdup(yytext);
+ return Op;
+ }
+
+{param} {
+ base_yylval.ival = atol(yytext+1);
+ return PARAM;
+ }
+{param_junk} {
+ mmfatal(PARSE_ERROR, "trailing junk after parameter");
+ }
+
+{ip} {
+ base_yylval.str = mm_strdup(yytext);
+ return IP;
+ }
+} /* <SQL> */
+
+<C,SQL>{
+{integer} {
+ return process_integer_literal(yytext, &base_yylval);
+ }
+{decimal} {
+ base_yylval.str = mm_strdup(yytext);
+ return FCONST;
+ }
+{decimalfail} {
+ /* throw back the .., and treat as integer */
+ yyless(yyleng - 2);
+ return process_integer_literal(yytext, &base_yylval);
+ }
+{real} {
+ base_yylval.str = mm_strdup(yytext);
+ return FCONST;
+ }
+{realfail} {
+ /*
+ * throw back the [Ee][+-], and figure out whether what
+ * remains is an {integer} or {decimal}.
+ */
+ yyless(yyleng - 2);
+ return process_integer_literal(yytext, &base_yylval);
+ }
+} /* <C,SQL> */
+
+<SQL>{
+ /*
+ * Note that some trailing junk is valid in C (such as 100LL), so we
+ * contain this to SQL mode.
+ */
+{integer_junk} {
+ mmfatal(PARSE_ERROR, "trailing junk after numeric literal");
+ }
+{decimal_junk} {
+ mmfatal(PARSE_ERROR, "trailing junk after numeric literal");
+ }
+{real_junk} {
+ mmfatal(PARSE_ERROR, "trailing junk after numeric literal");
+ }
+
+:{identifier}((("->"|\.){identifier})|(\[{array}\]))* {
+ base_yylval.str = mm_strdup(yytext+1);
+ return CVARIABLE;
+ }
+
+{identifier} {
+ if (!isdefine())
+ {
+ int kwvalue;
+
+ /* Is it an SQL/ECPG keyword? */
+ kwvalue = ScanECPGKeywordLookup(yytext);
+ if (kwvalue >= 0)
+ return kwvalue;
+
+ /* Is it a C keyword? */
+ kwvalue = ScanCKeywordLookup(yytext);
+ if (kwvalue >= 0)
+ return kwvalue;
+
+ /*
+ * None of the above. Return it as an identifier.
+ *
+ * The backend will attempt to truncate and case-fold
+ * the identifier, but I see no good reason for ecpg
+ * to do so; that's just another way that ecpg could get
+ * out of step with the backend.
+ */
+ base_yylval.str = mm_strdup(yytext);
+ return IDENT;
+ }
+ }
+
+{other} {
+ return yytext[0];
+ }
+} /* <SQL> */
+
+ /*
+ * Begin ECPG-specific rules
+ */
+
+<C>{exec_sql} { BEGIN(SQL); return SQL_START; }
+<C>{informix_special} {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ BEGIN(SQL);
+ return SQL_START;
+ }
+ else
+ return S_ANYTHING;
+ }
+<C>{ccomment} { ECHO; }
+<C>{xch} {
+ char* endptr;
+
+ errno = 0;
+ base_yylval.ival = strtoul((char *) yytext, &endptr, 16);
+ if (*endptr != '\0' || errno == ERANGE)
+ {
+ errno = 0;
+ base_yylval.str = mm_strdup(yytext);
+ return SCONST;
+ }
+ return ICONST;
+ }
+<C>{cppinclude} {
+ if (system_includes)
+ {
+ include_next = false;
+ BEGIN(incl);
+ }
+ else
+ {
+ base_yylval.str = mm_strdup(yytext);
+ return CPP_LINE;
+ }
+ }
+<C>{cppinclude_next} {
+ if (system_includes)
+ {
+ include_next = true;
+ BEGIN(incl);
+ }
+ else
+ {
+ base_yylval.str = mm_strdup(yytext);
+ return CPP_LINE;
+ }
+ }
+<C,SQL>{cppline} {
+ base_yylval.str = mm_strdup(yytext);
+ return CPP_LINE;
+ }
+<C>{identifier} {
+ /*
+ * Try to detect a function name:
+ * look for identifiers at the global scope
+ * keep the last identifier before the first '(' and '{'
+ */
+ if (braces_open == 0 && parenths_open == 0)
+ {
+ if (current_function)
+ free(current_function);
+ current_function = mm_strdup(yytext);
+ }
+ /* Informix uses SQL defines only in SQL space */
+ /* however, some defines have to be taken care of for compatibility */
+ if ((!INFORMIX_MODE || !isinformixdefine()) && !isdefine())
+ {
+ int kwvalue;
+
+ kwvalue = ScanCKeywordLookup(yytext);
+ if (kwvalue >= 0)
+ return kwvalue;
+ else
+ {
+ base_yylval.str = mm_strdup(yytext);
+ return IDENT;
+ }
+ }
+ }
+<C>{xcstop} { mmerror(PARSE_ERROR, ET_ERROR, "nested /* ... */ comments"); }
+<C>":" { return ':'; }
+<C>";" { return ';'; }
+<C>"," { return ','; }
+<C>"*" { return '*'; }
+<C>"%" { return '%'; }
+<C>"/" { return '/'; }
+<C>"+" { return '+'; }
+<C>"-" { return '-'; }
+<C>"(" { parenths_open++; return '('; }
+<C>")" { parenths_open--; return ')'; }
+<C,xskip>{space} { ECHO; }
+<C>\{ { return '{'; }
+<C>\} { return '}'; }
+<C>\[ { return '['; }
+<C>\] { return ']'; }
+<C>\= { return '='; }
+<C>"->" { return S_MEMBER; }
+<C>">>" { return S_RSHIFT; }
+<C>"<<" { return S_LSHIFT; }
+<C>"||" { return S_OR; }
+<C>"&&" { return S_AND; }
+<C>"++" { return S_INC; }
+<C>"--" { return S_DEC; }
+<C>"==" { return S_EQUAL; }
+<C>"!=" { return S_NEQUAL; }
+<C>"+=" { return S_ADD; }
+<C>"-=" { return S_SUB; }
+<C>"*=" { return S_MUL; }
+<C>"/=" { return S_DIV; }
+<C>"%=" { return S_MOD; }
+<C>"->*" { return S_MEMPOINT; }
+<C>".*" { return S_DOTPOINT; }
+<C>{other} { return S_ANYTHING; }
+<C>{exec_sql}{define}{space}* { BEGIN(def_ident); }
+<C>{informix_special}{define}{space}* {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ BEGIN(def_ident);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+<C>{exec_sql}{undef}{space}* { BEGIN(undef); }
+<C>{informix_special}{undef}{space}* {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ BEGIN(undef);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+<undef>{identifier}{space}*";" {
+ struct _defines *ptr, *ptr2 = NULL;
+ int i;
+
+ /*
+ * Skip the ";" and trailing whitespace. Note that yytext
+ * contains at least one non-space character plus the ";"
+ */
+ for (i = strlen(yytext)-2;
+ i > 0 && ecpg_isspace(yytext[i]);
+ i--)
+ ;
+ yytext[i+1] = '\0';
+
+
+ for (ptr = defines; ptr != NULL; ptr2 = ptr, ptr = ptr->next)
+ {
+ if (strcmp(yytext, ptr->olddef) == 0)
+ {
+ if (ptr2 == NULL)
+ defines = ptr->next;
+ else
+ ptr2->next = ptr->next;
+ free(ptr->newdef);
+ free(ptr->olddef);
+ free(ptr);
+ break;
+ }
+ }
+
+ BEGIN(C);
+ }
+<undef>{other}|\n {
+ mmfatal(PARSE_ERROR, "missing identifier in EXEC SQL UNDEF command");
+ yyterminate();
+ }
+<C>{exec_sql}{include}{space}* { BEGIN(incl); }
+<C>{informix_special}{include}{space}* {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ BEGIN(incl);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+<C,xskip>{exec_sql}{ifdef}{space}* {
+ if (preproc_tos >= MAX_NESTED_IF-1)
+ mmfatal(PARSE_ERROR, "too many nested EXEC SQL IFDEF conditions");
+ preproc_tos++;
+ stacked_if_value[preproc_tos].active = false;
+ stacked_if_value[preproc_tos].saw_active = false;
+ stacked_if_value[preproc_tos].else_branch = false;
+ ifcond = true;
+ BEGIN(xcond);
+ }
+<C,xskip>{informix_special}{ifdef}{space}* {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos >= MAX_NESTED_IF-1)
+ mmfatal(PARSE_ERROR, "too many nested EXEC SQL IFDEF conditions");
+ preproc_tos++;
+ stacked_if_value[preproc_tos].active = false;
+ stacked_if_value[preproc_tos].saw_active = false;
+ stacked_if_value[preproc_tos].else_branch = false;
+ ifcond = true;
+ BEGIN(xcond);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+<C,xskip>{exec_sql}{ifndef}{space}* {
+ if (preproc_tos >= MAX_NESTED_IF-1)
+ mmfatal(PARSE_ERROR, "too many nested EXEC SQL IFDEF conditions");
+ preproc_tos++;
+ stacked_if_value[preproc_tos].active = false;
+ stacked_if_value[preproc_tos].saw_active = false;
+ stacked_if_value[preproc_tos].else_branch = false;
+ ifcond = false;
+ BEGIN(xcond);
+ }
+<C,xskip>{informix_special}{ifndef}{space}* {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos >= MAX_NESTED_IF-1)
+ mmfatal(PARSE_ERROR, "too many nested EXEC SQL IFDEF conditions");
+ preproc_tos++;
+ stacked_if_value[preproc_tos].active = false;
+ stacked_if_value[preproc_tos].saw_active = false;
+ stacked_if_value[preproc_tos].else_branch = false;
+ ifcond = false;
+ BEGIN(xcond);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+<C,xskip>{exec_sql}{elif}{space}* {
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
+ if (stacked_if_value[preproc_tos].else_branch)
+ mmfatal(PARSE_ERROR, "missing \"EXEC SQL ENDIF;\"");
+ ifcond = true;
+ BEGIN(xcond);
+ }
+<C,xskip>{informix_special}{elif}{space}* {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
+ if (stacked_if_value[preproc_tos].else_branch)
+ mmfatal(PARSE_ERROR, "missing \"EXEC SQL ENDIF;\"");
+ ifcond = true;
+ BEGIN(xcond);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+
+<C,xskip>{exec_sql}{else}{space}*";" { /* only exec sql endif pops the stack, so take care of duplicated 'else' */
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
+ else if (stacked_if_value[preproc_tos].else_branch)
+ mmfatal(PARSE_ERROR, "more than one EXEC SQL ELSE");
+ else
+ {
+ stacked_if_value[preproc_tos].else_branch = true;
+ stacked_if_value[preproc_tos].active =
+ (stacked_if_value[preproc_tos-1].active &&
+ !stacked_if_value[preproc_tos].saw_active);
+ stacked_if_value[preproc_tos].saw_active = true;
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+ }
+<C,xskip>{informix_special}{else}{space}*";" {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
+ else if (stacked_if_value[preproc_tos].else_branch)
+ mmfatal(PARSE_ERROR, "more than one EXEC SQL ELSE");
+ else
+ {
+ stacked_if_value[preproc_tos].else_branch = true;
+ stacked_if_value[preproc_tos].active =
+ (stacked_if_value[preproc_tos-1].active &&
+ !stacked_if_value[preproc_tos].saw_active);
+ stacked_if_value[preproc_tos].saw_active = true;
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+<C,xskip>{exec_sql}{endif}{space}*";" {
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "unmatched EXEC SQL ENDIF");
+ else
+ preproc_tos--;
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+<C,xskip>{informix_special}{endif}{space}*";" {
+ /* are we simulating Informix? */
+ if (INFORMIX_MODE)
+ {
+ if (preproc_tos == 0)
+ mmfatal(PARSE_ERROR, "unmatched EXEC SQL ENDIF");
+ else
+ preproc_tos--;
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+ else
+ {
+ yyless(1);
+ return S_ANYTHING;
+ }
+ }
+
+<xskip>{other} { /* ignore */ }
+
+<xcond>{identifier}{space}*";" {
+ {
+ struct _defines *defptr;
+ unsigned int i;
+ bool this_active;
+
+ /*
+ * Skip the ";" and trailing whitespace. Note that yytext
+ * contains at least one non-space character plus the ";"
+ */
+ for (i = strlen(yytext)-2;
+ i > 0 && ecpg_isspace(yytext[i]);
+ i--)
+ ;
+ yytext[i+1] = '\0';
+
+ for (defptr = defines;
+ defptr != NULL &&
+ strcmp(yytext, defptr->olddef) != 0;
+ defptr = defptr->next)
+ /* skip */ ;
+
+ this_active = (defptr ? ifcond : !ifcond);
+ stacked_if_value[preproc_tos].active =
+ (stacked_if_value[preproc_tos-1].active &&
+ !stacked_if_value[preproc_tos].saw_active &&
+ this_active);
+ stacked_if_value[preproc_tos].saw_active |= this_active;
+ }
+
+ if (stacked_if_value[preproc_tos].active)
+ BEGIN(C);
+ else
+ BEGIN(xskip);
+ }
+
+<xcond>{other}|\n {
+ mmfatal(PARSE_ERROR, "missing identifier in EXEC SQL IFDEF command");
+ yyterminate();
+ }
+<def_ident>{identifier} {
+ old = mm_strdup(yytext);
+ BEGIN(def);
+ startlit();
+ }
+<def_ident>{other}|\n {
+ mmfatal(PARSE_ERROR, "missing identifier in EXEC SQL DEFINE command");
+ yyterminate();
+ }
+<def>{space}*";" {
+ struct _defines *ptr, *this;
+
+ for (ptr = defines; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp(old, ptr->olddef) == 0)
+ {
+ free(ptr->newdef);
+ ptr->newdef = mm_strdup(literalbuf);
+ }
+ }
+ if (ptr == NULL)
+ {
+ this = (struct _defines *) mm_alloc(sizeof(struct _defines));
+
+ /* initial definition */
+ this->olddef = old;
+ this->newdef = mm_strdup(literalbuf);
+ this->next = defines;
+ this->used = NULL;
+ defines = this;
+ }
+
+ BEGIN(C);
+ }
+<def>[^;] { addlit(yytext, yyleng); }
+<incl>\<[^\>]+\>{space}*";"? { parse_include(); }
+<incl>{dquote}{xdinside}{dquote}{space}*";"? { parse_include(); }
+<incl>[^;\<\>\"]+";" { parse_include(); }
+<incl>{other}|\n {
+ mmfatal(PARSE_ERROR, "syntax error in EXEC SQL INCLUDE command");
+ yyterminate();
+ }
+
+<<EOF>> {
+ if (yy_buffer == NULL)
+ {
+ if (preproc_tos > 0)
+ {
+ preproc_tos = 0;
+ mmfatal(PARSE_ERROR, "missing \"EXEC SQL ENDIF;\"");
+ }
+ yyterminate();
+ }
+ else
+ {
+ struct _yy_buffer *yb = yy_buffer;
+ int i;
+ struct _defines *ptr;
+
+ for (ptr = defines; ptr; ptr = ptr->next)
+ if (ptr->used == yy_buffer)
+ {
+ ptr->used = NULL;
+ break;
+ }
+
+ if (yyin != NULL)
+ fclose(yyin);
+
+ yy_delete_buffer(YY_CURRENT_BUFFER);
+ yy_switch_to_buffer(yy_buffer->buffer);
+
+ yylineno = yy_buffer->lineno;
+
+ /* We have to output the filename only if we change files here */
+ i = strcmp(input_filename, yy_buffer->filename);
+
+ free(input_filename);
+ input_filename = yy_buffer->filename;
+
+ yy_buffer = yy_buffer->next;
+ free(yb);
+
+ if (i != 0)
+ output_line_number();
+
+ }
+ }
+
+<INITIAL>{other}|\n { mmfatal(PARSE_ERROR, "internal error: unreachable state; please report this to <%s>", PACKAGE_BUGREPORT); }
+
+%%
+
+/* LCOV_EXCL_STOP */
+
+void
+lex_init(void)
+{
+ braces_open = 0;
+ parenths_open = 0;
+ current_function = NULL;
+
+ yylineno = 1;
+
+ /* initialize state for if/else/endif */
+ preproc_tos = 0;
+ stacked_if_value[preproc_tos].active = true;
+ stacked_if_value[preproc_tos].saw_active = true;
+ stacked_if_value[preproc_tos].else_branch = false;
+
+ /* initialize literal buffer to a reasonable but expansible size */
+ if (literalbuf == NULL)
+ {
+ literalalloc = 1024;
+ literalbuf = (char *) mm_alloc(literalalloc);
+ }
+ startlit();
+
+ BEGIN(C);
+}
+
+static void
+addlit(char *ytext, int yleng)
+{
+ /* enlarge buffer if needed */
+ if ((literallen+yleng) >= literalalloc)
+ {
+ do
+ literalalloc *= 2;
+ while ((literallen+yleng) >= literalalloc);
+ literalbuf = (char *) realloc(literalbuf, literalalloc);
+ }
+ /* append new data, add trailing null */
+ memcpy(literalbuf+literallen, ytext, yleng);
+ literallen += yleng;
+ literalbuf[literallen] = '\0';
+}
+
+static void
+addlitchar(unsigned char ychar)
+{
+ /* enlarge buffer if needed */
+ if ((literallen+1) >= literalalloc)
+ {
+ literalalloc *= 2;
+ literalbuf = (char *) realloc(literalbuf, literalalloc);
+ }
+ /* append new data, add trailing null */
+ literalbuf[literallen] = ychar;
+ literallen += 1;
+ literalbuf[literallen] = '\0';
+}
+
+/*
+ * Process {integer}. Note this will also do the right thing with {decimal},
+ * ie digits and a decimal point.
+ */
+static int
+process_integer_literal(const char *token, YYSTYPE *lval)
+{
+ int val;
+ char *endptr;
+
+ errno = 0;
+ val = strtoint(token, &endptr, 10);
+ if (*endptr != '\0' || errno == ERANGE)
+ {
+ /* integer too large (or contains decimal pt), treat it as a float */
+ lval->str = mm_strdup(token);
+ return FCONST;
+ }
+ lval->ival = val;
+ return ICONST;
+}
+
+static void
+parse_include(void)
+{
+ /* got the include file name */
+ struct _yy_buffer *yb;
+ struct _include_path *ip;
+ char inc_file[MAXPGPATH];
+ unsigned int i;
+
+ yb = mm_alloc(sizeof(struct _yy_buffer));
+
+ yb->buffer = YY_CURRENT_BUFFER;
+ yb->lineno = yylineno;
+ yb->filename = input_filename;
+ yb->next = yy_buffer;
+
+ yy_buffer = yb;
+
+ /*
+ * skip the ";" if there is one and trailing whitespace. Note that
+ * yytext contains at least one non-space character plus the ";"
+ */
+ for (i = strlen(yytext)-2;
+ i > 0 && ecpg_isspace(yytext[i]);
+ i--)
+ ;
+
+ if (yytext[i] == ';')
+ i--;
+
+ yytext[i+1] = '\0';
+
+ yyin = NULL;
+
+ /* If file name is enclosed in '"' remove these and look only in '.' */
+ /* Informix does look into all include paths though, except filename starts with '/' */
+ if (yytext[0] == '"' && yytext[i] == '"' &&
+ ((compat != ECPG_COMPAT_INFORMIX && compat != ECPG_COMPAT_INFORMIX_SE) || yytext[1] == '/'))
+ {
+ yytext[i] = '\0';
+ memmove(yytext, yytext+1, strlen(yytext));
+
+ strlcpy(inc_file, yytext, sizeof(inc_file));
+ yyin = fopen(inc_file, "r");
+ if (!yyin)
+ {
+ if (strlen(inc_file) <= 2 || strcmp(inc_file + strlen(inc_file) - 2, ".h") != 0)
+ {
+ strcat(inc_file, ".h");
+ yyin = fopen(inc_file, "r");
+ }
+ }
+
+ }
+ else
+ {
+ if ((yytext[0] == '"' && yytext[i] == '"') || (yytext[0] == '<' && yytext[i] == '>'))
+ {
+ yytext[i] = '\0';
+ memmove(yytext, yytext+1, strlen(yytext));
+ }
+
+ for (ip = include_paths; yyin == NULL && ip != NULL; ip = ip->next)
+ {
+ if (strlen(ip->path) + strlen(yytext) + 4 > MAXPGPATH)
+ {
+ fprintf(stderr, _("Error: include path \"%s/%s\" is too long on line %d, skipping\n"), ip->path, yytext, yylineno);
+ continue;
+ }
+ snprintf (inc_file, sizeof(inc_file), "%s/%s", ip->path, yytext);
+ yyin = fopen(inc_file, "r");
+ if (!yyin)
+ {
+ if (strcmp(inc_file + strlen(inc_file) - 2, ".h") != 0)
+ {
+ strcat(inc_file, ".h");
+ yyin = fopen(inc_file, "r");
+ }
+ }
+ /* if the command was "include_next" we have to disregard the first hit */
+ if (yyin && include_next)
+ {
+ fclose (yyin);
+ yyin = NULL;
+ include_next = false;
+ }
+ }
+ }
+ if (!yyin)
+ mmfatal(NO_INCLUDE_FILE, "could not open include file \"%s\" on line %d", yytext, yylineno);
+
+ input_filename = mm_strdup(inc_file);
+ yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE));
+ yylineno = 1;
+ output_line_number();
+
+ BEGIN(C);
+}
+
+/*
+ * ecpg_isspace() --- return true if flex scanner considers char whitespace
+ */
+static bool
+ecpg_isspace(char ch)
+{
+ if (ch == ' ' ||
+ ch == '\t' ||
+ ch == '\n' ||
+ ch == '\r' ||
+ ch == '\f')
+ return true;
+ return false;
+}
+
+static bool isdefine(void)
+{
+ struct _defines *ptr;
+
+ /* is it a define? */
+ for (ptr = defines; ptr; ptr = ptr->next)
+ {
+ if (strcmp(yytext, ptr->olddef) == 0 && ptr->used == NULL)
+ {
+ struct _yy_buffer *yb;
+
+ yb = mm_alloc(sizeof(struct _yy_buffer));
+
+ yb->buffer = YY_CURRENT_BUFFER;
+ yb->lineno = yylineno;
+ yb->filename = mm_strdup(input_filename);
+ yb->next = yy_buffer;
+
+ ptr->used = yy_buffer = yb;
+
+ yy_scan_string(ptr->newdef);
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool isinformixdefine(void)
+{
+ const char *new = NULL;
+
+ if (strcmp(yytext, "dec_t") == 0)
+ new = "decimal";
+ else if (strcmp(yytext, "intrvl_t") == 0)
+ new = "interval";
+ else if (strcmp(yytext, "dtime_t") == 0)
+ new = "timestamp";
+
+ if (new)
+ {
+ struct _yy_buffer *yb;
+
+ yb = mm_alloc(sizeof(struct _yy_buffer));
+
+ yb->buffer = YY_CURRENT_BUFFER;
+ yb->lineno = yylineno;
+ yb->filename = mm_strdup(input_filename);
+ yb->next = yy_buffer;
+ yy_buffer = yb;
+
+ yy_scan_string(new);
+ return true;
+ }
+
+ return false;
+}
diff --git a/src/interfaces/ecpg/preproc/po/cs.po b/src/interfaces/ecpg/preproc/po/cs.po
new file mode 100644
index 0000000..0112bad
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/cs.po
@@ -0,0 +1,695 @@
+# Czech message translation file for ecpg
+# Copyright (C) 2012 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+#
+# Tomáš Vondra <tv@fuzzy.cz>, 2012, 2013.
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg-cs (PostgreSQL 9.3)\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2020-10-31 16:09+0000\n"
+"PO-Revision-Date: 2021-09-16 09:06+0200\n"
+"Last-Translator: Tomas Vondra <tv@fuzzy.cz>\n"
+"Language-Team: Czech <info@cspug.cx>\n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+"X-Generator: Poedit 2.4.1\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "proměnná \"%s\" musí mít číselný typ"
+
+#: descriptor.c:124 descriptor.c:146
+#, c-format
+msgid "descriptor \"%s\" does not exist"
+msgstr "descriptor \"%s\" neexistuje"
+
+#: descriptor.c:161 descriptor.c:213
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "descriptor header item \"%d\" neexistuje"
+
+#: descriptor.c:183
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable je vždy 1"
+
+#: descriptor.c:186
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member je vždy 0"
+
+#: descriptor.c:280
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "descriptor item \"%s\" není implementován"
+
+#: descriptor.c:290
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "descriptor item \"%s\" nelze nastavit"
+
+#: ecpg.c:35
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s je PostgreSQL preprocesor vloženého SQL pro C programy.\n"
+"\n"
+
+#: ecpg.c:37
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Použití:\n"
+" %s [VOLBA]... SOUBOR...\n"
+"\n"
+
+#: ecpg.c:40
+#, c-format
+msgid "Options:\n"
+msgstr "Volby:\n"
+
+#: ecpg.c:41
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c automaticky generuje C kód z vložných SQL příkazů;\n"
+" toto ovlivňuje EXEC SQL TYPE\n"
+
+#: ecpg.c:43
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MÓD nastaví mód kompatibility; MÓD může být jedno z \n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:46
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d zapne generování ladicích informací parseru\n"
+
+#: ecpg.c:48
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL definuje SYMBOL\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h naparsuje hlavičkový soubor, tato volba zahrnuje volbu \"-c\"\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i naparsuje také systémové hlavičkové soubory\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I ADRESÁŘ vyhledá include soubory v ADRESÁŘi\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o SOUBOR zapíše výsledek do SOUBORu\n"
+
+#: ecpg.c:53
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r VOLBA určuje run-time chování; VOLBA může být:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:55
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression běh v módu regresních testů\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t zapne autocommit transakcí\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version vypíše informaci o verzi, poté skončí\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help zobrazí tuto nápovědu; poté skončí\n"
+
+#: ecpg.c:59
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Pokud není zadán žádný výstupní soubor, je jméno získáno přidáním .c\n"
+"na konec jména vstupního souboru, po odstranění koncovky .pgc pokud\n"
+"je přítomna.\n"
+
+#: ecpg.c:61
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"Chyby hlašte na <%s>.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "%s domácí stránka: <%s>\n"
+
+#: ecpg.c:140
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: nelze nalézt cestu k vlastnímu spustitelnému souboru\n"
+
+#: ecpg.c:175 ecpg.c:332 ecpg.c:343
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: nelze otevřít soubor \"%s\": %s\n"
+
+#: ecpg.c:218 ecpg.c:231 ecpg.c:247 ecpg.c:273
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Zkuste \"%s --help\" pro více informací.\n"
+
+#: ecpg.c:242
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: podpora pro ladicí informace parseru (-d) není dostupná\n"
+
+#: ecpg.c:261
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, PostgreSQL embedded C preprocessor, verze %s\n"
+
+#: ecpg.c:263
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... hledání začíná zde:\n"
+
+#: ecpg.c:266
+#, c-format
+msgid "end of search list\n"
+msgstr "konec vyhledávacího seznamu\n"
+
+#: ecpg.c:272
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: nebyl zadán žádný vstupní soubor\n"
+
+#: ecpg.c:466
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "kurzor \"%s\" byl deklarován ale nebyl otevřen"
+
+#: ecpg.c:479 preproc.y:128
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "nelze odstranit výstupní soubor \"%s\"\n"
+
+#: pgc.l:502
+#, c-format
+msgid "unterminated /* comment"
+msgstr "neukončený /* komentář"
+
+#: pgc.l:519
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "neukončený literál - bitový řetězec"
+
+#: pgc.l:527
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "neukončený literál - hexadecimální řetězec"
+
+#: pgc.l:602
+#, c-format
+msgid "invalid bit string literal"
+msgstr "neplatný bit string literál"
+
+#: pgc.l:623
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "neošetřený předchozí stav v xqs\n"
+
+#: pgc.l:652 pgc.l:754
+#, c-format
+msgid "unterminated quoted string"
+msgstr "neukončený řetězec v uvozovkách"
+
+#: pgc.l:703
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "neukončený dollar-quoted řetězec"
+
+#: pgc.l:721 pgc.l:734
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "ohraničený (delimited) identifikátor s nulovou délkou"
+
+#: pgc.l:745
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "neukončený identifikátor v uvozovkách"
+
+#: pgc.l:1076
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "vnořené /* ... */ komentáře"
+
+#: pgc.l:1169
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "chybějící identifikátor v příkazu EXEC SQL UNDEF"
+
+#: pgc.l:1187 pgc.l:1200 pgc.l:1216 pgc.l:1229
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "příliš mnoho zanořených EXEC SQL IFDEF podmínek"
+
+#: pgc.l:1245 pgc.l:1256 pgc.l:1271 pgc.l:1293
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "chybějící odpovídající \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:1247 pgc.l:1258 pgc.l:1439
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "chybějící \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1273 pgc.l:1295
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "více než jedna větev EXEC SQL ELSE"
+
+#: pgc.l:1318 pgc.l:1332
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "neodpovídající EXEC SQL ENDIF"
+
+#: pgc.l:1387
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "chybějící identifikátor v příkazu EXEC SQL IFDEF"
+
+#: pgc.l:1396
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "chybějící identifikátor v příkazu EXEC SQL DEFINE"
+
+#: pgc.l:1429
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "syntaktická chyba v příkazu EXEC SQL INCLUDE"
+
+#: pgc.l:1479
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "interní chyba: nedosažitelný stav; oznamte toto prosím na <%s>"
+
+#: pgc.l:1631
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Chyba: include path \"%s/%s\" na řádku %d je příliš dlouhá, přeskakuji\n"
+
+#: pgc.l:1654
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "nelze otevřít soubor \"%s\" na řádku %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "syntaktická chyba"
+
+#: preproc.y:82
+#, c-format
+msgid "WARNING: "
+msgstr "VAROVÁNÍ: "
+
+#: preproc.y:85
+#, c-format
+msgid "ERROR: "
+msgstr "CHYBA: "
+
+#: preproc.y:512
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "kurzor \"%s\" neexistuje"
+
+#: preproc.y:541
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "inicializátor (initializer) není v definici typu povolen"
+
+#: preproc.y:543
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "název typu \"string\" je vyhrazen pro mód Informix"
+
+#: preproc.y:550 preproc.y:15960
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "typ \"%s\" je již definován"
+
+#: preproc.y:575 preproc.y:16603 preproc.y:16928 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "vícerozměrná pole pro jednoduché datové typy nejsou podporována"
+
+#: preproc.y:1704
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "AT volba není v příkazu CLOSE DATABASE povolena"
+
+#: preproc.y:1952
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "AT volba není v příkazu CONNECT povolena"
+
+#: preproc.y:1986
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "AT volba není v příkazu DISCONNECT povolena"
+
+#: preproc.y:2041
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "AT volba není v příkazu SET CONNECTION povolena"
+
+#: preproc.y:2063
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "AT volba není v příkazu TYPE povolena"
+
+#: preproc.y:2072
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "AT volba není v příkazu VAR povolena"
+
+#: preproc.y:2079
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "AT volba není v příkazu WHENEVER povolena"
+
+#: preproc.y:2156 preproc.y:2328 preproc.y:2333 preproc.y:2456 preproc.y:4034
+#: preproc.y:4682 preproc.y:5624 preproc.y:5924 preproc.y:7542 preproc.y:9081
+#: preproc.y:9086 preproc.y:11921
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "nepodporovaná vlastnost bude předána serveru"
+
+#: preproc.y:2714
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "příkaz SHOW ALL není implementován"
+
+#: preproc.y:3382
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "příkaz COPY FROM STDIN není implementován"
+
+#: preproc.y:10060 preproc.y:15545
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "použití proměnné \"%s\" v dalších deklaracích není podporováno"
+
+#: preproc.y:10062 preproc.y:15547
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "kurzor \"%s\" je již definován"
+
+#: preproc.y:10502
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "již neopdporovaná syntaxe LIMIT #,# předána serveru"
+
+#: preproc.y:10835 preproc.y:10842
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "poddotaz ve FROM musí mít alias"
+
+#: preproc.y:15268 preproc.y:15275
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS nemůže specifikovat INTO"
+
+#: preproc.y:15311
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "očekáváno \"@\", nalezeno \"%s\""
+
+#: preproc.y:15323
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "podporovány jsou pouze protokoly \"tcp\" a \"unix\" a typ databáze \"postgresql\""
+
+#: preproc.y:15326
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "očekáváno \"://\", nalezeno \"%s\""
+
+#: preproc.y:15331
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Unixové sockety fungují pouze na \"localhost\" ale ne na \"%s\""
+
+#: preproc.y:15357
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "očekáváno \"postgresql\", nalezeno \"%s\""
+
+#: preproc.y:15360
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "chybný typ spojení: %s"
+
+#: preproc.y:15369
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "očekáváno \"@\" nebo \"://\", nalezeno \"%s\""
+
+#: preproc.y:15444 preproc.y:15462
+#, c-format
+msgid "invalid data type"
+msgstr "chybný datový typ"
+
+#: preproc.y:15473 preproc.y:15490
+#, c-format
+msgid "incomplete statement"
+msgstr "neúplný příkaz"
+
+#: preproc.y:15476 preproc.y:15493
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "nerozpoznaný token \"%s\""
+
+#: preproc.y:15763
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "pouze datové typy numeric a decimal mají argumenty přesnost/velikost"
+
+#: preproc.y:15775
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "specifikace intervalu zde není povolena"
+
+#: preproc.y:15935 preproc.y:15987
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "příliš mnoho úrovní v definici vnořené struktury/union"
+
+#: preproc.y:16110
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "ukazatele na varchar nejsou implementovány"
+
+#: preproc.y:16297 preproc.y:16322
+#, c-format
+msgid "using unsupported DESCRIBE statement"
+msgstr "použití nepodporovaného příkazu DESCRIBE"
+
+#: preproc.y:16569
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "inicializátor není v příkazu EXEC SQL VAR podporován"
+
+#: preproc.y:16886
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "pole identifikátorů nejsou na vstupu povolena"
+
+#: preproc.y:17073
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "operátor není povolen v definici proměnné"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:17114
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s na nebo blízko \"%s\""
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "paměť vyčerpána"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "nerozpoznaný kód typu proměnné %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "proměnná \"%s\" je překryta lokální proměnnou s jiným datovým typem"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "proměnná \"%s\" je překryta lokální proměnnou"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "indicator variable \"%s\" je překryta lokální proměnnou s jiným datovým typem"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "indicator variable \"%s\" je překryta lokální proměnnou"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "indicator variable pro pole/ukaztel musí být pole/ukazatel"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "vnořená pole nejsou podporována (kromě řetězců)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "indikátor pro strukturu musí být struktura"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "indikátor pro jednoduché datové typy musí být jednoduchý"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "indikátor pro strukturu \"%s\" má příliš málo položek"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "indikátor pro strukturu \"%s\" má příliš mnoho položek"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "nerozpoznaný kód deskriptoru položky %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "nesprávně vytvořený název proměnné \"%s\""
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "proměnná \"%s\" není ukazatel"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "proměnná \"%s\" není ukazatel na strukturu nebo sjednocení"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "proměnná \"%s\" není ani struktura ani sjednocení"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "proměnná \"%s\" není pole"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "proměnná \"%s\" není deklarována"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "indicator variable musí mít celočíselný typ"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "nerozpoznaný název datového typu \"%s\""
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "vícerozměrná pole nejsou podporována"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "víceúrovňové ukazatele (více než 2 úrovně) nejsou podporovány; nalezena %d úroveň"
+msgstr[1] "víceúrovňové ukazatele (více než 2 úrovně) nejsou podporovány; nalezeny %d úrovně"
+msgstr[2] "víceúrovňové ukazatele (více než 2 úrovně) nejsou podporovány; nalezeny %d úrovně"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "ukazatel na ukazatel není pro tento datový typ podporován"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "vícerozměrná pole pro struktury nejsou podporována"
+
+#~ msgid "COPY TO STDIN is not possible"
+#~ msgstr "příkaz COPY TO STDIN nelze použít"
+
+#~ msgid "COPY FROM STDOUT is not possible"
+#~ msgstr "příkaz COPY FROM STDOUT nelze použít"
+
+#~ msgid ""
+#~ "\n"
+#~ "Report bugs to <pgsql-bugs@lists.postgresql.org>.\n"
+#~ msgstr ""
+#~ "\n"
+#~ "Chyby hlaste na adresu <pgsql-bugs@postgresql.org>.\n"
diff --git a/src/interfaces/ecpg/preproc/po/de.po b/src/interfaces/ecpg/preproc/po/de.po
new file mode 100644
index 0000000..9575a1a
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/de.po
@@ -0,0 +1,710 @@
+# German message translation file for ecpg
+# Copyright (C) 2009-2022 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+#
+# Use these quotes: »%s«
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-05-08 07:39+0000\n"
+"PO-Revision-Date: 2022-05-08 13:50+0200\n"
+"Last-Translator: Peter Eisentraut <peter@eisentraut.org>\n"
+"Language-Team: German <pgsql-translators@postgresql.org>\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "Variable »%s« muss einen numerischen Typ haben"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "Deskriptor %s gebunden an Verbindung %s existiert nicht"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "Deskriptor %s gebunden an die Standardverbindung existiert nicht"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "Deskriptorkopfelement »%d« existiert nicht"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable ist immer 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member ist immer 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "Deskriptorelement »%s« ist nicht implementiert"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "Deskriptorelement »%s« kann nicht gesetzt werden"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s ist der Embedded-SQL-Präprozessor von PostgreSQL für C-Programme.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Aufruf:\n"
+" %s [OPTION]... DATEI...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Optionen:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c automatisch C-Code aus eingebettetem SQL-Code erzeugen;\n"
+" betrifft EXEC SQL TYPE\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MODUS Kompatibilitätsmodus setzen; MODUS kann sein:\n"
+" »INFORMIX«, »INFORMIX_SE«, »ORACLE«\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d Parser-Debug-Ausgabe erzeugen\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL SYMBOL definieren\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h eine Headerdatei parsen, schließt Option »-c« ein\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i Systemheaderdateien ebenfalls parsen\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I VERZ VERZ nach Include-Dateien durchsuchen\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o DATEI Ausgabe in DATEI schreiben\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPTION Laufzeitverhalten bestimmen; OPTION kann sein:\n"
+" »no_indicator«, »prepare«, »questionmarks«\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression Regressiontestmodus verwenden\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t Autocommit von Transaktionen anschalten\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version Versionsinformationen anzeigen, dann beenden\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help diese Hilfe anzeigen, dann beenden\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Wenn keine Ausgabedatei angegeben ist, dann wird .c an den Namen der\n"
+"Eingabedatei angehängt und vorher .pgc, falls vorhanden, entfernt.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"Berichten Sie Fehler an <%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "%s Homepage: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: konnte Pfad des eigenen Programs nicht finden\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: konnte Datei »%s« nicht öffnen: %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Versuchen Sie »%s --help« für weitere Informationen.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: Unterstützung für Parserdebugging (-d) nicht verfügbar\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, der PostgreSQL-Embedded-C-Präprozessor, Version %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... Suche beginnt hier:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "Ende der Suchliste\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: keine Eingabedateien angegeben\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "Cursor »%s« wurde deklariert aber nicht geöffnet"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "konnte Ausgabedatei »%s« nicht entfernen\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "/*-Kommentar nicht abgeschlossen"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "Bitkettenkonstante nicht abgeschlossen"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "hexadezimale Zeichenkette nicht abgeschlossen"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "ungültige Bitkettenkonstante"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "ungültige hexadezimale Zeichenkettenkonstante"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "unbehandelter vorheriger Zustand in xqs\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "Zeichenkette in Anführungszeichen nicht abgeschlossen"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "Dollar-Quotes nicht abgeschlossen"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "Bezeichner in Anführungszeichen hat Länge null"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "Bezeichner in Anführungszeichen nicht abgeschlossen"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "Müll folgt auf Parameter"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "Müll folgt auf numerische Konstante"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "geschachtelte /* ... */-Kommentare"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "fehlender Bezeichner im Befehl EXEC SQL UNDEF"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "zu viele verschachtelte EXEC SQL IFDEF-Bedingungen"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "passendes »EXEC SQL IFDEF« / »EXEC SQL IFNDEF« fehlt"
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "»EXEC SQL ENDIF;« fehlt"
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "mehr als ein EXEC SQL ENDIF"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "unzusammenhängendes EXEC SQL ENDIF"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "fehlender Bezeichner im Befehl EXEC SQL IFDEF"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "fehlender Bezeichner im Befehl EXEC SQL DEFINE"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "Syntaxfehler im Befehl EXEC SQL INCLUDE"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "interner Fehler: unerreichbarer Zustand; bitte an <%s> berichten"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Fehler: Include-Pfad »%s/%s« ist zu lang auf Zeile %d, wird übersprungen\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "konnte Include-Datei »%s« nicht öffnen auf Zeile %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "Syntaxfehler"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "WARNUNG: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "FEHLER: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "Cursor »%s« existiert nicht"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "Initialisierungswert nicht erlaubt in Typdefinition"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "Typname »string« ist im Informix-Modus reserviert"
+
+#: preproc.y:552 preproc.y:19317
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "Typ »%s« ist bereits definiert"
+
+#: preproc.y:577 preproc.y:19952 preproc.y:20277 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "mehrdimensionale Arrays für einfache Datentypen werden nicht unterstützt"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "Verbindung %s wird mit %s überschrieben, durch DECLARE-Anweisung %s"
+
+#: preproc.y:1872
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "AT-Option ist nicht erlaubt im Befehl CLOSE DATABASE"
+
+#: preproc.y:2122
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "AT-Option ist nicht erlaubt im Befehl CONNECT"
+
+#: preproc.y:2162
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "AT-Option ist nicht erlaubt im Befehl DISCONNECT"
+
+#: preproc.y:2217
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "AT-Option ist nicht erlaubt im Befehl SET CONNECTION"
+
+#: preproc.y:2239
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "AT-Option ist nicht erlaubt im TYPE-Befehl"
+
+#: preproc.y:2248
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "AT-Option ist nicht erlaubt im VAR-Befehl"
+
+#: preproc.y:2255
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "AT-Option ist nicht erlaubt im WHENEVER-Befehl"
+
+#: preproc.y:2332 preproc.y:2504 preproc.y:2509 preproc.y:2632 preproc.y:4283
+#: preproc.y:4357 preproc.y:4948 preproc.y:5481 preproc.y:5819 preproc.y:6119
+#: preproc.y:7687 preproc.y:9288 preproc.y:9293 preproc.y:12272
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "nicht mehr unterstütztes Feature wird an Server weitergereicht werden"
+
+#: preproc.y:2890
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL ist nicht implementiert"
+
+#: preproc.y:3589
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN ist nicht implementiert"
+
+#: preproc.y:10335 preproc.y:18892
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "»database« kann im INFORMIX-Modus nicht als Cursorname verwendet werden"
+
+#: preproc.y:10342 preproc.y:18902
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "Verwendung der Variable »%s« in verschiedenen DECLARE-Anweisungen wird nicht unterstützt"
+
+#: preproc.y:10344 preproc.y:18904
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "Cursor »%s« ist bereits definiert"
+
+#: preproc.y:10818
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "nicht mehr unterstützte Syntax LIMIT x,y wird an Server weitergereicht"
+
+#: preproc.y:11151 preproc.y:11158
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "Unteranfrage in FROM muss Aliasnamen erhalten"
+
+#: preproc.y:18584 preproc.y:18591
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS kann INTO nicht verwenden"
+
+#: preproc.y:18627
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "»@« erwartet, »%s« gefunden"
+
+#: preproc.y:18639
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "er werden nur die Protokolle »tcp« und »unix« und der Datenbanktyp »postgresql« unterstützt"
+
+#: preproc.y:18642
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "»://« erwartet, »%s« gefunden"
+
+#: preproc.y:18647
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Unix-Domain-Sockets funktionieren nur mit »localhost«, aber nicht mit »%s«"
+
+#: preproc.y:18673
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "»postgresql« erwartet, »%s« gefunden"
+
+#: preproc.y:18676
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "ungültiger Verbindungstyp: %s"
+
+#: preproc.y:18685
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "»@« oder »://« erwartet, »%s« gefunden"
+
+#: preproc.y:18760 preproc.y:18778
+#, c-format
+msgid "invalid data type"
+msgstr "ungültiger Datentyp"
+
+#: preproc.y:18789 preproc.y:18806
+#, c-format
+msgid "incomplete statement"
+msgstr "unvollständige Anweisung"
+
+#: preproc.y:18792 preproc.y:18809
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "nicht erkanntes Token »%s«"
+
+#: preproc.y:18854
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "Name »%s« ist bereits deklariert"
+
+#: preproc.y:19120
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "nur die Datentypen NUMERIC und DECIMAL haben Argumente für Präzision und Skala"
+
+#: preproc.y:19132
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "Intervallangabe hier nicht erlaubt"
+
+#: preproc.y:19292 preproc.y:19344
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "zu viele Ebenen in verschachtelter Definition von Struktur/Union"
+
+#: preproc.y:19467
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "Zeiger auf varchar sind nicht implementiert"
+
+#: preproc.y:19918
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "Initialisierungswert nicht erlaubt in Befehl EXEC SQL VAR"
+
+#: preproc.y:20235
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "Array aus Indikatoren bei der Eingabe nicht erlaubt"
+
+#: preproc.y:20422
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "Operator nicht erlaubt in Variablendefinition"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:20463
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s bei »%s«"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "Speicher aufgebraucht"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "unbekannter Variablentypcode %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "Variable »%s« wird durch eine lokale Variable eines anderen Typs versteckt"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "Variable »%s« wird durch eine lokale Variable versteckt"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "Indikatorvariable »%s« wird durch eine lokale Variable eines anderen Typs versteckt"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "Indikatorvariable »%s« wird durch eine lokale Variable versteckt"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "Indikator für Array/Zeiger muss Array/Zeiger sein"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "verschachtelte Arrays werden nicht unterstützt (außer Zeichenketten)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "Indikator für struct muss ein struct sein"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "Indikator für einfachen Typ muss einfachen Typ haben"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "Indikator-Struct »%s« hat zu wenige Mitglieder"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "Indikator-Struct »%s« hat zu viele Mitglieder"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "unbekannter Deskriptorelementcode %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "falsch geformte Variable »%s«"
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "Variable »%s« ist kein Zeiger"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "Variable »%s« ist kein Zeiger auf eine Struktur oder Union"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "Variable »%s« ist keine Struktur oder Union"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "Variable »%s« ist kein Array"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "Variable »%s« ist nicht deklariert"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "Indikatorvariable muss einen ganzzahligen Typ haben"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "unbekannter Datentypname »%s«"
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "mehrdimensionale Arrays werden nicht unterstützt"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "Zeiger mit mehr als 2 Ebenen werden nicht unterstützt; %d Ebene gefunden"
+msgstr[1] "Zeiger mit mehr als 2 Ebenen werden nicht unterstützt; %d Ebenen gefunden"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "Zeiger auf Zeiger wird für diesen Datentyp nicht unterstützt"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "mehrdimensionale Arrays für Strukturen werden nicht unterstützt"
diff --git a/src/interfaces/ecpg/preproc/po/el.po b/src/interfaces/ecpg/preproc/po/el.po
new file mode 100644
index 0000000..7e7c0b2
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/el.po
@@ -0,0 +1,710 @@
+# Greek message translation file for ecpg
+# Copyright (C) 2021 PostgreSQL Global Development Group
+# This file is distributed under the same license as the ecpg (PostgreSQL) package.
+# Georgios Kokolatos <gkokolatos@pm.me>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL) 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2023-04-12 08:10+0000\n"
+"PO-Revision-Date: 2023-04-12 11:08+0200\n"
+"Last-Translator: Georgios Kokolatos <gkokolatos@pm.me>\n"
+"Language-Team: \n"
+"Language: el\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: Poedit 3.2.2\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "η μεταβλητή «%s» πρέπει να έχει αριθμητικό τύπο"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "ο περιγραφέας %s δεσμευμένος στη σύνδεση %s δεν υπάρχει"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "ο περιγραφέας %s δεσμευμένος στη προεπιλεγμένη σύνδεση δεν υπάρχει"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "ο περιγραφέας στοιχείου κεφαλίδας «%d» δεν υπάρχει"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable είναι πάντα 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member είναι πάντα 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "το στοιχείο περιγραφής «%s» δεν έχει υλοποιηθεί"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "το στοιχείο περιγραφής «%s» δεν δύναται να οριστεί"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s είναι ο ενσωματωμένος SQL προεπεξεργαστής της PostgreSQL για προγράμματα γραμμένα σε C.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Χρήση:\n"
+" %s [ΕΠΙΛΟΓΗ]... ΑΡΧΕΙΟ...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Επιλογές:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c δημιούργησε αυτόματα κώδικα σε C από ενσωματωμένο SQL κώδικα·\n"
+" αυτό επηρεάζει την εντολή EXEC SQL TYPE\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MODE όρισε λειτουργία συμβατότητας; MODE μπορεί να είναι ένα από\n"
+" «INFORMIX», «INFORMIX_SE», «ORACLE»\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d παράξε έξοδο αποσφαλμάτωσης parser\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL όρισε SYMBOL\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h ανάλυσε αρχείο header, αυτή η επιλογή περιλαμβάνει την επιλογή «-c»\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i ανάλυσε επίσης αρχεία include του συστήματος\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DIRECTORY ψάξε στο DIRECTORY για αρχεία include\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o OUTFILE γράψε το αποτέλεσμα στο αρχείο OUTFILE\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPTION καθόρισε τη συμπεριφορά χρόνου εκτέλεσης. OPTION μπορεί να είναι:\n"
+" «no_indicator», «prepare», «questionmarks»\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression εκτέλεσε σε λειτουργία ελέγχου αναδρομής\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t ενεργοποίησε την αυτόματη ολοκλήρωση συναλλαγών\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version εμφάνισε πληροφορίες έκδοσης, στη συνέχεια έξοδος\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help εμφάνισε αυτό το μήνυμα βοήθειας, στη συνέχεια έξοδος\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Εάν δεν καθοριστεί αρχείο εξόδου, το όνομα σχηματίζεται προσθέτοντας .c στο\n"
+"όνομα αρχείου εισόδου, μετά την αφαίρεση του .pgc, εάν αυτό υπάρχει.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"Υποβάλετε αναφορές σφάλματων σε <%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "%s αρχική σελίδα: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: δεν ήταν δυνατός ο εντοπισμός της ιδίας εκτελέσιμης διαδρομής\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: δεν ήταν δυνατό το άνοιγμα του αρχείου «%s»: %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Δοκιμάστε «%s --help» για περισσότερες πληροφορίες.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: η υποστήριξη εντοπισμού σφαλμάτων (-d) του αναλυτή δεν είναι διαθέσιμη\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, ο ενσωματωμένος προεπεξεργαστής C της PostgreSQL, έκδοση %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... η αναζήτηση ξεκινάει εδώ:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "τέλος της λίστας αναζήτησης\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: δεν καθορίστηκαν αρχεία εισόδου\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "ο δρομέας «%s» έχει δηλωθεί αλλά δεν έχει ανοιχτεί"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "δεν ήταν δυνατή η αφαίρεση του αρχείου εξόδου «%s»\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "ατερμάτιστο /* σχόλιο"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "ατερμάτιστη bit κυριολεκτική συμβολοσειρά"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "ατερμάτιστη δεκαεξαδική κυριολεκτική συμβολοσειρά"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "μη έγκυρη bit κυριολεκτική συμβολοσειρά"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "μη έγκυρη δεκαεξαδική κυριολεκτική συμβολοσειρά"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "μη χειρισμένη προηγούμενη κατάσταση σε xqs\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "ανολοκλήρωτη συμβολοσειρά με εισαγωγικά"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "ατερμάτιστη dollar-quoted συμβολοσειρά"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "μηδενικού μήκους οριοθετημένο αναγνωριστικό"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "ατερμάτιστο αναγνωριστικό σε εισαγωγικά"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "ανεπιθύμητα στοιχεία μετά την παράμετρο"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "ανεπιθύμητα στοιχεία μετά κυριολεκτικό αριθμητικό"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "ένθετα /* ... */ σχόλια"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "λείπει αναγνωριστικό στην εντολή EXEC SQL UNDEF"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "πάρα πολλές ένθετες συνθήκες EXEC SQL IFDEF"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "λείπει αντιστοίχιση «EXEC SQL IFDEF» / «EXEC SQL IFNDEF»"
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "λείπει «EXEC SQL ENDIF;»"
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "περισσότερες από μία EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "μη αντιστοιχισμένο EXEC SQL ENDIF"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "λείπει αναγνωριστικό στην εντολή EXEC SQL IFDEF"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "λείπει αναγνωριστικό στην εντολή EXEC SQL DEFINE"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "συντακτικό σφάλμα στην εντολή EXEC SQL INCLUDE"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "εσωτερικό σφάλμα: μη δυνατή κατάσταση· Παρακαλούμε όπως το αναφέρετε σε <%s>"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Σφάλμα: η διαδρομή ενσωμάτωσης «%s/%s» είναι πολύ μακρυά στη γραμμή %d, παρακάμπτεται\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "δεν ήταν δυνατό το άνοιγμα του αρχείου ενσωμάτωσης «%s» στη γραμμή %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "συντακτικό σφάλμα"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "ΠΡΟΕΙΔΟΠΟΙΗΣΗ: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "ΣΦΑΛΜΑ: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "ο δρομέας «%s» δεν υπάρχει"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "δεν επιτρέπεται εκκινητής σε ορισμό τύπου"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "το όνομα τύπου «string» είναι δεσμευμένο σε λειτουργία Informix"
+
+#: preproc.y:552 preproc.y:17925
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "ο τύπος «%s» έχει ήδη οριστεί"
+
+#: preproc.y:577 preproc.y:18560 preproc.y:18885 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "οι πολυδιάστατες συστυχίες για απλούς τύπους δεδομένων δεν υποστηρίζονται"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "η σύνδεση %s αντικαθίσταται με %s από τη δήλωση DECLARE %s"
+
+#: preproc.y:1767
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "η επιλογή AT δεν επιτρέπεται σε δήλωση CLOSE DATABASE"
+
+#: preproc.y:2017
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "η επιλογή AT δεν επιτρέπεται σε δήλωση CONNECT"
+
+#: preproc.y:2057
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "η επιλογή AT δεν επιτρέπεται σε δήλωση DISCONNECT"
+
+#: preproc.y:2112
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "η επιλογή AT δεν επιτρέπεται σε δήλωση SET CONNECTION"
+
+#: preproc.y:2134
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "η επιλογή AT δεν επιτρέπεται σε δήλωση TYPE"
+
+#: preproc.y:2143
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "η επιλογή AT δεν επιτρέπεται σε δήλωση VAR"
+
+#: preproc.y:2150
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "η επιλογή AT δεν επιτρέπεται σε δήλωση WHENEVER"
+
+#: preproc.y:2227 preproc.y:2399 preproc.y:2404 preproc.y:2527 preproc.y:4178
+#: preproc.y:4252 preproc.y:4843 preproc.y:5376 preproc.y:5714 preproc.y:6014
+#: preproc.y:7582 preproc.y:9183 preproc.y:9188 preproc.y:12139
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "μη υποστηριζόμενο χαρακτηριστικό που θα προωθηθεί στον διακομιστή"
+
+#: preproc.y:2785
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL δεν είναι υλοποιημένο"
+
+#: preproc.y:3484
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN δεν είναι υλοποιημένο"
+
+#: preproc.y:10230 preproc.y:17498
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "το «database» δεν μπορεί να χρησιμοποιηθεί ως όνομα δρομέα σε λειτουργία INFORMIX"
+
+#: preproc.y:10237 preproc.y:17508
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "η χρήση της μεταβλητής «%s» σε διαφορετικές δηλώσεις προτάσεων δεν υποστηρίζεται"
+
+#: preproc.y:10239 preproc.y:17510
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "ο δρομέας «%s» έχει ήδη οριστεί"
+
+#: preproc.y:10713
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "μη υποστηριζόμενη πλέον σύνταξη LIMIT #,# που θα προωθηθεί στον διακομιστή"
+
+#: preproc.y:11046 preproc.y:11053
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "υποερώτημα σε FROM πρέπει να έχει ένα alias"
+
+#: preproc.y:17190 preproc.y:17197
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS δεν δύναται να ορίσει INTO"
+
+#: preproc.y:17233
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "ανέμενε «@», βρήκε «%s»."
+
+#: preproc.y:17245
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "μόνο τα πρωτόκολλα \"TCP\" και \"UNIX\" και ο τύπος βάσης δεδομένων «postgresql» υποστηρίζονται"
+
+#: preproc.y:17248
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "ανέμενε «://», βρήκε «%s»."
+
+#: preproc.y:17253
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Οι υποδοχές πεδίου-Unix λειτουργούν μόνο στο «localhost» αλλά όχι στο «%s»"
+
+#: preproc.y:17279
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "ανέμενε «postgresql», βρήκε «%s»."
+
+#: preproc.y:17282
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "άκυρη επιλογή σύνδεσης: %s"
+
+#: preproc.y:17291
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "ανέμενε «@» ή «://», βρήκε «%s»."
+
+#: preproc.y:17366 preproc.y:17384
+#, c-format
+msgid "invalid data type"
+msgstr "μη έγκυρος τύπος δεδομένων"
+
+#: preproc.y:17395 preproc.y:17412
+#, c-format
+msgid "incomplete statement"
+msgstr "ανολοκλήρωτη δήλωση"
+
+#: preproc.y:17398 preproc.y:17415
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "μη αναγνωρίσιμο διακριτικό «%s»"
+
+#: preproc.y:17460
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "το όνομα «%s» έχει ήδη δηλωθεί"
+
+#: preproc.y:17728
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "μόνο οι αριθμητικοί και δεκαδικοί τύποι δεδομένων έχουν όρισμα ακρίβειας/κλίμακας"
+
+#: preproc.y:17740
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "προδιαγραφές διαστήματος δεν επιτρέπονται εδώ"
+
+#: preproc.y:17900 preproc.y:17952
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "πάρα πολλά επίπεδα σε ένθετο ορισμό δομής/ένωσης"
+
+#: preproc.y:18075
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "δείκτες σε varchar δεν είναι υλοποιημένοι"
+
+#: preproc.y:18526
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "δεν επιτρέπεται αρχικοποιητής σε εντολή EXEC SQL VAR"
+
+#: preproc.y:18843
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "δεν επιτρέπονται δείκτες συστάδων για είσοδο"
+
+#: preproc.y:19030
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "δεν επιτρέπεται χειριστής σε ορισμό μεταβλητής"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:19071
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s σε ή κοντά σε «%s»"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "έλλειψη μνήμης"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "μη αναγνωρίσιμος κωδικός τύπου μεταβλητής %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "η μεταβλητή «%s» αποκρύπτεται από μια τοπική μεταβλητή διαφορετικού τύπου"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "η μεταβλητή «%s» αποκρύπτεται από μια τοπική μεταβλητή"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "ο δείκτης μεταβλητής «%s» αποκρύπτεται από μια τοπική μεταβλητή διαφορετικού τύπου"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "ο δείκτης μεταβλητής «%s» αποκρύπτεται από μια τοπική μεταβλητή"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "ο δείκτης για συστάδα/δείκτη πρέπει να είναι πίνακας/δείκτης"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "οι ένθετες συστάδες δεν υποστηρίζονται (εξαιρούνται οι συμβολοσειρές)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "ο δείκτης για δομή πρέπει να είναι μια δομή"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "ο δείκτης για απλό τύπο δεδομένων πρέπει να είναι απλός"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "ο δείκτης δομής «%s» έχει πολύ λίγα μέλη"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "ο δείκτης δομής «%s» έχει πάρα πολλά μέλη"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "μη αναγνωρίσιμος κωδικός στοιχείου περιγραφέα %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "εσφαλμένα σχηματισμένη μεταβλητή «%s»"
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "η μεταβλητή «%s» δεν είναι δείκτης"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "η μεταβλητή «%s» δεν είναι δείκτης προς μια δομή ή μια ένωση"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "η μεταβλητή «%s» δεν είναι ούτε δομή ούτε ένωση"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "η μεταβλητή «%s» δεν είναι μία συστάδα"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "η μεταβλητή «%s» δεν έχει δηλωθεί"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "ο δείκτης μεταβλητής πρέπει να έχει ακέραιο τύπο"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "μη αναγνωρίσιμο όνομα τύπου δεδομένων «%s»"
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "οι πολυδιάστατες συστάδες δεν υποστηρίζονται"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "οι δείκτες πολλαπλών επιπέδων (περισσότερα από 2 επίπεδα) δεν υποστηρίζονται· βρέθηκε %d επίπεδο"
+msgstr[1] "οι δείκτες πολλαπλών επιπέδων (περισσότερα από 2 επίπεδα) δεν υποστηρίζονται· βρέθηκαν %d επίπεδα"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "δεν υποστηρίζεται δείκτης προς δείκτη για αυτόν τον τύπο δεδομένων"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "οι πολυδιάστατες συστάδες για δομές δεν υποστηρίζονται"
diff --git a/src/interfaces/ecpg/preproc/po/es.po b/src/interfaces/ecpg/preproc/po/es.po
new file mode 100644
index 0000000..21d385a
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/es.po
@@ -0,0 +1,716 @@
+# Spanish translation file for ecpg
+#
+# Copyright (c) 2009-2021, PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+#
+# Emanuel Calvo Franco <postgres.arg@gmail.com>, 2009.
+# Alvaro Herrera <alvherre@alvh.no-ip.org>, 2009-2012
+# Franco Catena, <francocatena@gmail.com>, 2009
+# Carlos Chapi <carloswaldo@babelruins.org>, 2018, 2021
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL) 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2023-05-07 16:40+0000\n"
+"PO-Revision-Date: 2022-10-20 09:05+0200\n"
+"Last-Translator: Carlos Chapi <carloswaldo@babelruins.org>\n"
+"Language-Team: PgSQL-es-Ayuda <pgsql-es-ayuda@lists.postgresql.org>\n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: BlackCAT 1.1\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "la variable «%s» debe tener tipo numérico"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "el descriptor %s vinculado a la conexión %s no existe"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "el descriptor %s vinculado a la conexión predeterminada no existe"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "no existe el descriptor del elemento de cabecera «%d»"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable es siempre 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member es siempre 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "elemento del descriptor «%s» no está implementado"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "no se puede establecer el elemento del descriptor «%s»"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s es el preprocesador de SQL incrustado para programas en C de PostgreSQL.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Empleo:\n"
+" %s [OPCIÓN]... ARCHIVO...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Opciones:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c genera automáticamente código en C desde código SQL\n"
+" incrustado; esto afecta EXEC SQL TYPE\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MODO establece el modo de compatibilidad;\n"
+" MODO puede ser \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d genera salida depurada del analizador\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL define SYMBOL\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h analiza un archivo de cabecera; esto incluye «-c»\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i analiza además los archivos de inclusión de sistema\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DIRECTORIO busca los archivos de inclusión en DIRECTORIO\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o ARCHIVO escribe la salida en ARCHIVO\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPCIÓN especifica el comportamiento en tiempo de ejecución;\n"
+" OPCIÓN puede ser: «no_indicator», «prepare»,\n"
+" «questionmarks»\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression ejecuta en modo de prueba de regresión\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t activa el compromiso (commit) automático de transacciones\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version muestra información de la versión, luego sale\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help muestra esta ayuda, luego sale\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Si no se especifica un archivo de salida, el nombre se forma agregando .c al\n"
+"archivo de entrada, luego de quitar .pgc si está presente.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"Reporte errores a <%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "Sitio web de %s: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: no se pudo localizar la ruta de mi propio ejecutable\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: no se pudo abrir el archivo «%s»: %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Utilice «%s --help» para obtener mayor información.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: la depuración del analizador (parser, -d) no está disponible)\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, el preprocesador de C incrustado de PostgreSQL, versión %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... la búsqueda comienza aquí:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "fin de la lista de búsqueda\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: no se especificaron archivos de entrada\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "el cursor «%s» fue declarado pero no abierto"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "no se pudo eliminar el archivo de salida «%s»\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "comentario /* no cerrado"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "una cadena de bits está inconclusa"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "una cadena hexadecimal está inconclusa"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "cadena de bits no válida"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "cadena hexadecimal no válida"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "estado previo no manejado en xqs\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "una cadena en comillas está inconclusa"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "una cadena separada por $ está inconclusa"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "identificador delimitado de longitud cero"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "un identificador en comillas está inconcluso"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "basura sigue después de un parámetro"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "basura sigue después de un literal numérico"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "comentarios /* ... */ anidados"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "falta un identificador en la orden EXEC SQL UNDEF"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "demasiadas condiciones EXEC SQL IFDEF anidadas"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "falta el «EXEC SQL IFDEF» / «EXEC SQL IFNDEF»"
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "falta el «EXEC SQL ENDIF;»"
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "hay más de un EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "EXEC SQL ENDIF sin coincidencia"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "identificador faltante en la orden EXEC SQL IFDEF"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "identificador faltante en la orden EXEC SQL DEFINE"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "error de sintaxis en orden EXEC SQL INCLUDE"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "error interno: estado no esperado; por favor reporte a <%s>"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Error: ruta de inclusión «%s/%s» es demasiada larga en la línea %d, omitiendo\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "no se pudo abrir el archivo a incluir «%s» en la línea %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "error de sintaxis"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "ATENCIÓN: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "ERROR: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "no existe el cursor «%s»"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "inicializador no permitido en definición de tipo"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "el nombre de tipo «string» está reservado en modo Informix"
+
+#: preproc.y:552 preproc.y:17925
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "el tipo «%s» ya está definido"
+
+#: preproc.y:577 preproc.y:18560 preproc.y:18885 variable.c:620
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "los arrays multidimensionales para tipos de datos simples no están soportados"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "la conexión %s es sobrescrita con %s por la sentencia DECLARE %s"
+
+#: preproc.y:1767
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "la opción AT no está permitida en la sentencia CLOSE DATABASE"
+
+#: preproc.y:2017
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "la opción AT no está permitida en la sentencia CONNECT"
+
+#: preproc.y:2057
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "la opción AT no está permitida en la sentencia DISCONNECT"
+
+#: preproc.y:2112
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "la opción AT no está permitida en la sentencia SET CONNECTION"
+
+#: preproc.y:2134
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "la opción AT no está permitida en la sentencia TYPE"
+
+#: preproc.y:2143
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "la opción AT no está permitida en la sentencia VAR"
+
+#: preproc.y:2150
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "la opción AT no está permitida en la sentencia WHENEVER"
+
+#: preproc.y:2227 preproc.y:2399 preproc.y:2404 preproc.y:2527 preproc.y:4178
+#: preproc.y:4252 preproc.y:4843 preproc.y:5376 preproc.y:5714 preproc.y:6014
+#: preproc.y:7582 preproc.y:9183 preproc.y:9188 preproc.y:12139
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "característica no soportada será pasada al servidor"
+
+#: preproc.y:2785
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL no está implementado"
+
+#: preproc.y:3484
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN no está implementado"
+
+#: preproc.y:10230 preproc.y:17498
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "no se puede usar «database» como nombre de cursor en modo INFORMIX"
+
+#: preproc.y:10237 preproc.y:17508
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "el uso de la variable «%s» en diferentes sentencias declare no está soportado"
+
+#: preproc.y:10239 preproc.y:17510
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "el cursor «%s» ya está definido"
+
+#: preproc.y:10713
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "la sintaxis LIMIT #,# que ya no está soportada ha sido pasada al servidor"
+
+#: preproc.y:11046 preproc.y:11053
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "las subconsultas en FROM deben tener un alias"
+
+#: preproc.y:17190 preproc.y:17197
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS no puede especificar INTO"
+
+#: preproc.y:17233
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "se esperaba «@», se encontró «%s»"
+
+#: preproc.y:17245
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "sólo los protocolos «tcp» y «unix» y tipo de bases de datos «postgresql» están soportados"
+
+#: preproc.y:17248
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "se esperaba «://», se encontró «%s»"
+
+#: preproc.y:17253
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "los sockets de dominio unix sólo trabajan en «localhost» pero no en «%s»"
+
+#: preproc.y:17279
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "se esperaba «postgresql», se encontró «%s»"
+
+#: preproc.y:17282
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "tipo de conexión no válido: %s"
+
+#: preproc.y:17291
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "se esperaba «@» o «://», se encontró «%s»"
+
+#: preproc.y:17366 preproc.y:17384
+#, c-format
+msgid "invalid data type"
+msgstr "tipo de dato no válido"
+
+#: preproc.y:17395 preproc.y:17412
+#, c-format
+msgid "incomplete statement"
+msgstr "sentencia incompleta"
+
+#: preproc.y:17398 preproc.y:17415
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "elemento «%s» no reconocido"
+
+#: preproc.y:17460
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "el nombre «%s» ya está declarado"
+
+#: preproc.y:17728
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "sólo los tipos de dato numeric y decimal tienen argumento de precisión/escala"
+
+#: preproc.y:17740
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "la especificación de intervalo no está permitida aquí"
+
+#: preproc.y:17900 preproc.y:17952
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "demasiados niveles en la definición anidada de estructura/unión"
+
+#: preproc.y:18075
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "los punteros a varchar no están implementados"
+
+#: preproc.y:18526
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "inicializador no permitido en la orden EXEC SQL VAR"
+
+#: preproc.y:18843
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "no se permiten los arrays de indicadores en la entrada"
+
+#: preproc.y:19030
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "operador no permitido en definición de variable"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:19071
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s en o cerca de «%s»"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "memoria agotada"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "código de tipo de variable %d no reconocido"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "la variable «%s» está escondida por una variable local de tipo diferente"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "la variable «%s» está escondida por una variable local"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "la variable de indicador «%s» está escondida por una variable local de tipo diferente"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "variable de indicador «%s» está escondida por una variable local"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "indicador para array/puntero debe ser array/puntero"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "no se permiten arrays anidados (excepto cadenas de caracteres)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "el indicador para struct debe ser struct"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "el indicador para tipo dato simple debe ser simple"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "struct para indicador «%s» no tiene suficientes miembros"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "struct para indicador «%s» tiene demasiados miembros"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "código de descriptor de elemento %d no reconocido"
+
+#: variable.c:89 variable.c:115
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "variable formada incorrectamente «%s»"
+
+#: variable.c:138
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "la variable «%s» no es un puntero"
+
+#: variable.c:141 variable.c:166
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "la variable «%s» no es un puntero a una estructura o unión"
+
+#: variable.c:153
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "la variable «%s» no es una estructura ni una unión"
+
+#: variable.c:163
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "la variable «%s» no es un array"
+
+#: variable.c:232 variable.c:254
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "la variable «%s» no está declarada"
+
+#: variable.c:493
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "la variable de un indicador debe ser de algún tipo numérico entero"
+
+#: variable.c:505
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "nombre de tipo de datos «%s» no reconocido"
+
+#: variable.c:516 variable.c:524 variable.c:541 variable.c:544
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "los arrays multidimensionales no están soportados"
+
+#: variable.c:533
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "no se soportan los punteros multinivel (más de 2); se encontró 1 nivel"
+msgstr[1] "no se soportan los punteros multinivel (más de 2); se encontraron %d niveles"
+
+#: variable.c:538
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "los punteros a puntero no están soportados para este tipo de dato"
+
+#: variable.c:558
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "los arrays multidimensionales para estructuras no están soportados"
diff --git a/src/interfaces/ecpg/preproc/po/fr.po b/src/interfaces/ecpg/preproc/po/fr.po
new file mode 100644
index 0000000..ca4aa52
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/fr.po
@@ -0,0 +1,769 @@
+# LANGUAGE message translation file for ecpg
+# Copyright (C) 2009-2022 PostgreSQL Global Development Group
+# This file is distributed under the same license as the ecpg (PostgreSQL) package.
+#
+# Use these quotes: « %s »
+#
+# Stéphane Schildknecht <stephane.schildknecht@dalibo.com>, 2009.
+# Guillaume Lelarge <guillaume@lelarge.info>, 2010-2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-04-12 05:16+0000\n"
+"PO-Revision-Date: 2022-04-12 17:29+0200\n"
+"Last-Translator: Guillaume Lelarge <guillaume@lelarge.info>\n"
+"Language-Team: French <guillaume@lelarge.info>\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: Poedit 3.0.1\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "la variable « %s » doit avoir un type numeric"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "le descripteur %s lié à la connexion %s n'existe pas"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "le descripteur %s lié à la connexion par défaut n'existe pas"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "l'élément d'en-tête du descripteur « %d » n'existe pas"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable vaut toujours 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member vaut toujours 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "l'élément du descripteur « %s » n'est pas implanté"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "l'élément du descripteur « %s » ne peut pas être initialisé"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s est le préprocesseur SQL embarqué de PostgreSQL pour les programmes C.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Usage:\n"
+" %s [OPTION]... FICHIER...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Options :\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c produit automatiquement le code C à partir du code SQL\n"
+" embarqué ; ceci affecte EXEC SQL TYPE\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MODE configure le mode de compatibilité ; MODE peut être\n"
+" « INFORMIX », « INFORMIX_SE » ou « ORACLE »\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d produit la sortie de débogage de l'analyseur\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOLE définit SYMBOLE\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr ""
+" -h analyse un fichier d'en-tête, cette option inclut l'option\n"
+" « -c »\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i analyse en plus les fichiers d'en-tête systèmes\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I RÉPERTOIRE recherche les fichiers d'en-têtes dans RÉPERTOIRE\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o FICHIER écrit le résultat dans FICHIER\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPTION indique le comportement à l'exécution ; OPTION peut valoir :\n"
+" « no_indicator », « prepare », « questionmarks »\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression s'exécute en mode de tests des régressions\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t active la validation automatique des transactions\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version affiche la version et quitte\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help affiche cette aide et quitte\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Si aucun nom de fichier en sortie n'est fourni, le nom est formaté en ajoutant\n"
+"le suffixe .c au nom du fichier en entrée après avoir supprimé le suffixe .pgc\n"
+"s'il est présent.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"Rapporter les bogues à <%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "Page d'accueil de %s : <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s : n'a pas pu localiser le chemin de mon propre exécutable\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s : n'a pas pu ouvrir le fichier « %s » : %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Essayer « %s --help » pour plus d'informations.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s : support de débogage de l'analyseur (-d) non disponible\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, le préprocesseur C embarqué de PostgreSQL, version %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "la recherche EXEC SQL INCLUDE ... commence ici :\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "fin de la liste de recherche\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s : aucun fichier précisé en entrée\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "le curseur « %s » est déclaré mais non ouvert"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "n'a pas pu supprimer le fichier « %s » en sortie\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "commentaire /* non terminé"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "chaîne bit litéral non terminée"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "chaîne hexadécimale litérale non terminée"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "chaîne bit litéral invalide"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "chaîne hexadécimale invalide"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "état précédent non géré dans xqs\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "chaîne entre guillemets non terminée"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "chaîne entre guillemets dollars non terminée"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "identifiant délimité de longueur nulle"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "identifiant entre guillemets non terminé"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "élément indésirable après le paramètre"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "élément indésirable après la valeur numérique"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "commentaires /* ... */ imbriqués"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "identifiant manquant dans la commande EXEC SQL UNDEF"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "trop de conditions EXEC SQL IFDEF imbriquées"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "correspondance manquante « EXEC SQL IFDEF » / « EXEC SQL IFNDEF »"
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "« EXEC SQL ENDIF; » manquant"
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "plusieurs EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "EXEC SQL ENDIF différent"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "identifiant manquant dans la commande EXEC SQL IFDEF"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "identifiant manquant dans la commande EXEC SQL DEFINE"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "erreur de syntaxe dans la commande EXEC SQL INCLUDE"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "erreur interne : l'état ne peut être atteint ; merci de rapporter ceci à <%s>"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr ""
+"Erreur : le chemin d'en-tête « %s/%s » est trop long sur la ligne %d,\n"
+"ignoré\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "n'a pas pu ouvrir le fichier d'en-tête « %s » sur la ligne %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "erreur de syntaxe"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "ATTENTION : "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "ERREUR : "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "le curseur « %s » n'existe pas"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "initialiseur non autorisé dans la définition du type"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "le nom du type « string » est réservé dans le mode Informix"
+
+#: preproc.y:552 preproc.y:19317
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "le type « %s » est déjà défini"
+
+#: preproc.y:577 preproc.y:19952 preproc.y:20277 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr ""
+"les tableaux multi-dimensionnels pour les types de données simples ne sont\n"
+"pas supportés"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "la connexion %s est surchargée avec %s par l'instruction DECLARE %s"
+
+#: preproc.y:1872
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "option AT non autorisée dans une instruction CLOSE DATABASE"
+
+#: preproc.y:2122
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "option AT non autorisée dans une instruction CONNECT"
+
+#: preproc.y:2162
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "option AT non autorisée dans une instruction DISCONNECT"
+
+#: preproc.y:2217
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "option AT non autorisée dans une instruction SET CONNECTION"
+
+#: preproc.y:2239
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "option AT non autorisée dans une instruction TYPE"
+
+#: preproc.y:2248
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "option AT non autorisée dans une instruction VAR"
+
+#: preproc.y:2255
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "option AT non autorisée dans une instruction WHENEVER"
+
+#: preproc.y:2332 preproc.y:2504 preproc.y:2509 preproc.y:2632 preproc.y:4283 preproc.y:4357
+#: preproc.y:4948 preproc.y:5481 preproc.y:5819 preproc.y:6119 preproc.y:7687 preproc.y:9288
+#: preproc.y:9293 preproc.y:12272
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "la fonctionnalité non supportée sera passée au serveur"
+
+#: preproc.y:2890
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL n'est pas implanté"
+
+#: preproc.y:3589
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN n'est pas implanté"
+
+#: preproc.y:10335 preproc.y:18892
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "« database » ne peut pas être utilisé comme nom de curseur dans le mode INFORMIX"
+
+#: preproc.y:10342 preproc.y:18902
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr ""
+"l'utilisation de la variable « %s » dans différentes instructions de déclaration\n"
+"n'est pas supportée"
+
+#: preproc.y:10344 preproc.y:18904
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "le curseur « %s » est déjà défini"
+
+#: preproc.y:10818
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "la syntaxe obsolète LIMIT #,# a été passée au serveur"
+
+#: preproc.y:11151 preproc.y:11158
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "la sous-requête du FROM doit avoir un alias"
+
+#: preproc.y:18584 preproc.y:18591
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS ne peut pas indiquer INTO"
+
+#: preproc.y:18627
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "« @ » attendu, « %s » trouvé"
+
+#: preproc.y:18639
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr ""
+"seuls les protocoles « tcp » et « unix » et les types de base de données\n"
+"« postgresql » sont supportés"
+
+#: preproc.y:18642
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "« :// » attendu, « %s » trouvé"
+
+#: preproc.y:18647
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "les sockets de domaine Unix fonctionnent seulement sur « localhost », mais pas sur « %s »"
+
+#: preproc.y:18673
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "« postgresql » attendu, « %s » trouvé"
+
+#: preproc.y:18676
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "type de connexion invalide : %s"
+
+#: preproc.y:18685
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "« @ » ou « :// » attendu, « %s » trouvé"
+
+#: preproc.y:18760 preproc.y:18778
+#, c-format
+msgid "invalid data type"
+msgstr "type de données invalide"
+
+#: preproc.y:18789 preproc.y:18806
+#, c-format
+msgid "incomplete statement"
+msgstr "instruction incomplète"
+
+#: preproc.y:18792 preproc.y:18809
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "jeton « %s » non reconnu"
+
+#: preproc.y:18854
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "le nom « %s » est déjà défini"
+
+#: preproc.y:19120
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr ""
+"seuls les types de données numeric et decimal ont des arguments de\n"
+"précision et d'échelle"
+
+#: preproc.y:19132
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "interval de spécification non autorisé ici"
+
+#: preproc.y:19292 preproc.y:19344
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "trop de niveaux dans la définition de structure/union imbriquée"
+
+#: preproc.y:19467
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "les pointeurs sur des chaînes de caractères (varchar) ne sont pas implantés"
+
+#: preproc.y:19918
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "initialiseur non autorisé dans la commande EXEC SQL VAR"
+
+#: preproc.y:20235
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "les tableaux d'indicateurs ne sont pas autorisés en entrée"
+
+#: preproc.y:20422
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "opérateur non autorisé dans la définition de la variable"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:20463
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s sur ou près de « %s »"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "mémoire épuisée"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "code %d du type de variable non reconnu"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "la variable « %s » est cachée par une variable locale d'un type différent"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "la variable « %s » est cachée par une variable locale"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr ""
+"la variable indicateur « %s » est caché par une variable locale d'un type\n"
+"différent"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "la variable indicateur « %s » est cachée par une variable locale"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "l'indicateur pour le tableau/pointeur doit être tableau/pointeur"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr ""
+"les tableaux imbriqués ne sont pas supportés (sauf les chaînes de\n"
+"caractères)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "l'indicateur d'un struct doit être un struct"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "l'indicateur d'un type de données simple doit être simple"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "le struct indicateur « %s » a trop peu de membres"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "le struct indicateur « %s » a trop de membres"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "code %d de l'élément du descripteur non reconnu"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "variable « %s » mal formée"
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "la variable « %s » n'est pas un pointeur"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "la variable « %s » n'est pas un pointeur vers une structure ou une union"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "la variable « %s » n'est ni une structure ni une union"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "la variable « %s » n'est pas un tableau"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "la variable « %s » n'est pas déclarée"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "la variable d'indicateur doit avoir un type integer"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "nom « %s » non reconnu pour un type de données"
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "les tableaux multidimensionnels ne sont pas supportés"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] ""
+"les pointeurs multi-niveaux (plus de deux) ne sont pas supportés :\n"
+"%d niveau trouvé"
+msgstr[1] ""
+"les pointeurs multi-niveaux (plus de deux) ne sont pas supportés :\n"
+"%d niveaux trouvés"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "ce type de données ne supporte pas les pointeurs de pointeur"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "les tableaux multidimensionnels ne sont pas supportés pour les structures"
+
+#~ msgid ""
+#~ "\n"
+#~ "Report bugs to <pgsql-bugs@lists.postgresql.org>.\n"
+#~ msgstr ""
+#~ "\n"
+#~ "Rapporter les bogues à <pgsql-bugs@lists.postgresql.org>.\n"
+
+#~ msgid " --version output version information, then exit\n"
+#~ msgstr " --version affiche la version et quitte\n"
+
+#~ msgid "AT option not allowed in DEALLOCATE statement"
+#~ msgstr "option AT non autorisée dans une instruction DEALLOCATE"
+
+#~ msgid "COPY FROM STDOUT is not possible"
+#~ msgstr "COPY FROM STDOUT n'est pas possible"
+
+#~ msgid "COPY TO STDIN is not possible"
+#~ msgstr "COPY TO STDIN n'est pas possible"
+
+#~ msgid "NEW used in query that is not in a rule"
+#~ msgstr "NEW utilisé dans une requête qui n'est pas dans une règle"
+
+#~ msgid "OLD used in query that is not in a rule"
+#~ msgstr "OLD utilisé dans une requête qui n'est pas dans une règle"
+
+#~ msgid "constraint declared INITIALLY DEFERRED must be DEFERRABLE"
+#~ msgstr "une contrainte déclarée INITIALLY DEFERRED doit être DEFERRABLE"
+
+#~ msgid "declared name %s is already defined"
+#~ msgstr "le nom déclaré %s est déjà défini"
+
+#~ msgid "using unsupported DESCRIBE statement"
+#~ msgstr "utilisation de l'instruction DESCRIBE non supporté"
diff --git a/src/interfaces/ecpg/preproc/po/it.po b/src/interfaces/ecpg/preproc/po/it.po
new file mode 100644
index 0000000..aef91c3
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/it.po
@@ -0,0 +1,727 @@
+#
+# ecpg.po
+# Italian message translation file for ecpg
+#
+# For development and bug report please use:
+# https://github.com/dvarrazzo/postgresql-it
+#
+# Copyright (C) 2012-2017 PostgreSQL Global Development Group
+# Copyright (C) 2010, Associazione Culturale ITPUG
+#
+# Daniele Varrazzo <daniele.varrazzo@gmail.com>, 2012-2017.
+# Maurizio Totti <maurizio.totti@gmail.com>, 2010.
+#
+# This file is distributed under the same license as the PostgreSQL package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL) 11\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-09-30 12:09+0000\n"
+"PO-Revision-Date: 2022-09-30 15:07+0200\n"
+"Last-Translator: Domenico Sgarbossa <sgarbossa.domenico@gmail.com>\n"
+"Language-Team: https://github.com/dvarrazzo/postgresql-it\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Poedit-SourceCharset: utf-8\n"
+"X-Generator: Poedit 2.3\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "la variabile \"%s\" deve essere di tipo numerico"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "il descrittore %s associato alla connessione %s non esiste"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "il descrittore %s associato alla connessione predefinita non esiste"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "la voce \"%d\" dell'header del descrittore non esiste"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable è sempre 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member è sempre 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "la voce \"%s\" del descrittore non è implementata"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "la voce \"%s\" del descrittore non può essere impostata"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s è il preprocessore SQL embedded di PostgreSQL per programmi scritti in C.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Utilizzo:\n"
+" %s [OPZIONE]... FILE...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Opzioni:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c genera automaticamente il codice C dal codice SQL embedded;\n"
+" questo ha effetto su EXEC SQL TYPE\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MODO imposta la modalità di compatibilità; MODO può essere uno\n"
+" tra \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d genera l'output di debug del parser\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SIMBOLO definisci SIMBOLO\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h analizza un file header, questa opzione include \"-c\"\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i analizza anche i file di sistema\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DIRECTORY cerca gli include file in DIRECTORY\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o FILEOUT scrive il risultato in FILEOUT\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPZIONE specifica il comportamento run-time; OPZIONE può essere:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression esegui in modalità test di regressione\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t attiva il commit automatico delle transazioni\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V --version mostra informazioni sulla versione ed esci\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help mostra questo aiuto ed esci\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Se non viene specificato nessun file di output, il nome è composto aggiungendo\n"
+".c al nome del file di input, dopo aver tolto .pgc se presente.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"Segnala i bug a <%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "Pagina iniziale di %s: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: percorso del proprio eseguibile non trovato\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: apertura del file \"%s\" fallita: %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Prova \"%s --help\" per maggiori informazioni.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: il supporto al debug del parser (-d) non è disponibile\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, il preprocessore di PostgreSQL per programmi in C, versione %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... la ricerca inizia da qui:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "fine della lista di ricerca\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: non è stato specificato nessun file di input\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "il cursore \"%s\" è stato dichiarato, ma non aperto"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "rimozione del file di output \"%s\" fallita\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "commento /* non terminato"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "letterale di stringa di bit non terminato"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "letterale di stringa esadecimale non terminato"
+
+# string literal sarebbe intraducubile infatti è come la stringa viene rappresentata nel linguaggio di programmazione, ma come si fa a tradurlo?....
+# Secondo me "stringa letterale" -- Daniele
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "bit nella stringa letterale non valido"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "letterale stringa esadecimale non valido"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "stato precedente non gestito in xqs\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "stringa tra virgolette non terminata"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "stringa delimitata da dollari non terminata"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "identificativo delimitato di lunghezza zero"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "identificativo tra virgolette non terminato"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "spazzatura finale dopo il parametro"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "spazzatura finale dopo il letterale numerico"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "commenti /* ... */ annidati"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "identificativo mancante nel comando EXEC SQL UNDEF"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "troppe condizioni EXEC SQL IFDEF annidate"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "mancata corrispondenza fra \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "manca \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "più di un EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "EXEC SQL ENDIF non corrispondente"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "identificativo mancante nel comando EXEC SQL IFDEF"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "identificativo mancante nel comando EXEC SQL DEFINE"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "errore di sintassi nel comando EXEC SQL INCLUDE"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "errore interno: stato irraggiungibile; per favore segnalalo a <%s>"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Errore: il percorso delle inclusioni \"%s/%s\" è troppo lungo alla riga %d, perciò viene saltato\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "apertura del file di include \"%s\" alla riga %d fallita"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "errore di sintassi"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "ATTENZIONE: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "ERRORE: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "il cursore \"%s\" non esiste"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "l'inizializzatore non è permesso nella definizione del tipo di dato"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "il nome di tipo \"string\" è riservato alla modalità Informix"
+
+#: preproc.y:552 preproc.y:17925
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "il tipo \"%s\" è già definito"
+
+#: preproc.y:577 preproc.y:18560 preproc.y:18885 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "gli array multidimensionali per tipi dato semplici non sono supportati"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "la connessione %s viene sovrascritta con %s dall'istruzione DECLARE %s"
+
+#: preproc.y:1767
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "l'opzione AT non è permessa nell'istruzione CLOSE DATABASE"
+
+#: preproc.y:2017
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "l'opzione AT non è permessa nell'istruzione CONNECT"
+
+#: preproc.y:2057
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "l'opzione AT non è permessa nell'istruzione DISCONNECT"
+
+#: preproc.y:2112
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "l'opzione AT non è permessa nell'istruzione SET CONNECTION"
+
+#: preproc.y:2134
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "l'opzione AT non è permessa nell'istruzione TYPE"
+
+#: preproc.y:2143
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "l'opzione AT non è permessa nell'istruzione VAR"
+
+#: preproc.y:2150
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "l'opzione AT non è permessa nell'istruzione WHENEVER"
+
+#: preproc.y:2227 preproc.y:2399 preproc.y:2404 preproc.y:2527 preproc.y:4178
+#: preproc.y:4252 preproc.y:4843 preproc.y:5376 preproc.y:5714 preproc.y:6014
+#: preproc.y:7582 preproc.y:9183 preproc.y:9188 preproc.y:12139
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "al server è stata richiesta una funzionalità non supportata"
+
+#: preproc.y:2785
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL non è implementato"
+
+#: preproc.y:3484
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN non è implementato"
+
+#: preproc.y:10230 preproc.y:17498
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "\"database\" non può essere utilizzato come nome del cursore in modalità INFORMIX"
+
+#: preproc.y:10237 preproc.y:17508
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "usare la variabile \"%s\" in una diversa istruzione declare non è supportato"
+
+#: preproc.y:10239 preproc.y:17510
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "il cursore \"%s\" è già definito"
+
+#: preproc.y:10713
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "la sintassi LIMIT #,# passata al server non è più supportata"
+
+#: preproc.y:11046 preproc.y:11053
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "la sottoquery in FROM deve avere un alias"
+
+#: preproc.y:17190 preproc.y:17197
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS non può specificare INTO"
+
+#: preproc.y:17233
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "atteso \"@\", trovato \"%s\""
+
+#: preproc.y:17245
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "soltanto i protocolli \"tcp\" e \"unix\" ed il tipo database \"postgresql\" sono supportati"
+
+#: preproc.y:17248
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "atteso \"://\", trovato \"%s\""
+
+#: preproc.y:17253
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "i socket di dominio Unix funzionano solo con \"localhost\" ma non con \"%s\""
+
+#: preproc.y:17279
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "atteso \"postgresql\", trovato \"%s\""
+
+#: preproc.y:17282
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "tipo di connessione non valido: %s"
+
+#: preproc.y:17291
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "atteso \"@\" oppure \"://\", trovato \"%s\""
+
+#: preproc.y:17366 preproc.y:17384
+#, c-format
+msgid "invalid data type"
+msgstr "tipo dato non valido"
+
+#: preproc.y:17395 preproc.y:17412
+#, c-format
+msgid "incomplete statement"
+msgstr "istruzione incompleta"
+
+#: preproc.y:17398 preproc.y:17415
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "token \"%s\" sconosciuto"
+
+#: preproc.y:17460
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "il nome \"%s\" è già stato dichiarato"
+
+#: preproc.y:17728
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "solo i dati di tipo numeric e decimal hanno argomento precisione/scala"
+
+#: preproc.y:17740
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "specificazione di intervallo non permessa qui"
+
+#: preproc.y:17900 preproc.y:17952
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "troppi livelli nidificati nella definizione della struttura/unione"
+
+#: preproc.y:18075
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "i puntatori a varchar non sono implementati"
+
+#: preproc.y:18526
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "initializer non è permesso nel comando EXEC SQL VAR"
+
+#: preproc.y:18843
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "array di indicatori non sono permessi"
+
+#: preproc.y:19030
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "operatore non permesso nella definizione di variabile"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:19071
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s a o presso \"%s\""
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "memoria esaurita"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "tipo di variabile sconosciuto codice %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "la variabile \"%s\" è nascosta da una variabile locale di tipo diverso"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "la variabile \"%s\" è nascosta da una variabile locale"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "la variabile di indicatore \"%s\" è nascosta da una variabile locale di tipo diverso"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "la variabile di indicatore \"%s\" è nascosta da una variabile locale"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "un indicatore per un array/puntatore deve essere un array/puntatore"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "array annidati non sono supportati (tranne che per le stringhe)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "un indicatore per una struttura deve essere una struttura"
+
+# capire meglio i "simple data types"
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "un indicatore per un tipo di dato semplice deve essere semplice"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "l'indicatore struttura \"%s\" non ha abbastanza membri"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "l'indicatore struttura \"%s\" ha troppi membri"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "descrittore di codice %d sconosciuto"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "variabile \"%s\" composta in maniera scorretta"
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "la variabile \"%s\" non è un puntatore"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "la variabile \"%s\" non è un puntatore ad una struttura o ad una unione"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "la variabile \"%s\" non è né una struttura né una unione"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "la variabile \"%s\" non è un array"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "la variabile \"%s\" non è stata dichiarata"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "il tipo di variabile di un indicatore deve essere intero"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "tipo di dato chiamato \"%s\" è sconosciuto"
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "gli array multidimensionali non sono supportati"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "puntatori a più livelli (più di 2) non sono supportati; trovato %d livello"
+msgstr[1] "puntatori a più livelli (più di 2) non sono supportati; trovati %d livelli"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "il puntatore a puntatore non è supportato per questo tipo di dato"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "gli array multidimensionali per strutture non sono supportati"
+
+#~ msgid "using unsupported DESCRIBE statement"
+#~ msgstr "si sta utilizzando una istruzione DESCRIBE non supportata"
diff --git a/src/interfaces/ecpg/preproc/po/ja.po b/src/interfaces/ecpg/preproc/po/ja.po
new file mode 100644
index 0000000..3c97ba8
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/ja.po
@@ -0,0 +1,727 @@
+# Japanese message translation file for ecpg-preproc
+# Copyright (C) 2022 PostgreSQL Global Development Group
+# This file is distributed under the same license as the pg_archivecleanup (PostgreSQL) package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL 15)\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-08-09 12:00+0900\n"
+"PO-Revision-Date: 2022-05-11 14:50+0900\n"
+"Last-Translator: Kyotaro Horiguchi <horikyota.ntt@gmail.com>\n"
+"Language-Team: jpug-doc <jpug-doc@ml.postgresql.jp>\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Poedit 1.8.13\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "変数\"%s\"は数値型でなければなりません"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "接続%2$sに関連付けられている記述子%1$sは存在しません"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "デフォルト接続に関連付けられている記述子%sは存在しません"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "記述子ヘッダ項目%dは存在しません"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullableは常に1です"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_memberは常に0です"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "記述子項目%sは実装されていません"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "記述子項目%sは設定できません"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%sはCプログラム用のPostgreSQL埋込みSQLプリプロセッサです。\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"使用方法:\n"
+" %s [オプション]... ファイル...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "オプション:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c 埋め込まれたSQLコードを元にC言語コードを自動的に生成\n"
+" これはEXEC SQL TYPEに影響を与える\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MODE 互換モードを設定; MODEは\"INFORMIX\"、 \"INFORMIX_SE\"、\n"
+" \"ORACLE\"のいずれか\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d パーサのデバッグ出力を有効にする\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL シンボル SYMBOL を定義する\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr ""
+" -h ヘッダファイルをパースする。このオプションには\"-c\"オプション\n"
+" が含まれる\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i システムインクルードファイルもパースする\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DIRECTORY DIRECTORYからインクルードファイルを検索する\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o OUTFILE 結果をOUTFILEに出力する\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPTION 実行時の動作を指定する。オプションは次のいずれか\n"
+" \"no_indicator\"、\"prepare\"、\"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression リグレッション試験モードで実行\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t トランザクションの自動コミットを有効にする\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version バージョン情報を出力して終了\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help このヘルプを表示して終了\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"出力ファイルの指定がない場合は、入力ファイルの名前に.cを付けた名前になります。\n"
+"ただし、もし.pgcがある場合はこれを取り除いてから.cが付けられます。\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"バグは<%s>に報告してください。\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "%s ホームページ: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: 自身の実行ファイルの場所がわかりません\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: ファイル\"%s\"をオープンできませんでした: %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "詳細は\"%s --help\"を実行してください。\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: パーサデバッグのサポート(-d)を利用できません\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, PostgreSQL埋込みC言語プリプロセッサ, バージョン%s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... 検索が始まります\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "検索リストの終端です\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: 入力ファイルが指定されていません\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "カーソル%sは宣言されましたが、オープンされていません"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "出力ファイル\"%s\"を削除できませんでした\n"
+
+#: pgc.l:507
+#, c-format
+msgid "unterminated /* comment"
+msgstr "/*コメントが閉じていません"
+
+#: pgc.l:524
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "ビット文字列リテラルの終端がありません"
+
+#: pgc.l:532
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "16進数文字列リテラルの終端がありません"
+
+#: pgc.l:607
+#, c-format
+msgid "invalid bit string literal"
+msgstr "無効なビット列リテラルです"
+
+#: pgc.l:612
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "不正な16進数文字列リテラル"
+
+#: pgc.l:630
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "xqsの中で処理されない前ステート\n"
+
+#: pgc.l:656 pgc.l:765
+#, c-format
+msgid "unterminated quoted string"
+msgstr "文字列の引用符が閉じていません"
+
+#: pgc.l:707
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "文字列のドル引用符が閉じていません"
+
+#: pgc.l:725 pgc.l:745
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "区切りつき識別子の長さがゼロです"
+
+#: pgc.l:756
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "識別子の引用符が閉じていません"
+
+#: pgc.l:925
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "パラメータの後に余分な文字"
+
+#: pgc.l:967 pgc.l:970 pgc.l:973
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "数値リテラルの後ろにゴミがあります"
+
+#: pgc.l:1099
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "入れ子状の /* ... */ コメント"
+
+#: pgc.l:1192
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "EXEC SQL UNDEFコマンドにおいて識別子がありません"
+
+#: pgc.l:1210 pgc.l:1223 pgc.l:1239 pgc.l:1252
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "入れ子状のEXEC SQL IFDEF条件が多すぎます"
+
+#: pgc.l:1268 pgc.l:1279 pgc.l:1294 pgc.l:1316
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "対応する\"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"がありません"
+
+#: pgc.l:1270 pgc.l:1281 pgc.l:1462
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "\"EXEC SQL ENDIF;\"がありません"
+
+#: pgc.l:1296 pgc.l:1318
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "1つ以上のEXEC SQL ELSE\"が存在します"
+
+#: pgc.l:1341 pgc.l:1355
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "EXEC SQL ENDIFに対応するものがありません"
+
+#: pgc.l:1410
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "EXEC SQL IFDEFコマンドにおいて識別子がありません"
+
+#: pgc.l:1419
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "EXEC SQL DEFINEコマンドにおいて識別子がありません"
+
+#: pgc.l:1452
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "EXEC SQL INCLUDEコマンドにおいて構文エラーがあります"
+
+#: pgc.l:1502
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "内部エラー: 到達しないはずの状態です。<%s>まで報告してください"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "エラー:行番号%3$dのインクルードパス\"%1$s/%2$s\"が長すぎます。無視しました。\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "行番号%2$dのインクルードファイル\"%1$s\"をオープンすることができませんでした"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "構文エラー"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "警告: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "エラー: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "カーソル\"%s\"は存在しません"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "型定義では初期化子は許されません"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "型名\"string\"はInformixモードですでに予約されています"
+
+#: preproc.y:552 preproc.y:19354
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "\"%s\"型はすでに定義されています"
+
+#: preproc.y:577 preproc.y:19989 preproc.y:20314 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "単純なデータ型の多次元配列はサポートされていません"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "DECLARE文%3$sにより接続%1$sは%2$sで上書きされます"
+
+#: preproc.y:1872
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "CLOSE DATABASE文ではATオプションは許されません"
+
+#: preproc.y:2122
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "CONNECT文ではATオプションは許されません"
+
+#: preproc.y:2162
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "DISCONNECT文ではATオプションは許されません"
+
+#: preproc.y:2217
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "SET CONNECTION文ではATオプションは許されません"
+
+#: preproc.y:2239
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "TYPE文ではATオプションは許されません"
+
+#: preproc.y:2248
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "VAR文ではATオプションは許されません"
+
+#: preproc.y:2255
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "WHENEVER文ではATオプションは許されません"
+
+#: preproc.y:2332 preproc.y:2504 preproc.y:2509 preproc.y:2632 preproc.y:4283
+#: preproc.y:4357 preproc.y:4948 preproc.y:5481 preproc.y:5819 preproc.y:6119
+#: preproc.y:7687 preproc.y:9288 preproc.y:9293 preproc.y:12272
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "非サポートの機能がサーバーに渡されます"
+
+#: preproc.y:2890
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALLは実装されていません"
+
+#: preproc.y:3589
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDINは実装されていません"
+
+#: preproc.y:10335 preproc.y:18892
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "INFORMIXモードでは\"database\"をカーソル名として使用できません"
+
+#: preproc.y:10342 preproc.y:18902
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "異なったdeclareステートメントにおける変数\"%s\"の使用はサポートされていません"
+
+#: preproc.y:10344 preproc.y:18904
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "カーソル\"%s\"はすでに定義されています"
+
+#: preproc.y:10818
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "サーバーに渡されるLIMIT #,#構文はもはやサポートされていません"
+
+#: preproc.y:11151 preproc.y:11158
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "FROM句の副問い合わせは別名を持たなければなりません"
+
+#: preproc.y:18584 preproc.y:18591
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE ASはINTOを指定できません"
+
+#: preproc.y:18627
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "想定では\"@\"、結果では\"%s\""
+
+#: preproc.y:18639
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "プロトコルでは\"tcp\"および\"unix\"のみ、データベースの種類では\"postgresql\"のみがサポートされています"
+
+#: preproc.y:18642
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "想定では\"://\"、結果では\"%s\""
+
+#: preproc.y:18647
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Unixドメインソケットは\"localhost\"でのみで動作し、\"%s\"では動作しません"
+
+#: preproc.y:18673
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "想定では\"postgresql\"、結果では\"%s\""
+
+#: preproc.y:18676
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "無効な接続種類: %s"
+
+#: preproc.y:18685
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "想定では\"@または\"\"://\"、結果では\"%s\""
+
+#: preproc.y:18760 preproc.y:18778
+#, c-format
+msgid "invalid data type"
+msgstr "無効なデータ型"
+
+#: preproc.y:18789 preproc.y:18806
+#, c-format
+msgid "incomplete statement"
+msgstr "不完全な文"
+
+#: preproc.y:18792 preproc.y:18809
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "認識できないトークン\"%s\""
+
+#: preproc.y:18854
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "名前\"%s\"はすでに定義されています"
+
+#: preproc.y:19120
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "数値データ型または10進数データ型のみが精度/位取り引数と取ることができます"
+
+#: preproc.y:19132
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "時間間隔の指定はここでは許されません"
+
+#: preproc.y:19329 preproc.y:19381
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "構造体/ユニオンの定義の入れ子レベルが深すぎます"
+
+#: preproc.y:19504
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "varcharを指し示すポインタは実装されていません"
+
+#: preproc.y:19955
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "EXEC SQL VARコマンドでは初期化子は許されません"
+
+#: preproc.y:20272
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "指示子配列は入力として許されません"
+
+#: preproc.y:20459
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "変数定義では演算子は許されません"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:20500
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "\"%2$s\"またはその近辺で%1$s"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "メモリ不足です"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "認識できない変数型コード%d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "変数\"%s\"は、異なった型を持つローカル変数により隠蔽されています"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "変数\"%s\"はローカル変数により隠蔽されています"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "指示子変数\"%s\"は、異なった型を持つローカル変数により隠蔽されています"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "指示子変数\"%s\"はローカル変数により隠蔽されています"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "配列/ポインタ用の指示子は配列/ポインタでなければなりません"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "入れ子状の配列はサポートされません (文字列は除きます)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "構造体用の指示子は構造体でなければなりません"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "単純なデータ型用の指示子は単純型でなければなりません"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "指示子構造体\"%s\"のメンバが足りません"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "指示子構造体\"%s\"のメンバが多すぎます"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "認識できない記述子項目コード%dです"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "正しく成形されていない変数\"%s\"です"
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "変数\"%s\"はポインタではありません"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "変数\"%s\"は構造体またはユニオンを指し示すポインタではありません"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "変数\"%s\"は構造体でもユニオンでもありません"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "変数\"%s\"は配列ではありません"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "変数\"%s\"は宣言されていません"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "指示子変数は整数型でなければなりません"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "データ型名\"%s\"は認識できません"
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "多次元配列はサポートされません"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "複数レベルのポインタ(2レベル以上)はサポートされません。%dレベルあります"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "このデータ型では、ポインタを指し示すポインタはサポートされていません"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "構造体の多次元配列はサポートされていません"
+
+#~ msgid ""
+#~ "\n"
+#~ "Report bugs to <pgsql-bugs@lists.postgresql.org>.\n"
+#~ msgstr ""
+#~ "\n"
+#~ "不具合は<pgsql-bugs@lists.postgresql.org>まで報告してください。\n"
+
+#~ msgid "using unsupported DESCRIBE statement"
+#~ msgstr "未サポートのDESCRIBE文の使用"
+
+#~ msgid ""
+#~ "\n"
+#~ "Report bugs to <pgsql-bugs@postgresql.org>.\n"
+#~ msgstr ""
+#~ "\n"
+#~ "不具合は<pgsql-bugs@postgresql.org>に報告してください。\n"
diff --git a/src/interfaces/ecpg/preproc/po/ka.po b/src/interfaces/ecpg/preproc/po/ka.po
new file mode 100644
index 0000000..6399849
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/ka.po
@@ -0,0 +1,734 @@
+# Georgian message translation file for ecpg
+# Copyright (C) 2022 PostgreSQL Global Development Group
+# This file is distributed under the same license as the ecpg (PostgreSQL) package.
+# Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL) 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-07-02 04:39+0000\n"
+"PO-Revision-Date: 2022-07-13 13:13+0200\n"
+"Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>\n"
+"Language-Team: Georgian <nothing>\n"
+"Language: ka\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 3.1.1\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "ცვლად \"%s\"-ს რიცხვობრივი ტიპი უნდა გააჩნდეს"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "დესკრიპტორი %s მიბმულია შეერთებაზე %s, არ არსებობს"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "ნაგულისხმებ შეერთებაზე მიბმული დესკრიპტორი (\"%s\") არ არსებობს"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "დესკრიპტორის თავსართის ჩანაწერი \"%d\" არ არსებობს"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "განულებადი ყოველთვის 1-ს უდრის"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member ყოველთვის 0-ს უდრის"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "დესკრიპტორის ჩანაწერი \"%s\" განხორციელებული არაა"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "დესკრიპტორის ჩანაწერის (\"%s\") დაყენების შეცდომა"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s PostgreSQL-ში ჩაშენებული SQL პრეპროცესორია C-ზე დაწერილი "
+"პროგრამებისთვის.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"გამოყენება:\n"
+" %s [პარამეტრი]... ფაილი...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "პარამეტრები:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c ჩადგმული SQL კოდიდან C-ის კოდის ავტომატური გენერაცია;\n"
+" ეს გავლენას ახდენს EXEC SQL TYPE-ზე\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C რეჟიმი თავსებადობის დაყენება. რეჟიმი შეიძლება იყოს:\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d დამმუშავებლის გასამართი ინფორმაციის გენერაცია\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D ფუნქცია ფუნქციის აღწერა\n"
+
+#: ecpg.c:50
+#, c-format
+msgid ""
+" -h parse a header file, this option includes option \"-c\"\n"
+msgstr ""
+" -h თავსართის ფაილის დამუშავება. ეს პარამეტრი ასევე შეიცავს "
+"პარამეტრს \"-c\"\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i დამუშავებისას სისტემური ფაილების ჩართვა\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr ""
+" -I საქაღალდე თავსართის ფაილების ძებნისას მათი ალტერნატიული მდებარეობა\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr ""
+" -o გამოსატანიფაილი გამოტანილი ინფორმაციის მითითებულ ფაილში ჩაწერა\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r პარამეტრი გაშვების ქცევა; პარამეტრი შეიძლება იყოს:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression რეგრესიის ტესტირების რეჟიმში გაშვება\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t ტრანზაქციების ავტომატური გადაცემის ჩართვა\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version ვერსიის ჩვენება და გასვლა\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help ამ დახმარების ჩვენება და გასვლა\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"თუ გამოსატანი ფაილი მითითებული არაა, სახელი იქმნება \n"
+"შეყვანის ფაილის სახელისთვის .c- ს დამატებით, წარდგენის შემთხვევაში .pgc- ის "
+"მოშლის შემდეგ.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"შეცდომების შესახებ მიწერეთ: %s\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "%s-ის საწყისი გვერდია: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: ჩემი საკუთარი გამშვები ფაილის ბილიკის მოძებნა შეუძლებელია\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: ფაილის გახსნის შეცდომა \"%s\": %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "მეტი ინფორმაციისთვის სცადეთ '%s --help'.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: დამმუშავებლის გამართვის მხარდაჭერა (-d) არ არსებობს\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, PostgreSQL-ის ჩაშენებული C პრეპროცესორი, ვერსია %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... ძებნა იწყება აქ:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "ძებნის სიის დასასრული\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: შეყვანის ფაილები მითითებული არაა\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "კურსორი \"%s\" აღწერილია, მაგრამ არა გახსნილი"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "გამოტანის ფაილის წაშლის შეცდომა: \"%s\"\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "დაუსრულებელი /* კომენტარი"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "გაწყვეტილი ბიტური სტრიქონი"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "გაწყვეტილი თექვსმეტობითი სტრიქონი"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "არასწორი ბიტური სტრიქონი"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "არასწორი თექვსმეტობითი სტრიქონი"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "დაუმუშავებელი წინა მდგომარეობა დაუხურავი ბრჭყალის აღმოჩენისას\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "ბრჭყალებში ჩასმული ციტატის დაუსრულებელი სტრიქონი"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "$-ით დაწყებული სტრიქონ დაუმთავრებელია"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "გამყოფის ნულოვანი სიგრძის იდენტიფიკატორი"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "დაუსრულებელი იდენტიფიკატორი ბრჭყალებში"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "პარამეტრის შემდეგ მოყოლილი მონაცემები ნაგავია"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "რიცხვითი მნიშვნელობის შემდეგ მონაცემები ნაგავია"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "ჩადგმული /* ... */ კომენტარები"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "ბრძანებაში EXEC SQL UNDEF იდენტიფიკატორი აკლია"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "\"EXEC SQL IFDEF\"-ის მეტისმეტად ბევრი ჩადგმული პირობა"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "შესატყვისი \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\" არ არსებობს"
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "აკლია \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "ერთზე მეტი EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "უწყვილო EXEC SQL ENDIF"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "ბრძანებას: EXEC SQL IFDEFიდენტიფიკატორი აკლია"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "ბრძანებას: EXEC SQL DEFINE იდენტიფიკატორი აკლია"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "სინტაქსური შეცდომა ბრძანებაში: EXEC SQL INCLUDE"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "შიდა შეცდომა: მდგომარეობა მიუწვდომელია; მისწერეთ ეს <%s>-ს"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr ""
+"შეცდომა: ჩასართავი ბილიკი \"%s/%s\" ძალიან გრძელია, ხაზზე %d. გამოტოვება\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "ჩასასმელი ფაილის (\"%s\") გახსნის შეცდომა. ხაზზე %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "სინტაქსური შეცდომა"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "გაფრთხილება: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "შეცდომა: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "კურსორი \"%s\" არ არსებობს"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "ტიპის აღწერისას ინიციალიზატორი დაუშვებელია"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "informix-ის რეჟიმში ტიპის სახელი \"string\" დაცულია"
+
+#: preproc.y:552 preproc.y:19354
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "ტიპი უკვე აღწერილია: %s"
+
+#: preproc.y:577 preproc.y:19989 preproc.y:20314 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr ""
+"მრავალგანზომილებიანი მასივები მონაცემების მარტივი ტიპებისთვის მხარდაჭერილი "
+"არაა"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "კავშირი %s გადაწერილია %s-სთან ერთად DECLARE ბრძანების მიერ %s"
+
+#: preproc.y:1872
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "ოპერატორში \"CLOSE DATABASE\" პარამეტრი \"AT\" დაუშვებელია"
+
+#: preproc.y:2122
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "ოპერატორში \"CONNECT\" პარამეტრი \"AT\" დაუშვებელია"
+
+#: preproc.y:2162
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "ოპერატორში \"DISCONNECT\" პარამეტრი \"AT\" დაუშვებელია"
+
+#: preproc.y:2217
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "ოპერატორში \"SET CONNECTION\" პარამეტრი \"AT\" დაუშვებელია"
+
+#: preproc.y:2239
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "ოპერატორში \"TYPE\" პარამეტრი \"AT\" დაუშვებელია"
+
+#: preproc.y:2248
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "ოპერატორში \"VAR\" პარამეტრი \"AT\" დაუშვებელია"
+
+#: preproc.y:2255
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "ოპერატორში \"WHENEVER\" პარამეტრი \"AT\" დაუშვებელია"
+
+#: preproc.y:2332 preproc.y:2504 preproc.y:2509 preproc.y:2632 preproc.y:4283
+#: preproc.y:4357 preproc.y:4948 preproc.y:5481 preproc.y:5819 preproc.y:6119
+#: preproc.y:7687 preproc.y:9288 preproc.y:9293 preproc.y:12272
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "მხარდაუჭერელი ფუნქცია სერვერს გადაეცემა"
+
+#: preproc.y:2890
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL განხორციელებული არაა"
+
+#: preproc.y:3589
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN განხორციელებული არაა"
+
+#: preproc.y:10335 preproc.y:18892
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr ""
+"\"database\" არ შეიძლება გამოყენებულ იქნას როგორც კურსორის სახელი INFORMIX "
+"რეჟიმში"
+
+#: preproc.y:10342 preproc.y:18902
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "\"%s\"ცვლადის სხვადასხვა პირობებში აღწერა მხარდაუჭერელია"
+
+#: preproc.y:10344 preproc.y:18904
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "კურსორი უკვე აღწერილია: \"%s\""
+
+#: preproc.y:10818
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "სერვერზე გადაცემული LIMIT #.# სინტაქსი მხარდაჭერილი აღარაა"
+
+#: preproc.y:11151 preproc.y:11158
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "ქვემოთხოვნას \"FROM\"-ში მეტსახელი უნდა ჰქონდეს"
+
+#: preproc.y:18584 preproc.y:18591
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS არ შეიძლება INTO მიეთითოს"
+
+#: preproc.y:18627
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "მოველოდი \"@\", მივიღე \"%s\""
+
+#: preproc.y:18639
+#, c-format
+msgid ""
+"only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are "
+"supported"
+msgstr ""
+"მხარდაჭერილია მხოლოდ პროტოკოლები \"tcp\" და \"unix\" და მონაცემთა ბაზის "
+"ტიპი \"postgresql\""
+
+#: preproc.y:18642
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "მოველოდი \"://\", მივიღე \"%s\""
+
+#: preproc.y:18647
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr ""
+"Unix-დომენის სოკეტები მხოლოდ \"localhost\"-ზე მუშაობს. მაგრამ არა \"%s\"-ზე"
+
+#: preproc.y:18673
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "მოველოდი \"postgresql\", მივიღე \"%s\""
+
+#: preproc.y:18676
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "შეერთების არასწორი ტიპი: %s"
+
+#: preproc.y:18685
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "მოველოდი \"@\"-ს ან \"://\"-ს, მივიღე \"%s\""
+
+#: preproc.y:18760 preproc.y:18778
+#, c-format
+msgid "invalid data type"
+msgstr "მონაცემების არასწორი ტიპი"
+
+#: preproc.y:18789 preproc.y:18806
+#, c-format
+msgid "incomplete statement"
+msgstr "არასწორი პირობა"
+
+#: preproc.y:18792 preproc.y:18809
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "უცნობი კოდი \"%s\""
+
+#: preproc.y:18854
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "სახელი \"%s\" უკვე აღწერილია"
+
+#: preproc.y:19120
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr ""
+"სიზუსტის / მასშტაბის არგუმენტი მხოლოდ მონაცემთა ტიპებს numeric და decimal "
+"აქვთ"
+
+#: preproc.y:19132
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "აქ ინტერვალის სპეციფიკაცია დაუშვებელია"
+
+#: preproc.y:19329 preproc.y:19381
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "ჩადგმული სტრუქტურის/გაერთიანების მეტისმეტად ბევრი დონე"
+
+#: preproc.y:19504
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "varchar-ზე მაჩვენებლები მხარდაუჭერელია"
+
+#: preproc.y:19955
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "ინიციალიზატორი დაუშვებელია EXEC SQL VAR ბრძანებაში"
+
+#: preproc.y:20272
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "შესაყვანად ინდიკატორების მასივები დაუშვებელია"
+
+#: preproc.y:20459
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "ცვლადის აღწერისას ოპერატორს ვერ გამოიყენებთ"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:20500
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s \"%s\"-სთან ან ახლოს"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "არასაკმარისი მეხსიერება"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "ცვლადის ტიპის უცნობი კოდი: %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "ცვლადი \"%s\" დამალულია სხვა ტიპის ლოკალური ცხვლადის მიერ"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "ცვლადი \"%s\" დამალულია ლოკალური ცვლადის მიერ"
+
+#: type.c:277
+#, c-format
+msgid ""
+"indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "ინდიკატორის ცვლადი \"%s\" იმალება სხვა ტიპის ლოკალური ცვლადის მიერ"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "ინდიკატორის ცვლადი \"%s\" სხვა ტიპის ლოკალური ცვლადის მიერ იმალება"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "მასივის/მაჩვენებლის ინდიკატორი მასივი/მაჩვენებელი უნდა იყოს"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "ჩადგმული მასივები მხარდაუჭერელია (სტრიქონების გარდა)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "სტრუქტურის ინდიკატორი სტრუქტურა უნდა იყოს"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "მარტივი მონაცემების ინდიკატორი მარტივი უნდა იყოს"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "ინდიკატორის სტრუქტურას ძალიან ცოტა წევრი ჰყავს: %s"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "ინდიკატორის სტრუქტურას ძალიან ბევრი წევრი ჰყავს: %s"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "დესკრიპტორის ჩანაწერის უცნობი კოდი: %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "არასწორად ჩამოყალიბებული ცვლადი \"%s\""
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "ცვლადი %s მაჩვენებელი არაა"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "ცვლადი %s სტრუქტურაზე და გაერთიანებაზე მაჩვენებელი არაა"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "ცვლადი \"%s\" არც სტრუქტურაა, არც გაერთიანება"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "ცვლადი %s მასივი არაა"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "ცვლადი %s აღწერილი არაა"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "ინდიკატორ ცვლადს მთელი რიცხვის ტიპი უნდა ჰქონდეს"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "მონაცემების ტიპის უცნობი სახელი \"%s\""
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "მრავალგანზომილებიანი მასივები მხარდაჭერილი არაა"
+
+#: variable.c:534
+#, c-format
+msgid ""
+"multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural ""
+"multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] ""
+"მრავალდონიანი მაჩვენებლები (2-ზე მეტი დონე) მხარდაუჭერელია; ნაპოვნია %d დონე"
+msgstr[1] ""
+"მრავალდონიანი მაჩვენებლები (2-ზე მეტი დონე) მხარდაუჭერელია; ნაპოვნია %d დონე"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "მონაცემების ამ ტიპისთვის მაჩვენებელი მაჩვენებელზე მხარდაჭერილი არაა"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "სტრუქტურების მრავალგანზომილებიანი მასივები მხარდაუჭერელია"
diff --git a/src/interfaces/ecpg/preproc/po/ko.po b/src/interfaces/ecpg/preproc/po/ko.po
new file mode 100644
index 0000000..f5dd327
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/ko.po
@@ -0,0 +1,723 @@
+# LANGUAGE message translation file for ecpg
+# Copyright (C) 2017 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# Ioseph Kim <ioseph@uri.sarang.net>, 2017.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL) 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2023-04-12 00:40+0000\n"
+"PO-Revision-Date: 2023-04-05 18:10+0900\n"
+"Last-Translator: Ioseph Kim <ioseph@uri.sarang.net>\n"
+"Language-Team: Korean Team <pgsql-kr@postgresql.kr>\n"
+"Language: ko\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "\"%s\" 변수는 숫자 형식이어야 함"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "%s 설명자(해당 연결: %s)가 없음"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "기본 연결을 위한 %s 설명자가 없음"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "설명자 헤더 항목 \"%d\"이(가) 없음"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "null 허용 여부는 항상 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member는 항상 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "설명자 항목 \"%s\"이(가) 구현되지 않음"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "설명자 항목 \"%s\"을(를) 설정할 수 없음"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s은(는) C 프로그램용 PostgreSQL 포함 SQL 전처리기입니다.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"사용:\n"
+" %s [OPTION]... 파일...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "옵션들:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c 포함된 SQL 코드에서 자동으로 C 코드를 생성합니다.\n"
+" EXEC SQL TYPE에 영향을 줍니다.\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MODE 호환성 모드를 설정합니다. MODE는 다음 중 하나일 수 있습니"
+"다.\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d 파서 디버그 출력 생성\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL SYMBOL 정의\n"
+
+#: ecpg.c:50
+#, c-format
+msgid ""
+" -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h 헤더 파일 구문 분석. 이 옵션은 \"-c\" 옵션 포함\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i 시스템 포함 파일도 구문 분석\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DIRECTORY DIRECTORY에서 포함 파일 검색\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o OUTFILE OUTFILE에 결과 쓰기\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPTION 런타임 동작을 지정합니다. 사용 가능한 OPTION은 다음과 같습니"
+"다.\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression 회귀 테스트 모드에서 실행\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t 트랜잭션 자동 커밋 설정\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version 버전 정보 보여주고 마침\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help 이 도움말을 보여주고 마침\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"출력 파일 이름을 지정하지 않으면 입력 파일 이름에 .pgc가 있을 경우 제거하고\n"
+".c를 추가하여 이름이 지정됩니다.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"문제점 보고 주소: <%s>\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "%s 홈페이지: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: 실행 가능한 경로를 지정할 수 없습니다\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: \"%s\" 파일 열 수 없음: %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "자제한 사항은 \"%s --help\" 명령으로 살펴보십시오.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: 파서 디버그 지원(-d)을 사용할 수 없음\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, PostgreSQL 포함 C 전처리기, 버전 %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... 여기서 검색 시작:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "검색 목록의 끝\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: 지정된 입력 파일 없음\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "\"%s\" 커서가 선언되었지만 열리지 않음"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "출력 파일 \"%s\"을(를) 제거할 수 없음\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "마무리 안된 /* 주석"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "마무리 안된 비트 문자열 문자"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "마무리 안된 16진수 문자열 문자"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "잘못된 비트 문자열 리터럴"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "잘못된 16진수 문자열 문자"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "xqs 안에 다룰 수 없는 이전 상태값 있음\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "마무리 안된 따옴표 안의 문자열"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "마무리 안된 따옴표 안의 문자열"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "길이가 0인 구분 식별자"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "마무리 안된 따옴표 안의 식별자"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "매개 변수 뒤에 뭔가 붙었음"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "숫자 뒤에 문자가 붙었습니다"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "중첩된 /* ... */ 주석"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "EXEC SQL UNDEF 명령에 식별자 누락"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "중첩된 EXEC SQL IFDEF 조건이 너무 많음"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "일치하는 \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\" 누락"
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "\"EXEC SQL ENDIF;\" 누락"
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "두 개 이상의 EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "일치하지 않는 EXEC SQL ENDIF"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "EXEC SQL IFDEF 명령에 식별자 누락"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "EXEC SQL DEFINE 명령에 식별자 누락"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "EXEC SQL INCLUDE 명령에 구문 오류 발생"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr ""
+"내부 오류: 상태값을 알 수 없습니다. 이 문제를 <%s> 주소로 알려주십시오."
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "오류: 포함 경로 \"%s/%s\"이(가) %d줄에서 너무 길어서 건너뜀\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "포함 파일 \"%s\"을(를) %d줄에서 열 수 없음"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "구문 오류"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "경고: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "오류: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "\"%s\" 이름의 커서가 없음"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "형식 정의에 이니셜라이저가 허용되지 않음"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "\"string\" 자료형 이름은 인포믹스 모드에서 예약어로 쓰입니다"
+
+#: preproc.y:552 preproc.y:17925
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "\"%s\" 형식이 이미 정의됨"
+
+#: preproc.y:577 preproc.y:18560 preproc.y:18885 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "단순 데이터 형식에 다차원 배열이 지원되지 않음"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "%s 연결은 %s 연결로 바뀌었음, 해당 DECLARE 구문: %s"
+
+#: preproc.y:1767
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "CLOSE DATABASE 문에 AT 옵션이 허용되지 않음"
+
+#: preproc.y:2017
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "CONNECT 문에 AT 옵션이 허용되지 않음"
+
+#: preproc.y:2057
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "DISCONNECT 문에 AT 옵션이 허용되지 않음"
+
+#: preproc.y:2112
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "SET CONNECTION 문에 AT 옵션이 허용되지 않음"
+
+#: preproc.y:2134
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "TYPE 문에 AT 옵션이 허용되지 않음"
+
+#: preproc.y:2143
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "VAR 문에 AT 옵션이 허용되지 않음"
+
+#: preproc.y:2150
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "WHENEVER 문에 AT 옵션이 허용되지 않음"
+
+#: preproc.y:2227 preproc.y:2399 preproc.y:2404 preproc.y:2527 preproc.y:4178
+#: preproc.y:4252 preproc.y:4843 preproc.y:5376 preproc.y:5714 preproc.y:6014
+#: preproc.y:7582 preproc.y:9183 preproc.y:9188 preproc.y:12139
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "지원되지 않는 기능이 서버에 전달됨"
+
+#: preproc.y:2785
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL이 구현되지 않음"
+
+#: preproc.y:3484
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN이 구현되지 않음"
+
+#: preproc.y:10230 preproc.y:17498
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "INFORMIX 모드에서는 \"database\"를 커서 이름으로 사용할 수 없음"
+
+#: preproc.y:10237 preproc.y:17508
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "서로 다른 선언 구문에서 \"%s\" 변수 사용은 지원하지 않습니다"
+
+#: preproc.y:10239 preproc.y:17510
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "\"%s\" 커서가 이미 정의됨"
+
+#: preproc.y:10713
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "더 이상 지원되지 않는 LIMIT #,# 구문이 서버에 전달됨"
+
+#: preproc.y:11046 preproc.y:11053
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "FROM 절 내의 subquery 에는 반드시 alias 를 가져야만 합니다"
+
+#: preproc.y:17190 preproc.y:17197
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS에서 INTO를 지정할 수 없음"
+
+#: preproc.y:17233
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "\"@\"이 필요한데 \"%s\"이(가) 있음"
+
+#: preproc.y:17245
+#, c-format
+msgid ""
+"only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are "
+"supported"
+msgstr ""
+"\"tcp\" 및 \"unix\" 프로토콜과 데이터베이스 형식 \"postgresql\"만 지원됨"
+
+#: preproc.y:17248
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "\"://\"가 필요한데 \"%s\"이(가) 있음"
+
+#: preproc.y:17253
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr ""
+"Unix-domain 소켓은 \"localhost\"에서만 작동하며 \"%s\"에서는 작동하지 않음"
+
+#: preproc.y:17279
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "\"postgresql\"이 필요한데 \"%s\"이(가) 있음"
+
+#: preproc.y:17282
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "잘못된 연결 형식: %s"
+
+#: preproc.y:17291
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "\"@\" 또는 \"://\"가 필요한데 \"%s\"이(가) 있음"
+
+#: preproc.y:17366 preproc.y:17384
+#, c-format
+msgid "invalid data type"
+msgstr "잘못된 데이터 형식"
+
+#: preproc.y:17395 preproc.y:17412
+#, c-format
+msgid "incomplete statement"
+msgstr "불완전한 문"
+
+#: preproc.y:17398 preproc.y:17415
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "인식할 수 없는 토큰 \"%s\""
+
+#: preproc.y:17460
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "\"%s\" 이름이 이미 정의됨"
+
+#: preproc.y:17728
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "숫자 및 10진수 데이터 형식에만 전체 자릿수/소수 자릿수 인수 포함"
+
+#: preproc.y:17740
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "여기에는 간격 지정이 허용되지 않음"
+
+#: preproc.y:17900 preproc.y:17952
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "중첩된 구조/union 정의에 수준이 너무 많음"
+
+#: preproc.y:18075
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "varchar에 대한 포인터가 구현되지 않음"
+
+#: preproc.y:18526
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "EXEC SQL VAR 명령에 이니셜라이저가 허용되지 않음"
+
+#: preproc.y:18843
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "입력에서 표시기의 배열이 허용되지 않음"
+
+#: preproc.y:19030
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "연산자는 동적 정의 영역에서는 사용할 수 없음"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:19071
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s, \"%s\" 부근"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "메모리 부족"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "인식할 수 없는 변수 형식 코드 %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "\"%s\" 변수가 다른 자료형의 지역 변수에 의해 숨겨졌음"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "\"%s\" 변수가 지역 변수에 의해 숨겨졌음"
+
+#: type.c:277
+#, c-format
+msgid ""
+"indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "\"%s\" 지시자 변수가 지역 변수의 다른 자료형 때문에 숨겨졌음"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "\"%s\" 지시자 변수가 지역 변수에 의해 숨겨졌음"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "배열/포인터의 표시기는 배열/포인터여야 함"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "중첩된 배열은 지원되지 않음(문자열 제외)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "구조의 표시기는 구조여야 함"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "단순 데이터 형식의 표시기는 단순이어야 함"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "\"%s\" 지시 구조체는 맴버가 너무 적음"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "\"%s\" 지시 구조체는 맴버가 너무 많음"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "인식할 수 없는 설명자 항목 코드 %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "잘못된 형식의 변수 \"%s\""
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "\"%s\" 변수가 포인터가 아님"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "\"%s\" 변수가 구조나 union의 포인터가 아님"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "\"%s\" 변수가 구조나 union이 아님"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "\"%s\" 변수가 배열이 아님"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "\"%s\" 변수가 선언되지 않음"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "표시기 변수에 정수 형식이 있어야 함"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "인식할 수 없는 데이터 형식 이름 \"%s\""
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "다차원 배열이 지원되지 않음"
+
+#: variable.c:534
+#, c-format
+msgid ""
+"multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural ""
+"multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "다중단계 포인터(2단계 이상)는 지원하지 않음; 발견된 레벨: %d"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "이 데이터 형식에는 포인터에 대한 포인터가 지원되지 않음"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "구조에는 다차원 배열이 지원되지 않음"
+
+#, c-format
+#~ msgid "using unsupported DESCRIBE statement"
+#~ msgstr "지원되지 않는 DESCRIBE 문 사용"
diff --git a/src/interfaces/ecpg/preproc/po/pl.po b/src/interfaces/ecpg/preproc/po/pl.po
new file mode 100644
index 0000000..c3a2fe2
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/pl.po
@@ -0,0 +1,674 @@
+# Polish message translation file for ecpg
+# Copyright (C) 2011 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# Begina Felicysym <begina.felicysym@wp.eu>, 2011, 2012.
+# grzegorz <begina.felicysym@wp.eu>, 2014, 2017.
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL 9.1)\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@postgresql.org\n"
+"POT-Creation-Date: 2017-03-14 17:38+0000\n"
+"PO-Revision-Date: 2017-03-14 19:42+0200\n"
+"Last-Translator: grzegorz <begina.felicysym@wp.eu>\n"
+"Language-Team: begina.felicysym@wp.eu\n"
+"Language: pl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
+"X-Generator: Virtaal 0.7.1\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "zmienna \"%s\" musi mieć typ numeryczny"
+
+#: descriptor.c:124 descriptor.c:146
+#, c-format
+msgid "descriptor \"%s\" does not exist"
+msgstr "deskryptor \"%s\" nie istnieje"
+
+#: descriptor.c:161 descriptor.c:213
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "element nagłówka deskryptora \"%d\" nie istnieje"
+
+#: descriptor.c:183
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable jest zawsze 1"
+
+#: descriptor.c:186
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member jest zawsze 0"
+
+#: descriptor.c:280
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "element deskryptora \"%s\" nie jest zaimplementowany"
+
+#: descriptor.c:290
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "element deskryptora \"%s\" nie może zostać ustawiony"
+
+#: ecpg.c:35
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s jest osadzonym w PostgreSQL preprocesorem SQL dla programów C.\n"
+"\n"
+
+#: ecpg.c:37
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Sposób użycia:\n"
+" %s [OPCJE]... PLIK...\n"
+"\n"
+
+#: ecpg.c:40
+#, c-format
+msgid "Options:\n"
+msgstr "Opcje:\n"
+
+#: ecpg.c:41
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c automatycznie generuje kod w C z osadzonego kodu SQL;\n"
+" dotyczy to EXEC SQL TYPE\n"
+
+#: ecpg.c:43
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\"\n"
+msgstr ""
+" -C TRYB ustala tryb kompatybilności; TRYB może być jednym z\n"
+" \"INFORMIX\", \"INFORMIX_SE\"\n"
+
+#: ecpg.c:46
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d generuje wyjście debugowania parsera\n"
+
+#: ecpg.c:48
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL definiuje SYMBOL\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h parsuje plik nagłówkowy, opcja ta zawiera opcję \"-c\"\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i parsuje również systemowe pliki nagłówkowe\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I FOLDER przeszukuje FOLDER w poszukiwaniu plików nagłówkowych\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o PLIKOUT zapisuje wynik do PLIKOUT\n"
+
+#: ecpg.c:53
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPCJA określa zachowanie uruchomienia; OPTCJA może być:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:55
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression wykonanie w trybie testów regresyjnych\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t włącza automatyczne zatwierdzanie transakcji\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version wypisuje informacje o wersji i kończy\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help pokazuje ten ekran pomocy i kończy\n"
+
+#: ecpg.c:59
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Jeżeli nie wskazano pliku wyjścia, nazwa jest tworzona przez dodanie .c\n"
+"do nazwy pliku wejścia, po usunięciu .pgc jeśli obecne.\n"
+
+#: ecpg.c:61
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <pgsql-bugs@postgresql.org>.\n"
+msgstr ""
+"\n"
+"Błędy proszę przesyłać na adres <pgsql-bugs@postgresql.org>.\n"
+
+#: ecpg.c:139
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: nie można odnaleźć własnej ścieżki programu wykonywalnego\n"
+
+#: ecpg.c:174 ecpg.c:327 ecpg.c:337
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: nie można otworzyć pliku \"%s\": %s\n"
+
+#: ecpg.c:213 ecpg.c:226 ecpg.c:242 ecpg.c:268
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Spróbuj \"%s --help\" aby uzyskać więcej informacji.\n"
+
+#: ecpg.c:237
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: wsparcie debugu analizatora (-d) niedostępne\n"
+
+#: ecpg.c:256
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, preprocesor C osadzony w PostgreSQL, wersja %s\n"
+
+#: ecpg.c:258
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... wyszukiwanie zaczyna się tutaj:\n"
+
+#: ecpg.c:261
+#, c-format
+msgid "end of search list\n"
+msgstr "koniec listy wyszukiwania\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: nie wskazano pliku wejściowego\n"
+
+#: ecpg.c:460
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "kursor \"%s\" został zadeklarowany, ale nie otwarty"
+
+#: ecpg.c:473 preproc.y:127
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "nie można usunąć pliku wyjścia \"%s\"\n"
+
+#: pgc.l:431
+#, c-format
+msgid "unterminated /* comment"
+msgstr "nie zakończony komentarz /*"
+
+#: pgc.l:444
+#, c-format
+msgid "invalid bit string literal"
+msgstr "nieprawidłowa stała łańcucha bitów"
+
+#: pgc.l:453
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "niezakończona stała łańcucha bitów"
+
+#: pgc.l:469
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "niezakończona stała łańcucha szesnastkowego"
+
+#: pgc.l:547
+#, c-format
+msgid "unterminated quoted string"
+msgstr "niezakończona stała łańcuchowa"
+
+#: pgc.l:605 pgc.l:618
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "ograniczony identyfikator o długości zero"
+
+#: pgc.l:626
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "niezakończony łańcuch identyfikatora"
+
+#: pgc.l:881
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "zagnieżdżone komentarze /* ... */"
+
+#: pgc.l:974
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "brakujący identyfikator w poleceniu EXEC SQL UNDEF"
+
+#: pgc.l:1020 pgc.l:1034
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "brak pasującego \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:1023 pgc.l:1036 pgc.l:1212
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "brak \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1052 pgc.l:1071
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "więcej niż jeden EXEC SQL ELSE"
+
+#: pgc.l:1093 pgc.l:1107
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "niedopasowany EXEC SQL ENDIF"
+
+#: pgc.l:1127
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "zbyt wiele zagłębień warunków EXEC SQL IFDEF"
+
+#: pgc.l:1160
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "brakujący identyfikator w poleceniu EXEC SQL IFDEF"
+
+#: pgc.l:1169
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "brakujący identyfikator w poleceniu EXEC SQL DEFINE"
+
+#: pgc.l:1202
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "błąd składni w poleceniu EXEC SQL INCLUDE"
+
+#: pgc.l:1251
+#, c-format
+msgid "internal error: unreachable state; please report this to <pgsql-bugs@postgresql.org>"
+msgstr ""
+"błąd wewnętrzny: nieosiągalny stan; proszę przesłać go na adres <pgsql-"
+"bugs@postgresql.org>"
+
+#: pgc.l:1375
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Błąd: załączona ścieżka \"%s/%s\" jest zbyt długa w linii %d, pominięto\n"
+
+#: pgc.l:1398
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "nie można otworzyć załączonego pliku \"%s\" w linii %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "błąd składni"
+
+#: preproc.y:81
+#, c-format
+msgid "WARNING: "
+msgstr "OSTRZEŻENIE: "
+
+#: preproc.y:84
+#, c-format
+msgid "ERROR: "
+msgstr "BŁĄD: "
+
+#: preproc.y:508
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "kursor \"%s\" nie istnieje"
+
+#: preproc.y:537
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "inicjator niedozwolony w definicji typu"
+
+#: preproc.y:539
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "nazwa typu \"string\" jest zarezerwowana w trybie Informix"
+
+#: preproc.y:546 preproc.y:15234
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "typ \"%s\" już istnieje"
+
+#: preproc.y:570 preproc.y:15892 preproc.y:16212 variable.c:620
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "wielowymiarowe tablice dla prostych typów danych nie są wspierane"
+
+#: preproc.y:1675
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "opcja AT niedozwolona w wyrażeniu CLOSE DATABASE"
+
+#: preproc.y:1886
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "opcja AT niedozwolona w wyrażeniu CONNECT"
+
+#: preproc.y:1920
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "opcja AT niedozwolona w wyrażeniu DISCONNECT"
+
+#: preproc.y:1975
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "opcja AT niedozwolona w wyrażeniu SET CONNECTION"
+
+#: preproc.y:1997
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "opcja AT niedozwolona w wyrażeniu TYPE"
+
+#: preproc.y:2006
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "opcja AT niedozwolona w wyrażeniu VAR"
+
+#: preproc.y:2013
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "opcja AT niedozwolona w wyrażeniu WHENEVER"
+
+#: preproc.y:2265 preproc.y:2270 preproc.y:2386 preproc.y:3923 preproc.y:5434
+#: preproc.y:5443 preproc.y:5751 preproc.y:7247 preproc.y:8659 preproc.y:8664
+#: preproc.y:11368 preproc.y:11989
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "niewspierana cecha zostanie przekazana na serwer"
+
+#: preproc.y:2644
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL nie jest zaimplementowane"
+
+#: preproc.y:3268
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN nie zostało zaimplementowane"
+
+#: preproc.y:9534 preproc.y:14823
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "użycie zmiennej \"%s\" w innych wyrażeniach deklaracji nie jest wspierane"
+
+#: preproc.y:9536 preproc.y:14825
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "kursor \"%s\" już istnieje"
+
+#: preproc.y:9966
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "już nie wspierana składnia LIMIT #,# przesłana na serwer"
+
+#: preproc.y:10282 preproc.y:10289
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "podzapytanie z FROM musi mieć alias"
+
+#: preproc.y:14553
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS nie może zawierać INTO"
+
+#: preproc.y:14589
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "oczekiwano \"@\", znaleziono \"%s\""
+
+#: preproc.y:14601
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr ""
+"tylko protokoły \"tcp\" i \"unix\" oraz typ bazy danych \"postgresql\" są "
+"wspierane"
+
+#: preproc.y:14604
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "oczekiwano \"://\", znaleziono \"%s\""
+
+#: preproc.y:14609
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Gniazda dziedziny Uniksa działają tylko na \"localhost\" a nie na \"%s\""
+
+#: preproc.y:14635
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "oczekiwano \"postgresql\", znaleziono \"%s\""
+
+#: preproc.y:14638
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "niepoprawny typ połączenia: %s"
+
+#: preproc.y:14647
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "oczekiwano \"@\" lub \"://\", znaleziono \"%s\""
+
+#: preproc.y:14722 preproc.y:14740
+#, c-format
+msgid "invalid data type"
+msgstr "niepoprawny typ danych"
+
+#: preproc.y:14751 preproc.y:14768
+#, c-format
+msgid "incomplete statement"
+msgstr "niepełne wyrażenie"
+
+#: preproc.y:14754 preproc.y:14771
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "niezrozumiały token \"%s\""
+
+#: preproc.y:15045
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "tylko typy danych numeric i decimal mają argument precyzji/skali"
+
+#: preproc.y:15057
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "specyfikacja interwału niedozwolona tutaj"
+
+#: preproc.y:15209 preproc.y:15261
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "zbyt wiele poziomów w zagnieżdżonej definicji structure/union"
+
+#: preproc.y:15400
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "wskazania na varchar nie są zaimplementowane"
+
+#: preproc.y:15587 preproc.y:15612
+#, c-format
+msgid "using unsupported DESCRIBE statement"
+msgstr "użycie niewspieranego wyrażenia DESCRIBE"
+
+#: preproc.y:15859
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "inicjator niedopuszczalny w poleceniu EXEC SQL VAR"
+
+#: preproc.y:16170
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "tabele wskazań nie są dozwolone w wejściu"
+
+#: preproc.y:16391
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "operator niedozwolony w definicji zmiennej"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:16429
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s w lub pobliżu \"%s\""
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "brak pamięci"
+
+#: type.c:212 type.c:664
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "niezrozumiały kod typu zmiennej %d"
+
+#: type.c:261
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "zmienna \"%s\" została przykryta przez zmienną lokalną innego typu"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "zmienna \"%s\" została przykryta przez zmienną lokalną"
+
+#: type.c:275
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr ""
+"zmienna wskaźnikowa \"%s\" została przykryta przez zmienną lokalną innego typu"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "zmienna wskaźnikowa \"%s\" została przykryta przez zmienną lokalną"
+
+#: type.c:285
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "wskaźnik do array/pointer musi być array/pointer"
+
+#: type.c:289
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "tabele zagnieżdżone nie są wspierane (poza ciągami znaków)"
+
+#: type.c:331
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "wskaźnik do struct musi być struct"
+
+#: type.c:351 type.c:372 type.c:392
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "wskaźnik do prostego typu danych musi być prosty"
+
+#: type.c:723
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "niezrozumiały kod deskryptora elementu %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "niepoprawnie utworzona zmienna \"%s\""
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "zmienna \"%s\" nie jest wskaźnikiem"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "zmienna \"%s\" nie jest wskazaniem na structure ani union"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "zmienna \"%s\" nie jest ani structure ani union"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "zmienna \"%s\" nie jest tablicą"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "zmienna \"%s\" nie została zadeklarowana"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "zmienna wskaźnikowa musi mieć typ integer"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "niezrozumiała nazwa typu danych \"%s\""
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "wielowymiarowe tablice nie są wspierane"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] ""
+"wielopoziomowe wskaźniki (więcej niż 2 poziomy) nie są wspierane; znaleziono "
+"%d poziom"
+msgstr[1] ""
+"wielopoziomowe wskaźniki (więcej niż 2 poziomy) nie są wspierane; znaleziono "
+"%d poziomy"
+msgstr[2] ""
+"wielopoziomowe wskaźniki (więcej niż 2 poziomy) nie są wspierane; znaleziono "
+"%d poziomów"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "wskazanie na wskaźnik nie jest wspierane dla tego typu danych"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "wielowymiarowe tablice dla struktur nie są wspierane"
+
+#~ msgid "COPY FROM STDOUT is not possible"
+#~ msgstr "COPY FROM STDOUT nie jest możliwe"
+
+#~ msgid "COPY TO STDIN is not possible"
+#~ msgstr "COPY TO STDIN nie jest możliwe"
diff --git a/src/interfaces/ecpg/preproc/po/pt_BR.po b/src/interfaces/ecpg/preproc/po/pt_BR.po
new file mode 100644
index 0000000..4702bb6
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/pt_BR.po
@@ -0,0 +1,712 @@
+# Brazilian Portuguese message translation file for ecpg
+#
+# Copyright (C) 2009-2022 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+#
+# Fernando Ike de Oliveira <fike@midstorm.org>, 2009.
+# Euler Taveira <euler@eulerto.com>, 2010-2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-09-10 18:22-0300\n"
+"PO-Revision-Date: 2018-06-25 08:59+0200\n"
+"Last-Translator: Euler Taveira <euler@eulerto.com>\n"
+"Language-Team: Brazilian Portuguese <pgsql-translators@postgresql.org>\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n>1);\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "variável \"%s\" deve ter um tipo númerico"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "descritor %s vinculado a conexão %s não existe"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "descritor %s vinculado a conexão padrão não existe"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "item do cabeçalho do descritor \"%d\" não existe"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable é sempre 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member é sempre 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "item do descritor \"%s\" não está implementado"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "item do descritor \"%s\" não pode ser definido"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s é o pré-processador SQL embutido do PostgreSQL para programas em C.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Uso:\n"
+" %s [OPÇÃO]... ARQUIVO...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Opções:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c gera automaticamente código C a partir do código SQL embutido;\n"
+" isso afeta o EXEC SQL TYPE\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C mode define o modo de compatilidade; MODE pode ser um de\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d gera saída de depuração do analisador\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SÍMBOLO define SÍMBOLO\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h analisa um arquivo de cabeçalho, essa opção inclui a opção \"-c\"\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i analisa arquivos de cabeçalho do sistema também\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DIRETÓRIO procura DIRETÓRIO para incluir arquivos\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o ARQUIVO grava resultado no ARQUIVO\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPÇÃO especifica comportamento em tempo de execução; OPÇÃO pode ser:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression executa em modo de teste de regressão\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t habilita o auto efetivação de transações\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version mostra informação sobre a versão e termina\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help mostra essa ajuda e termina\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Se nenhum arquivo de saída for especificado, o nome é formado adicionando .c ao\n"
+"nome do arquivo de entrada, após remover .pgc se presente.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"Relate erros a <%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "Página web do %s: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: não pôde localizar meu próprio caminho executável\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: não pôde abrir arquivo \"%s\": %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Tente \"%s --help\" para obter informações adicionais.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: suporte a depuração do analisador (-d) não está disponível\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, the pré-processador C embutido do PostgreSQL, versão %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... pesquisa inicia aqui:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "fim da lista de pesquisa\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: nenhum arquivo de entrada foi especificado\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "cursor \"%s\" foi declarado mas não foi aberto"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "não pôde remover arquivo de saída \"%s\"\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "comentário /* não foi terminado"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "cadeia de bits não foi terminada"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "cadeia de caracteres hexadecimal não foi terminada"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "cadeia de bits inválida"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "cadeia de caracteres hexadecimal é inválida"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "estado anterior não tratado em xqs\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "cadeia de caracteres entre aspas não foi terminada"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "cadeia de caracteres entre dólares não foi terminada"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "identificador delimitado tem tamanho zero"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "identificador entre aspas não foi terminado"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "elemento indesejado após parâmetro"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "elemento indesejado após valor numérico"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "comentários /* ... */ aninhados"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "faltando identificador no comando EXEC SQL UNDEF"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "muitas condições EXEC SQL IFDEF aninhadas"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "faltando correspondente \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "faltando \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "mais de um EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "EXEC SQL ENDIF não tem correspondente"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "faltando identificador no comando EXEC SQL IFDEF"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "faltando identificador no comando EXEC SQL IFDEF"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "erro de sintaxe no comando EXEC SQL INCLUDE"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "erro interno: estado inacessível; por favor relato isso a <%s>"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Erro: caminho de inclusão \"%s/%s\" é muito longo na linha %d, ignorando\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "não pôde abrir arquivo de inclusão \"%s\" na linha %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "erro de sintaxe"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "AVISO: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "ERRO: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "cursor \"%s\" não existe"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "inicializador não é permitido na definição do tipo"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "nome de tipo \"string\" é reservado no modo Informix"
+
+#: preproc.y:552 preproc.y:17925
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "tipo \"%s\" já está definido"
+
+#: preproc.y:577 preproc.y:18560 preproc.y:18885 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "matrizes multidimensionais para tipo de dados simples não são suportadas"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "conexão %s é sobrescrita com %s pelo comando DECLARE %s"
+
+#: preproc.y:1767
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "opção AT não é permitida no comando CLOSE DATABASE"
+
+#: preproc.y:2017
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "opção AT não é permitida no comando CONNECT"
+
+#: preproc.y:2057
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "opção AT não é permitida no comando DISCONNECT"
+
+#: preproc.y:2112
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "opção AT não é permitida no comando SET CONNECTION"
+
+#: preproc.y:2134
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "opção AT não é permitida no comando TYPE"
+
+#: preproc.y:2143
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "opção AT não é permitida no comando VAR"
+
+#: preproc.y:2150
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "opção AT não é permitida no comando WHENEVER"
+
+#: preproc.y:2227 preproc.y:2399 preproc.y:2404 preproc.y:2527 preproc.y:4178
+#: preproc.y:4252 preproc.y:4843 preproc.y:5376 preproc.y:5714 preproc.y:6014
+#: preproc.y:7582 preproc.y:9183 preproc.y:9188 preproc.y:12139
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "funcionalidade não suportada será enviada ao servidor"
+
+#: preproc.y:2785
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL não está implementado"
+
+#: preproc.y:3484
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN não está implementado"
+
+#: preproc.y:10230 preproc.y:17498
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "\"database\" não pode ser utilizado como nome de cursor no modo INFORMIX"
+
+#: preproc.y:10237 preproc.y:17508
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "utilizar variável \"%s\" em comandos de declaração diferentes não é suportado"
+
+#: preproc.y:10239 preproc.y:17510
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "cursor \"%s\" já está definido"
+
+#: preproc.y:10713
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "sintaxe LIMIT #,# que não é suportada foi enviada ao servidor"
+
+#: preproc.y:11046 preproc.y:11053
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "subconsulta no FROM deve ter um aliás"
+
+#: preproc.y:17190 preproc.y:17197
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS não pode especificar INTO"
+
+#: preproc.y:17233
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "esperado \"@\", encontrado \"%s\""
+
+#: preproc.y:17245
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "somente os protocolos \"tcp\" e \"unix\" e tipo banco de dados \"postgressql\" sãosuportados"
+
+#: preproc.y:17248
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "esperado \"://\", encontrado \"%s\""
+
+#: preproc.y:17253
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Soquetes de domínio Unix trabalham somente com \"localhost\" e não com \"%s\""
+
+#: preproc.y:17279
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "esperado \"postgresql\", encontrado \"%s\""
+
+#: preproc.y:17282
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "tipo de conexão inválido: %s"
+
+#: preproc.y:17291
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "esperado \"@\" ou \"://\", encontrado \"%s\""
+
+#: preproc.y:17366 preproc.y:17384
+#, c-format
+msgid "invalid data type"
+msgstr "tipo de dado inválido"
+
+#: preproc.y:17395 preproc.y:17412
+#, c-format
+msgid "incomplete statement"
+msgstr "comando incompleto"
+
+#: preproc.y:17398 preproc.y:17415
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "informação desconhecida \"%s\""
+
+#: preproc.y:17460
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "nome \"%s\" já está declarado"
+
+#: preproc.y:17728
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "somente os tipos de dados numeric e decimal possuem argumento de precisão/escala"
+
+#: preproc.y:17740
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "especificação de intervalo não é permitida aqui"
+
+#: preproc.y:17900 preproc.y:17952
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "muitos níveis em definição aninhada de estrutura/união"
+
+#: preproc.y:18075
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "ponteiros para varchar não estão implentados"
+
+#: preproc.y:18526
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "inicilização não é permitido no comando EXEC SQL VAR"
+
+#: preproc.y:18843
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "matrizes do indicadores não são permitidas na entrada"
+
+#: preproc.y:19030
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "operador não é permitido na definição da variável"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:19071
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s em ou próximo a \"%s\""
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "sem memória"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "tipo de código de variável %d é desconhecido"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "variável \"%s\" está escondida por uma variável local de um tipo diferente"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "variável \"%s\" está escondida por uma variável local"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "variável de indicador \"%s\" está escondida por uma variável local de um tipo diferente"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "variável de indicador \"%s\" está escondida por uma variável local"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "indicador para matriz/ponteiro tem de ser matriz/ponteiro"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "matrizes aninhadas não são suportadas (exceto cadeia de caracteres)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "indicador para struct tem que ser struct"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "indicador para tipo de dados simples tem que ser simples"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "indicador struct \"%s\" tem poucos membros"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "indicador struct \"%s\" tem muitos membros"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "código do item do descritor %d é desconhecido"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "variável \"%s\" possui formato incorreto"
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "variável \"%s\" não é um ponteiro"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "variável \"%s\" não é um ponteiro para uma estrutura ou uma união"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "variável \"%s\" não é nem uma estrutura nem uma união"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "variável \"%s\" não é uma matriz"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "variável \"%s\" não foi declarada"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "variável de indicador deve ter um tipo inteiro"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "nome do tipo dados \"%s\" é desconhecido"
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "matrizes multidimensionais não são suportadas"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "ponteiros com múltiplos níveis (mais do que 2 níveis) não são suportados; %d nível encontrado"
+msgstr[1] "ponteiros com múltiplos níveis (mais do que 2 níveis) não são suportados; %d níveis encontrados"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "ponteiro para ponteiro não é suportado para esse tipo de dado"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "matrizes multidimensionais para estruturas não são suportadas"
diff --git a/src/interfaces/ecpg/preproc/po/ru.po b/src/interfaces/ecpg/preproc/po/ru.po
new file mode 100644
index 0000000..00dea8d
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/ru.po
@@ -0,0 +1,751 @@
+# Russian message translation file for ecpg
+# Copyright (C) 2012-2016 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# Alexander Lakhin <exclusion@gmail.com>, 2012-2017, 2018, 2019, 2020, 2021, 2022.
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL current)\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2023-05-03 05:56+0300\n"
+"PO-Revision-Date: 2022-09-05 13:32+0300\n"
+"Last-Translator: Alexander Lakhin <exclusion@gmail.com>\n"
+"Language-Team: Russian <pgsql-ru-general@postgresql.org>\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "переменная \"%s\" должна иметь числовой тип"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "дескриптор %s, привязанный к соединению %s, не существует"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "дескриптор %s, привязанный к соединению по умолчанию, не существует"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "заголовок дескриптора не содержит элемент \"%d\""
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "NULLABLE всегда равно 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "KEY_MEMBER всегда равно 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "поле \"%s\" в дескрипторе не реализовано"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "установить поле \"%s\" в дескрипторе нельзя"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s - препроцессор SQL-вставок в программах на C для PostgreSQL.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Использование:\n"
+" %s [ПАРАМЕТР]... ФАЙЛ...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Параметры:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c автоматически генерировать код C из внедрённого SQL-кода;\n"
+" (это касается EXEC SQL TYPE)\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C РЕЖИМ установить режим совместимости; допустимый РЕЖИМ:\n"
+" \"INFORMIX\", \"INFORMIX_SE\" или \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d генерировать отладочные сообщения при разборе\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D СИМВОЛ определить (define) СИМВОЛ\n"
+
+#: ecpg.c:50
+#, c-format
+msgid ""
+" -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h разобрать файл заголовка (включает параметр \"-c\")\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i разобрать также системные включаемые файлы\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I КАТАЛОГ искать включаемые файлы в указанном каталоге\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o ФАЙЛ записать результат в ФАЙЛ\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r ПАРАМЕТР определить режим выполнения; допустимый ПАРАМЕТР:\n"
+" \"no_indicator\", \"prepare\" или \"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression запустить в режиме тестирования регрессии\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t включить автофиксацию транзакций\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version показать версию и выйти\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help показать эту справку и выйти\n"
+
+# skip-rule: space-before-period
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Если выходной файл не указан, к имени входного файла без расширения .pgc\n"
+"добавляется .c.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"Об ошибках сообщайте по адресу <%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "Домашняя страница %s: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: не удалось найти путь к собственному исполняемому файлу\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: не удалось открыть файл \"%s\": %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Для дополнительной информации попробуйте \"%s --help\".\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: отладочные сообщения при разборе (-d) не поддерживаются\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, препроцессор внедрённого в С языка СУБД PostgreSQL, версия %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "поиск файлов для EXEC SQL INCLUDE ... начинается в каталогах:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "конец списка поиска\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: нет входных файлов\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "курсор \"%s\" был объявлен, но не открыт"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "ошибка при удалении выходного файла \"%s\"\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "незавершённый комментарий /*"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "оборванная битовая строка"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "оборванная шестнадцатеричная строка"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "неверная битовая строка"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "неверная шестнадцатеричная строка"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr ""
+"необрабатываемое предыдущее состояние при обнаружении закрывающего "
+"апострофа\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "незавершённая строка в кавычках"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "незавершённая строка с $"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "пустой идентификатор в кавычках"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "незавершённый идентификатор в кавычках"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "мусорное содержимое после параметра"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "мусорное содержимое после числовой константы"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "вложенные комментарии /* ... */"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "в команде EXEC SQL UNDEF отсутствует идентификатор"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "слишком много вложенных условий EXEC SQL IFDEF"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "нет соответствующего \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "отсутствует \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "неоднократная команда EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "непарная команда EXEC SQL ENDIF"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "в команде EXEC SQL IFDEF отсутствует идентификатор"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "в команде EXEC SQL DEFINE отсутствует идентификатор"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "ошибка синтаксиса в команде EXEC SQL INCLUDE"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "внутренняя ошибка: недостижимое состояние; пожалуйста, сообщите в <%s>"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr ""
+"Ошибка: путь включаемых файлов \"%s/%s\" в строке %d слишком длинный, "
+"пропускается\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "не удалось открыть включаемый файл \"%s\" (строка %d)"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "ошибка синтаксиса"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "ПРЕДУПРЕЖДЕНИЕ: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "ОШИБКА: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "курсор \"%s\" не существует"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "определение типа не может включать инициализатор"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "имя типа \"string\" в режиме Informix зарезервировано"
+
+#: preproc.y:552 preproc.y:17925
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "тип \"%s\" уже определён"
+
+#: preproc.y:577 preproc.y:18560 preproc.y:18885 variable.c:620
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "многомерные массивы с простыми типами данных не поддерживаются"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "подключение %s заменяется на %s оператором DECLARE %s"
+
+#: preproc.y:1767
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "оператор CLOSE DATABASE с параметром AT не поддерживается"
+
+#: preproc.y:2017
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "оператор CONNECT с параметром AT не поддерживается"
+
+#: preproc.y:2057
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "оператор DISCONNECT с параметром AT не поддерживается"
+
+#: preproc.y:2112
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "оператор SET CONNECTION с параметром AT не поддерживается"
+
+#: preproc.y:2134
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "оператор TYPE с параметром AT не поддерживается"
+
+#: preproc.y:2143
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "оператор VAR с параметром AT не поддерживается"
+
+#: preproc.y:2150
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "оператор WHENEVER с параметром AT не поддерживается"
+
+#: preproc.y:2227 preproc.y:2399 preproc.y:2404 preproc.y:2527 preproc.y:4178
+#: preproc.y:4252 preproc.y:4843 preproc.y:5376 preproc.y:5714 preproc.y:6014
+#: preproc.y:7582 preproc.y:9183 preproc.y:9188 preproc.y:12139
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "неподдерживаемая функция будет передана серверу"
+
+#: preproc.y:2785
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL не реализовано"
+
+#: preproc.y:3484
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "операция COPY FROM STDIN не реализована"
+
+#: preproc.y:10230 preproc.y:17498
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr ""
+"в режиме INFORMIX нельзя использовать \"database\" в качестве имени курсора"
+
+#: preproc.y:10237 preproc.y:17508
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr ""
+"использование переменной \"%s\" в разных операторах DECLARE не поддерживается"
+
+#: preproc.y:10239 preproc.y:17510
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "курсор \"%s\" уже определён"
+
+#: preproc.y:10713
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "не поддерживаемое более предложение LIMIT #,# передано на сервер"
+
+#: preproc.y:11046 preproc.y:11053
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "подзапрос во FROM должен иметь псевдоним"
+
+#: preproc.y:17190 preproc.y:17197
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "в CREATE TABLE AS нельзя указать INTO"
+
+#: preproc.y:17233
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "ожидался знак \"@\", но на этом месте \"%s\""
+
+#: preproc.y:17245
+#, c-format
+msgid ""
+"only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are "
+"supported"
+msgstr ""
+"поддерживаются только протоколы \"tcp\" и \"unix\", а тип базы данных - "
+"\"postgresql\""
+
+#: preproc.y:17248
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "ожидалось \"://\", но на этом месте \"%s\""
+
+#: preproc.y:17253
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Unix-сокеты работают только с \"localhost\", но не с адресом \"%s\""
+
+#: preproc.y:17279
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "ожидался тип \"postgresql\", но на этом месте \"%s\""
+
+#: preproc.y:17282
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "неверный тип подключения: %s"
+
+#: preproc.y:17291
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "ожидалось \"@\" или \"://\", но на этом месте \"%s\""
+
+#: preproc.y:17366 preproc.y:17384
+#, c-format
+msgid "invalid data type"
+msgstr "неверный тип данных"
+
+#: preproc.y:17395 preproc.y:17412
+#, c-format
+msgid "incomplete statement"
+msgstr "неполный оператор"
+
+#: preproc.y:17398 preproc.y:17415
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "нераспознанное ключевое слово \"%s\""
+
+#: preproc.y:17460
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "имя \"%s\" уже объявлено"
+
+#: preproc.y:17728
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr ""
+"точность/масштаб можно указать только для типов данных numeric и decimal"
+
+#: preproc.y:17740
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "определение интервала здесь не допускается"
+
+#: preproc.y:17900 preproc.y:17952
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "слишком много уровней в определении вложенной структуры/объединения"
+
+#: preproc.y:18075
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "указатели на varchar не реализованы"
+
+#: preproc.y:18526
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "команда EXEC SQL VAR не может включать инициализатор"
+
+#: preproc.y:18843
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "массивы индикаторов на входе недопустимы"
+
+#: preproc.y:19030
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "недопустимый оператор в определении переменной"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:19071
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s (примерное положение: \"%s\")"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "нехватка памяти"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "нераспознанный код типа переменной %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "переменная \"%s\" скрыта локальной переменной другого типа"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "переменная \"%s\" скрыта локальной переменной"
+
+#: type.c:277
+#, c-format
+msgid ""
+"indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "переменная-индикатор \"%s\" скрыта локальной переменной другого типа"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "переменная-индикатор \"%s\" скрыта локальной переменной"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "индикатор для массива/указателя должен быть массивом/указателем"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "вложенные массивы не поддерживаются (за исключением строк)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "индикатор структуры должен быть структурой"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "индикатор простого типа должен быть простым"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "в структуре индикаторе \"%s\" слишком мало членов"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "в структуре индикаторе \"%s\" слишком много членов"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "нераспознанный код элемента дескриптора %d"
+
+#: variable.c:89 variable.c:115
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "неправильно оформленная переменная \"%s\""
+
+#: variable.c:138
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "переменная \"%s\" - не указатель"
+
+#: variable.c:141 variable.c:166
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "переменная \"%s\" - не указатель на структуру или объединение"
+
+#: variable.c:153
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "переменная \"%s\" - не структура и не объединение"
+
+#: variable.c:163
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "переменная \"%s\" - не массив"
+
+#: variable.c:232 variable.c:254
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "переменная \"%s\" не объявлена"
+
+#: variable.c:493
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "переменная-индикатор должна быть целочисленной"
+
+#: variable.c:505
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "нераспознанное имя типа данных \"%s\""
+
+#: variable.c:516 variable.c:524 variable.c:541 variable.c:544
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "многомерные массивы не поддерживаются"
+
+#: variable.c:533
+#, c-format
+msgid ""
+"multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural ""
+"multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] ""
+"многоуровневые указатели (больше 2 уровней) не поддерживаются, обнаружен %d "
+"уровень"
+msgstr[1] ""
+"многоуровневые указатели (больше 2 уровней) не поддерживаются, обнаружено %d "
+"уровня"
+msgstr[2] ""
+"многоуровневые указатели (больше 2 уровней) не поддерживаются, обнаружено %d "
+"уровней"
+
+#: variable.c:538
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "для этого типа данных указатели на указатели не поддерживаются"
+
+#: variable.c:558
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "многомерные массивы структур не поддерживаются"
+
+#~ msgid "using unsupported DESCRIBE statement"
+#~ msgstr "используется неподдерживаемый оператор DESCRIBE"
+
+#~ msgid ""
+#~ "\n"
+#~ "Report bugs to <pgsql-bugs@lists.postgresql.org>.\n"
+#~ msgstr ""
+#~ "\n"
+#~ "Об ошибках сообщайте по адресу <pgsql-bugs@lists.postgresql.org>.\n"
+
+#~ msgid "declared name \"%s\" is already defined"
+#~ msgstr "объявленное имя \"%s\" уже определено"
+
+#~ msgid "COPY FROM STDOUT is not possible"
+#~ msgstr "операция COPY FROM STDOUT невозможна"
+
+#~ msgid "COPY TO STDIN is not possible"
+#~ msgstr "операция COPY TO STDIN невозможна"
diff --git a/src/interfaces/ecpg/preproc/po/sv.po b/src/interfaces/ecpg/preproc/po/sv.po
new file mode 100644
index 0000000..3b8d67c
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/sv.po
@@ -0,0 +1,709 @@
+# SWEDISHE message translation file for ecpg
+# Copyright (C) 2017 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# Dennis Björklund <db@zigo.dhs.org>, 2017, 2018, 2019, 2020, 2021, 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 15\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-04-11 09:09+0000\n"
+"PO-Revision-Date: 2022-04-11 14:39+0200\n"
+"Last-Translator: Dennis Björklund <db@zigo.dhs.org>\n"
+"Language-Team: Swedish <pgsql-translators@postgresql.org>\n"
+"Language: sv\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "variabel \"%s\" måste ha en numerisk typ"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "deskriptor %s kopplad till anslutning %s finns inte"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "deskriptor %s kopplad till standardanslutning finns inte"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "deskriptor-header-post \"%d\" finns inte"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable är alltid 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member är alltid 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "deskriptor-post \"%s\" är inte implementerad"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "deskriptor-post \"%s\" kan inte sättas"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s är PostgreSQLs inbäddade SQL-preprocessor för C-program.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Användning:\n"
+" %s [FLAGGA]... FIL...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Flaggor:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c generera automatiskt C-kod från inbäddad SQL-kod;\n"
+" detta påverkar EXEC SQL TYPE\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C LÄGE sätt kompabilitetsläge; LÄGE kan vara en av\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d generera parser-debug-utmatning\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL definiera SYMBOL\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h parsa en header-fil, denna flagga inkluderar flaggan \"-c\"\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i parsa system-include-filer dessutom\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I KATALOG sök i KATALOG efter include-filer\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o UTFIL skriv resultat till UTFIL\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r FLAGGA ange runtime-beteende; FLAGGA kan vara en av:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression kör i regressions-test-läge\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t slå på auto-commit av transaktioner\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version visa versionsinformation, avsluta sedan\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help visa denna hjälp, avsluta sedan\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Om ingen utdatafil anges så skapas namnet genom att lägga till .c till\n"
+"indatafilnamnet, detta efter att .pgc strippats bort om det var med.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"Rapportera fel till <%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "hemsida för %s: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: kunde inte hitta min egna körbara fils sökväg\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: kunde inte öppna fil \"%s\": %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Försök med \"%s --help\" för mer information.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: parser-debug-stöd (-d) är inte tillgängligt\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, PostgreSQLs inbäddade C-preprocessor, version %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... sökning startar här:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "slut på söklista\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: inga indatafiler angivna\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "markören \"%s\" har deklarerats men inte öppnats"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "kunde inte ta bort utdatafil \"%s\"\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "ej avslutad /*-kommentar"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "ej avslutad bitsträngslitteral"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "ej avslutad hexadecimal stränglitteral"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "ogiltig bit-sträng-literal"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "ogiltig hexdecimal sträng-literal"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "tidigare state i xqs som ej kan hanteras\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "icketerminerad citerad sträng"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "icke terminerad dollarciterad sträng"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "noll-längds avdelad identifierare"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "ej avslutad citerad identifierare"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "efterföljande skräp efter parameter"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "efterföljande skräp efter numerisk literal"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "nästlade /* ... */-kommentarer"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "saknar identifierare i EXEC SQL UNDEF-kommando"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "för många nästlade EXEC SQL IFDEF-villkor"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "saknar matchande \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "saknar \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "mer än en EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "ej matchad EXEC SQL ENDIF"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "saknar identifierare i EXEC SQL IFDEF-kommando"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "saknar identifierare i EXEC SQL DEFINE-kommando"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "syntaxfel i EXEC SQL INCLUDE-kommando"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "internt fel: state som ej skall kunna nås; vänligen rapportera detta till <%s>"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Fel: include-sökväg \"%s/%s\" är för lång på rad %d, hoppar över\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "kunde inte öppna inkludefil \"%s\" på rad %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "syntaxfel"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "VARNING: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "FEL: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "markör \"%s\" existerar inte"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "initialiserare tillåts inte i typdefinition"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "typnamn \"string\" är reserverat i Informix-läge"
+
+#: preproc.y:552 preproc.y:19317
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "typen \"%s\" är redan definierad"
+
+#: preproc.y:577 preproc.y:19952 preproc.y:20277 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "multidimensionella array:er för enkla datatyper stöds inte"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "anslutning %s överskriven med %s av DECLARE-sats %s"
+
+#: preproc.y:1872
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "AT-flaggan tillåts inte i CLOSE DATABASE-sats"
+
+#: preproc.y:2122
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "AT-flaggan tillåts inte i CONNECT-sats"
+
+#: preproc.y:2162
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "AT-flaggan tillåts inte i DISCONNECT-sats"
+
+#: preproc.y:2217
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "AT-flaggan tillåts inte i SET CONNECTION-sats"
+
+#: preproc.y:2239
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "AT-flaggan tillåts inte i TYPE-sats"
+
+#: preproc.y:2248
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "AT-flaggan tillåts inte i VAR-sats"
+
+#: preproc.y:2255
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "AT-flaggan tillåts inte i WHENEVER-sats"
+
+#: preproc.y:2332 preproc.y:2504 preproc.y:2509 preproc.y:2632 preproc.y:4283
+#: preproc.y:4357 preproc.y:4948 preproc.y:5481 preproc.y:5819 preproc.y:6119
+#: preproc.y:7687 preproc.y:9288 preproc.y:9293 preproc.y:12272
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "ej stödd funktion skickass till servern"
+
+#: preproc.y:2890
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL är inte implementerad"
+
+#: preproc.y:3589
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN är inte implementerad"
+
+#: preproc.y:10335 preproc.y:18892
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "\"database\" kan inte användas som markörsnamn i INFORMIX-läge"
+
+#: preproc.y:10342 preproc.y:18902
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "använda variabel \"%s\" i olika deklarationssatser stöds inte"
+
+#: preproc.y:10344 preproc.y:18904
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "markören \"%s\" är redan definierad"
+
+#: preproc.y:10818
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "ej längre stödd syntax LIMIT #,# har skickats till servern"
+
+#: preproc.y:11151 preproc.y:11158
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "subfråga i FROM måste ha ett alias"
+
+#: preproc.y:18584 preproc.y:18591
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS kan inte ange INTO"
+
+#: preproc.y:18627
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "förväntade \"@\", hittade \"%s\""
+
+#: preproc.y:18639
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "bara protokoll \"tcp\" och \"unix\" samt databastyp \"postgresql\" stöds"
+
+#: preproc.y:18642
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "förväntade \"://\", hittade \"%s\""
+
+#: preproc.y:18647
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Unix-domän-socket fungerart bara på \"localhost\" men inte på \"%s\""
+
+#: preproc.y:18673
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "förväntade \"postgresql\", hittade \"%s\""
+
+#: preproc.y:18676
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "ogiltig anslutningstyp: %s"
+
+#: preproc.y:18685
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "förväntade \"@\" eller \"://\", hittade \"%s\""
+
+#: preproc.y:18760 preproc.y:18778
+#, c-format
+msgid "invalid data type"
+msgstr "ogiltig datatyp"
+
+#: preproc.y:18789 preproc.y:18806
+#, c-format
+msgid "incomplete statement"
+msgstr "ofullständig sats"
+
+#: preproc.y:18792 preproc.y:18809
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "okänd symbol \"%s\""
+
+#: preproc.y:18854
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "namnet \"%s\" är redan deklarerat"
+
+#: preproc.y:19120
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "bara datatyperna numeric och decimal har precision/skala-argument"
+
+#: preproc.y:19132
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "intervallspecifikation tillåts inte här"
+
+#: preproc.y:19292 preproc.y:19344
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "för många nästlade nivåer i struktur/union-definition"
+
+#: preproc.y:19467
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "pekare till varchar är inte implementerat"
+
+#: preproc.y:19918
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "initialiserare tillåts inte i EXEC SQL VAR-kommando"
+
+#: preproc.y:20235
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "array:er av indikatorer tillåts inte vid indata"
+
+#: preproc.y:20422
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "operator tillåts inte i variabeldefinition"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:20463
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s vid eller nära \"%s\""
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "slut på minne"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "okänd variabeltypkod %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "variabel \"%s\" döljs av en lokal variabel av annan typ"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "variabel \"%s\" döljs av en lokal variabel"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "indikatorvariabel \"%s\" döljs av en lokal variabel av annan typ"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "indikatorvariabel \"%s\" döljs av en lokal variabel"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "indikator för array/pekare måste vara en array/pekare"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "nästlade array:er stöds inte (förutom strängar)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "indikator för en struktur måste vara en struktur"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "indikator för enkla datatyper måste vara enkel"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "indikatorstruktur \"%s\" har för få medlemmar"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "indikatorstruktur \"%s\" har för många medlemmar"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "okänd deskriptor-post-kod %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "inkorrekt formatterad variabel \"%s\""
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "variabel \"%s\" är inte en pekare"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "variabel \"%s\" är inte en pekare till en struktur eller union"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "variabel \"%s\" är varken en struktur eller en union"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "variabel \"%s\" är inte en array"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "variabel \"%s\" är inte deklarerad"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "indikatorvariabel måste ha en heltalstyp"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "okänt datatypsnamn \"%s\""
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "multidimensionella array:er stöds inte"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "multinivåpekare (mer än 2 nivåer) stöds inte; hittade %d nivå"
+msgstr[1] "multinivåpekare (mer än 2 nivåer) stöds inte; hittade %d nivåer"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "pekare till pekare stöds inte för denna datatyp"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "multidimensionella array:er av strukturer stöds inte"
diff --git a/src/interfaces/ecpg/preproc/po/tr.po b/src/interfaces/ecpg/preproc/po/tr.po
new file mode 100644
index 0000000..dc19759
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/tr.po
@@ -0,0 +1,699 @@
+# LANGUAGE message translation file for ecpg
+# Copyright (C) 2009 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+# Abdullah GÜLNER <agulner@gmail.com>, 2018.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 8.4\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2019-04-26 13:39+0000\n"
+"PO-Revision-Date: 2021-09-16 09:37+0200\n"
+"Last-Translator: Abdullah GÜLNER <agulner@gmail.com>\n"
+"Language-Team: Turkish <ceviri@postgresql.org.tr>\n"
+"Language: tr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Poedit 1.8.7.1\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "\"%s\" değişkeninin sayısal veri tipi olmalı"
+
+#: descriptor.c:124 descriptor.c:146
+#, c-format
+msgid "descriptor \"%s\" does not exist"
+msgstr "\"%s\" açıklayıcısı mevcut değil"
+
+#: descriptor.c:161 descriptor.c:213
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "\"%d\" açıklayıcı başlık maddesi mevcut değil"
+
+#: descriptor.c:183
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable her zaman 1'dir"
+
+#: descriptor.c:186
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member her zaman 0'dır."
+
+#: descriptor.c:280
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "\"%s\" açıklayıcı öğesi kodlanmamıştır"
+
+#: descriptor.c:290
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "\"%s\" açıklayıcı öğesi ayarlanamaz"
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s C programları için PostgreSQL'e gömüşü SQL önişlemcisidir.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Kullanımı:\n"
+" %s [SEÇENEK]... DOSYA...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Seçenekler:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c gömülü SQL kodundan otomatik olarak C kodu üret;\n"
+" bu EXEC SQL TYPE'ı etkiler\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MOD uyumluluk modunu ayarla; MOD aşağıdakilerden birisi olabilir\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d ayrıştırıcı hata ayıklama çıktısını oluştur\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SEMBOL SEMBOLü tanımla\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h başlık dosyasını ayrıştır; bu seçenek \"-c\" seçeneğini içerir\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i sistem include dosyalarını da ayrıştırl\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DİZİN dosyaları içermek için DİZİN dizinini araştır\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o ÇIKTI DOSYASI sonucu ÇIKTI DOSYASIna yaz\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r SEÇENEK çalışma zamanı davranışını belirt; SEÇENEK şunlardan birisi olabilir:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression regression testi modunda çalış\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t transactionların otomatik commit olması özelliğini aç\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version sürüm bilgisini göster, sonra çık\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help bu yardımı göster, sonra çık\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Eğer çıktı dosyası belirtilmediyse, dosyanın adı eğer sonunda .pgc varsa\n"
+"kaldırıldıktan sonra girdi dosyasının sonuna .c eklenerek oluşturulur.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <pgsql-bugs@lists.postgresql.org>.\n"
+msgstr ""
+"\n"
+"Hataları <pgsql-bugs@lists.postgresql.org> adresine bildirebilirsiniz.\n"
+
+#: ecpg.c:182
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: kendi çalıştırılabilir dosyamın yolunu bulamadım\n"
+
+#: ecpg.c:217 ecpg.c:374 ecpg.c:385
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: \"%s\" dosyası açılamadı: %s\n"
+
+#: ecpg.c:260 ecpg.c:273 ecpg.c:289 ecpg.c:315
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Daha fazla bilgi için \"%s --help\" yazın\n"
+
+#: ecpg.c:284
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: ayrıştırıcı hata ayıklama desteği (-d) yok\n"
+
+#: ecpg.c:303
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, PostgreSQL gömülü C önişlemcisi, %s sürümü\n"
+
+#: ecpg.c:305
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... araması burada başlıyor:\n"
+
+#: ecpg.c:308
+#, c-format
+msgid "end of search list\n"
+msgstr "arama listesinin sonu\n"
+
+#: ecpg.c:314
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: girdi dosyası belirtilmedi\n"
+
+#: ecpg.c:497
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "\"%s\" imleci tanımlanmış ama açılmamış"
+
+#: ecpg.c:510 preproc.y:129
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "\"%s\" çıktı dosyası kaldırılamadı\n"
+
+#: pgc.l:472
+#, c-format
+msgid "unterminated /* comment"
+msgstr "/* açıklama sonlandırılmamış"
+
+#: pgc.l:490
+#, c-format
+msgid "invalid bit string literal"
+msgstr "geçersiz bit dizini bilgisi"
+
+#: pgc.l:502
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "sonuçlandırılmamış bit string literal"
+
+#: pgc.l:518
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "sonuçlandırılmamış hexadecimal string literal"
+
+#: pgc.l:614 pgc.l:718
+#, c-format
+msgid "unterminated quoted string"
+msgstr "sonuçlandırılmamış tırnakla sınırlandırılmış satır"
+
+#: pgc.l:665
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "sonlandırılmamış dolar işaretiyle sınırlandırılmış satır"
+
+#: pgc.l:684 pgc.l:697
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "sınırlandırılmış tanım sıfır uzunluklu"
+
+#: pgc.l:709
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "sonuçlandırılmamış tırnakla sınırlandırılmış tanım"
+
+#: pgc.l:1040
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "iç içe /* ... */ açıklamalar (comment)"
+
+#: pgc.l:1133
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "EXEC SQL UNDEF komutunda eksik tanımlayıcı"
+
+#: pgc.l:1179 pgc.l:1193
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "eksik \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\" eşleşmesi"
+
+#: pgc.l:1182 pgc.l:1195 pgc.l:1371
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "eksik \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1211 pgc.l:1230
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "birden fazla EXEC SQL ELSE"
+
+#: pgc.l:1252 pgc.l:1266
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "eşlenmeyen EXEC SQL ENDIF"
+
+#: pgc.l:1286
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "Çok fazla yuvalanmış EXEC SQL IFDEF koşulu"
+
+#: pgc.l:1319
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "EXEC SQL IFDEF komutunda eksik belirteç"
+
+#: pgc.l:1328
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "EXEC SQL DEFINE komutunda eksik tanımlayıcı"
+
+#: pgc.l:1361
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "EXEC SQL INCLUDE komutunda sözdizimi hatası"
+
+#: pgc.l:1411
+#, c-format
+msgid "internal error: unreachable state; please report this to <pgsql-bugs@lists.postgresql.org>"
+msgstr "dahili hata: erişilemeyen durum: bunu lütfen <pgsql-bugs@lists.postgresql.org> adresine bildiriniz."
+
+#: pgc.l:1562
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Hata: \"%s/%s\" include yolu çok uzun, satır numarası %d; atlanıyor\n"
+
+#: pgc.l:1585
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr " \"%s\" include dosyası %d. satırda açılamadı"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "söz dizim hatası "
+
+#: preproc.y:83
+#, c-format
+msgid "WARNING: "
+msgstr "UYARI:"
+
+#: preproc.y:86
+#, c-format
+msgid "ERROR: "
+msgstr "HATA:"
+
+#: preproc.y:510
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "\"%s\" imleci mevcut değil"
+
+#: preproc.y:539
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "tip tanımlamasında ilklendiriciye izin verilmez"
+
+#: preproc.y:541
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "\"string\" tip adı Informix modunda ayrılmıştır"
+
+#: preproc.y:548 preproc.y:15828
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "\"%s\" tipi zaten tanımlanmış"
+
+#: preproc.y:573 preproc.y:16499 preproc.y:16824 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "basit veri tipleri için çok boyutlu diziler desteklenmemektedir."
+
+#: preproc.y:1896
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "AT seçeneğine CONNECT ifadesinde izin verilmemektedir"
+
+#: preproc.y:1934
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "AT seçeneğine DISCONNECT ifadesinde izin verilmemektedir"
+
+#: preproc.y:1996
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "AT seçeneğine SET CONNECTION ifadesinde izin verilmemektedir"
+
+#: preproc.y:2018
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "AT seçeneğine TYPE ifadesinde izin verilmemektedir"
+
+#: preproc.y:2027
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "AT seçeneğine VAR ifadesinde izin verilmemektedir"
+
+#: preproc.y:2034
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "AT seçeneğine WHENEVER ifadesinde izin verilmemektedir"
+
+#: preproc.y:2111 preproc.y:2283 preproc.y:2288 preproc.y:2411 preproc.y:4004
+#: preproc.y:5593 preproc.y:5893 preproc.y:7521 preproc.y:9033 preproc.y:9038
+#: preproc.y:11831
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "desteklenmeyen özellik sunucuya aktarılacaktır"
+
+#: preproc.y:2669
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL kodlanmamıştır"
+
+#: preproc.y:3327
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "AT seçeneğine CLOSE DATABASE ifadesinde izin verilmemektedir"
+
+#: preproc.y:3352
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN kodlanmamıştır"
+
+#: preproc.y:9977 preproc.y:15411
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "\"%s\" değşkenini farklı declare ifadeleri arasında kullanmak desteklenmemektedir"
+
+#: preproc.y:9979 preproc.y:15413
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "\"%s\" imleci zaten tanımlanmış"
+
+#: preproc.y:10420
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "artık desteklenmeyen LIMIT #,# sözdizimi sunucuya aktarıldı"
+
+#: preproc.y:10745 preproc.y:10752
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "FROM öğesindeki subquery bir aliası almalıdır"
+
+#: preproc.y:15102 preproc.y:15109
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS işleminde INTO kullanılamaz"
+
+#: preproc.y:15145
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "\"@\" bekleniyordu; \"%s\" bulundu"
+
+#: preproc.y:15157
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "sadece \"tcp\" ve \"unix\" protokolleri ile \"postgresql\" veritabanı tipi desteklenmektedir."
+
+#: preproc.y:15160
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "\"://\" bekleniyordu; \"%s\" bulundu"
+
+#: preproc.y:15165
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Unix-domain soketleri sadece \"localhost\" üzerinde çalışabilir; ancak \"%s\" üzerinde çalışamaz."
+
+#: preproc.y:15191
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "\"postgresql\" bekleniyordu; \"%s\" bulundu"
+
+#: preproc.y:15194
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "Geçersiz bağlantı tipi: %s"
+
+#: preproc.y:15203
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "\"@\" or \"://\" bekleniyordu; \"%s\" bulundu"
+
+#: preproc.y:15278 preproc.y:15296
+#, c-format
+msgid "invalid data type"
+msgstr "geçersiz veri tipi"
+
+#: preproc.y:15307 preproc.y:15324
+#, c-format
+msgid "incomplete statement"
+msgstr "eksik ifade"
+
+#: preproc.y:15310 preproc.y:15327
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "tanımlanmayan imge \"%s\""
+
+#: preproc.y:15373
+#, c-format
+msgid "declared name %s is already defined"
+msgstr "belirtilen isim, %s zaten tanımlanmış"
+
+#: preproc.y:15631
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "sadece sayısal ve ondalıklı verip tiplerinin ondalık bilgisi vardır"
+
+#: preproc.y:15643
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "aralık belirtimine burada izin verilmiyor"
+
+#: preproc.y:15803 preproc.y:15855
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "içiçe gelmiş yapı/birleşme tanımında çok fazla seviye"
+
+#: preproc.y:16006
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "varcharlara işaretçiler henüz uyarlanmadı"
+
+#: preproc.y:16193 preproc.y:16218
+#, c-format
+msgid "using unsupported DESCRIBE statement"
+msgstr "desteklenmeyen DESCRIBE ifadesi kullanılıyor"
+
+#: preproc.y:16465
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "EXEC SQL VAR konutunda ilklendiriciye izin verilmemektedir"
+
+#: preproc.y:16782
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "belirticilerin dizilerine girdide izin verilmez"
+
+#: preproc.y:17003
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "değişken tanımlamasında operatöre izin verilmez"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:17044
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "\"%2$s\" yerinde %1$s"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "yetersiz bellek"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "tanımsız değişken tipi kodu %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "\"%s\" değişkeni farklı tipteki yerel bir değişken tarafından gizlenmiştir"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "\"%s\" değişkeni yerel bir değişken tarafından gizlenmiştir"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "\"%s\" belirteç değişkeni farklı tipteki yerel bir değişken tarafından gizlenmiştir"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "\"%s\" gösterge değişkeni yerel bir değişken tarafından gizlenmektedir"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "array/pointer için gösterici array/pointer olmalıdır"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "içiçe geçmiş diziler, dizgiler haricinde desteklenmez"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "struct için gösterici (indicator) yine struct olmalı"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "basit veri tipinin göstergesi basit olmalı"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "\"%s\" gösterge yapısının (struct) çok az üyesi var"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "\"%s\" gösterge yapısının (struct) çok fazla üyesi var"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "tanımlanmayan açıklayıcı madde kodu %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "doğru şekilde oluşturulmamış \"%s\" değişkeni"
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "\"%s\" değişkeni bir pointer değil"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "\"%s\" değişkeni structure ya da union'a pointer değil"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "\"%s\" değişkeni structure ya da union değil"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "\"%s\" değişkeni bir dizi değil"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "\"%s\" değişkeni bildirilmemiş"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "belirteç değişkeni tamsayı veri tipine sahip olmalı"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "tanımlanmayan veri tipi adı \"%s\""
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "çok boyutlu diziler desteklenmiyor"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "çoklu seviye işaretçileri (İkiden fazla) desteklenmiyor: %d seviye bulundu"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "Bu veri tipi için işaretçiden işaretçiye desteklenmemektedir"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "yapılar için çok boyutlu diziler desteklenmemektedir"
+
+#~ msgid " --help show this help, then exit\n"
+#~ msgstr " --help bu yardımı göster ve çık\n"
+
+#~ msgid " --version output version information, then exit\n"
+#~ msgstr " --version sürüm numarasını yaz ve çık\n"
+
+#~ msgid "AT option not allowed in DEALLOCATE statement"
+#~ msgstr "AT seçeneğine DEALLOCATE ifadesinde izin verilmemektedir"
+
+#~ msgid "COPY TO STDIN is not possible"
+#~ msgstr "COPY TO STDIN mümkün değildir"
+
+#~ msgid "COPY FROM STDOUT is not possible"
+#~ msgstr "COPY FROM STDOUT mümkün değildir"
+
+#~ msgid "constraint declared INITIALLY DEFERRED must be DEFERRABLE"
+#~ msgstr "INITIALLY DEFERRED olarak tanımlanan kısıtlayıcı DEFERRABLE özelliğine sahip olmalıdır"
+
+#~ msgid "OLD used in query that is not in a rule"
+#~ msgstr "rule olmayan sorgusunda OLD kullanıldı"
+
+#~ msgid "NEW used in query that is not in a rule"
+#~ msgstr "rule olmayan sorgusunda NEW kullanıldı"
diff --git a/src/interfaces/ecpg/preproc/po/uk.po b/src/interfaces/ecpg/preproc/po/uk.po
new file mode 100644
index 0000000..f5c6424
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/uk.po
@@ -0,0 +1,693 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: postgresql\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2022-08-12 10:40+0000\n"
+"PO-Revision-Date: 2022-09-13 11:52\n"
+"Last-Translator: \n"
+"Language-Team: Ukrainian\n"
+"Language: uk_UA\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
+"X-Crowdin-Project: postgresql\n"
+"X-Crowdin-Project-ID: 324573\n"
+"X-Crowdin-Language: uk\n"
+"X-Crowdin-File: /REL_15_STABLE/ecpg.pot\n"
+"X-Crowdin-File-ID: 906\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "змінна \"%s\" повинна мати числовий тип"
+
+#: descriptor.c:125 descriptor.c:156
+#, c-format
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "дескриптор %s, прив'язаний до підключення %s, не існує"
+
+#: descriptor.c:127 descriptor.c:158
+#, c-format
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "дескриптор %s, прив'язаний до підключення за замовчуванням, не існує"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "елемент заголовка дескриптору \"%d\" не існує"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "nullable завжди 1"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member завжди 0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "елемент дескриптору \"%s\" не реалізовано"
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "елемент дескриптору \"%s\" не можна встановити"
+
+#: ecpg.c:36
+#, c-format
+msgid "%s is the PostgreSQL embedded SQL preprocessor for C programs.\n\n"
+msgstr "%s - це препроцесор SQL-вставок PostgreSQL для C програм.\n\n"
+
+#: ecpg.c:38
+#, c-format
+msgid "Usage:\n"
+" %s [OPTION]... FILE...\n\n"
+msgstr "Використання: \n"
+" %s [OPTION]... FILE...\n\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "Параметри:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid " -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr " -c автоматично генерувати C-код з вбудованого SQL-коду;\n"
+" це стосується EXEC SQL TYPE\n"
+
+#: ecpg.c:44
+#, c-format
+msgid " -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr " -C MODE встановити режим сумісності; допустимий режим може бути одним з:\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d генерувати налагоджувальні повідомлення при аналізі\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL визначити СИМВОЛ\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h аналізувати файл заголовку, цей параметр включає параметр \"-c\"\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i аналізувати системні файли include\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DIRECTORY шукати файли для включення у зазначенному каталозі\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o OUTFILE записати результат до OUTFILE\n"
+
+#: ecpg.c:54
+#, c-format
+msgid " -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr " -r OPTION визначити поведінку під час виконання; допустимий парамтер може бути:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression запустити в режимі тестування регресії\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t увімкнути автопідтвердження транзакцій\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version показати версію, потім вийти\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help показати цю довідку, потім вийти\n"
+
+#: ecpg.c:60
+#, c-format
+msgid "\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr "\n"
+"Якщо файл виводу не вказано, ім'я файла формується додаванням .c до введеного імені файла, після обрізання розширення .pgc, якщо присутнє.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid "\n"
+"Report bugs to <%s>.\n"
+msgstr "\n"
+"Повідомляти про помилки на <%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "Домашня сторінка %s: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: не вдалося знайти свій власний шлях для виконання\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: не вдалося відкрити файл \"%s\": %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Спробуйте \"%s --help\" для додаткової інформації.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: налагоджувальні повідомлення під час аналізу (-d) не підтримуються\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, вбудований препроцесор PostgreSQL, версія %s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... пошук починається тут:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "кінець списку пошуку\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: не вказано вхідні файли\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "курсор \"%s\" був оголошений, але не відкритий"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "не вдалося видалити файл виводу \"%s\"\n"
+
+#: pgc.l:508
+#, c-format
+msgid "unterminated /* comment"
+msgstr "незавершений коментар /*"
+
+#: pgc.l:525
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "незавершений бітовий рядок"
+
+#: pgc.l:533
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "незавершений шістнадцятковий рядок"
+
+#: pgc.l:608
+#, c-format
+msgid "invalid bit string literal"
+msgstr "неприпустимий літерал бітового рядка"
+
+#: pgc.l:613
+#, c-format
+msgid "invalid hexadecimal string literal"
+msgstr "неприпустимий шістнадцятковий рядок"
+
+#: pgc.l:631
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "необроблений попередній стан у xqs\n"
+
+#: pgc.l:657 pgc.l:766
+#, c-format
+msgid "unterminated quoted string"
+msgstr "незавершений рядок в лапках"
+
+#: pgc.l:708
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "незавершений рядок з $"
+
+#: pgc.l:726 pgc.l:746
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "пустий ідентифікатор із роздільниками"
+
+#: pgc.l:757
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "незавершений ідентифікатор в лапках"
+
+#: pgc.l:926
+#, c-format
+msgid "trailing junk after parameter"
+msgstr "сміття після параметру"
+
+#: pgc.l:968 pgc.l:971 pgc.l:974
+#, c-format
+msgid "trailing junk after numeric literal"
+msgstr "сміття після числового літерала"
+
+#: pgc.l:1100
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "вкладені /* ... */ коменарі"
+
+#: pgc.l:1193
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "відсутній ідентифікатор у команді EXEC SQL UNDEF"
+
+#: pgc.l:1211 pgc.l:1224 pgc.l:1240 pgc.l:1253
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "забагато вкладених умов EXEC SQL IFDEF"
+
+#: pgc.l:1269 pgc.l:1280 pgc.l:1295 pgc.l:1317
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "немає відповідного \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:1271 pgc.l:1282 pgc.l:1463
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "відсутній \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1297 pgc.l:1319
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "більше ніж один EXEC SQL ELSE"
+
+#: pgc.l:1342 pgc.l:1356
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "невідповідний EXEC SQL ENDIF"
+
+#: pgc.l:1411
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "відсутній ідентифікатор у команді EXEC SQL IFDEF"
+
+#: pgc.l:1420
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "відсутній ідентифікатор у команді EXEC SQL DEFINE"
+
+#: pgc.l:1453
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "синтаксична помилка у команді EXEC SQL INCLUDE"
+
+#: pgc.l:1503
+#, c-format
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "внутрішня помилка: недосяжний стан; будь ласка, повідомте про це на <%s>"
+
+#: pgc.l:1655
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Помилка: шлях включення \"%s/%s\" занадто довгий у рядку %d, пропускається\n"
+
+#: pgc.l:1678
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "не вдалося відкрити файл включення \"%s\" у рядку %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "синтаксична помилка"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "ПОПЕРЕДЖЕННЯ: "
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "ПОМИЛКА: "
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "курсор \"%s\" не існує"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "ініціалізація заборонена у визначенні типу"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "ім’я типу \"string\" зарезервовано у режимі Informix"
+
+#: preproc.y:552 preproc.y:19354
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "тип \"%s\" вже визначений"
+
+#: preproc.y:577 preproc.y:19989 preproc.y:20314 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "багатовимірні масиви для простих типів даних не підтримуються"
+
+#: preproc.y:599
+#, c-format
+msgid "connection %s is overwritten with %s by DECLARE statement %s"
+msgstr "підключення %s було перезаписано з %s командою DECLARE %s"
+
+#: preproc.y:1872
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "Параметр AT не дозволений в інструкції CLOSE DATABASE"
+
+#: preproc.y:2122
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "Параметр AT не дозволений в інструкції CONNECT"
+
+#: preproc.y:2162
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "Параметр AT не дозволений в інструкції DISCONNECT"
+
+#: preproc.y:2217
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "Параметр AT не дозволений в інструкції SET CONNECTION"
+
+#: preproc.y:2239
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "Параметр AT не дозволений в інструкції TYPE"
+
+#: preproc.y:2248
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "Параметр AT не дозволений в інструкції VAR"
+
+#: preproc.y:2255
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "Параметр AT не дозволений в інструкції WHENEVER"
+
+#: preproc.y:2332 preproc.y:2504 preproc.y:2509 preproc.y:2632 preproc.y:4283
+#: preproc.y:4357 preproc.y:4948 preproc.y:5481 preproc.y:5819 preproc.y:6119
+#: preproc.y:7687 preproc.y:9288 preproc.y:9293 preproc.y:12272
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "непідтримувана функція буде передана до сервера"
+
+#: preproc.y:2890
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "SHOW ALL не реалізовано"
+
+#: preproc.y:3589
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "COPY FROM STDIN не реалізовано"
+
+#: preproc.y:10335 preproc.y:18892
+#, c-format
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "\"database\" не може використовуватись як назва курсора в режимі INFORMIX"
+
+#: preproc.y:10342 preproc.y:18902
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "використання змінної \"%s\" у різних інструкціях declare не підтримується"
+
+#: preproc.y:10344 preproc.y:18904
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "курсор \"%s\" вже визначено"
+
+#: preproc.y:10818
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "непідтримуваний синтаксис LIMIT #,# передано до сервера"
+
+#: preproc.y:11151 preproc.y:11158
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "підзапит в FROM повинен мати псевдонім"
+
+#: preproc.y:18584 preproc.y:18591
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS не може містити INTO"
+
+#: preproc.y:18627
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "очікувалося \"@\", знайдено \"%s\""
+
+#: preproc.y:18639
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "підтримуються лише протоколи \"tcp\" та \"unix\" і тип бази даних \"postgresql\""
+
+#: preproc.y:18642
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "очікувалося \"://\", знайдено \"%s\""
+
+#: preproc.y:18647
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Unix-сокети працюють лише з \"localhost\", але не з \"%s\""
+
+#: preproc.y:18673
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "очікувалось \"postgresql\", знайдено \"%s\""
+
+#: preproc.y:18676
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "неприпустимий тип підключення: %s"
+
+#: preproc.y:18685
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "очікувалось \"@\" або \"://\", знайдено \"%s\""
+
+#: preproc.y:18760 preproc.y:18778
+#, c-format
+msgid "invalid data type"
+msgstr "неприпустимий тип даних"
+
+#: preproc.y:18789 preproc.y:18806
+#, c-format
+msgid "incomplete statement"
+msgstr "неповний оператор"
+
+#: preproc.y:18792 preproc.y:18809
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "нерозпізнаний токен \"%s\""
+
+#: preproc.y:18854
+#, c-format
+msgid "name \"%s\" is already declared"
+msgstr "ім'я \"%s\" вже оголошена"
+
+#: preproc.y:19120
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "точність/масштаб можна вказати лише для типів даних numeric і decimal"
+
+#: preproc.y:19132
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "специфікація інтервалу тут не допускається"
+
+#: preproc.y:19329 preproc.y:19381
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "занадто багато рівнів у визначенні вкладеної структури/об'єднання"
+
+#: preproc.y:19504
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "вказівників на varchar не реалізовано"
+
+#: preproc.y:19955
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "команда EXEC SQL VAR не допускає ініціалізатор"
+
+#: preproc.y:20272
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "вхідні масиви індикаторів не допускаються"
+
+#: preproc.y:20459
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "у визначенні змінної оператор не допускається"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:20500
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s в або поблизу \"%s\""
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "недостатньо пам'яті"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "нерозпізнаний код типу змінної %d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "змінна \"%s\" прихована локальною змінною іншого типу"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "змінна \"%s\" прихована локальною змінною"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "змінна-індикатор \"%s\" прихована локальною змінною іншого типу"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "змінна-індикатор \"%s\" прихована локальною змінною"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "індикатор для масиву/вказівника повинен бути масивом/вказівником"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "вкладені масиви не підтримуються (окрім рядків)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "індикатор структури повинен бути структурою"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "індикатор для простого типу даних повинен бути простим"
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "індикатор структури \"%s\" має занадто мало елементів"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "індикатор структури \"%s\" має занадто багато елементів"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "нерозпізнаний код елементу дескриптора %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "неправильно створена змінна \"%s\""
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "змінна \"%s\" не є вказівником"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "змінна \"%s\" не є вказівником на структуру або об'єднання"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "змінна \"%s\" не є структурою або об'єднанням"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "змінна \"%s\" не є масивом"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "змінна \"%s\" не проголошена"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "змінна-індикатор повинна бути цілим числом"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "нерозпізнане ім'я типу даних \"%s\""
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "багатовимірні масиви не підтримуються"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "багаторівневі вказівники (більше 2 рівнів) не підтримуються; знайдено %d рівень"
+msgstr[1] "багаторівневі вказівники (більше 2 рівнів) не підтримуються; знайдено %d рівні"
+msgstr[2] "багаторівневі вказівники (більше 2 рівнів) не підтримуються; знайдено %d рівнів"
+msgstr[3] "багаторівневі вказівники (більше 2 рівнів) не підтримуються; знайдено %d рівень"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "для цього типу даних вказівники на вказівники не підтримуються"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "багатовимірні масиви структур не підтримуються"
+
diff --git a/src/interfaces/ecpg/preproc/po/vi.po b/src/interfaces/ecpg/preproc/po/vi.po
new file mode 100644
index 0000000..5c7c357
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/vi.po
@@ -0,0 +1,684 @@
+# LANGUAGE message translation file for ecpg
+# Copyright (C) 2018 PostgreSQL Global Development Group
+# This file is distributed under the same license as the ecpg (PostgreSQL) package.
+# FIRST AUTHOR <kakalot49@gmail.com>, 2018.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL) 11\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@postgresql.org\n"
+"POT-Creation-Date: 2018-04-22 12:08+0000\n"
+"PO-Revision-Date: 2018-05-04 22:20+0900\n"
+"Language-Team: <pgvn_translators@postgresql.vn>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Poedit 2.0.6\n"
+"Last-Translator: Dang Minh Huong <kakalot49@gmail.com>\n"
+"Language: vi_VN\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "biến \"%s\" phải là kiểu numeric"
+
+#: descriptor.c:124 descriptor.c:146
+#, c-format
+msgid "descriptor \"%s\" does not exist"
+msgstr "descriptor \"%s\" không tồn tại"
+
+#: descriptor.c:161 descriptor.c:213
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "descriptor header item \"%d\" không tồn tại"
+
+#: descriptor.c:183
+#, c-format
+msgid "nullable is always 1"
+msgstr "giá trị có thể là NULL luôn là 1"
+
+#: descriptor.c:186
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member luôn là 0"
+
+#: descriptor.c:280
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "descriptor item \"%s\" chưa được thực thi"
+
+#: descriptor.c:290
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "descriptor item \"%s\" không thể thiết lập được"
+
+#: ecpg.c:35
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s là tiền xử lý nhúng SQL của PostgreSQL cho ngôn ngữ C.\n"
+"\n"
+
+#: ecpg.c:37
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Cách sử dụng:\n"
+" %s [TÙY CHỌN]... TỆP...\n"
+"\n"
+
+#: ecpg.c:40
+#, c-format
+msgid "Options:\n"
+msgstr "Tùy chọn:\n"
+
+#: ecpg.c:41
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c tự động sinh mã C từ mã SQL nhúng;\n"
+" điều này ảnh hưởng tới EXEC SQL TYPE\n"
+
+#: ecpg.c:43
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MODE thiết lập chế độ tương thích; MODE có thể là \n"
+" \"INFORMIX\", \"INFORMIX_SE\" hoặc \"ORACLE\"\n"
+
+#: ecpg.c:46
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d xuất debug log cho trình phân tích cú pháp\n"
+
+#: ecpg.c:48
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL định nghĩa SYMBOL\n"
+
+#: ecpg.c:49
+#, c-format
+msgid ""
+" -h parse a header file, this option includes option \"-c\"\n"
+msgstr ""
+" -h phân tích cú pháp tệp header, tùy chọn này bao gồm \n"
+" cả tùy chọn \"-c\"\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i phân tích cả cú pháp của các tệp include files\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DIRECTORY tìm kiếm THƯ MỤC cho các include files\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o OUTFILE ghi kết quả ra OUTFILE\n"
+
+#: ecpg.c:53
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPTION chỉ định cách thức run-time; OPTION có thể là:\n"
+" \"no_indicator\", \"prepare\" hay \"questionmarks\"\n"
+
+#: ecpg.c:55
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression chạy trong chế độ regression test\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr ""
+" -t thiết lập autocommit sang on trong các transactions\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version xuât thông tin phiên bản, sau đó thoát\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help hiển thị nội dung hướng dẫn này, sau đó thoát\n"
+
+#: ecpg.c:59
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"Nếu tệp xuất ra (OUTFILE) không được chỉ định, tên của tệp .c sẽ được \n"
+"lấy từ tên tệp .pgc đầu vào sau khi đã bỏ đi phần mở rộng .pgc\n"
+
+#: ecpg.c:61
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <pgsql-bugs@postgresql.org>.\n"
+msgstr ""
+"\n"
+"Báo cáo lỗi tới <pgsql-bugs@postgresql.org>.\n"
+
+#: ecpg.c:139
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: không thể xác định ví trí đường dẫn để thực thi\n"
+
+#: ecpg.c:174 ecpg.c:331 ecpg.c:342
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: không thể mở file \"%s\": %s\n"
+
+#: ecpg.c:217 ecpg.c:230 ecpg.c:246 ecpg.c:272
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "Thử \"%s --help\" để biết thêm thông tin.\n"
+
+#: ecpg.c:241
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr ""
+"%s: chế độ hỗ trợ debug (-d) cho trình phân tích cú pháp chưa sẵn sàng\n"
+
+#: ecpg.c:260
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, tiền xử lý nhúng ngôn ngữ C cho PostgreSQL, phiên bản %s\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... tìm kiếm bắt đầu từ đây:\n"
+
+#: ecpg.c:265
+#, c-format
+msgid "end of search list\n"
+msgstr "cuối danh sách tìm kiếm\n"
+
+#: ecpg.c:271
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: không có tệp đầu vào nào được chỉ định\n"
+
+#: ecpg.c:465
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "con trỏ \"%s\" đã được định nghĩa nhưng chưa được open"
+
+#: ecpg.c:478 preproc.y:127
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "không thể xóa tệp đầu ra \"%s\"\n"
+
+#: pgc.l:435
+#, c-format
+msgid "unterminated /* comment"
+msgstr "dấu bình luận /* chưa được kết thúc"
+
+#: pgc.l:448
+#, c-format
+msgid "invalid bit string literal"
+msgstr "chuỗi ký tự bit không hợp lệ"
+
+#: pgc.l:457
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "chuỗi bít ký tự chưa hoàn chỉnh"
+
+#: pgc.l:473
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "chuỗi ký tự thập lục phân chưa hoàn chỉnh"
+
+#: pgc.l:551
+#, c-format
+msgid "unterminated quoted string"
+msgstr "chuỗi trích dẫn chưa hoàn chỉnh"
+
+#: pgc.l:609 pgc.l:622
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "ký tự phân cách có độ dài bằng 0"
+
+#: pgc.l:630
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "identifier trích dẫn chưa hoàn chỉnh"
+
+#: pgc.l:880
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "dấu bình luận /* ... */ lồng nhau"
+
+#: pgc.l:973
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "thiếu identifier trong câu lệnh EXEC SQL UNDEF"
+
+#: pgc.l:1019 pgc.l:1033
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "không khớp giữa \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:1022 pgc.l:1035 pgc.l:1211
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "thiếu câu lệnh \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1051 pgc.l:1070
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "có nhiều hơn một câu lệnh EXEC SQL ELSE"
+
+#: pgc.l:1092 pgc.l:1106
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "câu lệnh EXEC SQL ENDIF không khớp"
+
+#: pgc.l:1126
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "quá nhiều điều kiện lồng EXEC SQL IFDEF"
+
+#: pgc.l:1159
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "thiếu identifier trong câu lệnh EXEC SQL IFDEF"
+
+#: pgc.l:1168
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "thiếu identifier trong câu lệnh EXEC SQL DEFINE"
+
+#: pgc.l:1201
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "lỗi cú pháp trong câu lệnh EXEC SQL INCLUDE"
+
+#: pgc.l:1250
+#, c-format
+msgid ""
+"internal error: unreachable state; please report this to <pgsql-"
+"bugs@postgresql.org>"
+msgstr ""
+"lỗi nội bộ: trạng thái không thể truy cập; vui lòng báo cáo điều này với "
+"<pgsql-bugs@postgresql.org>"
+
+#: pgc.l:1379
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "Lỗi: đường dẫn include \"%s/%s\" quá dài trên dòng %d, bỏ qua\n"
+
+#: pgc.l:1402
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "không thể mở tệp include \"%s\" trên dòng %d"
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "lỗi cú pháp"
+
+#: preproc.y:81
+#, c-format
+msgid "WARNING: "
+msgstr "CẢNH BÁO: "
+
+#: preproc.y:84
+#, c-format
+msgid "ERROR: "
+msgstr "LỖI: "
+
+#: preproc.y:508
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "on trỏ \"%s\" không tồn tại"
+
+#: preproc.y:537
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "initializer không được cho phép trong định nghĩa kiểu"
+
+#: preproc.y:539
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "kiểu \"string\" được dành riêng trong chế độ Informix"
+
+#: preproc.y:546 preproc.y:15714
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "kiểu \"%s\" đã được định nghĩa"
+
+#: preproc.y:570 preproc.y:16372 preproc.y:16697 variable.c:620
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "mảng đa chiều cho các kiểu dữ liệu đơn giản không được hỗ trợ"
+
+#: preproc.y:1693
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "Tùy chọn AT không được phép trong câu lệnh CLOSE DATABASE"
+
+#: preproc.y:1902
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "Tùy chọn AT không được phép trong câu lệnh CONNECT"
+
+#: preproc.y:1936
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "Tùy chọn AT không được phép trong câu lệnh DISCONNECT"
+
+#: preproc.y:1991
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "Tùy chọn AT không được cho phép trong câu lệnh SET CONNECTION"
+
+#: preproc.y:2013
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "Tùy chọn AT không được phép trong câu lệnh TYPE"
+
+#: preproc.y:2022
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "Tùy chọn AT không được phép trong câu lệnh VAR"
+
+#: preproc.y:2029
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "Tùy chọn AT không được phép trong câu lệnh WHENEVER"
+
+#: preproc.y:2106 preproc.y:2278 preproc.y:2283 preproc.y:2399 preproc.y:4036
+#: preproc.y:5594 preproc.y:5603 preproc.y:5903 preproc.y:7502 preproc.y:8995
+#: preproc.y:9000 preproc.y:11782
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "tính năng không được hỗ trợ sẽ được chuyển đến server"
+
+#: preproc.y:2657
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "Lệnh SHOW ALL chưa được thực thi"
+
+#: preproc.y:3377
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "Lệnh COPY FROM STDIN chưa được thực thi"
+
+#: preproc.y:9948 preproc.y:15303
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr ""
+"sử dụng biến \"%s\" trong các câu lệnh khai báo khác nhau không được hỗ trợ"
+
+#: preproc.y:9950 preproc.y:15305
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "con trỏ \"%s\" đã được định nghĩa"
+
+#: preproc.y:10380
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "cú pháp không còn được hỗ trợ LIMIT #, # được chuyển đến server"
+
+#: preproc.y:10696 preproc.y:10703
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "truy vấn phụ trong FROM phải có bí danh"
+
+#: preproc.y:15033
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "Không thể sử dụng INTO trong câu lệnh CREATE TABLE AS"
+
+#: preproc.y:15069
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "kì vọng \"@\", tìm thấy \"%s\""
+
+#: preproc.y:15081
+#, c-format
+msgid ""
+"only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are "
+"supported"
+msgstr ""
+"chỉ các giao thức \"tcp\" và \"unix\" và kiểu cơ sở dữ liệu \"postgresql\" "
+"được hỗ trợ"
+
+#: preproc.y:15084
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "kỳ vọng \"://\", tìm thấy \"%s\""
+
+#: preproc.y:15089
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr ""
+"Unix-domain sockets chỉ hoạt động trên \"localhost\" nhưng không hoạt động "
+"trên \"%s\""
+
+#: preproc.y:15115
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "kỳ vọng \"postgresql\", tìm thấy \"%s\""
+
+#: preproc.y:15118
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "loại kết nối không hợp lệ: %s"
+
+#: preproc.y:15127
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "kỳ vọng \"@\" or \"://\", tìm được \"%s\""
+
+#: preproc.y:15202 preproc.y:15220
+#, c-format
+msgid "invalid data type"
+msgstr "kiểu dữ liệu không hợp lệ"
+
+#: preproc.y:15231 preproc.y:15248
+#, c-format
+msgid "incomplete statement"
+msgstr "câu lệnh chưa hoàn chỉnh"
+
+#: preproc.y:15234 preproc.y:15251
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "không nhận ra token \"%s\""
+
+#: preproc.y:15525
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "chỉ các kiểu dữ liệu numeric và decimal có đối số precision và scale"
+
+#: preproc.y:15537
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "chỉ định interval không được phép ở đây"
+
+#: preproc.y:15689 preproc.y:15741
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "quá nhiều cấp độ lồng nhau trong định nghĩa structure/union"
+
+#: preproc.y:15880
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "con trỏ đến kiểu varchar chưa được thực thi"
+
+#: preproc.y:16067 preproc.y:16092
+#, c-format
+msgid "using unsupported DESCRIBE statement"
+msgstr "sử dụng câu lệnh chưa được hỗ trợ DESCRIBE"
+
+#: preproc.y:16339
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "initializer không được phép trong câu lệnh EXEC SQL VAR"
+
+#: preproc.y:16655
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "đầu vào là mảng của các indicators không được cho phép"
+
+#: preproc.y:16876
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "toán tử không được phép trong định nghĩa biến"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:16917
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s tại hoặc gần \"%s\""
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "hết bộ nhớ"
+
+#: type.c:212 type.c:674
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "không nhận ra kiểu mã biến %d"
+
+#: type.c:261
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "biến \"%s\" bị ẩn bởi biến cục bộ thuộc một kiểu khác"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "biến \"%s\" bị ẩn bởi biến cục bộ"
+
+#: type.c:275
+#, c-format
+msgid ""
+"indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "biến indicator \"%s\" bị ẩn bởi một biến cục bộ thuộc một kiểu khác"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "biến indicator \"%s\" bị ẩn bởi biến cục bộ"
+
+#: type.c:285
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "mảng/con trỏ cho indicator phải là mảng/con trỏ"
+
+#: type.c:289
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "mảng lồng nhau không được hỗ trợ (ngoại trừ chuỗi)"
+
+#: type.c:331
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "indicator cho structure phải là một structure"
+
+#: type.c:351 type.c:372 type.c:392
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "indicator cho kiểu dữ liệu đơn giản phải đơn giản"
+
+#: type.c:615
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "cấu trúc của indicator \"%s\" có quá ít thành viên"
+
+#: type.c:622
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "cấu trúc của indicator \"%s\" có quá nhiều thành viên"
+
+#: type.c:733
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "không nhận ra mã descriptor item %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "biến được định dạng không chính xác \"%s\""
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "biến \"%s\" không phải là con trỏ"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "biến \"%s\" không phải là con trỏ trỏ tới structure hoặc union"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "biến \"%s\" không phải là kiểu structure hay union"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "biến \"%s\" không phải là mảng"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "biến \"%s\" chưa được định nghĩa"
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "biến indicator phải có kiểu integer"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "không nhận ra kiểu dữ liệu \"%s\""
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "mảng đa chiều không được hỗ trợ"
+
+#: variable.c:534
+#, c-format
+msgid ""
+"multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural ""
+"multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] ""
+"các con trỏ đa cấp (nhiều hơn 2 cấp) không được hỗ trợ; đã tìm thấy %d cấp"
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "con trỏ đến con trỏ không được hỗ trợ cho kiểu dữ liệu này"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "mảng đa chiều cho kiểu cấu trúc không được hỗ trợ"
diff --git a/src/interfaces/ecpg/preproc/po/zh_CN.po b/src/interfaces/ecpg/preproc/po/zh_CN.po
new file mode 100644
index 0000000..74fd9da
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/zh_CN.po
@@ -0,0 +1,693 @@
+# LANGUAGE message translation file for ecpg
+# Copyright (C) 2010 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: ecpg (PostgreSQL) 14\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
+"POT-Creation-Date: 2021-08-14 05:39+0000\n"
+"PO-Revision-Date: 2021-08-15 18:42+0800\n"
+"Last-Translator: Jie Zhang <zhangjie2@fujitsu.com>\n"
+"Language-Team: Chinese (Simplified) <zhangjie2@fujitsu.com>\n"
+"Language: zh_CN\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "变量 \"%s\"必须是数值类型"
+
+#: descriptor.c:125 descriptor.c:156
+msgid "descriptor %s bound to connection %s does not exist"
+msgstr "绑定到连接%2$s的描述符%1$s不存在"
+
+#: descriptor.c:127 descriptor.c:158
+msgid "descriptor %s bound to the default connection does not exist"
+msgstr "绑定到默认连接%2$s的描述符%1$s不存在"
+
+#: descriptor.c:173 descriptor.c:225
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "描述符标题成员\"%d\"不存在"
+
+#: descriptor.c:195
+#, c-format
+msgid "nullable is always 1"
+msgstr "可为空永远用1表示"
+
+#: descriptor.c:198
+#, c-format
+msgid "key_member is always 0"
+msgstr "key_member永远是0"
+
+#: descriptor.c:292
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "没有使用描述符成员\"%s\"."
+
+#: descriptor.c:302
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "无法设置描述符成员 \"%s\""
+
+#: ecpg.c:36
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s是用于C语言程序的PostgreSQL嵌入式SQL预处理器.\n"
+"\n"
+
+#: ecpg.c:38
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+
+#: ecpg.c:41
+#, c-format
+msgid "Options:\n"
+msgstr "选项:\n"
+
+#: ecpg.c:42
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c 从嵌入式SQL代码中自动产生C代码;\n"
+" 这将影响EXEC SQL TYPE\n"
+
+#: ecpg.c:44
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+msgstr ""
+" -C MODE 设置兼容模式;MODE可以是下列模式之一\n"
+" \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
+
+#: ecpg.c:47
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d 产生解析器的调试输出\n"
+
+#: ecpg.c:49
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D SYMBOL 定义SYMBOL\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h 分析一个头文件,这个选项包含选项\"-c\"\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i 分析系统引用文件\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I DIRECTORY 为引用文件搜索变量DIRECTORY\n"
+
+#: ecpg.c:53
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o OUTFILE 将结果写入到OUTFILE\n"
+
+#: ecpg.c:54
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r OPTION 指定运行时的系统行为; OPTION可以是:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression 在回归测试模式下运行\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t 打开事务的自动提交功能\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " -V, --version output version information, then exit\n"
+msgstr " -V, --version 输出版本信息,然后退出\n"
+
+#: ecpg.c:59
+#, c-format
+msgid " -?, --help show this help, then exit\n"
+msgstr " -?, --help 显示帮助信息,然后退出\n"
+
+#: ecpg.c:60
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"如果没有指定输出文件,那么输出文件名将由输入文件名(如果有后缀,那么去掉.pgc)\n"
+"加上.c的后缀名组成.\n"
+
+#: ecpg.c:62
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <%s>.\n"
+msgstr ""
+"\n"
+"臭虫报告至<%s>.\n"
+
+#: ecpg.c:63
+#, c-format
+msgid "%s home page: <%s>\n"
+msgstr "%s 主页: <%s>\n"
+
+#: ecpg.c:141
+#, c-format
+msgid "%s: could not locate my own executable path\n"
+msgstr "%s: 找不到我的可执行文件路径\n"
+
+#: ecpg.c:176 ecpg.c:333 ecpg.c:344
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: 无法打开文件 \"%s\": %s\n"
+
+#: ecpg.c:219 ecpg.c:232 ecpg.c:248 ecpg.c:274
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "请用 \"%s --help\" 获取更多的信息.\n"
+
+#: ecpg.c:243
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: 解析器跟踪调试支持(-d)无效\n"
+
+#: ecpg.c:262
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
+msgstr "%s, PostgreSQL嵌入式C语言预处理器, 版本%s\n"
+
+#: ecpg.c:264
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... 从这里开始搜索:\n"
+
+#: ecpg.c:267
+#, c-format
+msgid "end of search list\n"
+msgstr "搜索列表的结束部分\n"
+
+#: ecpg.c:273
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: 没有指定输入文件\n"
+
+#: ecpg.c:477
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "已经声明了游标\"%s\",但是没有打开"
+
+#: ecpg.c:490 preproc.y:130
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "无法删除输出文件 \"%s\"\n"
+
+#: pgc.l:502
+#, c-format
+msgid "unterminated /* comment"
+msgstr "/* 注释没有结束"
+
+#: pgc.l:519
+#, c-format
+msgid "unterminated bit string literal"
+msgstr "未结束的bit字符串常量"
+
+#: pgc.l:527
+#, c-format
+msgid "unterminated hexadecimal string literal"
+msgstr "未结束的16进制字符串常量"
+
+#: pgc.l:602
+#, c-format
+msgid "invalid bit string literal"
+msgstr "无效的bit字符串常量"
+
+#: pgc.l:607
+msgid "invalid hex string literal"
+msgstr "无效的十六进制字符串常量"
+
+#: pgc.l:625
+#, c-format
+msgid "unhandled previous state in xqs\n"
+msgstr "xqs中未处理的先前状态\n"
+
+#: pgc.l:651 pgc.l:760
+#, c-format
+msgid "unterminated quoted string"
+msgstr "未结束的引用字符串"
+
+#: pgc.l:702
+#, c-format
+msgid "unterminated dollar-quoted string"
+msgstr "未结束的用$符号引用的字符串"
+
+#: pgc.l:720 pgc.l:740
+#, c-format
+msgid "zero-length delimited identifier"
+msgstr "长度为0的分隔标识符"
+
+#: pgc.l:751
+#, c-format
+msgid "unterminated quoted identifier"
+msgstr "未结束的引用标识符"
+
+#: pgc.l:1082
+#, c-format
+msgid "nested /* ... */ comments"
+msgstr "有嵌套注释/*...*/"
+
+#: pgc.l:1175
+#, c-format
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "在EXEC SQL UNDEF命令中丢失标识符"
+
+#: pgc.l:1193 pgc.l:1206 pgc.l:1222 pgc.l:1235
+#, c-format
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "嵌套EXEC SQL IFDEF条件太多"
+
+#: pgc.l:1251 pgc.l:1262 pgc.l:1277 pgc.l:1299
+#, c-format
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "丢失匹配 \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:1253 pgc.l:1264 pgc.l:1445
+#, c-format
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "\"EXEC SQL ENDIF;\"丢失"
+
+#: pgc.l:1279 pgc.l:1301
+#, c-format
+msgid "more than one EXEC SQL ELSE"
+msgstr "多个EXEC SQL ELSE"
+
+#: pgc.l:1324 pgc.l:1338
+#, c-format
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "EXEC SQL ENDIF不匹配"
+
+#: pgc.l:1393
+#, c-format
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "在EXEC SQL IFDEF命令中丢失标识符"
+
+#: pgc.l:1402
+#, c-format
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "在EXEC SQL DEFINE命令中丢失标识符"
+
+#: pgc.l:1435
+#, c-format
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "在EXEC SQL INCLUDE命令中出现语法错误"
+
+#: pgc.l:1485
+msgid "internal error: unreachable state; please report this to <%s>"
+msgstr "内部错误:不可到达的状态;请向<%s>发送报告"
+
+#: pgc.l:1637
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "错误:在第%3$d行上包含路径\"%1$s/%2$s\"太长,跳过\n"
+
+#: pgc.l:1660
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "在第%2$d行无法打开应用文件\"%1$s\""
+
+#: preproc.y:31
+msgid "syntax error"
+msgstr "语法错误"
+
+#: preproc.y:84
+#, c-format
+msgid "WARNING: "
+msgstr "警告:"
+
+#: preproc.y:87
+#, c-format
+msgid "ERROR: "
+msgstr "错误:"
+
+#: preproc.y:514
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "游标 \"%s\" 不存在"
+
+#: preproc.y:543
+#, c-format
+msgid "initializer not allowed in type definition"
+msgstr "在类型定义中不允许进行初始化"
+
+#: preproc.y:545
+#, c-format
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "在Informix模式中类型名称\"string\" 是被保留的"
+
+#: preproc.y:552 preproc.y:17675
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "已定义类型\"%s\" "
+
+#: preproc.y:577 preproc.y:18310 preproc.y:18635 variable.c:621
+#, c-format
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "不支持针对简单数据类型的多维数组"
+
+#: preproc.y:599
+msgid "connection %s is overwritten to %s."
+msgstr "连接%s被覆盖到%s."
+
+#: preproc.y:1753
+#, c-format
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "在CLOSE DATABASE语句中不允许使用AT选项"
+
+#: preproc.y:2001
+#, c-format
+msgid "AT option not allowed in CONNECT statement"
+msgstr "在CONNECT语句中不允许使用AT选项"
+
+#: preproc.y:2041
+#, c-format
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "在DISCONNECT语句中不允许使用AT选项"
+
+#: preproc.y:2096
+#, c-format
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "在SET CONNECTION语句中不允许使用AT选项"
+
+#: preproc.y:2118
+#, c-format
+msgid "AT option not allowed in TYPE statement"
+msgstr "在TYPE语句中不允许使用AT选项"
+
+#: preproc.y:2127
+#, c-format
+msgid "AT option not allowed in VAR statement"
+msgstr "在VAR语句中不允许使用AT选项"
+
+#: preproc.y:2134
+#, c-format
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "在WHENEVER语句中不允许使用AT选项"
+
+#: preproc.y:2211 preproc.y:2383 preproc.y:2388 preproc.y:2511 preproc.y:4143
+#: preproc.y:4807 preproc.y:5340 preproc.y:5678 preproc.y:5978 preproc.y:7514
+#: preproc.y:9082 preproc.y:9087 preproc.y:11915
+#, c-format
+msgid "unsupported feature will be passed to server"
+msgstr "不支持的功能特性将会传递给服务器"
+
+#: preproc.y:2769
+#, c-format
+msgid "SHOW ALL is not implemented"
+msgstr "没有使用SHOW ALL"
+
+#: preproc.y:3464
+#, c-format
+msgid "COPY FROM STDIN is not implemented"
+msgstr "不能进行COPY FROM STDIN的操作"
+
+#: preproc.y:10014 preproc.y:17250
+msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
+msgstr "在INFORMIX模式下,\"database\"不能用作游标名称"
+
+#: preproc.y:10021 preproc.y:17260
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "不支持在不同的声明语句中使用变量\"%s\""
+
+#: preproc.y:10023 preproc.y:17262
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "已经定义了游标\"%s\""
+
+#: preproc.y:10497
+#, c-format
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "不再支持将LIMIT #,#语法传递给服务器"
+
+#: preproc.y:10830 preproc.y:10837
+#, c-format
+msgid "subquery in FROM must have an alias"
+msgstr "FROM 中的子查询必须有一个别名"
+
+#: preproc.y:16942 preproc.y:16949
+#, c-format
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "在CREATE TABLE AS语句中不能指定INTO子句"
+
+#: preproc.y:16985
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "期望 \"@\", 但是找到了\"%s\""
+
+#: preproc.y:16997
+#, c-format
+msgid "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported"
+msgstr "只支持协议\"tcp\"和 \"unix\"以及数据库类型 \"postgresql\""
+
+#: preproc.y:17000
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "期望得到 \"://\",但是找到了\"%s\""
+
+#: preproc.y:17005
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Unix-域的sockets只能在\"localhost\"上运行,而不能在\"%s\"上运行"
+
+#: preproc.y:17031
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "期望\"postgresql\", 但是只找到了\"%s\""
+
+#: preproc.y:17034
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "无效的连接类型: %s"
+
+#: preproc.y:17043
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "期望\"@\"或\"://\",但是只找到了\"%s\""
+
+#: preproc.y:17118 preproc.y:17136
+#, c-format
+msgid "invalid data type"
+msgstr "无效数据类型"
+
+#: preproc.y:17147 preproc.y:17164
+#, c-format
+msgid "incomplete statement"
+msgstr "未结束的语句"
+
+#: preproc.y:17150 preproc.y:17167
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "无法识别的符号\"%s\""
+
+#: preproc.y:17212
+msgid "name \"%s\" is already declared"
+msgstr "已声明名称\"%s\""
+
+#: preproc.y:17478
+#, c-format
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "只有数据类型numeric和decimal有精度/范围参数"
+
+#: preproc.y:17490
+#, c-format
+msgid "interval specification not allowed here"
+msgstr "在这里不允许使用间隔定义"
+
+#: preproc.y:17650 preproc.y:17702
+#, c-format
+msgid "too many levels in nested structure/union definition"
+msgstr "在嵌套结构/联合定义中存在太多的层次"
+
+#: preproc.y:17825
+#, c-format
+msgid "pointers to varchar are not implemented"
+msgstr "没有实现指向varchar类型值的指针"
+
+#: preproc.y:18276
+#, c-format
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "在EXEC SQL VAR命令中不允许初始化"
+
+#: preproc.y:18593
+#, c-format
+msgid "arrays of indicators are not allowed on input"
+msgstr "在输入上不允许使用标识数组"
+
+#: preproc.y:18780
+#, c-format
+msgid "operator not allowed in variable definition"
+msgstr "操作符不允许出现在变量定义当中"
+
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:18821
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "%s 在 \"%s\" 或附近的"
+
+#: type.c:18 type.c:30
+#, c-format
+msgid "out of memory"
+msgstr "内存不足"
+
+#: type.c:214 type.c:685
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "无法识别的变量类型代码%d"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "变量\"%s\"是由一个不同类型的局部变量隐藏的"
+
+#: type.c:265
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "变量\"%s\"是由一个局部变量隐藏的"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "标记变量(indicator variable)\"%s\"是由一个不同类型的局部变量隐藏的。"
+
+#: type.c:279
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "标记变量(indicator variable)\"%s\"是由一个局部变量隐藏的"
+
+#: type.c:287
+#, c-format
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "对于数组/指针的记号必须是array/pointer"
+
+#: type.c:291
+#, c-format
+msgid "nested arrays are not supported (except strings)"
+msgstr "不支持嵌套数组(除了字符串外)"
+
+#: type.c:333
+#, c-format
+msgid "indicator for struct has to be a struct"
+msgstr "结构的记号必须是struct"
+
+#: type.c:353 type.c:374 type.c:394
+#, c-format
+msgid "indicator for simple data type has to be simple"
+msgstr "对简单数据类型的指标要简单 "
+
+#: type.c:625
+#, c-format
+msgid "indicator struct \"%s\" has too few members"
+msgstr "结构\"%s\"的记号的成员太少"
+
+#: type.c:633
+#, c-format
+msgid "indicator struct \"%s\" has too many members"
+msgstr "结构\"%s\"的记号成员太多"
+
+#: type.c:744
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "无法识别的描述符成员代码 %d"
+
+#: variable.c:89 variable.c:116
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "不正确形成的变量 \"%s\""
+
+#: variable.c:139
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "变量\"%s\"不是一个指针"
+
+#: variable.c:142 variable.c:167
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "变量\"%s\" 不是一个指向结构或联合的指针"
+
+#: variable.c:154
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "变量\"%s\"既不是一个结构也不是一个联合"
+
+#: variable.c:164
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "变量\"%s\"不是一个数组"
+
+#: variable.c:233 variable.c:255
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "没有声明变量\"%s\""
+
+#: variable.c:494
+#, c-format
+msgid "indicator variable must have an integer type"
+msgstr "标记变量必须有一个整数类型"
+
+#: variable.c:506
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr "无法识别的数据类型名称 \"%s\""
+
+#: variable.c:517 variable.c:525 variable.c:542 variable.c:545
+#, c-format
+msgid "multidimensional arrays are not supported"
+msgstr "不支持多维数组"
+
+#: variable.c:534
+#, c-format
+msgid "multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural "multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "不支持多级指针(超过2级);找到了%d级指针."
+
+#: variable.c:539
+#, c-format
+msgid "pointer to pointer is not supported for this data type"
+msgstr "对于这种数据类型不支持指向指针的指针"
+
+#: variable.c:559
+#, c-format
+msgid "multidimensional arrays for structures are not supported"
+msgstr "不支持结构类型的多维数组"
+
diff --git a/src/interfaces/ecpg/preproc/po/zh_TW.po b/src/interfaces/ecpg/preproc/po/zh_TW.po
new file mode 100644
index 0000000..9d94f8c
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/po/zh_TW.po
@@ -0,0 +1,645 @@
+# Traditional Chinese message translation file for ecpg
+# Copyright (C) 2010 PostgreSQL Global Development Group
+# This file is distributed under the same license as the PostgreSQL package.
+msgid ""
+msgstr ""
+"Project-Id-Version: PostgreSQL 9.1\n"
+"Report-Msgid-Bugs-To: pgsql-bugs@postgresql.org\n"
+"POT-Creation-Date: 2011-05-11 20:42+0000\n"
+"PO-Revision-Date: 2013-09-03 23:28-0400\n"
+"Last-Translator: Zhenbang Wei <znbang@gmail.com>\n"
+"Language-Team: EnterpriseDB translation team <dev-escalations@enterprisedb.com>\n"
+"Language: zh_TW\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#: descriptor.c:64
+#, c-format
+msgid "variable \"%s\" must have a numeric type"
+msgstr "變數 \"%s\" 必須具有數值型別"
+
+#: descriptor.c:124 descriptor.c:146
+#, c-format
+msgid "descriptor \"%s\" does not exist"
+msgstr "描述子 \"%s\" 不存在"
+
+#: descriptor.c:161 descriptor.c:210
+#, c-format
+msgid "descriptor header item \"%d\" does not exist"
+msgstr "描述子標頭項目 \"%d\" 不存在"
+
+#: descriptor.c:182
+msgid "nullable is always 1"
+msgstr "Nullable 一律為 1"
+
+#: descriptor.c:185
+msgid "key_member is always 0"
+msgstr "key_member 一律為 0"
+
+#: descriptor.c:277
+#, c-format
+msgid "descriptor item \"%s\" is not implemented"
+msgstr "未實作描述子項目 \"%s\""
+
+#: descriptor.c:287
+#, c-format
+msgid "descriptor item \"%s\" cannot be set"
+msgstr "不能設定描述子項目 \"%s\""
+
+#: ecpg.c:35
+#, c-format
+msgid ""
+"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
+"\n"
+msgstr ""
+"%s 是 PostgreSQL 內嵌 SQL 前置處理器,適用於 C 程式。\n"
+"\n"
+
+#: ecpg.c:37
+#, c-format
+msgid ""
+"Usage:\n"
+" %s [OPTION]... FILE...\n"
+"\n"
+msgstr ""
+"使用方法:\n"
+"%s [選項]...檔案...\n"
+"\n"
+
+# postmaster/postmaster.c:1017 tcop/postgres.c:2115
+#: ecpg.c:40
+#, c-format
+msgid "Options:\n"
+msgstr "選項:\n"
+
+#: ecpg.c:41
+#, c-format
+msgid ""
+" -c automatically generate C code from embedded SQL code;\n"
+" this affects EXEC SQL TYPE\n"
+msgstr ""
+" -c 自動從內嵌 SQL 程式碼產生 C 程式碼,\n"
+" EXEC SQL TYPE 會受到影響\n"
+
+#: ecpg.c:43
+#, c-format
+msgid ""
+" -C MODE set compatibility mode; MODE can be one of\n"
+" \"INFORMIX\", \"INFORMIX_SE\"\n"
+msgstr ""
+" -C 模式 設定相容性模式,模式可以是下列其中一項\n"
+" \"INFORMIX\"、\"INFORMIX_SE\"\n"
+
+#: ecpg.c:46
+#, c-format
+msgid " -d generate parser debug output\n"
+msgstr " -d 產生解譯器偵錯輸出\n"
+
+#: ecpg.c:48
+#, c-format
+msgid " -D SYMBOL define SYMBOL\n"
+msgstr " -D 符號 定義符號\n"
+
+#: ecpg.c:49
+#, c-format
+msgid ""
+" -h parse a header file, this option includes option \"-c\"\n"
+msgstr " -h 解譯標頭檔,此選項包含選項 \"-c\"\n"
+
+#: ecpg.c:50
+#, c-format
+msgid " -i parse system include files as well\n"
+msgstr " -i 同時解譯系統引用檔案\n"
+
+#: ecpg.c:51
+#, c-format
+msgid " -I DIRECTORY search DIRECTORY for include files\n"
+msgstr " -I 目錄 搜尋引用檔案的目錄\n"
+
+#: ecpg.c:52
+#, c-format
+msgid " -o OUTFILE write result to OUTFILE\n"
+msgstr " -o 輸出檔 將結果寫入輸出檔\n"
+
+#: ecpg.c:53
+#, c-format
+msgid ""
+" -r OPTION specify run-time behavior; OPTION can be:\n"
+" \"no_indicator\", \"prepare\", \"questionmarks\"\n"
+msgstr ""
+" -r 選項 指定執行階段行為,選項可以是:\n"
+" \"no_indicator\"、\"prepare\"、\"questionmarks\"\n"
+
+#: ecpg.c:55
+#, c-format
+msgid " --regression run in regression testing mode\n"
+msgstr " --regression 以迴歸測試模式執行\n"
+
+#: ecpg.c:56
+#, c-format
+msgid " -t turn on autocommit of transactions\n"
+msgstr " -t 開啟交易自動提交功能\n"
+
+#: ecpg.c:57
+#, c-format
+msgid " --help show this help, then exit\n"
+msgstr " --help 顯示此說明然後結束\n"
+
+#: ecpg.c:58
+#, c-format
+msgid " --version output version information, then exit\n"
+msgstr " --version 輸出版本資訊然後結束\n"
+
+#: ecpg.c:59
+#, c-format
+msgid ""
+"\n"
+"If no output file is specified, the name is formed by adding .c to the\n"
+"input file name, after stripping off .pgc if present.\n"
+msgstr ""
+"\n"
+"如果未指定輸出檔,檔名就是將輸入檔的檔名\n"
+"去掉 .pgc (如果有的話) 再加上 .c。\n"
+
+# tcop/postgres.c:2140
+#: ecpg.c:61
+#, c-format
+msgid ""
+"\n"
+"Report bugs to <pgsql-bugs@postgresql.org>.\n"
+msgstr ""
+"\n"
+"回報錯誤給 <pgsql-bugs@postgresql.org>。\n"
+
+#: ecpg.c:182 ecpg.c:333 ecpg.c:343
+#, c-format
+msgid "%s: could not open file \"%s\": %s\n"
+msgstr "%s: 無法開啟檔案\"%s\": %s\n"
+
+# postmaster/postmaster.c:512 postmaster/postmaster.c:525
+#: ecpg.c:221 ecpg.c:234 ecpg.c:250 ecpg.c:275
+#, c-format
+msgid "Try \"%s --help\" for more information.\n"
+msgstr "執行\"%s --help\"顯示更多資訊。\n"
+
+#: ecpg.c:245
+#, c-format
+msgid "%s: parser debug support (-d) not available\n"
+msgstr "%s: 解譯器偵錯支援 (-d) 無法使用\n"
+
+#: ecpg.c:263
+#, c-format
+msgid "%s, the PostgreSQL embedded C preprocessor, version %d.%d.%d\n"
+msgstr "%s,PostgreSQL 內嵌 C 前置處理器,版本 %d.%d.%d\n"
+
+#: ecpg.c:265
+#, c-format
+msgid "EXEC SQL INCLUDE ... search starts here:\n"
+msgstr "EXEC SQL INCLUDE ... 在此處開始搜尋:\n"
+
+#: ecpg.c:268
+#, c-format
+msgid "end of search list\n"
+msgstr "搜尋清單結尾\n"
+
+#: ecpg.c:274
+#, c-format
+msgid "%s: no input files specified\n"
+msgstr "%s: 未指定輸入檔\n"
+
+#: ecpg.c:466
+#, c-format
+msgid "cursor \"%s\" has been declared but not opened"
+msgstr "指標 \"%s\" 已宣告但尚未開啟"
+
+#: ecpg.c:479 preproc.y:109
+#, c-format
+msgid "could not remove output file \"%s\"\n"
+msgstr "無法移除輸出檔 \"%s\"\n"
+
+# scan.l:312
+#: pgc.l:402
+msgid "unterminated /* comment"
+msgstr "未結束的 /* 註解"
+
+#: pgc.l:415
+msgid "invalid bit string literal"
+msgstr "位元字串實量無效"
+
+# scan.l:339
+#: pgc.l:424
+msgid "unterminated bit string literal"
+msgstr "未結束的位元字串實量"
+
+# scan.l:358
+#: pgc.l:440
+msgid "unterminated hexadecimal string literal"
+msgstr "未結束的十六進位字串實量"
+
+# scan.l:407
+#: pgc.l:518
+msgid "unterminated quoted string"
+msgstr "未結束的引號字串"
+
+#: pgc.l:573 pgc.l:586
+msgid "zero-length delimited identifier"
+msgstr "長度為零的分隔識別字"
+
+#: pgc.l:594
+msgid "unterminated quoted identifier"
+msgstr "未結束的引號識別字"
+
+#: pgc.l:940
+msgid "missing identifier in EXEC SQL UNDEF command"
+msgstr "EXEC SQL UNDEF 指令遺漏識別字"
+
+#: pgc.l:986 pgc.l:1000
+msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+msgstr "遺漏相符的 \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
+
+#: pgc.l:989 pgc.l:1002 pgc.l:1178
+msgid "missing \"EXEC SQL ENDIF;\""
+msgstr "遺漏 \"EXEC SQL ENDIF;\""
+
+#: pgc.l:1018 pgc.l:1037
+msgid "more than one EXEC SQL ELSE"
+msgstr "多個 EXEC SQL ELSE"
+
+#: pgc.l:1059 pgc.l:1073
+msgid "unmatched EXEC SQL ENDIF"
+msgstr "EXEC SQL ENDIF 不相符"
+
+#: pgc.l:1093
+msgid "too many nested EXEC SQL IFDEF conditions"
+msgstr "過多巢狀 EXEC SQL IFDEF 條件"
+
+#: pgc.l:1126
+msgid "missing identifier in EXEC SQL IFDEF command"
+msgstr "EXEC SQL IFDEF 指令遺漏識別字"
+
+#: pgc.l:1135
+msgid "missing identifier in EXEC SQL DEFINE command"
+msgstr "EXEC SQL DEFINE 指令遺漏識別字"
+
+#: pgc.l:1168
+msgid "syntax error in EXEC SQL INCLUDE command"
+msgstr "EXEC SQL INCLUDE 指令的語法錯誤"
+
+#: pgc.l:1217
+msgid ""
+"internal error: unreachable state; please report this to <pgsql-"
+"bugs@postgresql.org>"
+msgstr "內部錯誤: 無法連線狀態,請將錯誤回報給 <pgsql-bugs@postgresql.org>"
+
+#: pgc.l:1342
+#, c-format
+msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
+msgstr "錯誤: 引用檔路徑 \"%s/%s\" 太長 (位於行 %d),略過\n"
+
+#: pgc.l:1364
+#, c-format
+msgid "could not open include file \"%s\" on line %d"
+msgstr "無法開啟引用檔 \"%s\" (位於行 %d)"
+
+# gram.y:8218 gram.y:8220 y.tab.c:19175
+#: preproc.y:31
+msgid "syntax error"
+msgstr "語法錯誤"
+
+#: preproc.y:81
+#, c-format
+msgid "WARNING: "
+msgstr "警告:"
+
+#: preproc.y:85
+#, c-format
+msgid "ERROR: "
+msgstr "錯誤:"
+
+# commands/portalcmds.c:182 commands/portalcmds.c:229
+#: preproc.y:391
+#, c-format
+msgid "cursor \"%s\" does not exist"
+msgstr "指標 \"%s\"不存在"
+
+#: preproc.y:419
+msgid "initializer not allowed in type definition"
+msgstr "型別定義中不允許使用初始設定式"
+
+# commands/user.c:1396
+#: preproc.y:421
+msgid "type name \"string\" is reserved in Informix mode"
+msgstr "型別名稱 \"string\" 在 Informix 是保留字"
+
+#: preproc.y:428 preproc.y:13035
+#, c-format
+msgid "type \"%s\" is already defined"
+msgstr "型別 \"%s\" 已定義"
+
+#: preproc.y:452 preproc.y:13675 preproc.y:13996 variable.c:610
+msgid "multidimensional arrays for simple data types are not supported"
+msgstr "不支援簡單資料型別的多維度陣列"
+
+#: preproc.y:1426
+msgid "AT option not allowed in CLOSE DATABASE statement"
+msgstr "CLOSE DATABASE 陳述式中不允許使用 AT 選項"
+
+#: preproc.y:1496 preproc.y:1640
+msgid "AT option not allowed in DEALLOCATE statement"
+msgstr "DEALLOCATE 陳述式中不允許使用 AT 選項"
+
+#: preproc.y:1626
+msgid "AT option not allowed in CONNECT statement"
+msgstr "CONNECT 陳述式中不允許使用 AT 選項"
+
+#: preproc.y:1662
+msgid "AT option not allowed in DISCONNECT statement"
+msgstr "DISCONNECT 陳述式中不允許使用 AT 選項"
+
+#: preproc.y:1717
+msgid "AT option not allowed in SET CONNECTION statement"
+msgstr "SET CONNECTION 陳述式中不允許使用 AT 選項"
+
+#: preproc.y:1739
+msgid "AT option not allowed in TYPE statement"
+msgstr "TYPE 陳述式中不允許使用 AT 選項"
+
+#: preproc.y:1748
+msgid "AT option not allowed in VAR statement"
+msgstr "VAR 陳述式中不允許使用 AT 選項"
+
+#: preproc.y:1755
+msgid "AT option not allowed in WHENEVER statement"
+msgstr "WHENEVER 陳述式中不允許使用 AT 選項"
+
+#: preproc.y:2101 preproc.y:3272 preproc.y:3344 preproc.y:4550 preproc.y:4559
+#: preproc.y:4840 preproc.y:7127 preproc.y:7132 preproc.y:7137 preproc.y:9471
+#: preproc.y:10014
+msgid "unsupported feature will be passed to server"
+msgstr "不支援的功能將會傳遞到伺服器"
+
+#: preproc.y:2327
+msgid "SHOW ALL is not implemented"
+msgstr "未實作 SHOW ALL"
+
+#: preproc.y:2750 preproc.y:2761
+msgid "COPY TO STDIN is not possible"
+msgstr "COPY TO STDIN 不可行"
+
+#: preproc.y:2752
+msgid "COPY FROM STDOUT is not possible"
+msgstr "COPY FROM STDOUT 不可行"
+
+#: preproc.y:2754
+msgid "COPY FROM STDIN is not implemented"
+msgstr "未實作 COPY FROM STDIN"
+
+#: preproc.y:4490 preproc.y:4501
+msgid "constraint declared INITIALLY DEFERRED must be DEFERRABLE"
+msgstr "限制宣告的 INITIALLY DEFERRED 必須是 DEFERRABLE"
+
+#: preproc.y:7933 preproc.y:12624
+#, c-format
+msgid "using variable \"%s\" in different declare statements is not supported"
+msgstr "在多個宣告陳述式中使用變數 \"%s\" 未被支援"
+
+#: preproc.y:7935 preproc.y:12626
+#, c-format
+msgid "cursor \"%s\" is already defined"
+msgstr "指標 \"%s\" 已定義"
+
+#: preproc.y:8353
+msgid "no longer supported LIMIT #,# syntax passed to server"
+msgstr "不再支援的 LIMIT #,# 語法已傳遞到伺服器"
+
+# gram.y:5166 parser/parse_clause.c:423
+#: preproc.y:8588
+msgid "subquery in FROM must have an alias"
+msgstr "FROM中的子查詢要有別名"
+
+#: preproc.y:12356
+msgid "CREATE TABLE AS cannot specify INTO"
+msgstr "CREATE TABLE AS 不能指定 INTO"
+
+#: preproc.y:12393
+#, c-format
+msgid "expected \"@\", found \"%s\""
+msgstr "預期 \"@\",找到 \"%s\""
+
+#: preproc.y:12405
+msgid ""
+"only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are "
+"supported"
+msgstr "只支援通訊協定 \"tcp\" 和 \"unix\" 以及資料庫類型 \"postgresql\""
+
+#: preproc.y:12408
+#, c-format
+msgid "expected \"://\", found \"%s\""
+msgstr "預期 \"://\",找到 \"%s\""
+
+#: preproc.y:12413
+#, c-format
+msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
+msgstr "Unix-可用域通訊端僅適用 \"localhost\",不適用 \"%s\""
+
+#: preproc.y:12439
+#, c-format
+msgid "expected \"postgresql\", found \"%s\""
+msgstr "預期 \"postgresql\",找到 \"%s\""
+
+#: preproc.y:12442
+#, c-format
+msgid "invalid connection type: %s"
+msgstr "連線類型無效:%s"
+
+#: preproc.y:12451
+#, c-format
+msgid "expected \"@\" or \"://\", found \"%s\""
+msgstr "預期 \"@\" 或 \"://\",找到 \"%s\""
+
+#: preproc.y:12526 preproc.y:12544
+msgid "invalid data type"
+msgstr "資料型別無效"
+
+#: preproc.y:12555 preproc.y:12570
+msgid "incomplete statement"
+msgstr "陳述式不完整"
+
+#: preproc.y:12558 preproc.y:12573
+#, c-format
+msgid "unrecognized token \"%s\""
+msgstr "無法辨識的 token \"%s\""
+
+#: preproc.y:12846
+msgid "only data types numeric and decimal have precision/scale argument"
+msgstr "只有數值和十進位資料型別有精確度/小數位數參數"
+
+#: preproc.y:12858
+msgid "interval specification not allowed here"
+msgstr "這裡不允許使用間隔規格"
+
+#: preproc.y:13010 preproc.y:13062
+msgid "too many levels in nested structure/union definition"
+msgstr "巢狀結構/聯集定義中的層級過多"
+
+#: preproc.y:13193
+msgid "pointers to varchar are not implemented"
+msgstr "Varchar 的指標未實作"
+
+#: preproc.y:13380 preproc.y:13405
+msgid "using unsupported DESCRIBE statement"
+msgstr "使用不支援的 DESCRIBE 陳述式"
+
+#: preproc.y:13642
+msgid "initializer not allowed in EXEC SQL VAR command"
+msgstr "EXEC SQL VAR 指令中不允許使用初始設定式"
+
+#: preproc.y:13954
+msgid "arrays of indicators are not allowed on input"
+msgstr "輸入中不允許使用指標陣列"
+
+# translator: first %s is typically "syntax error"
+# scan.l:629
+#. translator: %s is typically the translation of "syntax error"
+#: preproc.y:14208
+#, c-format
+msgid "%s at or near \"%s\""
+msgstr "在\"%s\"附近發生 %s"
+
+# commands/sequence.c:798 executor/execGrouping.c:328
+# executor/execGrouping.c:388 executor/nodeIndexscan.c:1051 lib/dllist.c:43
+# lib/dllist.c:88 libpq/auth.c:637 postmaster/pgstat.c:1006
+# postmaster/pgstat.c:1023 postmaster/pgstat.c:2452 postmaster/pgstat.c:2527
+# postmaster/pgstat.c:2572 postmaster/pgstat.c:2623
+# postmaster/postmaster.c:755 postmaster/postmaster.c:1625
+# postmaster/postmaster.c:2344 storage/buffer/localbuf.c:139
+# storage/file/fd.c:587 storage/file/fd.c:620 storage/file/fd.c:766
+# storage/ipc/sinval.c:789 storage/lmgr/lock.c:497 storage/smgr/md.c:138
+# storage/smgr/md.c:848 storage/smgr/smgr.c:213 utils/adt/cash.c:297
+# utils/adt/cash.c:312 utils/adt/oracle_compat.c:73
+# utils/adt/oracle_compat.c:124 utils/adt/regexp.c:191
+# utils/adt/ri_triggers.c:3471 utils/cache/relcache.c:164
+# utils/cache/relcache.c:178 utils/cache/relcache.c:1130
+# utils/cache/typcache.c:165 utils/cache/typcache.c:487
+# utils/fmgr/dfmgr.c:127 utils/fmgr/fmgr.c:521 utils/fmgr/fmgr.c:532
+# utils/init/miscinit.c:213 utils/init/miscinit.c:234
+# utils/init/miscinit.c:244 utils/misc/guc.c:1898 utils/misc/guc.c:1911
+# utils/misc/guc.c:1924 utils/mmgr/aset.c:337 utils/mmgr/aset.c:503
+# utils/mmgr/aset.c:700 utils/mmgr/aset.c:893 utils/mmgr/portalmem.c:75
+#: type.c:18 type.c:30
+msgid "out of memory"
+msgstr "記憶體用盡"
+
+#: type.c:212 type.c:594
+#, c-format
+msgid "unrecognized variable type code %d"
+msgstr "無法辨識的變數型別程式碼 %d "
+
+#: type.c:261
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable of a different type"
+msgstr "變數 \"%s\" 被不同型別的區域變數遮蔽"
+
+#: type.c:263
+#, c-format
+msgid "variable \"%s\" is hidden by a local variable"
+msgstr "變數 \"%s\" 被區域變數遮蔽"
+
+#: type.c:275
+#, c-format
+msgid ""
+"indicator variable \"%s\" is hidden by a local variable of a different type"
+msgstr "指標變數 \"%s\" 被不同型別的區域變數遮蔽"
+
+#: type.c:277
+#, c-format
+msgid "indicator variable \"%s\" is hidden by a local variable"
+msgstr "指標變數 \"%s\" 被區域變數遮蔽"
+
+#: type.c:285
+msgid "indicator for array/pointer has to be array/pointer"
+msgstr "陣列/指標的指標必須是陣列/指標"
+
+#: type.c:289
+msgid "nested arrays are not supported (except strings)"
+msgstr "不支援巢狀陣列 (字串除外)"
+
+#: type.c:322
+msgid "indicator for struct has to be a struct"
+msgstr "建構的指標必須是建構"
+
+#: type.c:331 type.c:339 type.c:347
+msgid "indicator for simple data type has to be simple"
+msgstr "簡單資料型別的指標必須簡單"
+
+#: type.c:653
+#, c-format
+msgid "unrecognized descriptor item code %d"
+msgstr "無法辨識的描述子項目程式碼 %d"
+
+#: variable.c:89 variable.c:112
+#, c-format
+msgid "incorrectly formed variable \"%s\""
+msgstr "變數 \"%s\" 的格式不正確"
+
+#: variable.c:135
+#, c-format
+msgid "variable \"%s\" is not a pointer"
+msgstr "變數 \"%s\" 不是指標"
+
+#: variable.c:138 variable.c:163
+#, c-format
+msgid "variable \"%s\" is not a pointer to a structure or a union"
+msgstr "變數 \"%s\" 不是結構或聯集的指標"
+
+#: variable.c:150
+#, c-format
+msgid "variable \"%s\" is neither a structure nor a union"
+msgstr "變數 \"%s\" 不是結構或聯集"
+
+#: variable.c:160
+#, c-format
+msgid "variable \"%s\" is not an array"
+msgstr "變數 \"%s\" 不是陣列"
+
+#: variable.c:229 variable.c:251
+#, c-format
+msgid "variable \"%s\" is not declared"
+msgstr "變數 \"%s\" 未宣告"
+
+#: variable.c:484
+msgid "indicator variable must have an integer type"
+msgstr "指標變數必須是整數型別"
+
+#: variable.c:496
+#, c-format
+msgid "unrecognized data type name \"%s\""
+msgstr " 無法辨識的資料型別名稱 \"%s\""
+
+#: variable.c:507 variable.c:515 variable.c:532 variable.c:535
+msgid "multidimensional arrays are not supported"
+msgstr "不支援多維度陣列"
+
+#: variable.c:524
+#, c-format
+msgid ""
+"multilevel pointers (more than 2 levels) are not supported; found %d level"
+msgid_plural ""
+"multilevel pointers (more than 2 levels) are not supported; found %d levels"
+msgstr[0] "不支援多層指標(2層以上),發現 %d 層"
+
+#: variable.c:529
+msgid "pointer to pointer is not supported for this data type"
+msgstr "此資料型別不支援指標的指標"
+
+#: variable.c:549
+msgid "multidimensional arrays for structures are not supported"
+msgstr "不支援多維度的結構陣列"
+
+#~ msgid "OLD used in query that is not in a rule"
+#~ msgstr "查詢中使用的 OLD 不在規則中"
+
+#~ msgid "NEW used in query that is not in a rule"
+#~ msgstr "查詢中使用的 NEW 不在規則中"
diff --git a/src/interfaces/ecpg/preproc/preproc.c b/src/interfaces/ecpg/preproc/preproc.c
new file mode 100644
index 0000000..732ab1c
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/preproc.c
@@ -0,0 +1,66595 @@
+/* A Bison parser, made by GNU Bison 3.7.5. */
+
+/* Bison implementation for Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
+ Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof
+ as a parser skeleton. Alternatively, if you modify or redistribute
+ the parser skeleton itself, you may (at your option) remove this
+ special exception, which will cause the skeleton and the resulting
+ Bison output files to be licensed under the GNU General Public
+ License without this special exception.
+
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison. */
+
+/* C LALR(1) parser skeleton written by Richard Stallman, by
+ simplifying the original so-called "semantic" parser. */
+
+/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
+ especially those whose name start with YY_ or yy_. They are
+ private implementation details that can be changed or removed. */
+
+/* All symbols defined below should begin with yy or YY, to avoid
+ infringing on user name space. This should be done even for local
+ variables, as they might otherwise be expanded by user macros.
+ There are some unavoidable exceptions within include files to
+ define necessary library symbols; they are noted "INFRINGES ON
+ USER NAME SPACE" below. */
+
+/* Identify Bison output, and Bison version. */
+#define YYBISON 30705
+
+/* Bison version string. */
+#define YYBISON_VERSION "3.7.5"
+
+/* Skeleton name. */
+#define YYSKELETON_NAME "yacc.c"
+
+/* Pure parsers. */
+#define YYPURE 0
+
+/* Push parsers. */
+#define YYPUSH 0
+
+/* Pull parsers. */
+#define YYPULL 1
+
+
+/* Substitute the variable and function names. */
+#define yyparse base_yyparse
+#define yylex base_yylex
+#define yyerror base_yyerror
+#define yydebug base_yydebug
+#define yynerrs base_yynerrs
+#define yylval base_yylval
+#define yychar base_yychar
+#define yylloc base_yylloc
+
+/* First part of user prologue. */
+#line 5 "preproc.y"
+
+#include "postgres_fe.h"
+
+#include "preproc_extern.h"
+#include "ecpg_config.h"
+#include <unistd.h>
+
+/* Location tracking support --- simpler than bison's default */
+#define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do { \
+ if (N) \
+ (Current) = (Rhs)[1]; \
+ else \
+ (Current) = (Rhs)[0]; \
+ } while (0)
+
+/*
+ * The %name-prefix option below will make bison call base_yylex, but we
+ * really want it to call filtered_base_yylex (see parser.c).
+ */
+#define base_yylex filtered_base_yylex
+
+/*
+ * This is only here so the string gets into the POT. Bison uses it
+ * internally.
+ */
+#define bison_gettext_dummy gettext_noop("syntax error")
+
+/*
+ * Variables containing simple states.
+ */
+int struct_level = 0;
+int braces_open; /* brace level counter */
+char *current_function;
+int ecpg_internal_var = 0;
+char *connection = NULL;
+char *input_filename = NULL;
+
+static int FoundInto = 0;
+static int initializer = 0;
+static int pacounter = 1;
+static char pacounter_buffer[sizeof(int) * CHAR_BIT * 10 / 3]; /* a rough guess at the size we need */
+static struct this_type actual_type[STRUCT_DEPTH];
+static char *actual_startline[STRUCT_DEPTH];
+static int varchar_counter = 1;
+static int bytea_counter = 1;
+
+/* temporarily store struct members while creating the data structure */
+struct ECPGstruct_member *struct_member_list[STRUCT_DEPTH] = { NULL };
+
+/* also store struct type so we can do a sizeof() later */
+static char *ECPGstruct_sizeof = NULL;
+
+/* for forward declarations we have to store some data as well */
+static char *forward_name = NULL;
+
+struct ECPGtype ecpg_no_indicator = {ECPGt_NO_INDICATOR, NULL, NULL, NULL, {NULL}, 0};
+struct variable no_indicator = {"no_indicator", &ecpg_no_indicator, 0, NULL};
+
+static struct ECPGtype ecpg_query = {ECPGt_char_variable, NULL, NULL, NULL, {NULL}, 0};
+
+static void vmmerror(int error_code, enum errortype type, const char *error, va_list ap) pg_attribute_printf(3, 0);
+
+static bool check_declared_list(const char*);
+
+/*
+ * Handle parsing errors and warnings
+ */
+static void
+vmmerror(int error_code, enum errortype type, const char *error, va_list ap)
+{
+ /* localize the error message string */
+ error = _(error);
+
+ fprintf(stderr, "%s:%d: ", input_filename, base_yylineno);
+
+ switch(type)
+ {
+ case ET_WARNING:
+ fprintf(stderr, _("WARNING: "));
+ break;
+ case ET_ERROR:
+ fprintf(stderr, _("ERROR: "));
+ break;
+ }
+
+ vfprintf(stderr, error, ap);
+
+ fprintf(stderr, "\n");
+
+ switch(type)
+ {
+ case ET_WARNING:
+ break;
+ case ET_ERROR:
+ ret_value = error_code;
+ break;
+ }
+}
+
+void
+mmerror(int error_code, enum errortype type, const char *error, ...)
+{
+ va_list ap;
+
+ va_start(ap, error);
+ vmmerror(error_code, type, error, ap);
+ va_end(ap);
+}
+
+void
+mmfatal(int error_code, const char *error, ...)
+{
+ va_list ap;
+
+ va_start(ap, error);
+ vmmerror(error_code, ET_ERROR, error, ap);
+ va_end(ap);
+
+ if (base_yyin)
+ fclose(base_yyin);
+ if (base_yyout)
+ fclose(base_yyout);
+
+ if (strcmp(output_filename, "-") != 0 && unlink(output_filename) != 0)
+ fprintf(stderr, _("could not remove output file \"%s\"\n"), output_filename);
+ exit(error_code);
+}
+
+/*
+ * string concatenation
+ */
+
+static char *
+cat2_str(char *str1, char *str2)
+{
+ char * res_str = (char *)mm_alloc(strlen(str1) + strlen(str2) + 2);
+
+ strcpy(res_str, str1);
+ if (strlen(str1) != 0 && strlen(str2) != 0)
+ strcat(res_str, " ");
+ strcat(res_str, str2);
+ free(str1);
+ free(str2);
+ return res_str;
+}
+
+static char *
+cat_str(int count, ...)
+{
+ va_list args;
+ int i;
+ char *res_str;
+
+ va_start(args, count);
+
+ res_str = va_arg(args, char *);
+
+ /* now add all other strings */
+ for (i = 1; i < count; i++)
+ res_str = cat2_str(res_str, va_arg(args, char *));
+
+ va_end(args);
+
+ return res_str;
+}
+
+static char *
+make2_str(char *str1, char *str2)
+{
+ char * res_str = (char *)mm_alloc(strlen(str1) + strlen(str2) + 1);
+
+ strcpy(res_str, str1);
+ strcat(res_str, str2);
+ free(str1);
+ free(str2);
+ return res_str;
+}
+
+static char *
+make3_str(char *str1, char *str2, char *str3)
+{
+ char * res_str = (char *)mm_alloc(strlen(str1) + strlen(str2) +strlen(str3) + 1);
+
+ strcpy(res_str, str1);
+ strcat(res_str, str2);
+ strcat(res_str, str3);
+ free(str1);
+ free(str2);
+ free(str3);
+ return res_str;
+}
+
+/* and the rest */
+static char *
+make_name(void)
+{
+ return mm_strdup(base_yytext);
+}
+
+static char *
+create_questionmarks(char *name, bool array)
+{
+ struct variable *p = find_variable(name);
+ int count;
+ char *result = EMPTY;
+
+ /* In case we have a struct, we have to print as many "?" as there are attributes in the struct
+ * An array is only allowed together with an element argument
+ * This is essentially only used for inserts, but using a struct as input parameter is an error anywhere else
+ * so we don't have to worry here. */
+
+ if (p->type->type == ECPGt_struct || (array && p->type->type == ECPGt_array && p->type->u.element->type == ECPGt_struct))
+ {
+ struct ECPGstruct_member *m;
+
+ if (p->type->type == ECPGt_struct)
+ m = p->type->u.members;
+ else
+ m = p->type->u.element->u.members;
+
+ for (count = 0; m != NULL; m=m->next, count++);
+ }
+ else
+ count = 1;
+
+ for (; count > 0; count --)
+ {
+ sprintf(pacounter_buffer, "$%d", pacounter++);
+ result = cat_str(3, result, mm_strdup(pacounter_buffer), mm_strdup(" , "));
+ }
+
+ /* removed the trailing " ," */
+
+ result[strlen(result)-3] = '\0';
+ return result;
+}
+
+static char *
+adjust_outofscope_cursor_vars(struct cursor *cur)
+{
+ /* Informix accepts DECLARE with variables that are out of scope when OPEN is called.
+ * For instance you can DECLARE a cursor in one function, and OPEN/FETCH/CLOSE
+ * it in another functions. This is very useful for e.g. event-driver programming,
+ * but may also lead to dangerous programming. The limitation when this is allowed
+ * and doesn't cause problems have to be documented, like the allocated variables
+ * must not be realloc()'ed.
+ *
+ * We have to change the variables to our own struct and just store the pointer
+ * instead of the variable. Do it only for local variables, not for globals.
+ */
+
+ char *result = EMPTY;
+ int insert;
+
+ for (insert = 1; insert >= 0; insert--)
+ {
+ struct arguments *list;
+ struct arguments *ptr;
+ struct arguments *newlist = NULL;
+ struct variable *newvar, *newind;
+
+ list = (insert ? cur->argsinsert : cur->argsresult);
+
+ for (ptr = list; ptr != NULL; ptr = ptr->next)
+ {
+ char var_text[20];
+ char *original_var;
+ bool skip_set_var = false;
+ bool var_ptr = false;
+
+ /* change variable name to "ECPGget_var(<counter>)" */
+ original_var = ptr->variable->name;
+ sprintf(var_text, "%d))", ecpg_internal_var);
+
+ /* Don't emit ECPGset_var() calls for global variables */
+ if (ptr->variable->brace_level == 0)
+ {
+ newvar = ptr->variable;
+ skip_set_var = true;
+ }
+ else if ((ptr->variable->type->type == ECPGt_char_variable)
+ && (strncmp(ptr->variable->name, "ECPGprepared_statement", strlen("ECPGprepared_statement")) == 0))
+ {
+ newvar = ptr->variable;
+ skip_set_var = true;
+ }
+ else if ((ptr->variable->type->type != ECPGt_varchar
+ && ptr->variable->type->type != ECPGt_char
+ && ptr->variable->type->type != ECPGt_unsigned_char
+ && ptr->variable->type->type != ECPGt_string
+ && ptr->variable->type->type != ECPGt_bytea)
+ && atoi(ptr->variable->type->size) > 1)
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,
+ mm_strdup("1"),
+ ptr->variable->type->u.element->counter),
+ ptr->variable->type->size),
+ 0);
+ }
+ else if ((ptr->variable->type->type == ECPGt_varchar
+ || ptr->variable->type->type == ECPGt_char
+ || ptr->variable->type->type == ECPGt_unsigned_char
+ || ptr->variable->type->type == ECPGt_string
+ || ptr->variable->type->type == ECPGt_bytea)
+ && atoi(ptr->variable->type->size) > 1)
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->variable->type->type,
+ ptr->variable->type->size,
+ ptr->variable->type->counter),
+ 0);
+ if (ptr->variable->type->type == ECPGt_varchar ||
+ ptr->variable->type->type == ECPGt_bytea)
+ var_ptr = true;
+ }
+ else if (ptr->variable->type->type == ECPGt_struct
+ || ptr->variable->type->type == ECPGt_union)
+ {
+ newvar = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->variable->type->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->variable->type->u.members,
+ ptr->variable->type->type,
+ ptr->variable->type->type_name,
+ ptr->variable->type->struct_sizeof),
+ 0);
+ var_ptr = true;
+ }
+ else if (ptr->variable->type->type == ECPGt_array)
+ {
+ if (ptr->variable->type->u.element->type == ECPGt_struct
+ || ptr->variable->type->u.element->type == ECPGt_union)
+ {
+ newvar = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->variable->type->u.element->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->variable->type->u.element->u.members,
+ ptr->variable->type->u.element->type,
+ ptr->variable->type->u.element->type_name,
+ ptr->variable->type->u.element->struct_sizeof),
+ 0);
+ }
+ else
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,
+ ptr->variable->type->u.element->size,
+ ptr->variable->type->u.element->counter),
+ ptr->variable->type->size),
+ 0);
+ var_ptr = true;
+ }
+ }
+ else
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("*("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->variable->type->type,
+ ptr->variable->type->size,
+ ptr->variable->type->counter),
+ 0);
+ var_ptr = true;
+ }
+
+ /* create call to "ECPGset_var(<counter>, <connection>, <pointer>. <line number>)" */
+ if (!skip_set_var)
+ {
+ sprintf(var_text, "%d, %s", ecpg_internal_var++, var_ptr ? "&(" : "(");
+ result = cat_str(5, result, mm_strdup("ECPGset_var("),
+ mm_strdup(var_text), mm_strdup(original_var),
+ mm_strdup("), __LINE__);\n"));
+ }
+
+ /* now the indicator if there is one and it's not a global variable */
+ if ((ptr->indicator->type->type == ECPGt_NO_INDICATOR) || (ptr->indicator->brace_level == 0))
+ {
+ newind = ptr->indicator;
+ }
+ else
+ {
+ /* change variable name to "ECPGget_var(<counter>)" */
+ original_var = ptr->indicator->name;
+ sprintf(var_text, "%d))", ecpg_internal_var);
+ var_ptr = false;
+
+ if (ptr->indicator->type->type == ECPGt_struct
+ || ptr->indicator->type->type == ECPGt_union)
+ {
+ newind = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->indicator->type->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->indicator->type->u.members,
+ ptr->indicator->type->type,
+ ptr->indicator->type->type_name,
+ ptr->indicator->type->struct_sizeof),
+ 0);
+ var_ptr = true;
+ }
+ else if (ptr->indicator->type->type == ECPGt_array)
+ {
+ if (ptr->indicator->type->u.element->type == ECPGt_struct
+ || ptr->indicator->type->u.element->type == ECPGt_union)
+ {
+ newind = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->indicator->type->u.element->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->indicator->type->u.element->u.members,
+ ptr->indicator->type->u.element->type,
+ ptr->indicator->type->u.element->type_name,
+ ptr->indicator->type->u.element->struct_sizeof),
+ 0);
+ }
+ else
+ {
+ newind = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->indicator->type->u.element->type)),
+ mm_strdup(" *)(ECPGget_var("), mm_strdup(var_text)),
+ ECPGmake_array_type(ECPGmake_simple_type(ptr->indicator->type->u.element->type,
+ ptr->indicator->type->u.element->size,
+ ptr->indicator->type->u.element->counter),
+ ptr->indicator->type->size),
+ 0);
+ var_ptr = true;
+ }
+ }
+ else if (atoi(ptr->indicator->type->size) > 1)
+ {
+ newind = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->indicator->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->indicator->type->type,
+ ptr->indicator->type->size,
+ ptr->variable->type->counter),
+ 0);
+ }
+ else
+ {
+ newind = new_variable(cat_str(4, mm_strdup("*("),
+ mm_strdup(ecpg_type_name(ptr->indicator->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->indicator->type->type,
+ ptr->indicator->type->size,
+ ptr->variable->type->counter),
+ 0);
+ var_ptr = true;
+ }
+
+ /* create call to "ECPGset_var(<counter>, <pointer>. <line number>)" */
+ sprintf(var_text, "%d, %s", ecpg_internal_var++, var_ptr ? "&(" : "(");
+ result = cat_str(5, result, mm_strdup("ECPGset_var("),
+ mm_strdup(var_text), mm_strdup(original_var),
+ mm_strdup("), __LINE__);\n"));
+ }
+
+ add_variable_to_tail(&newlist, newvar, newind);
+ }
+
+ if (insert)
+ cur->argsinsert_oos = newlist;
+ else
+ cur->argsresult_oos = newlist;
+ }
+
+ return result;
+}
+
+/* This tests whether the cursor was declared and opened in the same function. */
+#define SAMEFUNC(cur) \
+ ((cur->function == NULL) || \
+ (cur->function != NULL && strcmp(cur->function, current_function) == 0))
+
+static struct cursor *
+add_additional_variables(char *name, bool insert)
+{
+ struct cursor *ptr;
+ struct arguments *p;
+ int (* strcmp_fn)(const char *, const char *) = ((name[0] == ':' || name[0] == '"') ? strcmp : pg_strcasecmp);
+
+ for (ptr = cur; ptr != NULL; ptr=ptr->next)
+ {
+ if (strcmp_fn(ptr->name, name) == 0)
+ break;
+ }
+
+ if (ptr == NULL)
+ {
+ mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" does not exist", name);
+ return NULL;
+ }
+
+ if (insert)
+ {
+ /* add all those input variables that were given earlier
+ * note that we have to append here but have to keep the existing order */
+ for (p = (SAMEFUNC(ptr) ? ptr->argsinsert : ptr->argsinsert_oos); p; p = p->next)
+ add_variable_to_tail(&argsinsert, p->variable, p->indicator);
+ }
+
+ /* add all those output variables that were given earlier */
+ for (p = (SAMEFUNC(ptr) ? ptr->argsresult : ptr->argsresult_oos); p; p = p->next)
+ add_variable_to_tail(&argsresult, p->variable, p->indicator);
+
+ return ptr;
+}
+
+static void
+add_typedef(char *name, char *dimension, char *length, enum ECPGttype type_enum,
+ char *type_dimension, char *type_index, int initializer, int array)
+{
+ /* add entry to list */
+ struct typedefs *ptr, *this;
+
+ if ((type_enum == ECPGt_struct ||
+ type_enum == ECPGt_union) &&
+ initializer == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "initializer not allowed in type definition");
+ else if (INFORMIX_MODE && strcmp(name, "string") == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "type name \"string\" is reserved in Informix mode");
+ else
+ {
+ for (ptr = types; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp(name, ptr->name) == 0)
+ /* re-definition is a bug */
+ mmerror(PARSE_ERROR, ET_ERROR, "type \"%s\" is already defined", name);
+ }
+ adjust_array(type_enum, &dimension, &length, type_dimension, type_index, array, true);
+
+ this = (struct typedefs *) mm_alloc(sizeof(struct typedefs));
+
+ /* initial definition */
+ this->next = types;
+ this->name = name;
+ this->brace_level = braces_open;
+ this->type = (struct this_type *) mm_alloc(sizeof(struct this_type));
+ this->type->type_enum = type_enum;
+ this->type->type_str = mm_strdup(name);
+ this->type->type_dimension = dimension; /* dimension of array */
+ this->type->type_index = length; /* length of string */
+ this->type->type_sizeof = ECPGstruct_sizeof;
+ this->struct_member_list = (type_enum == ECPGt_struct || type_enum == ECPGt_union) ?
+ ECPGstruct_member_dup(struct_member_list[struct_level]) : NULL;
+
+ if (type_enum != ECPGt_varchar &&
+ type_enum != ECPGt_bytea &&
+ type_enum != ECPGt_char &&
+ type_enum != ECPGt_unsigned_char &&
+ type_enum != ECPGt_string &&
+ atoi(this->type->type_index) >= 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "multidimensional arrays for simple data types are not supported");
+
+ types = this;
+ }
+}
+
+/*
+ * check an SQL identifier is declared or not.
+ * If it is already declared, the global variable
+ * connection will be changed to the related connection.
+ */
+static bool
+check_declared_list(const char *name)
+{
+ struct declared_list *ptr = NULL;
+ for (ptr = g_declared_list; ptr != NULL; ptr = ptr -> next)
+ {
+ if (!ptr->connection)
+ continue;
+ if (strcmp(name, ptr -> name) == 0)
+ {
+ if (connection && strcmp(ptr->connection, connection) != 0)
+ mmerror(PARSE_ERROR, ET_WARNING, "connection %s is overwritten with %s by DECLARE statement %s", connection, ptr->connection, name);
+ connection = mm_strdup(ptr -> connection);
+ return true;
+ }
+ }
+ return false;
+}
+
+#line 682 "preproc.c"
+
+# ifndef YY_CAST
+# ifdef __cplusplus
+# define YY_CAST(Type, Val) static_cast<Type> (Val)
+# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
+# else
+# define YY_CAST(Type, Val) ((Type) (Val))
+# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
+# endif
+# endif
+# ifndef YY_NULLPTR
+# if defined __cplusplus
+# if 201103L <= __cplusplus
+# define YY_NULLPTR nullptr
+# else
+# define YY_NULLPTR 0
+# endif
+# else
+# define YY_NULLPTR ((void*)0)
+# endif
+# endif
+
+#include "preproc.h"
+/* Symbol kind. */
+enum yysymbol_kind_t
+{
+ YYSYMBOL_YYEMPTY = -2,
+ YYSYMBOL_YYEOF = 0, /* "end of file" */
+ YYSYMBOL_YYerror = 1, /* error */
+ YYSYMBOL_YYUNDEF = 2, /* "invalid token" */
+ YYSYMBOL_SQL_ALLOCATE = 3, /* SQL_ALLOCATE */
+ YYSYMBOL_SQL_AUTOCOMMIT = 4, /* SQL_AUTOCOMMIT */
+ YYSYMBOL_SQL_BOOL = 5, /* SQL_BOOL */
+ YYSYMBOL_SQL_BREAK = 6, /* SQL_BREAK */
+ YYSYMBOL_SQL_CARDINALITY = 7, /* SQL_CARDINALITY */
+ YYSYMBOL_SQL_CONNECT = 8, /* SQL_CONNECT */
+ YYSYMBOL_SQL_COUNT = 9, /* SQL_COUNT */
+ YYSYMBOL_SQL_DATETIME_INTERVAL_CODE = 10, /* SQL_DATETIME_INTERVAL_CODE */
+ YYSYMBOL_SQL_DATETIME_INTERVAL_PRECISION = 11, /* SQL_DATETIME_INTERVAL_PRECISION */
+ YYSYMBOL_SQL_DESCRIBE = 12, /* SQL_DESCRIBE */
+ YYSYMBOL_SQL_DESCRIPTOR = 13, /* SQL_DESCRIPTOR */
+ YYSYMBOL_SQL_DISCONNECT = 14, /* SQL_DISCONNECT */
+ YYSYMBOL_SQL_FOUND = 15, /* SQL_FOUND */
+ YYSYMBOL_SQL_FREE = 16, /* SQL_FREE */
+ YYSYMBOL_SQL_GET = 17, /* SQL_GET */
+ YYSYMBOL_SQL_GO = 18, /* SQL_GO */
+ YYSYMBOL_SQL_GOTO = 19, /* SQL_GOTO */
+ YYSYMBOL_SQL_IDENTIFIED = 20, /* SQL_IDENTIFIED */
+ YYSYMBOL_SQL_INDICATOR = 21, /* SQL_INDICATOR */
+ YYSYMBOL_SQL_KEY_MEMBER = 22, /* SQL_KEY_MEMBER */
+ YYSYMBOL_SQL_LENGTH = 23, /* SQL_LENGTH */
+ YYSYMBOL_SQL_LONG = 24, /* SQL_LONG */
+ YYSYMBOL_SQL_NULLABLE = 25, /* SQL_NULLABLE */
+ YYSYMBOL_SQL_OCTET_LENGTH = 26, /* SQL_OCTET_LENGTH */
+ YYSYMBOL_SQL_OPEN = 27, /* SQL_OPEN */
+ YYSYMBOL_SQL_OUTPUT = 28, /* SQL_OUTPUT */
+ YYSYMBOL_SQL_REFERENCE = 29, /* SQL_REFERENCE */
+ YYSYMBOL_SQL_RETURNED_LENGTH = 30, /* SQL_RETURNED_LENGTH */
+ YYSYMBOL_SQL_RETURNED_OCTET_LENGTH = 31, /* SQL_RETURNED_OCTET_LENGTH */
+ YYSYMBOL_SQL_SCALE = 32, /* SQL_SCALE */
+ YYSYMBOL_SQL_SECTION = 33, /* SQL_SECTION */
+ YYSYMBOL_SQL_SHORT = 34, /* SQL_SHORT */
+ YYSYMBOL_SQL_SIGNED = 35, /* SQL_SIGNED */
+ YYSYMBOL_SQL_SQLERROR = 36, /* SQL_SQLERROR */
+ YYSYMBOL_SQL_SQLPRINT = 37, /* SQL_SQLPRINT */
+ YYSYMBOL_SQL_SQLWARNING = 38, /* SQL_SQLWARNING */
+ YYSYMBOL_SQL_START = 39, /* SQL_START */
+ YYSYMBOL_SQL_STOP = 40, /* SQL_STOP */
+ YYSYMBOL_SQL_STRUCT = 41, /* SQL_STRUCT */
+ YYSYMBOL_SQL_UNSIGNED = 42, /* SQL_UNSIGNED */
+ YYSYMBOL_SQL_VAR = 43, /* SQL_VAR */
+ YYSYMBOL_SQL_WHENEVER = 44, /* SQL_WHENEVER */
+ YYSYMBOL_S_ADD = 45, /* S_ADD */
+ YYSYMBOL_S_AND = 46, /* S_AND */
+ YYSYMBOL_S_ANYTHING = 47, /* S_ANYTHING */
+ YYSYMBOL_S_AUTO = 48, /* S_AUTO */
+ YYSYMBOL_S_CONST = 49, /* S_CONST */
+ YYSYMBOL_S_DEC = 50, /* S_DEC */
+ YYSYMBOL_S_DIV = 51, /* S_DIV */
+ YYSYMBOL_S_DOTPOINT = 52, /* S_DOTPOINT */
+ YYSYMBOL_S_EQUAL = 53, /* S_EQUAL */
+ YYSYMBOL_S_EXTERN = 54, /* S_EXTERN */
+ YYSYMBOL_S_INC = 55, /* S_INC */
+ YYSYMBOL_S_LSHIFT = 56, /* S_LSHIFT */
+ YYSYMBOL_S_MEMPOINT = 57, /* S_MEMPOINT */
+ YYSYMBOL_S_MEMBER = 58, /* S_MEMBER */
+ YYSYMBOL_S_MOD = 59, /* S_MOD */
+ YYSYMBOL_S_MUL = 60, /* S_MUL */
+ YYSYMBOL_S_NEQUAL = 61, /* S_NEQUAL */
+ YYSYMBOL_S_OR = 62, /* S_OR */
+ YYSYMBOL_S_REGISTER = 63, /* S_REGISTER */
+ YYSYMBOL_S_RSHIFT = 64, /* S_RSHIFT */
+ YYSYMBOL_S_STATIC = 65, /* S_STATIC */
+ YYSYMBOL_S_SUB = 66, /* S_SUB */
+ YYSYMBOL_S_VOLATILE = 67, /* S_VOLATILE */
+ YYSYMBOL_S_TYPEDEF = 68, /* S_TYPEDEF */
+ YYSYMBOL_CSTRING = 69, /* CSTRING */
+ YYSYMBOL_CVARIABLE = 70, /* CVARIABLE */
+ YYSYMBOL_CPP_LINE = 71, /* CPP_LINE */
+ YYSYMBOL_IP = 72, /* IP */
+ YYSYMBOL_IDENT = 73, /* IDENT */
+ YYSYMBOL_UIDENT = 74, /* UIDENT */
+ YYSYMBOL_FCONST = 75, /* FCONST */
+ YYSYMBOL_SCONST = 76, /* SCONST */
+ YYSYMBOL_USCONST = 77, /* USCONST */
+ YYSYMBOL_BCONST = 78, /* BCONST */
+ YYSYMBOL_XCONST = 79, /* XCONST */
+ YYSYMBOL_Op = 80, /* Op */
+ YYSYMBOL_ICONST = 81, /* ICONST */
+ YYSYMBOL_PARAM = 82, /* PARAM */
+ YYSYMBOL_TYPECAST = 83, /* TYPECAST */
+ YYSYMBOL_DOT_DOT = 84, /* DOT_DOT */
+ YYSYMBOL_COLON_EQUALS = 85, /* COLON_EQUALS */
+ YYSYMBOL_EQUALS_GREATER = 86, /* EQUALS_GREATER */
+ YYSYMBOL_LESS_EQUALS = 87, /* LESS_EQUALS */
+ YYSYMBOL_GREATER_EQUALS = 88, /* GREATER_EQUALS */
+ YYSYMBOL_NOT_EQUALS = 89, /* NOT_EQUALS */
+ YYSYMBOL_ABORT_P = 90, /* ABORT_P */
+ YYSYMBOL_ABSOLUTE_P = 91, /* ABSOLUTE_P */
+ YYSYMBOL_ACCESS = 92, /* ACCESS */
+ YYSYMBOL_ACTION = 93, /* ACTION */
+ YYSYMBOL_ADD_P = 94, /* ADD_P */
+ YYSYMBOL_ADMIN = 95, /* ADMIN */
+ YYSYMBOL_AFTER = 96, /* AFTER */
+ YYSYMBOL_AGGREGATE = 97, /* AGGREGATE */
+ YYSYMBOL_ALL = 98, /* ALL */
+ YYSYMBOL_ALSO = 99, /* ALSO */
+ YYSYMBOL_ALTER = 100, /* ALTER */
+ YYSYMBOL_ALWAYS = 101, /* ALWAYS */
+ YYSYMBOL_ANALYSE = 102, /* ANALYSE */
+ YYSYMBOL_ANALYZE = 103, /* ANALYZE */
+ YYSYMBOL_AND = 104, /* AND */
+ YYSYMBOL_ANY = 105, /* ANY */
+ YYSYMBOL_ARRAY = 106, /* ARRAY */
+ YYSYMBOL_AS = 107, /* AS */
+ YYSYMBOL_ASC = 108, /* ASC */
+ YYSYMBOL_ASENSITIVE = 109, /* ASENSITIVE */
+ YYSYMBOL_ASSERTION = 110, /* ASSERTION */
+ YYSYMBOL_ASSIGNMENT = 111, /* ASSIGNMENT */
+ YYSYMBOL_ASYMMETRIC = 112, /* ASYMMETRIC */
+ YYSYMBOL_ATOMIC = 113, /* ATOMIC */
+ YYSYMBOL_AT = 114, /* AT */
+ YYSYMBOL_ATTACH = 115, /* ATTACH */
+ YYSYMBOL_ATTRIBUTE = 116, /* ATTRIBUTE */
+ YYSYMBOL_AUTHORIZATION = 117, /* AUTHORIZATION */
+ YYSYMBOL_BACKWARD = 118, /* BACKWARD */
+ YYSYMBOL_BEFORE = 119, /* BEFORE */
+ YYSYMBOL_BEGIN_P = 120, /* BEGIN_P */
+ YYSYMBOL_BETWEEN = 121, /* BETWEEN */
+ YYSYMBOL_BIGINT = 122, /* BIGINT */
+ YYSYMBOL_BINARY = 123, /* BINARY */
+ YYSYMBOL_BIT = 124, /* BIT */
+ YYSYMBOL_BOOLEAN_P = 125, /* BOOLEAN_P */
+ YYSYMBOL_BOTH = 126, /* BOTH */
+ YYSYMBOL_BREADTH = 127, /* BREADTH */
+ YYSYMBOL_BY = 128, /* BY */
+ YYSYMBOL_CACHE = 129, /* CACHE */
+ YYSYMBOL_CALL = 130, /* CALL */
+ YYSYMBOL_CALLED = 131, /* CALLED */
+ YYSYMBOL_CASCADE = 132, /* CASCADE */
+ YYSYMBOL_CASCADED = 133, /* CASCADED */
+ YYSYMBOL_CASE = 134, /* CASE */
+ YYSYMBOL_CAST = 135, /* CAST */
+ YYSYMBOL_CATALOG_P = 136, /* CATALOG_P */
+ YYSYMBOL_CHAIN = 137, /* CHAIN */
+ YYSYMBOL_CHAR_P = 138, /* CHAR_P */
+ YYSYMBOL_CHARACTER = 139, /* CHARACTER */
+ YYSYMBOL_CHARACTERISTICS = 140, /* CHARACTERISTICS */
+ YYSYMBOL_CHECK = 141, /* CHECK */
+ YYSYMBOL_CHECKPOINT = 142, /* CHECKPOINT */
+ YYSYMBOL_CLASS = 143, /* CLASS */
+ YYSYMBOL_CLOSE = 144, /* CLOSE */
+ YYSYMBOL_CLUSTER = 145, /* CLUSTER */
+ YYSYMBOL_COALESCE = 146, /* COALESCE */
+ YYSYMBOL_COLLATE = 147, /* COLLATE */
+ YYSYMBOL_COLLATION = 148, /* COLLATION */
+ YYSYMBOL_COLUMN = 149, /* COLUMN */
+ YYSYMBOL_COLUMNS = 150, /* COLUMNS */
+ YYSYMBOL_COMMENT = 151, /* COMMENT */
+ YYSYMBOL_COMMENTS = 152, /* COMMENTS */
+ YYSYMBOL_COMMIT = 153, /* COMMIT */
+ YYSYMBOL_COMMITTED = 154, /* COMMITTED */
+ YYSYMBOL_COMPRESSION = 155, /* COMPRESSION */
+ YYSYMBOL_CONCURRENTLY = 156, /* CONCURRENTLY */
+ YYSYMBOL_CONFIGURATION = 157, /* CONFIGURATION */
+ YYSYMBOL_CONFLICT = 158, /* CONFLICT */
+ YYSYMBOL_CONNECTION = 159, /* CONNECTION */
+ YYSYMBOL_CONSTRAINT = 160, /* CONSTRAINT */
+ YYSYMBOL_CONSTRAINTS = 161, /* CONSTRAINTS */
+ YYSYMBOL_CONTENT_P = 162, /* CONTENT_P */
+ YYSYMBOL_CONTINUE_P = 163, /* CONTINUE_P */
+ YYSYMBOL_CONVERSION_P = 164, /* CONVERSION_P */
+ YYSYMBOL_COPY = 165, /* COPY */
+ YYSYMBOL_COST = 166, /* COST */
+ YYSYMBOL_CREATE = 167, /* CREATE */
+ YYSYMBOL_CROSS = 168, /* CROSS */
+ YYSYMBOL_CSV = 169, /* CSV */
+ YYSYMBOL_CUBE = 170, /* CUBE */
+ YYSYMBOL_CURRENT_P = 171, /* CURRENT_P */
+ YYSYMBOL_CURRENT_CATALOG = 172, /* CURRENT_CATALOG */
+ YYSYMBOL_CURRENT_DATE = 173, /* CURRENT_DATE */
+ YYSYMBOL_CURRENT_ROLE = 174, /* CURRENT_ROLE */
+ YYSYMBOL_CURRENT_SCHEMA = 175, /* CURRENT_SCHEMA */
+ YYSYMBOL_CURRENT_TIME = 176, /* CURRENT_TIME */
+ YYSYMBOL_CURRENT_TIMESTAMP = 177, /* CURRENT_TIMESTAMP */
+ YYSYMBOL_CURRENT_USER = 178, /* CURRENT_USER */
+ YYSYMBOL_CURSOR = 179, /* CURSOR */
+ YYSYMBOL_CYCLE = 180, /* CYCLE */
+ YYSYMBOL_DATA_P = 181, /* DATA_P */
+ YYSYMBOL_DATABASE = 182, /* DATABASE */
+ YYSYMBOL_DAY_P = 183, /* DAY_P */
+ YYSYMBOL_DEALLOCATE = 184, /* DEALLOCATE */
+ YYSYMBOL_DEC = 185, /* DEC */
+ YYSYMBOL_DECIMAL_P = 186, /* DECIMAL_P */
+ YYSYMBOL_DECLARE = 187, /* DECLARE */
+ YYSYMBOL_DEFAULT = 188, /* DEFAULT */
+ YYSYMBOL_DEFAULTS = 189, /* DEFAULTS */
+ YYSYMBOL_DEFERRABLE = 190, /* DEFERRABLE */
+ YYSYMBOL_DEFERRED = 191, /* DEFERRED */
+ YYSYMBOL_DEFINER = 192, /* DEFINER */
+ YYSYMBOL_DELETE_P = 193, /* DELETE_P */
+ YYSYMBOL_DELIMITER = 194, /* DELIMITER */
+ YYSYMBOL_DELIMITERS = 195, /* DELIMITERS */
+ YYSYMBOL_DEPENDS = 196, /* DEPENDS */
+ YYSYMBOL_DEPTH = 197, /* DEPTH */
+ YYSYMBOL_DESC = 198, /* DESC */
+ YYSYMBOL_DETACH = 199, /* DETACH */
+ YYSYMBOL_DICTIONARY = 200, /* DICTIONARY */
+ YYSYMBOL_DISABLE_P = 201, /* DISABLE_P */
+ YYSYMBOL_DISCARD = 202, /* DISCARD */
+ YYSYMBOL_DISTINCT = 203, /* DISTINCT */
+ YYSYMBOL_DO = 204, /* DO */
+ YYSYMBOL_DOCUMENT_P = 205, /* DOCUMENT_P */
+ YYSYMBOL_DOMAIN_P = 206, /* DOMAIN_P */
+ YYSYMBOL_DOUBLE_P = 207, /* DOUBLE_P */
+ YYSYMBOL_DROP = 208, /* DROP */
+ YYSYMBOL_EACH = 209, /* EACH */
+ YYSYMBOL_ELSE = 210, /* ELSE */
+ YYSYMBOL_ENABLE_P = 211, /* ENABLE_P */
+ YYSYMBOL_ENCODING = 212, /* ENCODING */
+ YYSYMBOL_ENCRYPTED = 213, /* ENCRYPTED */
+ YYSYMBOL_END_P = 214, /* END_P */
+ YYSYMBOL_ENUM_P = 215, /* ENUM_P */
+ YYSYMBOL_ESCAPE = 216, /* ESCAPE */
+ YYSYMBOL_EVENT = 217, /* EVENT */
+ YYSYMBOL_EXCEPT = 218, /* EXCEPT */
+ YYSYMBOL_EXCLUDE = 219, /* EXCLUDE */
+ YYSYMBOL_EXCLUDING = 220, /* EXCLUDING */
+ YYSYMBOL_EXCLUSIVE = 221, /* EXCLUSIVE */
+ YYSYMBOL_EXECUTE = 222, /* EXECUTE */
+ YYSYMBOL_EXISTS = 223, /* EXISTS */
+ YYSYMBOL_EXPLAIN = 224, /* EXPLAIN */
+ YYSYMBOL_EXPRESSION = 225, /* EXPRESSION */
+ YYSYMBOL_EXTENSION = 226, /* EXTENSION */
+ YYSYMBOL_EXTERNAL = 227, /* EXTERNAL */
+ YYSYMBOL_EXTRACT = 228, /* EXTRACT */
+ YYSYMBOL_FALSE_P = 229, /* FALSE_P */
+ YYSYMBOL_FAMILY = 230, /* FAMILY */
+ YYSYMBOL_FETCH = 231, /* FETCH */
+ YYSYMBOL_FILTER = 232, /* FILTER */
+ YYSYMBOL_FINALIZE = 233, /* FINALIZE */
+ YYSYMBOL_FIRST_P = 234, /* FIRST_P */
+ YYSYMBOL_FLOAT_P = 235, /* FLOAT_P */
+ YYSYMBOL_FOLLOWING = 236, /* FOLLOWING */
+ YYSYMBOL_FOR = 237, /* FOR */
+ YYSYMBOL_FORCE = 238, /* FORCE */
+ YYSYMBOL_FOREIGN = 239, /* FOREIGN */
+ YYSYMBOL_FORWARD = 240, /* FORWARD */
+ YYSYMBOL_FREEZE = 241, /* FREEZE */
+ YYSYMBOL_FROM = 242, /* FROM */
+ YYSYMBOL_FULL = 243, /* FULL */
+ YYSYMBOL_FUNCTION = 244, /* FUNCTION */
+ YYSYMBOL_FUNCTIONS = 245, /* FUNCTIONS */
+ YYSYMBOL_GENERATED = 246, /* GENERATED */
+ YYSYMBOL_GLOBAL = 247, /* GLOBAL */
+ YYSYMBOL_GRANT = 248, /* GRANT */
+ YYSYMBOL_GRANTED = 249, /* GRANTED */
+ YYSYMBOL_GREATEST = 250, /* GREATEST */
+ YYSYMBOL_GROUP_P = 251, /* GROUP_P */
+ YYSYMBOL_GROUPING = 252, /* GROUPING */
+ YYSYMBOL_GROUPS = 253, /* GROUPS */
+ YYSYMBOL_HANDLER = 254, /* HANDLER */
+ YYSYMBOL_HAVING = 255, /* HAVING */
+ YYSYMBOL_HEADER_P = 256, /* HEADER_P */
+ YYSYMBOL_HOLD = 257, /* HOLD */
+ YYSYMBOL_HOUR_P = 258, /* HOUR_P */
+ YYSYMBOL_IDENTITY_P = 259, /* IDENTITY_P */
+ YYSYMBOL_IF_P = 260, /* IF_P */
+ YYSYMBOL_ILIKE = 261, /* ILIKE */
+ YYSYMBOL_IMMEDIATE = 262, /* IMMEDIATE */
+ YYSYMBOL_IMMUTABLE = 263, /* IMMUTABLE */
+ YYSYMBOL_IMPLICIT_P = 264, /* IMPLICIT_P */
+ YYSYMBOL_IMPORT_P = 265, /* IMPORT_P */
+ YYSYMBOL_IN_P = 266, /* IN_P */
+ YYSYMBOL_INCLUDE = 267, /* INCLUDE */
+ YYSYMBOL_INCLUDING = 268, /* INCLUDING */
+ YYSYMBOL_INCREMENT = 269, /* INCREMENT */
+ YYSYMBOL_INDEX = 270, /* INDEX */
+ YYSYMBOL_INDEXES = 271, /* INDEXES */
+ YYSYMBOL_INHERIT = 272, /* INHERIT */
+ YYSYMBOL_INHERITS = 273, /* INHERITS */
+ YYSYMBOL_INITIALLY = 274, /* INITIALLY */
+ YYSYMBOL_INLINE_P = 275, /* INLINE_P */
+ YYSYMBOL_INNER_P = 276, /* INNER_P */
+ YYSYMBOL_INOUT = 277, /* INOUT */
+ YYSYMBOL_INPUT_P = 278, /* INPUT_P */
+ YYSYMBOL_INSENSITIVE = 279, /* INSENSITIVE */
+ YYSYMBOL_INSERT = 280, /* INSERT */
+ YYSYMBOL_INSTEAD = 281, /* INSTEAD */
+ YYSYMBOL_INT_P = 282, /* INT_P */
+ YYSYMBOL_INTEGER = 283, /* INTEGER */
+ YYSYMBOL_INTERSECT = 284, /* INTERSECT */
+ YYSYMBOL_INTERVAL = 285, /* INTERVAL */
+ YYSYMBOL_INTO = 286, /* INTO */
+ YYSYMBOL_INVOKER = 287, /* INVOKER */
+ YYSYMBOL_IS = 288, /* IS */
+ YYSYMBOL_ISNULL = 289, /* ISNULL */
+ YYSYMBOL_ISOLATION = 290, /* ISOLATION */
+ YYSYMBOL_JOIN = 291, /* JOIN */
+ YYSYMBOL_KEY = 292, /* KEY */
+ YYSYMBOL_LABEL = 293, /* LABEL */
+ YYSYMBOL_LANGUAGE = 294, /* LANGUAGE */
+ YYSYMBOL_LARGE_P = 295, /* LARGE_P */
+ YYSYMBOL_LAST_P = 296, /* LAST_P */
+ YYSYMBOL_LATERAL_P = 297, /* LATERAL_P */
+ YYSYMBOL_LEADING = 298, /* LEADING */
+ YYSYMBOL_LEAKPROOF = 299, /* LEAKPROOF */
+ YYSYMBOL_LEAST = 300, /* LEAST */
+ YYSYMBOL_LEFT = 301, /* LEFT */
+ YYSYMBOL_LEVEL = 302, /* LEVEL */
+ YYSYMBOL_LIKE = 303, /* LIKE */
+ YYSYMBOL_LIMIT = 304, /* LIMIT */
+ YYSYMBOL_LISTEN = 305, /* LISTEN */
+ YYSYMBOL_LOAD = 306, /* LOAD */
+ YYSYMBOL_LOCAL = 307, /* LOCAL */
+ YYSYMBOL_LOCALTIME = 308, /* LOCALTIME */
+ YYSYMBOL_LOCALTIMESTAMP = 309, /* LOCALTIMESTAMP */
+ YYSYMBOL_LOCATION = 310, /* LOCATION */
+ YYSYMBOL_LOCK_P = 311, /* LOCK_P */
+ YYSYMBOL_LOCKED = 312, /* LOCKED */
+ YYSYMBOL_LOGGED = 313, /* LOGGED */
+ YYSYMBOL_MAPPING = 314, /* MAPPING */
+ YYSYMBOL_MATCH = 315, /* MATCH */
+ YYSYMBOL_MATCHED = 316, /* MATCHED */
+ YYSYMBOL_MATERIALIZED = 317, /* MATERIALIZED */
+ YYSYMBOL_MAXVALUE = 318, /* MAXVALUE */
+ YYSYMBOL_MERGE = 319, /* MERGE */
+ YYSYMBOL_METHOD = 320, /* METHOD */
+ YYSYMBOL_MINUTE_P = 321, /* MINUTE_P */
+ YYSYMBOL_MINVALUE = 322, /* MINVALUE */
+ YYSYMBOL_MODE = 323, /* MODE */
+ YYSYMBOL_MONTH_P = 324, /* MONTH_P */
+ YYSYMBOL_MOVE = 325, /* MOVE */
+ YYSYMBOL_NAME_P = 326, /* NAME_P */
+ YYSYMBOL_NAMES = 327, /* NAMES */
+ YYSYMBOL_NATIONAL = 328, /* NATIONAL */
+ YYSYMBOL_NATURAL = 329, /* NATURAL */
+ YYSYMBOL_NCHAR = 330, /* NCHAR */
+ YYSYMBOL_NEW = 331, /* NEW */
+ YYSYMBOL_NEXT = 332, /* NEXT */
+ YYSYMBOL_NFC = 333, /* NFC */
+ YYSYMBOL_NFD = 334, /* NFD */
+ YYSYMBOL_NFKC = 335, /* NFKC */
+ YYSYMBOL_NFKD = 336, /* NFKD */
+ YYSYMBOL_NO = 337, /* NO */
+ YYSYMBOL_NONE = 338, /* NONE */
+ YYSYMBOL_NORMALIZE = 339, /* NORMALIZE */
+ YYSYMBOL_NORMALIZED = 340, /* NORMALIZED */
+ YYSYMBOL_NOT = 341, /* NOT */
+ YYSYMBOL_NOTHING = 342, /* NOTHING */
+ YYSYMBOL_NOTIFY = 343, /* NOTIFY */
+ YYSYMBOL_NOTNULL = 344, /* NOTNULL */
+ YYSYMBOL_NOWAIT = 345, /* NOWAIT */
+ YYSYMBOL_NULL_P = 346, /* NULL_P */
+ YYSYMBOL_NULLIF = 347, /* NULLIF */
+ YYSYMBOL_NULLS_P = 348, /* NULLS_P */
+ YYSYMBOL_NUMERIC = 349, /* NUMERIC */
+ YYSYMBOL_OBJECT_P = 350, /* OBJECT_P */
+ YYSYMBOL_OF = 351, /* OF */
+ YYSYMBOL_OFF = 352, /* OFF */
+ YYSYMBOL_OFFSET = 353, /* OFFSET */
+ YYSYMBOL_OIDS = 354, /* OIDS */
+ YYSYMBOL_OLD = 355, /* OLD */
+ YYSYMBOL_ON = 356, /* ON */
+ YYSYMBOL_ONLY = 357, /* ONLY */
+ YYSYMBOL_OPERATOR = 358, /* OPERATOR */
+ YYSYMBOL_OPTION = 359, /* OPTION */
+ YYSYMBOL_OPTIONS = 360, /* OPTIONS */
+ YYSYMBOL_OR = 361, /* OR */
+ YYSYMBOL_ORDER = 362, /* ORDER */
+ YYSYMBOL_ORDINALITY = 363, /* ORDINALITY */
+ YYSYMBOL_OTHERS = 364, /* OTHERS */
+ YYSYMBOL_OUT_P = 365, /* OUT_P */
+ YYSYMBOL_OUTER_P = 366, /* OUTER_P */
+ YYSYMBOL_OVER = 367, /* OVER */
+ YYSYMBOL_OVERLAPS = 368, /* OVERLAPS */
+ YYSYMBOL_OVERLAY = 369, /* OVERLAY */
+ YYSYMBOL_OVERRIDING = 370, /* OVERRIDING */
+ YYSYMBOL_OWNED = 371, /* OWNED */
+ YYSYMBOL_OWNER = 372, /* OWNER */
+ YYSYMBOL_PARALLEL = 373, /* PARALLEL */
+ YYSYMBOL_PARAMETER = 374, /* PARAMETER */
+ YYSYMBOL_PARSER = 375, /* PARSER */
+ YYSYMBOL_PARTIAL = 376, /* PARTIAL */
+ YYSYMBOL_PARTITION = 377, /* PARTITION */
+ YYSYMBOL_PASSING = 378, /* PASSING */
+ YYSYMBOL_PASSWORD = 379, /* PASSWORD */
+ YYSYMBOL_PLACING = 380, /* PLACING */
+ YYSYMBOL_PLANS = 381, /* PLANS */
+ YYSYMBOL_POLICY = 382, /* POLICY */
+ YYSYMBOL_POSITION = 383, /* POSITION */
+ YYSYMBOL_PRECEDING = 384, /* PRECEDING */
+ YYSYMBOL_PRECISION = 385, /* PRECISION */
+ YYSYMBOL_PRESERVE = 386, /* PRESERVE */
+ YYSYMBOL_PREPARE = 387, /* PREPARE */
+ YYSYMBOL_PREPARED = 388, /* PREPARED */
+ YYSYMBOL_PRIMARY = 389, /* PRIMARY */
+ YYSYMBOL_PRIOR = 390, /* PRIOR */
+ YYSYMBOL_PRIVILEGES = 391, /* PRIVILEGES */
+ YYSYMBOL_PROCEDURAL = 392, /* PROCEDURAL */
+ YYSYMBOL_PROCEDURE = 393, /* PROCEDURE */
+ YYSYMBOL_PROCEDURES = 394, /* PROCEDURES */
+ YYSYMBOL_PROGRAM = 395, /* PROGRAM */
+ YYSYMBOL_PUBLICATION = 396, /* PUBLICATION */
+ YYSYMBOL_QUOTE = 397, /* QUOTE */
+ YYSYMBOL_RANGE = 398, /* RANGE */
+ YYSYMBOL_READ = 399, /* READ */
+ YYSYMBOL_REAL = 400, /* REAL */
+ YYSYMBOL_REASSIGN = 401, /* REASSIGN */
+ YYSYMBOL_RECHECK = 402, /* RECHECK */
+ YYSYMBOL_RECURSIVE = 403, /* RECURSIVE */
+ YYSYMBOL_REF_P = 404, /* REF_P */
+ YYSYMBOL_REFERENCES = 405, /* REFERENCES */
+ YYSYMBOL_REFERENCING = 406, /* REFERENCING */
+ YYSYMBOL_REFRESH = 407, /* REFRESH */
+ YYSYMBOL_REINDEX = 408, /* REINDEX */
+ YYSYMBOL_RELATIVE_P = 409, /* RELATIVE_P */
+ YYSYMBOL_RELEASE = 410, /* RELEASE */
+ YYSYMBOL_RENAME = 411, /* RENAME */
+ YYSYMBOL_REPEATABLE = 412, /* REPEATABLE */
+ YYSYMBOL_REPLACE = 413, /* REPLACE */
+ YYSYMBOL_REPLICA = 414, /* REPLICA */
+ YYSYMBOL_RESET = 415, /* RESET */
+ YYSYMBOL_RESTART = 416, /* RESTART */
+ YYSYMBOL_RESTRICT = 417, /* RESTRICT */
+ YYSYMBOL_RETURN = 418, /* RETURN */
+ YYSYMBOL_RETURNING = 419, /* RETURNING */
+ YYSYMBOL_RETURNS = 420, /* RETURNS */
+ YYSYMBOL_REVOKE = 421, /* REVOKE */
+ YYSYMBOL_RIGHT = 422, /* RIGHT */
+ YYSYMBOL_ROLE = 423, /* ROLE */
+ YYSYMBOL_ROLLBACK = 424, /* ROLLBACK */
+ YYSYMBOL_ROLLUP = 425, /* ROLLUP */
+ YYSYMBOL_ROUTINE = 426, /* ROUTINE */
+ YYSYMBOL_ROUTINES = 427, /* ROUTINES */
+ YYSYMBOL_ROW = 428, /* ROW */
+ YYSYMBOL_ROWS = 429, /* ROWS */
+ YYSYMBOL_RULE = 430, /* RULE */
+ YYSYMBOL_SAVEPOINT = 431, /* SAVEPOINT */
+ YYSYMBOL_SCHEMA = 432, /* SCHEMA */
+ YYSYMBOL_SCHEMAS = 433, /* SCHEMAS */
+ YYSYMBOL_SCROLL = 434, /* SCROLL */
+ YYSYMBOL_SEARCH = 435, /* SEARCH */
+ YYSYMBOL_SECOND_P = 436, /* SECOND_P */
+ YYSYMBOL_SECURITY = 437, /* SECURITY */
+ YYSYMBOL_SELECT = 438, /* SELECT */
+ YYSYMBOL_SEQUENCE = 439, /* SEQUENCE */
+ YYSYMBOL_SEQUENCES = 440, /* SEQUENCES */
+ YYSYMBOL_SERIALIZABLE = 441, /* SERIALIZABLE */
+ YYSYMBOL_SERVER = 442, /* SERVER */
+ YYSYMBOL_SESSION = 443, /* SESSION */
+ YYSYMBOL_SESSION_USER = 444, /* SESSION_USER */
+ YYSYMBOL_SET = 445, /* SET */
+ YYSYMBOL_SETS = 446, /* SETS */
+ YYSYMBOL_SETOF = 447, /* SETOF */
+ YYSYMBOL_SHARE = 448, /* SHARE */
+ YYSYMBOL_SHOW = 449, /* SHOW */
+ YYSYMBOL_SIMILAR = 450, /* SIMILAR */
+ YYSYMBOL_SIMPLE = 451, /* SIMPLE */
+ YYSYMBOL_SKIP = 452, /* SKIP */
+ YYSYMBOL_SMALLINT = 453, /* SMALLINT */
+ YYSYMBOL_SNAPSHOT = 454, /* SNAPSHOT */
+ YYSYMBOL_SOME = 455, /* SOME */
+ YYSYMBOL_SQL_P = 456, /* SQL_P */
+ YYSYMBOL_STABLE = 457, /* STABLE */
+ YYSYMBOL_STANDALONE_P = 458, /* STANDALONE_P */
+ YYSYMBOL_START = 459, /* START */
+ YYSYMBOL_STATEMENT = 460, /* STATEMENT */
+ YYSYMBOL_STATISTICS = 461, /* STATISTICS */
+ YYSYMBOL_STDIN = 462, /* STDIN */
+ YYSYMBOL_STDOUT = 463, /* STDOUT */
+ YYSYMBOL_STORAGE = 464, /* STORAGE */
+ YYSYMBOL_STORED = 465, /* STORED */
+ YYSYMBOL_STRICT_P = 466, /* STRICT_P */
+ YYSYMBOL_STRIP_P = 467, /* STRIP_P */
+ YYSYMBOL_SUBSCRIPTION = 468, /* SUBSCRIPTION */
+ YYSYMBOL_SUBSTRING = 469, /* SUBSTRING */
+ YYSYMBOL_SUPPORT = 470, /* SUPPORT */
+ YYSYMBOL_SYMMETRIC = 471, /* SYMMETRIC */
+ YYSYMBOL_SYSID = 472, /* SYSID */
+ YYSYMBOL_SYSTEM_P = 473, /* SYSTEM_P */
+ YYSYMBOL_TABLE = 474, /* TABLE */
+ YYSYMBOL_TABLES = 475, /* TABLES */
+ YYSYMBOL_TABLESAMPLE = 476, /* TABLESAMPLE */
+ YYSYMBOL_TABLESPACE = 477, /* TABLESPACE */
+ YYSYMBOL_TEMP = 478, /* TEMP */
+ YYSYMBOL_TEMPLATE = 479, /* TEMPLATE */
+ YYSYMBOL_TEMPORARY = 480, /* TEMPORARY */
+ YYSYMBOL_TEXT_P = 481, /* TEXT_P */
+ YYSYMBOL_THEN = 482, /* THEN */
+ YYSYMBOL_TIES = 483, /* TIES */
+ YYSYMBOL_TIME = 484, /* TIME */
+ YYSYMBOL_TIMESTAMP = 485, /* TIMESTAMP */
+ YYSYMBOL_TO = 486, /* TO */
+ YYSYMBOL_TRAILING = 487, /* TRAILING */
+ YYSYMBOL_TRANSACTION = 488, /* TRANSACTION */
+ YYSYMBOL_TRANSFORM = 489, /* TRANSFORM */
+ YYSYMBOL_TREAT = 490, /* TREAT */
+ YYSYMBOL_TRIGGER = 491, /* TRIGGER */
+ YYSYMBOL_TRIM = 492, /* TRIM */
+ YYSYMBOL_TRUE_P = 493, /* TRUE_P */
+ YYSYMBOL_TRUNCATE = 494, /* TRUNCATE */
+ YYSYMBOL_TRUSTED = 495, /* TRUSTED */
+ YYSYMBOL_TYPE_P = 496, /* TYPE_P */
+ YYSYMBOL_TYPES_P = 497, /* TYPES_P */
+ YYSYMBOL_UESCAPE = 498, /* UESCAPE */
+ YYSYMBOL_UNBOUNDED = 499, /* UNBOUNDED */
+ YYSYMBOL_UNCOMMITTED = 500, /* UNCOMMITTED */
+ YYSYMBOL_UNENCRYPTED = 501, /* UNENCRYPTED */
+ YYSYMBOL_UNION = 502, /* UNION */
+ YYSYMBOL_UNIQUE = 503, /* UNIQUE */
+ YYSYMBOL_UNKNOWN = 504, /* UNKNOWN */
+ YYSYMBOL_UNLISTEN = 505, /* UNLISTEN */
+ YYSYMBOL_UNLOGGED = 506, /* UNLOGGED */
+ YYSYMBOL_UNTIL = 507, /* UNTIL */
+ YYSYMBOL_UPDATE = 508, /* UPDATE */
+ YYSYMBOL_USER = 509, /* USER */
+ YYSYMBOL_USING = 510, /* USING */
+ YYSYMBOL_VACUUM = 511, /* VACUUM */
+ YYSYMBOL_VALID = 512, /* VALID */
+ YYSYMBOL_VALIDATE = 513, /* VALIDATE */
+ YYSYMBOL_VALIDATOR = 514, /* VALIDATOR */
+ YYSYMBOL_VALUE_P = 515, /* VALUE_P */
+ YYSYMBOL_VALUES = 516, /* VALUES */
+ YYSYMBOL_VARCHAR = 517, /* VARCHAR */
+ YYSYMBOL_VARIADIC = 518, /* VARIADIC */
+ YYSYMBOL_VARYING = 519, /* VARYING */
+ YYSYMBOL_VERBOSE = 520, /* VERBOSE */
+ YYSYMBOL_VERSION_P = 521, /* VERSION_P */
+ YYSYMBOL_VIEW = 522, /* VIEW */
+ YYSYMBOL_VIEWS = 523, /* VIEWS */
+ YYSYMBOL_VOLATILE = 524, /* VOLATILE */
+ YYSYMBOL_WHEN = 525, /* WHEN */
+ YYSYMBOL_WHERE = 526, /* WHERE */
+ YYSYMBOL_WHITESPACE_P = 527, /* WHITESPACE_P */
+ YYSYMBOL_WINDOW = 528, /* WINDOW */
+ YYSYMBOL_WITH = 529, /* WITH */
+ YYSYMBOL_WITHIN = 530, /* WITHIN */
+ YYSYMBOL_WITHOUT = 531, /* WITHOUT */
+ YYSYMBOL_WORK = 532, /* WORK */
+ YYSYMBOL_WRAPPER = 533, /* WRAPPER */
+ YYSYMBOL_WRITE = 534, /* WRITE */
+ YYSYMBOL_XML_P = 535, /* XML_P */
+ YYSYMBOL_XMLATTRIBUTES = 536, /* XMLATTRIBUTES */
+ YYSYMBOL_XMLCONCAT = 537, /* XMLCONCAT */
+ YYSYMBOL_XMLELEMENT = 538, /* XMLELEMENT */
+ YYSYMBOL_XMLEXISTS = 539, /* XMLEXISTS */
+ YYSYMBOL_XMLFOREST = 540, /* XMLFOREST */
+ YYSYMBOL_XMLNAMESPACES = 541, /* XMLNAMESPACES */
+ YYSYMBOL_XMLPARSE = 542, /* XMLPARSE */
+ YYSYMBOL_XMLPI = 543, /* XMLPI */
+ YYSYMBOL_XMLROOT = 544, /* XMLROOT */
+ YYSYMBOL_XMLSERIALIZE = 545, /* XMLSERIALIZE */
+ YYSYMBOL_XMLTABLE = 546, /* XMLTABLE */
+ YYSYMBOL_YEAR_P = 547, /* YEAR_P */
+ YYSYMBOL_YES_P = 548, /* YES_P */
+ YYSYMBOL_ZONE = 549, /* ZONE */
+ YYSYMBOL_NOT_LA = 550, /* NOT_LA */
+ YYSYMBOL_NULLS_LA = 551, /* NULLS_LA */
+ YYSYMBOL_WITH_LA = 552, /* WITH_LA */
+ YYSYMBOL_MODE_TYPE_NAME = 553, /* MODE_TYPE_NAME */
+ YYSYMBOL_MODE_PLPGSQL_EXPR = 554, /* MODE_PLPGSQL_EXPR */
+ YYSYMBOL_MODE_PLPGSQL_ASSIGN1 = 555, /* MODE_PLPGSQL_ASSIGN1 */
+ YYSYMBOL_MODE_PLPGSQL_ASSIGN2 = 556, /* MODE_PLPGSQL_ASSIGN2 */
+ YYSYMBOL_MODE_PLPGSQL_ASSIGN3 = 557, /* MODE_PLPGSQL_ASSIGN3 */
+ YYSYMBOL_558_ = 558, /* '<' */
+ YYSYMBOL_559_ = 559, /* '>' */
+ YYSYMBOL_560_ = 560, /* '=' */
+ YYSYMBOL_561_ = 561, /* '+' */
+ YYSYMBOL_562_ = 562, /* '-' */
+ YYSYMBOL_563_ = 563, /* '*' */
+ YYSYMBOL_564_ = 564, /* '/' */
+ YYSYMBOL_565_ = 565, /* '%' */
+ YYSYMBOL_566_ = 566, /* '^' */
+ YYSYMBOL_UMINUS = 567, /* UMINUS */
+ YYSYMBOL_568_ = 568, /* '[' */
+ YYSYMBOL_569_ = 569, /* ']' */
+ YYSYMBOL_570_ = 570, /* '(' */
+ YYSYMBOL_571_ = 571, /* ')' */
+ YYSYMBOL_572_ = 572, /* '.' */
+ YYSYMBOL_573_ = 573, /* ',' */
+ YYSYMBOL_574_ = 574, /* ';' */
+ YYSYMBOL_575_ = 575, /* ':' */
+ YYSYMBOL_576_ = 576, /* '{' */
+ YYSYMBOL_577_ = 577, /* '}' */
+ YYSYMBOL_YYACCEPT = 578, /* $accept */
+ YYSYMBOL_prog = 579, /* prog */
+ YYSYMBOL_toplevel_stmt = 580, /* toplevel_stmt */
+ YYSYMBOL_stmt = 581, /* stmt */
+ YYSYMBOL_CallStmt = 582, /* CallStmt */
+ YYSYMBOL_CreateRoleStmt = 583, /* CreateRoleStmt */
+ YYSYMBOL_opt_with = 584, /* opt_with */
+ YYSYMBOL_OptRoleList = 585, /* OptRoleList */
+ YYSYMBOL_AlterOptRoleList = 586, /* AlterOptRoleList */
+ YYSYMBOL_AlterOptRoleElem = 587, /* AlterOptRoleElem */
+ YYSYMBOL_CreateOptRoleElem = 588, /* CreateOptRoleElem */
+ YYSYMBOL_CreateUserStmt = 589, /* CreateUserStmt */
+ YYSYMBOL_AlterRoleStmt = 590, /* AlterRoleStmt */
+ YYSYMBOL_opt_in_database = 591, /* opt_in_database */
+ YYSYMBOL_AlterRoleSetStmt = 592, /* AlterRoleSetStmt */
+ YYSYMBOL_DropRoleStmt = 593, /* DropRoleStmt */
+ YYSYMBOL_CreateGroupStmt = 594, /* CreateGroupStmt */
+ YYSYMBOL_AlterGroupStmt = 595, /* AlterGroupStmt */
+ YYSYMBOL_add_drop = 596, /* add_drop */
+ YYSYMBOL_CreateSchemaStmt = 597, /* CreateSchemaStmt */
+ YYSYMBOL_OptSchemaName = 598, /* OptSchemaName */
+ YYSYMBOL_OptSchemaEltList = 599, /* OptSchemaEltList */
+ YYSYMBOL_schema_stmt = 600, /* schema_stmt */
+ YYSYMBOL_VariableSetStmt = 601, /* VariableSetStmt */
+ YYSYMBOL_set_rest = 602, /* set_rest */
+ YYSYMBOL_generic_set = 603, /* generic_set */
+ YYSYMBOL_set_rest_more = 604, /* set_rest_more */
+ YYSYMBOL_var_name = 605, /* var_name */
+ YYSYMBOL_var_list = 606, /* var_list */
+ YYSYMBOL_var_value = 607, /* var_value */
+ YYSYMBOL_iso_level = 608, /* iso_level */
+ YYSYMBOL_opt_boolean_or_string = 609, /* opt_boolean_or_string */
+ YYSYMBOL_zone_value = 610, /* zone_value */
+ YYSYMBOL_opt_encoding = 611, /* opt_encoding */
+ YYSYMBOL_NonReservedWord_or_Sconst = 612, /* NonReservedWord_or_Sconst */
+ YYSYMBOL_VariableResetStmt = 613, /* VariableResetStmt */
+ YYSYMBOL_reset_rest = 614, /* reset_rest */
+ YYSYMBOL_generic_reset = 615, /* generic_reset */
+ YYSYMBOL_SetResetClause = 616, /* SetResetClause */
+ YYSYMBOL_FunctionSetResetClause = 617, /* FunctionSetResetClause */
+ YYSYMBOL_VariableShowStmt = 618, /* VariableShowStmt */
+ YYSYMBOL_ConstraintsSetStmt = 619, /* ConstraintsSetStmt */
+ YYSYMBOL_constraints_set_list = 620, /* constraints_set_list */
+ YYSYMBOL_constraints_set_mode = 621, /* constraints_set_mode */
+ YYSYMBOL_CheckPointStmt = 622, /* CheckPointStmt */
+ YYSYMBOL_DiscardStmt = 623, /* DiscardStmt */
+ YYSYMBOL_AlterTableStmt = 624, /* AlterTableStmt */
+ YYSYMBOL_alter_table_cmds = 625, /* alter_table_cmds */
+ YYSYMBOL_partition_cmd = 626, /* partition_cmd */
+ YYSYMBOL_index_partition_cmd = 627, /* index_partition_cmd */
+ YYSYMBOL_alter_table_cmd = 628, /* alter_table_cmd */
+ YYSYMBOL_alter_column_default = 629, /* alter_column_default */
+ YYSYMBOL_opt_drop_behavior = 630, /* opt_drop_behavior */
+ YYSYMBOL_opt_collate_clause = 631, /* opt_collate_clause */
+ YYSYMBOL_alter_using = 632, /* alter_using */
+ YYSYMBOL_replica_identity = 633, /* replica_identity */
+ YYSYMBOL_reloptions = 634, /* reloptions */
+ YYSYMBOL_opt_reloptions = 635, /* opt_reloptions */
+ YYSYMBOL_reloption_list = 636, /* reloption_list */
+ YYSYMBOL_reloption_elem = 637, /* reloption_elem */
+ YYSYMBOL_alter_identity_column_option_list = 638, /* alter_identity_column_option_list */
+ YYSYMBOL_alter_identity_column_option = 639, /* alter_identity_column_option */
+ YYSYMBOL_PartitionBoundSpec = 640, /* PartitionBoundSpec */
+ YYSYMBOL_hash_partbound_elem = 641, /* hash_partbound_elem */
+ YYSYMBOL_hash_partbound = 642, /* hash_partbound */
+ YYSYMBOL_AlterCompositeTypeStmt = 643, /* AlterCompositeTypeStmt */
+ YYSYMBOL_alter_type_cmds = 644, /* alter_type_cmds */
+ YYSYMBOL_alter_type_cmd = 645, /* alter_type_cmd */
+ YYSYMBOL_ClosePortalStmt = 646, /* ClosePortalStmt */
+ YYSYMBOL_CopyStmt = 647, /* CopyStmt */
+ YYSYMBOL_copy_from = 648, /* copy_from */
+ YYSYMBOL_opt_program = 649, /* opt_program */
+ YYSYMBOL_copy_file_name = 650, /* copy_file_name */
+ YYSYMBOL_copy_options = 651, /* copy_options */
+ YYSYMBOL_copy_opt_list = 652, /* copy_opt_list */
+ YYSYMBOL_copy_opt_item = 653, /* copy_opt_item */
+ YYSYMBOL_opt_binary = 654, /* opt_binary */
+ YYSYMBOL_copy_delimiter = 655, /* copy_delimiter */
+ YYSYMBOL_opt_using = 656, /* opt_using */
+ YYSYMBOL_copy_generic_opt_list = 657, /* copy_generic_opt_list */
+ YYSYMBOL_copy_generic_opt_elem = 658, /* copy_generic_opt_elem */
+ YYSYMBOL_copy_generic_opt_arg = 659, /* copy_generic_opt_arg */
+ YYSYMBOL_copy_generic_opt_arg_list = 660, /* copy_generic_opt_arg_list */
+ YYSYMBOL_copy_generic_opt_arg_list_item = 661, /* copy_generic_opt_arg_list_item */
+ YYSYMBOL_CreateStmt = 662, /* CreateStmt */
+ YYSYMBOL_OptTemp = 663, /* OptTemp */
+ YYSYMBOL_OptTableElementList = 664, /* OptTableElementList */
+ YYSYMBOL_OptTypedTableElementList = 665, /* OptTypedTableElementList */
+ YYSYMBOL_TableElementList = 666, /* TableElementList */
+ YYSYMBOL_TypedTableElementList = 667, /* TypedTableElementList */
+ YYSYMBOL_TableElement = 668, /* TableElement */
+ YYSYMBOL_TypedTableElement = 669, /* TypedTableElement */
+ YYSYMBOL_columnDef = 670, /* columnDef */
+ YYSYMBOL_columnOptions = 671, /* columnOptions */
+ YYSYMBOL_column_compression = 672, /* column_compression */
+ YYSYMBOL_opt_column_compression = 673, /* opt_column_compression */
+ YYSYMBOL_ColQualList = 674, /* ColQualList */
+ YYSYMBOL_ColConstraint = 675, /* ColConstraint */
+ YYSYMBOL_ColConstraintElem = 676, /* ColConstraintElem */
+ YYSYMBOL_opt_unique_null_treatment = 677, /* opt_unique_null_treatment */
+ YYSYMBOL_generated_when = 678, /* generated_when */
+ YYSYMBOL_ConstraintAttr = 679, /* ConstraintAttr */
+ YYSYMBOL_TableLikeClause = 680, /* TableLikeClause */
+ YYSYMBOL_TableLikeOptionList = 681, /* TableLikeOptionList */
+ YYSYMBOL_TableLikeOption = 682, /* TableLikeOption */
+ YYSYMBOL_TableConstraint = 683, /* TableConstraint */
+ YYSYMBOL_ConstraintElem = 684, /* ConstraintElem */
+ YYSYMBOL_opt_no_inherit = 685, /* opt_no_inherit */
+ YYSYMBOL_opt_column_list = 686, /* opt_column_list */
+ YYSYMBOL_columnList = 687, /* columnList */
+ YYSYMBOL_columnElem = 688, /* columnElem */
+ YYSYMBOL_opt_c_include = 689, /* opt_c_include */
+ YYSYMBOL_key_match = 690, /* key_match */
+ YYSYMBOL_ExclusionConstraintList = 691, /* ExclusionConstraintList */
+ YYSYMBOL_ExclusionConstraintElem = 692, /* ExclusionConstraintElem */
+ YYSYMBOL_OptWhereClause = 693, /* OptWhereClause */
+ YYSYMBOL_key_actions = 694, /* key_actions */
+ YYSYMBOL_key_update = 695, /* key_update */
+ YYSYMBOL_key_delete = 696, /* key_delete */
+ YYSYMBOL_key_action = 697, /* key_action */
+ YYSYMBOL_OptInherit = 698, /* OptInherit */
+ YYSYMBOL_OptPartitionSpec = 699, /* OptPartitionSpec */
+ YYSYMBOL_PartitionSpec = 700, /* PartitionSpec */
+ YYSYMBOL_part_params = 701, /* part_params */
+ YYSYMBOL_part_elem = 702, /* part_elem */
+ YYSYMBOL_table_access_method_clause = 703, /* table_access_method_clause */
+ YYSYMBOL_OptWith = 704, /* OptWith */
+ YYSYMBOL_OnCommitOption = 705, /* OnCommitOption */
+ YYSYMBOL_OptTableSpace = 706, /* OptTableSpace */
+ YYSYMBOL_OptConsTableSpace = 707, /* OptConsTableSpace */
+ YYSYMBOL_ExistingIndex = 708, /* ExistingIndex */
+ YYSYMBOL_CreateStatsStmt = 709, /* CreateStatsStmt */
+ YYSYMBOL_stats_params = 710, /* stats_params */
+ YYSYMBOL_stats_param = 711, /* stats_param */
+ YYSYMBOL_AlterStatsStmt = 712, /* AlterStatsStmt */
+ YYSYMBOL_create_as_target = 713, /* create_as_target */
+ YYSYMBOL_opt_with_data = 714, /* opt_with_data */
+ YYSYMBOL_CreateMatViewStmt = 715, /* CreateMatViewStmt */
+ YYSYMBOL_create_mv_target = 716, /* create_mv_target */
+ YYSYMBOL_OptNoLog = 717, /* OptNoLog */
+ YYSYMBOL_RefreshMatViewStmt = 718, /* RefreshMatViewStmt */
+ YYSYMBOL_CreateSeqStmt = 719, /* CreateSeqStmt */
+ YYSYMBOL_AlterSeqStmt = 720, /* AlterSeqStmt */
+ YYSYMBOL_OptSeqOptList = 721, /* OptSeqOptList */
+ YYSYMBOL_OptParenthesizedSeqOptList = 722, /* OptParenthesizedSeqOptList */
+ YYSYMBOL_SeqOptList = 723, /* SeqOptList */
+ YYSYMBOL_SeqOptElem = 724, /* SeqOptElem */
+ YYSYMBOL_opt_by = 725, /* opt_by */
+ YYSYMBOL_NumericOnly = 726, /* NumericOnly */
+ YYSYMBOL_NumericOnly_list = 727, /* NumericOnly_list */
+ YYSYMBOL_CreatePLangStmt = 728, /* CreatePLangStmt */
+ YYSYMBOL_opt_trusted = 729, /* opt_trusted */
+ YYSYMBOL_handler_name = 730, /* handler_name */
+ YYSYMBOL_opt_inline_handler = 731, /* opt_inline_handler */
+ YYSYMBOL_validator_clause = 732, /* validator_clause */
+ YYSYMBOL_opt_validator = 733, /* opt_validator */
+ YYSYMBOL_opt_procedural = 734, /* opt_procedural */
+ YYSYMBOL_CreateTableSpaceStmt = 735, /* CreateTableSpaceStmt */
+ YYSYMBOL_OptTableSpaceOwner = 736, /* OptTableSpaceOwner */
+ YYSYMBOL_DropTableSpaceStmt = 737, /* DropTableSpaceStmt */
+ YYSYMBOL_CreateExtensionStmt = 738, /* CreateExtensionStmt */
+ YYSYMBOL_create_extension_opt_list = 739, /* create_extension_opt_list */
+ YYSYMBOL_create_extension_opt_item = 740, /* create_extension_opt_item */
+ YYSYMBOL_AlterExtensionStmt = 741, /* AlterExtensionStmt */
+ YYSYMBOL_alter_extension_opt_list = 742, /* alter_extension_opt_list */
+ YYSYMBOL_alter_extension_opt_item = 743, /* alter_extension_opt_item */
+ YYSYMBOL_AlterExtensionContentsStmt = 744, /* AlterExtensionContentsStmt */
+ YYSYMBOL_CreateFdwStmt = 745, /* CreateFdwStmt */
+ YYSYMBOL_fdw_option = 746, /* fdw_option */
+ YYSYMBOL_fdw_options = 747, /* fdw_options */
+ YYSYMBOL_opt_fdw_options = 748, /* opt_fdw_options */
+ YYSYMBOL_AlterFdwStmt = 749, /* AlterFdwStmt */
+ YYSYMBOL_create_generic_options = 750, /* create_generic_options */
+ YYSYMBOL_generic_option_list = 751, /* generic_option_list */
+ YYSYMBOL_alter_generic_options = 752, /* alter_generic_options */
+ YYSYMBOL_alter_generic_option_list = 753, /* alter_generic_option_list */
+ YYSYMBOL_alter_generic_option_elem = 754, /* alter_generic_option_elem */
+ YYSYMBOL_generic_option_elem = 755, /* generic_option_elem */
+ YYSYMBOL_generic_option_name = 756, /* generic_option_name */
+ YYSYMBOL_generic_option_arg = 757, /* generic_option_arg */
+ YYSYMBOL_CreateForeignServerStmt = 758, /* CreateForeignServerStmt */
+ YYSYMBOL_opt_type = 759, /* opt_type */
+ YYSYMBOL_foreign_server_version = 760, /* foreign_server_version */
+ YYSYMBOL_opt_foreign_server_version = 761, /* opt_foreign_server_version */
+ YYSYMBOL_AlterForeignServerStmt = 762, /* AlterForeignServerStmt */
+ YYSYMBOL_CreateForeignTableStmt = 763, /* CreateForeignTableStmt */
+ YYSYMBOL_ImportForeignSchemaStmt = 764, /* ImportForeignSchemaStmt */
+ YYSYMBOL_import_qualification_type = 765, /* import_qualification_type */
+ YYSYMBOL_import_qualification = 766, /* import_qualification */
+ YYSYMBOL_CreateUserMappingStmt = 767, /* CreateUserMappingStmt */
+ YYSYMBOL_auth_ident = 768, /* auth_ident */
+ YYSYMBOL_DropUserMappingStmt = 769, /* DropUserMappingStmt */
+ YYSYMBOL_AlterUserMappingStmt = 770, /* AlterUserMappingStmt */
+ YYSYMBOL_CreatePolicyStmt = 771, /* CreatePolicyStmt */
+ YYSYMBOL_AlterPolicyStmt = 772, /* AlterPolicyStmt */
+ YYSYMBOL_RowSecurityOptionalExpr = 773, /* RowSecurityOptionalExpr */
+ YYSYMBOL_RowSecurityOptionalWithCheck = 774, /* RowSecurityOptionalWithCheck */
+ YYSYMBOL_RowSecurityDefaultToRole = 775, /* RowSecurityDefaultToRole */
+ YYSYMBOL_RowSecurityOptionalToRole = 776, /* RowSecurityOptionalToRole */
+ YYSYMBOL_RowSecurityDefaultPermissive = 777, /* RowSecurityDefaultPermissive */
+ YYSYMBOL_RowSecurityDefaultForCmd = 778, /* RowSecurityDefaultForCmd */
+ YYSYMBOL_row_security_cmd = 779, /* row_security_cmd */
+ YYSYMBOL_CreateAmStmt = 780, /* CreateAmStmt */
+ YYSYMBOL_am_type = 781, /* am_type */
+ YYSYMBOL_CreateTrigStmt = 782, /* CreateTrigStmt */
+ YYSYMBOL_TriggerActionTime = 783, /* TriggerActionTime */
+ YYSYMBOL_TriggerEvents = 784, /* TriggerEvents */
+ YYSYMBOL_TriggerOneEvent = 785, /* TriggerOneEvent */
+ YYSYMBOL_TriggerReferencing = 786, /* TriggerReferencing */
+ YYSYMBOL_TriggerTransitions = 787, /* TriggerTransitions */
+ YYSYMBOL_TriggerTransition = 788, /* TriggerTransition */
+ YYSYMBOL_TransitionOldOrNew = 789, /* TransitionOldOrNew */
+ YYSYMBOL_TransitionRowOrTable = 790, /* TransitionRowOrTable */
+ YYSYMBOL_TransitionRelName = 791, /* TransitionRelName */
+ YYSYMBOL_TriggerForSpec = 792, /* TriggerForSpec */
+ YYSYMBOL_TriggerForOptEach = 793, /* TriggerForOptEach */
+ YYSYMBOL_TriggerForType = 794, /* TriggerForType */
+ YYSYMBOL_TriggerWhen = 795, /* TriggerWhen */
+ YYSYMBOL_FUNCTION_or_PROCEDURE = 796, /* FUNCTION_or_PROCEDURE */
+ YYSYMBOL_TriggerFuncArgs = 797, /* TriggerFuncArgs */
+ YYSYMBOL_TriggerFuncArg = 798, /* TriggerFuncArg */
+ YYSYMBOL_OptConstrFromTable = 799, /* OptConstrFromTable */
+ YYSYMBOL_ConstraintAttributeSpec = 800, /* ConstraintAttributeSpec */
+ YYSYMBOL_ConstraintAttributeElem = 801, /* ConstraintAttributeElem */
+ YYSYMBOL_CreateEventTrigStmt = 802, /* CreateEventTrigStmt */
+ YYSYMBOL_event_trigger_when_list = 803, /* event_trigger_when_list */
+ YYSYMBOL_event_trigger_when_item = 804, /* event_trigger_when_item */
+ YYSYMBOL_event_trigger_value_list = 805, /* event_trigger_value_list */
+ YYSYMBOL_AlterEventTrigStmt = 806, /* AlterEventTrigStmt */
+ YYSYMBOL_enable_trigger = 807, /* enable_trigger */
+ YYSYMBOL_CreateAssertionStmt = 808, /* CreateAssertionStmt */
+ YYSYMBOL_DefineStmt = 809, /* DefineStmt */
+ YYSYMBOL_definition = 810, /* definition */
+ YYSYMBOL_def_list = 811, /* def_list */
+ YYSYMBOL_def_elem = 812, /* def_elem */
+ YYSYMBOL_def_arg = 813, /* def_arg */
+ YYSYMBOL_old_aggr_definition = 814, /* old_aggr_definition */
+ YYSYMBOL_old_aggr_list = 815, /* old_aggr_list */
+ YYSYMBOL_old_aggr_elem = 816, /* old_aggr_elem */
+ YYSYMBOL_opt_enum_val_list = 817, /* opt_enum_val_list */
+ YYSYMBOL_enum_val_list = 818, /* enum_val_list */
+ YYSYMBOL_AlterEnumStmt = 819, /* AlterEnumStmt */
+ YYSYMBOL_opt_if_not_exists = 820, /* opt_if_not_exists */
+ YYSYMBOL_CreateOpClassStmt = 821, /* CreateOpClassStmt */
+ YYSYMBOL_opclass_item_list = 822, /* opclass_item_list */
+ YYSYMBOL_opclass_item = 823, /* opclass_item */
+ YYSYMBOL_opt_default = 824, /* opt_default */
+ YYSYMBOL_opt_opfamily = 825, /* opt_opfamily */
+ YYSYMBOL_opclass_purpose = 826, /* opclass_purpose */
+ YYSYMBOL_opt_recheck = 827, /* opt_recheck */
+ YYSYMBOL_CreateOpFamilyStmt = 828, /* CreateOpFamilyStmt */
+ YYSYMBOL_AlterOpFamilyStmt = 829, /* AlterOpFamilyStmt */
+ YYSYMBOL_opclass_drop_list = 830, /* opclass_drop_list */
+ YYSYMBOL_opclass_drop = 831, /* opclass_drop */
+ YYSYMBOL_DropOpClassStmt = 832, /* DropOpClassStmt */
+ YYSYMBOL_DropOpFamilyStmt = 833, /* DropOpFamilyStmt */
+ YYSYMBOL_DropOwnedStmt = 834, /* DropOwnedStmt */
+ YYSYMBOL_ReassignOwnedStmt = 835, /* ReassignOwnedStmt */
+ YYSYMBOL_DropStmt = 836, /* DropStmt */
+ YYSYMBOL_object_type_any_name = 837, /* object_type_any_name */
+ YYSYMBOL_object_type_name = 838, /* object_type_name */
+ YYSYMBOL_drop_type_name = 839, /* drop_type_name */
+ YYSYMBOL_object_type_name_on_any_name = 840, /* object_type_name_on_any_name */
+ YYSYMBOL_any_name_list = 841, /* any_name_list */
+ YYSYMBOL_any_name = 842, /* any_name */
+ YYSYMBOL_attrs = 843, /* attrs */
+ YYSYMBOL_type_name_list = 844, /* type_name_list */
+ YYSYMBOL_TruncateStmt = 845, /* TruncateStmt */
+ YYSYMBOL_opt_restart_seqs = 846, /* opt_restart_seqs */
+ YYSYMBOL_CommentStmt = 847, /* CommentStmt */
+ YYSYMBOL_comment_text = 848, /* comment_text */
+ YYSYMBOL_SecLabelStmt = 849, /* SecLabelStmt */
+ YYSYMBOL_opt_provider = 850, /* opt_provider */
+ YYSYMBOL_security_label = 851, /* security_label */
+ YYSYMBOL_FetchStmt = 852, /* FetchStmt */
+ YYSYMBOL_fetch_args = 853, /* fetch_args */
+ YYSYMBOL_from_in = 854, /* from_in */
+ YYSYMBOL_opt_from_in = 855, /* opt_from_in */
+ YYSYMBOL_GrantStmt = 856, /* GrantStmt */
+ YYSYMBOL_RevokeStmt = 857, /* RevokeStmt */
+ YYSYMBOL_privileges = 858, /* privileges */
+ YYSYMBOL_privilege_list = 859, /* privilege_list */
+ YYSYMBOL_privilege = 860, /* privilege */
+ YYSYMBOL_parameter_name_list = 861, /* parameter_name_list */
+ YYSYMBOL_parameter_name = 862, /* parameter_name */
+ YYSYMBOL_privilege_target = 863, /* privilege_target */
+ YYSYMBOL_grantee_list = 864, /* grantee_list */
+ YYSYMBOL_grantee = 865, /* grantee */
+ YYSYMBOL_opt_grant_grant_option = 866, /* opt_grant_grant_option */
+ YYSYMBOL_GrantRoleStmt = 867, /* GrantRoleStmt */
+ YYSYMBOL_RevokeRoleStmt = 868, /* RevokeRoleStmt */
+ YYSYMBOL_opt_grant_admin_option = 869, /* opt_grant_admin_option */
+ YYSYMBOL_opt_granted_by = 870, /* opt_granted_by */
+ YYSYMBOL_AlterDefaultPrivilegesStmt = 871, /* AlterDefaultPrivilegesStmt */
+ YYSYMBOL_DefACLOptionList = 872, /* DefACLOptionList */
+ YYSYMBOL_DefACLOption = 873, /* DefACLOption */
+ YYSYMBOL_DefACLAction = 874, /* DefACLAction */
+ YYSYMBOL_defacl_privilege_target = 875, /* defacl_privilege_target */
+ YYSYMBOL_IndexStmt = 876, /* IndexStmt */
+ YYSYMBOL_opt_unique = 877, /* opt_unique */
+ YYSYMBOL_opt_concurrently = 878, /* opt_concurrently */
+ YYSYMBOL_opt_index_name = 879, /* opt_index_name */
+ YYSYMBOL_access_method_clause = 880, /* access_method_clause */
+ YYSYMBOL_index_params = 881, /* index_params */
+ YYSYMBOL_index_elem_options = 882, /* index_elem_options */
+ YYSYMBOL_index_elem = 883, /* index_elem */
+ YYSYMBOL_opt_include = 884, /* opt_include */
+ YYSYMBOL_index_including_params = 885, /* index_including_params */
+ YYSYMBOL_opt_collate = 886, /* opt_collate */
+ YYSYMBOL_opt_class = 887, /* opt_class */
+ YYSYMBOL_opt_asc_desc = 888, /* opt_asc_desc */
+ YYSYMBOL_opt_nulls_order = 889, /* opt_nulls_order */
+ YYSYMBOL_CreateFunctionStmt = 890, /* CreateFunctionStmt */
+ YYSYMBOL_opt_or_replace = 891, /* opt_or_replace */
+ YYSYMBOL_func_args = 892, /* func_args */
+ YYSYMBOL_func_args_list = 893, /* func_args_list */
+ YYSYMBOL_function_with_argtypes_list = 894, /* function_with_argtypes_list */
+ YYSYMBOL_function_with_argtypes = 895, /* function_with_argtypes */
+ YYSYMBOL_func_args_with_defaults = 896, /* func_args_with_defaults */
+ YYSYMBOL_func_args_with_defaults_list = 897, /* func_args_with_defaults_list */
+ YYSYMBOL_func_arg = 898, /* func_arg */
+ YYSYMBOL_arg_class = 899, /* arg_class */
+ YYSYMBOL_param_name = 900, /* param_name */
+ YYSYMBOL_func_return = 901, /* func_return */
+ YYSYMBOL_func_type = 902, /* func_type */
+ YYSYMBOL_func_arg_with_default = 903, /* func_arg_with_default */
+ YYSYMBOL_aggr_arg = 904, /* aggr_arg */
+ YYSYMBOL_aggr_args = 905, /* aggr_args */
+ YYSYMBOL_aggr_args_list = 906, /* aggr_args_list */
+ YYSYMBOL_aggregate_with_argtypes = 907, /* aggregate_with_argtypes */
+ YYSYMBOL_aggregate_with_argtypes_list = 908, /* aggregate_with_argtypes_list */
+ YYSYMBOL_opt_createfunc_opt_list = 909, /* opt_createfunc_opt_list */
+ YYSYMBOL_createfunc_opt_list = 910, /* createfunc_opt_list */
+ YYSYMBOL_common_func_opt_item = 911, /* common_func_opt_item */
+ YYSYMBOL_createfunc_opt_item = 912, /* createfunc_opt_item */
+ YYSYMBOL_func_as = 913, /* func_as */
+ YYSYMBOL_ReturnStmt = 914, /* ReturnStmt */
+ YYSYMBOL_opt_routine_body = 915, /* opt_routine_body */
+ YYSYMBOL_routine_body_stmt_list = 916, /* routine_body_stmt_list */
+ YYSYMBOL_routine_body_stmt = 917, /* routine_body_stmt */
+ YYSYMBOL_transform_type_list = 918, /* transform_type_list */
+ YYSYMBOL_opt_definition = 919, /* opt_definition */
+ YYSYMBOL_table_func_column = 920, /* table_func_column */
+ YYSYMBOL_table_func_column_list = 921, /* table_func_column_list */
+ YYSYMBOL_AlterFunctionStmt = 922, /* AlterFunctionStmt */
+ YYSYMBOL_alterfunc_opt_list = 923, /* alterfunc_opt_list */
+ YYSYMBOL_opt_restrict = 924, /* opt_restrict */
+ YYSYMBOL_RemoveFuncStmt = 925, /* RemoveFuncStmt */
+ YYSYMBOL_RemoveAggrStmt = 926, /* RemoveAggrStmt */
+ YYSYMBOL_RemoveOperStmt = 927, /* RemoveOperStmt */
+ YYSYMBOL_oper_argtypes = 928, /* oper_argtypes */
+ YYSYMBOL_any_operator = 929, /* any_operator */
+ YYSYMBOL_operator_with_argtypes_list = 930, /* operator_with_argtypes_list */
+ YYSYMBOL_operator_with_argtypes = 931, /* operator_with_argtypes */
+ YYSYMBOL_DoStmt = 932, /* DoStmt */
+ YYSYMBOL_dostmt_opt_list = 933, /* dostmt_opt_list */
+ YYSYMBOL_dostmt_opt_item = 934, /* dostmt_opt_item */
+ YYSYMBOL_CreateCastStmt = 935, /* CreateCastStmt */
+ YYSYMBOL_cast_context = 936, /* cast_context */
+ YYSYMBOL_DropCastStmt = 937, /* DropCastStmt */
+ YYSYMBOL_opt_if_exists = 938, /* opt_if_exists */
+ YYSYMBOL_CreateTransformStmt = 939, /* CreateTransformStmt */
+ YYSYMBOL_transform_element_list = 940, /* transform_element_list */
+ YYSYMBOL_DropTransformStmt = 941, /* DropTransformStmt */
+ YYSYMBOL_ReindexStmt = 942, /* ReindexStmt */
+ YYSYMBOL_reindex_target_type = 943, /* reindex_target_type */
+ YYSYMBOL_reindex_target_multitable = 944, /* reindex_target_multitable */
+ YYSYMBOL_AlterTblSpcStmt = 945, /* AlterTblSpcStmt */
+ YYSYMBOL_RenameStmt = 946, /* RenameStmt */
+ YYSYMBOL_opt_column = 947, /* opt_column */
+ YYSYMBOL_opt_set_data = 948, /* opt_set_data */
+ YYSYMBOL_AlterObjectDependsStmt = 949, /* AlterObjectDependsStmt */
+ YYSYMBOL_opt_no = 950, /* opt_no */
+ YYSYMBOL_AlterObjectSchemaStmt = 951, /* AlterObjectSchemaStmt */
+ YYSYMBOL_AlterOperatorStmt = 952, /* AlterOperatorStmt */
+ YYSYMBOL_operator_def_list = 953, /* operator_def_list */
+ YYSYMBOL_operator_def_elem = 954, /* operator_def_elem */
+ YYSYMBOL_operator_def_arg = 955, /* operator_def_arg */
+ YYSYMBOL_AlterTypeStmt = 956, /* AlterTypeStmt */
+ YYSYMBOL_AlterOwnerStmt = 957, /* AlterOwnerStmt */
+ YYSYMBOL_CreatePublicationStmt = 958, /* CreatePublicationStmt */
+ YYSYMBOL_PublicationObjSpec = 959, /* PublicationObjSpec */
+ YYSYMBOL_pub_obj_list = 960, /* pub_obj_list */
+ YYSYMBOL_AlterPublicationStmt = 961, /* AlterPublicationStmt */
+ YYSYMBOL_CreateSubscriptionStmt = 962, /* CreateSubscriptionStmt */
+ YYSYMBOL_AlterSubscriptionStmt = 963, /* AlterSubscriptionStmt */
+ YYSYMBOL_DropSubscriptionStmt = 964, /* DropSubscriptionStmt */
+ YYSYMBOL_RuleStmt = 965, /* RuleStmt */
+ YYSYMBOL_RuleActionList = 966, /* RuleActionList */
+ YYSYMBOL_RuleActionMulti = 967, /* RuleActionMulti */
+ YYSYMBOL_RuleActionStmt = 968, /* RuleActionStmt */
+ YYSYMBOL_RuleActionStmtOrEmpty = 969, /* RuleActionStmtOrEmpty */
+ YYSYMBOL_event = 970, /* event */
+ YYSYMBOL_opt_instead = 971, /* opt_instead */
+ YYSYMBOL_NotifyStmt = 972, /* NotifyStmt */
+ YYSYMBOL_notify_payload = 973, /* notify_payload */
+ YYSYMBOL_ListenStmt = 974, /* ListenStmt */
+ YYSYMBOL_UnlistenStmt = 975, /* UnlistenStmt */
+ YYSYMBOL_TransactionStmt = 976, /* TransactionStmt */
+ YYSYMBOL_TransactionStmtLegacy = 977, /* TransactionStmtLegacy */
+ YYSYMBOL_opt_transaction = 978, /* opt_transaction */
+ YYSYMBOL_transaction_mode_item = 979, /* transaction_mode_item */
+ YYSYMBOL_transaction_mode_list = 980, /* transaction_mode_list */
+ YYSYMBOL_transaction_mode_list_or_empty = 981, /* transaction_mode_list_or_empty */
+ YYSYMBOL_opt_transaction_chain = 982, /* opt_transaction_chain */
+ YYSYMBOL_ViewStmt = 983, /* ViewStmt */
+ YYSYMBOL_opt_check_option = 984, /* opt_check_option */
+ YYSYMBOL_LoadStmt = 985, /* LoadStmt */
+ YYSYMBOL_CreatedbStmt = 986, /* CreatedbStmt */
+ YYSYMBOL_createdb_opt_list = 987, /* createdb_opt_list */
+ YYSYMBOL_createdb_opt_items = 988, /* createdb_opt_items */
+ YYSYMBOL_createdb_opt_item = 989, /* createdb_opt_item */
+ YYSYMBOL_createdb_opt_name = 990, /* createdb_opt_name */
+ YYSYMBOL_opt_equal = 991, /* opt_equal */
+ YYSYMBOL_AlterDatabaseStmt = 992, /* AlterDatabaseStmt */
+ YYSYMBOL_AlterDatabaseSetStmt = 993, /* AlterDatabaseSetStmt */
+ YYSYMBOL_DropdbStmt = 994, /* DropdbStmt */
+ YYSYMBOL_drop_option_list = 995, /* drop_option_list */
+ YYSYMBOL_drop_option = 996, /* drop_option */
+ YYSYMBOL_AlterCollationStmt = 997, /* AlterCollationStmt */
+ YYSYMBOL_AlterSystemStmt = 998, /* AlterSystemStmt */
+ YYSYMBOL_CreateDomainStmt = 999, /* CreateDomainStmt */
+ YYSYMBOL_AlterDomainStmt = 1000, /* AlterDomainStmt */
+ YYSYMBOL_opt_as = 1001, /* opt_as */
+ YYSYMBOL_AlterTSDictionaryStmt = 1002, /* AlterTSDictionaryStmt */
+ YYSYMBOL_AlterTSConfigurationStmt = 1003, /* AlterTSConfigurationStmt */
+ YYSYMBOL_any_with = 1004, /* any_with */
+ YYSYMBOL_CreateConversionStmt = 1005, /* CreateConversionStmt */
+ YYSYMBOL_ClusterStmt = 1006, /* ClusterStmt */
+ YYSYMBOL_cluster_index_specification = 1007, /* cluster_index_specification */
+ YYSYMBOL_VacuumStmt = 1008, /* VacuumStmt */
+ YYSYMBOL_AnalyzeStmt = 1009, /* AnalyzeStmt */
+ YYSYMBOL_utility_option_list = 1010, /* utility_option_list */
+ YYSYMBOL_analyze_keyword = 1011, /* analyze_keyword */
+ YYSYMBOL_utility_option_elem = 1012, /* utility_option_elem */
+ YYSYMBOL_utility_option_name = 1013, /* utility_option_name */
+ YYSYMBOL_utility_option_arg = 1014, /* utility_option_arg */
+ YYSYMBOL_opt_analyze = 1015, /* opt_analyze */
+ YYSYMBOL_opt_verbose = 1016, /* opt_verbose */
+ YYSYMBOL_opt_full = 1017, /* opt_full */
+ YYSYMBOL_opt_freeze = 1018, /* opt_freeze */
+ YYSYMBOL_opt_name_list = 1019, /* opt_name_list */
+ YYSYMBOL_vacuum_relation = 1020, /* vacuum_relation */
+ YYSYMBOL_vacuum_relation_list = 1021, /* vacuum_relation_list */
+ YYSYMBOL_opt_vacuum_relation_list = 1022, /* opt_vacuum_relation_list */
+ YYSYMBOL_ExplainStmt = 1023, /* ExplainStmt */
+ YYSYMBOL_ExplainableStmt = 1024, /* ExplainableStmt */
+ YYSYMBOL_PrepareStmt = 1025, /* PrepareStmt */
+ YYSYMBOL_prep_type_clause = 1026, /* prep_type_clause */
+ YYSYMBOL_PreparableStmt = 1027, /* PreparableStmt */
+ YYSYMBOL_ExecuteStmt = 1028, /* ExecuteStmt */
+ YYSYMBOL_execute_param_clause = 1029, /* execute_param_clause */
+ YYSYMBOL_InsertStmt = 1030, /* InsertStmt */
+ YYSYMBOL_insert_target = 1031, /* insert_target */
+ YYSYMBOL_insert_rest = 1032, /* insert_rest */
+ YYSYMBOL_override_kind = 1033, /* override_kind */
+ YYSYMBOL_insert_column_list = 1034, /* insert_column_list */
+ YYSYMBOL_insert_column_item = 1035, /* insert_column_item */
+ YYSYMBOL_opt_on_conflict = 1036, /* opt_on_conflict */
+ YYSYMBOL_opt_conf_expr = 1037, /* opt_conf_expr */
+ YYSYMBOL_returning_clause = 1038, /* returning_clause */
+ YYSYMBOL_DeleteStmt = 1039, /* DeleteStmt */
+ YYSYMBOL_using_clause = 1040, /* using_clause */
+ YYSYMBOL_LockStmt = 1041, /* LockStmt */
+ YYSYMBOL_opt_lock = 1042, /* opt_lock */
+ YYSYMBOL_lock_type = 1043, /* lock_type */
+ YYSYMBOL_opt_nowait = 1044, /* opt_nowait */
+ YYSYMBOL_opt_nowait_or_skip = 1045, /* opt_nowait_or_skip */
+ YYSYMBOL_UpdateStmt = 1046, /* UpdateStmt */
+ YYSYMBOL_set_clause_list = 1047, /* set_clause_list */
+ YYSYMBOL_set_clause = 1048, /* set_clause */
+ YYSYMBOL_set_target = 1049, /* set_target */
+ YYSYMBOL_set_target_list = 1050, /* set_target_list */
+ YYSYMBOL_MergeStmt = 1051, /* MergeStmt */
+ YYSYMBOL_merge_when_list = 1052, /* merge_when_list */
+ YYSYMBOL_merge_when_clause = 1053, /* merge_when_clause */
+ YYSYMBOL_opt_merge_when_condition = 1054, /* opt_merge_when_condition */
+ YYSYMBOL_merge_update = 1055, /* merge_update */
+ YYSYMBOL_merge_delete = 1056, /* merge_delete */
+ YYSYMBOL_merge_insert = 1057, /* merge_insert */
+ YYSYMBOL_merge_values_clause = 1058, /* merge_values_clause */
+ YYSYMBOL_DeclareCursorStmt = 1059, /* DeclareCursorStmt */
+ YYSYMBOL_cursor_name = 1060, /* cursor_name */
+ YYSYMBOL_cursor_options = 1061, /* cursor_options */
+ YYSYMBOL_opt_hold = 1062, /* opt_hold */
+ YYSYMBOL_SelectStmt = 1063, /* SelectStmt */
+ YYSYMBOL_select_with_parens = 1064, /* select_with_parens */
+ YYSYMBOL_select_no_parens = 1065, /* select_no_parens */
+ YYSYMBOL_select_clause = 1066, /* select_clause */
+ YYSYMBOL_simple_select = 1067, /* simple_select */
+ YYSYMBOL_with_clause = 1068, /* with_clause */
+ YYSYMBOL_cte_list = 1069, /* cte_list */
+ YYSYMBOL_common_table_expr = 1070, /* common_table_expr */
+ YYSYMBOL_opt_materialized = 1071, /* opt_materialized */
+ YYSYMBOL_opt_search_clause = 1072, /* opt_search_clause */
+ YYSYMBOL_opt_cycle_clause = 1073, /* opt_cycle_clause */
+ YYSYMBOL_opt_with_clause = 1074, /* opt_with_clause */
+ YYSYMBOL_into_clause = 1075, /* into_clause */
+ YYSYMBOL_OptTempTableName = 1076, /* OptTempTableName */
+ YYSYMBOL_opt_table = 1077, /* opt_table */
+ YYSYMBOL_set_quantifier = 1078, /* set_quantifier */
+ YYSYMBOL_distinct_clause = 1079, /* distinct_clause */
+ YYSYMBOL_opt_all_clause = 1080, /* opt_all_clause */
+ YYSYMBOL_opt_sort_clause = 1081, /* opt_sort_clause */
+ YYSYMBOL_sort_clause = 1082, /* sort_clause */
+ YYSYMBOL_sortby_list = 1083, /* sortby_list */
+ YYSYMBOL_sortby = 1084, /* sortby */
+ YYSYMBOL_select_limit = 1085, /* select_limit */
+ YYSYMBOL_opt_select_limit = 1086, /* opt_select_limit */
+ YYSYMBOL_limit_clause = 1087, /* limit_clause */
+ YYSYMBOL_offset_clause = 1088, /* offset_clause */
+ YYSYMBOL_select_limit_value = 1089, /* select_limit_value */
+ YYSYMBOL_select_offset_value = 1090, /* select_offset_value */
+ YYSYMBOL_select_fetch_first_value = 1091, /* select_fetch_first_value */
+ YYSYMBOL_I_or_F_const = 1092, /* I_or_F_const */
+ YYSYMBOL_row_or_rows = 1093, /* row_or_rows */
+ YYSYMBOL_first_or_next = 1094, /* first_or_next */
+ YYSYMBOL_group_clause = 1095, /* group_clause */
+ YYSYMBOL_group_by_list = 1096, /* group_by_list */
+ YYSYMBOL_group_by_item = 1097, /* group_by_item */
+ YYSYMBOL_empty_grouping_set = 1098, /* empty_grouping_set */
+ YYSYMBOL_rollup_clause = 1099, /* rollup_clause */
+ YYSYMBOL_cube_clause = 1100, /* cube_clause */
+ YYSYMBOL_grouping_sets_clause = 1101, /* grouping_sets_clause */
+ YYSYMBOL_having_clause = 1102, /* having_clause */
+ YYSYMBOL_for_locking_clause = 1103, /* for_locking_clause */
+ YYSYMBOL_opt_for_locking_clause = 1104, /* opt_for_locking_clause */
+ YYSYMBOL_for_locking_items = 1105, /* for_locking_items */
+ YYSYMBOL_for_locking_item = 1106, /* for_locking_item */
+ YYSYMBOL_for_locking_strength = 1107, /* for_locking_strength */
+ YYSYMBOL_locked_rels_list = 1108, /* locked_rels_list */
+ YYSYMBOL_values_clause = 1109, /* values_clause */
+ YYSYMBOL_from_clause = 1110, /* from_clause */
+ YYSYMBOL_from_list = 1111, /* from_list */
+ YYSYMBOL_table_ref = 1112, /* table_ref */
+ YYSYMBOL_joined_table = 1113, /* joined_table */
+ YYSYMBOL_alias_clause = 1114, /* alias_clause */
+ YYSYMBOL_opt_alias_clause = 1115, /* opt_alias_clause */
+ YYSYMBOL_opt_alias_clause_for_join_using = 1116, /* opt_alias_clause_for_join_using */
+ YYSYMBOL_func_alias_clause = 1117, /* func_alias_clause */
+ YYSYMBOL_join_type = 1118, /* join_type */
+ YYSYMBOL_opt_outer = 1119, /* opt_outer */
+ YYSYMBOL_join_qual = 1120, /* join_qual */
+ YYSYMBOL_relation_expr = 1121, /* relation_expr */
+ YYSYMBOL_extended_relation_expr = 1122, /* extended_relation_expr */
+ YYSYMBOL_relation_expr_list = 1123, /* relation_expr_list */
+ YYSYMBOL_relation_expr_opt_alias = 1124, /* relation_expr_opt_alias */
+ YYSYMBOL_tablesample_clause = 1125, /* tablesample_clause */
+ YYSYMBOL_opt_repeatable_clause = 1126, /* opt_repeatable_clause */
+ YYSYMBOL_func_table = 1127, /* func_table */
+ YYSYMBOL_rowsfrom_item = 1128, /* rowsfrom_item */
+ YYSYMBOL_rowsfrom_list = 1129, /* rowsfrom_list */
+ YYSYMBOL_opt_col_def_list = 1130, /* opt_col_def_list */
+ YYSYMBOL_opt_ordinality = 1131, /* opt_ordinality */
+ YYSYMBOL_where_clause = 1132, /* where_clause */
+ YYSYMBOL_where_or_current_clause = 1133, /* where_or_current_clause */
+ YYSYMBOL_OptTableFuncElementList = 1134, /* OptTableFuncElementList */
+ YYSYMBOL_TableFuncElementList = 1135, /* TableFuncElementList */
+ YYSYMBOL_TableFuncElement = 1136, /* TableFuncElement */
+ YYSYMBOL_xmltable = 1137, /* xmltable */
+ YYSYMBOL_xmltable_column_list = 1138, /* xmltable_column_list */
+ YYSYMBOL_xmltable_column_el = 1139, /* xmltable_column_el */
+ YYSYMBOL_xmltable_column_option_list = 1140, /* xmltable_column_option_list */
+ YYSYMBOL_xmltable_column_option_el = 1141, /* xmltable_column_option_el */
+ YYSYMBOL_xml_namespace_list = 1142, /* xml_namespace_list */
+ YYSYMBOL_xml_namespace_el = 1143, /* xml_namespace_el */
+ YYSYMBOL_Typename = 1144, /* Typename */
+ YYSYMBOL_opt_array_bounds = 1145, /* opt_array_bounds */
+ YYSYMBOL_SimpleTypename = 1146, /* SimpleTypename */
+ YYSYMBOL_ConstTypename = 1147, /* ConstTypename */
+ YYSYMBOL_GenericType = 1148, /* GenericType */
+ YYSYMBOL_opt_type_modifiers = 1149, /* opt_type_modifiers */
+ YYSYMBOL_Numeric = 1150, /* Numeric */
+ YYSYMBOL_opt_float = 1151, /* opt_float */
+ YYSYMBOL_Bit = 1152, /* Bit */
+ YYSYMBOL_ConstBit = 1153, /* ConstBit */
+ YYSYMBOL_BitWithLength = 1154, /* BitWithLength */
+ YYSYMBOL_BitWithoutLength = 1155, /* BitWithoutLength */
+ YYSYMBOL_Character = 1156, /* Character */
+ YYSYMBOL_ConstCharacter = 1157, /* ConstCharacter */
+ YYSYMBOL_CharacterWithLength = 1158, /* CharacterWithLength */
+ YYSYMBOL_CharacterWithoutLength = 1159, /* CharacterWithoutLength */
+ YYSYMBOL_character = 1160, /* character */
+ YYSYMBOL_opt_varying = 1161, /* opt_varying */
+ YYSYMBOL_ConstDatetime = 1162, /* ConstDatetime */
+ YYSYMBOL_ConstInterval = 1163, /* ConstInterval */
+ YYSYMBOL_opt_timezone = 1164, /* opt_timezone */
+ YYSYMBOL_opt_interval = 1165, /* opt_interval */
+ YYSYMBOL_interval_second = 1166, /* interval_second */
+ YYSYMBOL_a_expr = 1167, /* a_expr */
+ YYSYMBOL_b_expr = 1168, /* b_expr */
+ YYSYMBOL_c_expr = 1169, /* c_expr */
+ YYSYMBOL_func_application = 1170, /* func_application */
+ YYSYMBOL_func_expr = 1171, /* func_expr */
+ YYSYMBOL_func_expr_windowless = 1172, /* func_expr_windowless */
+ YYSYMBOL_func_expr_common_subexpr = 1173, /* func_expr_common_subexpr */
+ YYSYMBOL_xml_root_version = 1174, /* xml_root_version */
+ YYSYMBOL_opt_xml_root_standalone = 1175, /* opt_xml_root_standalone */
+ YYSYMBOL_xml_attributes = 1176, /* xml_attributes */
+ YYSYMBOL_xml_attribute_list = 1177, /* xml_attribute_list */
+ YYSYMBOL_xml_attribute_el = 1178, /* xml_attribute_el */
+ YYSYMBOL_document_or_content = 1179, /* document_or_content */
+ YYSYMBOL_xml_whitespace_option = 1180, /* xml_whitespace_option */
+ YYSYMBOL_xmlexists_argument = 1181, /* xmlexists_argument */
+ YYSYMBOL_xml_passing_mech = 1182, /* xml_passing_mech */
+ YYSYMBOL_within_group_clause = 1183, /* within_group_clause */
+ YYSYMBOL_filter_clause = 1184, /* filter_clause */
+ YYSYMBOL_window_clause = 1185, /* window_clause */
+ YYSYMBOL_window_definition_list = 1186, /* window_definition_list */
+ YYSYMBOL_window_definition = 1187, /* window_definition */
+ YYSYMBOL_over_clause = 1188, /* over_clause */
+ YYSYMBOL_window_specification = 1189, /* window_specification */
+ YYSYMBOL_opt_existing_window_name = 1190, /* opt_existing_window_name */
+ YYSYMBOL_opt_partition_clause = 1191, /* opt_partition_clause */
+ YYSYMBOL_opt_frame_clause = 1192, /* opt_frame_clause */
+ YYSYMBOL_frame_extent = 1193, /* frame_extent */
+ YYSYMBOL_frame_bound = 1194, /* frame_bound */
+ YYSYMBOL_opt_window_exclusion_clause = 1195, /* opt_window_exclusion_clause */
+ YYSYMBOL_row = 1196, /* row */
+ YYSYMBOL_explicit_row = 1197, /* explicit_row */
+ YYSYMBOL_implicit_row = 1198, /* implicit_row */
+ YYSYMBOL_sub_type = 1199, /* sub_type */
+ YYSYMBOL_all_Op = 1200, /* all_Op */
+ YYSYMBOL_MathOp = 1201, /* MathOp */
+ YYSYMBOL_qual_Op = 1202, /* qual_Op */
+ YYSYMBOL_qual_all_Op = 1203, /* qual_all_Op */
+ YYSYMBOL_subquery_Op = 1204, /* subquery_Op */
+ YYSYMBOL_expr_list = 1205, /* expr_list */
+ YYSYMBOL_func_arg_list = 1206, /* func_arg_list */
+ YYSYMBOL_func_arg_expr = 1207, /* func_arg_expr */
+ YYSYMBOL_func_arg_list_opt = 1208, /* func_arg_list_opt */
+ YYSYMBOL_type_list = 1209, /* type_list */
+ YYSYMBOL_array_expr = 1210, /* array_expr */
+ YYSYMBOL_array_expr_list = 1211, /* array_expr_list */
+ YYSYMBOL_extract_list = 1212, /* extract_list */
+ YYSYMBOL_extract_arg = 1213, /* extract_arg */
+ YYSYMBOL_unicode_normal_form = 1214, /* unicode_normal_form */
+ YYSYMBOL_overlay_list = 1215, /* overlay_list */
+ YYSYMBOL_position_list = 1216, /* position_list */
+ YYSYMBOL_substr_list = 1217, /* substr_list */
+ YYSYMBOL_trim_list = 1218, /* trim_list */
+ YYSYMBOL_in_expr = 1219, /* in_expr */
+ YYSYMBOL_case_expr = 1220, /* case_expr */
+ YYSYMBOL_when_clause_list = 1221, /* when_clause_list */
+ YYSYMBOL_when_clause = 1222, /* when_clause */
+ YYSYMBOL_case_default = 1223, /* case_default */
+ YYSYMBOL_case_arg = 1224, /* case_arg */
+ YYSYMBOL_columnref = 1225, /* columnref */
+ YYSYMBOL_indirection_el = 1226, /* indirection_el */
+ YYSYMBOL_opt_slice_bound = 1227, /* opt_slice_bound */
+ YYSYMBOL_indirection = 1228, /* indirection */
+ YYSYMBOL_opt_indirection = 1229, /* opt_indirection */
+ YYSYMBOL_opt_asymmetric = 1230, /* opt_asymmetric */
+ YYSYMBOL_opt_target_list = 1231, /* opt_target_list */
+ YYSYMBOL_target_list = 1232, /* target_list */
+ YYSYMBOL_target_el = 1233, /* target_el */
+ YYSYMBOL_qualified_name_list = 1234, /* qualified_name_list */
+ YYSYMBOL_qualified_name = 1235, /* qualified_name */
+ YYSYMBOL_name_list = 1236, /* name_list */
+ YYSYMBOL_name = 1237, /* name */
+ YYSYMBOL_attr_name = 1238, /* attr_name */
+ YYSYMBOL_file_name = 1239, /* file_name */
+ YYSYMBOL_func_name = 1240, /* func_name */
+ YYSYMBOL_AexprConst = 1241, /* AexprConst */
+ YYSYMBOL_Iconst = 1242, /* Iconst */
+ YYSYMBOL_SignedIconst = 1243, /* SignedIconst */
+ YYSYMBOL_RoleId = 1244, /* RoleId */
+ YYSYMBOL_RoleSpec = 1245, /* RoleSpec */
+ YYSYMBOL_role_list = 1246, /* role_list */
+ YYSYMBOL_NonReservedWord = 1247, /* NonReservedWord */
+ YYSYMBOL_BareColLabel = 1248, /* BareColLabel */
+ YYSYMBOL_unreserved_keyword = 1249, /* unreserved_keyword */
+ YYSYMBOL_col_name_keyword = 1250, /* col_name_keyword */
+ YYSYMBOL_type_func_name_keyword = 1251, /* type_func_name_keyword */
+ YYSYMBOL_reserved_keyword = 1252, /* reserved_keyword */
+ YYSYMBOL_bare_label_keyword = 1253, /* bare_label_keyword */
+ YYSYMBOL_statements = 1254, /* statements */
+ YYSYMBOL_statement = 1255, /* statement */
+ YYSYMBOL_CreateAsStmt = 1256, /* CreateAsStmt */
+ YYSYMBOL_1257_1 = 1257, /* $@1 */
+ YYSYMBOL_1258_2 = 1258, /* $@2 */
+ YYSYMBOL_at = 1259, /* at */
+ YYSYMBOL_ECPGConnect = 1260, /* ECPGConnect */
+ YYSYMBOL_connection_target = 1261, /* connection_target */
+ YYSYMBOL_opt_database_name = 1262, /* opt_database_name */
+ YYSYMBOL_db_prefix = 1263, /* db_prefix */
+ YYSYMBOL_server = 1264, /* server */
+ YYSYMBOL_opt_server = 1265, /* opt_server */
+ YYSYMBOL_server_name = 1266, /* server_name */
+ YYSYMBOL_opt_port = 1267, /* opt_port */
+ YYSYMBOL_opt_connection_name = 1268, /* opt_connection_name */
+ YYSYMBOL_opt_user = 1269, /* opt_user */
+ YYSYMBOL_ora_user = 1270, /* ora_user */
+ YYSYMBOL_user_name = 1271, /* user_name */
+ YYSYMBOL_char_variable = 1272, /* char_variable */
+ YYSYMBOL_opt_options = 1273, /* opt_options */
+ YYSYMBOL_connect_options = 1274, /* connect_options */
+ YYSYMBOL_opt_opt_value = 1275, /* opt_opt_value */
+ YYSYMBOL_prepared_name = 1276, /* prepared_name */
+ YYSYMBOL_ECPGDeclareStmt = 1277, /* ECPGDeclareStmt */
+ YYSYMBOL_ECPGCursorStmt = 1278, /* ECPGCursorStmt */
+ YYSYMBOL_ECPGExecuteImmediateStmt = 1279, /* ECPGExecuteImmediateStmt */
+ YYSYMBOL_ECPGVarDeclaration = 1280, /* ECPGVarDeclaration */
+ YYSYMBOL_single_vt_declaration = 1281, /* single_vt_declaration */
+ YYSYMBOL_precision = 1282, /* precision */
+ YYSYMBOL_opt_scale = 1283, /* opt_scale */
+ YYSYMBOL_ecpg_interval = 1284, /* ecpg_interval */
+ YYSYMBOL_ECPGDeclaration = 1285, /* ECPGDeclaration */
+ YYSYMBOL_1286_3 = 1286, /* $@3 */
+ YYSYMBOL_sql_startdeclare = 1287, /* sql_startdeclare */
+ YYSYMBOL_sql_enddeclare = 1288, /* sql_enddeclare */
+ YYSYMBOL_var_type_declarations = 1289, /* var_type_declarations */
+ YYSYMBOL_vt_declarations = 1290, /* vt_declarations */
+ YYSYMBOL_variable_declarations = 1291, /* variable_declarations */
+ YYSYMBOL_type_declaration = 1292, /* type_declaration */
+ YYSYMBOL_1293_4 = 1293, /* $@4 */
+ YYSYMBOL_var_declaration = 1294, /* var_declaration */
+ YYSYMBOL_1295_5 = 1295, /* $@5 */
+ YYSYMBOL_1296_6 = 1296, /* $@6 */
+ YYSYMBOL_opt_bit_field = 1297, /* opt_bit_field */
+ YYSYMBOL_storage_declaration = 1298, /* storage_declaration */
+ YYSYMBOL_storage_clause = 1299, /* storage_clause */
+ YYSYMBOL_storage_modifier = 1300, /* storage_modifier */
+ YYSYMBOL_var_type = 1301, /* var_type */
+ YYSYMBOL_enum_type = 1302, /* enum_type */
+ YYSYMBOL_enum_definition = 1303, /* enum_definition */
+ YYSYMBOL_struct_union_type_with_symbol = 1304, /* struct_union_type_with_symbol */
+ YYSYMBOL_1305_7 = 1305, /* $@7 */
+ YYSYMBOL_struct_union_type = 1306, /* struct_union_type */
+ YYSYMBOL_1307_8 = 1307, /* $@8 */
+ YYSYMBOL_s_struct_union_symbol = 1308, /* s_struct_union_symbol */
+ YYSYMBOL_s_struct_union = 1309, /* s_struct_union */
+ YYSYMBOL_simple_type = 1310, /* simple_type */
+ YYSYMBOL_unsigned_type = 1311, /* unsigned_type */
+ YYSYMBOL_signed_type = 1312, /* signed_type */
+ YYSYMBOL_opt_signed = 1313, /* opt_signed */
+ YYSYMBOL_variable_list = 1314, /* variable_list */
+ YYSYMBOL_variable = 1315, /* variable */
+ YYSYMBOL_opt_initializer = 1316, /* opt_initializer */
+ YYSYMBOL_opt_pointer = 1317, /* opt_pointer */
+ YYSYMBOL_ECPGDeclare = 1318, /* ECPGDeclare */
+ YYSYMBOL_ECPGDisconnect = 1319, /* ECPGDisconnect */
+ YYSYMBOL_dis_name = 1320, /* dis_name */
+ YYSYMBOL_connection_object = 1321, /* connection_object */
+ YYSYMBOL_execstring = 1322, /* execstring */
+ YYSYMBOL_ECPGFree = 1323, /* ECPGFree */
+ YYSYMBOL_ECPGOpen = 1324, /* ECPGOpen */
+ YYSYMBOL_opt_ecpg_using = 1325, /* opt_ecpg_using */
+ YYSYMBOL_ecpg_using = 1326, /* ecpg_using */
+ YYSYMBOL_using_descriptor = 1327, /* using_descriptor */
+ YYSYMBOL_into_descriptor = 1328, /* into_descriptor */
+ YYSYMBOL_into_sqlda = 1329, /* into_sqlda */
+ YYSYMBOL_using_list = 1330, /* using_list */
+ YYSYMBOL_UsingValue = 1331, /* UsingValue */
+ YYSYMBOL_UsingConst = 1332, /* UsingConst */
+ YYSYMBOL_ECPGDescribe = 1333, /* ECPGDescribe */
+ YYSYMBOL_opt_output = 1334, /* opt_output */
+ YYSYMBOL_ECPGAllocateDescr = 1335, /* ECPGAllocateDescr */
+ YYSYMBOL_ECPGDeallocateDescr = 1336, /* ECPGDeallocateDescr */
+ YYSYMBOL_ECPGGetDescriptorHeader = 1337, /* ECPGGetDescriptorHeader */
+ YYSYMBOL_ECPGGetDescHeaderItems = 1338, /* ECPGGetDescHeaderItems */
+ YYSYMBOL_ECPGGetDescHeaderItem = 1339, /* ECPGGetDescHeaderItem */
+ YYSYMBOL_ECPGSetDescriptorHeader = 1340, /* ECPGSetDescriptorHeader */
+ YYSYMBOL_ECPGSetDescHeaderItems = 1341, /* ECPGSetDescHeaderItems */
+ YYSYMBOL_ECPGSetDescHeaderItem = 1342, /* ECPGSetDescHeaderItem */
+ YYSYMBOL_IntConstVar = 1343, /* IntConstVar */
+ YYSYMBOL_desc_header_item = 1344, /* desc_header_item */
+ YYSYMBOL_ECPGGetDescriptor = 1345, /* ECPGGetDescriptor */
+ YYSYMBOL_ECPGGetDescItems = 1346, /* ECPGGetDescItems */
+ YYSYMBOL_ECPGGetDescItem = 1347, /* ECPGGetDescItem */
+ YYSYMBOL_ECPGSetDescriptor = 1348, /* ECPGSetDescriptor */
+ YYSYMBOL_ECPGSetDescItems = 1349, /* ECPGSetDescItems */
+ YYSYMBOL_ECPGSetDescItem = 1350, /* ECPGSetDescItem */
+ YYSYMBOL_AllConstVar = 1351, /* AllConstVar */
+ YYSYMBOL_descriptor_item = 1352, /* descriptor_item */
+ YYSYMBOL_ECPGSetAutocommit = 1353, /* ECPGSetAutocommit */
+ YYSYMBOL_on_off = 1354, /* on_off */
+ YYSYMBOL_ECPGSetConnection = 1355, /* ECPGSetConnection */
+ YYSYMBOL_ECPGTypedef = 1356, /* ECPGTypedef */
+ YYSYMBOL_1357_9 = 1357, /* $@9 */
+ YYSYMBOL_opt_reference = 1358, /* opt_reference */
+ YYSYMBOL_ECPGVar = 1359, /* ECPGVar */
+ YYSYMBOL_1360_10 = 1360, /* $@10 */
+ YYSYMBOL_ECPGWhenever = 1361, /* ECPGWhenever */
+ YYSYMBOL_action = 1362, /* action */
+ YYSYMBOL_ECPGKeywords = 1363, /* ECPGKeywords */
+ YYSYMBOL_ECPGKeywords_vanames = 1364, /* ECPGKeywords_vanames */
+ YYSYMBOL_ECPGKeywords_rest = 1365, /* ECPGKeywords_rest */
+ YYSYMBOL_ECPGTypeName = 1366, /* ECPGTypeName */
+ YYSYMBOL_symbol = 1367, /* symbol */
+ YYSYMBOL_ECPGColId = 1368, /* ECPGColId */
+ YYSYMBOL_ColId = 1369, /* ColId */
+ YYSYMBOL_type_function_name = 1370, /* type_function_name */
+ YYSYMBOL_ColLabel = 1371, /* ColLabel */
+ YYSYMBOL_ECPGColLabel = 1372, /* ECPGColLabel */
+ YYSYMBOL_ECPGColLabelCommon = 1373, /* ECPGColLabelCommon */
+ YYSYMBOL_ECPGCKeywords = 1374, /* ECPGCKeywords */
+ YYSYMBOL_all_unreserved_keyword = 1375, /* all_unreserved_keyword */
+ YYSYMBOL_ECPGunreserved_interval = 1376, /* ECPGunreserved_interval */
+ YYSYMBOL_into_list = 1377, /* into_list */
+ YYSYMBOL_ecpgstart = 1378, /* ecpgstart */
+ YYSYMBOL_c_args = 1379, /* c_args */
+ YYSYMBOL_coutputvariable = 1380, /* coutputvariable */
+ YYSYMBOL_civarind = 1381, /* civarind */
+ YYSYMBOL_char_civar = 1382, /* char_civar */
+ YYSYMBOL_civar = 1383, /* civar */
+ YYSYMBOL_indicator = 1384, /* indicator */
+ YYSYMBOL_cvariable = 1385, /* cvariable */
+ YYSYMBOL_ecpg_param = 1386, /* ecpg_param */
+ YYSYMBOL_ecpg_bconst = 1387, /* ecpg_bconst */
+ YYSYMBOL_ecpg_fconst = 1388, /* ecpg_fconst */
+ YYSYMBOL_ecpg_sconst = 1389, /* ecpg_sconst */
+ YYSYMBOL_ecpg_xconst = 1390, /* ecpg_xconst */
+ YYSYMBOL_ecpg_ident = 1391, /* ecpg_ident */
+ YYSYMBOL_quoted_ident_stringvar = 1392, /* quoted_ident_stringvar */
+ YYSYMBOL_c_stuff_item = 1393, /* c_stuff_item */
+ YYSYMBOL_c_stuff = 1394, /* c_stuff */
+ YYSYMBOL_c_list = 1395, /* c_list */
+ YYSYMBOL_c_term = 1396, /* c_term */
+ YYSYMBOL_c_thing = 1397, /* c_thing */
+ YYSYMBOL_c_anything = 1398, /* c_anything */
+ YYSYMBOL_DeallocateStmt = 1399, /* DeallocateStmt */
+ YYSYMBOL_Iresult = 1400, /* Iresult */
+ YYSYMBOL_execute_rest = 1401, /* execute_rest */
+ YYSYMBOL_ecpg_into = 1402, /* ecpg_into */
+ YYSYMBOL_opt_ecpg_into = 1403, /* opt_ecpg_into */
+ YYSYMBOL_ecpg_fetch_into = 1404, /* ecpg_fetch_into */
+ YYSYMBOL_opt_ecpg_fetch_into = 1405 /* opt_ecpg_fetch_into */
+};
+typedef enum yysymbol_kind_t yysymbol_kind_t;
+
+
+
+
+#ifdef short
+# undef short
+#endif
+
+/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
+ <limits.h> and (if available) <stdint.h> are included
+ so that the code can choose integer types of a good width. */
+
+#ifndef __PTRDIFF_MAX__
+# include <limits.h> /* INFRINGES ON USER NAME SPACE */
+# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
+# include <stdint.h> /* INFRINGES ON USER NAME SPACE */
+# define YY_STDINT_H
+# endif
+#endif
+
+/* Narrow types that promote to a signed type and that can represent a
+ signed or unsigned integer of at least N bits. In tables they can
+ save space and decrease cache pressure. Promoting to a signed type
+ helps avoid bugs in integer arithmetic. */
+
+#ifdef __INT_LEAST8_MAX__
+typedef __INT_LEAST8_TYPE__ yytype_int8;
+#elif defined YY_STDINT_H
+typedef int_least8_t yytype_int8;
+#else
+typedef signed char yytype_int8;
+#endif
+
+#ifdef __INT_LEAST16_MAX__
+typedef __INT_LEAST16_TYPE__ yytype_int16;
+#elif defined YY_STDINT_H
+typedef int_least16_t yytype_int16;
+#else
+typedef short yytype_int16;
+#endif
+
+/* Work around bug in HP-UX 11.23, which defines these macros
+ incorrectly for preprocessor constants. This workaround can likely
+ be removed in 2023, as HPE has promised support for HP-UX 11.23
+ (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
+ <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>. */
+#ifdef __hpux
+# undef UINT_LEAST8_MAX
+# undef UINT_LEAST16_MAX
+# define UINT_LEAST8_MAX 255
+# define UINT_LEAST16_MAX 65535
+#endif
+
+#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
+typedef __UINT_LEAST8_TYPE__ yytype_uint8;
+#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
+ && UINT_LEAST8_MAX <= INT_MAX)
+typedef uint_least8_t yytype_uint8;
+#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
+typedef unsigned char yytype_uint8;
+#else
+typedef short yytype_uint8;
+#endif
+
+#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
+typedef __UINT_LEAST16_TYPE__ yytype_uint16;
+#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
+ && UINT_LEAST16_MAX <= INT_MAX)
+typedef uint_least16_t yytype_uint16;
+#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
+typedef unsigned short yytype_uint16;
+#else
+typedef int yytype_uint16;
+#endif
+
+#ifndef YYPTRDIFF_T
+# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
+# define YYPTRDIFF_T __PTRDIFF_TYPE__
+# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
+# elif defined PTRDIFF_MAX
+# ifndef ptrdiff_t
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# endif
+# define YYPTRDIFF_T ptrdiff_t
+# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
+# else
+# define YYPTRDIFF_T long
+# define YYPTRDIFF_MAXIMUM LONG_MAX
+# endif
+#endif
+
+#ifndef YYSIZE_T
+# ifdef __SIZE_TYPE__
+# define YYSIZE_T __SIZE_TYPE__
+# elif defined size_t
+# define YYSIZE_T size_t
+# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# else
+# define YYSIZE_T unsigned
+# endif
+#endif
+
+#define YYSIZE_MAXIMUM \
+ YY_CAST (YYPTRDIFF_T, \
+ (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
+ ? YYPTRDIFF_MAXIMUM \
+ : YY_CAST (YYSIZE_T, -1)))
+
+#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
+
+
+/* Stored state numbers (used for stacks). */
+typedef yytype_int16 yy_state_t;
+
+/* State numbers in computations. */
+typedef int yy_state_fast_t;
+
+#ifndef YY_
+# if defined YYENABLE_NLS && YYENABLE_NLS
+# if ENABLE_NLS
+# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
+# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
+# endif
+# endif
+# ifndef YY_
+# define YY_(Msgid) Msgid
+# endif
+#endif
+
+
+#ifndef YY_ATTRIBUTE_PURE
+# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
+# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
+# else
+# define YY_ATTRIBUTE_PURE
+# endif
+#endif
+
+#ifndef YY_ATTRIBUTE_UNUSED
+# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
+# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
+# else
+# define YY_ATTRIBUTE_UNUSED
+# endif
+#endif
+
+/* Suppress unused-variable warnings by "using" E. */
+#if ! defined lint || defined __GNUC__
+# define YY_USE(E) ((void) (E))
+#else
+# define YY_USE(E) /* empty */
+#endif
+
+#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
+/* Suppress an incorrect diagnostic about yylval being uninitialized. */
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
+ _Pragma ("GCC diagnostic push") \
+ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
+ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
+# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
+ _Pragma ("GCC diagnostic pop")
+#else
+# define YY_INITIAL_VALUE(Value) Value
+#endif
+#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+# define YY_IGNORE_MAYBE_UNINITIALIZED_END
+#endif
+#ifndef YY_INITIAL_VALUE
+# define YY_INITIAL_VALUE(Value) /* Nothing. */
+#endif
+
+#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
+# define YY_IGNORE_USELESS_CAST_BEGIN \
+ _Pragma ("GCC diagnostic push") \
+ _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
+# define YY_IGNORE_USELESS_CAST_END \
+ _Pragma ("GCC diagnostic pop")
+#endif
+#ifndef YY_IGNORE_USELESS_CAST_BEGIN
+# define YY_IGNORE_USELESS_CAST_BEGIN
+# define YY_IGNORE_USELESS_CAST_END
+#endif
+
+
+#define YY_ASSERT(E) ((void) (0 && (E)))
+
+#if !defined yyoverflow
+
+/* The parser invokes alloca or malloc; define the necessary symbols. */
+
+# ifdef YYSTACK_USE_ALLOCA
+# if YYSTACK_USE_ALLOCA
+# ifdef __GNUC__
+# define YYSTACK_ALLOC __builtin_alloca
+# elif defined __BUILTIN_VA_ARG_INCR
+# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
+# elif defined _AIX
+# define YYSTACK_ALLOC __alloca
+# elif defined _MSC_VER
+# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
+# define alloca _alloca
+# else
+# define YYSTACK_ALLOC alloca
+# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+ /* Use EXIT_SUCCESS as a witness for stdlib.h. */
+# ifndef EXIT_SUCCESS
+# define EXIT_SUCCESS 0
+# endif
+# endif
+# endif
+# endif
+# endif
+
+# ifdef YYSTACK_ALLOC
+ /* Pacify GCC's 'empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
+# ifndef YYSTACK_ALLOC_MAXIMUM
+ /* The OS might guarantee only one guard page at the bottom of the stack,
+ and a page size can be as small as 4096 bytes. So we cannot safely
+ invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
+ to allow for a few compiler-allocated temporary stack slots. */
+# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
+# endif
+# else
+# define YYSTACK_ALLOC YYMALLOC
+# define YYSTACK_FREE YYFREE
+# ifndef YYSTACK_ALLOC_MAXIMUM
+# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
+# endif
+# if (defined __cplusplus && ! defined EXIT_SUCCESS \
+ && ! ((defined YYMALLOC || defined malloc) \
+ && (defined YYFREE || defined free)))
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef EXIT_SUCCESS
+# define EXIT_SUCCESS 0
+# endif
+# endif
+# ifndef YYMALLOC
+# define YYMALLOC malloc
+# if ! defined malloc && ! defined EXIT_SUCCESS
+void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# ifndef YYFREE
+# define YYFREE free
+# if ! defined free && ! defined EXIT_SUCCESS
+void free (void *); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# endif
+#endif /* !defined yyoverflow */
+
+#if (! defined yyoverflow \
+ && (! defined __cplusplus \
+ || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
+ && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+
+/* A type that is properly aligned for any stack member. */
+union yyalloc
+{
+ yy_state_t yyss_alloc;
+ YYSTYPE yyvs_alloc;
+ YYLTYPE yyls_alloc;
+};
+
+/* The size of the maximum gap between one aligned stack and the next. */
+# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
+
+/* The size of an array large to enough to hold all stacks, each with
+ N elements. */
+# define YYSTACK_BYTES(N) \
+ ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE) \
+ + YYSIZEOF (YYLTYPE)) \
+ + 2 * YYSTACK_GAP_MAXIMUM)
+
+# define YYCOPY_NEEDED 1
+
+/* Relocate STACK from its old location to the new one. The
+ local variables YYSIZE and YYSTACKSIZE give the old and new number of
+ elements in the stack, and YYPTR gives the new location of the
+ stack. Advance YYPTR to a properly aligned location for the next
+ stack. */
+# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
+ do \
+ { \
+ YYPTRDIFF_T yynewbytes; \
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
+ yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / YYSIZEOF (*yyptr); \
+ } \
+ while (0)
+
+#endif
+
+#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
+/* Copy COUNT objects from SRC to DST. The source and destination do
+ not overlap. */
+# ifndef YYCOPY
+# if defined __GNUC__ && 1 < __GNUC__
+# define YYCOPY(Dst, Src, Count) \
+ __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
+# else
+# define YYCOPY(Dst, Src, Count) \
+ do \
+ { \
+ YYPTRDIFF_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) \
+ (Dst)[yyi] = (Src)[yyi]; \
+ } \
+ while (0)
+# endif
+# endif
+#endif /* !YYCOPY_NEEDED */
+
+/* YYFINAL -- State number of the termination state. */
+#define YYFINAL 3
+/* YYLAST -- Last index in YYTABLE. */
+#define YYLAST 151443
+
+/* YYNTOKENS -- Number of terminals. */
+#define YYNTOKENS 578
+/* YYNNTS -- Number of nonterminals. */
+#define YYNNTS 828
+/* YYNRULES -- Number of rules. */
+#define YYNRULES 3667
+/* YYNSTATES -- Number of states. */
+#define YYNSTATES 6719
+
+/* YYMAXUTOK -- Last valid token kind. */
+#define YYMAXUTOK 813
+
+
+/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
+ as returned by yylex, with out-of-bounds checking. */
+#define YYTRANSLATE(YYX) \
+ (0 <= (YYX) && (YYX) <= YYMAXUTOK \
+ ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
+ : YYSYMBOL_YYUNDEF)
+
+/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
+ as returned by yylex. */
+static const yytype_int16 yytranslate[] =
+{
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 565, 2, 2,
+ 570, 571, 563, 561, 573, 562, 572, 564, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 575, 574,
+ 558, 560, 559, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 568, 2, 569, 566, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 576, 2, 577, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
+ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
+ 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
+ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
+ 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
+ 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
+ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
+ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
+ 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
+ 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
+ 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
+ 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
+ 145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
+ 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
+ 165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
+ 175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
+ 195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
+ 205, 206, 207, 208, 209, 210, 211, 212, 213, 214,
+ 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, 229, 230, 231, 232, 233, 234,
+ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
+ 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
+ 255, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
+ 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
+ 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
+ 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
+ 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
+ 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
+ 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
+ 385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ 405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, 419, 420, 421, 422, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, 438, 439, 440, 441, 442, 443, 444,
+ 445, 446, 447, 448, 449, 450, 451, 452, 453, 454,
+ 455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, 471, 472, 473, 474,
+ 475, 476, 477, 478, 479, 480, 481, 482, 483, 484,
+ 485, 486, 487, 488, 489, 490, 491, 492, 493, 494,
+ 495, 496, 497, 498, 499, 500, 501, 502, 503, 504,
+ 505, 506, 507, 508, 509, 510, 511, 512, 513, 514,
+ 515, 516, 517, 518, 519, 520, 521, 522, 523, 524,
+ 525, 526, 527, 528, 529, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 550, 551, 552, 553, 554,
+ 555, 556, 557, 567
+};
+
+#if YYDEBUG
+ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
+static const yytype_int16 yyrline[] =
+{
+ 0, 1673, 1673, 1676, 1680, 1690, 1692, 1694, 1696, 1698,
+ 1700, 1702, 1704, 1706, 1708, 1710, 1712, 1714, 1716, 1718,
+ 1720, 1722, 1724, 1726, 1728, 1730, 1732, 1734, 1736, 1738,
+ 1740, 1742, 1744, 1746, 1748, 1750, 1752, 1754, 1756, 1758,
+ 1760, 1778, 1780, 1782, 1784, 1786, 1788, 1790, 1792, 1794,
+ 1796, 1798, 1800, 1802, 1804, 1806, 1808, 1810, 1812, 1814,
+ 1816, 1818, 1820, 1822, 1824, 1826, 1828, 1830, 1832, 1834,
+ 1836, 1838, 1840, 1842, 1844, 1846, 1848, 1850, 1854, 1856,
+ 1858, 1860, 1862, 1864, 1866, 1868, 1870, 1872, 1874, 1876,
+ 1878, 1880, 1882, 1884, 1886, 1910, 1912, 1914, 1916, 1918,
+ 1920, 1922, 1924, 1926, 1928, 1930, 1932, 1934, 1936, 1964,
+ 1966, 1968, 1970, 1972, 1974, 1976, 1978, 1980, 1982, 1984,
+ 1986, 1992, 1994, 1996, 1998, 2000, 2002, 2004, 2006, 2008,
+ 2014, 2024, 2028, 2032, 2038, 2042, 2054, 2064, 2065, 2079,
+ 2086, 2092, 2103, 2109, 2118, 2125, 2131, 2140, 2147, 2155,
+ 2160, 2168, 2176, 2180, 2185, 2191, 2196, 2202, 2207, 2213,
+ 2217, 2221, 2225, 2230, 2234, 2238, 2242, 2246, 2254, 2258,
+ 2262, 2266, 2270, 2274, 2282, 2290, 2294, 2303, 2305, 2313,
+ 2317, 2321, 2325, 2333, 2337, 2341, 2345, 2349, 2353, 2361,
+ 2369, 2377, 2381, 2389, 2393, 2397, 2402, 2411, 2416, 2422,
+ 2427, 2433, 2437, 2441, 2445, 2449, 2453, 2461, 2465, 2469,
+ 2477, 2481, 2485, 2493, 2497, 2501, 2505, 2513, 2517, 2521,
+ 2525, 2530, 2534, 2538, 2542, 2546, 2550, 2554, 2562, 2566,
+ 2574, 2578, 2586, 2590, 2604, 2608, 2612, 2616, 2624, 2628,
+ 2632, 2636, 2644, 2648, 2652, 2656, 2660, 2664, 2668, 2676,
+ 2680, 2685, 2691, 2695, 2703, 2711, 2715, 2719, 2723, 2731,
+ 2735, 2743, 2747, 2755, 2759, 2767, 2771, 2775, 2779, 2783,
+ 2792, 2800, 2804, 2812, 2816, 2824, 2832, 2836, 2840, 2844,
+ 2848, 2856, 2860, 2864, 2868, 2872, 2876, 2880, 2884, 2888,
+ 2892, 2896, 2900, 2904, 2908, 2912, 2916, 2920, 2924, 2928,
+ 2932, 2936, 2944, 2948, 2956, 2960, 2964, 2972, 2980, 2984,
+ 2988, 2992, 2996, 3000, 3004, 3008, 3012, 3016, 3020, 3024,
+ 3028, 3032, 3036, 3040, 3044, 3048, 3052, 3056, 3060, 3064,
+ 3068, 3072, 3076, 3080, 3084, 3088, 3092, 3096, 3100, 3104,
+ 3108, 3112, 3116, 3120, 3124, 3128, 3132, 3136, 3140, 3144,
+ 3148, 3152, 3156, 3160, 3164, 3168, 3172, 3176, 3180, 3184,
+ 3188, 3192, 3196, 3200, 3204, 3208, 3212, 3216, 3224, 3228,
+ 3236, 3240, 3245, 3251, 3256, 3262, 3267, 3273, 3277, 3281,
+ 3285, 3293, 3301, 3306, 3312, 3316, 3324, 3328, 3332, 3336,
+ 3344, 3348, 3356, 3360, 3364, 3368, 3376, 3380, 3384, 3388,
+ 3396, 3404, 3408, 3416, 3424, 3428, 3436, 3440, 3444, 3448,
+ 3456, 3472, 3480, 3488, 3496, 3500, 3508, 3513, 3519, 3523,
+ 3527, 3535, 3539, 3547, 3552, 3558, 3562, 3566, 3570, 3574,
+ 3578, 3582, 3586, 3590, 3594, 3598, 3602, 3606, 3614, 3619,
+ 3625, 3630, 3636, 3641, 3647, 3651, 3659, 3667, 3671, 3675,
+ 3679, 3684, 3690, 3694, 3702, 3710, 3714, 3718, 3722, 3726,
+ 3730, 3738, 3742, 3746, 3750, 3754, 3758, 3762, 3767, 3773,
+ 3778, 3784, 3789, 3795, 3799, 3807, 3811, 3819, 3823, 3827,
+ 3835, 3839, 3847, 3855, 3859, 3867, 3871, 3879, 3884, 3890,
+ 3895, 3901, 3905, 3909, 3913, 3921, 3925, 3929, 3933, 3937,
+ 3941, 3945, 3949, 3953, 3961, 3965, 3970, 3976, 3980, 3988,
+ 3992, 3996, 4000, 4008, 4016, 4020, 4025, 4031, 4035, 4039,
+ 4043, 4047, 4051, 4055, 4059, 4063, 4067, 4075, 4079, 4087,
+ 4091, 4095, 4099, 4103, 4107, 4111, 4119, 4124, 4130, 4135,
+ 4141, 4145, 4153, 4161, 4166, 4172, 4176, 4181, 4186, 4192,
+ 4196, 4204, 4208, 4216, 4221, 4227, 4231, 4235, 4239, 4244,
+ 4250, 4259, 4267, 4271, 4275, 4279, 4283, 4291, 4296, 4302,
+ 4307, 4313, 4321, 4325, 4333, 4337, 4341, 4349, 4354, 4360,
+ 4364, 4369, 4375, 4379, 4383, 4388, 4394, 4399, 4405, 4410,
+ 4416, 4424, 4428, 4436, 4440, 4448, 4452, 4456, 4464, 4468,
+ 4476, 4484, 4488, 4493, 4499, 4503, 4511, 4519, 4524, 4530,
+ 4538, 4542, 4550, 4554, 4562, 4567, 4573, 4578, 4584, 4588,
+ 4596, 4600, 4604, 4608, 4612, 4616, 4620, 4624, 4628, 4632,
+ 4636, 4640, 4644, 4648, 4656, 4661, 4667, 4671, 4675, 4679,
+ 4687, 4691, 4699, 4703, 4711, 4716, 4722, 4726, 4734, 4739,
+ 4745, 4749, 4757, 4762, 4768, 4773, 4779, 4787, 4792, 4798,
+ 4802, 4810, 4814, 4822, 4827, 4833, 4837, 4841, 4846, 4854,
+ 4862, 4867, 4873, 4881, 4885, 4889, 4893, 4897, 4901, 4905,
+ 4909, 4913, 4917, 4921, 4925, 4929, 4937, 4945, 4949, 4953,
+ 4957, 4965, 4969, 4977, 4982, 4988, 4992, 5000, 5005, 5011,
+ 5015, 5023, 5031, 5035, 5043, 5047, 5051, 5055, 5063, 5071,
+ 5079, 5087, 5091, 5099, 5104, 5110, 5114, 5122, 5127, 5133,
+ 5137, 5141, 5149, 5153, 5157, 5161, 5169, 5177, 5181, 5189,
+ 5194, 5200, 5204, 5212, 5216, 5224, 5228, 5236, 5244, 5252,
+ 5260, 5265, 5271, 5276, 5282, 5287, 5293, 5298, 5304, 5309,
+ 5315, 5320, 5326, 5330, 5334, 5338, 5342, 5350, 5358, 5362,
+ 5370, 5374, 5383, 5387, 5391, 5399, 5403, 5411, 5415, 5419,
+ 5423, 5427, 5435, 5440, 5446, 5450, 5458, 5466, 5470, 5478,
+ 5482, 5490, 5498, 5503, 5509, 5514, 5520, 5524, 5532, 5537,
+ 5543, 5547, 5555, 5559, 5564, 5570, 5574, 5578, 5582, 5590,
+ 5595, 5602, 5604, 5612, 5616, 5620, 5624, 5628, 5632, 5640,
+ 5644, 5652, 5656, 5664, 5672, 5676, 5684, 5692, 5696, 5700,
+ 5704, 5712, 5721, 5725, 5729, 5733, 5737, 5741, 5745, 5749,
+ 5753, 5757, 5761, 5765, 5769, 5773, 5777, 5781, 5789, 5797,
+ 5801, 5809, 5813, 5821, 5825, 5829, 5833, 5837, 5841, 5849,
+ 5857, 5861, 5869, 5877, 5882, 5888, 5892, 5900, 5904, 5908,
+ 5912, 5920, 5925, 5931, 5939, 5943, 5951, 5955, 5959, 5963,
+ 5967, 5975, 5980, 5986, 5991, 5997, 6001, 6006, 6012, 6018,
+ 6024, 6032, 6036, 6044, 6048, 6056, 6060, 6068, 6072, 6080,
+ 6084, 6092, 6100, 6108, 6112, 6116, 6120, 6124, 6128, 6132,
+ 6136, 6140, 6144, 6148, 6152, 6160, 6164, 6168, 6172, 6176,
+ 6180, 6184, 6188, 6192, 6196, 6200, 6204, 6208, 6216, 6220,
+ 6224, 6228, 6232, 6240, 6244, 6248, 6252, 6256, 6260, 6264,
+ 6268, 6276, 6280, 6284, 6292, 6296, 6304, 6308, 6316, 6320,
+ 6328, 6332, 6340, 6348, 6352, 6357, 6363, 6367, 6371, 6375,
+ 6379, 6383, 6387, 6391, 6395, 6399, 6403, 6407, 6411, 6415,
+ 6419, 6423, 6427, 6431, 6439, 6443, 6451, 6455, 6459, 6463,
+ 6467, 6471, 6475, 6479, 6483, 6487, 6495, 6500, 6506, 6510,
+ 6518, 6522, 6526, 6530, 6539, 6548, 6557, 6566, 6575, 6584,
+ 6593, 6606, 6620, 6634, 6648, 6662, 6676, 6690, 6709, 6728,
+ 6747, 6761, 6780, 6794, 6813, 6831, 6835, 6843, 6848, 6854,
+ 6862, 6866, 6874, 6878, 6882, 6886, 6890, 6898, 6902, 6910,
+ 6914, 6918, 6922, 6926, 6934, 6938, 6946, 6950, 6958, 6962,
+ 6966, 6970, 6974, 6978, 6982, 6986, 6990, 6994, 6998, 7002,
+ 7006, 7010, 7014, 7018, 7022, 7026, 7030, 7034, 7038, 7046,
+ 7050, 7058, 7062, 7070, 7075, 7081, 7089, 7093, 7101, 7106,
+ 7112, 7117, 7123, 7131, 7136, 7142, 7146, 7150, 7158, 7162,
+ 7166, 7174, 7178, 7182, 7186, 7190, 7194, 7202, 7206, 7214,
+ 7219, 7225, 7230, 7236, 7241, 7247, 7252, 7258, 7262, 7270,
+ 7274, 7282, 7286, 7290, 7298, 7303, 7309, 7313, 7321, 7326,
+ 7332, 7337, 7343, 7347, 7352, 7358, 7362, 7367, 7373, 7377,
+ 7381, 7385, 7393, 7398, 7404, 7408, 7416, 7420, 7428, 7432,
+ 7440, 7444, 7448, 7452, 7460, 7464, 7472, 7476, 7484, 7488,
+ 7492, 7496, 7500, 7508, 7512, 7516, 7520, 7524, 7532, 7540,
+ 7548, 7552, 7556, 7564, 7568, 7572, 7580, 7589, 7593, 7597,
+ 7601, 7609, 7613, 7621, 7629, 7633, 7641, 7646, 7652, 7656,
+ 7664, 7668, 7672, 7676, 7680, 7684, 7688, 7692, 7696, 7700,
+ 7704, 7708, 7712, 7716, 7720, 7724, 7728, 7736, 7740, 7744,
+ 7748, 7752, 7760, 7764, 7772, 7780, 7784, 7789, 7795, 7800,
+ 7806, 7810, 7818, 7822, 7830, 7835, 7841, 7849, 7853, 7861,
+ 7865, 7869, 7877, 7881, 7889, 7894, 7900, 7904, 7908, 7912,
+ 7916, 7920, 7928, 7932, 7940, 7944, 7952, 7956, 7960, 7964,
+ 7972, 7976, 7984, 7988, 7996, 8004, 8012, 8016, 8024, 8028,
+ 8036, 8040, 8044, 8052, 8056, 8061, 8067, 8075, 8080, 8086,
+ 8094, 8098, 8102, 8106, 8114, 8122, 8126, 8130, 8134, 8142,
+ 8146, 8154, 8158, 8162, 8170, 8174, 8182, 8186, 8190, 8194,
+ 8198, 8202, 8206, 8210, 8214, 8218, 8222, 8226, 8230, 8234,
+ 8238, 8242, 8246, 8250, 8254, 8258, 8262, 8266, 8270, 8274,
+ 8278, 8282, 8286, 8290, 8294, 8298, 8302, 8306, 8310, 8314,
+ 8318, 8322, 8326, 8330, 8334, 8338, 8342, 8346, 8350, 8354,
+ 8358, 8362, 8366, 8370, 8374, 8378, 8382, 8386, 8390, 8394,
+ 8398, 8406, 8411, 8417, 8422, 8428, 8432, 8436, 8440, 8444,
+ 8448, 8456, 8461, 8467, 8471, 8475, 8479, 8483, 8487, 8491,
+ 8495, 8499, 8503, 8507, 8511, 8515, 8519, 8523, 8527, 8531,
+ 8535, 8539, 8543, 8547, 8551, 8555, 8559, 8563, 8567, 8571,
+ 8579, 8587, 8591, 8599, 8603, 8611, 8615, 8619, 8623, 8627,
+ 8635, 8643, 8647, 8651, 8655, 8659, 8663, 8667, 8671, 8675,
+ 8679, 8683, 8687, 8691, 8695, 8699, 8703, 8707, 8711, 8715,
+ 8719, 8723, 8727, 8731, 8735, 8743, 8747, 8751, 8759, 8763,
+ 8767, 8771, 8775, 8779, 8783, 8791, 8795, 8803, 8807, 8811,
+ 8815, 8823, 8831, 8835, 8839, 8843, 8847, 8851, 8855, 8859,
+ 8863, 8871, 8875, 8883, 8891, 8895, 8899, 8907, 8911, 8919,
+ 8923, 8927, 8931, 8935, 8943, 8948, 8954, 8958, 8962, 8966,
+ 8974, 8978, 8983, 8989, 8997, 9002, 9008, 9016, 9020, 9028,
+ 9032, 9036, 9040, 9044, 9048, 9052, 9056, 9060, 9064, 9068,
+ 9072, 9080, 9084, 9092, 9096, 9101, 9107, 9111, 9115, 9119,
+ 9123, 9131, 9135, 9139, 9147, 9152, 9158, 9162, 9167, 9173,
+ 9177, 9181, 9186, 9195, 9199, 9203, 9208, 9214, 9222, 9230,
+ 9235, 9241, 9245, 9253, 9257, 9261, 9269, 9273, 9277, 9281,
+ 9285, 9289, 9293, 9301, 9306, 9312, 9316, 9320, 9324, 9332,
+ 9340, 9344, 9348, 9352, 9360, 9364, 9372, 9380, 9388, 9392,
+ 9400, 9408, 9412, 9416, 9420, 9424, 9428, 9432, 9440, 9445,
+ 9451, 9459, 9463, 9467, 9471, 9475, 9479, 9487, 9491, 9499,
+ 9507, 9511, 9515, 9519, 9527, 9532, 9538, 9542, 9550, 9554,
+ 9562, 9566, 9574, 9578, 9586, 9594, 9598, 9606, 9610, 9615,
+ 9621, 9626, 9632, 9637, 9643, 9648, 9654, 9659, 9665, 9670,
+ 9676, 9684, 9688, 9696, 9701, 9707, 9711, 9715, 9719, 9727,
+ 9731, 9735, 9739, 9743, 9747, 9751, 9755, 9759, 9763, 9771,
+ 9777, 9787, 9792, 9798, 9802, 9806, 9810, 9814, 9822, 9827,
+ 9831, 9839, 9844, 9850, 9858, 9862, 9870, 9874, 9878, 9882,
+ 9886, 9894, 9898, 9906, 9910, 9918, 9926, 9930, 9935, 9941,
+ 9945, 9950, 9956, 9961, 9967, 9975, 9980, 9986, 9994, 9999,
+ 10005, 10009, 10013, 10017, 10021, 10025, 10029, 10033, 10041, 10046,
+ 10052, 10056, 10061, 10067, 10075, 10079, 10087, 10091, 10099, 10107,
+ 10111, 10119, 10127, 10131, 10139, 10143, 10147, 10151, 10155, 10163,
+ 10168, 10174, 10182, 10190, 10194, 10198, 10202, 10206, 10214, 10222,
+ 10273, 10277, 10290, 10292, 10296, 10300, 10304, 10308, 10317, 10323,
+ 10327, 10335, 10339, 10347, 10351, 10359, 10363, 10367, 10371, 10375,
+ 10379, 10383, 10387, 10395, 10399, 10407, 10411, 10415, 10419, 10423,
+ 10427, 10431, 10439, 10443, 10447, 10455, 10459, 10467, 10475, 10479,
+ 10484, 10490, 10494, 10499, 10505, 10509, 10514, 10520, 10525, 10531,
+ 10536, 10538, 10544, 10548, 10552, 10556, 10560, 10564, 10568, 10572,
+ 10576, 10584, 10589, 10595, 10599, 10604, 10610, 10614, 10622, 10627,
+ 10633, 10638, 10644, 10652, 10656, 10664, 10668, 10676, 10680, 10684,
+ 10688, 10696, 10701, 10707, 10711, 10716, 10720, 10724, 10728, 10736,
+ 10740, 10748, 10752, 10760, 10768, 10772, 10776, 10784, 10788, 10796,
+ 10800, 10808, 10812, 10820, 10825, 10831, 10835, 10843, 10847, 10851,
+ 10855, 10859, 10867, 10875, 10883, 10891, 10899, 10904, 10910, 10914,
+ 10922, 10927, 10933, 10937, 10945, 10953, 10957, 10961, 10965, 10973,
+ 10978, 10984, 10988, 10996, 11001, 11007, 11011, 11019, 11023, 11027,
+ 11031, 11035, 11039, 11043, 11050, 11057, 11061, 11069, 11073, 11077,
+ 11081, 11085, 11089, 11097, 11101, 11105, 11109, 11117, 11122, 11128,
+ 11133, 11139, 11143, 11147, 11151, 11156, 11162, 11166, 11170, 11174,
+ 11182, 11187, 11193, 11197, 11205, 11209, 11217, 11221, 11225, 11233,
+ 11237, 11245, 11249, 11253, 11261, 11269, 11274, 11280, 11284, 11292,
+ 11300, 11304, 11312, 11317, 11323, 11328, 11334, 11339, 11345, 11349,
+ 11355, 11361, 11366, 11372, 11376, 11384, 11392, 11396, 11404, 11408,
+ 11416, 11420, 11424, 11432, 11436, 11444, 11448, 11452, 11456, 11464,
+ 11468, 11476, 11480, 11488, 11490, 11492, 11496, 11500, 11504, 11512,
+ 11522, 11533, 11542, 11546, 11550, 11554, 11558, 11562, 11566, 11574,
+ 11578, 11582, 11586, 11594, 11598, 11606, 11611, 11617, 11621, 11625,
+ 11629, 11633, 11637, 11641, 11645, 11649, 11653, 11657, 11665, 11670,
+ 11676, 11680, 11688, 11692, 11700, 11708, 11716, 11720, 11728, 11732,
+ 11740, 11748, 11756, 11760, 11764, 11768, 11772, 11776, 11784, 11789,
+ 11795, 11799, 11803, 11807, 11815, 11823, 11827, 11832, 11838, 11842,
+ 11846, 11850, 11854, 11858, 11862, 11866, 11870, 11874, 11878, 11882,
+ 11886, 11891, 11897, 11901, 11909, 11913, 11917, 11921, 11925, 11929,
+ 11933, 11937, 11941, 11945, 11949, 11953, 11957, 11961, 11965, 11969,
+ 11973, 11977, 11981, 11985, 11989, 11993, 11997, 12001, 12005, 12009,
+ 12013, 12017, 12021, 12025, 12029, 12033, 12037, 12041, 12045, 12049,
+ 12053, 12057, 12061, 12065, 12069, 12073, 12077, 12081, 12085, 12089,
+ 12093, 12097, 12101, 12105, 12109, 12113, 12117, 12121, 12125, 12129,
+ 12133, 12137, 12142, 12146, 12150, 12154, 12158, 12162, 12166, 12174,
+ 12178, 12182, 12186, 12190, 12194, 12198, 12202, 12206, 12210, 12214,
+ 12218, 12222, 12226, 12230, 12234, 12238, 12242, 12246, 12250, 12254,
+ 12258, 12266, 12270, 12274, 12278, 12282, 12286, 12290, 12294, 12298,
+ 12302, 12306, 12310, 12314, 12318, 12326, 12330, 12334, 12338, 12342,
+ 12346, 12350, 12358, 12362, 12370, 12374, 12382, 12386, 12390, 12394,
+ 12398, 12402, 12406, 12410, 12414, 12418, 12422, 12426, 12430, 12434,
+ 12438, 12442, 12446, 12450, 12454, 12458, 12462, 12466, 12470, 12474,
+ 12478, 12482, 12486, 12490, 12494, 12498, 12502, 12506, 12510, 12514,
+ 12518, 12522, 12526, 12530, 12534, 12538, 12542, 12546, 12550, 12554,
+ 12558, 12562, 12570, 12574, 12582, 12586, 12590, 12595, 12601, 12609,
+ 12613, 12621, 12625, 12633, 12637, 12645, 12649, 12654, 12660, 12664,
+ 12668, 12672, 12680, 12684, 12692, 12697, 12703, 12708, 12714, 12719,
+ 12725, 12729, 12737, 12745, 12749, 12754, 12760, 12768, 12772, 12779,
+ 12784, 12790, 12794, 12798, 12803, 12809, 12813, 12821, 12825, 12829,
+ 12833, 12837, 12845, 12849, 12853, 12857, 12862, 12868, 12872, 12876,
+ 12884, 12888, 12896, 12904, 12908, 12912, 12920, 12924, 12932, 12936,
+ 12940, 12944, 12948, 12952, 12956, 12960, 12964, 12968, 12972, 12976,
+ 12984, 12988, 12996, 13000, 13008, 13012, 13016, 13020, 13024, 13028,
+ 13036, 13040, 13048, 13052, 13060, 13064, 13068, 13076, 13081, 13087,
+ 13091, 13099, 13103, 13107, 13115, 13119, 13127, 13135, 13139, 13143,
+ 13147, 13151, 13155, 13159, 13163, 13171, 13175, 13179, 13183, 13191,
+ 13195, 13203, 13211, 13215, 13219, 13223, 13227, 13235, 13239, 13243,
+ 13251, 13255, 13263, 13271, 13275, 13283, 13291, 13296, 13302, 13307,
+ 13313, 13317, 13325, 13329, 13333, 13337, 13345, 13350, 13356, 13360,
+ 13369, 13371, 13379, 13384, 13390, 13395, 13401, 13405, 13413, 13417,
+ 13421, 13425, 13433, 13437, 13445, 13449, 13457, 13461, 13469, 13477,
+ 13485, 13493, 13497, 13505, 13509, 13513, 13517, 13521, 13525, 13529,
+ 13533, 13537, 13541, 13545, 13549, 13553, 13557, 13558, 13563, 13569,
+ 13573, 13574, 13578, 13586, 13594, 13598, 13602, 13606, 13614, 13618,
+ 13626, 13630, 13634, 13638, 13646, 13650, 13658, 13662, 13666, 13670,
+ 13674, 13678, 13682, 13686, 13690, 13694, 13698, 13702, 13706, 13710,
+ 13714, 13718, 13722, 13726, 13730, 13734, 13738, 13742, 13746, 13750,
+ 13754, 13758, 13762, 13766, 13770, 13774, 13778, 13782, 13786, 13790,
+ 13794, 13798, 13802, 13806, 13810, 13814, 13818, 13822, 13826, 13830,
+ 13834, 13838, 13842, 13846, 13850, 13854, 13858, 13862, 13866, 13870,
+ 13874, 13878, 13882, 13886, 13890, 13894, 13898, 13902, 13906, 13910,
+ 13914, 13918, 13922, 13926, 13930, 13934, 13938, 13942, 13946, 13950,
+ 13954, 13958, 13962, 13966, 13970, 13974, 13978, 13982, 13986, 13990,
+ 13994, 13998, 14002, 14006, 14010, 14014, 14018, 14022, 14026, 14030,
+ 14034, 14038, 14042, 14046, 14050, 14054, 14058, 14062, 14066, 14070,
+ 14074, 14078, 14082, 14086, 14090, 14094, 14098, 14102, 14106, 14110,
+ 14114, 14118, 14122, 14126, 14130, 14134, 14138, 14142, 14146, 14150,
+ 14154, 14158, 14162, 14166, 14170, 14174, 14178, 14182, 14186, 14190,
+ 14194, 14198, 14202, 14206, 14210, 14214, 14218, 14222, 14226, 14230,
+ 14234, 14238, 14242, 14246, 14250, 14254, 14258, 14262, 14266, 14270,
+ 14274, 14278, 14282, 14286, 14290, 14294, 14298, 14302, 14306, 14310,
+ 14314, 14318, 14322, 14326, 14330, 14334, 14338, 14342, 14346, 14350,
+ 14354, 14358, 14362, 14366, 14370, 14374, 14378, 14382, 14386, 14390,
+ 14394, 14398, 14402, 14406, 14410, 14414, 14418, 14422, 14426, 14430,
+ 14434, 14438, 14442, 14446, 14450, 14454, 14458, 14462, 14466, 14470,
+ 14474, 14478, 14482, 14486, 14490, 14494, 14498, 14502, 14506, 14510,
+ 14514, 14518, 14522, 14526, 14530, 14534, 14538, 14542, 14546, 14550,
+ 14554, 14558, 14562, 14566, 14570, 14574, 14578, 14582, 14586, 14590,
+ 14594, 14598, 14602, 14606, 14610, 14614, 14618, 14622, 14626, 14630,
+ 14634, 14638, 14642, 14646, 14650, 14654, 14658, 14662, 14666, 14670,
+ 14674, 14678, 14682, 14686, 14690, 14694, 14698, 14702, 14706, 14710,
+ 14714, 14718, 14722, 14726, 14730, 14734, 14738, 14742, 14746, 14750,
+ 14754, 14758, 14762, 14766, 14770, 14774, 14778, 14782, 14786, 14790,
+ 14794, 14798, 14802, 14806, 14810, 14814, 14818, 14822, 14826, 14830,
+ 14834, 14838, 14842, 14846, 14850, 14854, 14862, 14866, 14870, 14874,
+ 14878, 14882, 14886, 14890, 14894, 14898, 14902, 14906, 14910, 14914,
+ 14918, 14922, 14926, 14930, 14934, 14938, 14942, 14946, 14950, 14954,
+ 14958, 14962, 14966, 14970, 14974, 14978, 14982, 14986, 14990, 14994,
+ 14998, 15002, 15006, 15010, 15014, 15018, 15022, 15026, 15030, 15034,
+ 15038, 15042, 15046, 15050, 15058, 15062, 15066, 15070, 15074, 15078,
+ 15082, 15086, 15090, 15094, 15098, 15102, 15106, 15110, 15114, 15118,
+ 15122, 15126, 15130, 15134, 15138, 15142, 15146, 15154, 15158, 15162,
+ 15166, 15170, 15174, 15178, 15182, 15186, 15190, 15194, 15198, 15202,
+ 15206, 15210, 15214, 15218, 15222, 15226, 15230, 15234, 15238, 15242,
+ 15246, 15250, 15254, 15258, 15262, 15266, 15270, 15274, 15278, 15282,
+ 15286, 15290, 15294, 15298, 15302, 15306, 15310, 15314, 15318, 15322,
+ 15326, 15330, 15334, 15338, 15342, 15346, 15350, 15354, 15358, 15362,
+ 15366, 15370, 15374, 15378, 15382, 15386, 15390, 15394, 15398, 15402,
+ 15406, 15410, 15414, 15418, 15422, 15426, 15430, 15434, 15438, 15442,
+ 15446, 15450, 15458, 15462, 15466, 15470, 15474, 15478, 15482, 15486,
+ 15490, 15494, 15498, 15502, 15506, 15510, 15514, 15518, 15522, 15526,
+ 15530, 15534, 15538, 15542, 15546, 15550, 15554, 15558, 15562, 15566,
+ 15570, 15574, 15578, 15582, 15586, 15590, 15594, 15598, 15602, 15606,
+ 15610, 15614, 15618, 15622, 15626, 15630, 15634, 15638, 15642, 15646,
+ 15650, 15654, 15658, 15662, 15666, 15670, 15674, 15678, 15682, 15686,
+ 15690, 15694, 15698, 15702, 15706, 15710, 15714, 15718, 15722, 15726,
+ 15730, 15734, 15738, 15742, 15746, 15750, 15754, 15758, 15762, 15766,
+ 15770, 15774, 15778, 15782, 15786, 15790, 15794, 15798, 15802, 15806,
+ 15810, 15814, 15818, 15822, 15826, 15830, 15834, 15838, 15842, 15846,
+ 15850, 15854, 15858, 15862, 15866, 15870, 15874, 15878, 15882, 15886,
+ 15890, 15894, 15898, 15902, 15906, 15910, 15914, 15918, 15922, 15926,
+ 15930, 15934, 15938, 15942, 15946, 15950, 15954, 15958, 15962, 15966,
+ 15970, 15974, 15978, 15982, 15986, 15990, 15994, 15998, 16002, 16006,
+ 16010, 16014, 16018, 16022, 16026, 16030, 16034, 16038, 16042, 16046,
+ 16050, 16054, 16058, 16062, 16066, 16070, 16074, 16078, 16082, 16086,
+ 16090, 16094, 16098, 16102, 16106, 16110, 16114, 16118, 16122, 16126,
+ 16130, 16134, 16138, 16142, 16146, 16150, 16154, 16158, 16162, 16166,
+ 16170, 16174, 16178, 16182, 16186, 16190, 16194, 16198, 16202, 16206,
+ 16210, 16214, 16218, 16222, 16226, 16230, 16234, 16238, 16242, 16246,
+ 16250, 16254, 16258, 16262, 16266, 16270, 16274, 16278, 16282, 16286,
+ 16290, 16294, 16298, 16302, 16306, 16310, 16314, 16318, 16322, 16326,
+ 16330, 16334, 16338, 16342, 16346, 16350, 16354, 16358, 16362, 16366,
+ 16370, 16374, 16378, 16382, 16386, 16390, 16394, 16398, 16402, 16406,
+ 16410, 16414, 16418, 16422, 16426, 16430, 16434, 16438, 16442, 16446,
+ 16450, 16454, 16458, 16462, 16466, 16470, 16474, 16478, 16482, 16486,
+ 16490, 16494, 16498, 16502, 16506, 16510, 16514, 16518, 16522, 16526,
+ 16530, 16534, 16538, 16542, 16546, 16550, 16554, 16558, 16562, 16566,
+ 16570, 16574, 16578, 16582, 16586, 16590, 16594, 16598, 16602, 16606,
+ 16610, 16614, 16618, 16622, 16626, 16630, 16634, 16638, 16642, 16646,
+ 16650, 16654, 16658, 16662, 16666, 16670, 16674, 16678, 16682, 16686,
+ 16690, 16694, 16698, 16702, 16706, 16710, 16714, 16718, 16722, 16726,
+ 16730, 16734, 16738, 16742, 16746, 16750, 16754, 16758, 16762, 16766,
+ 16770, 16774, 16778, 16782, 16786, 16790, 16794, 16798, 16802, 16806,
+ 16810, 16814, 16818, 16822, 16826, 16830, 16834, 16838, 16842, 16846,
+ 16850, 16854, 16858, 16862, 16866, 16870, 16874, 16878, 16882, 16886,
+ 16890, 16894, 16898, 16902, 16906, 16910, 16914, 16918, 16922, 16926,
+ 16930, 16934, 16938, 16942, 16946, 16950, 16954, 16958, 16962, 16966,
+ 16970, 16974, 16978, 16982, 16986, 16990, 16994, 16998, 17002, 17006,
+ 17010, 17014, 17018, 17022, 17026, 17030, 17034, 17038, 17042, 17046,
+ 17050, 17054, 17058, 17062, 17066, 17070, 17074, 17078, 17082, 17086,
+ 17090, 17094, 17098, 17102, 17106, 17110, 17114, 17118, 17122, 17126,
+ 17130, 17134, 17138, 17148, 17149, 17152, 17158, 17164, 17170, 17171,
+ 17172, 17173, 17174, 17187, 17187, 17194, 17194, 17203, 17218, 17220,
+ 17223, 17225, 17229, 17241, 17257, 17261, 17272, 17273, 17276, 17288,
+ 17297, 17298, 17301, 17302, 17303, 17306, 17307, 17310, 17311, 17314,
+ 17315, 17318, 17320, 17322, 17324, 17328, 17335, 17342, 17358, 17392,
+ 17402, 17405, 17409, 17422, 17423, 17425, 17427, 17431, 17445, 17451,
+ 17488, 17550, 17559, 17561, 17562, 17565, 17567, 17568, 17571, 17572,
+ 17573, 17574, 17575, 17582, 17581, 17591, 17593, 17595, 17596, 17599,
+ 17600, 17601, 17602, 17605, 17606, 17610, 17609, 17626, 17625, 17641,
+ 17640, 17655, 17661, 17662, 17665, 17667, 17668, 17671, 17672, 17673,
+ 17674, 17677, 17678, 17681, 17689, 17706, 17714, 17737, 17851, 17885,
+ 17887, 17889, 17893, 17897, 17896, 17947, 17949, 17948, 17963, 17969,
+ 17976, 17981, 17987, 17988, 17991, 17992, 17993, 17994, 17995, 17996,
+ 17997, 17998, 17999, 18002, 18003, 18004, 18005, 18006, 18007, 18008,
+ 18009, 18010, 18011, 18014, 18015, 18018, 18020, 18029, 18129, 18130,
+ 18137, 18138, 18139, 18145, 18154, 18157, 18158, 18159, 18160, 18163,
+ 18164, 18165, 18168, 18170, 18178, 18179, 18185, 18193, 18194, 18197,
+ 18198, 18201, 18206, 18213, 18218, 18225, 18232, 18232, 18234, 18241,
+ 18242, 18245, 18246, 18247, 18248, 18249, 18250, 18251, 18252, 18253,
+ 18259, 18264, 18274, 18279, 18284, 18291, 18292, 18304, 18315, 18326,
+ 18330, 18331, 18334, 18339, 18343, 18344, 18347, 18353, 18361, 18367,
+ 18374, 18378, 18379, 18382, 18385, 18389, 18390, 18393, 18399, 18408,
+ 18413, 18423, 18433, 18445, 18446, 18447, 18448, 18449, 18450, 18451,
+ 18452, 18453, 18454, 18455, 18456, 18457, 18458, 18459, 18466, 18467,
+ 18470, 18471, 18478, 18479, 18480, 18487, 18486, 18503, 18504, 18511,
+ 18510, 18581, 18587, 18593, 18601, 18607, 18613, 18619, 18625, 18631,
+ 18637, 18643, 18649, 18655, 18666, 18667, 18670, 18671, 18672, 18673,
+ 18674, 18675, 18676, 18677, 18678, 18679, 18680, 18681, 18682, 18683,
+ 18684, 18685, 18686, 18687, 18688, 18689, 18690, 18691, 18694, 18695,
+ 18696, 18697, 18698, 18699, 18703, 18704, 18705, 18706, 18707, 18708,
+ 18709, 18712, 18715, 18716, 18717, 18718, 18719, 18720, 18721, 18722,
+ 18735, 18736, 18737, 18738, 18739, 18740, 18741, 18746, 18747, 18748,
+ 18749, 18750, 18751, 18757, 18758, 18759, 18760, 18761, 18762, 18763,
+ 18764, 18765, 18766, 18767, 18770, 18771, 18772, 18773, 18774, 18777,
+ 18778, 18779, 18780, 18783, 18784, 18785, 18786, 18787, 18788, 18789,
+ 18806, 18807, 18808, 18811, 18812, 18813, 18814, 18815, 18816, 18820,
+ 18820, 18823, 18829, 18830, 18833, 18835, 18840, 18850, 18861, 18868,
+ 18869, 18870, 18873, 18906, 18908, 18910, 18912, 18914, 18916, 18917,
+ 18920, 18922, 18930, 18931, 18932, 18936, 18937, 18941, 18942, 18945,
+ 18946, 18949, 18950, 18951, 18952, 18953, 18956, 18957, 18958, 18959,
+ 18960, 18961, 18962, 18963, 18964, 18965, 18966, 18967, 18968, 18969,
+ 18970, 18971, 18972, 18973, 18974, 18975, 18976, 18977, 18978, 18979,
+ 18980, 18981, 18982, 18983, 18984, 18985, 18986, 18987, 18988, 18989,
+ 18990, 18991, 18992, 18993, 18994, 18995, 18996, 18997, 18998, 18999,
+ 19000, 19001, 19002, 19003, 19004, 19005, 19006, 19007, 19008, 19009,
+ 19010, 19011, 19014, 19015, 19016, 19017, 19020, 19021, 19022, 19023,
+ 19024, 19025, 19026, 19027, 19028, 19029, 19036, 19037, 19038, 19039,
+ 19042, 19043, 19046, 19047, 19050, 19051, 19062, 19063
+};
+#endif
+
+/** Accessing symbol of state STATE. */
+#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
+
+#if YYDEBUG || 0
+/* The user-facing name of the symbol whose (internal) number is
+ YYSYMBOL. No bounds checking. */
+static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
+
+/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
+ First, the terminals, then, starting at YYNTOKENS, nonterminals. */
+static const char *const yytname[] =
+{
+ "\"end of file\"", "error", "\"invalid token\"", "SQL_ALLOCATE",
+ "SQL_AUTOCOMMIT", "SQL_BOOL", "SQL_BREAK", "SQL_CARDINALITY",
+ "SQL_CONNECT", "SQL_COUNT", "SQL_DATETIME_INTERVAL_CODE",
+ "SQL_DATETIME_INTERVAL_PRECISION", "SQL_DESCRIBE", "SQL_DESCRIPTOR",
+ "SQL_DISCONNECT", "SQL_FOUND", "SQL_FREE", "SQL_GET", "SQL_GO",
+ "SQL_GOTO", "SQL_IDENTIFIED", "SQL_INDICATOR", "SQL_KEY_MEMBER",
+ "SQL_LENGTH", "SQL_LONG", "SQL_NULLABLE", "SQL_OCTET_LENGTH", "SQL_OPEN",
+ "SQL_OUTPUT", "SQL_REFERENCE", "SQL_RETURNED_LENGTH",
+ "SQL_RETURNED_OCTET_LENGTH", "SQL_SCALE", "SQL_SECTION", "SQL_SHORT",
+ "SQL_SIGNED", "SQL_SQLERROR", "SQL_SQLPRINT", "SQL_SQLWARNING",
+ "SQL_START", "SQL_STOP", "SQL_STRUCT", "SQL_UNSIGNED", "SQL_VAR",
+ "SQL_WHENEVER", "S_ADD", "S_AND", "S_ANYTHING", "S_AUTO", "S_CONST",
+ "S_DEC", "S_DIV", "S_DOTPOINT", "S_EQUAL", "S_EXTERN", "S_INC",
+ "S_LSHIFT", "S_MEMPOINT", "S_MEMBER", "S_MOD", "S_MUL", "S_NEQUAL",
+ "S_OR", "S_REGISTER", "S_RSHIFT", "S_STATIC", "S_SUB", "S_VOLATILE",
+ "S_TYPEDEF", "CSTRING", "CVARIABLE", "CPP_LINE", "IP", "IDENT", "UIDENT",
+ "FCONST", "SCONST", "USCONST", "BCONST", "XCONST", "Op", "ICONST",
+ "PARAM", "TYPECAST", "DOT_DOT", "COLON_EQUALS", "EQUALS_GREATER",
+ "LESS_EQUALS", "GREATER_EQUALS", "NOT_EQUALS", "ABORT_P", "ABSOLUTE_P",
+ "ACCESS", "ACTION", "ADD_P", "ADMIN", "AFTER", "AGGREGATE", "ALL",
+ "ALSO", "ALTER", "ALWAYS", "ANALYSE", "ANALYZE", "AND", "ANY", "ARRAY",
+ "AS", "ASC", "ASENSITIVE", "ASSERTION", "ASSIGNMENT", "ASYMMETRIC",
+ "ATOMIC", "AT", "ATTACH", "ATTRIBUTE", "AUTHORIZATION", "BACKWARD",
+ "BEFORE", "BEGIN_P", "BETWEEN", "BIGINT", "BINARY", "BIT", "BOOLEAN_P",
+ "BOTH", "BREADTH", "BY", "CACHE", "CALL", "CALLED", "CASCADE",
+ "CASCADED", "CASE", "CAST", "CATALOG_P", "CHAIN", "CHAR_P", "CHARACTER",
+ "CHARACTERISTICS", "CHECK", "CHECKPOINT", "CLASS", "CLOSE", "CLUSTER",
+ "COALESCE", "COLLATE", "COLLATION", "COLUMN", "COLUMNS", "COMMENT",
+ "COMMENTS", "COMMIT", "COMMITTED", "COMPRESSION", "CONCURRENTLY",
+ "CONFIGURATION", "CONFLICT", "CONNECTION", "CONSTRAINT", "CONSTRAINTS",
+ "CONTENT_P", "CONTINUE_P", "CONVERSION_P", "COPY", "COST", "CREATE",
+ "CROSS", "CSV", "CUBE", "CURRENT_P", "CURRENT_CATALOG", "CURRENT_DATE",
+ "CURRENT_ROLE", "CURRENT_SCHEMA", "CURRENT_TIME", "CURRENT_TIMESTAMP",
+ "CURRENT_USER", "CURSOR", "CYCLE", "DATA_P", "DATABASE", "DAY_P",
+ "DEALLOCATE", "DEC", "DECIMAL_P", "DECLARE", "DEFAULT", "DEFAULTS",
+ "DEFERRABLE", "DEFERRED", "DEFINER", "DELETE_P", "DELIMITER",
+ "DELIMITERS", "DEPENDS", "DEPTH", "DESC", "DETACH", "DICTIONARY",
+ "DISABLE_P", "DISCARD", "DISTINCT", "DO", "DOCUMENT_P", "DOMAIN_P",
+ "DOUBLE_P", "DROP", "EACH", "ELSE", "ENABLE_P", "ENCODING", "ENCRYPTED",
+ "END_P", "ENUM_P", "ESCAPE", "EVENT", "EXCEPT", "EXCLUDE", "EXCLUDING",
+ "EXCLUSIVE", "EXECUTE", "EXISTS", "EXPLAIN", "EXPRESSION", "EXTENSION",
+ "EXTERNAL", "EXTRACT", "FALSE_P", "FAMILY", "FETCH", "FILTER",
+ "FINALIZE", "FIRST_P", "FLOAT_P", "FOLLOWING", "FOR", "FORCE", "FOREIGN",
+ "FORWARD", "FREEZE", "FROM", "FULL", "FUNCTION", "FUNCTIONS",
+ "GENERATED", "GLOBAL", "GRANT", "GRANTED", "GREATEST", "GROUP_P",
+ "GROUPING", "GROUPS", "HANDLER", "HAVING", "HEADER_P", "HOLD", "HOUR_P",
+ "IDENTITY_P", "IF_P", "ILIKE", "IMMEDIATE", "IMMUTABLE", "IMPLICIT_P",
+ "IMPORT_P", "IN_P", "INCLUDE", "INCLUDING", "INCREMENT", "INDEX",
+ "INDEXES", "INHERIT", "INHERITS", "INITIALLY", "INLINE_P", "INNER_P",
+ "INOUT", "INPUT_P", "INSENSITIVE", "INSERT", "INSTEAD", "INT_P",
+ "INTEGER", "INTERSECT", "INTERVAL", "INTO", "INVOKER", "IS", "ISNULL",
+ "ISOLATION", "JOIN", "KEY", "LABEL", "LANGUAGE", "LARGE_P", "LAST_P",
+ "LATERAL_P", "LEADING", "LEAKPROOF", "LEAST", "LEFT", "LEVEL", "LIKE",
+ "LIMIT", "LISTEN", "LOAD", "LOCAL", "LOCALTIME", "LOCALTIMESTAMP",
+ "LOCATION", "LOCK_P", "LOCKED", "LOGGED", "MAPPING", "MATCH", "MATCHED",
+ "MATERIALIZED", "MAXVALUE", "MERGE", "METHOD", "MINUTE_P", "MINVALUE",
+ "MODE", "MONTH_P", "MOVE", "NAME_P", "NAMES", "NATIONAL", "NATURAL",
+ "NCHAR", "NEW", "NEXT", "NFC", "NFD", "NFKC", "NFKD", "NO", "NONE",
+ "NORMALIZE", "NORMALIZED", "NOT", "NOTHING", "NOTIFY", "NOTNULL",
+ "NOWAIT", "NULL_P", "NULLIF", "NULLS_P", "NUMERIC", "OBJECT_P", "OF",
+ "OFF", "OFFSET", "OIDS", "OLD", "ON", "ONLY", "OPERATOR", "OPTION",
+ "OPTIONS", "OR", "ORDER", "ORDINALITY", "OTHERS", "OUT_P", "OUTER_P",
+ "OVER", "OVERLAPS", "OVERLAY", "OVERRIDING", "OWNED", "OWNER",
+ "PARALLEL", "PARAMETER", "PARSER", "PARTIAL", "PARTITION", "PASSING",
+ "PASSWORD", "PLACING", "PLANS", "POLICY", "POSITION", "PRECEDING",
+ "PRECISION", "PRESERVE", "PREPARE", "PREPARED", "PRIMARY", "PRIOR",
+ "PRIVILEGES", "PROCEDURAL", "PROCEDURE", "PROCEDURES", "PROGRAM",
+ "PUBLICATION", "QUOTE", "RANGE", "READ", "REAL", "REASSIGN", "RECHECK",
+ "RECURSIVE", "REF_P", "REFERENCES", "REFERENCING", "REFRESH", "REINDEX",
+ "RELATIVE_P", "RELEASE", "RENAME", "REPEATABLE", "REPLACE", "REPLICA",
+ "RESET", "RESTART", "RESTRICT", "RETURN", "RETURNING", "RETURNS",
+ "REVOKE", "RIGHT", "ROLE", "ROLLBACK", "ROLLUP", "ROUTINE", "ROUTINES",
+ "ROW", "ROWS", "RULE", "SAVEPOINT", "SCHEMA", "SCHEMAS", "SCROLL",
+ "SEARCH", "SECOND_P", "SECURITY", "SELECT", "SEQUENCE", "SEQUENCES",
+ "SERIALIZABLE", "SERVER", "SESSION", "SESSION_USER", "SET", "SETS",
+ "SETOF", "SHARE", "SHOW", "SIMILAR", "SIMPLE", "SKIP", "SMALLINT",
+ "SNAPSHOT", "SOME", "SQL_P", "STABLE", "STANDALONE_P", "START",
+ "STATEMENT", "STATISTICS", "STDIN", "STDOUT", "STORAGE", "STORED",
+ "STRICT_P", "STRIP_P", "SUBSCRIPTION", "SUBSTRING", "SUPPORT",
+ "SYMMETRIC", "SYSID", "SYSTEM_P", "TABLE", "TABLES", "TABLESAMPLE",
+ "TABLESPACE", "TEMP", "TEMPLATE", "TEMPORARY", "TEXT_P", "THEN", "TIES",
+ "TIME", "TIMESTAMP", "TO", "TRAILING", "TRANSACTION", "TRANSFORM",
+ "TREAT", "TRIGGER", "TRIM", "TRUE_P", "TRUNCATE", "TRUSTED", "TYPE_P",
+ "TYPES_P", "UESCAPE", "UNBOUNDED", "UNCOMMITTED", "UNENCRYPTED", "UNION",
+ "UNIQUE", "UNKNOWN", "UNLISTEN", "UNLOGGED", "UNTIL", "UPDATE", "USER",
+ "USING", "VACUUM", "VALID", "VALIDATE", "VALIDATOR", "VALUE_P", "VALUES",
+ "VARCHAR", "VARIADIC", "VARYING", "VERBOSE", "VERSION_P", "VIEW",
+ "VIEWS", "VOLATILE", "WHEN", "WHERE", "WHITESPACE_P", "WINDOW", "WITH",
+ "WITHIN", "WITHOUT", "WORK", "WRAPPER", "WRITE", "XML_P",
+ "XMLATTRIBUTES", "XMLCONCAT", "XMLELEMENT", "XMLEXISTS", "XMLFOREST",
+ "XMLNAMESPACES", "XMLPARSE", "XMLPI", "XMLROOT", "XMLSERIALIZE",
+ "XMLTABLE", "YEAR_P", "YES_P", "ZONE", "NOT_LA", "NULLS_LA", "WITH_LA",
+ "MODE_TYPE_NAME", "MODE_PLPGSQL_EXPR", "MODE_PLPGSQL_ASSIGN1",
+ "MODE_PLPGSQL_ASSIGN2", "MODE_PLPGSQL_ASSIGN3", "'<'", "'>'", "'='",
+ "'+'", "'-'", "'*'", "'/'", "'%'", "'^'", "UMINUS", "'['", "']'", "'('",
+ "')'", "'.'", "','", "';'", "':'", "'{'", "'}'", "$accept", "prog",
+ "toplevel_stmt", "stmt", "CallStmt", "CreateRoleStmt", "opt_with",
+ "OptRoleList", "AlterOptRoleList", "AlterOptRoleElem",
+ "CreateOptRoleElem", "CreateUserStmt", "AlterRoleStmt",
+ "opt_in_database", "AlterRoleSetStmt", "DropRoleStmt", "CreateGroupStmt",
+ "AlterGroupStmt", "add_drop", "CreateSchemaStmt", "OptSchemaName",
+ "OptSchemaEltList", "schema_stmt", "VariableSetStmt", "set_rest",
+ "generic_set", "set_rest_more", "var_name", "var_list", "var_value",
+ "iso_level", "opt_boolean_or_string", "zone_value", "opt_encoding",
+ "NonReservedWord_or_Sconst", "VariableResetStmt", "reset_rest",
+ "generic_reset", "SetResetClause", "FunctionSetResetClause",
+ "VariableShowStmt", "ConstraintsSetStmt", "constraints_set_list",
+ "constraints_set_mode", "CheckPointStmt", "DiscardStmt",
+ "AlterTableStmt", "alter_table_cmds", "partition_cmd",
+ "index_partition_cmd", "alter_table_cmd", "alter_column_default",
+ "opt_drop_behavior", "opt_collate_clause", "alter_using",
+ "replica_identity", "reloptions", "opt_reloptions", "reloption_list",
+ "reloption_elem", "alter_identity_column_option_list",
+ "alter_identity_column_option", "PartitionBoundSpec",
+ "hash_partbound_elem", "hash_partbound", "AlterCompositeTypeStmt",
+ "alter_type_cmds", "alter_type_cmd", "ClosePortalStmt", "CopyStmt",
+ "copy_from", "opt_program", "copy_file_name", "copy_options",
+ "copy_opt_list", "copy_opt_item", "opt_binary", "copy_delimiter",
+ "opt_using", "copy_generic_opt_list", "copy_generic_opt_elem",
+ "copy_generic_opt_arg", "copy_generic_opt_arg_list",
+ "copy_generic_opt_arg_list_item", "CreateStmt", "OptTemp",
+ "OptTableElementList", "OptTypedTableElementList", "TableElementList",
+ "TypedTableElementList", "TableElement", "TypedTableElement",
+ "columnDef", "columnOptions", "column_compression",
+ "opt_column_compression", "ColQualList", "ColConstraint",
+ "ColConstraintElem", "opt_unique_null_treatment", "generated_when",
+ "ConstraintAttr", "TableLikeClause", "TableLikeOptionList",
+ "TableLikeOption", "TableConstraint", "ConstraintElem", "opt_no_inherit",
+ "opt_column_list", "columnList", "columnElem", "opt_c_include",
+ "key_match", "ExclusionConstraintList", "ExclusionConstraintElem",
+ "OptWhereClause", "key_actions", "key_update", "key_delete",
+ "key_action", "OptInherit", "OptPartitionSpec", "PartitionSpec",
+ "part_params", "part_elem", "table_access_method_clause", "OptWith",
+ "OnCommitOption", "OptTableSpace", "OptConsTableSpace", "ExistingIndex",
+ "CreateStatsStmt", "stats_params", "stats_param", "AlterStatsStmt",
+ "create_as_target", "opt_with_data", "CreateMatViewStmt",
+ "create_mv_target", "OptNoLog", "RefreshMatViewStmt", "CreateSeqStmt",
+ "AlterSeqStmt", "OptSeqOptList", "OptParenthesizedSeqOptList",
+ "SeqOptList", "SeqOptElem", "opt_by", "NumericOnly", "NumericOnly_list",
+ "CreatePLangStmt", "opt_trusted", "handler_name", "opt_inline_handler",
+ "validator_clause", "opt_validator", "opt_procedural",
+ "CreateTableSpaceStmt", "OptTableSpaceOwner", "DropTableSpaceStmt",
+ "CreateExtensionStmt", "create_extension_opt_list",
+ "create_extension_opt_item", "AlterExtensionStmt",
+ "alter_extension_opt_list", "alter_extension_opt_item",
+ "AlterExtensionContentsStmt", "CreateFdwStmt", "fdw_option",
+ "fdw_options", "opt_fdw_options", "AlterFdwStmt",
+ "create_generic_options", "generic_option_list", "alter_generic_options",
+ "alter_generic_option_list", "alter_generic_option_elem",
+ "generic_option_elem", "generic_option_name", "generic_option_arg",
+ "CreateForeignServerStmt", "opt_type", "foreign_server_version",
+ "opt_foreign_server_version", "AlterForeignServerStmt",
+ "CreateForeignTableStmt", "ImportForeignSchemaStmt",
+ "import_qualification_type", "import_qualification",
+ "CreateUserMappingStmt", "auth_ident", "DropUserMappingStmt",
+ "AlterUserMappingStmt", "CreatePolicyStmt", "AlterPolicyStmt",
+ "RowSecurityOptionalExpr", "RowSecurityOptionalWithCheck",
+ "RowSecurityDefaultToRole", "RowSecurityOptionalToRole",
+ "RowSecurityDefaultPermissive", "RowSecurityDefaultForCmd",
+ "row_security_cmd", "CreateAmStmt", "am_type", "CreateTrigStmt",
+ "TriggerActionTime", "TriggerEvents", "TriggerOneEvent",
+ "TriggerReferencing", "TriggerTransitions", "TriggerTransition",
+ "TransitionOldOrNew", "TransitionRowOrTable", "TransitionRelName",
+ "TriggerForSpec", "TriggerForOptEach", "TriggerForType", "TriggerWhen",
+ "FUNCTION_or_PROCEDURE", "TriggerFuncArgs", "TriggerFuncArg",
+ "OptConstrFromTable", "ConstraintAttributeSpec",
+ "ConstraintAttributeElem", "CreateEventTrigStmt",
+ "event_trigger_when_list", "event_trigger_when_item",
+ "event_trigger_value_list", "AlterEventTrigStmt", "enable_trigger",
+ "CreateAssertionStmt", "DefineStmt", "definition", "def_list",
+ "def_elem", "def_arg", "old_aggr_definition", "old_aggr_list",
+ "old_aggr_elem", "opt_enum_val_list", "enum_val_list", "AlterEnumStmt",
+ "opt_if_not_exists", "CreateOpClassStmt", "opclass_item_list",
+ "opclass_item", "opt_default", "opt_opfamily", "opclass_purpose",
+ "opt_recheck", "CreateOpFamilyStmt", "AlterOpFamilyStmt",
+ "opclass_drop_list", "opclass_drop", "DropOpClassStmt",
+ "DropOpFamilyStmt", "DropOwnedStmt", "ReassignOwnedStmt", "DropStmt",
+ "object_type_any_name", "object_type_name", "drop_type_name",
+ "object_type_name_on_any_name", "any_name_list", "any_name", "attrs",
+ "type_name_list", "TruncateStmt", "opt_restart_seqs", "CommentStmt",
+ "comment_text", "SecLabelStmt", "opt_provider", "security_label",
+ "FetchStmt", "fetch_args", "from_in", "opt_from_in", "GrantStmt",
+ "RevokeStmt", "privileges", "privilege_list", "privilege",
+ "parameter_name_list", "parameter_name", "privilege_target",
+ "grantee_list", "grantee", "opt_grant_grant_option", "GrantRoleStmt",
+ "RevokeRoleStmt", "opt_grant_admin_option", "opt_granted_by",
+ "AlterDefaultPrivilegesStmt", "DefACLOptionList", "DefACLOption",
+ "DefACLAction", "defacl_privilege_target", "IndexStmt", "opt_unique",
+ "opt_concurrently", "opt_index_name", "access_method_clause",
+ "index_params", "index_elem_options", "index_elem", "opt_include",
+ "index_including_params", "opt_collate", "opt_class", "opt_asc_desc",
+ "opt_nulls_order", "CreateFunctionStmt", "opt_or_replace", "func_args",
+ "func_args_list", "function_with_argtypes_list",
+ "function_with_argtypes", "func_args_with_defaults",
+ "func_args_with_defaults_list", "func_arg", "arg_class", "param_name",
+ "func_return", "func_type", "func_arg_with_default", "aggr_arg",
+ "aggr_args", "aggr_args_list", "aggregate_with_argtypes",
+ "aggregate_with_argtypes_list", "opt_createfunc_opt_list",
+ "createfunc_opt_list", "common_func_opt_item", "createfunc_opt_item",
+ "func_as", "ReturnStmt", "opt_routine_body", "routine_body_stmt_list",
+ "routine_body_stmt", "transform_type_list", "opt_definition",
+ "table_func_column", "table_func_column_list", "AlterFunctionStmt",
+ "alterfunc_opt_list", "opt_restrict", "RemoveFuncStmt", "RemoveAggrStmt",
+ "RemoveOperStmt", "oper_argtypes", "any_operator",
+ "operator_with_argtypes_list", "operator_with_argtypes", "DoStmt",
+ "dostmt_opt_list", "dostmt_opt_item", "CreateCastStmt", "cast_context",
+ "DropCastStmt", "opt_if_exists", "CreateTransformStmt",
+ "transform_element_list", "DropTransformStmt", "ReindexStmt",
+ "reindex_target_type", "reindex_target_multitable", "AlterTblSpcStmt",
+ "RenameStmt", "opt_column", "opt_set_data", "AlterObjectDependsStmt",
+ "opt_no", "AlterObjectSchemaStmt", "AlterOperatorStmt",
+ "operator_def_list", "operator_def_elem", "operator_def_arg",
+ "AlterTypeStmt", "AlterOwnerStmt", "CreatePublicationStmt",
+ "PublicationObjSpec", "pub_obj_list", "AlterPublicationStmt",
+ "CreateSubscriptionStmt", "AlterSubscriptionStmt",
+ "DropSubscriptionStmt", "RuleStmt", "RuleActionList", "RuleActionMulti",
+ "RuleActionStmt", "RuleActionStmtOrEmpty", "event", "opt_instead",
+ "NotifyStmt", "notify_payload", "ListenStmt", "UnlistenStmt",
+ "TransactionStmt", "TransactionStmtLegacy", "opt_transaction",
+ "transaction_mode_item", "transaction_mode_list",
+ "transaction_mode_list_or_empty", "opt_transaction_chain", "ViewStmt",
+ "opt_check_option", "LoadStmt", "CreatedbStmt", "createdb_opt_list",
+ "createdb_opt_items", "createdb_opt_item", "createdb_opt_name",
+ "opt_equal", "AlterDatabaseStmt", "AlterDatabaseSetStmt", "DropdbStmt",
+ "drop_option_list", "drop_option", "AlterCollationStmt",
+ "AlterSystemStmt", "CreateDomainStmt", "AlterDomainStmt", "opt_as",
+ "AlterTSDictionaryStmt", "AlterTSConfigurationStmt", "any_with",
+ "CreateConversionStmt", "ClusterStmt", "cluster_index_specification",
+ "VacuumStmt", "AnalyzeStmt", "utility_option_list", "analyze_keyword",
+ "utility_option_elem", "utility_option_name", "utility_option_arg",
+ "opt_analyze", "opt_verbose", "opt_full", "opt_freeze", "opt_name_list",
+ "vacuum_relation", "vacuum_relation_list", "opt_vacuum_relation_list",
+ "ExplainStmt", "ExplainableStmt", "PrepareStmt", "prep_type_clause",
+ "PreparableStmt", "ExecuteStmt", "execute_param_clause", "InsertStmt",
+ "insert_target", "insert_rest", "override_kind", "insert_column_list",
+ "insert_column_item", "opt_on_conflict", "opt_conf_expr",
+ "returning_clause", "DeleteStmt", "using_clause", "LockStmt", "opt_lock",
+ "lock_type", "opt_nowait", "opt_nowait_or_skip", "UpdateStmt",
+ "set_clause_list", "set_clause", "set_target", "set_target_list",
+ "MergeStmt", "merge_when_list", "merge_when_clause",
+ "opt_merge_when_condition", "merge_update", "merge_delete",
+ "merge_insert", "merge_values_clause", "DeclareCursorStmt",
+ "cursor_name", "cursor_options", "opt_hold", "SelectStmt",
+ "select_with_parens", "select_no_parens", "select_clause",
+ "simple_select", "with_clause", "cte_list", "common_table_expr",
+ "opt_materialized", "opt_search_clause", "opt_cycle_clause",
+ "opt_with_clause", "into_clause", "OptTempTableName", "opt_table",
+ "set_quantifier", "distinct_clause", "opt_all_clause", "opt_sort_clause",
+ "sort_clause", "sortby_list", "sortby", "select_limit",
+ "opt_select_limit", "limit_clause", "offset_clause",
+ "select_limit_value", "select_offset_value", "select_fetch_first_value",
+ "I_or_F_const", "row_or_rows", "first_or_next", "group_clause",
+ "group_by_list", "group_by_item", "empty_grouping_set", "rollup_clause",
+ "cube_clause", "grouping_sets_clause", "having_clause",
+ "for_locking_clause", "opt_for_locking_clause", "for_locking_items",
+ "for_locking_item", "for_locking_strength", "locked_rels_list",
+ "values_clause", "from_clause", "from_list", "table_ref", "joined_table",
+ "alias_clause", "opt_alias_clause", "opt_alias_clause_for_join_using",
+ "func_alias_clause", "join_type", "opt_outer", "join_qual",
+ "relation_expr", "extended_relation_expr", "relation_expr_list",
+ "relation_expr_opt_alias", "tablesample_clause", "opt_repeatable_clause",
+ "func_table", "rowsfrom_item", "rowsfrom_list", "opt_col_def_list",
+ "opt_ordinality", "where_clause", "where_or_current_clause",
+ "OptTableFuncElementList", "TableFuncElementList", "TableFuncElement",
+ "xmltable", "xmltable_column_list", "xmltable_column_el",
+ "xmltable_column_option_list", "xmltable_column_option_el",
+ "xml_namespace_list", "xml_namespace_el", "Typename", "opt_array_bounds",
+ "SimpleTypename", "ConstTypename", "GenericType", "opt_type_modifiers",
+ "Numeric", "opt_float", "Bit", "ConstBit", "BitWithLength",
+ "BitWithoutLength", "Character", "ConstCharacter", "CharacterWithLength",
+ "CharacterWithoutLength", "character", "opt_varying", "ConstDatetime",
+ "ConstInterval", "opt_timezone", "opt_interval", "interval_second",
+ "a_expr", "b_expr", "c_expr", "func_application", "func_expr",
+ "func_expr_windowless", "func_expr_common_subexpr", "xml_root_version",
+ "opt_xml_root_standalone", "xml_attributes", "xml_attribute_list",
+ "xml_attribute_el", "document_or_content", "xml_whitespace_option",
+ "xmlexists_argument", "xml_passing_mech", "within_group_clause",
+ "filter_clause", "window_clause", "window_definition_list",
+ "window_definition", "over_clause", "window_specification",
+ "opt_existing_window_name", "opt_partition_clause", "opt_frame_clause",
+ "frame_extent", "frame_bound", "opt_window_exclusion_clause", "row",
+ "explicit_row", "implicit_row", "sub_type", "all_Op", "MathOp",
+ "qual_Op", "qual_all_Op", "subquery_Op", "expr_list", "func_arg_list",
+ "func_arg_expr", "func_arg_list_opt", "type_list", "array_expr",
+ "array_expr_list", "extract_list", "extract_arg", "unicode_normal_form",
+ "overlay_list", "position_list", "substr_list", "trim_list", "in_expr",
+ "case_expr", "when_clause_list", "when_clause", "case_default",
+ "case_arg", "columnref", "indirection_el", "opt_slice_bound",
+ "indirection", "opt_indirection", "opt_asymmetric", "opt_target_list",
+ "target_list", "target_el", "qualified_name_list", "qualified_name",
+ "name_list", "name", "attr_name", "file_name", "func_name", "AexprConst",
+ "Iconst", "SignedIconst", "RoleId", "RoleSpec", "role_list",
+ "NonReservedWord", "BareColLabel", "unreserved_keyword",
+ "col_name_keyword", "type_func_name_keyword", "reserved_keyword",
+ "bare_label_keyword", "statements", "statement", "CreateAsStmt", "$@1",
+ "$@2", "at", "ECPGConnect", "connection_target", "opt_database_name",
+ "db_prefix", "server", "opt_server", "server_name", "opt_port",
+ "opt_connection_name", "opt_user", "ora_user", "user_name",
+ "char_variable", "opt_options", "connect_options", "opt_opt_value",
+ "prepared_name", "ECPGDeclareStmt", "ECPGCursorStmt",
+ "ECPGExecuteImmediateStmt", "ECPGVarDeclaration",
+ "single_vt_declaration", "precision", "opt_scale", "ecpg_interval",
+ "ECPGDeclaration", "$@3", "sql_startdeclare", "sql_enddeclare",
+ "var_type_declarations", "vt_declarations", "variable_declarations",
+ "type_declaration", "$@4", "var_declaration", "$@5", "$@6",
+ "opt_bit_field", "storage_declaration", "storage_clause",
+ "storage_modifier", "var_type", "enum_type", "enum_definition",
+ "struct_union_type_with_symbol", "$@7", "struct_union_type", "$@8",
+ "s_struct_union_symbol", "s_struct_union", "simple_type",
+ "unsigned_type", "signed_type", "opt_signed", "variable_list",
+ "variable", "opt_initializer", "opt_pointer", "ECPGDeclare",
+ "ECPGDisconnect", "dis_name", "connection_object", "execstring",
+ "ECPGFree", "ECPGOpen", "opt_ecpg_using", "ecpg_using",
+ "using_descriptor", "into_descriptor", "into_sqlda", "using_list",
+ "UsingValue", "UsingConst", "ECPGDescribe", "opt_output",
+ "ECPGAllocateDescr", "ECPGDeallocateDescr", "ECPGGetDescriptorHeader",
+ "ECPGGetDescHeaderItems", "ECPGGetDescHeaderItem",
+ "ECPGSetDescriptorHeader", "ECPGSetDescHeaderItems",
+ "ECPGSetDescHeaderItem", "IntConstVar", "desc_header_item",
+ "ECPGGetDescriptor", "ECPGGetDescItems", "ECPGGetDescItem",
+ "ECPGSetDescriptor", "ECPGSetDescItems", "ECPGSetDescItem",
+ "AllConstVar", "descriptor_item", "ECPGSetAutocommit", "on_off",
+ "ECPGSetConnection", "ECPGTypedef", "$@9", "opt_reference", "ECPGVar",
+ "$@10", "ECPGWhenever", "action", "ECPGKeywords", "ECPGKeywords_vanames",
+ "ECPGKeywords_rest", "ECPGTypeName", "symbol", "ECPGColId", "ColId",
+ "type_function_name", "ColLabel", "ECPGColLabel", "ECPGColLabelCommon",
+ "ECPGCKeywords", "all_unreserved_keyword", "ECPGunreserved_interval",
+ "into_list", "ecpgstart", "c_args", "coutputvariable", "civarind",
+ "char_civar", "civar", "indicator", "cvariable", "ecpg_param",
+ "ecpg_bconst", "ecpg_fconst", "ecpg_sconst", "ecpg_xconst", "ecpg_ident",
+ "quoted_ident_stringvar", "c_stuff_item", "c_stuff", "c_list", "c_term",
+ "c_thing", "c_anything", "DeallocateStmt", "Iresult", "execute_rest",
+ "ecpg_into", "opt_ecpg_into", "ecpg_fetch_into", "opt_ecpg_fetch_into", YY_NULLPTR
+};
+
+static const char *
+yysymbol_name (yysymbol_kind_t yysymbol)
+{
+ return yytname[yysymbol];
+}
+#endif
+
+#ifdef YYPRINT
+/* YYTOKNUM[NUM] -- (External) token number corresponding to the
+ (internal) symbol number NUM (which must be that of a token). */
+static const yytype_int16 yytoknum[] =
+{
+ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
+ 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
+ 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
+ 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
+ 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
+ 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
+ 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
+ 385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ 405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, 419, 420, 421, 422, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, 438, 439, 440, 441, 442, 443, 444,
+ 445, 446, 447, 448, 449, 450, 451, 452, 453, 454,
+ 455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, 471, 472, 473, 474,
+ 475, 476, 477, 478, 479, 480, 481, 482, 483, 484,
+ 485, 486, 487, 488, 489, 490, 491, 492, 493, 494,
+ 495, 496, 497, 498, 499, 500, 501, 502, 503, 504,
+ 505, 506, 507, 508, 509, 510, 511, 512, 513, 514,
+ 515, 516, 517, 518, 519, 520, 521, 522, 523, 524,
+ 525, 526, 527, 528, 529, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 550, 551, 552, 553, 554,
+ 555, 556, 557, 558, 559, 560, 561, 562, 563, 564,
+ 565, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 577, 578, 579, 580, 581, 582, 583, 584,
+ 585, 586, 587, 588, 589, 590, 591, 592, 593, 594,
+ 595, 596, 597, 598, 599, 600, 601, 602, 603, 604,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 615, 616, 617, 618, 619, 620, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 631, 632, 633, 634,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 648, 649, 650, 651, 652, 653, 654,
+ 655, 656, 657, 658, 659, 660, 661, 662, 663, 664,
+ 665, 666, 667, 668, 669, 670, 671, 672, 673, 674,
+ 675, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 689, 690, 691, 692, 693, 694,
+ 695, 696, 697, 698, 699, 700, 701, 702, 703, 704,
+ 705, 706, 707, 708, 709, 710, 711, 712, 713, 714,
+ 715, 716, 717, 718, 719, 720, 721, 722, 723, 724,
+ 725, 726, 727, 728, 729, 730, 731, 732, 733, 734,
+ 735, 736, 737, 738, 739, 740, 741, 742, 743, 744,
+ 745, 746, 747, 748, 749, 750, 751, 752, 753, 754,
+ 755, 756, 757, 758, 759, 760, 761, 762, 763, 764,
+ 765, 766, 767, 768, 769, 770, 771, 772, 773, 774,
+ 775, 776, 777, 778, 779, 780, 781, 782, 783, 784,
+ 785, 786, 787, 788, 789, 790, 791, 792, 793, 794,
+ 795, 796, 797, 798, 799, 800, 801, 802, 803, 804,
+ 805, 806, 807, 808, 809, 810, 811, 812, 60, 62,
+ 61, 43, 45, 42, 47, 37, 94, 813, 91, 93,
+ 40, 41, 46, 44, 59, 58, 123, 125
+};
+#endif
+
+#define YYPACT_NINF (-6048)
+
+#define yypact_value_is_default(Yyn) \
+ ((Yyn) == YYPACT_NINF)
+
+#define YYTABLE_NINF (-3512)
+
+#define yytable_value_is_error(Yyn) \
+ ((Yyn) == YYTABLE_NINF)
+
+ /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
+static const int yypact[] =
+{
+ -6048, 607, 10452, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 39818, -6048, -6048, -6048, -6048, -6048,138771,
+ 1226, -6048, -6048,143721, -6048, -6048, -6048, 1059, 93619, -6048,
+ 98515, 1560, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ 102867, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ 79456, 1701, -6048, 744, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, 1864, 19046, -6048, -6048, 99059, -6048, 441, -6048, -6048,
+ -6048, -6048, -6048, 81636, -6048, -6048, 99603, 59, -6048, -6048,
+ 1235, 156, -6048, 203, 18617, -6048, -6048,100147, 95251, -6048,
+ -6048,103411, 683, 1012, 18676, 1864, 40442,103955, -6048, 2168,
+ -6048, 75631, -6048, -6048, -6048, 94163, -6048, -6048, -6048, 1471,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ 112115, 1422, 1318, 76176, -6048, -6048, -6048, -6048, -6048,112115,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,104499,
+ -6048, 1460, 1569, 883,112659,113203, 91987, -6048, 1162, -6048,
+ 112115, 1728, 448, 78366, -6048,113747, -6048, -6048, 1600, -6048,
+ 105043, -6048, -6048, -6048, -6048, -6048, 1318, -6048, 79456, 74539,
+ 166, 1436, -6048, -6048,114291, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048,112115, 2252, 1501, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 1742, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, 1399, -6048, 1321, 1508, 1825, 361,
+ 1572, -6048, -6048, -6048, 16482, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 31022, 541, -6048, -6048, -6048, 1607, -6048,
+ 1633, -6048, -6048, -6048, 1935, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, 1710, -6048, -6048, -6048, -6048, 2237,139312,102867,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, 95795,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, 268, -6048, -6048, -6048, -6048, -6048,102867,102867,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048,102867, 1782, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, 1077, 2085, -6048,
+ -6048, 79456, 2464, 2464, 2327, 31022, -6048, -6048, 2303, 81636,
+ 112115,112115,112115, 2093,112115, 2050,112115, 411, 81636,147070,
+ 105587, 2175, 2041, 69519,114835, -6048, 81636,112115,144680, 81636,
+ 112115,112115,115379,112115,115923,112115, 2094,100691,112115, 2142,
+ 112115,112115,145158,116467, 2295, -6048, 2620, 1688, -6048, 2115,
+ -6048, 266, -6048, 2186, -6048, 296, 298, 312, -6048, -6048,
+ -6048,149460,112115, 8550, 1422, 2303, -6048, 2252,112115, 2401,
+ 112115, 2154,117011,112115, -6048,112115, 2241,117555, 540, 1485,
+ 147070, 2230, 70080, 2377,112115,112115,147070,118099,118643,119187,
+ 112115,112115, -6048, -6048, 2364,112115, -6048, 2479,147548, 1871,
+ 2485, 2648, 2624, 1524, -6048, -6048, 2803, 2330, -6048, -6048,
+ 2838,102867, -6048,101235, -6048, -6048, -6048, 2698, -6048, 2471,
+ 2475, 2478, -6048, -6048, -6048, -6048, -6048,150416, 1012, -6048,
+ -6048, 2595, 82181, 2687, -6048, -6048,119731, 87086, 2433, -6048,
+ 868, 82726,148026, 2823, 2434, 70641, 2870, -6048, 83271, -6048,
+ 148504, 83816, -6048, -6048, -6048, -6048, -6048,120275, -6048,120819,
+ 2581, 2687, -6048, 87631,148982, -6048, 2717,121363,121907,122451,
+ 2303, 9176, -6048, 2446, 2605, 2449, 1263,102867,102867, 1359,
+ 140812, -6048, -6048, 2509, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 399, 1861, 76721, 848, 77266, -6048, -6048,
+ 941, 1176, 1498, 399, 2952, 2952, 809,102867, -6048, -6048,
+ 1861, -6048, 762, 1115, 2579, 2472, 2472, 2472, 2700, 682,
+ -6048, 2472, 2628, -6048, -6048, -6048, -6048,105043, 76721, 77266,
+ -6048, 2496, 1422, 357, 2953, 2567, -6048, -6048, -6048, -6048,
+ -6048,149460, 2937, 2937,112115, -6048, -6048, -6048, 2996, 2572,
+ 2849, -6048, 2578, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, 2816, 2819, 2797, 315, 1422, 269, -6048, 2944,
+ -6048, 2861, 47762, 47762, 1518,102867, 1422, 77811,106131,134419,
+ 215,150416, 1422,122995, 2683, 1720, 2864, -6048, -6048, -6048,
+ 918, -6048, 3110, 2688, 2990, 144, 1688, 66205, -6048, -6048,
+ 2710, 2186,105043,139853, -6048, -6048, -6048, -6048,149460, 3043,
+ 52290,112115, 2723, -6048, 2731, 2723, 2733, 2748, 1825, -6048,
+ 149460,112115, 1837, 1837, 3183, 1837, 2109, 2214, -6048, 2135,
+ -6048, 3080, 3046, 3051,105043, 2774, 1864, 2766, -6048, -6048,
+ -6048, 2784, -6048, 2806, 2809, -6048, 1213, 3068, -6048, -6048,
+ -6048, -6048, 2895, 2910, 2911, 2914, 2837, 2933, 362, -6048,
+ -6048, -6048, -6048, 3208, -6048, -6048, -6048, -6048, -6048, -6048,
+ 3321, 3323,144202,144202, 816, 965, 284, 283, -6048, -6048,
+ -6048, 3173, -6048, -6048, 3171, 2974,112115, -6048, -6048,112115,
+ -6048,123539, -6048, -6048, 2464, 2784, 1032, -6048, 1886, 2892,
+ 1740, 2891, 2036, 2664, -6048, 1005,112115, 254, 2938,106675,
+ 8470, 2900, 2902, 2186, 3062, 1101, 3209, 3251, 8546, 362,
+ 107219, -6048, -6048, -6048, -6048,112115,112115, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, 2908, 1670, -6048, -6048,
+ 2909, 3259, 3128, 9035, 1130, 3219, 3075, 1177, 9347, 3132,
+ 209, 3266, 15867, 1614, 3267, 2092, 2613,124083,134963, 3225,
+ 3269, 5254, 2219, 904, 3137, 1072, 3219, 3258, 3085, 1177,
+ 3274, 4033,112115, 2924, -6048, 3197, 3311, 756, -6048, 173,
+ -6048, 40989, 52290, 73447, -6048, 2186, 2212, -6048, -6048,143240,
+ -6048, 2992, 3148, 957, 81636, 2936,112115,112115, -6048, 88176,
+ 81636, -6048, 3157, 71202, 81636, -6048, 81636, -6048, -6048, 3272,
+ 88176,112115,112115, -6048,112115, -6048, -6048, 2939, -6048, -6048,
+ -6048, -6048, -6048, 2472,112115, 3370, 88176, 3172, 445, 691,
+ 3405,112115, 3175, 691, 2985,124627, -6048, -6048, 691, -6048,
+ -6048,112115,112115, 2950, 1444, 3166, 852, 691, 3184, 3409,
+ 3410, 3187, 3033, 3190, 2731, 3373, 3161, 988, 213, 1636,
+ 691, 3012,125171,125715,112115, 3013,112115, 2937, 81636, 3045,
+ 81636, 81636,112115, 3301,112115, -6048, 3147,107763, -6048, 2966,
+ 2803, -6048, -6048, -6048, -6048, -6048, 1586, -6048, -6048, -6048,
+ -6048, -6048, -6048, 3320, -6048, 262, 3324, 2978, 3326, 1848,
+ -6048, 3032, -6048, 3032, 3032, 2984, 2984, 3170, 2988, 3336,
+ -6048, -6048, -6048, 2680, 3032, 2984, -6048, 89266, -6048, 2047,
+ 2130, -6048, 264, -6048, 3454, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 2991, -6048, 1996, -6048, 2221, -6048, -6048,
+ -6048, -6048, 3029, -6048, 3342, 267, -6048, 3343, -6048, 2995,
+ 126259, -6048,126803,127347, 3346, 306, -6048,147070, 3347, 267,
+ 3350, 2995, 3352, 267, 3353, 997, 3355, -6048, 1054, 3344,
+ 3356, 264, 3357, 2284, 2995, -6048, 3360, 352, -6048, 3361,
+ 373, -6048, 3363, 3231, -6048, 13105, 9176, -6048, 14898, 2234,
+ -6048, -6048, -6048, -6048, -6048, -6048, 52290, 1021, 3114, -6048,
+ -6048, 2286, 1359, 1861, -6048,102867, 1861,102867, 809, 1861,
+ 102867, 1861,102867, 809, 1861,102867,102867,102867, 1861, -6048,
+ -6048, 342, 355, -6048, -6048, -6048, -6048, -6048,102867, 3019,
+ 112115, -6048,112115, -6048, -6048, -6048, 96339,147070, 96883, -6048,
+ 112115, -6048, 151,102867, -6048,102867, -6048, 1422, -6048, -6048,
+ 2605, 88176, 3484,147070, 2937, 2302, -6048,112115,112115, -6048,
+ -6048, -6048, 3290,112115, 3358, 3359, 96339,147070, -6048,127891,
+ -6048,150416, 3237, 3028, -6048, -6048, -6048, -6048, 2353, 3523,
+ 222, 3524, 52290, 3034, 222, 222, 3035, 3365, -6048, -6048,
+ -6048, 382, 3036, 3037, -6048, 247, 247, -6048, 3038, 3039,
+ -6048, 249, 3041, 3042, 3537, 253, 3044, 3047, 3048, 2680,
+ 222, 3049, 52290, -6048, 3050, 247, 3052, 3053, 3055, 3540,
+ 3064, -6048, 3545, 3074, 291, 302, 3076, 3078, -6048, 3284,
+ -6048, 255, 3084, 3086, 3088, 3089, 3090, 3091, 3094, 3095,
+ 52290, 52290, 52290, -6048, 44932, 2186, 1422, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, 280,141296, -6048, 3105, -6048,
+ -6048, 3277, -6048, -6048, 52290, -6048, -6048, 830, -6048, 289,
+ -6048, -6048, 2186, -6048, -6048, 2390, -6048, -6048, -6048, -6048,
+ -6048, 3364, 3082, 2494, 2494, 292, -6048, 99059, 99059, -6048,
+ -6048, 1332, 3093, -6048, 2499, -6048, -6048, -6048, -6048, -6048,
+ -6048,149938, 3561, -6048, 460, 1422, 173, 1331, 3498,141794,
+ 142276, 3385, 3385, 3372, -6048, -6048,112115, -6048, -6048, 2186,
+ 181, 3384, 2354, -6048, 2509, 18157, 2357, 2723,112115,112115,
+ 3568, -6048, -6048, 2361, -6048, 3103, -6048, 2731, -6048, -6048,
+ 1825, 1825, 52290, 1825, 1257, 1561, 48328, 52856, 3440, 3329,
+ 1821, 1816, 3446, -6048, 3334, 2109, 2214,105043,112115,105043,
+ 128435, 3241, 52290, -6048, 2784, 3124, 2270, -6048, 90355, 38889,
+ 38889, 3406, -6048, -6048, 1376, 1500, 3253, 3366, 2952, 1865,
+ 2666, 2666, -6048, -6048, 3118, -6048, 3506, 99059, 3185,144202,
+ -6048, -6048,112115, -6048, -6048,108307, -6048, -6048, -6048, 2363,
+ 3122, -6048, 3138,112115, 3684, 2666, 2666, -6048, -6048, 3127,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, 31022,112115,
+ -6048, 3134, 3135, 3133, 3136, -6048,139853, -6048, 3565, 3223,
+ 3224, 3279, 73993, -6048, 3226, 3192, 3228, 3285, 79456, 3144,
+ 3233, 3234, 3289, 3421, -6048, -6048, 3240, 3579, 3242,135507,
+ -6048, -6048, 1469, -6048, -6048, -6048, 1469, -6048, 3169, -6048,
+ 1603, 473, 336, 3244, 338, 1411, 3571, -6048, 1760, -6048,
+ -6048, 3300, -6048, 9848,112115, 3512, 9075, 3380, 362, 3303,
+ -6048, -6048, -6048, 3438, 3252,112115, 3256, 3397, 362, 360,
+ 136051, -6048, -6048,112115, -6048, -6048, -6048, -6048, 6296, 3548,
+ 43824, -6048, 2279, 3260, 3238, 3271,112115, 90899, 2293, 3374,
+ 3394, 1874, 2513, 853, 3331,112115, 2034, 3402,112115, 3195,
+ 3268, 3276, 3507, 3198, 845, 3597, 3194, -6048, -6048, -6048,
+ 3574, 3399, 3508, 3549, 9712, 3265, 3270, 85451, -6048, 3291,
+ 690, 71763,112115,112115, 3292, 3293,136595, 6296, 3580, 97427,
+ 97427, 3295, 3297, 64560, 3603, 2170, 3302, -6048, -6048, -6048,
+ 2170, 3304, 3305,137139, 6296, 3590,112115, 3306, 3308,112115,
+ 89266, 362, -6048, 3659, 362, 362, 2189, 3661, 3313, 457,
+ 3471, 257, 691, 3194, 2615, -6048, 3316, 3319, 1016, -6048,
+ 3447,112115, 3327, 3328, 2066, 3412, 1422, -6048, 3414, -6048,
+ 3333, 3415, 3335, 103, 2950, -6048, -6048, 70, 3345,105043,
+ 3429, 3443, 2034, 334, 659, 3194, -6048, 3339, 3340, 3198,
+ 3198,112115,112115,112115,112115,112115, 244, 3715, 3716, 3349,
+ 234, 1488, 3281, -6048, 2170,145636, 3369, -6048, 2170,112115,
+ 348, 678, 3194, 833, -6048, 2156, -6048, -6048, -6048, 1688,
+ -6048, 52290, 52290, 52290, 3262, -6048, 2740, 18157, 887, -6048,
+ 294, 8016, 3263, -6048, -6048, -6048, -6048,112115,149460, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048,112115, -6048,112115, 3551,
+ 88176, 3553, 3486, 3555, 3556, 362,112115,112115, 3557, 3559,
+ 3564, 88176, 3569, 3570, 3573, 3493, 3376, 841, 3375, 3286,
+ 3752, 3646,112115, 79456, -6048, 1469, -6048, 88176, 3514, 3649,
+ -6048,112115, 3532, 134, -6048, 3688, 3379, -6048, -6048, 131,
+ 112115, 94707, 2950, -6048, -6048, 3656,147070, 975, 3668, 1422,
+ 3377, 3670, 3538, 1422,147070, 3592,112115,112115,112115,112115,
+ 180, -6048,145636, 3566, -6048,112115, 3567, 2615, 3572, 3793,
+ 1377, 2472,128979, 3669,129523, 3341,112115, 3351, 3351, 3802,
+ 88176, 1112, 3616, -6048, -6048, 3367, 2952, -6048, 2966, -6048,
+ -6048, 2410, -6048, 3478, -6048, 81636, -6048, -6048, 81636, -6048,
+ -6048, 88176,112115, 3362, -6048, 3371, -6048, -6048, 52290, -6048,
+ -6048, -6048, 2952, -6048, 88176, 3032, 3032, -6048, -6048, 3808,
+ 3432, 3433, 2952, -6048, 2952, -6048, 88176, -6048, 3354, 3368,
+ 2952, 3442, -6048, 3445, 2952, -6048, 2373, -6048, -6048, 81636,
+ 81636, -6048,147070,147070, 3706, 352, 3710, 3425, 3714, 3430,
+ 71763, 71763, -6048, 421, 81636, -6048,147070, 81636, -6048,112115,
+ -6048,112115, -6048, -6048, -6048, -6048, 88176, 88176, -6048,147070,
+ 145636, 3719,112115,112115, -6048,112115,112115, -6048,112115,112115,
+ -6048, 14221, 2297, -6048, 9176, -6048, 2384, 3385, -6048, 1782,
+ 130067, 1762, 1359, -6048,102867, -6048,102867, 809, -6048, -6048,
+ 102867, -6048,102867, 809, -6048,102867, -6048, -6048, -6048,102867,
+ 112115, 3930, 3381, -6048, 2390, -6048,112115, 2422, -6048, -6048,
+ 2423, 256,112115,112115, 924, 81636,112115, 3594,112115, 81636,
+ 81636,112115,112115,112115,112115,112115, 3463, 3093, 1940, -6048,
+ 1496, 517,105043, 3605, -6048, -6048, -6048, -6048, -6048, 2430,
+ 2252, 1307,112115, 1517, -6048, -6048, -6048, -6048, 96883, 94163,
+ 3711, 192,112115, -6048, -6048, 6845, 52290, 47196, -6048, -6048,
+ 18157, 3427, 52290, 52290, 3386, 2952, 2952, -6048, 440, 52290,
+ 52290, 52290, 2952, 2952, 52290, 5398, 52290, 71763, 52290, 56252,
+ 42123, 52290, 52290, 45498, 1610, 3038, 52290, 3629, 57384, 52290,
+ 1331, 3632, 52290, 1331, 5398, 3874, 3874, 1436, 2030, 6660,
+ 3387, 2186, -6048, 2952, 343, 444, 88176, 52290, 52290, 52290,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, 52290, -6048, 79456, -6048, -6048, -6048,
+ -6048, -6048, -6048, 3475, -6048, -6048, -6048, -6048, -6048, -6048,
+ 6299, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048,112115, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, 46064, -6048, -6048,
+ -6048, -6048, 3392, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, 3631, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, 46630, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, 3398, -6048, -6048,
+ 52290, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 3483, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, 1514, 52290, 52290, 52290, 52290, 52290,
+ 52290, 52290, 52290, 52290, -6048, 52290, 479, -6048, -6048, -6048,
+ 3723, 3738, 1363, 491, 97971, 47762, 3733, -6048, 40989, -6048,
+ 221,102867, -6048, -6048, 2186, 3733, -6048, -6048, -6048, -6048,
+ -6048, 2363, 3403, -6048, 3418, -6048, -6048, -6048, -6048, -6048,
+ 112115, 3561, -6048, -6048, 3492, -6048, -6048, -6048, -6048, 303,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, 3408, -6048,
+ -6048, -6048, -6048, 3408, -6048, -6048, 3385, 3413, 3724, 3726,
+ 997, 31022,112115, 2751, 52290, 3475, 295,112115, 52290, 3392,
+ 3631, 52290, 3398, 52290, 3483, -6048, 52290, -6048, 2431, 2231,
+ 112115,112115, -6048, 3702, -6048, 3419, -6048, 12195, 3702, -6048,
+ -6048, 56818, 3539, 3699, 3637, -6048, -6048, -6048, 3422, 18157,
+ 52290, 52290, -6048, 2522, 18157, 2732, -6048, -6048, -6048, -6048,
+ -6048, -6048, 210, -6048,112115, 194, 3440, 1816, 3487, 896,
+ 3891, 3490,112115, -6048, 66751, 2435, 2473, -6048, 2784, -6048,
+ -6048, 26059, -6048, 38183, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 3435, -6048, -6048, -6048, -6048, -6048, 362,
+ 3436, 3968, -6048,144202, -6048, -6048, -6048, 3930, -6048, 2838,
+ -6048, 2838, 3994, -6048,102867, -6048, -6048, -6048, -6048, 396,
+ -6048, -6048, 9176, 9176, -6048, -6048,147070,112115,112115, 3639,
+ -6048, 3880, -6048, 89266, -6048, 3441, -6048, 88721, 84361, -6048,
+ -6048, 1217, -6048, 1284,147070, -6048,112115,112115, -6048, 79456,
+ 147070,112115,112115, -6048,147070, 3504,112115,112115, -6048, -6048,
+ -6048, -6048, -6048,142758, 1535, 94163, 3596, 92531, -6048, -6048,
+ 3459,112115, 3520, 3742, 3743, 164, -6048, -6048,130611, -6048,
+ 3692,147070,112115,112115, 52290, 3693,112115,112115, -6048, 321,
+ 3554, 3560, -6048,112115, 3562, 81636, 3472, 88176, 81636, 72324,
+ 81636, 81636, 3804, 88176,112115,112115, 1328,105043, 388, 950,
+ 3194, 3701, -6048, 927, -6048,147070, -6048,112115, 3689, -6048,
+ -6048, -6048,108851, 3933, 3598, -6048, -6048, -6048,137683, -6048,
+ -6048, 3697, -6048, 2444, -6048,147070,147070,112115, 12122,131155,
+ 66, 3713, -6048, -6048, 88176, -6048,112115,109395,112115,112115,
+ 3753,112115,101779,131699,132243, 1790, 1836, 3754,112115,102323,
+ 3755, -6048, 3630,112115, -6048, -6048, 80001,147070,112115, 1198,
+ 79456, -6048, 3739, -6048,112115, -6048, 1031, -6048,112115, 5005,
+ 3704, 3575, 3591,112115, 424, 981, 3194, 3875,112115,112115,
+ 3497, 2452,147070,112115, 79456, -6048, 3717, 766,147070,112115,
+ 108851, -6048, 3718, -6048,105043, 3806, -6048, 3503, 2472, 2710,
+ 2155, 3503,147070,112115, -6048, 3503,112115,134419, -6048,147070,
+ 599, -6048,147070,112115,108851, -6048, 3721, 3673,147070,112115,
+ 18566, -6048, -6048, -6048, 362, -6048, -6048, -6048, -6048, -6048,
+ 112115,112115, 362,112115,112115, 362, 341, -6048,147070,112115,
+ -6048, -6048, -6048, 3634,147070,112115,112115, 399,112115, -6048,
+ 112115,147070, 3552,112115,112115, -6048, -6048,112115, 7887,112115,
+ 112115,112115,112115,112115,112115,147070,112115, -6048, -6048, 1192,
+ 1259, 1983, 2101, 1681,112115, 3828,112115,132787,147070,112115,
+ 112115, 1422,112115, 79456, 467, -6048, -6048, 3647, -6048,147070,
+ 599, -6048, 12856,112115,112115,112115, 3604, 3606, 285, 3694,
+ -6048, -6048, -6048, 948, 948, 3732, -6048, 52290, 52290, 48894,
+ 3526, -6048, -6048, 52290, 2992, -6048, -6048, -6048, 1049, 3984,
+ 1049,133331, 1049, 1049, 3807, 3588, 3599, 1049, 1049, 1049,
+ 3812, 1049, 1049, 1049,112115, 3712, -6048, -6048, 3712, 219,
+ 52290, 88176,112115, -6048, 2455, -6048, 3550, -6048, -6048, 79456,
+ 112115, 628, 191, 3888, 3761, 91443, 2157, 3876,112115, 3593,
+ 112115, 4007, 3642, 1967, -6048, 2157,112115, -6048, 1674, 94163,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048,112115, -6048, -6048,
+ 3881,112115, 60149, 3727, -6048, 1422, 2950, 2950, 2950, 2950,
+ 3558, 2950,112115, 3677, 3899, 2157, 3577, 3902, -6048, 2615,
+ 3903, 3907,112115, 3780, 91443, 3622, 3607, 3797, 4027, 2472,
+ 1422, 3798, 3784, -6048, 73993, -6048, 2950, 4046, 44378, 6039,
+ 7348, 3787, 3850, -6048, -6048, 3803, 953,112115,107763, -6048,
+ 3595, 3898, 3904, 3919, -6048, 262, -6048, 4053, 1995, 3925,
+ 52290, 2459, 3600, 264, -6048, -6048, 3601, 3368, 3615, 3618,
+ 3602, 3609, -6048, 2952, 65106, 3610, 1207, 3841, 3611, -6048,
+ 267, -6048, 2995, -6048,112115, -6048,112115,112115,112115,112115,
+ 306, -6048, -6048, 267, 2995, 267, 997, -6048, 3878, 264,
+ 2995, 3728, 3931, 352, -6048, 373, -6048, 3819, 997, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, 3835, 2472, 2410, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,102867,
+ 2838, -6048, 2466, -6048,112115, -6048, 3920, 3923, 3924, 3926,
+ 3936, 3636, 3641, 3658,112115, 3643, 3636, 362, 3644, 3633,
+ -6048, 3643, 3643, 3636, 3093, 3093, 3636, 3641,146114, 4108,
+ 3955, -6048, 3735, 3645, 3970, 265, -6048, 271, 742, 3895,
+ -6048, -6048, -6048, -6048, 88176, -6048,147070, 3695, 2937, 2937,
+ 349, 3863, 3653,146114, 4094, 997, -6048, 81636,112115, 88176,
+ 81636, 3879, 81636, 81636, 88176,112115,112115, 2470, -6048, 2317,
+ -6048, 2320, 52290, 459, -6048, 13786, 2482, 52290, 3667, 3671,
+ -6048, -6048, -6048, -6048, -6048, -6048, 3672, 3988, -6048, -6048,
+ 2490, 2493, 2497, 3675, 3676, 3635, 3922, 3678, 14626, 3666,
+ 3680, 3682, 3685, 56252, 56252, 44932, 1158, -6048, 56252, 3687,
+ 3872, 2505, 13271, 3691, 3696, 14790, 49460, 52290, 49460, 49460,
+ 15367, 3683, 3698, -6048, 4045, -6048, 2511, 79456, 3882, 15702,
+ 2515, -6048, 52290, 79456, 6112, 52290, -6048, 52290, 3703, -6048,
+ -6048, 5731, 5731, 5731, 5398, -6048, 3730, -6048, 56252, 56252,
+ -6048, 3065, 44932, -6048, -6048, 4017, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 2416, -6048, -6048, -6048, 3928, 3783, 71763,
+ 10615, 52290, 392, 52290, 3392, 52290, 3777, 5731, 5731, 5731,
+ 417, 417, 393, 393, 393, 488, 491, -6048, -6048, -6048,
+ 3705, 3707, 3731, 3906, 3734, 52290, -6048, 2612, 2618,112115,
+ 8151, 9344, 13607, -6048, -6048, -6048, 59596, 3750, 887, -6048,
+ -6048, -6048, 3750, 1751, 3994, 2363, -6048, 1688, 2952, 343,
+ 143240, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,112115,
+ 18157, -6048, -6048, 3948, 3737, -6048, -6048, 52290, -6048, -6048,
+ 1343, 3745, 1385, 161, 2666, 2666, 2522, 760, -6048, -6048,
+ 3773, -6048, 52290, -6048, 2779, 2827, -6048, -6048, -6048, -6048,
+ 3093, -6048, 3973, -6048, -6048, -6048, 59596, 3760, 3781, 110,
+ 64007, 3942, -6048,112115, 59596, -6048,112115, 380, -6048, 3748,
+ -6048, -6048, -6048, -6048, 2123, -6048, -6048, -6048, -6048, -6048,
+ -6048, 3725, -6048, 3740, -6048, 3756, -6048, -6048, -6048, -6048,
+ 261, 3744, 3741, 3746, 2187, -6048, -6048, -6048, -6048, 84361,
+ 2221, -6048, 88721, -6048, 88721, -6048, 2221, 4175, -6048, 84361,
+ 1724, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048,147070,147070, 3954,112115, 3959,
+ 3966, 52290, 899,112115, 3758, 3759, 1587, 4054, 3762, -6048,
+ 4100, 997, -6048, -6048, 3839, -6048, 18157, -6048, -6048, -6048,
+ -6048, -6048,147070,112115, -6048,150416, -6048, -6048, 88176, -6048,
+ -6048,112115,112115, -6048, -6048, -6048, 88176, -6048, -6048, -6048,
+ 112115, 817, 3840, 3844,112115, -6048, 866, 3447, 13049,112115,
+ 112115,112115, 4056, -6048, -6048, -6048, -6048, 3985, -6048, 4111,
+ -6048, 84361, -6048, 2995, 1661, 3852, 3194, 3998, -6048, 4118,
+ 4188, -6048, 3905, 1004, -6048, -6048, 3914, -6048, -6048, -6048,
+ -6048, 4129, 997, 4130, 997,112115,112115,112115,112115, 3917,
+ -6048, -6048, -6048, -6048, 3918, 4055, -6048, 79456, 79456, 79456,
+ 2529, -6048, -6048, 1422, -6048, -6048, -6048, -6048, -6048, -6048,
+ 4088, -6048, 2530, -6048, 40,112115, -6048, -6048, -6048, -6048,
+ -6048, 4133,147070,112115, 13101,112115,112115,112115, 4004, 2150,
+ 1450, 88176, -6048, 85996, -6048, -6048, 2541, -6048, 3801,112115,
+ 3877,147070, 3854, -6048, -6048, -6048, 4136, 2472, 3935, 97427,
+ 3842, 3842, 2245, -6048, -6048, -6048, -6048, 4061, 3990, -6048,
+ 1075, 3992,147070, 3866, -6048, -6048, -6048, -6048, -6048, 4150,
+ 3892, -6048, -6048, 3893, 1047, 3194, 2615, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, 3921, -6048, -6048, -6048,
+ -6048, 1977, 1977, -6048, -6048, -6048, 1977, 1766, 406, 1079,
+ 3194, -6048, 2233, 1041, 3897, -6048, 3900, -6048, -6048, -6048,
+ 4067, 4073, 4074, 3908, 3909, 3958, 3915, 3916, 3960, -6048,
+ 3927, 3971, 3929, 3972, 3932, 4195, 997, 88176, 4059, 1422,
+ 3961, 4184, 997, -6048, 3934, -6048, 3937, -6048, 2547, 4292,
+ -6048,112115, -6048, 446, 1142, 3194, -6048, 3938, -6048,147070,
+ 112115, -6048, -6048, -6048, 52290, 3838, 3843, 3845, 18157, 18157,
+ 52290, -6048, -6048, 18157, 3848, -6048, -6048, -6048, -6048, 88176,
+ -6048,112115, 4122, -6048, -6048, 1049,112115,112115, -6048, -6048,
+ -6048,112115, -6048, -6048, -6048, 4124, -6048, 314, 314, -6048,
+ -6048, 4165, 7165, 3851, 510, -6048, 79456, 68396, 2443, 850,
+ 691, -6048,150416,112115,150416, -6048, 191, 4066,112115,112115,
+ 112115, 3856, 3855, -6048, -6048, -6048, -6048,147070, 1256,147070,
+ 2952, -6048, -6048, 3940, -6048,112115, 2472, 2698, 4192, 3552,
+ -6048, 4304, 3410, 975, 1912, 304, 3033, 4250, 2731, 52290,
+ 383, -6048, -6048, -6048, -6048, 2186,112115, 3607, -6048, -6048,
+ -6048, -6048, 1422, -6048, 3861, 3860, -6048,112115, 4201,112115,
+ 112115,112115,102867, 2252, 3869,112115, 3870, 88176,112115, 2606,
+ 3198, 4333, 4219, 2252, 3622, 3957, 4222,105043, 2565, -6048,
+ 3889, -6048, 953, -6048, 2569, 214, -6048, 1422,150416, 84906,
+ 4213, -6048, 311, 7348, -6048, -6048, 311, 797,112115, -6048,
+ -6048, -6048, -6048, 4101, 237, -6048, 4197, -6048,112115, -6048,
+ -6048, 63454, -6048, 88176, 3883, -6048, 2573, -6048, 2576, -6048,
+ -6048, -6048, 2952, -6048, -6048, 2052, 2052, 3885, -6048, 65659,
+ -6048, 3886, -6048, 2419, -6048, -6048, -6048, 352, 3947, 997,
+ 3949, 997, -6048, -6048, -6048, -6048,112115, -6048,112115,145636,
+ -6048, -6048,112115, -6048, 4237, 4224, -6048, -6048, -6048, -6048,
+ 4032, 4034, 4036, 4037, 4038,112115, 3636, -6048, 3901,112115,
+ 112115,147070, 1985, -6048, -6048, 4106, -6048, -6048,105043, 4031,
+ -6048, -6048, -6048, -6048, 4254, 4255, -6048, -6048, -6048, 1620,
+ -6048,112115,112115,147070, 96339, 211,147070, -6048, 4189, 4191,
+ 4202, 4203, 362, 4210, 4211, 4212, 4223, 4226, -6048, -6048,
+ -6048, 3950, 15036, 52290, -6048, 4275, 88176, -6048, 7293, -6048,
+ -6048, -6048, 52290, -6048, -6048, -6048, -6048, -6048, -6048, 2627,
+ 52290, -6048, 52290, -6048, -6048, 42690, 4418, 4418, 3939, 88176,
+ 56252, 56252, 56252, 56252, 1859, 3052, 56252, 56252, 56252, 56252,
+ 56252, 56252, 56252, 56252, 56252, 56252, 436, -6048, 4148, 52290,
+ 52290, 50026, -6048, -6048, 88176, 3953, 3683, 3956, 3963, 52290,
+ -6048, -6048, -6048, 2585, 57937, 3964, 79456, -6048, 52290, 13417,
+ 2593, 4000, 16591, 2186, 7389, 1422, 52290, 2337, 2406, 52290,
+ 2594, 52290, 4277, -6048, -6048, -6048, -6048, -6048, -6048, 4185,
+ -6048, 52290, 3965, 4563, 56252, 56252, 4638, -6048, 4773, 52290,
+ 44932, -6048, 3732, 4002, 67297, -6048, 43257, 3967, 1318, 1318,
+ 1318, 1318, -6048,112115,112115,112115, 60702, 4284, 3962, 59043,
+ 109939, 3969, 2331, -6048,109939,110483,109939, 3977, 2186, 52290,
+ 4279, 3974, 4279, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, 3976, -6048,
+ 3978, -6048, -6048, 173, 3981, -6048, -6048, 261, -6048, -6048,
+ 2252, -6048, 3986, -6048, 3745, 2102, -6048, -6048, -6048, 1348,
+ -6048, 4048, -6048, -6048, -6048, 3969, 50592, 4120, -6048, -6048,
+ -6048, 4022, 2598, -6048, -6048, 4385, 4120, -6048, 2280, -6048,
+ 2599, 66751, 3760, 52290, 2186, 2952, 3987, -6048, 2838, 1751,
+ -6048, -6048, -6048, -6048, -6048, 2603, 2164, -6048, -6048, 84361,
+ -6048, 4063, 2995, 2995, 1735, 3636, 4318, 1735, 7969, -6048,
+ -6048, 61255,112115,112115, -6048,112115,112115, 1918,112115, -6048,
+ 112115, -6048, -6048, -6048, 4450, 4050, 4051, 4268, -6048, 2891,
+ -6048, -6048,147070,112115, -6048, -6048, -6048, 461, 1161, 3194,
+ -6048, 4077, -6048, -6048, 4286,112115, -6048, 4437, 4089,112115,
+ 4344,112115,111027, -6048, 4066, 1918, 4107, 4323, 1858, 3198,
+ 2141, 5569, -6048, 2104, -6048, -6048, 4075, -6048,112115, -6048,
+ 112115, -6048, -6048, -6048, -6048, -6048, -6048, -6048, 4135, -6048,
+ -6048, -6048, -6048, 80001, -6048, -6048,112115, -6048, 79456, 68396,
+ 79456, -6048,112115, -6048, 1788, 464, 1201, 3194, -6048, 4084,
+ -6048, 4347, 4090, 4091, 4143, 246, 1618, 4092, 4095, 4151,
+ 4009, 4011, 4013, -6048, 79456, 68958, 4176,112115, 2995, 4016,
+ 4064,112115, 3842,111571, -6048, 4018, -6048, -6048, 3842, 399,
+ 1422, -6048, -6048, 1422, 2995, 1422,112115,112115,112115,112115,
+ 399, -6048, -6048, -6048, 4462, 4115,112115,112115,112115,112115,
+ -6048, 4078, -6048, -6048, -6048,112115,112115, 4359, 273, 2381,
+ 147070,112115,112115,147070,112115,112115,112115,112115,112115,112115,
+ 112115, 4241, -6048, 4453, 4378, 2528, 4421, 4109,112115, -6048,
+ 112115, 1422, -6048, 3447,112115,112115,112115,112115, -6048, -6048,
+ -6048, -6048, -6048, 3732, -6048, 4035, 4315, 1049, -6048, 4316,
+ 4319, 4324, 1049, -6048, -6048, 691, -6048, 496,112115, -6048,
+ 2653,112115, -6048, -6048, -6048, 3986, 2666, 2666, -6048, -6048,
+ -6048, -6048, -6048, -6048, 4043,112115,112115, 56252, -6048, 1677,
+ 2033, 1659, -6048, 4322,112115, 3284, -6048, -6048, -6048, 278,
+ 112115, -6048, -6048, -6048, -6048, 4057, -6048, 1255, 3869, -6048,
+ 4342, 91443, 2995,147070,147070, 2995, -6048, 88176, 4058, 3607,
+ -6048, 857, 4134, -6048,147070, 975,133875, 3377, 4093, 4265,
+ 7987, 59596, 60149, 1977, -6048, 4052, 4065, -6048, -6048,112115,
+ 4066,145636, 2614, 2615, 4517, 1412, 2449, 3695, 93075, 4248,
+ 3869, 4342, -6048, 3198, 4276, 4278, -6048, 2252,112115, 3695,
+ 3607, 1422,112115, 3520, -6048, 2698, 68396, 2315, -6048, 84361,
+ 52290, 52290, -6048, 4068, -6048, 4070, 7348, -6048, 4141, 4069,
+ 4518, 52290, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ 4158, 4079,112115,112115, 953,112115, 4565, -6048, -6048, 4082,
+ 3925, -6048, 3925, -6048, 4081, -6048, -6048, -6048, 2316, 31022,
+ 65659, 65659, 65659, 65659, 65659, -6048, -6048,112115, -6048,112115,
+ -6048, 997, -6048, 4206, 997,112115, 2252,112115,112115,112115,
+ 112115,112115, 3636, 362, 3633, -6048, -6048, 4406,146114, 3955,
+ -6048, 2617,112115, -6048, -6048, -6048, 4474, -6048, -6048, 192,
+ 4414, 997, -6048, 1113, 1113, 1113, 1113, 4372, 1113, 1113,
+ 1113, 1113, 1113, -6048, 52290, 18157, -6048, 4096, -6048, 18157,
+ 4097, 8516, 16834, -6048, 2621, 52290, -6048, 3729, 3729, 3729,
+ 3322, 4419, -6048, 2986, 3729, 3729, 3729, 376, 376, 236,
+ 236, 236, 4418, 436, 17079, 17153, 16744, 4098, -6048, -6048,
+ -6048, 3683, -6048, 53422, 787, 4535, 57384, -6048, -6048, -6048,
+ 4138, 4144, 4103, -6048, 52290, 53988, 4099, 89266, 4307, -6048,
+ 1118, 52290, 52290, 3587, -6048, 12059, 52290, -6048, 3587, 489,
+ 52290, 2568, 2699, 52290, 52290, 5832, 8834, 4114, 52290,138227,
+ -6048, -6048, -6048, 2625, 52290,112115,112115,112115,112115, -6048,
+ -6048, -6048,109939,110483,109939, 4112, 58490, 62907, 2331, 4116,
+ 112115, -6048, -6048, 4119, 59596, 4388, 4320, -6048, 59596, 4320,
+ 1676, 4320, 4399, 4215, 67843, -6048, -6048, 4123, -6048, 4332,
+ -6048, 2279, 18157, 4568, 4442, 1422, 4442, 1751, 345, 1422,
+ -6048, 4127, 71763, -6048, -6048, -6048, -6048, 4217, -6048, 4352,
+ 18157, 47762, -6048, 2252, 1564,112115, 2186, 753, -6048, 52290,
+ 4146,112115, -6048, 4120, 18157, -6048, 9176, -6048, -6048, -6048,
+ -6048, 4216, 2629, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ 4225, 94163, 4466, -6048, 52290, 2632, -6048, 4180, 4566, 456,
+ 2642, 2643, 1918, -6048, 2647, -6048, 2060, 4443, 220, -6048,
+ 997, -6048, 88176,112115,112115,112115, 3144, -6048, -6048,112115,
+ 112115,112115,112115, -6048, -6048,147070,112115, -6048,112115, -6048,
+ -6048, -6048, -6048, 399, 1677, 4454, 4456, 4373, -6048, 362,
+ -6048, 1677, 4377, 399,112115, -6048, -6048, -6048, 3325, -6048,
+ 88176, 997, 997, -6048, -6048, -6048, -6048, -6048, 4164, -6048,
+ 4601, 4253,112115,112115,112115,112115,112115,147070,112115,112115,
+ 2952, 2952, 88176, 4160, -6048, 2952, 2952, 4161, -6048,147070,
+ 112115,112115, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 4249, -6048, 52290, 4595, -6048, -6048, -6048,
+ -6048, -6048, 52290, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048,147070,112115, 4256, -6048, 4257, -6048, 855,
+ -6048, -6048,112115,112115,112115,112115, 4516, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048, 4519,112115,
+ -6048, -6048, 1422, 1422, 88176, 997, 997, -6048, -6048, -6048,
+ 4258, -6048, -6048, 4177, 4458, 1049, -6048, 1049, 1049, 1049,
+ -6048, 4179, -6048, 691, 4552, -6048, 1918, 2105, 4506, -6048,
+ 52290, -6048, 1208, 3322, -6048, 4567, 4644, -6048, -6048, -6048,
+ -6048, 3552, 2472, 3552, -6048, -6048, 81636, 1037, -6048, 4490,
+ 628, 79456, 4407, 91443, 2233, 2040, 4190, 4321, -6048, 2995,
+ 2995, 4252,112115, 4657, -6048, -6048, -6048, -6048, -6048, -6048,
+ 147070, 3854, -6048, 4424, 1447, 4527,112115, 60149, -6048, 3969,
+ -6048, -6048, -6048, 1422, -6048, -6048, 4325, 3607, -6048, 4550,
+ 112115, 4423, 91443, 3695, -6048, 2657, -6048, -6048, -6048, 4251,
+ 4653, 3622, -6048, 2233, 4248, -6048, -6048, 4629, 4309, 4260,
+ 4677, -6048, 4309, 4545, 4434, 4221, -6048, 3889, -6048,112115,
+ -6048, 18157, 18157, 1422, 89811, 311, 88176, 4555, -6048, 18157,
+ 112115, 951, 4227, 4390, -6048, 4522,112115, -6048, 997, 2662,
+ -6048, -6048, -6048, 4233, 2348, 2348, -6048, -6048, -6048, 997,
+ 997, -6048,112115, -6048, 3636, 3636, 3636, 3636, 3636, -6048,
+ 4435, -6048, -6048, -6048, 4520, -6048, 997,146114, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, 1113, -6048, -6048, -6048, -6048,
+ -6048, 18157, -6048, -6048, -6048, 52290, -6048, 9621, 56252, 4569,
+ -6048, 52290, 52290, 52290, -6048, 4235, 2665, 2670, -6048, -6048,
+ 787, -6048, 4535, -6048, -6048, -6048, 10497, 4293, 18157, 4349,
+ 4238, 4239, 3587, 3587, 12059, 3587, 52290, 52290, 3587, 3587,
+ 52290, -6048, -6048, 10536, 4436, -6048, -6048, 10785, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, 80546, 4242, 3882,109939, 4244,
+ 112115, 2331, 59596, -6048, -6048, 320, -6048, 59596, 4524, -6048,
+ 59596, 81636, -6048,112115, 4246,112115, -6048, 1837, 52290, 4289,
+ -6048, 4289, -6048, 2666, -6048, -6048, -6048, -6048, -6048, 4383,
+ 4259, -6048,102867, 838, -6048, 110, -6048, -6048, 4661, 61255,
+ 4619, 17468, 52290, -6048, -6048, -6048, -6048, -6048,146114, 4470,
+ 146114, 1918, 11469, 4560, 61255, 72885,112115, -6048,112115, -6048,
+ 4427, 4560, 4560, -6048, -6048, -6048, -6048, -6048, -6048, 4262,
+ -6048, -6048, -6048, -6048, 4348, -6048, -6048, 1340, 3605, -6048,
+ 2443, -6048, 4721, 4612, 4613, -6048, -6048, -6048, -6048, -6048,
+ -6048, 4453, -6048, -6048, 68396,147070,112115, -6048, 4351, -6048,
+ -6048, -6048, -6048, -6048, -6048, 62361, 71763, -6048, 246, 4269,
+ 4270, 1618, -6048, -6048, -6048,112115, 11487, 4271, 11562, 1454,
+ 3605,112115,112115, 4272, 4273, 4274, 1986, 1753, 2097, 3636,
+ 4608,112115, -6048, -6048, -6048, 4453, -6048, -6048,112115, -6048,
+ 1049, -6048, -6048, -6048, -6048, 79456, -6048, 2983, 4179, 1422,
+ 81636, 4731, 4731, 11793, 4500, -6048, -6048, 758, 4338, 4536,
+ 4338, 4282,112115, 278, 4285, 2673, -6048,112115, 4290, 4415,
+ 2421, 2421,112115,112115,112115, 2674, 2252, 2995, 4064, 975,
+ 4637, 91443, 4687, 4066, 401, -6048,112115, 4765,102867, 2252,
+ 3869,112115, 4303, 1021, -6048, 93075, 4515, 2443,112115, 2606,
+ 4248, 3622, 1350,112115, -6048, 1916, -6048, 2252, -6048,112115,
+ 105043, 61255, 4639, -6048, 88721, -6048, 2677, -6048, -6048, -6048,
+ 4384, 17909, 3750, 4426, 4429, 4312, 2257, 4649,112115, 974,
+ -6048, 4328, -6048, -6048, -6048, -6048, -6048, -6048, -6048,112115,
+ -6048, 211, -6048, 17606, -6048, 3944, 56252, 18157, 18157, 18157,
+ 52290, -6048, 52290, -6048, -6048, -6048, -6048, 1120, -6048, -6048,
+ 3587, 3587, 3587, -6048, 4761, 3732, -6048, -6048, 2678, 4783,
+ 55686, 4741, -6048,112115, 2681, -6048, 52290, 4331, -6048, -6048,
+ 59596, 320, 4337, 2695,112115, 2696, 88176, 54554, 18157,112115,
+ -6048, -6048, -6048, -6048, 1428, 4715, -6048, -6048, -6048, 4387,
+ 112115, 2706, -6048, 1229, 1970, 4386, -6048, 18157, 1985, 1735,
+ 443, 4566, 4339, 3552, -6048, 4343, -6048, -6048, 3198, 454,
+ 112115, 3552, 3552, -6048,112115, 4431, -6048, 4658, -6048, -6048,
+ 4393, -6048, 1480, 3605,112115, 88176, -6048, 163, 4675, -6048,
+ 88176, 88176, -6048, -6048, -6048, 52290, -6048, 4439, -6048, -6048,
+ -6048, 52290, 52290,150894, -6048, -6048,112115,112115,112115,112115,
+ 112115, -6048, 997, -6048, -6048, 2712, -6048,140331, -6048, -6048,
+ 3405, 1422, 3405, 1947, -6048, -6048, 3405, 3405, -6048, 3750,
+ -6048, 4731, 1675, -6048, -6048, 4582, 4353, 52290, 4652, -6048,
+ 1381, 4571, -6048, 4354, -6048, 81636, 4848, -6048, 79456, 3869,
+ 4342,112115, -6048, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, 2716, 4066, 4698, 3607, 4260, -6048,
+ 112115, 4396, -6048, 59596, 4066, 2252, 2449, 3695, 4248, 3869,
+ 4342, -6048, -6048, -6048, 4360, 4278, 3622, 2606, 4502, -6048,
+ 4504, -6048, 4793, 4576, 4795, 3695, -6048, 3520, 2721,112115,
+ -6048, -6048, 7348, 89811, 88176, -6048, -6048, -6048, 4363, 4734,
+ 4410, 4411, -6048, -6048, -6048, 2257, -6048, 1713, 4733, 4420,
+ -6048, 4430,112115, -6048, -6048, 2728, 4866, 4066, 997, 52290,
+ 3944, 2724, 2736, 4432, -6048, 52290, 1597, 3977, 80546, 4379,
+ -6048, 56252, 2737, -6048, 3457,112115, 2743, -6048, 18157,112115,
+ -6048, -6048, 52290, -6048, 2744, -6048, 4380, 112, 4381, 41556,
+ 4375, -6048, -6048, -6048, -6048, -6048, 18157, 4382, -6048, 4845,
+ 4720, 4722,112115, -6048, 2252, -6048, 3750, 61255, -6048, 4512,
+ 4854, 4643, -6048, -6048, 4719, -6048, -6048,112115, 4338, 71763,
+ 454, 3745, 2472, 4338, 4338, -6048,112115, 4353, 52290, -6048,
+ 4489, -6048, -6048, 2747, 1878, 4570, 4570, 2762, 2765, 11868,
+ 112115, 2770, 2780, -6048, 2793, 2952, 3641, 2097, 3641, -6048,
+ 3636, -6048, -6048, 79456, -6048,146592, -6048, -6048, -6048, 1422,
+ -6048, 1422, 4621,112115, 75085, 1422, 1422, -6048, -6048, -6048,
+ -6048, 4696, -6048, 2615, -6048, 12177, 4494, -6048, -6048, -6048,
+ 522, -6048, 4617, 4622, -6048, 4405, -6048, 2794, -6048, 2233,
+ 4537, 4066, -6048, -6048,112115, 4873, 4874, -6048, 1453,112115,
+ 3969, -6048, 4260, 3695, -6048, 3622, 2233, 4248, 2443, 61808,
+ 4309, 2606, 4278, -6048, -6048, 4623, -6048, 4624, -6048, 4417,
+ 4717, -6048, 1982, 311, -6048, -6048, -6048, 404, 4744, 4746,
+ -6048, -6048, -6048, 3405, -6048, 1588, 4422, 4763, -6048, -6048,
+ -6048, -6048, -6048,112115, -6048, -6048, 18157, -6048, -6048, -6048,
+ 3683, 51158, 51158, 51158, 4428, -6048, -6048,112115, 3322, 4425,
+ 55686, 79456, 2800, -6048, 86541, -6048, 2801, 2804, -6048, 52290,
+ 4433, 52290, -6048, 54554,112115, 4438, 4863, 4869, 1567, -6048,
+ -6048, -6048, 66751, 52290, 4523, 4854,146114, 2805, 3842, 4440,
+ 3745, -6048, 4536, -6048, -6048, 3605, -6048, 18157,112115, 81636,
+ 4872, -6048, -6048, -6048, -6048, -6048, -6048, -6048, 3605, 4508,
+ -6048, -6048,150894, -6048,112115, -6048, -6048, 2815, -6048, -6048,
+ -6048,112115, 4227, -6048, 4227, -6048, -6048, -6048, 2069, 4539,
+ 112115, 903, 903, 4808, -6048, 4498, -6048, 4441, -6048, 4926,
+ 4573,112115, -6048, -6048, 246, 2252, 91443, 4066, -6048, 1021,
+ 2606, 4248, 3622, 52290, 2818, -6048, 4566, 456, -6048, 4278,
+ 4309, -6048, -6048, 61255, 4446, 3284, 4798, -6048, -6048, -6048,
+ 2149, 81636, 81636,112115, -6048, -6048, -6048, 52290, 278, -6048,
+ 55120, 4589, 1354, 13498, 4791, -6048, 4791, 4791, -6048, 2821,
+ 57384, -6048, -6048, -6048,112115, 4660, 1797, 4917, 4614, 2822,
+ 54554, 2835, -6048, -6048, -6048,112115,112115,112115, 54, 18157,
+ 955, 4543, 443, -6048, -6048, -6048, -6048, 4571, 1918, 1918,
+ -6048, 3605, -6048,112115, -6048, 4457, -6048, -6048, -6048,146592,
+ 4227, -6048, -6048, -6048, -6048, 4935, -6048, 1448, -6048, -6048,
+ -6048, -6048,112115, 4066, 4160, 4260, -6048, -6048, 4278, 3622,
+ 2606, 12302, -6048, 61808,112115,112115, 4309, -6048, 2841, 61255,
+ 3607, 4602, -6048, 2336, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, 989, 4459, 4460, -6048, -6048, 12527, 81636, 4925, -6048,
+ -6048, -6048, -6048, -6048, 1389, -6048, -6048, -6048, -6048, 3882,
+ -6048, -6048, 56252, 4690, -6048, 1797, -6048, 56252,112115, -6048,
+ 4467, -6048, -6048, 2842, -6048, 1585, 1591, 2110, -6048, -6048,
+ 4699, 4593, -6048, -6048, 385, -6048, 1918, -6048, -6048, -6048,
+ 52290, -6048, -6048, 2472, 2472, 4066, -6048, -6048, 4309, 2606,
+ 4278, 4566, -6048, -6048, -6048, -6048, -6048, 4717, -6048, 2862,
+ 4309, 4420, 2064, -6048, -6048, 2202, 2748, 4554, 4801, -6048,
+ 4476, 51724, 4616, -6048, 4686, -6048, 4901, 3322, -6048, -6048,
+ 3322, -6048, 52290, -6048,112115,112115, 81091,112115, -6048, 66751,
+ 4712, 198, -6048, 1918, 2863, -6048, -6048, -6048, -6048, 4278,
+ 4309,112115, 3284, -6048, 61255, 3750, 4833, -6048, 2336, 4600,
+ 4603, 78911, -6048, -6048, -6048,112115, 12924, -6048, -6048, 317,
+ 4870, -6048, 4484, -6048, 4549, 110, 4507,112115, -6048, -6048,
+ 4309, -6048, -6048, 3607, -6048, -6048, 278, -6048, 4553, 4556,
+ 2867, -6048, -6048, -6048, -6048, -6048, 2868, -6048, 52290, 81091,
+ -6048, 4559, 52290, 2871, -6048, 4309, 81636, 4834, 4837, -6048,
+ 78911, -6048, 948, 4577, 4581, 2872, 150, 3750, 4513, 81636,
+ 81636, -6048, 4521,112115, -6048, -6048, 110, -6048, -6048, 78911,
+ -6048, -6048, 1422, -6048, 4578, 2876, 4581, -6048, -6048
+};
+
+ /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
+ Performed when YYTABLE does not specify something else to do. Zero
+ means the default is an error. */
+static const yytype_int16 yydefact[] =
+{
+ 3193, 0, 2, 1, 3620, 3624, 3628, 3629, 3551, 3630,
+ 3631, 3596, 3597, 3598, 3599, 3600, 3601, 3602, 3603, 3604,
+ 3605, 3606, 3607, 3609, 3608, 3610, 3611, 3612, 3613, 3614,
+ 3615, 3616, 3617, 3619, 3618, 3569, 3200, 3568, 3565, 3566,
+ 2308, 3633, 3621, 3634, 3622, 3623, 3625, 3626, 3595, 3627,
+ 3635, 3636, 3637, 3632, 3640, 3591, 3592, 3590, 3593, 3594,
+ 3638, 3639, 3582, 3583, 3584, 3585, 3641, 3201, 3202, 3587,
+ 3194, 3198, 3263, 3334, 3588, 3589, 3586, 3199, 3581, 3334,
+ 0, 3456, 3457, 0, 3458, 3459, 3460, 3386, 3348, 3461,
+ 0, 0, 3462, 3463, 3464, 3465, 3466, 3467, 3468, 3469,
+ 0, 3470, 3471, 3472, 3473, 3333, 3474, 3475, 3476, 3477,
+ 3310, 3316, 3439, 0, 3290, 3291, 3287, 3289, 3288, 3292,
+ 3275, 1455, 655, 1543, 1542, 0, 2674, 1455, 2626, 2627,
+ 2675, 2628, 2629, 0, 2630, 275, 0, 1553, 2631, 2676,
+ 0, 1455, 2677, 439, 1113, 2678, 2679, 3217, 0, 2632,
+ 2633, 0, 0, 0, 655, 1455, 0, 0, 2634, 1708,
+ 2635, 0, 2636, 2680, 2681, 0, 2637, 2638, 2682, 0,
+ 2683, 2639, 2640, 2641, 2684, 2685, 2686, 2642, 2687, 2688,
+ 0, 0, 1722, 0, 2643, 2689, 2644, 2645, 2646, 0,
+ 2690, 2647, 2648, 2649, 2691, 2692, 2650, 2651, 2652, 0,
+ 2653, 0, 0, 0, 0, 0, 0, 2693, 1455, 2654,
+ 0, 0, 1729, 0, 2655, 0, 2694, 2656, 0, 2657,
+ 0, 2695, 2658, 2659, 2660, 2661, 1722, 3435, 3311, 0,
+ 1555, 0, 2662, 2696, 0, 2663, 2664, 2665, 2666, 2667,
+ 2668, 2669, 2670, 2671, 2672, 2673, 0, 0, 0, 3,
+ 38, 73, 74, 31, 30, 91, 56, 17, 64, 126,
+ 125, 127, 43, 39, 81, 26, 28, 40, 44, 66,
+ 68, 33, 57, 103, 65, 24, 63, 69, 89, 51,
+ 12, 13, 52, 14, 53, 15, 54, 99, 75, 92,
+ 36, 62, 23, 45, 71, 72, 5, 47, 79, 11,
+ 58, 59, 61, 84, 85, 86, 109, 87, 121, 42,
+ 118, 96, 97, 115, 98, 116, 9, 100, 55, 16,
+ 112, 111, 113, 82, 48, 83, 70, 90, 110, 27,
+ 114, 18, 19, 21, 22, 20, 60, 29, 67, 32,
+ 88, 117, 107, 102, 122, 120, 4, 128, 104, 76,
+ 7, 8, 93, 6, 25, 50, 10, 35, 34, 49,
+ 41, 124, 37, 1553, 95, 108, 94, 101, 80, 105,
+ 123, 106, 78, 119, 1684, 1671, 1731, 1683, 1707, 0,
+ 1687, 3530, 3531, 46, 1708, 130, 131, 132, 137, 3197,
+ 3252, 3253, 3254, 3334, 3285, 3286, 3279, 3295, 3305, 3294,
+ 3298, 3306, 3293, 3312, 0, 134, 136, 138, 141, 135,
+ 129, 133, 140, 145, 139, 144, 142, 143, 146, 147,
+ 148, 3532, 1961, 3529, 77, 3270, 3269, 0, 3334, 0,
+ 3562, 2326, 2327, 2328, 2329, 2330, 2331, 2332, 2333, 2334,
+ 2335, 2336, 2337, 2338, 2339, 2341, 2340, 2342, 2343, 2344,
+ 2345, 2346, 2347, 2348, 2349, 2350, 2351, 2352, 2353, 2354,
+ 2355, 2356, 2357, 2358, 2359, 2360, 2361, 2362, 2363, 2364,
+ 2365, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374,
+ 2375, 2376, 2315, 2316, 2377, 2378, 2379, 2380, 2381, 2382,
+ 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2390, 2391, 2392,
+ 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2401, 2402,
+ 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412,
+ 2413, 2414, 2415, 2416, 2417, 2418, 2419, 2420, 2421, 2422,
+ 2423, 2424, 2425, 2426, 2427, 2428, 2429, 2430, 2431, 2432,
+ 2433, 2434, 2435, 2436, 2437, 2438, 2439, 2440, 2441, 2442,
+ 2443, 2444, 2445, 2446, 2447, 2448, 2449, 2450, 2451, 2452,
+ 2453, 2454, 2455, 2456, 2457, 2458, 2459, 2460, 2461, 2462,
+ 2463, 2464, 2465, 2466, 2467, 2468, 2469, 2470, 2471, 2472,
+ 2473, 2474, 2475, 2476, 2477, 2478, 2479, 2480, 2481, 2482,
+ 2483, 2484, 2485, 2486, 2487, 2488, 2489, 2490, 2491, 2492,
+ 2493, 2494, 2495, 2496, 2497, 2498, 2499, 2500, 2501, 2502,
+ 2503, 2504, 2505, 2506, 2507, 2508, 2509, 2510, 2513, 2511,
+ 2512, 2514, 2515, 2516, 2517, 2518, 2519, 2520, 2521, 2522,
+ 2523, 2524, 2525, 2526, 2527, 2528, 2529, 2530, 2531, 2532,
+ 2533, 2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2542,
+ 2543, 2544, 2545, 2546, 2547, 2548, 2549, 2550, 2551, 2552,
+ 2553, 2554, 2555, 2556, 2557, 2558, 2559, 2560, 2317, 2561,
+ 2562, 2563, 2564, 2565, 2566, 2567, 2568, 2569, 2570, 2571,
+ 2572, 2573, 2574, 2575, 2576, 2577, 2578, 2579, 2580, 2581,
+ 2582, 2583, 2584, 2585, 2586, 2587, 2588, 2589, 2590, 3217,
+ 2591, 2592, 2593, 2594, 2595, 2596, 2597, 2598, 2599, 2600,
+ 2601, 2602, 2603, 2604, 2605, 2606, 2607, 2608, 2609, 2610,
+ 2611, 2612, 2613, 2614, 2615, 2616, 2617, 2618, 2619, 2620,
+ 2621, 2622, 2623, 2624, 2625, 3235, 2313, 2314, 2321, 2322,
+ 2323, 3210, 3231, 3237, 3558, 3236, 2320, 3385, 0, 0,
+ 3478, 3479, 3480, 3481, 3482, 3483, 3533, 3534, 3535, 3536,
+ 3537, 3539, 3538, 3347, 3505, 3542, 3346, 3543, 3350, 3544,
+ 3545, 3546, 3547, 3506, 3548, 3349, 3540, 3502, 3351, 3344,
+ 3345, 3503, 3454, 3455, 2288, 3504, 3501, 3541, 3238, 3500,
+ 3355, 3354, 1660, 3557, 1661, 0, 3357, 3484, 3485, 3486,
+ 3487, 3489, 3488, 3490, 2697, 2698, 2699, 2700, 2701, 2702,
+ 2703, 2704, 2705, 2706, 2707, 2708, 3515, 2709, 2710, 2711,
+ 3528, 2712, 2713, 3516, 2714, 2715, 2716, 2717, 2718, 2719,
+ 2720, 2721, 2722, 2723, 2724, 2725, 2726, 2727, 2728, 2729,
+ 2730, 2731, 2732, 2733, 2734, 2735, 2736, 2737, 3517, 3518,
+ 2738, 2739, 2740, 2741, 2742, 2743, 2744, 2745, 2746, 2747,
+ 2748, 2749, 2750, 2751, 2752, 2753, 2754, 2755, 2756, 2757,
+ 2758, 2759, 2760, 2761, 3519, 2762, 2763, 3520, 2764, 2765,
+ 2766, 3521, 2767, 2768, 2769, 2770, 2771, 3525, 3526, 3527,
+ 3514, 3308, 3491, 3513, 3524, 3522, 3523, 3318, 3314, 3322,
+ 3317, 0, 0, 0, 0, 3334, 1454, 1453, 1468, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 654, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3207, 0, 1465, 150, 0,
+ 3509, 3503, 3512, 0, 2291, 3504, 3501, 3500, 411, 410,
+ 1552, 0, 1532, 655, 0, 1468, 438, 1708, 0, 0,
+ 0, 0, 0, 0, 871, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 198, 0, 0,
+ 0, 0, 462, 461, 0, 0, 1079, 467, 0, 0,
+ 0, 0, 0, 645, 3216, 3211, 3221, 0, 3214, 3215,
+ 3500, 0, 3644, 2511, 3247, 3248, 3642, 2572, 1662, 1660,
+ 3557, 0, 276, 279, 280, 277, 278, 0, 1225, 1226,
+ 1228, 0, 0, 1238, 911, 912, 0, 0, 0, 925,
+ 0, 0, 0, 909, 0, 0, 0, 931, 0, 928,
+ 0, 0, 932, 929, 906, 930, 913, 0, 905, 0,
+ 0, 1238, 933, 0, 0, 907, 0, 0, 0, 0,
+ 1468, 0, 3300, 3301, 2432, 1592, 468, 0, 0, 1708,
+ 0, 1576, 1577, 1553, 1565, 1578, 1570, 1572, 1571, 1573,
+ 1574, 1569, 1575, 2327, 1008, 2344, 1008, 2420, 1005, 1006,
+ 1008, 1008, 1008, 2531, 0, 0, 980, 0, 991, 2309,
+ 1008, 2310, 3558, 1013, 2335, 539, 539, 539, 0, 1012,
+ 1017, 539, 0, 1436, 1477, 2290, 1721, 0, 2344, 2420,
+ 981, 1435, 2591, 1582, 0, 0, 1253, 1249, 1251, 1252,
+ 1250, 0, 1082, 1082, 2550, 1445, 260, 3498, 2560, 2658,
+ 2591, 3499, 259, 254, 255, 3493, 3494, 3496, 228, 3497,
+ 3495, 3492, 2331, 0, 0, 1012, 0, 1468, 1443, 977,
+ 1728, 1726, 0, 2275, 0, 0, 2354, 0, 2369, 2458,
+ 251, 2543, 2551, 2560, 2658, 2591, 2623, 207, 217, 212,
+ 0, 269, 2560, 2658, 2591, 0, 1465, 0, 1688, 1835,
+ 1834, 2284, 0, 0, 3309, 1438, 1437, 1554, 0, 1557,
+ 0, 2526, 1692, 1695, 1559, 1693, 1684, 0, 0, 3196,
+ 0, 1564, 1725, 1725, 0, 1725, 0, 1676, 1684, 1679,
+ 1683, 0, 0, 0, 0, 0, 1455, 0, 3277, 3305,
+ 3284, 3340, 3281, 0, 0, 3330, 3326, 3323, 3331, 3332,
+ 3325, 3313, 1950, 1951, 1952, 1949, 1962, 1948, 0, 3258,
+ 1953, 3297, 3264, 0, 3272, 3271, 3570, 3571, 3387, 3209,
+ 3228, 0, 0, 0, 0, 0, 0, 0, 3356, 3358,
+ 3360, 3320, 3319, 3315, 0, 0, 0, 3445, 3446, 0,
+ 3444, 0, 3441, 3443, 0, 3340, 0, 1439, 0, 0,
+ 0, 936, 0, 1480, 1064, 0, 0, 0, 0, 0,
+ 1322, 0, 1121, 1122, 0, 2313, 0, 2431, 1322, 0,
+ 0, 2186, 2197, 2198, 2199, 2358, 2414, 2194, 2195, 2196,
+ 2188, 2189, 2190, 2191, 2192, 2193, 0, 0, 1220, 2187,
+ 0, 2431, 0, 1322, 0, 177, 0, 154, 1322, 0,
+ 0, 2431, 0, 0, 2431, 0, 0, 0, 0, 0,
+ 2431, 0, 0, 0, 0, 0, 177, 2463, 0, 154,
+ 2431, 0, 0, 0, 1459, 0, 0, 0, 1461, 1464,
+ 1451, 0, 2267, 0, 2268, 2292, 0, 1546, 1540, 1549,
+ 1545, 1535, 0, 2284, 0, 0, 0, 0, 919, 0,
+ 0, 909, 0, 0, 0, 920, 0, 921, 922, 0,
+ 0, 0, 0, 918, 0, 1449, 1441, 0, 1584, 1586,
+ 1585, 1587, 1583, 539, 0, 0, 0, 2431, 0, 154,
+ 1519, 0, 2431, 154, 0, 0, 466, 465, 154, 464,
+ 463, 2358, 2414, 0, 1112, 0, 1195, 154, 2431, 0,
+ 200, 2431, 714, 2431, 1559, 0, 658, 0, 826, 2463,
+ 154, 0, 0, 0, 0, 0, 0, 1082, 0, 0,
+ 0, 0, 0, 0, 0, 644, 655, 0, 3220, 3226,
+ 0, 3218, 3388, 3645, 3643, 3343, 0, 3249, 1229, 252,
+ 253, 1227, 923, 2431, 1154, 372, 0, 0, 2431, 154,
+ 1910, 1939, 1917, 1939, 1939, 1906, 1906, 2397, 1919, 2431,
+ 1907, 1908, 1944, 0, 1939, 1906, 1911, 0, 1909, 1947,
+ 1947, 1934, 372, 940, 1891, 1892, 1893, 1894, 1920, 1921,
+ 1895, 1926, 1927, 1931, 1896, 1961, 3510, 1906, 3511, 3508,
+ 3507, 924, 0, 910, 2431, 372, 1118, 2431, 2318, 187,
+ 0, 908, 2358, 2414, 2431, 372, 1222, 0, 2431, 372,
+ 2431, 183, 2431, 372, 2431, 372, 2431, 659, 0, 0,
+ 2431, 372, 2431, 2463, 185, 927, 2431, 372, 934, 2431,
+ 372, 2286, 2431, 0, 1452, 0, 0, 3575, 3579, 0,
+ 3577, 3572, 3299, 3353, 3352, 3251, 0, 3656, 0, 1662,
+ 1567, 0, 1708, 1008, 1007, 0, 1008, 0, 3666, 1008,
+ 0, 1008, 0, 3666, 1008, 0, 0, 0, 1008, 2311,
+ 2312, 0, 0, 3665, 3661, 3664, 982, 992, 0, 1014,
+ 0, 1022, 0, 1021, 1020, 1019, 0, 0, 0, 1023,
+ 0, 1839, 1619, 0, 989, 0, 987, 0, 1433, 1448,
+ 0, 0, 0, 0, 1082, 0, 1081, 0, 0, 1444,
+ 258, 256, 0, 0, 0, 0, 0, 0, 1450, 0,
+ 1442, 0, 0, 0, 3564, 3567, 2200, 3563, 0, 2627,
+ 2628, 2629, 2259, 0, 3505, 2630, 2631, 2676, 2090, 2077,
+ 2086, 2091, 2078, 2080, 2087, 2632, 2633, 2028, 2634, 2635,
+ 2304, 2636, 2637, 2638, 2640, 2641, 2642, 2082, 2084, 2643,
+ 2644, 2646, 0, 2305, 2647, 2648, 2492, 2650, 2651, 2653,
+ 2654, 2088, 2656, 2657, 2658, 2659, 2660, 2661, 2303, 506,
+ 2089, 2662, 2664, 2665, 2666, 2667, 2669, 2670, 2671, 2672,
+ 0, 0, 0, 2281, 0, 2057, 0, 1899, 1900, 1922,
+ 1923, 1901, 1928, 1929, 1902, 0, 2280, 1964, 2145, 2056,
+ 2073, 0, 2062, 2063, 0, 2055, 2051, 1711, 2276, 0,
+ 2052, 2293, 2260, 2307, 2306, 3558, 2270, 2296, 2294, 2295,
+ 2297, 1711, 2274, 0, 0, 0, 220, 0, 0, 3434,
+ 271, 0, 272, 2282, 2560, 208, 250, 222, 249, 223,
+ 221, 0, 2356, 209, 0, 0, 210, 0, 0, 0,
+ 0, 0, 0, 0, 265, 1440, 0, 1837, 1836, 2285,
+ 945, 0, 0, 1556, 1553, 2210, 0, 1694, 0, 0,
+ 0, 1674, 1673, 0, 1561, 1563, 1538, 1559, 1723, 1724,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1781, 1739,
+ 1740, 1742, 1778, 1782, 1790, 0, 1680, 0, 0, 0,
+ 1841, 0, 0, 3195, 3340, 3341, 0, 3335, 0, 3334,
+ 3334, 3328, 3327, 3324, 0, 0, 0, 0, 0, 0,
+ 0, 0, 3255, 639, 3257, 636, 0, 0, 3230, 0,
+ 3234, 3232, 0, 3380, 3383, 0, 3381, 3382, 3384, 0,
+ 3389, 3390, 0, 0, 0, 0, 0, 3371, 3359, 3366,
+ 3368, 3370, 3369, 3378, 3374, 3377, 3379, 3321, 3334, 0,
+ 3447, 3453, 3450, 2371, 0, 3442, 0, 1466, 0, 0,
+ 0, 0, 0, 1153, 0, 0, 0, 0, 0, 937,
+ 0, 0, 0, 0, 1488, 1489, 1490, 0, 0, 0,
+ 1491, 1492, 1480, 262, 1499, 1496, 1479, 1481, 1494, 1486,
+ 0, 0, 0, 0, 0, 0, 0, 1511, 0, 191,
+ 192, 0, 671, 655, 0, 2431, 0, 0, 0, 0,
+ 1163, 1170, 1321, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1164, 1162, 0, 1165, 264, 1175, 1202, 1205, 0,
+ 0, 1120, 1123, 0, 0, 0, 0, 0, 1312, 0,
+ 0, 0, 1312, 0, 0, 0, 1321, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 287, 289, 302, 367,
+ 0, 0, 0, 2431, 1322, 0, 0, 0, 1224, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1205, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 152, 153, 158,
+ 0, 0, 0, 0, 1205, 0, 0, 0, 0, 0,
+ 0, 0, 622, 635, 0, 0, 0, 0, 0, 632,
+ 0, 0, 154, 292, 612, 618, 0, 0, 0, 721,
+ 720, 0, 0, 0, 0, 0, 0, 1409, 0, 1408,
+ 0, 0, 0, 0, 0, 1509, 1508, 0, 0, 0,
+ 0, 0, 0, 1312, 0, 281, 283, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 403, 404, 0, 0, 0, 158, 0, 0,
+ 1312, 0, 294, 0, 3265, 0, 1460, 1457, 1458, 0,
+ 1463, 0, 0, 0, 0, 2065, 0, 2214, 1731, 2212,
+ 1138, 2266, 0, 2263, 2262, 2289, 2269, 0, 0, 239,
+ 240, 238, 1547, 241, 1548, 1544, 0, 1530, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2358, 2414, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 834, 1480, 1518, 0, 0, 0,
+ 664, 0, 2431, 0, 156, 872, 0, 824, 467, 0,
+ 0, 0, 0, 1385, 156, 0, 0, 194, 0, 0,
+ 718, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 825, 0, 0, 156, 0, 2431, 615, 2431, 0,
+ 539, 539, 0, 0, 1084, 0, 0, 0, 0, 0,
+ 0, 0, 0, 3224, 3219, 3222, 0, 3212, 3226, 1666,
+ 1665, 1668, 1667, 0, 1664, 0, 370, 371, 0, 1212,
+ 1237, 0, 0, 0, 1938, 1925, 1933, 1932, 0, 1915,
+ 1914, 1913, 0, 1912, 0, 1939, 1939, 1937, 1916, 1891,
+ 0, 0, 0, 1943, 0, 1941, 0, 901, 1887, 1883,
+ 0, 1950, 1949, 1948, 0, 1897, 1906, 1903, 926, 0,
+ 0, 1206, 0, 0, 2431, 372, 2431, 0, 2431, 0,
+ 0, 0, 1214, 372, 0, 1208, 0, 0, 1210, 0,
+ 1411, 0, 917, 915, 914, 916, 0, 0, 899, 0,
+ 0, 0, 0, 0, 894, 0, 0, 896, 0, 0,
+ 3573, 0, 0, 3576, 0, 3302, 0, 3662, 1588, 3659,
+ 0, 0, 1708, 1566, 0, 1000, 0, 3666, 3667, 985,
+ 0, 995, 0, 3666, 983, 0, 996, 993, 994, 0,
+ 0, 0, 3660, 3549, 3555, 999, 0, 0, 540, 542,
+ 0, 0, 2380, 2396, 0, 2421, 2451, 2452, 2502, 2517,
+ 2546, 2551, 2556, 0, 2585, 2596, 0, 1028, 1059, 1018,
+ 730, 0, 0, 1629, 990, 988, 1434, 1580, 2219, 0,
+ 1708, 0, 0, 0, 1245, 1246, 257, 229, 0, 0,
+ 0, 1061, 2550, 1447, 976, 655, 0, 0, 2060, 2061,
+ 2258, 0, 0, 0, 0, 0, 0, 2059, 0, 0,
+ 0, 0, 0, 0, 0, 1986, 0, 0, 2218, 0,
+ 0, 2218, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1987, 1968, 1969, 3506, 2057, 2210,
+ 0, 2058, 2300, 0, 1961, 2200, 0, 2197, 2198, 2199,
+ 2772, 2773, 2774, 2775, 2776, 2777, 2778, 2779, 2780, 2781,
+ 2782, 2783, 2784, 2785, 2786, 2787, 0, 2788, 2789, 2790,
+ 2791, 2792, 2794, 2793, 2795, 2796, 2797, 2798, 2799, 2800,
+ 2273, 2802, 2803, 2804, 2805, 2806, 2807, 2808, 2809, 2810,
+ 2811, 2812, 2813, 2814, 2815, 2816, 2817, 2818, 2819, 2820,
+ 2821, 2822, 2823, 2824, 2825, 2826, 2827, 2828, 2829, 2830,
+ 2831, 2832, 2833, 2834, 2835, 2836, 2837, 2838, 2839, 2840,
+ 2841, 2842, 2843, 2844, 2845, 2846, 2847, 2848, 2849, 2850,
+ 2851, 2852, 2853, 2854, 2855, 2856, 2857, 2858, 2859, 2860,
+ 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870,
+ 2871, 2872, 2873, 2874, 2875, 2876, 2877, 2878, 2879, 2880,
+ 2881, 2882, 2883, 2884, 2885, 2886, 2887, 2888, 2889, 2890,
+ 2891, 2892, 2893, 2894, 2895, 2896, 2897, 2898, 2899, 2900,
+ 2901, 2902, 2903, 2904, 2905, 2906, 2907, 2908, 2909, 2910,
+ 2911, 2912, 2913, 2914, 2915, 2916, 2917, 2918, 2919, 2920,
+ 2921, 2922, 2923, 2924, 2925, 2926, 2927, 2928, 2929, 2930,
+ 2931, 2932, 2933, 2934, 2935, 2936, 2937, 2938, 2939, 2940,
+ 2941, 2942, 2943, 2944, 2945, 2946, 2947, 2948, 2949, 2950,
+ 2951, 2952, 2953, 2001, 2954, 2955, 2956, 2957, 2958, 2959,
+ 2960, 2961, 2962, 2963, 2964, 2965, 2966, 2967, 2968, 2969,
+ 2970, 2971, 2972, 2973, 2974, 2975, 2976, 2977, 2978, 2979,
+ 2980, 2981, 2982, 2983, 2984, 2985, 2986, 2987, 2988, 2989,
+ 2990, 2991, 2992, 2993, 2994, 2995, 2996, 2997, 2998, 2999,
+ 3000, 3001, 3002, 3003, 3004, 2003, 3005, 3006, 3007, 3008,
+ 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018,
+ 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028,
+ 3029, 3030, 3031, 3032, 3033, 3034, 3035, 3036, 3037, 3038,
+ 3039, 3042, 3040, 3041, 3043, 3044, 3045, 3046, 3047, 3048,
+ 3049, 3050, 3051, 3052, 3053, 3054, 3055, 3056, 3057, 3058,
+ 3059, 3060, 3061, 3062, 3063, 3064, 3065, 3066, 3067, 3068,
+ 3069, 3070, 3071, 3072, 3073, 3074, 3075, 3076, 3077, 3078,
+ 3079, 3080, 3081, 3082, 3083, 3084, 3085, 3086, 3087, 3088,
+ 3089, 3090, 3091, 3092, 3093, 3094, 3095, 3096, 3097, 3099,
+ 3098, 3100, 3101, 3102, 3103, 3104, 3105, 3106, 3107, 3108,
+ 3109, 3110, 3111, 3112, 3113, 3114, 3115, 3116, 3117, 3118,
+ 3119, 3120, 3121, 3122, 3123, 3124, 3125, 3126, 3127, 3128,
+ 3129, 3130, 3131, 3132, 3133, 3134, 3135, 3136, 3137, 3138,
+ 3139, 3140, 3141, 3142, 3143, 3144, 3145, 3146, 3147, 3148,
+ 3149, 3150, 3151, 3152, 3153, 3154, 3155, 3156, 3157, 3158,
+ 3159, 3160, 3161, 3162, 3163, 3164, 3165, 3166, 3167, 3168,
+ 3169, 3170, 3171, 3172, 3173, 3174, 3175, 3176, 3177, 3178,
+ 3179, 3180, 3181, 3182, 3183, 3184, 3185, 3186, 3187, 3188,
+ 3189, 3190, 3191, 3192, 0, 2194, 2195, 2196, 2188, 2189,
+ 2190, 2191, 2192, 2193, 2204, 0, 0, 2279, 2325, 2324,
+ 0, 2147, 0, 1983, 0, 0, 1794, 1710, 0, 2298,
+ 2261, 0, 3556, 3559, 2053, 1794, 3431, 3430, 3429, 3428,
+ 3399, 0, 3393, 3394, 0, 3432, 3433, 273, 274, 270,
+ 0, 0, 225, 224, 0, 247, 248, 219, 246, 0,
+ 242, 243, 227, 2134, 2133, 226, 218, 215, 213, 230,
+ 232, 233, 216, 214, 268, 266, 0, 0, 0, 0,
+ 372, 3334, 1564, 1551, 0, 0, 2273, 0, 2208, 0,
+ 0, 2206, 0, 0, 0, 1791, 0, 1696, 0, 1700,
+ 1564, 0, 1560, 1691, 1690, 1732, 1733, 1104, 1689, 1761,
+ 1762, 0, 0, 0, 0, 1787, 1785, 1752, 1743, 1751,
+ 0, 0, 1749, 0, 1753, 1964, 1780, 1678, 1737, 1738,
+ 1741, 1677, 0, 1783, 0, 1632, 1781, 1742, 1616, 0,
+ 1594, 0, 0, 1842, 0, 0, 0, 3342, 3340, 3280,
+ 1891, 3334, 3273, 3334, 3329, 3261, 1955, 1956, 1957, 1958,
+ 1959, 1960, 3262, 0, 3259, 1954, 3260, 637, 638, 0,
+ 0, 0, 3227, 0, 3208, 3233, 3365, 2568, 3397, 0,
+ 3398, 0, 0, 3362, 0, 3372, 3375, 3373, 3376, 0,
+ 1891, 3448, 3552, 3552, 1891, 1467, 0, 0, 0, 1133,
+ 1135, 0, 1134, 0, 1137, 0, 1146, 0, 0, 1132,
+ 1151, 0, 1140, 1138, 0, 1507, 0, 0, 938, 0,
+ 0, 0, 0, 1487, 0, 0, 0, 2585, 261, 1490,
+ 1495, 1482, 1493, 0, 0, 0, 0, 0, 1063, 1062,
+ 0, 0, 1086, 0, 0, 506, 1514, 528, 0, 369,
+ 0, 0, 0, 0, 0, 0, 0, 0, 820, 817,
+ 0, 0, 816, 0, 669, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 694, 0, 1312, 0,
+ 300, 0, 1172, 0, 1171, 0, 1176, 0, 0, 1173,
+ 1168, 1169, 2551, 2560, 2591, 263, 1174, 1204, 0, 1203,
+ 1199, 0, 1115, 0, 1116, 0, 0, 0, 0, 0,
+ 2406, 2431, 308, 331, 0, 1311, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 353, 0, 0, 356, 355, 0, 0, 0, 0,
+ 0, 361, 0, 339, 0, 340, 0, 360, 0, 0,
+ 0, 0, 0, 0, 1312, 0, 296, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1221, 0, 747, 0, 0,
+ 2551, 1200, 0, 1394, 0, 2584, 1395, 1398, 539, 0,
+ 539, 1400, 0, 0, 1397, 1399, 0, 0, 180, 0,
+ 175, 179, 0, 0, 2551, 1201, 0, 0, 0, 0,
+ 0, 620, 621, 634, 0, 625, 626, 623, 627, 628,
+ 0, 0, 0, 0, 0, 0, 0, 619, 0, 0,
+ 716, 715, 719, 0, 0, 0, 0, 0, 0, 1403,
+ 0, 0, 1195, 0, 0, 1402, 1410, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1255, 1254, 0,
+ 0, 0, 0, 1322, 0, 862, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 182, 734, 0, 733, 0,
+ 176, 181, 0, 0, 0, 0, 0, 0, 0, 0,
+ 237, 1456, 1462, 1731, 1731, 1731, 2071, 0, 0, 0,
+ 0, 1730, 2264, 2267, 1535, 1541, 1534, 1533, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 417, 414, 415, 417, 0,
+ 0, 0, 0, 836, 0, 839, 842, 1478, 490, 0,
+ 0, 661, 694, 0, 0, 470, 189, 0, 0, 0,
+ 0, 749, 0, 1195, 1194, 151, 198, 200, 468, 0,
+ 199, 201, 203, 204, 205, 202, 206, 0, 713, 717,
+ 0, 0, 0, 0, 657, 0, 0, 0, 0, 0,
+ 0, 0, 1862, 0, 0, 174, 0, 0, 610, 614,
+ 0, 3203, 0, 0, 470, 578, 383, 2431, 0, 539,
+ 0, 2431, 0, 1083, 0, 823, 0, 0, 0, 1157,
+ 1157, 0, 0, 763, 762, 0, 0, 0, 0, 3225,
+ 0, 0, 0, 0, 1663, 372, 1155, 0, 154, 0,
+ 0, 0, 0, 372, 1936, 1935, 1888, 1884, 0, 0,
+ 0, 0, 941, 0, 0, 0, 0, 0, 0, 1904,
+ 372, 1119, 188, 2319, 0, 903, 0, 0, 0, 0,
+ 372, 1223, 891, 372, 184, 372, 372, 660, 0, 372,
+ 186, 0, 0, 372, 935, 372, 2287, 0, 372, 3574,
+ 3580, 3578, 1591, 3663, 3657, 3658, 2431, 539, 1668, 1568,
+ 997, 1004, 986, 1003, 1002, 984, 1001, 998, 3364, 0,
+ 0, 3554, 0, 1015, 0, 538, 0, 0, 0, 0,
+ 0, 1036, 1037, 0, 0, 1033, 1038, 0, 1040, 1024,
+ 1026, 1034, 1035, 1041, 1030, 1029, 1042, 1043, 0, 0,
+ 1061, 728, 0, 0, 0, 0, 1626, 0, 1624, 0,
+ 1840, 1628, 1617, 1581, 0, 1579, 0, 603, 1082, 1082,
+ 0, 0, 1012, 0, 0, 372, 1446, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2223, 0,
+ 2224, 0, 0, 2257, 2253, 0, 0, 0, 0, 0,
+ 2230, 2231, 2232, 2229, 2233, 2228, 0, 0, 2234, 2227,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2214, 2217,
+ 0, 0, 2654, 0, 0, 0, 0, 2029, 0, 0,
+ 2181, 0, 2214, 0, 0, 0, 0, 0, 0, 0,
+ 2210, 2249, 0, 504, 0, 2021, 0, 0, 0, 2132,
+ 0, 2129, 0, 0, 0, 0, 2270, 0, 0, 2301,
+ 1965, 1979, 1980, 1981, 1984, 2278, 0, 2272, 0, 0,
+ 1966, 1992, 0, 2250, 2017, 0, 2022, 2007, 2235, 2236,
+ 2237, 2238, 2024, 0, 2000, 2005, 2009, 0, 1988, 0,
+ 1985, 0, 2273, 2209, 0, 2207, 0, 1976, 1977, 1978,
+ 1970, 1971, 1972, 1973, 1974, 1975, 1982, 2185, 2183, 2184,
+ 0, 0, 0, 2155, 0, 0, 2004, 2424, 2458, 0,
+ 1722, 1722, 1722, 1709, 1720, 2277, 0, 1857, 1731, 3561,
+ 3560, 2271, 1857, 0, 0, 0, 2283, 0, 0, 1961,
+ 0, 267, 1838, 943, 944, 942, 1891, 1537, 1550, 1564,
+ 2211, 1558, 1698, 0, 0, 1539, 1562, 0, 1102, 1103,
+ 0, 1107, 2654, 2548, 0, 0, 0, 0, 1754, 1788,
+ 0, 1779, 0, 1755, 2293, 2294, 1756, 1759, 1760, 1750,
+ 1789, 1630, 0, 1784, 1682, 1681, 0, 1860, 0, 0,
+ 0, 1608, 1596, 0, 0, 1843, 0, 1794, 1634, 0,
+ 2270, 1792, 3278, 3336, 3283, 3304, 3274, 3307, 1963, 3256,
+ 3296, 0, 3229, 3400, 3401, 0, 3391, 3392, 3361, 3367,
+ 3438, 0, 3553, 0, 0, 1361, 1256, 1323, 1136, 0,
+ 1906, 1147, 0, 1131, 0, 1130, 1906, 0, 1148, 0,
+ 1906, 1362, 1257, 1324, 939, 1363, 1258, 1325, 1364, 1498,
+ 1259, 1497, 1485, 1484, 1483, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 801,
+ 2431, 372, 1512, 1365, 0, 1260, 368, 1513, 1326, 1517,
+ 819, 818, 0, 0, 1327, 0, 670, 675, 0, 677,
+ 678, 2358, 2414, 679, 682, 683, 0, 685, 674, 673,
+ 0, 0, 0, 0, 0, 691, 693, 0, 0, 0,
+ 0, 0, 0, 1166, 1167, 1366, 1263, 0, 1328, 0,
+ 1114, 0, 1264, 190, 0, 0, 288, 2431, 310, 0,
+ 488, 801, 0, 1314, 307, 337, 0, 352, 347, 348,
+ 346, 2431, 372, 2431, 372, 0, 0, 0, 0, 0,
+ 349, 344, 345, 341, 0, 0, 354, 2330, 2398, 2561,
+ 0, 702, 704, 0, 709, 357, 1284, 379, 378, 377,
+ 0, 362, 0, 384, 387, 0, 359, 338, 336, 333,
+ 303, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1216, 0, 1369, 1329, 0, 1351, 0, 0,
+ 0, 0, 741, 1372, 1270, 1332, 0, 539, 0, 0,
+ 554, 554, 539, 1383, 1271, 178, 1301, 0, 0, 163,
+ 0, 0, 0, 0, 157, 167, 1373, 1272, 1333, 0,
+ 0, 1374, 1273, 0, 0, 293, 613, 624, 629, 1278,
+ 633, 630, 1341, 631, 1381, 1274, 0, 1377, 1304, 1336,
+ 598, 1195, 1195, 1384, 1404, 1275, 1195, 0, 1312, 0,
+ 282, 284, 0, 1082, 0, 1276, 0, 1334, 1376, 1303,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1520,
+ 0, 0, 0, 0, 0, 0, 372, 0, 0, 0,
+ 1314, 2431, 372, 1375, 0, 1309, 0, 1349, 0, 0,
+ 405, 0, 1302, 1312, 0, 295, 1280, 0, 1343, 0,
+ 0, 235, 234, 236, 0, 0, 0, 0, 2215, 2216,
+ 0, 2213, 2066, 2266, 0, 1531, 965, 951, 964, 0,
+ 947, 2396, 0, 950, 952, 0, 0, 0, 953, 957,
+ 958, 0, 949, 946, 948, 0, 416, 0, 0, 758,
+ 759, 0, 0, 0, 0, 838, 0, 0, 1510, 0,
+ 154, 668, 0, 0, 0, 663, 693, 698, 0, 0,
+ 0, 0, 469, 473, 477, 478, 479, 0, 0, 0,
+ 0, 168, 155, 0, 880, 0, 539, 0, 751, 1195,
+ 1387, 0, 200, 193, 0, 0, 714, 0, 1559, 0,
+ 0, 593, 2074, 596, 2075, 595, 0, 383, 833, 831,
+ 830, 832, 854, 829, 0, 1861, 1863, 0, 0, 0,
+ 0, 0, 0, 0, 472, 0, 0, 542, 0, 581,
+ 0, 0, 0, 0, 578, 0, 0, 0, 0, 850,
+ 3507, 822, 0, 1125, 0, 1143, 1126, 0, 0, 0,
+ 0, 1180, 1187, 1156, 1181, 1158, 1187, 0, 0, 764,
+ 768, 767, 771, 769, 0, 765, 642, 3223, 3217, 1669,
+ 1670, 0, 1213, 0, 0, 1506, 0, 1504, 0, 1905,
+ 1918, 902, 0, 1946, 1945, 1947, 1947, 0, 1889, 0,
+ 3646, 3654, 3653, 0, 1930, 1898, 1207, 372, 0, 372,
+ 0, 372, 1215, 1209, 1211, 1412, 0, 900, 0, 0,
+ 893, 895, 0, 897, 0, 0, 3363, 3550, 1016, 541,
+ 0, 0, 0, 0, 0, 0, 1032, 640, 1039, 0,
+ 0, 0, 1054, 1049, 1051, 0, 1055, 727, 0, 0,
+ 1627, 1620, 1622, 1621, 0, 0, 1618, 2220, 892, 0,
+ 609, 0, 0, 0, 0, 1061, 0, 1056, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1727, 2221,
+ 2222, 0, 0, 0, 2254, 0, 0, 2107, 0, 2079,
+ 2081, 2093, 0, 2108, 2064, 2109, 2083, 2085, 2094, 0,
+ 0, 2201, 0, 2097, 2096, 0, 2031, 2032, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2046, 2098, 2180, 0,
+ 0, 0, 2100, 2099, 0, 0, 2248, 0, 0, 0,
+ 2105, 505, 2110, 0, 0, 0, 0, 2116, 0, 2137,
+ 0, 0, 0, 2054, 2211, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2023, 2008, 2026, 2002, 2006, 2010, 0,
+ 2025, 0, 0, 1996, 0, 0, 1994, 2018, 1990, 0,
+ 0, 2019, 0, 0, 0, 2072, 0, 0, 1722, 1722,
+ 1722, 1722, 1719, 0, 0, 0, 0, 2548, 2673, 0,
+ 1818, 1793, 1795, 1805, 1818, 1825, 1818, 1855, 2284, 0,
+ 1764, 0, 1764, 3413, 3415, 3416, 3417, 3418, 3419, 3421,
+ 3422, 3424, 3425, 3426, 3414, 3420, 3423, 3427, 3404, 3405,
+ 0, 3395, 3396, 211, 0, 244, 231, 3438, 1536, 1699,
+ 1708, 1734, 0, 2202, 1107, 0, 1736, 1757, 1758, 0,
+ 1747, 0, 1786, 1744, 1631, 1615, 0, 1613, 1600, 1602,
+ 1601, 0, 0, 1603, 2270, 0, 1613, 1595, 0, 1639,
+ 0, 0, 1860, 0, 1638, 0, 3338, 3266, 0, 0,
+ 3437, 3440, 3452, 3449, 3276, 0, 1906, 1128, 1129, 0,
+ 1152, 0, 1066, 1067, 0, 1065, 0, 0, 0, 527,
+ 1085, 0, 0, 0, 801, 0, 0, 531, 0, 1515,
+ 0, 1382, 1300, 672, 0, 0, 0, 0, 687, 646,
+ 688, 690, 0, 0, 689, 692, 695, 1312, 0, 301,
+ 1286, 0, 1347, 1160, 0, 0, 1117, 0, 0, 0,
+ 0, 0, 0, 487, 698, 332, 0, 0, 0, 0,
+ 154, 0, 312, 324, 390, 330, 0, 364, 0, 335,
+ 0, 328, 350, 342, 351, 343, 363, 365, 0, 706,
+ 707, 705, 701, 0, 708, 710, 0, 381, 0, 0,
+ 0, 358, 0, 1368, 0, 1312, 0, 297, 1282, 0,
+ 1345, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1350, 0, 0, 0, 0, 746, 0,
+ 743, 0, 554, 0, 1396, 0, 1393, 1391, 554, 0,
+ 0, 160, 159, 0, 166, 0, 0, 0, 0, 0,
+ 0, 1405, 1406, 1407, 0, 0, 0, 0, 0, 0,
+ 399, 0, 304, 306, 305, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 406, 374, 0, 857, 0, 0, 0, 408,
+ 0, 0, 1360, 0, 0, 0, 0, 0, 1367, 1265,
+ 2069, 2070, 2067, 1731, 2265, 0, 0, 0, 962, 0,
+ 0, 0, 0, 419, 420, 154, 418, 441, 0, 801,
+ 0, 0, 835, 840, 848, 2492, 2188, 2189, 846, 841,
+ 843, 845, 844, 847, 0, 0, 0, 0, 509, 0,
+ 0, 0, 496, 0, 0, 506, 489, 492, 493, 0,
+ 0, 664, 667, 665, 666, 0, 686, 0, 472, 516,
+ 568, 0, 170, 0, 0, 171, 169, 0, 0, 383,
+ 748, 0, 745, 1386, 0, 196, 0, 718, 0, 0,
+ 0, 0, 0, 1195, 656, 0, 853, 855, 827, 0,
+ 698, 0, 0, 615, 0, 539, 1592, 603, 0, 570,
+ 472, 568, 577, 0, 0, 585, 382, 0, 0, 603,
+ 383, 0, 0, 1086, 849, 0, 0, 0, 1124, 0,
+ 0, 0, 1177, 1182, 1178, 0, 1157, 1139, 0, 1179,
+ 0, 0, 1185, 1110, 1159, 1111, 1428, 1429, 1426, 1427,
+ 0, 0, 0, 0, 0, 0, 3240, 1659, 3250, 0,
+ 0, 1502, 0, 1924, 0, 1942, 1940, 1885, 0, 3334,
+ 0, 0, 0, 0, 0, 1890, 904, 0, 887, 0,
+ 889, 372, 735, 0, 372, 0, 0, 0, 0, 0,
+ 0, 0, 1031, 0, 1025, 1027, 1052, 0, 0, 1061,
+ 1058, 0, 0, 1625, 1623, 601, 0, 1247, 1248, 1061,
+ 0, 372, 1060, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2225, 0, 2256, 2252, 0, 2076, 2226,
+ 0, 0, 0, 2181, 0, 0, 2030, 2042, 2043, 2044,
+ 2241, 0, 2049, 0, 2039, 2040, 2041, 2033, 2034, 2035,
+ 2036, 2037, 2038, 2045, 2245, 2244, 0, 0, 2102, 2103,
+ 2104, 2247, 2111, 0, 2348, 2138, 0, 2115, 2131, 2130,
+ 0, 0, 0, 2118, 0, 0, 2127, 0, 2182, 2302,
+ 1967, 0, 0, 1993, 2251, 2011, 0, 2027, 1989, 2201,
+ 0, 0, 0, 0, 0, 1998, 0, 0, 0, 2158,
+ 2153, 2154, 2178, 0, 0, 0, 0, 0, 0, 1713,
+ 1712, 1718, 1818, 1825, 1818, 0, 0, 1684, 0, 1805,
+ 0, 1817, 1803, 1816, 0, 0, 1831, 1829, 0, 1831,
+ 0, 1831, 0, 1797, 0, 1821, 1799, 1816, 1801, 0,
+ 1847, 2285, 1856, 0, 1777, 2066, 1777, 0, 0, 0,
+ 3436, 0, 0, 1735, 1105, 1106, 1745, 0, 1748, 0,
+ 1858, 0, 1614, 0, 0, 0, 1605, 1611, 1593, 0,
+ 0, 0, 1635, 1613, 1636, 3282, 0, 3337, 3402, 3403,
+ 1149, 0, 0, 1141, 1072, 1073, 1076, 1074, 1071, 1075,
+ 0, 0, 0, 801, 0, 0, 549, 0, 1099, 1099,
+ 0, 0, 533, 590, 0, 804, 0, 0, 0, 802,
+ 372, 1261, 0, 0, 0, 0, 647, 1380, 1262, 0,
+ 0, 0, 0, 1161, 1315, 0, 0, 1285, 0, 309,
+ 486, 485, 490, 0, 0, 315, 325, 0, 320, 0,
+ 1313, 0, 0, 0, 0, 319, 322, 394, 0, 391,
+ 0, 372, 372, 366, 703, 380, 385, 386, 389, 1320,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 881, 864, 0, 0, 882, 883, 0,
+ 0, 0, 1218, 1219, 1217, 1352, 1353, 1358, 1355, 1354,
+ 1357, 1356, 1359, 0, 1268, 0, 0, 739, 1316, 1388,
+ 1390, 1389, 0, 1392, 164, 161, 162, 165, 1317, 1298,
+ 1279, 1342, 599, 0, 0, 0, 1277, 0, 1335, 0,
+ 1294, 1288, 0, 0, 0, 0, 0, 1379, 1308, 1340,
+ 1378, 1306, 1338, 1305, 1337, 1307, 1339, 1299, 0, 0,
+ 1865, 861, 0, 0, 0, 372, 372, 860, 737, 1281,
+ 0, 1344, 1290, 0, 0, 0, 954, 0, 0, 0,
+ 956, 424, 442, 154, 0, 757, 821, 0, 0, 837,
+ 0, 494, 0, 500, 507, 0, 0, 511, 512, 510,
+ 495, 1195, 539, 1195, 790, 791, 0, 0, 811, 0,
+ 662, 0, 0, 470, 0, 513, 0, 0, 474, 173,
+ 172, 0, 0, 0, 752, 756, 754, 753, 755, 750,
+ 0, 741, 200, 2431, 0, 0, 0, 0, 597, 591,
+ 594, 1401, 828, 0, 1864, 731, 0, 383, 611, 3205,
+ 0, 0, 470, 603, 3204, 0, 475, 480, 481, 490,
+ 0, 578, 569, 0, 570, 579, 580, 0, 587, 1476,
+ 0, 604, 587, 0, 0, 0, 851, 0, 852, 0,
+ 1127, 1144, 1145, 0, 0, 1187, 0, 0, 1189, 1184,
+ 0, 0, 770, 773, 766, 649, 0, 3213, 372, 0,
+ 1505, 1886, 3647, 0, 3648, 3649, 3650, 3651, 3652, 372,
+ 372, 1244, 0, 898, 1046, 1047, 1048, 1045, 1044, 641,
+ 0, 1050, 1009, 729, 0, 602, 372, 0, 1010, 979,
+ 971, 978, 967, 970, 972, 0, 974, 975, 969, 966,
+ 968, 2255, 2092, 2095, 2106, 0, 2180, 2211, 0, 0,
+ 2050, 0, 0, 0, 2101, 2663, 0, 0, 2142, 2143,
+ 0, 2139, 2140, 2135, 2136, 2117, 0, 2481, 2122, 0,
+ 0, 0, 2015, 2013, 2012, 1997, 0, 0, 1995, 1991,
+ 0, 2020, 2144, 0, 2160, 2157, 2177, 2211, 1717, 1716,
+ 1715, 1714, 1804, 1800, 1802, 0, 2668, 0, 1807, 1814,
+ 0, 1796, 0, 1830, 1826, 0, 1827, 0, 0, 1828,
+ 0, 0, 1798, 0, 1814, 0, 1854, 1725, 0, 2149,
+ 2299, 2149, 3406, 0, 3409, 3407, 3408, 3412, 245, 1703,
+ 0, 1746, 0, 3662, 1597, 0, 1598, 1604, 0, 0,
+ 0, 0, 0, 1640, 1633, 3339, 1142, 1150, 0, 0,
+ 0, 529, 0, 544, 0, 0, 0, 1092, 1101, 1091,
+ 0, 544, 544, 806, 805, 808, 803, 807, 1516, 0,
+ 680, 681, 684, 1287, 0, 1348, 1296, 0, 1629, 311,
+ 482, 318, 0, 0, 0, 313, 393, 395, 314, 317,
+ 321, 374, 334, 327, 0, 0, 0, 1283, 0, 1346,
+ 1292, 1319, 1370, 1266, 1330, 0, 0, 870, 0, 0,
+ 0, 0, 1371, 1267, 1331, 0, 0, 0, 0, 0,
+ 1629, 0, 0, 0, 0, 0, 0, 0, 0, 1525,
+ 0, 0, 373, 859, 858, 374, 407, 1310, 0, 2068,
+ 0, 955, 960, 961, 959, 0, 413, 421, 424, 0,
+ 0, 1235, 1235, 0, 0, 491, 508, 0, 589, 548,
+ 589, 0, 0, 0, 0, 0, 699, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 744, 743, 195,
+ 0, 470, 0, 698, 0, 856, 0, 0, 0, 0,
+ 472, 0, 0, 3656, 471, 0, 0, 483, 0, 581,
+ 570, 578, 0, 0, 600, 0, 1469, 0, 606, 0,
+ 0, 0, 800, 1183, 0, 1197, 0, 1138, 1108, 1192,
+ 0, 1708, 1857, 0, 0, 0, 0, 783, 0, 653,
+ 3239, 3243, 1236, 1503, 3655, 888, 890, 736, 1053, 0,
+ 1057, 1061, 973, 2240, 2182, 2047, 0, 2243, 2242, 2246,
+ 0, 2112, 0, 2113, 2141, 2119, 2123, 0, 2120, 2121,
+ 2016, 2014, 1999, 2146, 0, 1731, 2179, 1850, 0, 1853,
+ 0, 0, 1806, 0, 0, 1808, 0, 0, 1810, 1812,
+ 0, 0, 0, 0, 0, 0, 2288, 0, 1776, 0,
+ 1686, 1685, 3411, 3410, 0, 1706, 2203, 1859, 1612, 0,
+ 0, 0, 1087, 0, 0, 1641, 1642, 1637, 1054, 0,
+ 372, 1099, 0, 1195, 550, 2492, 551, 1098, 1100, 1104,
+ 0, 1195, 1195, 676, 0, 0, 290, 0, 316, 326,
+ 376, 388, 0, 1629, 0, 0, 868, 877, 877, 865,
+ 0, 0, 884, 1269, 740, 0, 553, 0, 285, 1295,
+ 1289, 0, 0, 0, 1527, 1528, 0, 0, 0, 0,
+ 0, 1318, 372, 1291, 963, 0, 444, 451, 425, 429,
+ 1519, 0, 1519, 0, 426, 430, 1519, 1519, 423, 1857,
+ 440, 1235, 0, 1232, 1231, 537, 617, 0, 0, 498,
+ 0, 559, 497, 0, 812, 0, 0, 697, 0, 472,
+ 568, 0, 526, 517, 518, 519, 520, 522, 521, 523,
+ 524, 525, 515, 514, 0, 698, 874, 383, 1476, 738,
+ 0, 0, 711, 0, 698, 0, 1592, 603, 570, 472,
+ 568, 1589, 476, 490, 0, 585, 578, 581, 0, 582,
+ 0, 586, 0, 0, 0, 603, 1529, 1086, 0, 0,
+ 801, 1196, 1157, 0, 0, 1186, 1190, 1191, 0, 0,
+ 0, 0, 1239, 777, 778, 772, 774, 0, 785, 789,
+ 648, 0, 0, 652, 643, 0, 3241, 698, 372, 0,
+ 2048, 0, 0, 2125, 2124, 0, 2164, 1855, 0, 0,
+ 1849, 0, 0, 1879, 0, 0, 0, 1815, 1833, 0,
+ 1811, 1809, 0, 1822, 0, 1824, 2376, 2638, 2545, 0,
+ 1763, 1765, 1768, 1770, 1769, 1771, 1767, 2148, 2150, 0,
+ 0, 0, 0, 1697, 0, 1610, 1857, 0, 1607, 0,
+ 1650, 0, 1643, 1068, 0, 1069, 1093, 0, 589, 0,
+ 1104, 1107, 539, 589, 589, 1297, 0, 617, 0, 329,
+ 0, 298, 1293, 0, 0, 879, 879, 0, 0, 0,
+ 0, 0, 0, 401, 0, 0, 1521, 0, 1522, 1523,
+ 1526, 409, 422, 0, 449, 0, 447, 446, 448, 0,
+ 437, 0, 0, 0, 0, 0, 0, 412, 1230, 1234,
+ 1233, 0, 499, 0, 501, 0, 0, 545, 546, 547,
+ 0, 503, 555, 556, 809, 0, 814, 0, 700, 0,
+ 0, 698, 567, 722, 0, 0, 0, 1470, 0, 0,
+ 592, 732, 1476, 603, 3206, 578, 0, 570, 484, 0,
+ 587, 581, 585, 583, 584, 0, 1473, 0, 605, 0,
+ 1095, 799, 0, 1187, 1198, 1193, 1188, 1432, 0, 0,
+ 775, 780, 779, 1519, 784, 0, 0, 0, 651, 650,
+ 3244, 3246, 3245, 0, 726, 1011, 2239, 2128, 2114, 2126,
+ 2159, 0, 0, 0, 0, 1848, 1851, 0, 1882, 0,
+ 0, 0, 0, 1868, 0, 1813, 0, 0, 1823, 0,
+ 0, 0, 1772, 0, 0, 0, 0, 0, 0, 1599,
+ 1609, 1088, 0, 0, 0, 1650, 0, 0, 554, 0,
+ 1107, 1089, 548, 801, 801, 1629, 323, 375, 0, 0,
+ 0, 875, 878, 866, 867, 886, 885, 742, 1629, 0,
+ 397, 396, 0, 400, 0, 445, 454, 0, 452, 427,
+ 432, 0, 436, 434, 433, 428, 431, 536, 0, 0,
+ 0, 0, 0, 0, 557, 0, 558, 0, 813, 0,
+ 0, 0, 724, 873, 0, 0, 470, 698, 1471, 3656,
+ 581, 570, 578, 0, 0, 572, 1099, 1099, 457, 585,
+ 587, 1474, 1475, 0, 0, 506, 0, 1109, 1431, 1430,
+ 1708, 0, 0, 0, 786, 787, 782, 0, 0, 3242,
+ 2626, 0, 2599, 0, 2176, 2165, 2176, 2176, 2156, 0,
+ 0, 1880, 1881, 1866, 0, 0, 1870, 1820, 1846, 0,
+ 0, 0, 1766, 2151, 2152, 0, 0, 0, 1857, 1649,
+ 0, 0, 372, 543, 801, 552, 1090, 559, 532, 530,
+ 291, 1629, 869, 0, 286, 0, 402, 1524, 450, 0,
+ 435, 616, 502, 588, 564, 0, 563, 0, 561, 560,
+ 810, 815, 0, 698, 863, 1476, 712, 1590, 585, 578,
+ 581, 0, 571, 0, 1101, 1101, 587, 455, 0, 0,
+ 383, 0, 1414, 1708, 1413, 1415, 1423, 1420, 1422, 1421,
+ 1419, 0, 1242, 1243, 776, 781, 0, 0, 0, 2169,
+ 2168, 2167, 2171, 2170, 0, 2163, 2161, 2162, 1852, 0,
+ 1869, 1872, 0, 0, 1878, 1871, 1873, 0, 0, 1832,
+ 0, 1844, 1774, 0, 1773, 0, 0, 0, 1606, 1652,
+ 0, 0, 1644, 1645, 0, 1070, 534, 801, 299, 876,
+ 0, 453, 562, 539, 539, 698, 723, 1472, 587, 581,
+ 585, 1099, 573, 1100, 575, 574, 459, 1095, 1096, 0,
+ 587, 789, 0, 1424, 1418, 1684, 1671, 0, 0, 788,
+ 0, 0, 0, 2173, 0, 2174, 0, 1876, 1877, 1874,
+ 1875, 1819, 0, 1775, 0, 0, 0, 0, 1647, 0,
+ 0, 0, 1646, 535, 0, 566, 565, 725, 458, 585,
+ 587, 1101, 506, 1094, 0, 1857, 0, 1416, 1708, 0,
+ 0, 794, 2166, 2172, 2175, 0, 0, 1702, 1701, 0,
+ 0, 1705, 1651, 1648, 0, 0, 0, 0, 1653, 398,
+ 587, 456, 576, 383, 1097, 1077, 0, 1417, 0, 0,
+ 0, 792, 795, 798, 796, 797, 0, 1845, 0, 0,
+ 1657, 0, 0, 0, 460, 587, 0, 0, 0, 760,
+ 0, 1867, 1731, 0, 0, 0, 0, 1857, 0, 0,
+ 0, 793, 0, 0, 1654, 1658, 0, 1655, 1078, 794,
+ 1240, 1241, 0, 1704, 0, 0, 0, 761, 1656
+};
+
+ /* YYPGOTO[NTERM-NUM]. */
+static const int yypgoto[] =
+{
+ -6048, -6048, 4702, -753, -6048, -6048, -1251, -1618, 2964, -2751,
+ -6048, -6048, -6048, 1330, -6048, -6048, -6048, -6048, 3788, -6048,
+ 1638, -3279, -6048, -6048, 23, 3749, -1783, 16, 3296, 1272,
+ -6048, -1358, -6048, -6048, -954, -71, -6048, 3751, 325, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, -6048, -1229, 1752, -6048,
+ 1842, 1089, -1382, -3195, -6048, -6048, -1966, -4173, -6048, 356,
+ -6048, 384, -5188, -1244, -6048, -6048, -6048, 1736, -6048, -6048,
+ -6048, 1684, 881, -655, -6048, -6048, -6048, -6048, -6048, -6048,
+ -1073, -6048, -6048, -1347, -62, -963, -3369, -4688, -6048, -6048,
+ 217, -692, -1929, -6048, 403, -6048, -5024, -6048, -287, -3090,
+ -2580, -6048, -6048, -6048, -662, -1891, 1188, -6048, -1057, -1578,
+ 1527, -2567, -1200, -6048, -541, -3982, -1323, -1088, -1085, -1234,
+ -4714, -5244, -6048, -6048, -1352, -4190, -5552, -5754, -5098, -5130,
+ 1193, -6048, -315, 224, -6048, -4047, -4740, -56, 185, -6048,
+ -54, -52, -6048, 201, -1022, -1317, -2022, -6048, -1082, -6048,
+ -6048, -6048, -3858, -6048, -6048, -6048, 58, -6048, -6048, -6048,
+ -6048, 245, -6048, -6048, -6048, -6048, -6048, -6048, -2889, 1712,
+ 1715, -6048, -4425, -6048, -1281, -6048, 415, -3889, 1114, -6048,
+ -6048, 884, 3816, 240, -6048, -6048, -6048, -6048, -6048, -6048,
+ -2131, -6048, -6048, -6048, -6048, -290, -634, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -51, -6048, 846, 175, -6048, -6048,
+ -915, -6048, -6048, -6048, -6048, -6048, -6048, -1410, -5551, -1527,
+ -1507, -6048, -3913, -6048, -6048, -6048, -608, -6048, -6048, -6048,
+ -6048, -6048, -1252, -6048, 939, -4525, -6048, -6048, 223, -6048,
+ -6048, -6048, -6048, -6048, -1208, -551, 2975, -6048, -779, -994,
+ -6048, -6048, -6048, -547, -6048, -6048, -6048, -6048, -6048, -773,
+ -1649, 5041, 4247, -1494, 6420, -1233, -858, -6048, -6048, -6048,
+ -3004, -6048, -6048, -4616, -6048, 5022, 90, -725, -49, -6048,
+ -166, -36, 3576, -6048, 790, -1582, -3556, 169, -727, -6048,
+ -6048, -6048, -3514, -6048, -6048, -6048, -6048, -4457, -48, -6048,
+ -1066, -6048, -4745, -5557, -4978, -4534, -1375, -6048, -4753, -4415,
+ -5467, -4456, -6048, 1754, -6048, -6048, -833, -913, 2961, -6048,
+ -1906, 2099, -1863, -6048, -2989, 241, 1296, 2973, -3657, -809,
+ 2954, -3419, -6048, -1002, 888, -6048, -619, -4197, -6048, -6048,
+ -6048, -3083, -853, -6048, -6048, 1427, -822, -6048, -6048, -6048,
+ -6048, -948, 2903, -886, -6048, -6048, 4207, -6048, -5303, -6048,
+ 4173, -6048, -6048, -6048, -6048, 2807, 2808, -6048, -6048, -1902,
+ 1057, -6048, -1151, -6048, -6048, 1855, 455, -6048, -6048, -6048,
+ -6048, 1143, -39, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -1175, -1394, -6048, -6048, -4911, -6048, -6048, -6048, -6048, -6048,
+ 2124, -1300, -1097, 4060, 582, -47, -5701, -6048, -6048, -1510,
+ -6048, 3294, -6048, -6048, -6048, -6048, -6048, 242, 239, -6048,
+ -6048, -6048, -6048, -4304, -6048, -6048, -5344, -6048, -6048, 1832,
+ -6048, -6048, 1189, -63, 3087, -6048, -6048, -6048, -163, -6048,
+ -6048, -1359, 2232, -6048, -2753, -6048, -876, -6048, -6048, -2313,
+ -46, -4723, -70, -6048, -6048, -5433, -1403, 42, -6048, -6048,
+ -4368, -69, -6048, -6048, -6048, -6048, -5440, -6048, -67, -5180,
+ 608, -3684, -6048, -66, -6048, -677, -1074, -6048, -6048, -6048,
+ -4013, -45, -1, 3664, 1666, -41, 1955, -239, -184, -177,
+ -72, -7, 3437, -6048, -6048, -6048, -4707, 3485, -6048, -172,
+ -1176, -6048, -6048, -1190, -335, -6048, 1420, -951, 2211, 3431,
+ 3420, -6048, 1417, 2249, -2788, -2786, -6048, 692, -1168, -1040,
+ -6048, -6048, -6048, -6048, 89, -947, 2235, -6048, 3444, -6048,
+ -6048, -6048, -2714, -3755, -3740, 708, -4350, -4297, -6048, 126,
+ 108, -1731, -617, -197, -1894, -1122, 1599, -6048, -6048, 714,
+ -826, -6048, -6048, -820, -3719, 643, -6048, -5369, -3202, 722,
+ -1345, -1143, -6048, -1243, -6048, -1007, 5528, -2106, -1446, -6048,
+ -6048, -1413, 13873, -6048, -6048, -6048, 18858, 22292, -6048, -6048,
+ 23514, 26621, -6048, -1249, 32186, 12385, -1422, -1415, -1662, 31851,
+ -2025, -1663, -83, -6048, -3341, -3182, -6048, -6048, -6048, -576,
+ 777, 125, -6048, -5383, -4806, -6048, -6048, -345, -6048, -1017,
+ -6048, -1015, -6048, -6048, -6048, -2948, -4927, -3076, 2366, -6048,
+ -6048, -6048, -860, -6048, 33885, -3610, -6048, -1162, -1348, -2020,
+ 2840, -3225, -2301, -6048, -6048, -6048, -3512, -6048, -6048, -6048,
+ -862, 1528, -6048, -6048, 1630, -6048, -6048, -6048, -1324, 1901,
+ -1127, -3501, 1533, -6048, -1129, 2371, -1136, 31209, -938, 31753,
+ -1730, -6048, 639, -6047, 250, -118, -776, 212, -997, -735,
+ -6048, 10783, 9651, 8129, -4048, -6048, -6048, -6048, -44, -6048,
+ -6048, -6048, -6048, 4618, 960, -6048, 3846, -6048, 1791, 3054,
+ -6048, -6048, 2228, -987, -42, -6048, -969, -6048, -133, -6048,
+ -6048, -6048, -6048, 329, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, -6048, -6048, 3455, -6048, -6048, -1645, -6048, -6048, -6048,
+ -6048, -6048, 4934, -357, -6048, 4280, -355, -6048, -6048, -6048,
+ -6048, -6048, -6048, -6048, -6048, -6048, 3465, 2263, -6048, 4049,
+ -6048, -6048, -6048, 39, 3700, -6048, -6048, -6048, -621, -883,
+ 4072, 4076, 2223, -6048, -6048, -6048, -6048, -6048, -6048, -6048,
+ -6048, 2244, -6048, -6048, 1509, -2830, 2247, -6048, -6048, 694,
+ -6048, -6048, 158, -6048, 699, -6048, 3578, -6048, -6048, -6048,
+ 743, -6048, -6048, -6048, -546, 24213, -59, 15, 18, 409,
+ -6048, 19170, 9325, -80, 3491, 12, 14095, 27995, -101, -6048,
+ 4936, 2251, 1756, -1116, -6048, 133, 2976, 10121, -6048, -1115,
+ 10, -2, -1112, 3690, -705, -1328, 3782, -778, -2282, -6048,
+ 5366, -6048, -4109, -5542, -1150, -292, 4267, -1354
+};
+
+ /* YYDEFGOTO[NTERM-NUM]. */
+static const yytype_int16 yydefgoto[] =
+{
+ 0, 1, 248, 249, 250, 251, 2059, 3456, 3310, 4271,
+ 4272, 252, 253, 2055, 254, 255, 256, 257, 1973, 258,
+ 1449, 2227, 3470, 259, 3148, 1188, 1189, 1190, 2988, 2989,
+ 3401, 2990, 2977, 1797, 2173, 1995, 1153, 1154, 1954, 1996,
+ 261, 262, 1791, 2969, 263, 264, 265, 2026, 2116, 2027,
+ 2028, 1967, 2279, 5390, 6179, 4061, 3267, 4321, 4062, 4063,
+ 4733, 4734, 4822, 6193, 6194, 266, 2132, 2133, 267, 268,
+ 3438, 4237, 4875, 5776, 5777, 6008, 968, 5413, 5414, 5995,
+ 5996, 6207, 6367, 6368, 3471, 999, 4316, 4959, 4262, 5485,
+ 4263, 5486, 4264, 5487, 4723, 4724, 4248, 4906, 4907, 2475,
+ 5426, 4908, 4265, 5445, 6042, 4266, 3167, 6222, 3505, 2400,
+ 2398, 5943, 6021, 5245, 5246, 4796, 6231, 6232, 6233, 6488,
+ 5447, 5491, 5492, 6404, 6405, 4319, 4965, 5498, 5834, 6019,
+ 3959, 270, 4290, 4291, 271, 2249, 4440, 1081, 3508, 1000,
+ 1082, 3472, 275, 3498, 6224, 3499, 2085, 3324, 4888, 4418,
+ 276, 1476, 4698, 5859, 6103, 6104, 1066, 277, 2235, 278,
+ 279, 3451, 4255, 280, 3184, 3976, 281, 282, 3995, 3996,
+ 3997, 283, 4916, 5795, 2029, 4050, 4051, 4052, 4053, 4754,
+ 284, 2230, 3479, 3480, 285, 286, 287, 3643, 3644, 288,
+ 3387, 289, 290, 291, 292, 4790, 5347, 5461, 4092, 4278,
+ 4932, 5459, 293, 4241, 3473, 3526, 4354, 4355, 5857, 6095,
+ 6096, 6097, 6283, 6524, 6099, 6285, 6426, 6287, 5436, 6670,
+ 6671, 6080, 4687, 5259, 295, 5437, 5438, 6237, 296, 3182,
+ 297, 298, 2204, 3444, 3445, 4889, 3515, 4328, 4329, 4945,
+ 4946, 299, 4179, 300, 5323, 5324, 1001, 6245, 6185, 6353,
+ 301, 302, 5327, 5328, 303, 304, 305, 306, 307, 1067,
+ 1412, 1413, 1069, 1577, 1578, 3930, 1522, 308, 3000, 309,
+ 4217, 310, 1672, 5560, 311, 1106, 1604, 1605, 3474, 313,
+ 1118, 3662, 1120, 3628, 3629, 2416, 4422, 4423, 5049, 314,
+ 315, 3640, 3665, 316, 1960, 3158, 3159, 5240, 3475, 1002,
+ 1657, 3512, 3954, 5931, 5687, 5932, 6415, 6589, 5688, 5949,
+ 3851, 4626, 318, 1003, 2001, 3223, 1545, 1546, 3519, 4334,
+ 3126, 3127, 2156, 4986, 3129, 4336, 3130, 1933, 3131, 1494,
+ 1495, 4342, 4343, 4344, 4345, 4982, 4992, 4993, 5851, 6088,
+ 4989, 2223, 5845, 5846, 319, 1998, 3220, 320, 321, 322,
+ 2038, 1336, 1555, 1556, 323, 1028, 1029, 324, 6013, 325,
+ 1497, 326, 5855, 327, 328, 1142, 1143, 329, 330, 3237,
+ 4736, 331, 1999, 332, 333, 4086, 4087, 5339, 334, 335,
+ 336, 3296, 3297, 337, 338, 339, 340, 341, 6514, 6592,
+ 6593, 6594, 5000, 6420, 342, 1648, 343, 344, 345, 346,
+ 947, 1378, 1379, 1380, 1297, 3476, 5836, 348, 349, 1955,
+ 1956, 1957, 1958, 3153, 350, 351, 352, 4366, 4367, 353,
+ 354, 355, 356, 2207, 357, 358, 5986, 359, 360, 2177,
+ 361, 362, 1386, 1387, 1388, 1389, 2175, 3839, 962, 1209,
+ 1824, 1830, 1834, 1835, 1836, 364, 1084, 365, 1652, 1417,
+ 1085, 1597, 1086, 3059, 3881, 4641, 4642, 4643, 4646, 5670,
+ 5212, 1087, 3877, 369, 2423, 3649, 3652, 3873, 1088, 3887,
+ 3888, 3889, 4650, 1089, 5935, 5936, 6334, 6562, 6563, 6622,
+ 6658, 1090, 1108, 1486, 3533, 1091, 1745, 375, 376, 377,
+ 1218, 1212, 1213, 3844, 5925, 6153, 379, 2946, 3813, 1127,
+ 1840, 1172, 1173, 1226, 3411, 3025, 3026, 3050, 3051, 1849,
+ 1850, 3038, 3042, 3043, 3863, 3857, 3031, 5194, 6140, 6141,
+ 6142, 6143, 6144, 6145, 5649, 3046, 3047, 1852, 1853, 1854,
+ 3055, 380, 3817, 4581, 4582, 4583, 5171, 5172, 6549, 5186,
+ 5182, 5634, 5908, 4584, 1199, 1642, 1861, 5642, 6551, 4585,
+ 5897, 5898, 6120, 5190, 4590, 4637, 4304, 4305, 4306, 4586,
+ 6312, 6313, 6545, 6546, 6122, 6123, 3132, 2309, 1524, 1746,
+ 1525, 2317, 1747, 2293, 1527, 1748, 1749, 1750, 1530, 1751,
+ 1752, 1753, 1533, 2285, 1754, 1755, 2303, 1259, 1260, 1825,
+ 6124, 1757, 1758, 1759, 4587, 1760, 5126, 5600, 5586, 3740,
+ 3741, 2985, 5122, 4525, 5116, 2941, 3803, 5920, 6147, 6148,
+ 4565, 5150, 5614, 5895, 6304, 6434, 6435, 6535, 1761, 1762,
+ 1763, 3800, 2934, 1339, 1764, 4891, 2936, 3731, 3709, 2159,
+ 3710, 2429, 2449, 3681, 3696, 3697, 3777, 3711, 3719, 3724,
+ 3732, 3764, 1765, 3683, 3684, 4465, 2451, 1766, 1384, 2162,
+ 1385, 2954, 3759, 1781, 1767, 1768, 2417, 1200, 5904, 792,
+ 2164, 1124, 1769, 1770, 1771, 1883, 735, 1548, 1549, 737,
+ 2937, 776, 777, 950, 888, 2938, 2, 70, 1092, 4313,
+ 5819, 384, 385, 1005, 1006, 1007, 1478, 1479, 2264, 2267,
+ 1888, 3094, 741, 742, 793, 5527, 5860, 6106, 1075, 386,
+ 387, 388, 389, 390, 1884, 3090, 1261, 71, 79, 72,
+ 1262, 427, 428, 3071, 391, 905, 392, 1864, 1241, 4656,
+ 393, 394, 395, 396, 397, 1072, 398, 1243, 399, 1244,
+ 400, 401, 402, 403, 1251, 404, 1866, 1867, 5227, 1868,
+ 405, 406, 779, 780, 1595, 407, 408, 1278, 2367, 1280,
+ 1624, 1894, 1908, 1909, 1910, 409, 749, 410, 411, 412,
+ 1900, 1901, 413, 2962, 2963, 3099, 2964, 414, 3903, 3904,
+ 415, 4608, 4609, 5655, 4610, 416, 2958, 417, 418, 1203,
+ 4661, 419, 901, 420, 1292, 781, 782, 783, 952, 891,
+ 1158, 784, 954, 4054, 893, 894, 785, 786, 787, 2392,
+ 73, 3911, 2393, 1773, 794, 1774, 2952, 1775, 1776, 1777,
+ 1778, 1779, 1780, 789, 1268, 1587, 1588, 3912, 1590, 77,
+ 1591, 424, 4383, 2368, 1625, 3594, 2378, 2379
+};
+
+ /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
+ positive, shift that token. If negative, reduce the rule whose
+ number is the opposite. If YYTABLE_NINF, syntax error. */
+static const yytype_int16 yytable[] =
+{
+ 75, 378, 260, 367, 368, 1310, 370, 371, 1217, 896,
+ 363, 269, 74, 1343, 421, 1016, 1348, 272, 1021, 273,
+ 421, 274, 294, 1198, 312, 317, 347, 366, 372, 383,
+ 892, 2172, 373, 2158, 1443, 2084, 1238, 1337, 1239, 1855,
+ 1164, 1227, 1792, 1110, 1782, 1814, 778, 1841, 1826, 1843,
+ 948, 421, 2397, 1561, 1202, 896, 2325, 3261, 1633, 1634,
+ 1635, 2166, 3337, 1338, 1639, 1110, 1133, 1574, 1939, 3128,
+ 3166, 2299, 2089, 1488, 1819, 3958, 892, 1658, 3232, 2150,
+ 1820, 745, 3591, 778, 2440, 422, 4261, 378, 1806, 791,
+ 1276, 422, 2289, 2290, 3224, 2232, 1083, 421, 2305, 796,
+ 1298, 4346, 2298, 4592, 1160, 1008, 1015, 4445, 4725, 1020,
+ 3244, 3493, 1160, 1598, 1160, 1015, 3233, 3655, 2137, 4797,
+ 2315, 4635, 1338, 2083, 4944, 889, 4426, 896, 890, 1119,
+ 1580, 3823, 2115, 3405, 4970, 959, 4704, 3128, 3923, 3925,
+ 2307, 4293, 2142, 1314, 4648, 1009, 3680, 5247, 892, 4995,
+ 1018, 1030, 1346, 3367, 3368, 3298, 3298, 1015, 4749, 3298,
+ 4751, 1911, 1913, 2321, 945, 1916, 1368, 2030, 5203, 421,
+ 1165, 889, 4176, 2332, 890, 1279, 1882, 2335, 2205, 1125,
+ 944, 2338, 2210, 2340, 3045, 1338, 2002, 2214, 4283, 2348,
+ 1411, 2217, 2048, 3547, 1229, 2354, 2224, 2065, 2357, 4892,
+ 1221, 1230, 4649, 1600, 1438, 1571, 2241, 3215, 3138, 2244,
+ 1447, 3363, 3078, 3080, 3081, 1559, 743, 5484, 1563, 3581,
+ 5242, 1152, 1460, 1623, 3072, 3072, 1390, 1799, 5505, 5501,
+ 5444, 1195, 5929, 5483, 5307, 5185, 1187, 2031, 3394, 1215,
+ 4624, 3822, 6025, 889, 5901, 4533, 890, 5494, 2283, 3837,
+ 5831, 1107, 69, 3866, 2286, 2287, 5799, 3869, 5710, 2384,
+ 2363, 4549, 4665, 3215, 4954, 2297, 1819, 3845, 5956, 4144,
+ 5018, 5689, 5493, 1107, 5913, 1848, 5915, 6065, 5218, 1851,
+ 3215, 6061, 2289, 2290, 6078, 1890, 1891, 5183, 1271, 5188,
+ 4660, 39, 1489, 1589, 1111, 736, 1903, -2292, -1939, 5282,
+ 4294, 2960, 2298, 2305, 2316, 5830, 1482, 2174, 1997, 5591,
+ 5978, 6260, 378, 260, 367, 368, 1111, 370, 371, 4489,
+ 2240, 363, 269, -1906, 3195, -1919, 966, 3298, 272, -1944,
+ 273, -1934, 274, 294, 421, 312, 317, 347, 366, 372,
+ 383, 1997, -3510, 373, 2998, 1390, 1997, 6247, 1969, 3262,
+ 3379, -3510, -3510, 430, 430, 2390, 39, 1293, 38, 39,
+ 3374, 1674, 1675, 1374, 40, 39, 2197, -1947, 1903, 421,
+ -2291, 1610, -3511, 1296, -3508, 1615, 1616, 1617, -1947, 39,
+ 4280, -3511, -3511, -3508, -3508, 1628, 6654, 1267, -3507, 4654,
+ 39, 1893, 1896, 39, 2276, 3490, 2276, -3507, -3507, 2276,
+ 6184, 2254, 4980, 1796, 5838, 422, 1390, 3757, 426, 1207,
+ 5696, 1109, 430, 5988, 5989, 430, 4220, 2421, 4223, 4224,
+ 38, 39, 3970, 4228, 4229, 4230, 40, 4232, 4233, 4234,
+ 1621, 4990, 430, 1109, 2366, 2286, 2287, 38, 2276, 4201,
+ 422, 3664, 3150, 40, 3716, 3990, 1489, 2369, 5562, 5563,
+ 5564, 5508, 5566, 5567, 5568, 5569, 5570, -2474, -2679, 4489,
+ 3664, 2297, 1970, 1375, 1469, 5827, 430, -2679, -2679, 430,
+ 1785, 38, 39, 1390, 1674, 1675, 2496, 40, 3022, 6014,
+ 40, 2219, 6171, 3235, 2276, 1390, 4430, 2184, 5175, 4239,
+ 5320, 2189, 4432, 2190, 3361, 2166, 3168, 3235, 3172, 3354,
+ 2496, 3616, 3032, 6418, 3757, 2276, 2150, 3005, 6410, 35,
+ 5373, 3454, 2474, 37, 1376, 6262, 39, 2188, -1760, 4489,
+ 6706, 3327, 5434, 6181, 3169, 5475, 2311, -154, 3991, 35,
+ 430, 3005, -154, 37, 3459, 38, 39, 3235, -154, 3871,
+ 3007, 40, -2186, 1338, 964, 6134, 1170, 3033, 1295, -2186,
+ 1239, 6398, 3210, 2276, 1231, 3235, 1809, 1667, 6320, 4114,
+ 2333, 4189, 3848, 5176, 3007, 1073, 4816, 2127, 6655, 6650,
+ 3263, 2496, 1377, 3235, 2496, 2276, 3953, 3797, 3491, 960,
+ 4589, 2067, 2490, 4639, 3798, 2179, 6066, -2205, 2432, 6620,
+ 115, 4443, 1308, 5003, -2205, 3235, 5177, 2999, 5004, 1650,
+ 4759, 1253, 3005, 5686, 5321, 3005, 3465, 3, 119, 3645,
+ 3235, 5178, 4760, 3235, 3160, 1274, 1275, 2947, 2491, 4640,
+ 2068, 5179, 3816, 3690, 3321, 4941, 3495, 4651, 946, 961,
+ 1810, 2947, 6693, 3161, 4294, 3007, -1086, 1204, 3007, 4114,
+ 2418, 1232, 1663, 6053, 906, 2950, 3872, 3211, 2975, 5180,
+ 3617, 1171, 3849, 3460, 1489, 6506, 2431, 1008, 3035, 3328,
+ 6022, 2994, 2995, 3329, 1254, 6621, 6656, 2312, 35, 4463,
+ 2441, 5435, 37, 2203, 3957, 2128, 5906, 3170, 2166, 2277,
+ 1233, 2277, 2460, 3618, 2277, 6419, 5374, 2202, 907, 3334,
+ -1760, -443, 3162, 4240, 4294, 3447, 3619, 1009, 3691, 1971,
+ 3065, -2474, 4294, 6340, 3455, 3994, 1015, 1015, 6218, 6409,
+ 5322, 4892, 3163, 4431, 6656, 6381, 1663, 2444, 3036, 4433,
+ 3380, 1434, 2978, 2277, 2422, 1623, 2373, 2991, 2991, 4991,
+ 1623, 3620, 5697, 2037, 3264, 3971, 1208, 5341, 3646, 1904,
+ 1361, 2284, 5181, 5823, 6578, 1512, 2149, 3200, 1925, 3381,
+ 3492, 3262, 4881, 1267, 2422, 1669, 5453, 1265, 4107, 3375,
+ 4251, 3692, 1972, 3265, 3693, 2323, 3758, 2976, 6657, 2277,
+ 3262, 5252, 949, 967, 4981, -2474, 4873, 4874, 1272, 1256,
+ 902, 1022, 903, 2203, 5048, 4202, 5884, -2474, 3266, 1382,
+ 2277, -2292, -1939, 1383, 6577, 1474, 3676, 5502, 2391, 1899,
+ 896, 3304, 4504, 3403, 3404, 3276, 3717, 2961, 2362, 3342,
+ 5349, 1904, 4108, 5185, 6255, 3738, 5353, 2288, 3612, 2292,
+ 3362, 1284, 2300, -1944, 3173, -1934, 6630, 3260, 3332, 3554,
+ 5907, 3335, 1273, 2300, 3393, 2278, -3510, 2306, 2277, 5168,
+ 2320, 1217, 421, 2301, 1905, 1906, 421, 2973, 6498, 3402,
+ 2493, 3355, 3356, 6364, 2301, 5674, 6508, 6497, 3583, 2948,
+ 2277, 2302, 3164, 4554, -2291, 5622, -3511, 5624, -3508, 1234,
+ 4252, 4109, 2304, 3828, 3999, 6660, 3694, 6527, 2374, 2331,
+ 1484, 2376, -3507, 3277, 2380, 1309, 2382, 6678, 1638, 2385,
+ 2313, 3018, 4817, 2389, 1856, 378, 3202, 1418, 1419, -2186,
+ 1420, 1421, 3095, 3559, 3056, 6470, 3209, 5653, 3057, 3622,
+ 4075, 5534, 5535, 5536, 5537, 5538, 889, 422, 6474, 890,
+ 1602, 3637, 1638, 1880, 1881, 2353, 1422, 1651, 4892, 906,
+ 1641, 5061, 4854, 4667, 3799, 4668, 1489, 3262, 6439, 4501,
+ 4502, 4503, 4504, 3565, -2205, 3647, 2356, 5269, 6580, 5872,
+ 5312, 3572, -2679, 4651, 3245, 5454, 4942, 1905, 1906, 2933,
+ 1104, 1105, 1415, 6166, 3894, 3648, 5416, 5080, 3410, 1267,
+ 3464, 1015, 3263, 907, 4942, 1603, 3165, 1609, 4110, 1614,
+ 2930, 2931, 2932, 2933, 3682, 1618, 2057, 3695, 4954, 3322,
+ 4996, 3263, 3325, 3326, 2323, 4612, 3219, 4499, 4500, 4501,
+ 4502, 4503, 4504, 4935, 3910, 1641, 5412, 378, 3914, 2058,
+ 1609, 1614, 5232, 6402, 1435, 2203, 5048, 6016, -154, -154,
+ 5415, 1880, 1881, 3602, 1382, 1490, 1030, 6629, 1383, 3605,
+ 6382, 6568, 1594, 2363, 1229, 6484, 1015, 1860, 6338, 6258,
+ 3160, 1230, 3262, 6343, 6344, 3219, 3544, 3545, -3238, 1542,
+ 5455, 6390, 2928, 2929, 2930, 2931, 2932, 2933, 4811, 4812,
+ 4253, 2121, 3219, 4813, 1023, 1136, 1489, 3866, 6401, 75,
+ 4629, 4700, 4909, 3262, 1489, 1489, 1599, 4997, 1160, 3749,
+ 2203, 74, 1160, 3436, 3878, 904, 4618, 747, 39, 2221,
+ 1098, 3364, 39, 3285, 1608, 1621, 1613, 5753, 4727, 1961,
+ 4111, 1281, 1892, 3424, 2122, 3623, 1627, 4705, 4112, 5668,
+ 3395, 4113, 1976, 2147, 1099, 6686, 2944, 4630, 3162, 4003,
+ 3990, 5754, 3283, 1024, 1621, 39, 3541, 1644, 1646, 2276,
+ 1649, 1315, 6058, 1267, -2417, 778, 3264, 5456, 3163, 3262,
+ 1347, 5792, 3468, 5216, 421, 2236, 4350, 5525, 6559, 4254,
+ 5247, 39, 6458, 1137, 1369, 3264, 6606, 6499, 3263, 6560,
+ 1808, 1025, 6408, 1026, 1668, 3265, 2126, 2166, 1637, 1927,
+ 4434, 3262, 2127, 4652, 1786, 5340, 4067, 4090, 1798, 1490,
+ 1800, 1338, 1231, 1098, 3265, 1607, 5469, 1612, 2237, 39,
+ 3266, 5588, 736, 5853, 3506, 1969, 4933, 1656, 736, 5961,
+ 3194, 2496, 1795, 3991, 1827, 3396, 1803, 1099, 3523, 3266,
+ 736, 2342, 4728, 1962, 4004, 1821, 1789, 3593, 1643, 1645,
+ 2057, 4868, 6681, 3469, 2049, 3291, 1111, -2453, 1111, 3260,
+ 1111, 3524, 1953, 4351, 3262, 4998, 1111, 1871, 1676, 429,
+ 6485, 4489, 3315, 2058, 3397, 4490, 4491, 4492, 3260, 1224,
+ 4435, 1895, 4091, 3262, 2343, 1638, 1160, 1160, 4890, 5793,
+ 3284, 1111, 1111, 3263, 3922, 3007, 3879, 3246, 1885, 1232,
+ 745, 745, -3238, 6714, 4823, 1915, 3634, 3635, 5902, 2123,
+ 2128, 3247, 896, 3248, 3677, 3679, 4160, 1914, 3164, 4631,
+ 2148, 3686, 4161, 3262, 3263, 5457, 4000, 3700, 3701, 3702,
+ 4018, 5829, 5589, 2165, 5817, 4999, 1027, 1621, 3721, 1970,
+ 1224, 6101, 6507, -2288, 3736, 1138, 6240, 6254, 5848, 1622,
+ 6486, 69, 3264, 5669, 421, 3562, 1622, 3437, 6017, 1885,
+ 5681, 4701, 6269, 6253, 212, 6268, -3238, 748, 2050, 3574,
+ 5248, 6239, 1543, 1109, 3249, 1109, 6257, 1109, 6487, 4894,
+ 4987, 3265, 3580, 1109, 1619, 1620, 1139, 1140, -2417, 1282,
+ 3263, 2491, 3340, 2238, 2019, 5458, 3624, 4705, 3858, 1928,
+ 220, 6256, 4076, 1152, 2107, 4910, 3266, 1963, 1109, 1109,
+ 3994, 2222, 4001, 2124, 5755, 4068, 4057, 1490, 6052, 4211,
+ -1906, 1111, 3263, 3525, 4294, 4216, 4897, 4294, 889, 1885,
+ 4162, 890, 3165, 2945, 1809, 743, 743, 3561, 6586, 3934,
+ 1912, 2945, 231, 4077, 2277, 3260, 1964, 3585, 1098, 4729,
+ 4730, 4801, -2417, 1321, 4493, 234, 3896, 3264, 3896, 2344,
+ 1322, 1323, 1324, 1390, 5631, 3215, 3543, 5854, 5635, 6652,
+ -696, 4058, 1099, 2054, 2129, 3571, 4494, 4352, 246, 4731,
+ 1965, -2453, 1111, 1141, 4899, 3263, 3265, 6113, 3264, 5559,
+ 3409, 4353, -2476, 6561, 3621, 3076, 3880, 2239, 3626, 3536,
+ 1338, 1338, -1906, 3633, 3263, 1622, 3636, 3337, 1810, 4809,
+ 6628, 3266, 6164, 2130, 736, 736, 3560, 3265, 6102, 3579,
+ 1663, 3029, 6635, 2983, 1623, 1872, 3599, 1234, 39, 4294,
+ 1623, 3573, 2051, 6528, 3575, 1217, 1629, 4923, 1109, 6516,
+ 979, 4819, 3266, 6399, 3263, -2453, 4495, 2131, 1966, 3707,
+ 3260, 4204, 1111, 2967, 3264, 1382, 1076, 1907, 3077, 1383,
+ 378, 1277, 6661, 2345, 2262, 5552, 2984, 5673, 35, 1222,
+ 4059, 2052, 37, 6068, 4775, 5556, 1077, 1416, 1299, 5784,
+ 1166, 3260, 5796, 3265, 4902, 6150, 3264, 1311, 6069, 3075,
+ 6602, 3110, 6684, 1239, 4163, 1311, -1672, 5515, 1311, 1109,
+ 981, 6158, 3625, 795, 4856, 2053, 3631, 3632, 3266, 3927,
+ -608, 1078, 3990, 75, 75, 3265, 75, 6697, -2313, 3030,
+ 6530, 963, -177, 5271, 2968, 74, 74, 4903, 74, 3174,
+ 3818, 4293, 6516, 4164, 2375, 1223, 2377, 1338, 1594, 2381,
+ 3266, 2383, 4335, 4904, 2386, 2387, 2388, 3260, 3835, 3264,
+ 6243, 1468, -177, 6331, 6227, 6151, 2166, 2395, 1943, 6251,
+ 3821, 4166, 5442, 5314, 3076, 3782, 6573, 4165, 3264, 1109,
+ 6603, 6067, 2424, 1256, 2425, 2426, -1906, -1672, 3265, 3260,
+ 906, 3128, 1584, 6504, 6505, 3128, 3023, 3024, 4776, 3028,
+ 1860, 3003, 1860, 1230, 1230, 3991, 1230, 3265, 6114, 1490,
+ 4167, 1299, 3675, 3266, 6642, -1675, 4892, 2299, 3264, 4924,
+ 1311, 1944, 6294, 1224, 1469, 1630, -2476, 1311, 4486, 4487,
+ 1311, 979, 3266, 4506, 907, 2269, 6209, 3077, 6211, 1136,
+ 3992, 4622, 6215, 6216, 4168, 5206, 2057, 3265, 4060, 2270,
+ 1122, 4905, 3260, 6521, 3641, 6341, 4496, 4497, 4498, 4499,
+ 4500, 4501, 4502, 4503, 4504, 897, 6604, 6516, 3502, 2058,
+ 4617, 3260, 3266, 4537, 4538, 898, 6070, 6159, 6531, 3993,
+ 1098, 992, -1759, 993, 2492, 778, 778, 5474, 3595, 1670,
+ -2476, 981, 3175, 2494, 3503, -1672, -1675, 6228, 4593, 4294,
+ 4294, 4594, 4595, 5480, 1099, 2271, 202, 2949, 1470, 997,
+ 4890, 3260, 4596, 4597, 4598, 3783, 4599, 4600, 5424, 1945,
+ 3784, 4601, 4602, 4603, -2514, 5955, 6219, 1137, 3928, 5481,
+ 3929, 3804, 1126, 3656, 6574, 3943, 5338, 212, 3502, 1490,
+ 3642, 5055, 2980, 2982, 5480, 5425, 6521, 1490, 1490, 421,
+ 421, 421, 1256, 3733, 1885, 5433, 6392, 3785, -1672, 1885,
+ 1885, 3079, 4777, 1225, 3503, 5443, 2965, 2966, 6631, 2203,
+ 5481, 1134, 6229, 220, -1113, 69, 69, 896, 69, 899,
+ 3154, 3149, 3994, 3176, -1906, 778, 3831, -468, 1160, 5429,
+ 6301, 3155, -1906, 3032, 2288, -1906, 1938, -1906, 2165, 421,
+ 5471, 4778, 5325, 5406, -1675, 2272, 35, 421, 5410, 3156,
+ 37, 2269, 6605, 2242, 6246, 231, 6261, 5207, 1374, 421,
+ 2323, 422, 422, 889, 6466, 2270, 1135, 745, 234, 1160,
+ 3087, 3088, 5905, 1252, 3078, 4779, 2243, 5909, 3033, 5977,
+ 5911, 1327, 1328, 1329, 1330, 1331, 1332, 1333, 1334, 1335,
+ 1374, 246, 3358, 2323, -1759, 3106, 3108, 1471, 3870, 5176,
+ 3382, 979, 992, 2273, 993, 6180, 3092, -1675, -1672, 247,
+ 422, 6521, 4604, 3805, 5665, 1838, 1256, 1111, 3114, 6220,
+ 1245, 3598, 1111, 1111, -1080, 1160, 1950, 3504, 1951, 1138,
+ 2218, 3734, 5177, 889, 1472, 4485, 890, 5056, 3945, 1246,
+ 3034, 3178, 1160, 1436, 3786, 1437, -468, 5637, 1253, 1247,
+ -1672, 3179, 6496, -1672, 2019, 6588, 5326, 5179, 1375, 6423,
+ 5234, 981, 5482, 900, 1953, 6542, 2086, 4890, 1885, 1953,
+ 1139, 1140, 4294, 1911, 1913, 6302, 4294, 1916, 1885, 4016,
+ 6100, 5871, 212, 4126, 1783, 5430, 1210, 3899, -2514, 3035,
+ 1375, 3301, 6457, 1473, 3305, 1474, 6424, 5811, 1982, 1475,
+ 2274, 1169, 743, 6396, 3157, 2087, 6303, 2323, 374, 1376,
+ 6614, 1254, 4717, 1299, 1255, 983, 6615, -1675, 220, 1311,
+ 1839, 2272, 2039, 1311, 3946, 1311, 3169, 1844, 6425, 6072,
+ 3717, 3717, 1844, 2323, 1109, 3717, 3128, 6073, 3383, 1109,
+ 1109, 1376, 5091, 1953, 5092, 6400, 3128, 1953, 6576, 3036,
+ 4387, 3944, -2514, 1248, 5798, 1219, 6417, 4605, 1784, -1675,
+ 231, 1885, -1675, 5285, 1885, 1885, 3341, 1377, 1196, 6584,
+ 6585, 4125, 4174, 234, 3349, 3717, 3717, 3957, 5181, 2273,
+ 6664, 736, 896, 1098, 3337, 4716, 4718, 2255, 5255, 2257,
+ 2258, 1111, 1934, 5822, 374, 2040, 246, 5286, 4169, 1377,
+ 1846, 1111, 5938, 3446, 5940, 1846, 4293, 1099, 3083, 4150,
+ 1619, 1620, 3180, 6089, 247, 2088, 4606, 4814, 6543, 6238,
+ 3614, 6281, 1249, 6544, 421, 1235, 1256, 1935, 3128, 3098,
+ 6627, 1936, 992, 4362, 993, 3105, 3107, 4683, 3614, 5310,
+ 5073, 4371, 5235, 4195, 3614, -1113, 5987, 6272, 5236, 1847,
+ 6130, 3181, 5255, 4102, 1805, 5237, 2070, 996, 4386, 2311,
+ 2218, 1242, 3463, 5809, 4211, 1937, 3084, 6282, 4392, 3085,
+ 4863, 4393, 5256, 4394, 4395, 1885, 2274, 4397, 2071, 5287,
+ 5093, 4400, 1216, 4401, 1111, 3298, 4403, 1111, 1111, -3303,
+ 5238, 4815, 6500, 4205, 4206, 4207, 6662, 1250, 889, 6416,
+ 4035, 890, 4175, 6074, 5427, 3650, 35, 3478, 1109, 4013,
+ 37, 3483, 5239, 5311, 4298, 4299, 4300, 4301, 1109, 4303,
+ 6350, 4100, 4127, 4101, 6289, 908, 4818, 4607, -1684, 2072,
+ 4130, 5693, 4267, 4133, 1253, 5257, 5256, 1257, 1929, 5258,
+ 5800, -1684, 960, 212, 4331, 965, 4037, -1684, 5033, 1601,
+ 123, 124, 3252, 3661, 1461, 3980, 8, 3984, 3985, 1070,
+ 1258, 4036, 5984, 4447, 5899, 4294, 6160, 4364, 6212, 4671,
+ 6217, 4855, 1277, 6213, 2288, 5428, 3139, 1930, 6250, 220,
+ 378, 3086, 3240, 3983, 3241, 5985, 3253, 5201, 5801, 6579,
+ 1462, 6161, 1220, 6351, -1684, 1461, 4107, 1254, 1111, 5257,
+ 2312, 1109, 5694, 5258, 1109, 1109, 2356, 4038, 5248, 1338,
+ 1655, 1931, 1167, 1228, -1684, 1076, 5204, 6590, 2073, 374,
+ 1844, 231, 1294, 5248, 6214, 1463, 1845, 3388, 5788, 5780,
+ 5790, 1462, 906, 1222, 4966, 1077, 6464, 6108, 378, 75,
+ 1418, 1419, 75, 1420, 1421, 3242, -1731, 1283, 5654, 3327,
+ 4108, 74, -1731, 3600, 74, 3601, 3977, 2057, 4368, 3603,
+ 3308, 3604, 5781, -1684, 3606, 3311, 4936, 2074, 3607, 1422,
+ 1078, 2075, -1684, 1464, 4170, 247, 907, 1822, 5205, 3908,
+ 2058, 5771, 3660, 5772, 5773, 5774, 3336, 1296, 1940, 1833,
+ 4141, 2951, 4142, 1846, 4615, 896, 4146, 1676, 1489, 1223,
+ 4489, 4820, -1500, 4268, 4490, 4491, 4492, 3252, 4171, 4109,
+ 6468, 6469, 1256, 430, 1464, 1109, 3755, 6330, 3467, -1731,
+ 2077, 5131, 3235, 4294, 40, -1730, 3484, 1941, 5175, 4012,
+ 4294, -1730, 4324, 3236, 3388, 4294, 3698, 421, 4294, 3385,
+ 430, 3253, 1847, 3391, 2092, 5087, 5088, 5089, 5090, 3639,
+ 4821, 5094, 5095, 5096, 5097, 5098, 5099, 5100, 5101, 5102,
+ 5103, 1942, 1285, 1286, 1304, 2079, 1676, 4294, -1731, 4489,
+ 6685, 6512, 189, 4490, 4491, 4492, 2222, 1224, 3346, 5175,
+ 5248, 1287, 4294, 2093, 1288, 4284, 2222, 3328, 2080, 1357,
+ 5132, 3329, 4172, 2323, 5047, 5984, 3529, 3559, -1730, 6032,
+ 4730, 2350, 4772, 5176, 2057, 1319, 5960, 3347, 2082, 5141,
+ 5142, 889, -1684, 4106, 890, 3563, 4110, 2094, 5985, 1358,
+ 4099, 1306, 3542, 2313, 2351, 4417, 4173, 2058, 3842, 5298,
+ 2356, 6566, 3550, 4488, 3551, 3398, 5177, -392, 5048, 2356,
+ 3555, 4773, 3388, 1320, 3558, 4516, 2314, -1730, 3399, -1501,
+ 5992, 5178, 3843, 6033, 5176, 202, 6034, 1363, 2300, 4689,
+ 4269, 5179, 6035, 2300, 4894, 205, -392, 212, 6093, 1372,
+ 4895, 2117, 4441, 4442, 1289, 4774, 6616, 3400, 1382, 2301,
+ 4540, 1831, 1383, 4896, 2301, 3742, 212, 5177, 3745, 5180,
+ 6036, 69, 6094, 4192, 69, 3307, 1801, 2302, 5375, 4542,
+ 6617, 4543, 5178, 220, 5392, 4494, 5984, 1290, 4591, 4270,
+ 2118, 4897, 5179, 4898, 2119, 6637, 5219, 1225, 6638, 2971,
+ 6481, 5376, 220, 4567, 3836, 4544, 1239, 5393, 1676, 5985,
+ 4739, 4489, 4741, 1373, 6623, 4490, 4491, 4492, 4111, 4294,
+ 5180, 2300, 3235, 6273, 2120, 231, 4112, 6037, 1291, 4113,
+ 2057, 5509, 5606, 3243, 1593, 430, 5004, 2060, 234, 189,
+ 6038, 6704, 2301, 6707, 231, 1381, 4416, 4666, 1079, 4899,
+ 212, 3554, 6039, 2058, 4494, 4495, 2134, 234, 4655, 2138,
+ 2304, 246, 5181, 6718, 5712, 3688, 3689, 2095, 1439, 5297,
+ 1440, 5717, 3703, 3704, -392, -392, 4706, 4900, -2284, 6513,
+ 246, 1424, 2070, 1382, 1426, 1632, 220, 1383, 4294, 5231,
+ 4613, 4952, 1431, 35, 2288, 4890, 3139, 37, 1080, 6558,
+ 6183, 38, 4735, 3748, 2071, 6187, 6188, 40, 2991, 3768,
+ 3769, 3770, 3771, 5181, 1382, 3554, 4545, 4451, 1383, 4453,
+ 4454, 4664, 4546, 5288, 4495, 5295, 5994, 35, 231, 4709,
+ 2047, 37, 2096, 1831, 212, 2064, -1672, 5899, 2166, 1676,
+ 6462, 234, 4489, 2167, 4901, 2168, 4490, 4491, 4492, 4902,
+ 1444, 2288, 5279, 1938, 4842, 2072, -607, 35, 430, 1457,
+ 4849, 37, 1465, 5607, 246, 5270, 3128, 2364, -2285, 40,
+ 220, 2365, 1466, 1382, 2097, 1632, 5248, 1383, 2295, 2296,
+ 5476, 2098, 247, 1943, 2099, 3407, 3408, 3717, 3717, 3717,
+ 3717, 4552, 4903, 3717, 3717, 3717, 3717, 3717, 3717, 3717,
+ 3717, 3717, 3717, 3068, 3069, 4767, 2956, 1382, 4904, -2292,
+ 2957, 1383, 231, 123, 124, 6081, 4494, 2372, 4448, 2168,
+ 6168, 5115, 5060, 5313, 4515, 234, 4517, 4518, 6173, 6174,
+ 2364, 4294, 5423, 2433, 3590, 2168, 1944, 5020, 5021, 5022,
+ 5023, 5024, 6040, 1477, 2073, 6041, 4459, 5532, 246, 4460,
+ 3016, 3717, 3717, 4461, 1467, 4496, 4497, 4498, 4499, 4500,
+ 4501, 4502, 4503, 4504, 4406, 1480, 247, -1425, 430, 4547,
+ -1425, 5022, 5023, 5024, 1299, 1492, 6665, 1299, 6406, 1338,
+ 4548, 2447, 374, 247, 1541, 3002, 4495, 2168, 3015, 4939,
+ 3016, -3247, 3020, 2074, 2168, -3248, 4294, 2075, 1487, 3531,
+ 3838, 3532, 421, 2288, 5675, 3139, 4905, 1496, 4672, 4673,
+ 3867, 3868, 3336, 5015, 5016, 3592, 1551, 3016, 1311, 1311,
+ 3768, 3769, 3770, 3771, 4496, 4497, 4498, 4499, 4500, 4501,
+ 4502, 4503, 4504, 1311, 1945, 4294, 1311, 3829, 6708, 1550,
+ 5020, 5021, 5022, 5023, 5024, 2100, 2077, 4494, 5025, 3947,
+ 4623, 3950, 4882, 3613, 3615, 3614, 3614, 5495, 1557, 4911,
+ 3998, 3653, 3841, 3654, 2356, 5026, 3891, 5028, 3016, 5030,
+ 4675, 1575, 421, 422, 421, 4010, 1568, 4011, 3882, 1596,
+ 2101, 4693, 1071, 4082, 2102, 4083, 4245, 5822, 4246, 960,
+ 4369, 2079, 3016, 40, 374, 1216, 1946, 4408, 896, 3614,
+ 4792, 4458, 1632, 3016, 1311, 4798, 3068, 3892, 1311, 1311,
+ 3865, 3865, 1631, 4467, 2080, 3016, 1636, 4495, 2103, 2165,
+ 1640, 4473, 1267, 3016, 4474, 2104, 3016, 5488, 4475, 1647,
+ 3016, 1947, 5248, 4335, 2082, 1948, 4508, 4294, 3016, 205,
+ 421, 1653, 4522, 422, 3016, 422, 4527, 4824, 4528, 1654,
+ 4568, 745, 4569, 1656, 4788, 1489, 4570, 4097, 4571, 1885,
+ 4752, 4757, 4753, 4758, 5250, 5251, 5998, 1915, 5254, 1949,
+ 75, 75, 4783, 1660, 4784, 4804, 3128, 1160, 4852, 1914,
+ 4784, 1661, 74, 74, 5951, 5952, 4496, 4497, 4498, 4499,
+ 4500, 4501, 4502, 4503, 4504, 4963, 4974, 4964, 4975, 1662,
+ 4978, 1950, 4979, 1951, 5011, 2495, 5012, 5013, 2496, 3016,
+ 1663, 1490, 5999, 1666, 889, 896, 5112, 890, 5113, 896,
+ -1754, -1754, 6406, 1885, 5123, 5134, 5124, 3016, 5248, 5214,
+ 5220, 5215, 5221, 1228, 5230, 1664, 3929, 6000, 1665, 3005,
+ 4064, 1671, 5417, 896, 5418, 5477, -3512, 3614, 5553, 5579,
+ 2422, 5580, 5576, 1952, 3016, 6001, 5616, 421, 3016, 6002,
+ 5677, 421, 3929, 5683, 4088, 5684, 1160, -1757, -1757, 3821,
+ 1800, 3098, 3007, 5690, 5691, 3614, 3614, 1673, 5692, 4929,
+ 3614, 6003, 1111, 1807, 6004, 421, 743, 1811, 5824, 4140,
+ 5825, 4294, 1804, 5863, 3717, 5012, 5881, 1812, 5882, 6005,
+ 1489, 5883, 1912, 3016, 6027, 6047, 6028, 3614, 6082, 6117,
+ 6083, 6118, 6127, 3559, 2356, -1758, -1758, 4496, 4497, 4498,
+ 4499, 4500, 4501, 4502, 4503, 4504, 6133, 6135, 4949, 4949,
+ 4922, 889, 4925, 1818, 890, 889, 5297, 6156, 890, 6157,
+ 1813, 4539, 896, 6202, 1823, 6203, 1111, 6242, 1800, 2970,
+ 3864, 3864, 6270, 5248, 6157, 6297, 1828, 4528, 4912, 889,
+ 4914, 1829, 890, 4088, 1831, 736, 5051, 6298, 6309, 3016,
+ 6310, 1842, 1800, 2150, 6315, 6318, 2356, 4949, 6349, 1832,
+ 3654, 4294, 1857, 5084, 421, 6510, -3512, 4294, 3915, 6006,
+ 3821, -3512, 1858, 6355, 1885, 3654, 6356, 1859, 3654, 1109,
+ 1863, 6359, 1885, 3016, 1862, 1885, 3931, 1865, 896, 5709,
+ 1873, 6360, 3935, 3016, 6436, 6437, 3938, 5111, 4943, 1907,
+ 6536, 6537, 69, 69, 6361, 6388, 6362, 6389, -3512, 4249,
+ 5067, 6443, 6447, 6444, 2356, 6448, 6463, 3016, 3614, 4186,
+ 6007, 1874, 1869, 3963, 4984, 1870, 6478, 4623, 6479, 6502,
+ 421, 6503, 6538, 6552, 4949, 3016, 1875, 1876, 889, 4292,
+ 1877, 890, 1676, 1109, 5153, 4489, 6554, 1878, 3016, 4490,
+ 4491, 4492, 6587, 6613, 6157, 6323, 4218, 4005, 4218, 1879,
+ 4218, 4218, 1886, 3012, 5522, 4218, 4218, 4218, 1887, 4218,
+ 4218, 4218, 2070, 6633, 6659, 6634, 3016, 736, 6689, 6691,
+ 6690, 6444, 6696, 6705, 5215, 3016, 5059, 6717, 5636, 6690,
+ 5639, 1889, 4294, 5592, 2071, 1917, 3058, 1111, 3061, 1918,
+ 1919, 5191, 1932, 1938, 889, 1111, 5266, 890, 1111, 4055,
+ 2000, 1974, -3509, 2003, 2006, 2005, 1217, 5042, 2037, 5289,
+ 1111, 2041, 2042, 4297, 2043, 2054, 2056, 4022, 2066, 2069,
+ 2091, 2108, 2109, 2125, 4084, 2135, 2136, 2139, 2144, 2145,
+ 4093, 2146, 2176, 5627, 2178, 2072, 2180, 2185, 4325, 2191,
+ 2196, 2199, 2206, 2201, 4103, -3512, 2209, 1489, 2211, 1489,
+ 2203, 736, 2220, 1217, 4116, 2225, 2226, -197, 2228, 2229,
+ 4121, 2231, 2233, 2234, 2245, 2252, 2256, 1676, 2260, 925,
+ 4489, 2266, 6663, 2275, 4490, 4491, 4492, 2280, 2281, 2282,
+ 4134, 2284, 4382, 5875, 2288, 2291, 4137, 374, 2292, 2294,
+ 2308, 2310, 2318, 4143, 6311, 2319, 2322, 1267, 2323, 2330,
+ 2334, 5291, 5398, 2336, 1109, 2337, 2339, 4158, 2341, 2347,
+ 2349, 2346, 1109, 2352, 2355, 1109, 2358, 2359, 2370, 2396,
+ 4183, 2430, 2436, 2445, 2073, 2438, 2439, 1109, 2446, -1910,
+ -1917, 736, 2454, 1489, 2452, 2453, 2455, 2456, 247, 2458,
+ 4494, 2459, 2460, -1908, 2461, -3512, -1911, 2462, 2463, 2464,
+ 2466, -1909, 2467, 2468, 5411, 2469, 2928, 2929, 2930, 2931,
+ 2932, 2933, 2474, 2448, 2470, 2940, 896, 1885, 4573, 4574,
+ 4575, 1217, 896, 2074, 2471, 2942, 2472, 2075, 2473, 5541,
+ 2944, 5844, 5543, 2457, 2476, 2945, 2477, 4523, 2478, 2479,
+ 2480, 2481, 3336, 4530, 2482, 2483, 2970, 2495, 2974, 2986,
+ 2496, 1621, 3001, 5403, 2996, 3019, 3021, 1845, 421, 5558,
+ 4495, 5601, 1847, 3052, 421, 3054, 3064, 3067, 3074, 1256,
+ 3082, 3089, 76, 3091, 3093, 3101, 2077, 3104, 3102, 2488,
+ 3109, 3005, 3115, 5337, 3112, -3456, 3113, -3451, -3512, 3116,
+ 3117, 3118, 3134, 3135, 3136, 2495, 3139, 3137, 2496, 3140,
+ 3141, 3142, 2497, 2498, 2499, 3143, 3144, 3145, 3146, 3152,
+ 3171, 3177, 3183, 4292, 3007, 3197, 3201, 3204, 3205, 3004,
+ 3203, 2079, 3207, 3208, 3221, 4494, 3225, 3226, 3227, 3005,
+ 3239, 3238, 889, 3254, 3257, 890, 3006, 3268, 889, 3250,
+ 1111, 890, 3258, 423, 2080, 3256, 3259, 3269, 3260, 423,
+ 3270, 3271, 3273, 746, 3272, 3278, 3292, 3282, 3288, 3289,
+ 3279, 3302, 3007, 3303, 2082, 3306, 3316, 3323, 3309, 3330,
+ 3312, 3313, 3318, 4292, 3319, 1228, 1228, 3333, 1228, 3331,
+ 423, 4292, 3338, 4377, 4380, 3339, 3359, 2019, 3348, 1676,
+ 3350, 3352, 4489, 3344, 3345, 4495, -3512, -3512, -3512, 3351,
+ 3360, 3353, 3357, 957, 1299, 3365, 3366, 1311, 1490, 1311,
+ 1311, 3376, 3377, 3406, 3765, 3378, 3766, 1010, 3413, 3418,
+ 1885, 3420, 3421, 3422, 3423, 3427, 423, 3428, -3512, 3434,
+ 4424, 6110, 3429, -3512, 3384, 3389, 3440, 3431, 3432, 3441,
+ 3767, 3433, 3435, 2495, 4628, 4628, 2496, 2166, 4438, 3442,
+ 3449, 3439, 3450, 3453, 5805, 4424, 974, 1109, 5698, 3466,
+ 4496, 4497, 4498, 4499, 4500, 4501, 4502, 4503, 4504, 3458,
+ -3512, 3477, 3821, 3481, 3482, 1161, 3008, 3005, 2088, 4623,
+ 3501, 3009, 3485, 1161, -3512, 1161, 3510, 3494, 3497, 3521,
+ 3527, 3514, 3534, 3500, 3546, 3717, 3548, 3549, 423, 5722,
+ 5723, 3518, 3553, 3010, 2683, 4623, 5449, 5450, 3556, 3564,
+ 3007, 3557, 3539, 3566, 5488, 3567, 3554, 3568, 3011, 3528,
+ 3569, 3540, 3582, 3609, 3627, 3012, 896, 896, 896, 3638,
+ 3651, 5587, 3682, 3663, 3610, 3737, 3687, 2496, 3743, 3756,
+ 3747, 5549, 3762, 1111, 3768, 3769, 3770, 3771, 3779, 3781,
+ 3802, 3772, 3773, 1490, 3801, 3816, 3824, 3774, 3825, 2735,
+ 3827, 3830, 6170, 3833, 3832, 3834, 1223, 3859, 421, 421,
+ 421, 3860, 3847, 3012, 3861, 3862, 3013, 3876, 3883, 4551,
+ 3884, 3901, 2495, 2960, 3918, 2496, 3898, 3900, 3919, 2497,
+ 2498, 2499, 3921, 5766, 5767, 4496, 4497, 4498, 4499, 4500,
+ 4501, 4502, 4503, 4504, 1676, 3939, 3004, 4489, 3948, 3951,
+ 3953, 4490, 4491, 4492, 3955, 3956, 3005, -3512, 3962, 3967,
+ 3972, 3986, 3978, 3006, -3512, 4007, 3973, 4002, 3975, -3512,
+ 1801, 4755, 1805, 4009, 4019, 4026, 4039, 4044, 4045, 4065,
+ 4071, 4072, 889, 889, 889, 890, 890, 890, 4073, 3007,
+ 4081, 4078, 4098, 4089, 4096, 3098, 4099, 4119, 4614, 4136,
+ 1109, 2222, 5663, 423, 4120, 3014, -3512, 4495, 4178, 4191,
+ 4199, 4219, 4200, 4203, 1224, 4225, 6308, 4212, 4226, 5544,
+ 5545, 5546, 5547, 5548, 4627, 4627, 4231, 4236, 4802, 4227,
+ 4247, 4258, 4259, 4273, 4277, 4275, 4623, 4279, 423, 4307,
+ 4287, 949, 4308, 4296, 3775, 4310, 4311, 2007, 4302, 4312,
+ 4973, 4315, 4318, 2008, 4323, 3776, 4320, -3512, 4322, 4326,
+ 4327, 3012, 4332, 4347, 4348, 896, 5862, 4309, 2928, 2929,
+ 2930, 2931, 2932, 2933, 4349, 4359, 4361, 5865, 5866, 4358,
+ 4363, 4360, 5778, 4365, 4373, 3085, 3446, 4374, 4399, 4372,
+ 4398, 4370, 4396, 4375, 5870, 4402, 4404, 4845, 2010, 4956,
+ 4376, 4384, 4385, 3008, 4691, 2924, 4410, 421, 3009, 4411,
+ 4412, 4415, 4413, 2925, 2926, 2927, 2928, 2929, 2930, 2931,
+ 2932, 2933, 4414, 4425, 3664, 4420, 4478, 5716, 4479, 2356,
+ 3010, 2683, 4429, 3717, 2353, 4428, 2320, 4419, 4436, 4444,
+ 5844, 4427, 4446, 4218, 4439, 3011, 1638, 5147, 5008, 4452,
+ 4472, 1641, -3512, -3512, 2011, 4876, 4876, 3717, 4469, 4204,
+ -2178, 2012, 4470, 4471, 2013, 4893, 4476, 4477, 4521, 4481,
+ 1490, 4483, 1490, 4484, 5660, 4485, 3016, 1885, 4507, 4541,
+ 4524, 889, 4512, 4559, 890, 4619, 2735, 4513, 4550, 4520,
+ 1015, 2014, 4957, 4564, 4535, 4560, 4589, 4562, 5707, 4536,
+ 3012, 4632, 4969, 3013, 4763, 4634, 4636, -3512, -3512, -3512,
+ 4499, 4500, 4501, 4502, 4503, 4504, 4625, 4638, 4645, 4657,
+ 4947, 4563, 4495, 4669, 4566, 2015, 1299, 4620, 4653, 1311,
+ 4674, 1311, 1311, 4658, 2364, 4662, 4659, 4663, 4676, 1015,
+ 5007, 1217, 4677, 4688, 4685, 4690, 4702, 374, 4681, 4682,
+ 4703, 4714, 4686, -3512, 4713, 4983, 1490, 4715, 4719, 4720,
+ 1217, 4721, 1338, 4722, 2928, 2929, 2930, 2931, 2932, 2933,
+ 4726, 4737, 4738, 4740, 4746, 4747, 3337, 4748, 4756, 4762,
+ 4771, 4785, 4791, 4787, 4789, 4799, 5749, 4793, 4795, 4800,
+ 2112, 4803, 3014, 4805, 2017, 5789, 4806, 4382, 4807, 4808,
+ 1111, 4827, 4810, 4825, 2018, 374, 4826, 4828, 4829, 1010,
+ 4832, 4841, 4835, 2019, 4830, 4831, 5155, 5156, 5157, 5158,
+ 4844, 4833, 4834, 4837, 4839, 2020, 4846, 4848, 3374, 4860,
+ 4867, 4858, 4872, 4836, 4861, 4838, 4862, 4864, 4840, 4878,
+ 4850, 4934, 4880, 4851, 4857, 896, 4915, 4920, 4921, 4931,
+ 3735, 4938, 4948, 4949, 5756, 5757, 4927, 5759, 4951, 4958,
+ 4967, 4961, 4968, 4971, 2140, 4972, 5118, 2022, 2023, 4976,
+ 4988, 5005, 5002, 5010, 5017, 949, 5019, 5027, 3717, 5029,
+ 5035, 5036, 1885, 5807, 5037, 5050, 5038, 421, 5039, 5040,
+ 5041, 5917, 2924, 5052, 5043, 5053, 5054, 5063, 2141, 5064,
+ 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, 5076,
+ 5065, 5066, 6196, 4292, 6198, 4480, 4292, 1109, 5068, 5069,
+ 5070, 4489, 4496, 4497, 4498, 4499, 4500, 4501, 4502, 4503,
+ 4504, 5071, 5085, 3593, 5072, 949, -2177, 6607, 2447, 5136,
+ 4926, 5125, 6610, 949, 5108, 5137, 5165, 5109, 5148, 5189,
+ 5193, 5208, 5166, 5129, 5110, 5117, 5139, 5213, 5198, 5211,
+ 5154, 889, 5174, 5217, 890, 5195, 2025, 5226, 378, 5197,
+ 1418, 1419, 5199, 1420, 1421, 5241, 5202, 5262, 6165, 5233,
+ 5263, 5264, 5265, 5272, 5273, 5275, 5276, 5278, 5283, 5284,
+ 5315, 5300, 5303, 5316, 6328, 5319, 5317, 5318, 5329, 1422,
+ 5332, 5330, 5333, 5331, 5334, 1111, 5345, 5343, 5352, 6337,
+ 5363, 423, 5364, 5346, 5369, 423, 5372, 5388, 4292, 957,
+ 5389, 5391, 5290, 5405, 5407, 5394, 5404, 5408, 957, 746,
+ 6201, 3388, 5409, 5420, 5431, 5446, 957, 3763, 746, 957,
+ 5460, 5467, 5014, 5472, 5479, 5490, 5466, 5441, 5452, 4380,
+ 5496, 5518, 746, 5046, 5497, 6372, 6374, 5516, 5473, 6206,
+ 5514, 5513, 5517, 2495, 5520, 5526, 2496, 3717, 5542, 5521,
+ 5531, 746, 896, 5528, 5550, 5555, 5557, 896, 5062, 896,
+ 5565, 5578, 5533, 5590, 1239, 5593, 6044, 5572, 5573, 5584,
+ 746, 5594, 5599, 2369, 5595, -2179, 746, 3005, 4064, 5632,
+ 5308, 5354, 5625, 896, -3512, 5612, 5633, 5628, 746, 5630,
+ 5640, 5641, 5362, 5645, 421, 5646, 5647, 5648, 5659, 421,
+ 5661, 421, 1109, 5662, 4088, 6116, 5672, 1485, 5680, 5685,
+ 3007, 5678, 5676, 5686, 5713, 5695, 5714, 746, 2495, 5715,
+ 6112, 2496, 957, 5718, 5724, 421, 6295, 1540, 5962, 5725,
+ 5726, 957, 746, 5738, 5741, 5745, 5747, 5946, 957, 5760,
+ 746, 957, 5751, 5752, 5768, 5761, 5770, 5779, 5769, 5775,
+ 5782, 5787, 3005, 1540, 746, 5786, 5794, 4893, 5797, -3512,
+ 5802, 76, 5804, 5803, 5806, 5810, 5812, 5816, 889, 1885,
+ 746, 890, 5818, 889, 5821, 889, 890, 6539, 890, 5140,
+ 5826, 5828, 5832, 5342, 5837, 3007, 5833, 5839, 5967, 5835,
+ 5840, 5841, 5850, 6480, 5868, 1885, 5856, 5858, 5355, 889,
+ 3614, 5356, 890, 5357, 5864, 5880, 5869, 5887, 5886, 5888,
+ 5889, 5876, 5900, 5894, 5903, 5910, 5914, 5919, 5924, 6191,
+ 6192, 5930, 5966, 5933, -3512, 1338, 5939, 5942, 5957, -3512,
+ 5926, 746, 5950, 5953, 5954, 5958, 5959, 5964, 6012, 5970,
+ 5971, 5975, 5981, 5982, 5983, 5990, 5430, 6366, 6018, 5397,
+ 5968, 6020, 6023, 2495, 5143, 6026, 2496, 6031, 4292, 4292,
+ 6050, 6030, 957, 957, 4623, 4218, -3512, 6011, 6051, 1161,
+ 4218, 746, 6055, 1161, 6060, 6063, 1338, 6555, 6556, 3717,
+ 6084, 6079, 6090, 6092, 3717, 6091, 6098, 3005, 6105, 6115,
+ 6119, 6125, 1111, 423, -3512, 6152, 3087, 3088, 746, -3512,
+ 957, 6129, 6154, 6178, -3512, 5225, 6378, 6132, 6176, 6167,
+ 746, 5934, 6184, 6169, 5267, 6208, 6190, 6177, 1111, 6221,
+ 3007, 3012, 6226, 6223, 6236, 6234, 5499, 6230, 6244, 6249,
+ 6259, 6263, 1111, 6264, 6265, 6266, 6267, 6276, 6277, 6278,
+ 6279, -3512, 6284, 1111, 6288, 6286, 6293, 6299, 6323, 6307,
+ 6319, 6321, 6325, 6300, 6326, 6324, 6327, 6332, 6333, 6335,
+ 421, 6336, 746, 746, 3763, 6126, 6348, 6371, 6377, 5503,
+ 6317, 6380, 6352, 6383, 4893, 6387, 6126, 2490, 6385, 6391,
+ 6394, 6395, 6411, 6412, 6414, 6428, 1885, 6413, 6421, 5144,
+ 6422, 6455, 6427, 1959, 6475, 5007, 3012, 6456, 6440, 6438,
+ 6473, 6381, 6491, 6450, 6482, 6460, 6382, 6511, 5149, 1109,
+ 6534, 6465, 6490, -3512, 374, 6492, 6509, 6529, 4382, 4382,
+ 4382, 4382, 4382, 6541, 6548, 6564, 6550, 6570, 6572, 6601,
+ 6591, 422, 6597, 6598, -3512, 1109, 6608, 6612, 6619, -3512,
+ 6639, 6618, 5377, 6640, 6643, 5380, 6641, 1161, 1161, 1109,
+ 6644, 6645, 6200, 1885, 6653, 6666, 6668, 4651, 6679, 6669,
+ 1109, 5561, 5561, 5561, 5561, 6680, 5561, 5561, 5561, 5561,
+ 5561, 957, 957, 423, 6694, 5679, -3512, 6682, 6699, 746,
+ 6565, 6700, 6687, 6709, 957, 6688, 1237, 6703, -3512, 1540,
+ 957, 4292, 6712, 6716, 957, 4292, 957, 6656, 6086, 2007,
+ 1540, 3390, 4616, 2004, 4281, 2008, 2993, 2106, 2105, 1111,
+ 4151, 4070, 4732, -3512, 5306, 6342, 1540, 5299, 6476, 4877,
+ 4190, 6366, 4238, 6009, 2928, 2929, 2930, 2931, 2932, 2933,
+ 6365, 3012, 6571, 6062, 5296, 5785, 1619, 1620, 5448, 6043,
+ 4679, 4409, 6467, 5944, 6567, 6386, 5462, 6384, 6489, 4684,
+ 2010, 6582, 5814, 5500, 5478, 6346, 5440, 6449, 957, 6451,
+ 957, 957, 4750, 3388, 4256, 5711, 5470, 4257, 5304, 2090,
+ 4937, 5808, 5664, 5666, 6049, 5719, 1111, 5465, 4977, 5524,
+ 6280, 6636, 6715, 6701, 6024, 4883, 6494, 5969, -3512, 6186,
+ 3457, 6316, 6354, 5650, 5972, 1068, 5657, 5658, 5506, 2928,
+ 2929, 2930, 2931, 2932, 2933, 1130, 2011, 1540, 5656, 5044,
+ 1414, 6163, 6632, 2012, 2419, 949, 2013, 5551, 949, 3520,
+ 5510, 6339, 4285, -3512, 75, 4670, 1109, 3924, 3516, 3535,
+ 6274, 4994, 6087, 3570, 1569, 1491, 74, 4847, 4188, 5335,
+ 3658, 3659, 4794, 2014, 6667, 6515, 4215, 746, 6195, 2369,
+ 3151, 5530, 5529, 3846, 6683, 3415, 1815, 5667, 6162, 5222,
+ 4424, 6461, 1489, 2371, 4405, 3017, 2955, 4621, 3875, 3048,
+ 4380, 4380, 4380, 4380, 4380, 76, 76, 2015, 76, 4633,
+ 3856, 3049, 6553, 6452, 5196, 5651, 957, 5169, 5638, 5623,
+ 5163, 3874, 6306, 1109, 6131, 5223, 3053, 6305, 5164, 1885,
+ 6676, 6540, 6609, 6441, 6111, 5119, 5921, 6453, 3806, 1338,
+ 6454, 3723, 4557, 4464, 4214, 4555, 3815, 1270, 5006, 4357,
+ 949, 3902, 3530, -3512, 6429, 3073, 2268, 746, 1240, 3066,
+ 6692, 3893, 3909, 4611, 2928, 2929, 2930, 2931, 2932, 2933,
+ 896, 1540, 2112, 746, 1926, 3906, 2017, 1897, 2007, 3907,
+ 2427, 1898, 5228, 1592, 2008, 5652, 2018, 746, 5229, 3070,
+ 5200, 746, 2959, 1263, 3913, 2019, 4407, 2361, 78, 2110,
+ 3611, 5928, 957, 1626, 0, 0, 0, 2020, 0, 0,
+ 0, 0, 421, 0, 4292, 0, 0, 0, 0, 0,
+ 5763, 5764, 0, 0, 0, 0, 0, 0, 0, 2010,
+ 0, 0, 957, 4218, 0, 4218, 4218, 4218, 6624, 0,
+ 0, 0, 0, 0, 0, 0, 1111, 0, 0, 2022,
+ 2023, 0, 1111, 0, 0, 0, 1111, 0, 0, 0,
+ 957, 957, 957, 0, 957, 0, 6472, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2939, 0, 3098, 0,
+ 2024, 0, 0, 2111, 957, 2011, 889, 0, 0, 890,
+ 0, 0, 2012, 0, 0, 2013, 0, 0, 0, 0,
+ 1489, 5815, 0, 0, 0, 0, 69, 0, 2495, 0,
+ 0, 2496, 0, 0, 0, 2497, 2498, 2499, 0, 0,
+ 0, 746, 2014, 0, 2981, 0, 0, 0, 0, 746,
+ 746, 0, 6702, 0, 0, 0, 0, 0, 6522, 6523,
+ 0, 5843, 3005, 0, 0, 0, 6625, 6626, 2025, 3006,
+ 6695, 0, 0, 0, 0, 0, 2015, 0, 0, 5732,
+ 0, 0, 957, 1109, 0, 0, 957, 957, 0, 1109,
+ 0, 5742, 4292, 1109, 0, 3007, 0, 0, 0, 4292,
+ 0, 0, 957, 0, 4292, 0, 0, 4292, 423, 423,
+ 423, 0, 0, 5561, 0, 0, 0, 0, 0, 0,
+ 5735, 5736, 0, 0, 0, 5739, 5740, 0, 0, 746,
+ 949, 949, 0, 0, 0, 0, 4292, 0, 0, 0,
+ 0, 2112, 0, 0, 0, 2017, 0, 0, 0, 0,
+ 0, 4292, 0, 0, 0, 2018, 0, 0, 423, 0,
+ 0, 0, 0, 0, 2019, 0, 423, 0, 0, 0,
+ 0, 0, 1540, 0, 0, 0, 2020, 6195, 423, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1161,
+ 0, 0, 1959, 6077, 0, 0, 1959, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3008,
+ 0, 5927, 0, 5923, 3009, 2113, 0, 0, 2022, 2023,
+ 2488, 0, 0, 0, 896, 0, 2070, 0, 0, 0,
+ 1161, 0, 0, 0, 0, 6056, 3010, 2683, 0, 0,
+ 1540, 0, 0, 0, 0, 5997, 0, 0, 2071, 2114,
+ 0, 3011, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 421, 2488, 0, 0,
+ 0, 0, 4893, 0, 4722, 0, 0, 1540, 0, 0,
+ 0, 0, 0, 0, 1885, 0, 1161, 0, 0, 3763,
+ 0, 0, 2735, 0, 1489, 0, 0, 0, 0, 2072,
+ 5290, 0, 0, 1161, 0, 4561, 3012, 3174, 4292, 0,
+ 1540, 0, 0, 0, 0, 6048, 0, 2025, 4218, 4424,
+ 0, 4580, 0, 0, 0, 0, 1015, 6010, 6057, 378,
+ 260, 367, 368, 0, 370, 371, 6710, 6711, 363, 269,
+ 889, 0, 0, 890, 0, 272, 6075, 273, 0, 274,
+ 294, 0, 312, 317, 347, 366, 372, 383, 0, 0,
+ 373, 2495, 0, 949, 2496, 5291, 0, 949, -3512, -3512,
+ -3512, 0, 0, 0, 0, 746, 0, 4292, 0, 0,
+ 0, 4580, 0, 0, 0, 1216, 0, 0, 2073, 4580,
+ 0, 957, 957, 957, 0, 3005, 0, 0, 3014, 0,
+ 0, 0, 3006, 0, 0, 0, 0, 1111, 746, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1540, 0, 0, 0, 0, 0, 0, 0, 3007, 0,
+ 0, 1540, 0, 0, 0, 0, 0, 2074, 0, 0,
+ 4424, 2075, 4424, 423, 0, 1959, 0, 1540, 0, 0,
+ 1217, 0, 0, 5922, 0, 0, 3336, 0, 0, 0,
+ 5292, 0, 2495, 0, 0, 2496, 746, 0, 0, 0,
+ 0, 0, 0, 0, 746, 0, 0, 896, 0, 0,
+ 0, 0, 746, 0, 0, 0, 0, 0, 0, 0,
+ 2077, 0, 0, 0, 0, 0, 3005, 0, 2924, 0,
+ 1540, 0, 0, -3512, 0, 0, 2925, 2926, 2927, 2928,
+ 2929, 2930, 2931, 2932, 2933, 957, 0, 0, 957, 421,
+ 4292, 1540, 0, 0, 1109, 0, 0, 0, 957, 3007,
+ 0, 0, 0, 0, 1540, 2079, 0, 0, 0, 0,
+ 0, 0, 3008, 0, 0, 1490, 1540, 3009, 0, 6210,
+ 0, 0, 0, 0, 0, 0, 0, 1885, 2080, 957,
+ 957, 0, 746, 746, 6252, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 957, 0, 746, 957, 2082, 0,
+ 5293, 0, 0, 5294, 3011, 4292, 1540, 1540, 0, 746,
+ 746, 0, 0, 889, 0, 0, 890, 0, 5610, 0,
+ 0, 76, 0, 0, 76, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 4292, 5791, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3012,
+ 0, 0, 0, -3512, 0, 957, 0, 0, -3512, 957,
+ 957, 0, 896, 0, 0, 0, 949, 0, 0, 0,
+ 0, 0, 0, 6329, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 5997, 0, 0, 0, 0, 0, 0,
+ 1111, 0, 0, 0, 0, -3512, 957, 957, 0, 3260,
+ 0, 0, 957, 957, 421, 0, 4337, 0, 3699, 957,
+ 957, 957, 0, 0, 957, 0, 957, 0, 957, 957,
+ 957, 957, 957, 957, 0, 0, 957, 0, 957, 957,
+ 1977, 0, 957, 0, 0, 0, 4292, 0, 0, 0,
+ 0, 3014, 0, 0, 0, 0, 1540, 957, 957, 957,
+ 3012, 0, 2495, 0, 0, 2496, 0, 0, 0, 2497,
+ 2498, 2499, 0, 1490, 957, 1978, 423, 6369, 0, 6370,
+ 896, 0, 0, 6375, 6376, 0, 3004, 0, 889, 0,
+ 0, 890, 0, 0, 0, 0, 3005, 0, 0, 0,
+ 0, 6442, 0, 3006, 0, 0, 0, 0, 6291, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1109, 0, 0,
+ 0, 0, 421, 0, 0, 0, 0, 0, 0, 3007,
+ 0, 0, 0, 0, 949, 0, 1979, 0, 374, 0,
+ 0, 949, 0, 0, 6596, 0, 949, 0, 374, 949,
+ 5912, 2924, -3512, 0, 0, 0, 0, 0, 0, -3512,
+ -3512, -3512, 2928, 2929, 2930, 2931, 2932, 2933, 0, 0,
+ 0, 0, 1980, 0, 0, 0, 0, 0, 949, 0,
+ 0, 0, 0, 0, 0, 0, 374, 0, 0, 0,
+ 0, 0, 0, 949, 0, 0, 889, 0, 0, 890,
+ 4292, 0, 0, 4338, 0, 0, 0, 0, 1981, 0,
+ 0, 0, 0, 0, 0, 0, 0, 957, 378, 0,
+ 6517, 6518, 0, 6519, 6495, 6290, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 3008, 1311, 0, 0, 0, 3009, 6520,
+ 1983, 0, -3512, 0, 0, 0, 0, 957, 0, 0,
+ 0, 0, 0, 2928, 2929, 2930, 2931, 2932, 2933, 0,
+ 3010, 2683, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 3757, 1985, 0, 0, 3011, 0, 0, 0, 1311,
+ 4292, 0, 0, 0, 0, 0, 4292, 1977, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 957, 378, 0, 6517, 6518, 6363, 6519, 0, 0, 0,
+ 0, 0, 0, 0, 205, 0, 2735, 0, 0, 4339,
+ 0, 0, 1978, 0, 0, 0, -2801, 0, 1988, 0,
+ 3012, 0, 6520, 3013, 0, 0, 1989, 1490, 0, 0,
+ 949, 0, 0, 0, 3218, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1991, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1992, 0, 0, 0, 1993,
+ 0, 0, 0, 0, 0, 2488, 0, -2801, 0, 0,
+ 0, 0, 0, 1979, 0, 0, 0, 0, 4340, 0,
+ -2801, 5162, 0, 0, 5167, 0, -2801, 0, 0, 0,
+ 896, -2801, 0, 0, 0, 0, 0, -2801, 4424, 949,
+ -2801, 4292, 0, 0, -2801, 0, 0, 0, 0, 1980,
+ 0, 6673, 3014, 1994, 0, 1523, 378, 4341, 6517, 6518,
+ 0, 6519, 0, 0, 0, 374, 0, 0, 0, 0,
+ 0, 0, 421, -2801, 0, -2801, 0, 0, 0, 896,
+ 0, 1523, 0, 0, 0, 1981, 0, 6520, 0, 0,
+ 0, 0, 0, -2801, 0, 0, 0, 0, 896, 0,
+ 6673, 0, 0, 0, 0, 957, 957, 957, 957, 957,
+ 957, 957, 957, 957, 0, 957, 0, 0, 0, 6673,
+ 0, 421, 0, 0, 0, 957, 0, 1983, 957, 6675,
+ 0, 0, 0, 0, 0, 0, 0, 2949, 0, 0,
+ 421, 6674, -2801, 0, 0, -2801, 889, 0, 0, 890,
+ 0, -2801, 2924, 0, 6235, 0, 0, 0, 0, 1985,
+ 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, 0,
+ 0, 0, 0, 0, 0, 4531, 0, 0, 6675, 0,
+ 0, 423, 949, 0, 957, 0, 0, 0, 957, 0,
+ 6674, 957, 0, 957, 0, 889, 957, 6675, 890, 0,
+ 5650, 205, 0, 3217, 0, 0, 1987, 0, -2801, 6674,
+ 0, 957, 0, 0, 889, 1988, 0, 890, 0, 0,
+ 957, 957, 0, 1989, 0, 0, 0, 0, 0, 0,
+ 2495, 3218, 0, 2496, 0, 0, 0, 2497, 2498, 2499,
+ 0, 0, 0, 1991, 0, 0, 0, 949, 0, 0,
+ 0, 423, 1992, 423, 3004, 0, 1993, 0, 0, 0,
+ 3758, 0, 0, 0, 3005, 0, 0, 0, 0, 0,
+ 0, 3006, 0, 746, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 949, 0, 0, 0,
+ 0, -2801, 76, 76, 0, 0, 746, 3007, 0, 0,
+ 0, 0, 0, 1540, 0, 0, 0, 1540, 1540, 0,
+ 1994, 0, 0, 0, 746, -2801, 0, -2801, -2801, 423,
+ 746, 0, 0, 0, 746, 0, 0, 0, 0, 0,
+ 0, 0, 0, 746, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 746, 0, 0, 957, 0, 0, 0, 0, 0,
+ -2801, 0, -2801, -2801, 0, 957, 0, 1540, 957, 0,
+ 957, 957, 0, 1540, 0, 0, 0, 0, 0, 0,
+ 0, 6672, 0, 0, 0, 746, 4580, 0, 949, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1161, 0,
+ 0, 0, 0, 0, 0, 746, 746, 0, 0, 0,
+ 0, 3008, 374, 0, 1540, 0, 3009, 2183, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1031, 2192, 0,
+ 6672, 0, 3667, 0, 0, 0, 423, 746, 3010, 2683,
+ 423, 0, 0, 0, 2200, 0, 0, 0, 0, 6672,
+ 0, 0, 0, 3011, 0, 0, 0, 0, 0, 0,
+ 0, 0, 746, 0, 423, 0, 0, 0, 746, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1311, 0,
+ 0, 374, 746, 1034, 3668, 0, 0, 1161, 0, 746,
+ 4115, 0, 746, 0, 2735, 0, 0, 0, 746, 1035,
+ 0, 0, 0, 0, 0, 0, 0, 0, 3012, 0,
+ 0, 3013, 0, 0, 0, 0, 0, 1398, 746, 0,
+ 0, 0, 0, 0, 746, 0, 0, 0, 0, 0,
+ 0, 746, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 3669, 949, 0, 0, 746, 0, 0, 0, 0,
+ 1311, 1311, 1038, 0, 0, 0, 0, 0, 746, 0,
+ 0, 1039, 0, 423, 0, 0, 0, 0, 0, 746,
+ 4115, 0, 0, 0, 1040, 0, 0, 0, 0, 3670,
+ 0, 0, 0, 0, 0, 0, 0, 957, 957, 957,
+ 0, 0, 0, 957, 0, 0, 0, 0, 0, 0,
+ 3014, 0, 0, 0, 0, 1401, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 4580,
+ 957, 1540, 0, 4580, 0, 0, 0, 0, 0, 423,
+ 3671, 0, 949, 0, 0, 0, 4115, 0, 949, 0,
+ 0, 0, 0, 0, 0, 4115, 0, 0, 0, 0,
+ 0, 0, 1044, 0, 0, 0, 6600, 0, 374, 374,
+ 0, 0, 957, 0, 0, 0, 0, 0, 0, 2428,
+ 0, 0, 0, 0, 0, 4115, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 4330, 0, 0, 0, 1540, 0,
+ 2924, 0, 0, 0, 0, 0, 0, 0, 2925, 2926,
+ 2927, 2928, 2929, 2930, 2931, 2932, 2933, 0, 0, 0,
+ 957, 3746, 0, 0, 0, 0, 0, 925, 3672, 0,
+ 0, 1049, 0, 0, 0, 2495, 0, 0, 2496, 0,
+ 0, 0, 2497, 2498, 2499, 6649, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1405, 3004,
+ 0, 3673, 0, 949, 0, 0, 0, 1053, 0, 3005,
+ 0, 0, 0, 0, 1054, 0, 3006, 1055, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1056, 0, 0, 0,
+ 0, 0, 3007, 1407, 0, 0, 0, 0, 6649, 1058,
+ 0, 0, 1408, 0, 0, 6698, 1060, 0, 746, 0,
+ 1300, 1302, 0, 0, 1305, 0, 0, 0, 1311, 1311,
+ 0, 3674, 0, 0, 1540, 0, 746, 0, 0, 0,
+ 0, 0, 0, 746, 1355, 0, 0, 957, 0, 1540,
+ 957, 1365, 957, 957, 1540, 0, 0, 1065, 0, 0,
+ 0, 0, 957, 2495, 0, 0, 2496, 957, 0, 0,
+ 2497, 2498, 2499, 0, 0, 0, 0, 0, 0, 0,
+ 1425, 0, 1428, 0, 0, 1430, 0, 3004, 0, 0,
+ 0, 0, 0, 957, 957, 957, 0, 3005, 957, 1454,
+ 0, 0, 0, 0, 3006, 1458, 957, 957, 957, 957,
+ 0, 0, 0, 0, 0, 0, 3008, 423, 0, 0,
+ 0, 3009, 957, 423, 0, 957, 0, 957, 0, 0,
+ 3007, 0, 0, 0, 0, 0, 0, 0, 957, 957,
+ 0, 0, 957, 3010, 2683, 4337, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 3011, 2495,
+ 0, 957, 2496, 957, 0, 957, 2497, 2498, 2499, 1977,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 3004, 0, 957, 0, 0, 0, 0,
+ 0, 0, 0, 3005, 0, 0, 957, 0, 0, 2735,
+ 3006, 0, 0, 0, 1978, 0, 0, 0, 0, 0,
+ 746, 0, 0, 3012, 0, 0, 3013, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3007, 957, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 957, 0, 3008, 0, 0, 0, 0, 3009,
+ 0, 0, 0, 0, 0, 3281, 957, 0, 0, 0,
+ 0, 0, 0, 0, 957, 1979, 0, 0, 0, 0,
+ 0, 3010, 2683, 0, 0, 0, 0, 4580, 0, 0,
+ 0, 0, 4580, 0, 0, 4580, 3011, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1540,
+ 0, 1980, 1540, 0, 1540, 3014, 0, 0, 0, 1540,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 746, 746, 2735, 0, 0,
+ 0, 957, 4338, 0, 0, 0, 0, 1981, 0, 0,
+ 3008, 3012, 0, 0, 3013, 3009, 0, 0, 0, 0,
+ 0, 0, 746, 0, 0, 746, 0, 0, 1540, 0,
+ 0, 0, 0, 0, 0, 0, 1540, 3010, 2683, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1983,
+ 0, 0, 3011, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1540, 0, 0, 0, 0, 0, 0, 3419, 0,
+ 0, 0, 0, 0, 0, 2924, 0, 0, 0, 3430,
+ 0, 1985, 0, 2925, 2926, 2927, 2928, 2929, 2930, 2931,
+ 2932, 2933, 0, 2735, 0, 3448, 4879, 423, 423, 423,
+ 0, 0, 0, 3014, 0, 2035, 2036, 3012, 0, 0,
+ 3013, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 374, 746, 205, 0, 0, 0, 0, 1987, 0,
+ 0, 1540, 0, 1540, 374, 0, 0, 1988, 0, 0,
+ 0, 746, 0, 0, 0, 1989, 0, 0, 3522, 0,
+ 0, 0, 374, 3218, 0, 0, 0, 0, 0, 0,
+ 0, 0, 746, 0, 0, 1991, 374, 0, 0, 3537,
+ 0, 0, 0, 0, 1992, 0, 2181, 0, 1993, 0,
+ 0, 0, 1523, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2193, 0, 0, 3552, 0, 0, 4340, 0, 3014,
+ 0, 0, 0, 2924, 0, 0, 0, 0, 0, 0,
+ 0, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933,
+ 0, 2215, 2216, 0, 5078, 4580, 0, 1540, 0, 0,
+ 0, 0, 1994, 0, 3578, 1523, 4341, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2253, 0, 0, 746,
+ 0, 0, 0, 0, 957, 0, 0, 0, 0, 0,
+ 957, 0, 0, 0, 0, 0, 0, 0, 0, 1540,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 423, 1540, 0, 2924,
+ 0, 0, 746, 0, 746, 0, 0, 2925, 2926, 2927,
+ 2928, 2929, 2930, 2931, 2932, 2933, 0, 746, 0, 746,
+ 5128, 0, 0, 0, 0, 0, 0, 4930, 0, 0,
+ 0, 0, 2327, 2329, 0, 0, 0, 0, 0, 957,
+ 0, 2007, 0, 0, 0, 0, 0, 2008, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2110, 0, 0, 0, 0, 1540, 4580, 0,
+ 374, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3750, 0, 0, 0, 746, 1540,
+ 0, 0, 2010, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2495,
+ 0, 0, 2496, 1540, 0, 0, 2497, 2498, 2499, 0,
+ 0, 0, 0, 0, 0, 0, 0, 2495, 0, 0,
+ 2496, 0, 0, 3004, 2497, 2498, 2499, 0, 0, 0,
+ 0, 0, 0, 3005, 0, 0, 2111, 0, 2011, 746,
+ 3006, 3004, 0, 0, 2488, 2012, 2495, 0, 2013, 2496,
+ 0, 3005, 0, 2497, 2498, 2499, 0, 0, 3006, 374,
+ 0, 746, 0, 0, 0, 0, 3007, 0, 0, 0,
+ 3004, 0, 0, 0, 0, 2014, 0, 0, 0, 0,
+ 3005, 0, 0, 746, 3007, 0, 746, 3006, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 957, 0, 0, 1540, 0, 0, 2015,
+ 0, 0, 957, 3007, 0, 0, 0, 0, 0, 0,
+ 957, 0, 957, 0, 0, 957, 0, 0, 0, 1540,
+ 957, 957, 957, 957, 0, 0, 957, 957, 957, 957,
+ 957, 957, 957, 957, 957, 957, 0, 0, 0, 957,
+ 957, 957, 382, 0, 1540, 0, 0, 0, 382, 957,
+ 0, 0, 740, 0, 957, 0, 423, 0, 957, 0,
+ 0, 0, 0, 0, 2112, 0, 957, 0, 2017, 957,
+ 3008, 957, 0, 0, 0, 3009, 0, 0, 2018, 382,
+ 0, 957, 0, 0, 957, 957, 0, 2019, 3008, 957,
+ 957, 0, 0, 3009, 0, 0, 957, 3010, 2683, 2020,
+ 0, 0, 0, 0, 0, 0, 957, 0, 0, 957,
+ 0, 0, 3011, 0, 0, 3010, 2683, 3008, 0, 957,
+ 0, 0, 3009, 0, 0, 382, 0, 0, 0, 0,
+ 3011, 0, 0, 0, 0, 0, 0, 0, 4148, 0,
+ 0, 2022, 2023, 0, 3010, 2683, 0, 0, 0, 0,
+ 0, 0, 0, 2735, 0, 0, 0, 0, -2586, 3011,
+ 0, 0, 0, 0, 0, 0, 957, 3012, 0, 0,
+ 3013, 2735, 4149, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 957, 0, 3012, 0, 0, 3013, 0,
+ 374, 0, 0, 0, 0, 0, 0, 382, 0, 1540,
+ 2735, 0, 0, 0, 0, 0, 0, 0, 0, -2586,
+ 0, 957, 0, 0, 3012, 374, 0, 3013, 0, 0,
+ 0, 0, -2586, 0, 0, 0, 0, 0, -2586, 0,
+ 0, 0, 746, -2586, 0, 0, 0, 0, 0, -2586,
+ 2025, 0, -2586, 0, 0, 0, -2586, 0, 0, 0,
+ 0, 0, 0, 3216, 0, 0, 0, 0, 0, 3014,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, -2586, 0, 3014, 3255, 0,
+ 0, 0, 0, 423, 0, 0, 0, 0, 423, 1540,
+ 423, 0, 0, 0, 0, -2586, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3014, 0, 6595, 0,
+ 0, 0, 0, 0, 423, 1540, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, -2586, 0, 0, -2586, 0, 0,
+ 0, 3343, 0, -2586, 0, 0, 0, 0, 0, 2924,
+ 746, 0, 382, 746, 0, 0, 0, 2925, 2926, 2927,
+ 2928, 2929, 2930, 2931, 2932, 2933, 0, 2924, 0, 0,
+ 5243, 3369, 3370, 3371, 3372, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, 0, 0, 0, 382, 5468, 0,
+ 0, 0, 0, 0, 0, 0, 2924, 0, 0, 0,
+ -2586, 0, 0, 0, 2925, 2926, 2927, 2928, 2929, 2930,
+ 2931, 2932, 2933, 0, 0, 3412, 0, 957, 0, 0,
+ 0, 0, 0, 374, 0, 0, 2495, 0, 0, 2496,
+ 0, 1977, 0, 2497, 2498, 2499, 3425, 3426, 0, 0,
+ 0, 0, 0, 746, 746, 0, 0, 1540, 0, 0,
+ 3004, 0, 3443, 0, 746, 1126, 0, 0, 0, 0,
+ 3005, 957, 957, 0, 0, 0, 1978, 3006, 0, 0,
+ 2007, 746, 1031, 0, 0, 0, 2008, 1394, 0, 0,
+ 0, 0, 0, -2586, 0, 0, 3486, 3487, 3488, 3489,
+ 0, 2009, 0, 3007, 0, 5507, 1540, 0, 0, 1540,
+ 957, 957, 0, 0, 0, 0, 0, -2586, 0, -2586,
+ -2586, 957, 0, 0, 0, 1395, 0, 0, 0, 0,
+ 0, 2010, 0, 0, 0, 0, 0, 1979, 1034, 1396,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 423,
+ 1397, 0, 0, 0, 1035, 3979, 0, 0, 0, -2586,
+ 0, 3987, -2586, -2586, 0, -2586, 0, 0, 0, 0,
+ 0, 0, 1398, 1980, 0, 0, 0, 0, 746, 0,
+ 0, 0, 0, 0, 0, 0, 0, 2011, 0, 0,
+ 0, 0, 0, 0, 2012, 0, 1399, 2013, 0, 0,
+ 0, 0, 4020, 0, 957, 0, 0, 1038, 0, 1981,
+ 0, 0, 0, 3584, 0, 957, 1039, 3008, 0, 3588,
+ 0, 0, 3009, 0, 2014, 0, 0, 0, 0, 1040,
+ 0, 0, 0, 0, 1400, 0, 0, 0, 0, 0,
+ 0, 0, 0, 957, 3010, 2683, 957, 1982, 0, 0,
+ 0, 1983, 0, 0, 957, 957, 0, 1540, 2015, 3011,
+ 1401, 957, 957, 0, 0, 0, 957, 0, 0, 0,
+ 957, 0, 0, 957, 957, 0, 0, 0, 957, 0,
+ 0, 0, 1984, 1985, 957, 1402, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 957, 0, 0, 0,
+ 2735, 0, 0, 0, 957, 0, 0, 1044, 957, 0,
+ 0, 0, 0, 0, 3012, 0, 0, 3013, 0, 0,
+ 0, 1986, 0, 2016, 0, 205, 0, 2017, 0, 0,
+ 1987, 0, 0, 0, 0, 0, 0, 2018, 0, 1988,
+ 0, 957, 0, 0, 0, 0, 2019, 1989, 1403, 957,
+ 0, 0, 0, 0, 2495, 1990, 76, 2496, 2020, 0,
+ 0, 2497, 2498, 2499, 0, 0, 0, 1991, 0, 0,
+ 0, 0, 1047, 0, 957, 0, 1992, 0, 3004, 0,
+ 1993, 0, 925, 1404, 0, 0, 1049, 0, 3005, 0,
+ 0, 0, 1540, 0, 0, 3006, 0, 2021, 0, 0,
+ 2022, 2023, 0, 0, 0, 746, 3014, 0, 0, 4243,
+ 0, 0, 0, 1405, 3760, 0, 1406, 0, 0, 0,
+ 1052, 3007, 1053, 0, 0, 0, 0, 0, 0, 1054,
+ 1540, 2024, 1055, 0, 1994, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 746, 0, 0,
+ 0, 1056, 1540, 0, 0, 0, 0, 0, 1407, 746,
+ 0, 0, 0, 0, 1058, 0, 0, 1408, 0, 0,
+ 382, 1060, 0, 0, 382, 957, 0, 0, 0, 1409,
+ 0, 1062, 957, 0, 0, 0, 1410, 1312, 740, 0,
+ 0, 0, 0, 746, 0, 1312, 0, 740, 1312, 2025,
+ 0, 0, 0, 0, 0, 0, 2924, 0, 0, 0,
+ 0, 740, 1065, 0, 2925, 2926, 2927, 2928, 2929, 2930,
+ 2931, 2932, 2933, 0, 1540, 0, 0, 5574, 0, 0,
+ 740, 0, 0, 0, 0, 3008, 0, 0, 0, 0,
+ 3009, 0, 0, 0, 0, 0, 0, 0, 0, 740,
+ 957, 0, 0, 0, 0, 740, 0, 0, 0, 0,
+ 0, 0, 3010, 2683, 0, 0, 957, 740, 0, 0,
+ 0, 423, 0, 0, 0, 0, 0, 3011, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 746, 0, 0, 0, 0, 0, 740, 957, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1977, 0, 0, 2007,
+ 1312, 740, 0, 0, 0, 2008, 0, 1312, 2735, 740,
+ 1312, 4, 4437, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 3012, 740, 0, 3013, 0, 4450, 0, 0,
+ 5, 1978, 4455, 0, 1540, 0, 1540, 0, 0, 740,
+ 6, 7, 0, 0, 0, 0, 0, 9, 10, 0,
+ 2010, 11, 12, 13, 14, 15, 16, 17, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
+ 30, 31, 32, 33, 34, 35, 0, 746, 0, 37,
+ 0, 38, 39, 0, 0, 0, 0, 40, 0, 0,
+ 0, 0, 1979, 0, 0, 957, 0, 0, 957, 0,
+ 740, 957, 957, 957, 0, 0, 2011, 0, 0, 0,
+ 0, 0, 0, 2012, 3014, 0, 2013, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 957, 957, 1980, 0,
+ 957, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 740, 0, 0, 2014, 41, 957, 0, 0, 0, 0,
+ 0, 0, 957, 0, 0, 0, 0, 957, 0, 0,
+ 957, 957, 382, 0, 1981, 0, 0, 740, 957, 0,
+ 0, 0, 0, 0, 0, 0, 0, 2015, 0, 740,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 957,
+ 0, 0, 957, 0, 0, 0, 0, 0, 746, 0,
+ 746, 0, 1982, 0, 957, 0, 1983, 0, 0, 0,
+ 0, 0, 0, 0, 2924, 0, 0, 0, 0, 0,
+ 0, 42, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932,
+ 2933, 740, 740, 0, 0, 5611, 0, 2044, 1985, 0,
+ 0, 43, 2112, 0, 1540, 746, 2017, 0, 0, 0,
+ 0, 0, 0, 0, 0, 957, 2018, 3760, 0, 0,
+ 0, 0, 0, 0, 44, 2019, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2045, 2020, 0, 0,
+ 205, 0, 0, 0, 0, 1987, 0, 0, 45, 0,
+ 0, 0, 0, 0, 1988, 423, 0, 0, 0, 0,
+ 957, 0, 1989, 0, 0, 0, 0, 0, 1977, 0,
+ 2046, 0, 0, 0, 0, 0, 3198, 0, 0, 2022,
+ 2023, 0, 1991, 0, 0, 0, 0, 46, 0, 0,
+ 47, 1992, 0, 0, 0, 1993, 4694, 0, 0, 0,
+ 0, -2588, 382, 1978, 4697, 0, 0, 0, 740, 0,
+ 3199, 0, 48, 0, 0, 0, 0, 0, 0, 1312,
+ 0, 957, 0, 1312, 1540, 1312, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1994,
+ 0, 0, -2588, 0, 0, 0, 957, 0, 0, 0,
+ 957, 0, 957, 0, 1979, -2588, 0, 0, 0, 0,
+ 0, -2588, 0, 0, 0, 0, -2588, 0, 2025, 0,
+ 957, 0, -2588, 0, 0, -2588, 957, 0, 0, -2588,
+ 957, 0, 0, 0, 0, 0, 1540, 957, 0, 4780,
+ 1980, 4782, 49, 0, 3988, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, -2588, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1981, 0, -2588, 0,
+ 0, 0, 0, 0, 0, 1540, 0, 0, 0, 0,
+ 1540, 1540, 50, 0, 0, 957, 0, 0, 0, 0,
+ 0, 957, 957, 746, 0, 0, 0, 0, 51, 0,
+ 0, 0, 0, 0, 1982, 0, 740, 746, 1983, 0,
+ 0, 0, 0, 52, 0, 0, 0, -2588, 0, 0,
+ -2588, 2495, 0, 0, 2496, 4843, -2588, 957, 2497, 2498,
+ 2499, 0, 0, 0, 0, 957, 0, 0, 423, 2061,
+ 1985, 0, 0, 53, 381, 3004, 0, 0, 0, 0,
+ 381, 0, 0, 0, 739, 3005, 54, 55, 56, 57,
+ 58, 59, 3006, 957, 60, 61, 1585, 4865, 0, 0,
+ 4128, 66, 1586, 4131, 0, 0, 0, 0, 2062, 0,
+ 0, 381, 205, -2588, 0, 0, 740, 1987, 3007, 0,
+ 0, 0, 0, 1540, 1540, 0, 1988, 0, 0, 0,
+ 0, 0, 740, 0, 1989, 0, 0, 0, 0, 0,
+ 0, 0, 2063, 0, 0, 6292, 740, 0, 0, 957,
+ 740, 0, 0, 0, 1991, 957, 2007, 381, 957, 0,
+ 0, 957, 2008, 1992, 0, 0, 0, 1993, 1126, 0,
+ 0, 0, 957, 0, 0, 0, 0, 0, 0, 957,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 4222, 0, 0, 0, 4020, -2588, 957, 0, 0,
+ 0, 0, 0, 0, 4235, 0, 1156, 2010, 0, 0,
+ 0, 0, 4244, 0, 1156, 0, 1156, 0, 957, 0,
+ -2588, 1994, -2588, -2588, 0, 0, 0, 0, 0, 381,
+ 0, 0, 3008, 0, 0, 0, 0, 3009, 0, 0,
+ 0, 5009, 0, 423, 0, 746, 0, 0, 0, 0,
+ 0, 4288, 0, 0, 0, 0, 0, 0, 0, 3010,
+ 2683, 0, -2588, 2011, 0, -2588, -2588, 0, -2588, 0,
+ 2012, 0, 4314, 2013, 3011, 0, 0, 0, 0, 0,
+ 740, 0, 0, 0, 0, 0, 0, 0, 740, 740,
+ 1031, 0, 0, 0, 0, 3185, 0, 0, 0, 957,
+ 2014, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 2735, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3012,
+ 0, 0, 3013, 3186, 2015, 0, 4388, 0, 4390, 0,
+ 0, 957, 957, 957, 5077, 0, 1034, 382, 382, 382,
+ 957, 423, 0, 0, 1540, 0, 0, 0, 0, 957,
+ 0, 957, 1035, 957, 0, 0, 0, 5086, 740, 0,
+ 0, 0, 0, 957, 0, 0, 746, 0, 0, 0,
+ 1398, 0, 0, 0, 0, 0, 0, 0, 0, 957,
+ 0, 0, 5107, 0, 381, 0, 0, 382, 0, 2016,
+ 0, 0, 746, 2017, 3187, 382, 0, 0, 0, 0,
+ 0, 0, 0, 2018, 0, 1038, 0, 382, 0, 0,
+ 0, 3014, 2019, 0, 1039, 0, 0, 0, 0, 381,
+ 0, 0, 0, 0, 2020, 0, 0, 1040, 4449, 0,
+ 0, 0, 3188, 957, 0, 4456, 0, 0, 0, 0,
+ 0, 0, 0, 957, 0, 0, 0, 0, 0, 0,
+ 0, 957, 957, 0, 0, 0, 0, 957, 1401, 0,
+ 957, 0, 0, 3274, 0, 0, 2022, 2023, 0, 0,
+ 957, 0, 0, 0, 0, 0, 6547, 0, 0, 0,
+ 957, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 3275, 0, 0,
+ 0, 0, 0, 0, 0, 1044, 0, 0, 0, 746,
+ 0, 2924, 0, 0, 0, 0, 0, 0, 0, 2925,
+ 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, 0, 0,
+ 0, 0, 5874, 957, 0, 0, 0, 0, 0, 957,
+ 0, 0, 0, 0, 744, 0, 3189, 0, 0, 788,
+ 0, 788, 0, 0, 0, 0, 0, 957, 0, 0,
+ 0, 788, 0, 0, 0, 2025, 0, 0, 0, 0,
+ 0, 0, 957, 0, 0, 6547, 0, 957, 0, 0,
+ 925, 3190, 0, 0, 1049, 0, 788, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 788, 0, 0,
+ 957, 0, 0, 0, 740, 0, 0, 0, 788, 788,
+ 0, 1405, 788, 0, 3191, 0, 0, 0, 788, 0,
+ 1053, 0, 1112, 0, 0, 0, 0, 1054, 0, 0,
+ 1055, 957, 0, 0, 0, 0, 0, 740, 0, 0,
+ 0, 0, 957, 0, 1112, 0, 957, 0, 0, 1056,
+ 0, 0, 0, 0, 0, 0, 1407, 0, 0, 0,
+ 788, 0, 1058, 0, 957, 1408, 0, 0, 0, 1060,
+ 0, 423, 382, 0, 0, 0, 0, 3192, 0, 0,
+ 0, 0, 0, 0, 3193, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 740, 0, 0, 0, 0,
+ 0, 0, 1537, 740, 0, 0, 0, 0, 957, 957,
+ 1065, 740, 957, 0, 0, 0, 957, 0, 0, 0,
+ 423, 0, 0, 0, 0, 0, 0, 0, 1537, 957,
+ 957, 0, 0, 0, 0, 0, 0, 0, 0, 423,
+ 0, 4695, 4696, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1312, 1312,
+ 0, 740, 740, 0, 0, 5451, 0, 4, 0, 0,
+ 0, 0, 0, 1312, 0, 740, 1312, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 5, 0, 740, 740,
+ 0, 0, 0, 0, 0, 0, 6, 7, 0, 0,
+ 0, 8, 0, 9, 10, 0, 0, 11, 12, 13,
+ 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
+ 34, 35, 0, 36, 0, 37, 0, 38, 39, 0,
+ 0, 0, 0, 40, 1312, 0, 0, 0, 1312, 1312,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 788, 0, 381, 0, 0, 0, 381, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 739, 0, 0, 0, 0, 0, 0, 2495, 0, 739,
+ 2496, 0, 0, 0, 2497, 2498, 2499, 0, 0, 0,
+ 41, 0, 0, 739, 0, 0, 0, 0, 0, 0,
+ 0, 3004, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 3005, 739, 0, 0, 0, 2495, 0, 3006, 2496,
+ 0, 0, 0, 2497, 2498, 2499, 0, 0, 0, 0,
+ 0, 739, 0, 0, 0, 0, 0, 739, 0, 0,
+ 3004, 4866, 0, 0, 3007, 382, 0, 0, 0, 739,
+ 3005, 0, 0, 0, 0, 0, 0, 3006, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 42, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 739, 0,
+ 0, 0, 0, 3007, 0, 0, 0, 43, 0, 0,
+ 0, 0, 0, 739, 0, 2495, 0, 0, 2496, 0,
+ 0, 739, 2497, 2498, 2499, 0, 2160, 0, 0, 0,
+ 44, 0, 0, 0, 0, 739, 0, 0, 0, 3004,
+ 0, 0, 0, 0, 1537, 0, 0, 0, 0, 3005,
+ 0, 739, 0, 0, 45, 1537, 3006, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1537, 0, 0, 0, 0, 0, 0, 3008, 0,
+ 0, 0, 3007, 3009, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 46, 0, 0, 47, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3010, 2683, 0, 0, 0,
+ 5699, 0, 739, 0, 0, 0, 0, 3008, 48, 0,
+ 3011, 0, 3009, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 788, 0, 5034, 0, 3010, 2683, 0, 0, 5721, 0,
+ 1156, 0, 739, 0, 1156, 0, 0, 0, 0, 3011,
+ 0, 2735, 1537, 0, 0, 0, 0, 0, 0, 0,
+ 5737, 0, 0, 0, 381, 3012, 0, 0, 3013, 739,
+ 0, 0, 0, 0, 0, 2495, 738, 0, 2496, 788,
+ 788, 739, 2497, 2498, 2499, 0, 3008, 0, 0, 0,
+ 2735, 3009, 0, 0, 0, 0, 0, 0, 49, 3004,
+ 0, 0, 0, 887, 3012, 0, 0, 3013, 0, 3005,
+ 0, 0, 0, 3010, 2683, 0, 3006, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 788, 0, 3011, 0,
+ 0, 0, 5765, 739, 739, 0, 0, 0, 0, 0,
+ 0, 0, 3007, 0, 0, 0, 0, 0, 50, 887,
+ 0, 0, 0, 0, 0, 0, 0, 3014, 0, 0,
+ 0, 0, 0, 0, 51, 0, 0, 0, 0, 2735,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 52,
+ 0, 0, 0, 3012, 0, 0, 1537, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3014, 0, 1155, 0,
+ 0, 0, 0, 0, 0, 0, 1155, 0, 1155, 53,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1156, 1156,
+ 0, 887, 54, 55, 56, 57, 58, 59, 0, 0,
+ 60, 61, 62, 63, 0, 64, 65, 66, 67, 68,
+ 0, 0, 0, 0, 381, 0, 0, 0, 0, 0,
+ 739, 0, 0, 0, 5849, 0, 3008, 2924, 0, 0,
+ 0, 3009, 0, 0, 0, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, 0, 3014, 0, 0, 5885, 0,
+ 0, 0, 0, 3010, 2683, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2924, 0, 3011, 0,
+ 0, 0, 0, 0, 2925, 2926, 2927, 2928, 2929, 2930,
+ 2931, 2932, 2933, 0, 0, 0, 0, 5893, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2735,
+ 382, 1481, 788, 0, 788, 0, 0, 0, 0, 0,
+ 0, 0, 0, 3012, 0, 0, 3013, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 2924, 0, 0, 0, 0,
+ 0, 0, 0, 2925, 2926, 2927, 2928, 2929, 2930, 2931,
+ 2932, 2933, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 788, 0, 0, 788, 788,
+ 382, 0, 382, 0, 0, 0, 0, 0, 739, 0,
+ 0, 0, 0, 0, 744, 0, 1112, 0, 1112, 0,
+ 0, 0, 740, 0, 744, 0, 0, 0, 788, 0,
+ 0, 0, 0, 0, 0, 3014, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 740, 0, 0, 0, 1112,
+ 1112, 0, 0, 0, 0, 0, 0, 3133, 0, 0,
+ 0, 0, 0, 740, 0, 0, 0, 0, 382, 740,
+ 0, 0, 0, 740, 0, 0, 0, 0, 0, 0,
+ 0, 0, 740, 0, 0, 0, 0, 0, 739, 0,
+ 0, 0, 0, 0, 0, 0, 788, 0, 788, 0,
+ 740, 5419, 0, 0, 739, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 5421, 0, 1312, 739, 1312,
+ 1312, 0, 739, 0, 0, 3133, 0, 0, 0, 0,
+ 0, 0, 0, 0, 740, 2924, 0, 0, 0, 0,
+ 0, 0, 0, 2925, 2926, 2927, 2928, 2929, 2930, 2931,
+ 2932, 2933, 0, 0, 740, 740, 5896, 0, 0, 0,
+ 0, 0, 1537, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 744,
+ 0, 0, 0, 0, 0, 382, 740, 0, 0, 382,
+ 0, 0, 0, 744, 744, 1537, 0, 1902, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 740, 0, 382, 0, 0, 0, 740, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 740, 0, 0, 0, 0, 0, 0, 740, 0,
+ 744, 740, 0, 0, 4843, 0, 0, 740, 0, 0,
+ 0, 0, 739, 0, 0, 0, 0, 0, 0, 0,
+ 739, 739, 0, 0, 0, 0, 0, 740, 0, 0,
+ 0, 0, 0, 740, 0, 0, 2160, 2160, 2160, 0,
+ 740, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2428, 740, 0, 0, 0, 2428, 2428,
+ 0, 0, 0, 0, 0, 1537, 0, 740, 0, 0,
+ 744, 0, 382, 0, 0, 0, 1537, 0, 740, 381,
+ 381, 381, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1537, 0, 0, 0, 0, 0, 0, 0,
+ 739, 0, 0, 0, 0, 0, 0, 0, 0, 2495,
+ 0, 0, 2496, 0, 0, 0, 2497, 2498, 2499, 0,
+ 0, 0, 0, 0, 0, 0, 0, 2495, 0, 381,
+ 2496, 0, 0, 3004, 2497, 2498, 2499, 381, 382, 0,
+ 0, 0, 0, 3005, 0, 1537, 0, 0, 0, 381,
+ 3006, 3004, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1156, 3005, 0, 0, 0, 0, 1537, 0, 3006, 0,
+ 0, 0, 6275, 0, 0, 0, 3007, 0, 0, 1537,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1537, 0, 0, 3007, 0, 0, 0, 0, 0,
+ 0, 1156, 2495, 0, 0, 2496, 0, 0, 0, 2497,
+ 2498, 2499, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3004, 0, 0, 0,
+ 0, 1537, 1537, 0, 0, 0, 3005, 0, 0, 0,
+ 0, 0, 0, 3006, 887, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1156, 0, 0,
+ 0, 0, 738, 0, 0, 0, 0, 0, 0, 3007,
+ 0, 738, 0, 0, 1156, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 738, 788, 0, 788, 0,
+ 3008, 788, 0, 788, 0, 3009, 788, 788, 788, 0,
+ 0, 0, 2394, 0, 738, 0, 0, 0, 3008, 788,
+ 0, 0, 0, 3009, 0, 0, 0, 3010, 2683, 0,
+ 0, 0, 0, 738, 788, 0, 788, 740, 0, 738,
+ 0, 788, 3011, 0, 0, 3010, 2683, 0, 0, 0,
+ 0, 738, 0, 0, 0, 740, 739, 0, 0, 0,
+ 3011, 0, 740, 2160, 5758, 0, 2160, 0, 0, 1312,
+ 0, 1312, 1312, 0, 0, 0, 0, 0, 0, 5762,
+ 738, 0, 0, 2735, 0, 0, 0, 0, 0, 739,
+ 0, 1537, 0, 3008, 0, 738, 0, 3012, 3009, 0,
+ 3013, 2735, 0, 738, 0, 0, 0, 0, 0, 0,
+ 0, 0, 6446, 0, 0, 3012, 0, 738, 3013, 0,
+ 3010, 2683, 0, 0, 381, 0, 0, 0, 0, 0,
+ 0, 0, 0, 738, 0, 3011, 382, 0, 0, 0,
+ 0, 0, 382, 2495, 0, 0, 2496, 739, 0, 0,
+ 2497, 2498, 2499, 0, 0, 739, 0, 0, 0, 0,
+ 0, 0, 0, 739, 0, 0, 2953, 3004, 0, 0,
+ 5820, 0, 0, 0, 0, 0, 2735, 3005, 788, 788,
+ 0, 0, 0, 0, 3006, 0, 0, 0, 0, 3014,
+ 3012, 0, 0, 3013, 738, 744, 0, 0, 0, 0,
+ 744, 744, 0, 0, 0, 0, 0, 3014, 0, 0,
+ 3007, 0, 0, 0, 0, 0, 0, 0, 2495, 0,
+ 0, 2496, 0, 0, 0, 2497, 2498, 2499, 0, 740,
+ 0, 0, 1155, 0, 738, 0, 1155, 0, 0, 0,
+ 0, 0, 3004, 739, 739, 0, 0, 0, 0, 0,
+ 0, 0, 3005, 0, 0, 0, 0, 739, 0, 3006,
+ 0, 738, 0, 0, 0, 0, 0, 0, 0, 0,
+ 739, 739, 0, 738, 0, 0, 0, 0, 788, 0,
+ 744, 0, 3014, 0, 0, 3007, 0, 0, 0, 2924,
+ 3100, 0, 0, 0, 0, 0, 0, 2925, 2926, 2927,
+ 2928, 2929, 2930, 2931, 2932, 2933, 0, 2924, 0, 0,
+ 5941, 0, 0, 0, 0, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, 3008, 738, 738, 0, 5974, 3009,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 740, 740, 0, 0, 0, 0,
+ 0, 3010, 2683, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3011, 0, 0, 744,
+ 0, 740, 0, 0, 740, 0, 5947, 0, 5948, 744,
+ 0, 0, 2924, 0, 0, 0, 0, 0, 0, 0,
+ 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, 3008,
+ 0, 0, 0, 5976, 3009, 0, 0, 2735, 0, 2495,
+ 1155, 1155, 2496, 0, 0, 0, 2497, 2498, 2499, 0,
+ 0, 3012, 0, 0, 3013, 0, 3010, 2683, 0, 0,
+ 0, 0, 0, 0, 0, 0, 887, 381, 0, 0,
+ 0, 3011, 738, 3005, 0, 0, 382, 382, 382, 0,
+ 3006, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 744, 0, 0, 744, 744, 0, 0, 0,
+ 0, 740, 0, 0, 0, 0, 3007, 0, 0, 0,
+ 0, 0, 2735, 0, 0, 0, 2007, 0, 0, 0,
+ 740, 0, 2008, 0, 0, 0, 3012, 0, 0, 3013,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 740, 0, 3014, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 2495, 0, 6076,
+ 2496, 0, 0, 0, 2497, 2498, 2499, 2010, 0, 0,
+ 0, 0, 0, 2160, 0, 2495, 0, 0, 2496, 0,
+ 0, 3004, 2497, 2498, 2499, 0, 0, 0, 0, 0,
+ 0, 3005, 0, 0, 0, 0, 0, 0, 3006, 3004,
+ 0, 0, 0, 3848, 0, 0, 744, 0, 0, 3005,
+ 0, 0, 0, 0, 0, 0, 3006, 0, 3014, 0,
+ 3008, 0, 0, 2011, 3007, 3009, 0, 0, 740, 0,
+ 2012, 0, 0, 2013, 0, 0, 0, 0, 0, 0,
+ 738, 0, 3007, 2924, 0, 0, 0, -3512, -3512, 0,
+ 0, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933,
+ 2014, 0, 3011, 0, 6015, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 382, 0, 0, 0, 0,
+ 0, 740, 2495, 740, 0, 2496, 0, 0, 0, 2497,
+ 2498, 2499, 0, 3849, 2015, 0, 740, 0, 740, 0,
+ 0, 0, 0, -3512, 0, 0, 3004, 6197, 0, 6199,
+ 0, 0, 0, 0, 0, 0, 3005, 3012, 2924, 0,
+ 738, 0, 0, 3006, 0, 0, 2925, 2926, 2927, 2928,
+ 2929, 2930, 2931, 2932, 2933, 0, 738, 0, 3008, 6357,
+ 0, 0, 0, 3009, 0, 0, 0, 0, 3920, 3007,
+ 738, 0, 3133, 3926, 738, 0, 3008, 0, 0, 2112,
+ 0, 3009, 0, 2017, 0, 3010, 2683, 740, 0, 0,
+ 0, 0, 0, 2018, 0, 0, 0, 0, 0, 0,
+ 3011, 0, 2019, 3010, 2683, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 2020, 788, 0, 788, 3011, 0,
+ 0, 788, 0, 788, 0, 0, 788, 0, 0, 3014,
+ 788, 0, 1537, 0, 0, 2953, 0, 0, 1537, 0,
+ 0, 2735, 0, 0, 0, 0, 0, 0, 740, 0,
+ 0, 0, 0, 4015, 0, 3012, 2022, 2023, 3013, 2735,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 740, 0, 0, 3012, 0, 0, 3013, 0, 0, 1537,
+ 0, 0, 0, 3008, 0, 0, 0, 2024, 3009, 0,
+ 0, 0, 740, 0, 0, 740, 0, 0, 0, 0,
+ 0, 0, 0, 0, 738, 0, 0, 0, 0, 0,
+ 3010, 2683, 738, 738, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3011, 0, 2495, 0, 2924,
+ 2496, 0, 0, 0, 2497, 2498, 2499, 2925, 2926, 2927,
+ 2928, 2929, 2930, 2931, 2932, 2933, 0, 3014, 0, 0,
+ 0, 3004, 0, 0, 0, 2025, 0, 0, 0, 0,
+ 0, 3005, 0, 0, 0, 3014, 2735, 0, 3006, 0,
+ 0, 887, 381, 0, 0, 382, 0, 0, 0, 0,
+ 3012, 0, 0, 3013, 6393, 0, 0, 0, 0, 0,
+ 0, 0, 738, 0, 3007, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3850, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 887, 381, 0, 381, 0, 0, 2924, 0, 0,
+ 0, 0, 1155, 0, 2160, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, 739, 2924, 0, 0, 6379, 0,
+ 0, 0, 3014, 2925, 2926, 2927, 2928, 2929, 2930, 2931,
+ 2932, 2933, 0, 0, 0, 0, 1537, 739, 0, 0,
+ 0, 0, 0, 1155, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 6477, 739, 0, 0, 3008, 0,
+ 381, 739, 0, 3009, 0, 739, 0, 0, 0, 0,
+ 0, 0, 0, 0, 739, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3010, 2683, 0, 0, 0,
+ 0, 0, 739, 0, 0, 0, 0, 0, 0, 1155,
+ 3011, 740, 0, 0, 0, 0, 0, 0, 0, 3133,
+ 0, 0, 0, 3133, 0, 0, 1155, 0, 0, 0,
+ 0, 0, 2924, 0, 0, 0, 739, 0, 0, 0,
+ 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, 1156,
+ 0, 2735, 0, 6581, 0, 0, 739, 739, 0, 0,
+ 0, 0, 382, 0, 0, 3012, 0, 382, 3013, 382,
+ 0, 0, 0, 6569, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 381, 739, 0,
+ 0, 381, 0, 382, 0, 0, 0, 0, 738, 0,
+ 0, 0, 0, 0, 6583, 6583, 0, 0, 0, 0,
+ 0, 0, 0, 739, 0, 381, 0, 0, 0, 739,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 2007, 738, 0, 739, 0, 0, 2008, 0, 1156, 740,
+ 739, 0, 740, 739, 0, 0, 0, 0, 0, 739,
+ 0, 0, 0, 0, 0, 0, 0, 3014, 0, 1537,
+ 0, 0, 0, 0, 0, 0, 887, 0, 0, 739,
+ 0, 0, 0, 0, 1537, 739, 0, 0, 0, 1537,
+ 0, 2010, 739, 0, 2495, 0, 0, 2496, 0, 738,
+ 0, 2497, 2498, 2499, 0, 0, 739, 738, 0, 0,
+ 0, 0, 0, 0, 0, 738, 0, 0, 3004, 739,
+ 0, 0, 0, 0, 381, 0, 0, 0, 3005, 0,
+ 739, 0, 0, 0, 0, 3006, 0, 0, 0, 0,
+ 0, 6583, 740, 740, 0, 0, 0, 2011, 0, 0,
+ 0, 0, 0, 740, 2012, 2394, 0, 2013, 0, 0,
+ 0, 3007, 3820, 0, 0, 0, 0, 2924, 0, 0,
+ 740, 0, 3100, 0, 0, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, 2014, 0, 0, 0, 6599, 0,
+ 381, 0, 0, 0, 0, 738, 738, 0, 0, 0,
+ 4, 0, 0, 0, 0, 0, 0, 0, 0, 738,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2015, 5,
+ 0, 0, 738, 738, 0, 0, 0, 0, 0, 6,
+ 7, 0, 0, 2007, 0, 0, 9, 10, 382, 2008,
+ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
+ 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
+ 31, 32, 33, 34, 35, 0, 0, 740, 37, 0,
+ 38, 39, 0, 0, 0, 3008, 40, 0, 0, 0,
+ 3009, 0, 0, 2112, 2010, 2007, 0, 2017, 0, 0,
+ 0, 2008, 0, 0, 0, 0, 0, 2018, 0, 0,
+ 744, 0, 3010, 2683, 744, 0, 2019, 0, 0, 0,
+ 3905, 0, 1902, 0, 0, 788, 0, 3011, 2020, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 41, 3133, 0, 2010, 3926, 0, 3926,
+ 2011, 0, 0, 0, 3133, 0, 0, 2012, 0, 0,
+ 2013, 0, 0, 0, 0, 0, 0, 4193, 2735, 0,
+ 2022, 2023, 0, 0, 744, 0, 0, 0, 0, 0,
+ 0, 0, 3012, 0, 0, 3013, 0, 2014, 0, 739,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 887,
+ 0, 4194, 2011, 1537, 0, 0, 0, 739, 0, 2012,
+ 0, 1537, 2013, 0, 739, 0, 0, 0, 0, 0,
+ 42, 2015, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3133, 0, 0, 2014,
+ 43, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2495, 0, 0, 2496, 0, 0, 0, 2497, 2498,
+ 2499, 0, 0, 44, 0, 0, 0, 0, 0, 2025,
+ 0, 0, 0, 2015, 3014, 3004, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3005, 2112, 45, 381, 0,
+ 2017, 0, 3006, 0, 381, 0, 0, 0, 0, 0,
+ 2018, 0, 0, 0, 740, 0, 1537, 0, 1537, 2019,
+ 0, 0, 0, 0, 0, 0, 0, 0, 3007, 0,
+ 0, 2020, 1535, 0, 0, 0, 46, 0, 0, 47,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2112, 0,
+ 0, 0, 2017, 0, 0, 744, 740, 0, 1535, 0,
+ 0, 48, 2018, 744, 0, 0, 744, 0, 740, 0,
+ 4707, 2019, 0, 2022, 2023, 0, 0, 0, 744, 0,
+ 0, 0, 0, 2020, 2924, 0, 0, 0, 0, 0,
+ 0, 739, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932,
+ 2933, 0, 740, 0, 4708, 6677, 0, 2495, 0, 0,
+ 2496, 0, 1537, 0, 2497, 2498, 2499, 0, 4509, 0,
+ 0, 0, 4765, 4510, 0, 2022, 2023, 0, 0, 0,
+ 0, 3004, 0, 0, 0, 0, 0, 0, 0, 2160,
+ 0, 3005, 3008, 0, 0, 2160, 0, 3009, 3006, 0,
+ 0, 49, 0, 0, 1537, 0, 4766, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3010,
+ 2683, 0, 2025, 0, 3007, 0, 0, 0, 0, 0,
+ 382, 0, 3926, 0, 3011, 0, 0, 0, 2495, 0,
+ 0, 2496, 0, 0, 0, 2497, 2498, 2499, 0, 740,
+ 0, 50, 0, 0, 0, 0, 739, 739, 0, 0,
+ 0, 0, 3004, 0, 0, 0, 0, 51, 0, 0,
+ 0, 0, 3005, 0, 2025, 2735, 0, 0, 0, 3006,
+ 0, 0, 52, 739, 0, 0, 739, 0, 0, 3012,
+ 0, 0, 3013, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1537, 0, 0, 3007, 0, 0, 0, 0,
+ 0, 0, 53, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3926, 54, 55, 56, 57, 58,
+ 59, 0, 0, 60, 61, 1585, 2360, 0, 3008, 0,
+ 66, 0, 0, 3009, 0, 0, 740, 0, 1537, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 381, 381,
+ 381, 0, 0, 0, 0, 3010, 2683, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 3011, 4511, 0, 739, 0, 0, 0, 0, 0, 0,
+ 788, 2394, 0, 0, 6532, 0, 0, 0, 0, 0,
+ 0, 0, 739, 0, 0, 0, 0, 0, 744, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3008,
+ 0, 2735, 0, 739, 3009, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, -2604, 3012, 0, 0, 3013, 0,
+ 0, 0, 0, 0, 1535, 0, 3010, 2683, 0, 0,
+ 0, 1537, 0, 0, 0, 1535, 0, 0, 0, 0,
+ 0, 3011, 0, 5120, 0, 0, 0, 740, 0, 740,
+ 0, 1535, 0, 0, 1537, 0, 0, 0, 0, 0,
+ 0, 2924, 0, 0, 0, -2604, 0, 0, 0, 2925,
+ 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, -2604, 1537,
+ 0, 0, 2735, 0, -2604, 0, 0, 0, 0, -2604,
+ 739, 0, 0, 0, 740, -2604, 3012, 0, -2604, 3013,
+ 0, 0, -2604, 0, 1312, 0, 2495, 3014, 0, 2496,
+ 0, 0, 0, 2497, 2498, 2499, 738, 0, 0, 0,
+ 0, 0, 6533, 0, 5121, 0, 0, 0, 0, 0,
+ 3004, -2604, 0, 4466, 0, 0, 0, 381, 0, 738,
+ 3005, 0, 1535, 739, 382, 739, 0, 3006, 0, 1312,
+ 0, -2604, 0, 0, 0, 0, 0, 738, 739, 0,
+ 739, 0, 887, 738, 0, 0, 0, 738, 0, 0,
+ 0, 0, 0, 3007, 0, 0, 738, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3100, 0, 3014, 0,
+ 0, 744, 0, 0, 738, 0, 0, 0, 0, 0,
+ -2604, 0, 0, -2604, 0, 0, 0, 2924, 0, -2604,
+ 0, 0, 0, 0, 0, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, 0, 0, 0, 0, 738, 739,
+ 0, 0, 0, 0, 3133, 0, 0, 0, 0, 0,
+ 0, 1155, 0, 0, 0, 0, 0, 0, 738, 738,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, -2604, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1535, 0, 0, 887,
+ 738, 0, 0, 887, 0, 0, 0, 3008, 2924, 0,
+ 739, 0, 3009, 0, 0, 0, 2925, 2926, 2927, 2928,
+ 2929, 2930, 2931, 2932, 2933, 738, 0, 887, 0, 0,
+ 0, 738, 739, 0, 3010, 2683, 0, 0, 0, 0,
+ 0, 1126, 0, 0, 3926, 738, 0, 0, 0, 3011,
+ 1155, 0, 738, 0, 739, 738, 0, 739, 0, 0,
+ 0, 738, 0, 0, 0, 0, 0, 0, 0, -2604,
+ 3926, 0, 740, 0, 0, 0, 0, 0, 0, 0,
+ 0, 738, 0, 0, 0, 0, 740, 738, 0, 0,
+ 2735, 0, 0, -2604, 738, -2604, -2604, 0, 0, 0,
+ 0, 0, 0, 0, 3012, 0, 0, 3013, 738, 0,
+ 0, 0, 0, 0, 0, 0, 0, 382, 0, 0,
+ 0, 738, 0, 0, 0, 0, 887, 0, 0, 0,
+ 0, 0, 738, 0, 0, -2604, 0, 381, -2604, -2604,
+ 0, -2604, 0, 0, 0, 0, 0, 0, 0, 2979,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 895, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 4, 0, 955, 0,
+ 0, 0, 887, 0, 0, 0, 3014, 0, 0, 0,
+ 0, 0, 0, 0, 0, 5, 0, 0, 0, 0,
+ 0, 895, 1537, 0, 0, 6, 7, 0, 0, 0,
+ 0, 0, 9, 10, 0, 0, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
+ 35, 0, 0, 0, 37, 0, 38, 39, 0, 0,
+ 1159, 3926, 40, 0, 3133, 0, 0, 0, 1159, 0,
+ 1159, 0, 0, 0, 0, 0, 0, 1535, 0, 0,
+ 0, 0, 0, 895, 0, 0, 0, 0, 0, 0,
+ 0, 0, 382, 0, 740, 0, 2924, 0, 0, 0,
+ 0, 0, 0, 0, 2925, 2926, 2927, 2928, 2929, 2930,
+ 2931, 2932, 2933, 739, 0, 0, 0, 0, 0, 41,
+ 0, 0, 0, 0, 0, 0, 0, 0, 744, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1535, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 381, 0, 0, 0, 0, 381,
+ 0, 381, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 738, 1535, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 788, 0, 381, 42, 0, 0, 738,
+ 382, 0, 0, 0, 0, 0, 738, 0, 0, 0,
+ 0, 0, 1537, 0, 0, 1535, 43, 0, 0, 0,
+ 0, 0, 0, 0, 0, 740, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1312, 44,
+ 0, 739, 788, 0, 739, 0, 0, 0, 0, 0,
+ 0, 740, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 45, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 887, 0, 0, 0, 0, 0, 887, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 46, 0, 0, 47, 0, 0, 0, 0,
+ 1312, 1312, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1535, 0, 48, 0, 0,
+ 0, 0, 0, 744, 739, 739, 1535, 0, 0, 0,
+ 0, 0, 0, 0, 0, 739, 0, 1537, 0, 0,
+ 0, 0, 1535, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 739, 0, 0, 0, 0, 0, 740, 0,
+ 0, 0, 0, 738, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1537, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1535, 0, 1537, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 49, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1535, 0, 0, 0,
+ 381, 0, 0, 0, 0, 0, 0, 0, 0, 1535,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1535, 0, 0, 0, 0, 0, 0, 0, 739,
+ 0, 0, 0, 0, 0, 0, 2495, 50, 0, 2496,
+ 0, 0, 0, 2497, 2498, 2499, 0, 0, 0, 1537,
+ 0, 0, 0, 51, 0, 0, 0, 0, 738, 738,
+ 3004, 1535, 1535, 0, 0, 0, 0, 0, 52, 0,
+ 3005, 0, 0, 0, 0, 0, 0, 3006, 0, 0,
+ 0, 0, 0, 0, 0, 738, 0, 0, 738, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 53, 0,
+ 382, 0, 0, 3007, 0, 0, 0, 0, 0, 3905,
+ 0, 54, 55, 56, 57, 58, 59, 0, 0, 60,
+ 61, 1585, 3589, 0, 0, 0, 66, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 382,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1312, 1312,
+ 887, 887, 887, 0, 0, 0, 0, 0, 382, 5847,
+ 0, 1537, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 738, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 2495, 0, 0, 2496, 738, 0, 0, 2497, 2498, 2499,
+ 744, 1535, 0, 0, 0, 0, 0, 3008, 0, 0,
+ 0, 0, 3009, 0, 3004, 738, 0, 4514, 0, 0,
+ 0, 0, 0, 4, 3005, 0, 744, 0, 0, 0,
+ 1526, 3006, 0, 0, 3010, 2683, 0, 0, 0, 0,
+ 744, 0, 5, 0, 0, 0, 739, 0, 0, 3011,
+ 0, 744, 6, 7, 0, 0, 1526, 3007, 0, 9,
+ 10, 0, 0, 11, 12, 13, 14, 15, 16, 17,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
+ 28, 29, 30, 31, 32, 33, 34, 35, 739, 0,
+ 2735, 37, 0, 38, 39, 0, 0, 0, 0, 40,
+ 739, 0, 738, 0, 3012, 0, 0, 3013, 0, 0,
+ 0, 0, 0, 0, 0, 0, 895, 0, 0, 0,
+ 0, 0, 0, 0, 955, 0, 4482, 0, 0, 0,
+ 0, 0, 0, 955, 739, 0, 0, 0, 0, 0,
+ 0, 955, 0, 0, 955, 0, 0, 0, 0, 887,
+ 0, 0, 0, 0, 0, 738, 41, 738, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3926,
+ 738, 3008, 738, 0, 0, 0, 3009, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3014, 0, 3010, 2683,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 381, 3011, 0, 0, 0, 744, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 739, 0, 42, 0, 0, 2495, 0, 0, 2496,
+ 0, 738, 0, 2497, 2498, 2499, 0, 955, 0, 0,
+ 0, 0, 1538, 43, 2735, 0, 955, 0, 0, 0,
+ 3004, 0, 0, 955, 0, 0, 955, 0, 3012, 0,
+ 3005, 3013, 0, 0, 0, 0, 44, 3006, 1538, 0,
+ 0, 0, 0, 0, 744, 0, 0, 0, 0, 3926,
+ 0, 0, 0, 0, 0, 0, 2924, 0, 0, 0,
+ 45, 0, 738, 3007, 2925, 2926, 2927, 2928, 2929, 2930,
+ 2931, 2932, 2933, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 738, 0, 0, 0, 739, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 46,
+ 0, 0, 47, 0, 0, 0, 738, 0, 0, 738,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 3014, 1537, 0, 0, 48, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 955, 955, 0,
+ 0, 0, 1526, 0, 1159, 0, 0, 0, 1159, 0,
+ 0, 0, 0, 1526, 0, 0, 0, 0, 0, 0,
+ 1537, 0, 0, 0, 0, 1537, 1537, 3008, 0, 1526,
+ 0, 0, 3009, 0, 0, 955, 0, 0, 0, 887,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3100,
+ 0, 0, 0, 0, 3010, 2683, 0, 0, 0, 739,
+ 0, 739, 0, 0, 49, 0, 0, 0, 0, 3011,
+ 2924, 0, 0, 0, 0, 0, 0, 0, 2925, 2926,
+ 2927, 2928, 2929, 2930, 2931, 2932, 2933, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 739, 0, 0, 0,
+ 2735, 0, 0, 0, 50, 0, 0, 0, 0, 0,
+ 1526, 0, 0, 0, 3012, 0, 0, 3013, 0, 0,
+ 51, 0, 0, 0, 744, 0, 0, 0, 5847, 1537,
+ 744, 0, 0, 0, 744, 52, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 381, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 53, 0, 2495, 0, 0,
+ 2496, 0, 1159, 1159, 2497, 2498, 2499, 0, 54, 55,
+ 56, 57, 58, 59, 0, 0, 60, 61, 1585, 0,
+ 0, 3004, 0, 66, 0, 0, 955, 955, 895, 0,
+ 0, 3005, 0, 0, 0, 738, 3014, 0, 3006, 955,
+ 0, 0, 0, 0, 1538, 955, 0, 0, 0, 955,
+ 0, 955, 0, 0, 0, 1538, 0, 0, 1535, 0,
+ 0, 0, 1535, 1535, 3007, 0, 0, 0, 5074, 0,
+ 0, 1538, 0, 0, 1526, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 887, 0, 0, 0,
+ 0, 887, 0, 887, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 955, 0, 955, 955, 887, 0, 0,
+ 0, 0, 1535, 0, 0, 0, 0, 0, 1535, 0,
+ 0, 0, 0, 0, 0, 0, 2924, 0, 0, 0,
+ 0, 0, 0, 0, 2925, 2926, 2927, 2928, 2929, 2930,
+ 2931, 2932, 2933, 0, 0, 0, 0, 0, 0, 4519,
+ 0, 0, 1538, 738, 0, 0, 738, 0, 0, 1535,
+ 0, 0, 0, 0, 0, 0, 0, 0, 3008, 0,
+ 0, 0, 0, 3009, 739, 0, 0, 0, 0, 1537,
+ 0, 0, 0, 0, 0, 0, 0, 0, 739, 0,
+ 0, 0, 0, 0, 0, 3010, 2683, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 3011, 0, 0, 0, 0, 0, 0, 0, 0, 381,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 955, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 738, 738, 0, 0,
+ 0, 2735, 0, 0, 0, 0, 0, 738, 0, 0,
+ 0, 0, 0, 0, 0, 3012, 0, 0, 3013, 0,
+ 0, 0, 0, 0, 738, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1538, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 955, 0, 0,
+ 0, 0, 2495, 788, 0, 2496, 0, 0, 0, 2497,
+ 2498, 2499, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1526, 3004, 955, 0, 4526,
+ 0, 0, 0, 0, 0, 0, 3005, 3014, 0, 0,
+ 0, 0, 0, 3006, 0, 0, 1535, 0, 0, 0,
+ 0, 738, 0, 0, 0, 955, 955, 955, 0, 955,
+ 0, 0, 0, 0, 0, 744, 0, 0, 0, 3007,
+ 0, 0, 0, 0, 381, 0, 739, 0, 0, 955,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1526, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1535,
+ 0, 0, 0, 1535, 0, 0, 0, 0, 0, 0,
+ 1526, 0, 0, 0, 0, 0, 0, 2924, 0, 0,
+ 0, 0, 0, 0, 0, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, 0, 0, 0, 955, 0, 788,
+ 0, 955, 955, 1526, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 955, 0, 0,
+ 0, 2007, 381, 3008, 0, 0, 0, 2008, 3009, 0,
+ 0, 0, 0, 0, 2070, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 739, 0, 0,
+ 3010, 2683, 0, 0, 0, 0, 2071, 0, 0, 0,
+ 0, 0, 0, 2160, 0, 3011, 0, 0, 0, 0,
+ 0, 0, 2010, 739, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1538, 0, 0,
+ 0, 0, 0, 895, 0, 0, 0, 0, 0, 1535,
+ 0, 0, 0, 0, 1159, 0, 2735, 2072, 0, 0,
+ 0, 0, 0, 1526, 1535, 0, 0, 0, 738, 1535,
+ 3012, 0, 0, 3013, 1526, 0, 0, 0, 2011, 0,
+ 0, 0, 0, 0, 0, 2012, 0, 0, 2013, 0,
+ 1526, 0, 0, 0, 0, 1159, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1538, 0, 0, 0, 0,
+ 738, 0, 0, 0, 0, 2014, 0, 0, 0, 0,
+ 0, 0, 738, 0, 0, 0, 0, 0, 744, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 739, 0, 1538, 1526, 0, 0, 2073, 0, 0, 2015,
+ 0, 1159, 0, 0, 0, 0, 738, 0, 0, 0,
+ 0, 0, 3014, 0, 1526, 0, 0, 0, 1159, 0,
+ 0, 0, 0, 0, 0, 1538, 0, 1526, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1526,
+ 0, 0, 0, 0, 0, 2074, 0, 0, 0, 2075,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 2076, 0, 0, 0, 2017, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2018, 1526,
+ 1526, 0, 0, 0, 887, 0, 744, 2019, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2077, 2020,
+ 0, 0, 0, 738, 0, 0, 955, 955, 955, 0,
+ 0, 0, 2924, 0, 0, 0, 0, 0, 0, 0,
+ 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, 0,
+ 0, 0, 0, 0, 0, 1538, 0, 0, 2078, 0,
+ 0, 2022, 2023, 2079, 0, 0, 1538, 0, 0, 0,
+ 0, 0, 381, 0, 0, 0, 0, 0, 895, 0,
+ 0, 0, 1538, 0, 1535, 0, 2080, 1535, 0, 1535,
+ 0, 0, 2081, 0, 1535, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2082, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 738, 381, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1538, 0, 0, 0, 0,
+ 381, 0, 0, 1535, 0, 0, 0, 0, 0, 1526,
+ 955, 1535, 0, 955, 0, 0, 1538, 0, 0, 0,
+ 2025, 0, 0, 955, 0, 0, 0, 0, 0, 1538,
+ 0, 0, 0, 0, 0, 0, 1535, 0, 0, 0,
+ 0, 1538, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 955, 955, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 955,
+ 0, 0, 955, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1538, 1538, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 738, 0, 738, 0, 0, 1535, 0, 1535, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 80, 0, 0, 0, 0,
+ 83, 0, 0, 0, 87, 0, 88, 0, 90, 91,
+ 955, 0, 0, 0, 955, 955, 0, 0, 738, 100,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 112, 113, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 955, 955, 0, 0, 0, 0, 955, 955, 0,
+ 0, 0, 0, 0, 955, 955, 955, 0, 887, 955,
+ 0, 955, 1535, 955, 955, 955, 955, 955, 955, 0,
+ 0, 955, 121, 955, 955, 0, 0, 955, 0, 0,
+ 0, 0, 122, 0, 123, 124, 0, 0, 0, 0,
+ 0, 1538, 955, 955, 955, 0, 0, 0, 0, 0,
+ 0, 0, 1236, 0, 1535, 0, 0, 0, 0, 955,
+ 0, 895, 133, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 135, 0, 136, 137, 0, 0,
+ 0, 0, 1535, 140, 0, 141, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 143, 0, 144,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 147, 0, 148, 0, 0, 151,
+ 0, 2495, 0, 0, 2496, 0, 0, 0, 2497, 2498,
+ 2499, 0, 0, 0, 152, 0, 153, 0, 0, 0,
+ 154, 0, 0, 0, 0, 3004, 155, 0, 5127, 0,
+ 0, 0, 1535, 0, 157, 3005, 159, 0, 0, 0,
+ 0, 0, 3006, 161, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1535, 0, 0, 0, 0, 0,
+ 165, 0, 0, 0, 0, 0, 0, 0, 3007, 0,
+ 0, 0, 0, 0, 0, 0, 0, 169, 1535, 0,
+ 0, 0, 955, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 738, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 738, 0, 0, 0, 0, 0, 0, 180, 181, 0,
+ 0, 0, 955, 182, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 183, 0, 0,
+ 0, 887, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 2495, 189, 0, 2496, 0, 0,
+ 0, 2497, 2498, 2499, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 955, 0, 0, 3004, 0,
+ 0, 1535, 3008, 0, 0, 0, 0, 3009, 3005, 0,
+ 0, 0, 0, 0, 0, 3006, 0, 0, 0, 199,
+ 0, 0, 0, 0, 1535, 0, 0, 0, 0, 3010,
+ 2683, 0, 0, 201, 0, 0, 0, 0, 0, 202,
+ 203, 3007, 204, 0, 3011, 0, 0, 205, 0, 1535,
+ 0, 0, 0, 206, 0, 0, 208, 0, 0, 0,
+ 0, 0, 0, 210, 2495, 0, 0, 2496, 0, 211,
+ 212, 2497, 2498, 2499, 0, 0, 0, 213, 0, 0,
+ 0, 215, 0, 0, 0, 2735, 0, 0, 3004, 0,
+ 0, 218, 0, 0, 0, 0, 0, 0, 3005, 3012,
+ 0, 0, 3013, 0, 0, 3006, 220, 0, 0, 0,
+ 5583, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 226, 0, 227, 0,
+ 0, 3007, 0, 0, 0, 0, 887, 229, 738, 0,
+ 0, 0, 0, 230, 0, 0, 1526, 0, 231, 0,
+ 1526, 1526, 0, 0, 0, 3008, 0, 0, 0, 0,
+ 3009, 234, 0, 0, 0, 0, 0, 0, 0, 0,
+ 955, 955, 955, 955, 955, 955, 955, 955, 955, 0,
+ 955, 0, 3010, 2683, 246, 0, 0, 0, 0, 0,
+ 955, 3014, 0, 955, 0, 0, 0, 3011, 0, 0,
+ 0, 0, 247, 0, 1535, 0, -149, 0, 0, 0,
+ 1526, 0, 0, 0, 0, 0, 1526, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 5575, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2735, 0,
+ 0, 0, 0, 0, 887, 3008, 0, 0, 0, 955,
+ 3009, 0, 3012, 955, 0, 3013, 955, 1526, 955, 0,
+ 0, 955, 0, 0, 0, 0, 0, 0, 0, 738,
+ 0, 0, 3010, 2683, 0, 0, 955, 0, 0, 0,
+ 0, 0, 0, 0, 0, 955, 955, 3011, 0, 0,
+ 0, 2924, 0, 0, 1535, 738, 0, 0, 0, 2925,
+ 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, 0, 2495,
+ 0, 0, 2496, 0, 0, 0, 2497, 2498, 2499, 0,
+ 1535, 0, 0, 0, 0, 0, 0, 0, 2735, 0,
+ 0, 0, 0, 3004, 0, 0, 0, 0, 0, 0,
+ 0, 0, 3012, 3005, 3014, 3013, 0, 0, 0, 0,
+ 3006, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1538, 0,
+ 0, 0, 1538, 1538, 0, 0, 3007, 0, 0, 0,
+ 0, 0, 0, 2495, 895, 0, 2496, 0, 0, 0,
+ 2497, 2498, 2499, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 3004, 0, 0,
+ 0, 0, 738, 0, 0, 0, 0, 3005, 0, 955,
+ 0, 0, 0, 0, 3006, 0, 0, 0, 0, 0,
+ 955, 0, 1538, 955, 3014, 955, 955, 0, 1538, 0,
+ 0, 0, 0, 0, 2924, 0, 0, 0, 0, 0,
+ 3007, 0, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932,
+ 2933, 0, 1535, 1159, 1526, 0, 0, 0, 0, 0,
+ 0, 5581, 0, 0, 0, 0, 0, 0, 0, 1538,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 3008, 0, 0, 0, 0, 3009, 0, 0, 0, 0,
+ 0, 895, 0, 0, 0, 895, 0, 0, 0, 0,
+ 0, 1535, 0, 0, 1535, 0, 0, 3010, 2683, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 895,
+ 0, 0, 3011, 0, 2924, 0, 0, 1526, 0, 0,
+ 5582, 1526, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932,
+ 2933, 0, 1159, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3008, 0, 0, 0, 0, 3009,
+ 0, 0, 0, 2735, 887, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 3012, 0, 0,
+ 3013, 3010, 2683, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3011, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 887, 0, 0, 0, 0, 895, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 887, 0, 0, 0, 0, 2735, 0, 0,
+ 0, 0, 955, 955, 955, 0, 0, 0, 955, 0,
+ 0, 3012, 1535, 0, 3013, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1526, 0, 3014,
+ 0, 0, 0, 0, 0, 955, 1538, 0, 0, 0,
+ 0, 0, 1526, 0, 895, 0, 0, 1526, 2495, 0,
+ 0, 2496, 0, 0, 0, 2497, 2498, 2499, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 3004, 0, 0, 0, 0, 955, 0, 0,
+ 0, 0, 3005, 0, 0, 0, 0, 0, 0, 3006,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 3014, 0, 0, 0, 0, 0, 1538,
+ 0, 0, 0, 1538, 0, 3007, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2924,
+ 0, 0, 0, 0, 0, 955, 0, 2925, 2926, 2927,
+ 2928, 2929, 2930, 2931, 2932, 2933, 0, 1535, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1535, 2495, 0, 0, 2496,
+ 0, 0, 0, 2497, 2498, 2499, 0, 0, 0, 0,
+ 0, 0, 0, 2924, 0, 0, 0, 1535, 0, 0,
+ 3004, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933,
+ 3005, 0, 0, 0, 0, 0, 0, 3006, 0, 3008,
+ 0, 0, 0, 0, 3009, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1538,
+ 0, 0, 0, 3007, 0, 0, 3010, 2683, 0, 0,
+ 0, 0, 955, 0, 1538, 955, 0, 955, 955, 1538,
+ 0, 3011, 0, 0, 0, 0, 0, 955, 0, 1535,
+ 0, 0, 955, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1526, 0, 0, 1526, 0, 1526, 0, 0,
+ 0, 0, 1526, 0, 0, 0, 0, 0, 955, 955,
+ 955, 0, 2735, 955, 0, 0, 0, 0, 0, 0,
+ 0, 955, 955, 955, 955, 0, 3012, 0, 0, 3013,
+ 0, 0, 895, 0, 0, 0, 0, 955, 895, 0,
+ 955, 0, 955, 6109, 0, 0, 0, 0, 0, 0,
+ 0, 1526, 0, 955, 955, 0, 0, 955, 0, 1526,
+ 0, 0, 0, 0, 0, 0, 0, 3008, 0, 0,
+ 0, 0, 3009, 0, 0, 0, 955, 0, 955, 0,
+ 955, 0, 0, 0, 1526, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3010, 2683, 0, 0, 0, 0,
+ 955, 1535, 0, 0, 0, 0, 0, 0, 0, 3011,
+ 0, 955, 80, 0, 0, 0, 0, 83, 3014, 0,
+ 0, 87, 0, 88, 0, 90, 91, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 100, 0, 0, 0,
+ 0, 0, 955, 0, 0, 0, 0, 0, 0, 0,
+ 2735, 0, 112, 113, 1526, 0, 1526, 955, 0, 0,
+ 0, 0, 0, 0, 3012, 0, 0, 3013, 0, 0,
+ 0, 955, 0, 0, 0, 0, 0, 0, 0, 955,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 5934, 0, 0, 0, 0, 0, 121,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 122,
+ 0, 123, 124, 0, 1538, 0, 0, 1538, 2924, 1538,
+ 0, 0, 0, 0, 1538, 0, 2925, 2926, 2927, 2928,
+ 2929, 2930, 2931, 2932, 2933, 0, 0, 0, 0, 133,
+ 0, 0, 0, 0, 0, 0, 955, 0, 0, 0,
+ 1526, 135, 0, 136, 137, 0, 3014, 0, 0, 0,
+ 140, 0, 141, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1538, 143, 0, 144, 0, 0, 0,
+ 0, 1538, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 147, 1526, 148, 0, 0, 151, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1538, 0, 0, 1535,
+ 0, 152, 0, 153, 0, 0, 0, 154, 0, 0,
+ 1526, 0, 0, 6085, 0, 0, 0, 0, 0, 0,
+ 0, 157, 0, 159, 0, 0, 0, 0, 0, 0,
+ 161, 0, 895, 895, 895, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2924, 165, 0, 0,
+ 0, 0, 0, 0, 2925, 2926, 2927, 2928, 2929, 2930,
+ 2931, 2932, 2933, 0, 169, 0, 1538, 0, 1538, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1526, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1526, 0, 180, 181, 0, 0, 0, 0,
+ 182, 0, 0, 0, 0, 0, 0, 0, 0, 1535,
+ 0, 0, 0, 0, 183, 0, 1526, 2495, 0, 0,
+ 2496, 0, 0, 0, 2497, 2498, 2499, 0, 0, 0,
+ 0, 0, 189, 0, 0, 0, 0, 0, 0, 0,
+ 0, 3004, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 3005, 1538, 0, 0, 0, 0, 0, 3006, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 199, 0, 0, 955,
+ 0, 1535, 0, 0, 3007, 955, 0, 0, 0, 0,
+ 201, 0, 0, 0, 1538, 0, 202, 203, 0, 204,
+ 0, 0, 0, 0, 205, 0, 0, 4991, 0, 0,
+ 206, 0, 0, 208, 0, 0, 0, 0, 0, 1526,
+ 210, 895, 1538, 0, 0, 0, 211, 212, 0, 0,
+ 1535, 0, 0, 0, 213, 1535, 1535, 0, 215, 0,
+ 0, 0, 1526, 0, 0, 0, 0, 0, 218, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 220, 955, 0, 0, 1526, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 226, 0, 227, 0, 0, 0, 0,
+ 0, 0, 1538, 0, 229, 0, 0, 0, 3008, 0,
+ 230, 0, 0, 3009, 0, 231, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1538, 0, 0, 0, 234, 0,
+ 0, 0, 0, 0, 0, 3010, 2683, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1538, 0,
+ 3011, 246, 0, 0, 0, 0, 0, 0, 0, 1535,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 247,
+ 0, 0, 0, -149, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2735, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3012, 0, 0, 3013, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1526, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 955, 0,
+ 0, 1538, 0, 0, 0, 0, 0, 955, 0, 0,
+ 0, 0, 0, 0, 0, 955, 0, 955, 0, 0,
+ 955, 0, 0, 0, 1538, 955, 955, 955, 955, 0,
+ 0, 955, 955, 955, 955, 955, 955, 955, 955, 955,
+ 955, 0, 0, 0, 955, 955, 955, 3014, 0, 1538,
+ 0, 0, 0, 0, 955, 0, 0, 0, 0, 955,
+ 0, 895, 0, 955, 0, 0, 0, 0, 0, 0,
+ 0, 955, 1526, 0, 955, 0, 955, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 955, 0, 0, 955,
+ 955, 0, 0, 0, 955, 955, 0, 0, 1526, 0,
+ 2007, 955, 0, 0, 0, 0, 2008, 0, 0, 0,
+ 0, 955, 0, 2070, 955, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 955, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 2071, 0, 0, 0, 1535,
+ 0, 0, 0, 0, 0, 0, 0, 2924, 0, 969,
+ 0, 2010, 0, 0, 0, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, 0, 0, 0, 970, 0, 0,
+ 0, 955, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2072, 0, 955, 0,
+ 0, 0, 971, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1538, 972, 0, 2011, 1031, 0,
+ 0, 0, 0, 1032, 2012, 0, 955, 2013, 0, 0,
+ 0, -872, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 973,
+ 1526, 0, 0, 0, 2014, 974, 0, 0, 0, 0,
+ 0, 1033, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 975, 1034, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 976, 2073, 0, 0, 2015, 0,
+ 1035, 0, 0, 977, 0, 0, 0, 0, 895, 1526,
+ 0, 0, 1526, 895, 1538, 895, 978, 0, 1036, 0,
+ 0, 0, 0, 0, 979, 0, 0, 0, 980, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 895,
+ 1538, 0, 1037, 0, 2074, 0, 0, -1080, 2075, 0,
+ 0, 0, 0, 1038, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1039, 2076, 0, 0, 0, 2017, 0, 0,
+ 0, 0, 0, 0, 0, 1040, 0, 2018, 0, 0,
+ 1041, 0, 0, 0, 981, 0, 2019, 1042, 0, 0,
+ 0, 0, 0, 0, -608, 0, 0, 2077, 2020, 0,
+ 0, 0, 0, 0, 0, 0, 1043, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 982, 0, 4123, 983, 0,
+ 2022, 2023, 2079, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 955, 1044, 0, 0, 0, 0, 0, 984,
+ 1526, 0, 0, 0, 0, 2080, 0, 0, 0, 0,
+ 0, 4124, 0, 985, 0, 0, 0, 0, 0, 0,
+ -468, 0, 1538, 0, 0, 2082, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1045, 0, 955, 955, 0, 0,
+ 986, 0, 0, 0, 0, 0, 0, 1046, 0, 987,
+ 0, 0, 0, 0, 0, 0, -468, 0, 1047, 988,
+ 0, 0, 0, 0, 0, 0, 0, 0, 925, 1048,
+ 0, 1538, 1049, 0, 1538, 955, 955, 0, 989, 2025,
+ 0, 0, 0, 0, 0, 990, 955, 0, 0, 0,
+ 0, -468, 0, 0, 991, 992, 0, 993, 994, 1050,
+ 0, 0, 1051, 0, 0, 0, 1052, 0, 1053, 0,
+ 0, 0, 0, 995, 0, 1054, 0, 0, 1055, 0,
+ 996, 0, 0, 997, 0, 0, 998, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1526, 0, 1056, 0, -468,
+ 0, 0, 0, 909, 1057, 0, 0, 0, 0, 0,
+ 1058, 0, 0, 1059, 0, 0, 0, 1060, 0, 0,
+ 0, 0, 0, 0, 0, 1061, 0, 1062, 0, 955,
+ 0, 0, 1063, 1526, 0, 0, 0, 0, 0, 0,
+ 955, 0, 0, 0, 0, 1064, 0, 0, 0, 0,
+ 0, 0, 0, 0, 910, 1526, 0, 0, 1065, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 955, 0,
+ 911, 955, 0, 0, 0, 0, 0, 0, 0, 955,
+ 955, 0, 1538, 0, 0, 0, 955, 955, 912, 0,
+ 0, 955, 0, 0, 913, 955, 0, 0, 955, 955,
+ 0, 0, 0, 955, 0, 0, 0, 0, 0, 955,
+ 0, 0, 914, 0, 0, 0, 0, 0, 0, 0,
+ 0, 955, 0, 915, 0, 0, 0, 1526, 0, 955,
+ 0, 0, 916, 955, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 917, 0, 0, 0, 0,
+ 918, 0, 0, 0, 0, 0, 0, 919, 0, 0,
+ 0, 0, 0, 953, 0, 0, 955, 0, 0, 0,
+ 0, 0, 0, 0, 955, 0, 920, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1121, 0, 0, 0, 955,
+ 0, 921, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1123, 0, 0, 0, 0, 0, 0, 1538, 0, 1131,
+ 0, 0, 0, 922, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1145, 0, 1121, 0, 0, 0,
+ 1168, 0, 0, 0, 0, 0, 0, 0, 0, 1526,
+ 1201, 0, 0, 0, 0, 1538, 0, 0, 0, 1206,
+ 0, 0, 0, 0, 923, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1538, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 924, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 925, 926,
+ 955, 0, 927, 0, 0, 0, 0, 955, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 928,
+ 0, 0, 929, 0, 0, 0, 930, 0, 931, 0,
+ 0, 0, 0, 0, 0, 932, 0, 0, 933, 1538,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 934, 0, 0,
+ 0, 0, 0, 0, 935, 955, 0, 0, 0, 936,
+ 937, 0, 0, 938, 0, 0, 0, 939, 0, 0,
+ 0, 955, 0, 0, 0, 0, 895, 940, 0, 0,
+ 0, 0, 941, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 942, 0, 0, 0, 0,
+ 0, 0, 955, 0, 0, 0, 0, 0, 943, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1526, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1538,
+ 0, 1538, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 955, 0, 0, 955, 0, 0, 955, 955, 955, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 955, 955, 0, 0, 955, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1526, 0, 0,
+ 955, 0, 0, 0, 0, 0, 0, 955, 0, 0,
+ 0, 0, 955, 0, 0, 955, 955, 0, 0, 0,
+ 0, 0, 0, 955, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 955, 0, 0, 955, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 955,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1526,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1538,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 955, 0, 0, 0, 0, 0, 0, 0, 1526, 0,
+ 0, 0, 0, 1526, 1526, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 895, 0, 0, 0, 0, 955, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1528, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1528, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 955, 0, 0, 1538,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1526, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 955, 0, 0, 0, 955, 0, 955, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 955, 0, 0, 0, 0,
+ 0, 955, 0, 0, 0, 955, 0, 0, 0, 0,
+ 0, 1538, 955, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1538, 0, 0, 0, 0, 1538, 1538, 0, 0, 0,
+ 955, 0, 0, 0, 0, 0, 955, 955, 0, 953,
+ 1301, 1301, 0, 0, 1301, 0, 0, 0, 1313, 0,
+ 1201, 0, 0, 1340, 0, 0, 1313, 0, 0, 1313,
+ 0, 0, 1201, 0, 1301, 0, 0, 1201, 0, 0,
+ 0, 1301, 955, 1201, 0, 0, 0, 0, 0, 0,
+ 955, 0, 0, 895, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1393, 0, 0, 0, 0, 0, 1201, 0,
+ 1301, 0, 1301, 0, 0, 1301, 0, 0, 955, 0,
+ 0, 0, 1340, 0, 0, 0, 0, 1450, 0, 1301,
+ 0, 0, 0, 0, 0, 1301, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1538, 1538,
+ 0, 0, 0, 0, 0, 0, 0, 1526, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 953, 0, 955, 0, 0, 0, 0, 0,
+ 955, 1313, 0, 955, 0, 1340, 955, 0, 1313, 0,
+ 0, 1313, 0, 0, 0, 0, 0, 955, 0, 0,
+ 0, 0, 0, 0, 955, 0, 0, 1301, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 955, 0, 0, 0, 0, 1528, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1528, 0,
+ 0, 0, 0, 955, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1528, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1201, 895, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1659, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1772, 1772, 0, 0, 0, 0, 1201, 0,
+ 0, 0, 0, 0, 955, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1201, 0, 0,
+ 0, 0, 1201, 0, 0, 1528, 0, 0, 0, 0,
+ 1772, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1201, 0, 0, 0, 0, 955, 955, 955, 0,
+ 0, 0, 0, 0, 1201, 955, 895, 0, 0, 1538,
+ 0, 0, 0, 0, 955, 0, 955, 0, 955, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 955, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 955, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1201,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1201, 0, 0, 0, 0, 1301, 1301, 0, 955, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 955, 1528,
+ 0, 0, 0, 0, 0, 0, 955, 955, 0, 0,
+ 0, 0, 955, 0, 0, 955, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 955, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 955, 0, 0, 0, 0,
+ 0, 1772, 1772, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 953, 0, 1301, 0, 0, 0,
+ 1313, 0, 0, 1340, 1313, 0, 1313, 0, 0, 0,
+ 0, 1301, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 955, 0,
+ 0, 0, 0, 0, 955, 1201, 0, 0, 0, 0,
+ 0, 1301, 1301, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 955, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1201, 1201, 1201, 0, 1301, 955, 953, 0,
+ 953, 953, 955, 0, 0, 0, 0, 2265, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 955, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 955, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 955, 0, 0,
+ 0, 955, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1301, 0, 1301, 1301, 0, 0, 0, 0, 0, 955,
+ 0, 0, 0, 0, 0, 0, 895, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1772, 0, 0, 0,
+ 0, 0, 0, 955, 955, 0, 0, 955, 0, 0,
+ 0, 955, 0, 0, 0, 895, 0, 0, 0, 0,
+ 1528, 0, 0, 0, 955, 955, 0, 0, 0, 0,
+ 2399, 0, 2399, 0, 895, 0, 1201, 0, 1121, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1201, 0, 0,
+ 0, 0, 0, 2437, 0, 0, 1201, 0, 0, 2443,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 0, 0, 0, 0, 1528, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1528, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1772, 1772, 1772, 0, 1772, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1528, 0,
+ 0, 0, 0, 0, 1772, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1201, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 0, 0, 1772, 1772, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1201, 1201, 1201,
+ 3063, 0, 1772, 0, 0, 0, 0, 0, 1528, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1528,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1528, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1528, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1528,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1528, 0, 0, 3206, 0, 0, 0, 0,
+ 0, 0, 0, 1301, 1528, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1201, 3234, 0, 0,
+ 0, 0, 0, 0, 0, 1201, 0, 0, 1301, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1528, 1528, 0, 0, 0, 0,
+ 0, 1340, 0, 1201, 0, 0, 0, 0, 0, 3300,
+ 3300, 0, 0, 3300, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1201, 0, 0, 1201,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1301, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1201,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1301, 1301, 1301, 1301, 1201, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1201,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1772, 1772, 1772, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1201, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1201, 0,
+ 0, 0, 0, 0, 1528, 0, 1301, 1301, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1301, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1201, 3300, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1301, 1301, 1301, 1301,
+ 0, 0, 0, 0, 0, 1201, 0, 0, 0, 0,
+ 0, 0, 1201, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 953, 0, 0, 953, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1772, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1313,
+ 1313, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1340, 1340, 0, 0, 1313, 0, 0, 1313, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1301, 1301, 0, 0, 0, 0, 0, 1301,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1201, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2399, 0, 0, 0,
+ 0, 0, 0, 1301, 0, 1313, 0, 0, 3630, 1313,
+ 1313, 0, 1201, 1201, 0, 1301, 0, 0, 0, 0,
+ 0, 0, 1201, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1201, 0, 0, 0, 0, 0, 1121, 1121,
+ 0, 0, 3666, 0, 0, 0, 1772, 1772, 0, 0,
+ 0, 0, 1772, 1772, 0, 0, 0, 0, 0, 1772,
+ 1772, 1772, 0, 0, 1772, 0, 1772, 1340, 1772, 1772,
+ 1772, 1772, 1772, 1772, 0, 0, 1772, 0, 1772, 1772,
+ 0, 0, 1772, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1772, 1772, 1772,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1772, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1301, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1772, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1772, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1772, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1528, 0, 0, 0, 1528, 1528, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1528, 0, 0, 0, 0,
+ 0, 1528, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1528, 0, 0, 1772, 1772, 1772, 1772, 1772,
+ 1772, 1772, 1772, 1772, 0, 1772, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1201, 1772, 0, 0, 1772, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1201, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1201, 0, 1772, 0, 0, 1301, 1772, 0,
+ 0, 1772, 0, 1772, 0, 0, 1772, 0, 0, 0,
+ 1201, 1201, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1772, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1772, 1772, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1201, 0, 0, 0, 0, 0,
+ 0, 0, 3885, 0, 3890, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1528,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1121, 0, 1121, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1772, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 953, 0, 0, 1313, 1340,
+ 1313, 1313, 0, 0, 1301, 0, 0, 1201, 0, 0,
+ 0, 0, 1528, 0, 0, 0, 1528, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3234,
+ 0, 0, 0, 0, 0, 0, 0, 4023, 1201, 0,
+ 0, 0, 0, 0, 4034, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1201, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1201, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1201, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1301, 0, 0, 1301, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1528, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1528, 0, 1201,
+ 1201, 0, 1528, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 4177, 0, 4180, 4182, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1772, 1772, 1772,
+ 0, 0, 0, 1772, 0, 0, 0, 0, 0, 0,
+ 0, 1301, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1301, 0, 0, 0, 0, 0,
+ 1772, 0, 1301, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3234, 0, 0, 0, 0,
+ 1201, 0, 0, 0, 0, 0, 4282, 0, 0, 1121,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1301, 4295, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 4177, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1301, 0, 4317, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2265, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1772, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 4381, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1301, 0, 1301, 0, 1301, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1528, 0, 0,
+ 1528, 0, 1528, 0, 2399, 0, 0, 1528, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1528, 953, 1301, 0,
+ 1313, 0, 1313, 1313, 1528, 1301, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 0, 0, 0, 1772, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1528,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1772, 1772, 1772, 0, 0, 1772, 0,
+ 0, 0, 0, 0, 0, 0, 1772, 1772, 1772, 1772,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 0, 1772, 0, 1772, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1772, 1772,
+ 0, 0, 1772, 0, 0, 0, 0, 0, 0, 1528,
+ 0, 1528, 0, 0, 0, 0, 0, 0, 0, 1340,
+ 0, 1772, 0, 1772, 0, 1772, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1772, 0, 0, 0, 1201,
+ 0, 0, 0, 0, 0, 0, 4588, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1201,
+ 0, 0, 0, 0, 0, 0, 0, 1772, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 0, 1528, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 4588, 0, 0, 0,
+ 4644, 0, 0, 4647, 4588, 0, 3890, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1528, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1528, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1772, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1301, 1301, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1528, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1528, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1528, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1201,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3300,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1528, 0, 0, 0, 0, 1529,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1528, 0, 0,
+ 0, 0, 0, 0, 0, 1529, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1528, 0, 1772, 0, 0, 0, 0, 0,
+ 1772, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1301, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1201, 1201,
+ 1201, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1201, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1772,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2399,
+ 1201, 1201, 0, 0, 0, 1201, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1201, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1528, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 4381,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1301, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3630,
+ 5045, 0, 0, 0, 0, 0, 0, 0, 1201, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1201, 0, 0, 1201, 0, 0, 1528, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1772, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1772, 1528, 0, 0, 0, 0, 0, 0,
+ 1772, 0, 1772, 0, 0, 1772, 0, 0, 0, 0,
+ 1772, 1772, 1772, 1772, 0, 0, 1772, 1772, 1772, 1772,
+ 1772, 1772, 1772, 1772, 1772, 1772, 0, 0, 0, 1772,
+ 1772, 1772, 0, 0, 0, 0, 0, 0, 0, 1772,
+ 0, 1529, 0, 0, 1772, 0, 0, 0, 1772, 0,
+ 0, 0, 1529, 0, 0, 0, 1772, 0, 0, 1772,
+ 0, 1772, 0, 0, 0, 0, 0, 0, 1529, 0,
+ 0, 1772, 0, 0, 1772, 1772, 0, 0, 0, 1772,
+ 1772, 0, 0, 0, 5151, 0, 1772, 0, 0, 0,
+ 0, 0, 0, 1201, 1201, 1201, 953, 0, 0, 4588,
+ 5173, 0, 0, 0, 5173, 5187, 5173, 0, 0, 1772,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1528, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1772, 0, 0, 1529,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 3890, 0, 1772, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1528, 0, 0, 1528, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 5249, 2399, 2399, 0, 0, 2399, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 3234, 5281, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 5302, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1529, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 5351, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1528, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 5395, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1301, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1301, 0, 1772, 0, 0,
+ 0, 0, 0, 0, 1201, 0, 0, 0, 0, 0,
+ 5439, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 3234, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1201, 0, 0, 0,
+ 0, 4588, 4295, 0, 0, 0, 0, 0, 0, 4177,
+ 1528, 0, 0, 0, 0, 0, 0, 0, 5489, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1201, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1772, 1772, 0, 0, 0, 0, 0, 0, 1528, 0,
+ 0, 1772, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2399, 1201, 0, 0, 0, 0, 0, 0,
+ 1528, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 4381, 4381, 4381, 4381, 4381, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1201, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1529, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1772, 0, 0, 0, 0, 0,
+ 0, 0, 1528, 0, 0, 1772, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1772, 0, 0, 1772, 0, 0, 0,
+ 0, 0, 1529, 0, 1772, 1772, 0, 0, 0, 0,
+ 0, 1772, 1772, 0, 0, 0, 1772, 0, 0, 0,
+ 1772, 0, 0, 1772, 1772, 0, 0, 0, 1772, 5615,
+ 0, 0, 0, 0, 1772, 1201, 1201, 1201, 1201, 1529,
+ 0, 0, 5173, 5187, 5173, 0, 1772, 5173, 0, 0,
+ 5629, 0, 0, 0, 4588, 0, 951, 0, 4588, 0,
+ 0, 0, 0, 0, 5644, 0, 0, 0, 0, 0,
+ 0, 0, 1529, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1340, 0, 1528, 0, 0, 0, 0, 0,
+ 0, 1772, 0, 0, 0, 4644, 0, 0, 0, 1772,
+ 0, 3890, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1121, 0, 0, 1772, 0, 0, 0, 1157, 0,
+ 0, 0, 0, 0, 0, 0, 1157, 0, 1157, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 3234, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 5720, 0, 0, 0, 0, 0,
+ 0, 0, 1529, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1529, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1529,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1772, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1301, 0, 0, 0, 0, 0,
+ 0, 1531, 1529, 0, 0, 0, 0, 0, 0, 1301,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1529, 0, 0, 0, 1531, 0, 0,
+ 0, 0, 1528, 0, 0, 0, 1529, 0, 0, 0,
+ 1772, 0, 0, 0, 0, 0, 0, 0, 1529, 0,
+ 0, 0, 0, 0, 0, 0, 953, 0, 0, 0,
+ 0, 0, 0, 3234, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2399, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 4295, 1529, 1529,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1301, 0, 4317, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1201,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1201, 0, 0, 0, 0, 0, 5861, 0, 0, 0,
+ 0, 0, 1528, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1772, 0, 0, 1772, 0,
+ 0, 1772, 1772, 1772, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1528, 0, 1772, 1772, 0, 0,
+ 1772, 0, 0, 0, 0, 0, 0, 0, 1529, 0,
+ 0, 0, 0, 0, 0, 953, 0, 0, 5173, 0,
+ 0, 0, 4588, 0, 0, 0, 0, 4588, 0, 0,
+ 4588, 953, 0, 4177, 0, 5916, 0, 0, 1772, 0,
+ 0, 0, 0, 1528, 0, 0, 0, 0, 1528, 1528,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 5249,
+ 0, 0, 1772, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 5249, 1340, 1301, 0, 1301, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1313, 1340, 0, 0, 0,
+ 0, 0, 0, 1531, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1531, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1531, 0, 1528, 0, 0, 0, 0, 0, 0, 0,
+ 1313, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 5439, 0, 0, 0, 0, 1201, 0, 0,
+ 0, 0, 1201, 0, 0, 0, 0, 0, 0, 0,
+ 0, 3234, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1201, 0, 0, 0, 5489, 0, 0, 6064, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1301,
+ 1201, 5249, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1531, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1772, 0, 0, 0,
+ 1772, 0, 1772, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1772, 0, 0, 0, 0, 0, 1772, 0, 0, 0,
+ 4588, 0, 0, 0, 5916, 0, 0, 1772, 0, 6149,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1201, 0, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 951, 0, 0, 0, 0, 0, 0, 0, 951,
+ 0, 0, 951, 0, 0, 1772, 0, 0, 0, 0,
+ 0, 1772, 1772, 0, 0, 0, 1301, 1301, 1301, 1301,
+ 0, 0, 0, 0, 0, 1531, 0, 0, 0, 0,
+ 0, 0, 1528, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1772, 0, 0,
+ 0, 0, 0, 0, 0, 953, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1201, 0, 0, 4588, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 1201,
+ 1536, 0, 0, 0, 951, 0, 0, 0, 0, 0,
+ 0, 951, 0, 0, 951, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1536, 0, 0, 1772,
+ 0, 0, 0, 0, 0, 1772, 0, 0, 953, 0,
+ 0, 1772, 0, 0, 0, 6314, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 0, 0, 0, 0, 0, 1772,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2399, 0, 0, 0, 0, 5249, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 2399, 0, 1340,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1772, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2399, 2399, 951, 951, 0, 0, 0,
+ 0, 0, 1157, 0, 0, 0, 1157, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1301, 1529, 0, 0, 0, 1529,
+ 1529, 0, 0, 951, 0, 0, 0, 0, 0, 6407,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1531, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 5861, 0, 0, 0, 0, 0, 0,
+ 0, 1772, 1772, 1772, 0, 0, 0, 4177, 0, 1529,
+ 1772, 0, 0, 0, 0, 1529, 0, 0, 0, 1772,
+ 0, 1772, 0, 1772, 6149, 0, 0, 0, 0, 0,
+ 0, 0, 3890, 1772, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1531, 0, 0, 0, 0, 1313,
+ 0, 0, 0, 0, 0, 0, 1529, 0, 0, 0,
+ 0, 0, 0, 0, 1301, 0, 0, 0, 0, 0,
+ 0, 2399, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1531, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3234, 0, 0, 0,
+ 1157, 1157, 0, 1772, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 5249, 1531, 0, 0, 0, 0, 0,
+ 0, 1313, 1313, 6525, 951, 951, 0, 1772, 0, 0,
+ 1772, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 1772, 0, 1536, 951, 6314, 0, 0, 951, 0, 951,
+ 1772, 0, 0, 1536, 0, 2399, 2399, 6557, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1536,
+ 0, 0, 0, 1301, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 6407, 1301, 1301, 0, 0, 0, 5249,
+ 0, 951, 0, 951, 951, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1531, 0, 0, 953, 0, 0,
+ 0, 0, 0, 0, 0, 1531, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 0, 0, 0, 1772, 6611, 0,
+ 0, 1531, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1536, 0, 0, 1529, 0, 0, 0, 0, 0, 0,
+ 1772, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1772, 0, 0, 1531, 0, 0, 0, 0, 0,
+ 0, 0, 1772, 0, 6647, 6648, 953, 6651, 0, 3890,
+ 0, 0, 0, 0, 0, 1531, 0, 0, 0, 0,
+ 0, 1301, 0, 0, 5249, 0, 1529, 0, 1531, 951,
+ 1529, 0, 0, 0, 0, 6314, 0, 0, 0, 0,
+ 1531, 0, 0, 0, 0, 0, 0, 4644, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1772, 953,
+ 0, 0, 1772, 0, 0, 0, 953, 0, 0, 0,
+ 1531, 1531, 0, 0, 1536, 0, 0, 0, 0, 1313,
+ 1313, 0, 0, 6713, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1529, 0, 0, 0,
+ 0, 0, 0, 951, 951, 951, 0, 951, 0, 0,
+ 0, 1529, 0, 0, 0, 0, 1529, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1531, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 951,
+ 951, 0, 0, 0, 0, 81, 82, 0, 84, 85,
+ 86, 0, 0, 0, 89, 951, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 0, 0, 0, 101,
+ 102, 103, 104, 0, 105, 106, 107, 108, 0, 109,
+ 110, 111, 0, 0, 0, 0, 0, 114, 115, 0,
+ 0, 0, 0, 116, 0, 0, 0, 0, 0, 0,
+ 0, 0, 117, 0, 118, 0, 119, 0, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1536, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1157, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 126, 0, 0, 0,
+ 128, 129, 130, 131, 132, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 134, 0,
+ 0, 0, 0, 1157, 0, 138, 0, 139, 0, 0,
+ 0, 1529, 0, 1536, 1529, 142, 1529, 0, 0, 0,
+ 0, 1529, 0, 0, 0, 0, 0, 145, 0, 0,
+ 0, 0, 0, 0, 146, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 149, 150, 0, 0, 0, 0,
+ 1536, 0, 0, 0, 0, 0, 0, 0, 0, 1157,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1529, 0, 0, 0, 156, 0, 1157, 0, 1529, 0,
+ 0, 0, 158, 1536, 0, 0, 0, 160, 0, 0,
+ 0, 0, 0, 0, 162, 0, 0, 0, 0, 0,
+ 163, 0, 164, 1529, 0, 0, 0, 0, 0, 166,
+ 0, 167, 0, 0, 0, 0, 0, 0, 0, 0,
+ 168, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 170, 171, 0, 0, 0,
+ 0, 0, 172, 0, 173, 0, 0, 174, 175, 0,
+ 176, 0, 0, 0, 0, 0, 0, 0, 0, 177,
+ 178, 0, 179, 0, 951, 951, 951, 0, 0, 0,
+ 0, 0, 0, 1529, 0, 1529, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 184, 185, 186,
+ 0, 0, 0, 1536, 0, 0, 0, 187, 188, 0,
+ 0, 0, 0, 190, 1536, 0, 191, 0, 192, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1536, 0, 0, 0, 193, 194, 0, 195, 196, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 197, 0, 198, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 200,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1529,
+ 0, 0, 0, 1536, 0, 0, 0, 0, 0, 0,
+ 0, 207, 0, 0, 0, 0, 0, 209, 951, 0,
+ 0, 951, 0, 0, 1536, 0, 0, 0, 0, 0,
+ 0, 951, 0, 0, 0, 0, 214, 1536, 0, 216,
+ 0, 1529, 217, 0, 0, 0, 0, 0, 0, 1536,
+ 0, 0, 0, 0, 0, 0, 0, 0, 219, 0,
+ 0, 0, 951, 951, 0, 221, 0, 0, 0, 1529,
+ 0, 0, 0, 222, 223, 0, 0, 951, 0, 224,
+ 951, 225, 0, 0, 0, 0, 0, 0, 0, 1536,
+ 1536, 228, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 232, 0, 0, 233,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 0, 0, 0, 1529,
+ 0, 0, 0, 0, 0, 0, 0, 0, 951, 0,
+ 0, 0, 951, 951, 0, 0, 0, 0, 0, 0,
+ 0, 1529, 0, 0, 0, 0, 3895, 1531, 0, 0,
+ 0, 1531, 1531, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1529, 0, 0, 0, 951,
+ 951, 0, 0, 0, 0, 951, 951, 0, 0, 0,
+ 0, 0, 951, 951, 951, 0, 0, 951, 0, 951,
+ 0, 951, 951, 951, 951, 951, 951, 0, 0, 951,
+ 0, 951, 951, 0, 0, 951, 0, 0, 0, 0,
+ 0, 1531, 0, 0, 0, 0, 0, 1531, 0, 1536,
+ 951, 951, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1531, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1529, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1529, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1529, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 951, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 951, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1531, 0, 0, 0, 0,
+ 0, 1529, 0, 951, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1531, 0,
+ 0, 0, 1531, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1529, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1529, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 951, 951,
+ 951, 951, 951, 951, 951, 951, 951, 0, 951, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 951, 0,
+ 0, 951, 0, 0, 0, 0, 0, 0, 1531, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1531, 0, 0, 0, 0, 1531, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 1529,
+ 0, 951, 0, 0, 951, 0, 951, 0, 0, 951,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 951, 0, 0, 0, 0, 0,
+ 0, 0, 0, 951, 951, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1529, 0,
+ 0, 1529, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1536, 0, 0, 0,
+ 1536, 1536, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 951, 0,
+ 1536, 951, 0, 951, 951, 0, 1536, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1529,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1157, 0, 1531, 0, 0, 1531, 0, 1531, 0,
+ 0, 0, 0, 1531, 0, 0, 0, 1536, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1531, 0, 0, 0, 0, 0, 0, 0,
+ 1531, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1157, 0, 0, 0, 0, 1531, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1529, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1529, 0, 0, 1531, 0, 1531, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1529, 0, 0, 0, 0, 0,
+ 951, 951, 951, 0, 0, 0, 951, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 951, 1536, 0, 0, 0, 1532, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1532, 0, 1529, 0, 0, 0,
+ 0, 1531, 0, 0, 0, 951, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1536, 0, 0,
+ 0, 1536, 0, 1531, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 951, 0, 0, 0, 0, 0, 0,
+ 0, 1531, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1529, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1531, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1531, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1536, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1531, 0, 0,
+ 951, 0, 1536, 951, 0, 951, 951, 1536, 0, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 0,
+ 951, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 951, 951, 951, 0,
+ 0, 951, 0, 0, 0, 0, 0, 0, 0, 951,
+ 951, 951, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 951, 0,
+ 951, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 951, 951, 0, 0, 951, 0, 0, 0, 0,
+ 1531, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 951, 0, 951, 0, 951, 0,
+ 0, 0, 0, 1531, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1529, 0, 951, 0,
+ 1532, 0, 0, 0, 0, 0, 0, 0, 1531, 951,
+ 0, 1532, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1532, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 951, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 951,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 956, 0,
+ 0, 0, 1536, 0, 0, 1536, 1529, 1536, 1532, 0,
+ 0, 0, 1536, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 951, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1531, 0, 0, 0, 0, 0, 0,
+ 0, 1536, 0, 0, 0, 0, 0, 0, 0, 1536,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1529, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1536, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1529, 0, 0,
+ 0, 0, 1529, 1529, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1532, 1531, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1536, 0, 1536, 0, 0, 1531,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1529, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1536, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 951, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1536, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1531, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1536, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1531, 0, 0, 1531, 0, 0, 0, 0, 0, 0,
+ 0, 0, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1536, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1536, 1532, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1536, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1529, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1532, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1531, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1532, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 951, 0, 0, 1536,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 0,
+ 0, 1532, 0, 951, 0, 951, 0, 0, 951, 0,
+ 0, 0, 1536, 951, 951, 951, 951, 0, 0, 951,
+ 951, 951, 951, 951, 951, 951, 951, 951, 951, 0,
+ 0, 0, 951, 951, 951, 0, 0, 1536, 0, 0,
+ 0, 0, 951, 0, 0, 0, 0, 951, 0, 0,
+ 0, 951, 0, 0, 0, 0, 0, 0, 0, 951,
+ 0, 0, 951, 0, 951, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 951, 0, 0, 951, 951, 0,
+ 0, 0, 951, 951, 0, 0, 1531, 0, 0, 951,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 951,
+ 0, 0, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1532, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1532, 0, 1531, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1532, 0,
+ 0, 0, 0, 0, 0, 0, 1531, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 951,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 951, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1532, 1536, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 951, 0, 0, 0, 0, 0,
+ 0, 0, 1532, 0, 956, 0, 0, 0, 1531, 0,
+ 0, 0, 0, 956, 0, 1532, 0, 0, 0, 0,
+ 0, 956, 0, 0, 956, 0, 0, 1532, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1532, 1532, 0,
+ 0, 0, 1536, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1536, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 956, 0, 0,
+ 1531, 0, 1539, 0, 0, 0, 956, 0, 0, 0,
+ 0, 0, 0, 956, 0, 0, 956, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1539, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 951, 0, 0, 0, 0, 0, 0, 1532, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1536, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 951, 951, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 956, 956, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1536,
+ 0, 0, 1536, 951, 951, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 951, 956, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1531, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 951, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 951, 0, 0, 951,
+ 0, 0, 0, 0, 0, 0, 0, 951, 951, 0,
+ 1536, 0, 0, 0, 951, 951, 0, 0, 0, 951,
+ 0, 0, 0, 951, 0, 0, 951, 951, 1531, 0,
+ 0, 951, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 0, 0, 0, 956, 956, 0, 951,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 956,
+ 0, 951, 0, 0, 1539, 956, 0, 0, 0, 956,
+ 0, 956, 0, 0, 0, 1539, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1539, 0, 0, 951, 0, 0, 0, 0, 0,
+ 1531, 0, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 956, 0, 956, 956, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1536, 0, 0, 0, 1531,
+ 0, 0, 0, 0, 1531, 1531, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1539, 1536, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1536, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 951, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 956, 0, 0, 0, 0, 0, 0, 1531, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1536, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 951, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1539, 0, 0, 951,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 956, 0, 0,
+ 951, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 956, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1536, 0, 1536,
+ 0, 0, 0, 0, 0, 956, 956, 956, 0, 956,
+ 0, 0, 0, 0, 1532, 0, 0, 0, 1532, 1532,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 956,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 951, 0,
+ 0, 951, 0, 0, 951, 951, 951, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1532, 0,
+ 0, 0, 0, 0, 1532, 0, 0, 0, 0, 951,
+ 951, 0, 0, 951, 0, 0, 0, 0, 1531, 0,
+ 0, 0, 0, 0, 0, 0, 0, 956, 951, 0,
+ 0, 956, 956, 0, 0, 951, 0, 0, 0, 0,
+ 951, 0, 0, 951, 951, 1532, 0, 956, 0, 0,
+ 0, 951, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 951, 0, 0, 951, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1539, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1536, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 951, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 951, 0, 1539, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1539, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 951, 0, 0, 1536, 0, 0,
+ 0, 0, 1532, 0, 0, 1539, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 951,
+ 0, 0, 0, 951, 0, 951, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 951, 0, 0, 0, 0, 0, 951,
+ 0, 0, 0, 951, 0, 0, 0, 0, 0, 1536,
+ 951, 0, 0, 0, 0, 1532, 0, 0, 0, 1532,
+ 0, 0, 0, 0, 0, 0, 956, 956, 956, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1539, 0, 0, 1536, 0,
+ 0, 0, 0, 1536, 1536, 0, 1539, 0, 951, 0,
+ 0, 0, 0, 0, 951, 951, 0, 0, 0, 0,
+ 0, 0, 1539, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 951, 0, 0, 0, 0, 0, 0, 0, 951, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1539, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 951, 0, 0, 0,
+ 956, 0, 0, 956, 0, 1532, 1539, 0, 0, 0,
+ 0, 0, 0, 956, 0, 0, 0, 0, 0, 1539,
+ 1532, 0, 0, 0, 0, 1532, 1536, 1536, 0, 0,
+ 0, 1539, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 956, 956, 0, 0, 0, 0,
+ 0, 0, 951, 0, 0, 0, 0, 0, 951, 956,
+ 0, 951, 956, 0, 951, 0, 0, 0, 0, 0,
+ 0, 1539, 1539, 0, 0, 951, 0, 0, 0, 0,
+ 0, 0, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 951, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 951, 0, 0, 0, 0, 0, 0, 0, 0,
+ 956, 0, 0, 0, 956, 956, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 956, 956, 0, 0, 0, 0, 956, 956, 0,
+ 0, 0, 0, 0, 956, 956, 956, 0, 0, 956,
+ 0, 956, 0, 956, 956, 956, 956, 956, 956, 0,
+ 0, 956, 951, 956, 956, 0, 0, 956, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1539, 956, 956, 956, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 956,
+ 0, 0, 0, 0, 951, 951, 951, 0, 0, 0,
+ 0, 0, 0, 951, 0, 0, 0, 1536, 0, 0,
+ 0, 0, 951, 0, 951, 0, 951, 0, 0, 0,
+ 1532, 0, 0, 1532, 0, 1532, 951, 0, 0, 0,
+ 1532, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1532,
+ 0, 0, 0, 0, 0, 0, 0, 1532, 0, 0,
+ 0, 0, 0, 0, 0, 0, 951, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 951, 0, 0, 0,
+ 0, 0, 1532, 0, 951, 951, 0, 0, 0, 0,
+ 951, 0, 0, 951, 0, 0, 0, 0, 0, 0,
+ 0, 0, 956, 951, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 951, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 956, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1532, 0, 1532, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 951, 0, 0, 0,
+ 0, 0, 951, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 951, 0, 0, 0, 0, 956, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 0,
+ 951, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 951, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1532, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 951, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 951, 0, 0, 0, 951,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1532, 0, 0, 0, 0, 0, 0, 951, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1532, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 951, 951, 0, 0, 951, 0, 0, 0, 951,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 951, 951, 0, 0, 0, 0, 0, 0,
+ 956, 956, 956, 956, 956, 956, 956, 956, 956, 0,
+ 956, 0, 0, 0, 0, 0, 0, 0, 1532, 0,
+ 956, 0, 0, 956, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1532, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1532, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 956,
+ 0, 0, 0, 956, 0, 0, 956, 0, 956, 0,
+ 0, 956, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 956, 0, 81, 82,
+ 0, 84, 85, 86, 0, 956, 956, 89, 0, 0,
+ 92, 93, 94, 95, 96, 97, 0, 98, 99, 0,
+ 0, 0, 101, 102, 103, 104, 0, 105, 106, 107,
+ 108, 0, 109, 110, 111, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1532, 0, 0,
+ 0, 35, 0, 0, 0, 37, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1532, 0, 0, 0, 0, 0, 0, 0, 1539, 0,
+ 0, 0, 1539, 1539, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1532, 0, 0, 0, 126,
+ 0, 0, 0, 128, 129, 130, 131, 132, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 134, 0, 0, 0, 0, 0, 0, 138, 956,
+ 139, 0, 0, 0, 0, 0, 0, 0, 142, 0,
+ 956, 0, 1539, 956, 0, 956, 956, 0, 1539, 0,
+ 145, 0, 0, 0, 0, 0, 0, 146, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 149, 150, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1539,
+ 0, 0, 0, 0, 0, 0, 0, 156, 0, 0,
+ 0, 0, 0, 0, 0, 158, 0, 0, 0, 0,
+ 160, 0, 0, 0, 0, 0, 0, 162, 0, 0,
+ 0, 0, 0, 163, 0, 164, 0, 0, 0, 0,
+ 0, 0, 166, 0, 167, 0, 0, 0, 0, 0,
+ 0, 0, 0, 168, 0, 0, 0, 0, 0, 0,
+ 1532, 0, 0, 0, 0, 0, 0, 0, 170, 171,
+ 0, 0, 0, 0, 0, 172, 0, 173, 0, 0,
+ 174, 175, 0, 176, 0, 0, 0, 0, 0, 0,
+ 0, 0, 177, 178, 0, 179, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 184, 185, 186, 0, 0, 0, 0, 0, 0, 0,
+ 187, 188, 0, 0, 0, 0, 190, 0, 0, 191,
+ 0, 192, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1532, 0, 0, 0, 0, 0, 0, 193, 194, 0,
+ 195, 196, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 956, 956, 956, 197, 1532, 198, 956, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 200, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 956, 1539, 0, 0, 0,
+ 0, 0, 0, 0, 207, 0, 0, 0, 0, 0,
+ 209, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 214,
+ 0, 0, 216, 0, 0, 217, 0, 956, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 219, 0, 0, 0, 0, 0, 0, 221, 0,
+ 0, 0, 0, 0, 0, 0, 222, 223, 0, 1539,
+ 0, 0, 224, 1539, 225, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 228, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 956, 0, 0, 0, 232,
+ 0, 0, 233, 0, 0, 0, 0, 0, 1532, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 235, 236,
+ 237, 238, 239, 240, 241, 242, 243, 244, 245, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1532, 0, 0,
+ 1532, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1539,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 956, 0, 1539, 956, 0, 956, 956, 1539,
+ 0, 0, 0, 0, 0, 0, 0, 956, 0, 0,
+ 0, 0, 956, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 956, 956,
+ 956, 0, 0, 956, 0, 0, 0, 0, 0, 0,
+ 0, 956, 956, 956, 956, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 956, 0, 0,
+ 956, 0, 956, 0, 0, 0, 0, 0, 1532, 0,
+ 0, 0, 0, 956, 956, 0, 0, 956, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 956, 0, 956, 0,
+ 956, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 956, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 956, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 775, 956, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 956, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 956, 0, 0, 0, 0, 0, 0, 775, 956,
+ 0, 0, 0, 1532, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1004, 1014, 0, 0, 1019, 0, 0, 0, 0, 0,
+ 1014, 0, 0, 0, 1539, 0, 0, 1539, 0, 1539,
+ 0, 1532, 0, 0, 1539, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1532, 0, 0, 956, 0, 0, 0,
+ 0, 0, 1014, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1539, 0, 0, 0, 0, 0, 0,
+ 0, 1539, 0, 0, 0, 0, 0, 1214, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1214,
+ 0, 0, 0, 0, 0, 0, 1539, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1532, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1539, 0, 1539, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1318,
+ 0, 0, 0, 0, 0, 0, 0, 1532, 0, 0,
+ 0, 1352, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1371, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1391, 1539, 0, 0, 0, 0, 1423, 0, 0,
+ 0, 0, 1266, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 956,
+ 0, 0, 0, 0, 0, 956, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1539, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1539, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 956, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1539, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1539, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1532, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1539, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1793, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1817, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1837, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1004, 0, 0, 0, 0, 0, 956, 0,
+ 0, 1539, 0, 0, 0, 1532, 0, 956, 0, 0,
+ 0, 0, 0, 0, 0, 956, 0, 956, 0, 0,
+ 956, 0, 0, 0, 1539, 956, 956, 956, 956, 0,
+ 0, 956, 956, 956, 956, 956, 956, 956, 956, 956,
+ 956, 1014, 1014, 0, 956, 956, 956, 0, 0, 1539,
+ 0, 0, 0, 0, 956, 0, 0, 0, 0, 956,
+ 0, 0, 0, 956, 0, 0, 0, 0, 0, 2034,
+ 0, 956, 0, 0, 956, 0, 956, 1532, 0, 0,
+ 0, 0, 0, 0, 0, 0, 956, 0, 1266, 956,
+ 956, 0, 0, 0, 956, 956, 0, 0, 0, 0,
+ 0, 956, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 956, 0, 0, 956, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 956, 0, 1532, 0, 0, 0,
+ 0, 1532, 1532, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 956, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 2213, 0, 0, 0, 956, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1539, 1303, 0, 0, 0, 1307,
+ 0, 2247, 2250, 2251, 0, 0, 956, 1342, 0, 0,
+ 1344, 0, 0, 1349, 1350, 0, 1353, 0, 1356, 0,
+ 0, 1362, 0, 1364, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1532, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1392, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1429, 0, 0, 0,
+ 1433, 0, 0, 0, 0, 0, 0, 1445, 1446, 0,
+ 0, 1452, 0, 1455, 1456, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1539, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1266, 0, 1014, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1539, 0, 0, 0, 0, 0, 0, 0, 0, 1499,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1565, 0, 1567, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1581, 1583, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1014, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1793, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2434, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1793, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 956, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1539, 0, 0, 0, 0, 0, 1266, 0,
+ 775, 0, 0, 0, 0, 1532, 956, 956, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1214, 0, 0, 0, 0, 0,
+ 0, 1539, 0, 0, 1539, 956, 956, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 956, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1756, 1756, 2997, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1920,
+ 0, 0, 1921, 0, 1924, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1968,
+ 0, 0, 0, 0, 0, 0, 0, 3060, 0, 956,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 956, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 956, 0,
+ 0, 956, 0, 0, 0, 0, 0, 0, 0, 956,
+ 956, 0, 1539, 0, 0, 2143, 956, 956, 0, 0,
+ 0, 956, 0, 0, 0, 956, 0, 0, 956, 956,
+ 0, 0, 0, 956, 0, 0, 0, 0, 0, 956,
+ 2182, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 956, 0, 0, 0, 2194, 0, 2195, 0, 956,
+ 0, 0, 0, 956, 0, 0, 0, 2198, 0, 0,
+ 0, 0, 0, 0, 2208, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 956, 0, 0, 0,
+ 0, 0, 0, 0, 956, 3228, 0, 0, 0, 0,
+ 0, 0, 0, 1534, 3251, 2259, 0, 2261, 0, 0,
+ 0, 0, 2157, 2161, 0, 0, 0, 0, 0, 956,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1534,
+ 0, 0, 3287, 0, 0, 0, 0, 1539, 3299, 3299,
+ 0, 0, 3299, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3317, 0, 0, 3320, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1539, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1539, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3373, 0, 0, 0, 0, 0,
+ 956, 0, 0, 0, 0, 0, 0, 956, 3392, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3414, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 3417, 0, 1539,
+ 0, 0, 0, 2420, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2435, 0, 0, 0, 956, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3461,
+ 3299, 956, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3496, 0, 0, 0, 0, 0,
+ 0, 3509, 956, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1539,
+ 0, 1539, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2450, 0, 0, 0, 0, 0, 0,
+ 775, 775, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2465, 0, 0, 0, 0, 0, 0,
+ 956, 0, 0, 956, 0, 0, 956, 956, 956, 3597,
+ 0, 1214, 1581, 0, 0, 1534, 0, 0, 0, 0,
+ 0, 2484, 2485, 2486, 0, 2489, 1534, 0, 0, 0,
+ 0, 956, 956, 0, 0, 956, 0, 0, 0, 0,
+ 0, 0, 1534, 0, 0, 2943, 0, 0, 0, 0,
+ 956, 1793, 1793, 0, 0, 0, 0, 956, 0, 0,
+ 0, 0, 956, 0, 0, 956, 956, 0, 0, 0,
+ 775, 3657, 0, 956, 0, 3096, 0, 0, 3096, 0,
+ 0, 0, 0, 0, 0, 0, 3103, 0, 0, 0,
+ 0, 0, 0, 0, 956, 0, 0, 956, 0, 0,
+ 0, 0, 3111, 0, 0, 0, 0, 0, 0, 956,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 3027, 0, 0, 0, 3039, 3044, 0,
+ 0, 0, 0, 1534, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1539,
+ 0, 0, 0, 0, 0, 0, 0, 3196, 0, 0,
+ 956, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 956, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3286, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 956, 1534, 0, 1539,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 956, 0, 0, 0, 956, 0, 956, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 956, 0, 0, 0, 0,
+ 0, 956, 0, 0, 0, 956, 0, 0, 0, 0,
+ 0, 1539, 956, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3416,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1539, 0, 0, 0, 3452, 1539, 1539, 0, 0, 0,
+ 956, 0, 0, 0, 0, 0, 956, 956, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2157, 2157, 2157, 0, 0, 3513, 0, 3517,
+ 0, 0, 956, 0, 0, 0, 0, 0, 0, 0,
+ 956, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3538, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 956, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1539, 1539,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 3576, 0, 3577, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 956, 0, 0, 0, 1581, 3586,
+ 956, 3587, 0, 956, 0, 0, 956, 0, 1534, 0,
+ 0, 0, 0, 0, 0, 0, 0, 956, 0, 0,
+ 0, 0, 0, 0, 956, 0, 0, 0, 0, 0,
+ 0, 0, 0, 3608, 0, 0, 0, 0, 0, 0,
+ 0, 0, 956, 3814, 0, 1581, 0, 0, 0, 1581,
+ 0, 0, 0, 0, 1581, 0, 0, 1581, 0, 0,
+ 0, 0, 0, 956, 0, 0, 0, 0, 0, 3826,
+ 0, 0, 0, 0, 0, 0, 1534, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1837, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1534, 0, 0, 0, 0, 0, 1837,
+ 1837, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 956, 0, 1534, 0, 0, 0,
+ 0, 0, 0, 1793, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 956, 956, 956, 0,
+ 0, 0, 0, 3685, 0, 956, 0, 0, 0, 1539,
+ 0, 0, 0, 0, 956, 3705, 956, 3706, 956, 3708,
+ 0, 0, 3722, 3725, 3730, 0, 0, 0, 956, 0,
+ 3739, 0, 0, 3744, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 956, 0, 0, 0, 3751, 3752,
+ 3753, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3754, 1534, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1534, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1534, 0, 0, 0, 0, 956, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 956, 0,
+ 0, 0, 0, 0, 0, 0, 956, 956, 0, 0,
+ 0, 0, 956, 0, 0, 956, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 956, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 956, 1534, 4024, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 4046, 0, 0, 0, 0, 1534, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1534, 0, 4074, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1534, 0, 0, 0, 0, 0, 956, 0,
+ 0, 0, 0, 0, 956, 0, 0, 0, 3761, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 956, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1534, 1534, 0, 0, 0, 956, 0, 0,
+ 0, 0, 956, 0, 0, 0, 0, 0, 3778, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 956, 0, 0, 4152, 4153,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 956, 0, 0, 0,
+ 0, 3780, 0, 0, 0, 0, 0, 956, 0, 0,
+ 0, 956, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 956,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 4276,
+ 0, 0, 0, 956, 956, 0, 0, 956, 0, 0,
+ 0, 956, 1534, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 956, 956, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3819, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 3787, 3788, 3789, 3790,
+ 3791, 3792, 3793, 3794, 3795, 0, 3796, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1756, 0, 0, 2157,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3754, 0, 1266, 0, 3761,
+ 0, 0, 3778, 0, 3780, 0, 0, 3840, 0, 0,
+ 3916, 3917, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3932,
+ 3933, 2485, 2486, 0, 3936, 3937, 0, 0, 0, 3940,
+ 3941, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3952, 0, 0, 0, 0, 0,
+ 0, 3961, 0, 0, 0, 3964, 3965, 0, 0, 3968,
+ 3969, 0, 0, 0, 0, 0, 3974, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 3989, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 4006, 0, 0, 0, 0, 4008, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 4014, 0, 0, 0, 0, 0, 0, 0, 0, 4021,
+ 0, 0, 4025, 0, 4027, 4030, 4032, 0, 0, 0,
+ 0, 4040, 4043, 0, 0, 0, 0, 0, 0, 0,
+ 0, 4056, 0, 0, 0, 0, 0, 4066, 4572, 0,
+ 0, 4069, 0, 0, 0, 3966, 0, 0, 0, 0,
+ 0, 4079, 4080, 0, 0, 0, 4085, 0, 0, 0,
+ 0, 0, 4094, 4095, 0, 0, 0, 0, 1837, 0,
+ 0, 0, 0, 0, 0, 0, 4104, 0, 0, 4105,
+ 0, 0, 0, 0, 0, 0, 4117, 4118, 0, 0,
+ 0, 0, 4122, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 4129, 0, 0, 4132, 0, 0,
+ 0, 0, 4135, 0, 0, 0, 0, 0, 4138, 4139,
+ 0, 1581, 0, 1581, 0, 0, 4145, 1581, 0, 0,
+ 4147, 0, 0, 0, 4154, 4155, 4156, 4157, 0, 4159,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 4184, 4185, 0, 4187, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 4196, 4197, 4198, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 4250, 0, 0, 0, 0, 0, 0,
+ 0, 4274, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 4286, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 4208, 4209,
+ 2157, 0, 0, 0, 4213, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 4356, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 4242, 0, 0, 0, 0, 0, 0, 4786, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 3299, 1534,
+ 0, 0, 0, 1534, 1534, 0, 0, 0, 0, 0,
+ 4389, 0, 4391, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1266, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1534, 0, 0, 0, 1581, 0, 1534,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1534, 0, 0, 0, 0, 0, 0, 0, 0, 4457,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 4917, 4918, 4919,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 4928, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 4953,
+ 4955, 0, 0, 0, 4960, 0, 0, 0, 0, 0,
+ 0, 0, 0, 4462, 0, 0, 0, 0, 4468, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2489, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 3730, 0, 3730,
+ 3730, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 4529, 0, 0, 4532, 0, 4534, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1534, 0, 0,
+ 0, 0, 4553, 0, 4556, 0, 4558, 0, 0, 0,
+ 0, 2935, 0, 0, 0, 0, 0, 0, 0, 0,
+ 5057, 0, 0, 1793, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 3027, 0,
+ 1534, 1581, 0, 0, 1534, 0, 4680, 0, 0, 0,
+ 2935, 0, 0, 3044, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 4692, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 4699, 0, 0, 0, 4699, 0, 0,
+ 0, 0, 4710, 4711, 4712, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 5159, 5160, 5161, 0, 0, 0, 4742, 4743,
+ 4744, 4745, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 4678, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 4761, 0,
+ 0, 0, 0, 0, 0, 0, 4764, 0, 4768, 4769,
+ 4770, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1534, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1534, 0, 0, 0, 0,
+ 1534, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 4853, 0, 0, 0, 0, 0,
+ 0, 0, 0, 4859, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 4869,
+ 4870, 0, 0, 0, 4871, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 4913, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2935, 0, 0, 0, 2935, 0, 0, 1581,
+ 0, 0, 0, 0, 0, 2157, 0, 0, 0, 0,
+ 4950, 2157, 0, 0, 0, 1014, 0, 0, 0, 0,
+ 0, 4962, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 5001, 0, 0, 0, 1534, 0, 0, 1534, 0,
+ 1534, 1004, 0, 5432, 1014, 1534, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 4940, 0, 0, 0, 0, 5464, 0, 0, 0, 5031,
+ 0, 5032, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1534, 0, 0, 0, 1581, 0,
+ 0, 0, 1534, 0, 0, 0, 0, 3509, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 5058, 0, 1534, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 5523, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3597, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1534, 0, 1534,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 5075, 0, 0, 0, 0, 0,
+ 0, 0, 0, 5079, 0, 0, 0, 0, 0, 0,
+ 0, 5081, 0, 5082, 0, 2935, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 2935, 0, 0, 0, 3718, 0, 0, 0, 0, 0,
+ 5104, 5105, 5106, 1534, 5618, 5619, 5620, 5621, 0, 2935,
+ 2935, 2935, 0, 0, 2935, 0, 0, 0, 0, 3739,
+ 0, 0, 0, 0, 0, 0, 0, 5130, 0, 0,
+ 5133, 0, 5135, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 5138, 0, 0, 1534, 0, 0, 0, 0,
+ 5145, 5146, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1534, 0, 0, 0, 0, 5253, 0,
+ 5192, 5260, 0, 5261, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 5268, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 5274, 0,
+ 0, 0, 5277, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 5210, 0, 0,
+ 0, 5301, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1534, 5224, 0, 0, 0, 0, 5305,
+ 0, 0, 0, 0, 0, 5309, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1534, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 5344, 0, 0, 0, 5348, 0, 0, 0, 0, 1534,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 5358,
+ 5359, 5360, 5361, 0, 0, 0, 0, 0, 0, 5365,
+ 5366, 5367, 5368, 0, 0, 0, 0, 0, 5370, 5371,
+ 0, 0, 0, 0, 5378, 5379, 0, 5381, 5382, 5383,
+ 5384, 5385, 5386, 5387, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 5396, 0, 0, 0, 5399, 5400, 5401,
+ 5402, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 4699, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 5422,
+ 0, 0, 1534, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1534, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1534, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 5842, 0,
+ 0, 0, 0, 0, 0, 5504, 0, 0, 0, 5852,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 4699, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 5539, 0, 5540, 0, 0, 0, 0, 0, 0, 0,
+ 1581, 1581, 1581, 1581, 1581, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 5554, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2935, 0,
+ 0, 5511, 5512, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 5519, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1534, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2935, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 2935, 5571, 0, 0, 0, 2935,
+ 0, 0, 0, 0, 0, 0, 5577, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1534, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1534, 0, 0, 0, 5596, 5598, 0, 0, 0,
+ 0, 0, 5602, 5603, 0, 0, 0, 5604, 0, 0,
+ 0, 5605, 0, 0, 5608, 5609, 0, 0, 0, 5613,
+ 0, 0, 0, 0, 0, 5617, 6029, 0, 0, 0,
+ 0, 1793, 0, 0, 0, 0, 5700, 5701, 5702, 0,
+ 0, 0, 5703, 5704, 5705, 5706, 0, 0, 0, 5708,
+ 6059, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1756, 0, 0, 5727, 5728, 5729, 5730, 5731,
+ 5671, 5733, 5734, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 5743, 5744, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 5682, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1534, 0, 0, 0, 5750, 0, 0,
+ 0, 0, 0, 0, 0, 1581, 1581, 0, 1581, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 6172,
+ 0, 0, 1534, 0, 0, 1534, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 5746, 0, 0, 0,
+ 0, 0, 0, 5748, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 5813,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 6248,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 5783, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 6271, 0,
+ 0, 0, 0, 0, 0, 5867, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1534, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1581, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1581, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 5873, 0, 0, 0,
+ 0, 0, 5877, 5878, 5879, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1534, 0,
+ 0, 0, 0, 0, 0, 0, 0, 5890, 5891, 0,
+ 0, 5892, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 5963,
+ 0, 0, 0, 0, 0, 0, 1534, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 5973, 5918,
+ 0, 0, 0, 0, 5979, 5980, 0, 0, 1534, 0,
+ 0, 0, 0, 0, 5991, 0, 0, 0, 0, 0,
+ 0, 5993, 0, 5937, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 6045, 6046, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 6054,
+ 2935, 1014, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1534, 0, 0, 0, 0, 0, 6071, 0, 0, 0,
+ 2935, 2935, 0, 2935, 0, 0, 0, 0, 3718, 3718,
+ 0, 4505, 0, 3718, 0, 0, 0, 2935, 0, 0,
+ 2935, 4699, 0, 0, 0, 2935, 0, 0, 0, 0,
+ 0, 0, 6107, 0, 2935, 0, 0, 0, 0, 2935,
+ 0, 0, 0, 0, 0, 0, 2935, 2935, 2935, 2935,
+ 0, 0, 0, 3718, 3718, 0, 2935, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1581, 0, 0, 0,
+ 0, 0, 0, 2935, 0, 2935, 0, 1581, 0, 0,
+ 0, 0, 2935, 2935, 2935, 2935, 2935, 2935, 2935, 2935,
+ 2935, 2935, 0, 6155, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1534, 0, 0, 0, 0, 6175, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 6182, 0, 0,
+ 0, 0, 0, 0, 0, 2935, 0, 0, 0, 0,
+ 0, 3739, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1581, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 6128, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 6146, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 6241, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 6189, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2935, 0, 0, 0, 4699, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 6225, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1581, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1534, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 6345,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 6358, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 6296, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 2489, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 6397, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 6347,
+ 1534, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2935, 2935, 0, 0, 0, 2935, 0,
+ 0, 6471, 1534, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 2935, 0, 0,
+ 0, 0, 0, 6483, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 6493, 0, 0, 0, 0, 0,
+ 0, 1534, 6433, 6433, 6433, 0, 1534, 1534, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 6146, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 6459, 0, 0, 0, 0, 81,
+ 82, 0, 84, 85, 86, 0, 0, 0, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 0, 0, 0, 101, 102, 103, 104, 0, 105, 106,
+ 107, 108, 0, 109, 110, 111, 0, 0, 0, 0,
+ 0, 114, 115, 0, 0, 0, 0, 116, 0, 0,
+ 0, 0, 0, 0, 0, 6575, 117, 0, 118, 0,
+ 119, 0, 35, 0, 6501, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1534, 0, 0, 0, 0, 0, 0, 0, 6526, 0,
+ 0, 6433, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 126, 6146, 0, 0, 128, 129, 130, 131, 132, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 134, 0, 0, 0, 0, 0, 0, 138,
+ 0, 139, 0, 0, 0, 0, 0, 0, 0, 142,
+ 0, 0, 0, 0, 0, 0, 0, 2935, 0, 0,
+ 0, 145, 0, 2935, 0, 0, 0, 0, 146, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 149, 150,
+ 0, 4505, 4505, 0, 0, 3718, 3718, 3718, 3718, 0,
+ 0, 3718, 3718, 3718, 3718, 3718, 3718, 3718, 3718, 3718,
+ 3718, 4505, 0, 0, 0, 0, 0, 0, 156, 0,
+ 0, 0, 0, 0, 0, 0, 158, 0, 0, 0,
+ 0, 160, 0, 0, 2935, 0, 0, 2935, 162, 2935,
+ 0, 0, 4505, 4505, 163, 0, 164, 0, 0, 0,
+ 0, 0, 0, 166, 0, 167, 0, 0, 2935, 3718,
+ 3718, 2935, 0, 2935, 168, 0, 0, 0, 0, 0,
+ 0, 0, 6433, 0, 0, 0, 0, 0, 0, 170,
+ 171, 0, 0, 6646, 0, 0, 172, 0, 173, 0,
+ 0, 174, 175, 0, 176, 0, 0, 0, 0, 0,
+ 0, 0, 0, 177, 178, 0, 179, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1534, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 184, 185, 186, 0, 0, 0, 0, 0, 0,
+ 0, 187, 188, 0, 0, 0, 0, 190, 0, 2157,
+ 191, 0, 192, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 193, 194,
+ 0, 195, 196, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2935, 0, 0, 197, 0, 198, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 200, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 207, 0, 0, 0, 0,
+ 0, 209, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 214, 0, 0, 216, 0, 0, 217, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 219, 0, 0, 0, 0, 0, 0, 221,
+ 0, 0, 0, 0, 0, 0, 0, 222, 223, 0,
+ 0, 0, 0, 224, 0, 225, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 228, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 232, 0, 0, 233, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 3897, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 3718, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 2935, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 81, 82, 0, 84, 85,
+ 86, 0, 0, 0, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 0, 0, 0, 101,
+ 102, 103, 104, 0, 105, 106, 107, 108, 0, 109,
+ 110, 111, 0, 0, 0, 0, 0, 114, 115, 0,
+ 0, 0, 0, 116, 0, 0, 0, 0, 0, 0,
+ 0, 0, 117, 0, 118, 0, 119, 0, 35, 0,
+ 2935, 0, 37, 0, 2935, 0, 2935, 2935, 0, 0,
+ 0, 0, 4505, 4505, 4505, 4505, 0, 0, 0, 4505,
+ 4505, 4505, 4505, 4505, 4505, 4505, 4505, 4505, 4505, 2935,
+ 2935, 2935, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 126, 0, 0, 0,
+ 128, 129, 130, 131, 132, 2935, 0, 0, 2935, 0,
+ 2935, 0, 0, 2935, 0, 0, 4505, 4505, 134, 0,
+ 2935, 2935, 0, 0, 0, 138, 0, 139, 0, 0,
+ 0, 0, 0, 0, 0, 142, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 145, 0, 0,
+ 0, 0, 0, 0, 146, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 149, 150, 0, 2935, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 2935, 0, 0, 0, 0,
+ 0, 0, 0, 0, 156, 0, 0, 0, 0, 2935,
+ 0, 0, 158, 0, 0, 0, 0, 160, 0, 0,
+ 0, 0, 0, 0, 162, 0, 0, 0, 0, 0,
+ 163, 0, 164, 0, 0, 0, 0, 0, 0, 166,
+ 0, 167, 0, 0, 0, 0, 0, 0, 0, 0,
+ 168, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 170, 171, 0, 0, 0,
+ 0, 0, 172, 0, 173, 0, 0, 174, 175, 0,
+ 176, 0, 0, 0, 0, 0, 0, 0, 0, 177,
+ 178, 0, 179, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 184, 185, 186,
+ 0, 0, 0, 0, 0, 0, 0, 187, 188, 0,
+ 0, 0, 0, 190, 0, 0, 191, 0, 192, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 193, 194, 0, 195, 196, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 197, 0, 198, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 200,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 4505, 0,
+ 0, 207, 0, 0, 0, 0, 0, 209, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 214, 0, 0, 216,
+ 0, 0, 217, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 219, 0,
+ 0, 0, 0, 0, 0, 221, 0, 0, 0, 0,
+ 0, 0, 0, 222, 223, 0, 0, 0, 0, 224,
+ 0, 225, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 228, 0, 0, 0, 0, 2935, 2935, 0, 0,
+ 0, 0, 0, 0, 2935, 0, 232, 0, 0, 233,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2935, 0, 0, 0,
+ 0, 0, 2935, 3718, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2935, 0, 2935, 0, 0, 0, 2935, 2935, 2935,
+ 2935, 0, 0, 2935, 2935, 0, 0, 0, 2935, 0,
+ 0, 0, 2935, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2935, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 2935, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2935, 0, 2935, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2935, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 2935, 0,
+ 4505, 3718, 2935, 2935, 2935, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 2935, 2935, 2935, 0, 0,
+ 0, 0, 0, 0, 0, 3718, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2935, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 80, 2935, 0, 81, 82, 83, 84, 85, 86,
+ 87, 0, 88, 89, 90, 91, 92, 93, 94, 95,
+ 96, 97, 0, 98, 99, 100, 0, 0, 101, 102,
+ 103, 104, 0, 105, 106, 107, 108, 0, 109, 110,
+ 111, 112, 113, 0, 0, 0, 114, 115, 0, 0,
+ 0, 0, 116, 0, 0, 0, 0, 0, 0, 0,
+ 0, 117, 0, 118, 0, 119, 120, 35, 0, 0,
+ 0, 37, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 121, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 122, 0,
+ 123, 124, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 125, 0, 0, 126, 0, 0, 127, 128,
+ 129, 130, 131, 132, 0, 0, 0, 0, 133, 0,
+ 0, 0, 0, 0, 0, 0, 0, 134, 0, 0,
+ 135, 0, 136, 137, 138, 0, 139, 0, 0, 140,
+ 0, 141, 0, 0, 142, 0, 0, 0, 0, 0,
+ 0, 0, 0, 143, 0, 144, 145, 0, 0, 0,
+ 0, 0, 0, 146, 0, 4505, 0, 0, 0, 0,
+ 147, 0, 148, 149, 150, 151, 3718, 0, 0, 4505,
+ 0, -1708, 0, 2935, 0, 0, 0, 0, 0, 0,
+ 152, 0, 153, 0, 0, 0, 154, 0, 0, 0,
+ 0, 2935, 155, 156, 0, 0, 0, 0, 0, 0,
+ 157, 158, 159, 0, 0, 0, 160, 0, 0, 161,
+ 0, 0, 0, 162, 0, 0, 0, 0, 0, 163,
+ 0, 164, 0, 0, 0, 0, 165, 0, 166, 0,
+ 167, 0, 0, 0, 2935, 0, 0, 0, 0, 168,
+ 0, 0, 0, 169, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 170, 171, 0, 0, -1708, 0,
+ 0, 172, 0, 173, 0, 0, 174, 175, 0, 176,
+ 2935, 0, 0, 0, 0, 0, 0, 0, 177, 178,
+ 0, 179, 0, 180, 181, 0, 0, 0, 0, 182,
+ 0, 0, 0, 0, 0, 0, 0, -1708, 0, 0,
+ 0, 0, 0, 183, 0, 0, 184, 185, 186, 0,
+ 0, 0, 0, 0, 0, 0, 187, 188, 0, 0,
+ 0, 189, 190, 0, 0, 191, 0, 192, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2935, 0, 193, 194, 0, 195, 196, 0, 0,
+ 0, 0, 0, 4505, 0, 3718, 0, 0, 0, 0,
+ 0, 197, 0, 198, 0, 199, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 200, 201,
+ 0, 0, 0, 0, 0, 202, 203, 0, 204, 0,
+ 0, 0, 2935, 205, 0, 0, 0, 0, 0, 206,
+ 207, 0, 208, 0, 0, 0, 209, 0, 0, 210,
+ 0, 0, 0, 0, 0, 211, 212, 0, 0, 0,
+ 0, 0, 0, 213, 0, 214, 0, 215, 216, 0,
+ 0, 217, 0, 0, 0, 0, 0, 218, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 219, 0, 0,
+ 0, 0, 220, 0, 221, 0, 0, 0, 0, 0,
+ 0, 0, 222, 223, 0, 0, 0, 0, 224, 0,
+ 225, 0, 226, 0, 227, 0, 0, 0, 2935, 0,
+ 228, 0, 0, 229, 0, 0, -1708, 0, 0, 230,
+ 0, 0, 0, 0, 231, 232, 0, 0, 233, 0,
+ 0, 0, 0, 0, 2935, 0, 0, 234, 0, 0,
+ 0, 0, 0, 0, 235, 236, 237, 238, 239, 240,
+ 241, 242, 243, 244, 245, 0, 0, 0, 0, 0,
+ 246, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2935, 0, 247, 0,
+ 0, 0, -149, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2935, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 3718, 0, 0,
+ 0, 0, 3718, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 797, 81, 82,
+ 750, 84, 85, 86, 751, 0, 752, 89, 0, 0,
+ 92, 93, 94, 95, 96, 97, 798, 98, 99, 753,
+ 799, 0, 101, 102, 103, 104, 800, 801, 106, 107,
+ 108, 0, 109, 802, 803, 754, 755, 0, 0, 0,
+ 756, 757, 4505, 0, 0, 4505, 758, 0, 0, 0,
+ 0, 0, 0, 0, 0, 759, 0, 760, 0, 761,
+ 762, 35, 0, 0, 0, 37, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2935, 431, 432, 433, 434, 435, 436, 437, 438,
+ 804, 439, 440, 441, 805, 806, 807, 808, 809, 810,
+ 811, 442, 443, 444, 812, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 129, 130, 131, 132, 813, 452,
+ 453, 454, 455, 456, 457, 458, 814, 815, 459, 460,
+ 816, 134, 461, 817, 462, 463, 464, 465, 138, 818,
+ 139, 819, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 820, 821, 474, 475, 476, 477, 478, 479, 822,
+ 145, 480, 481, 823, 824, 825, 826, 146, 827, 828,
+ 829, 484, 485, 486, 487, 767, 488, 149, 150, 489,
+ 830, 490, 831, 491, 492, 493, 494, 495, 496, 497,
+ 832, 498, 499, 500, 501, 833, 834, 502, 503, 504,
+ 505, 506, 835, 507, 508, 509, 836, 510, 511, 512,
+ 837, 513, 514, 515, 516, 158, 517, 518, 519, 520,
+ 160, 838, 521, 839, 522, 523, 524, 162, 525, 840,
+ 526, 841, 527, 163, 842, 164, 528, 529, 530, 531,
+ 843, 532, 166, 844, 167, 533, 534, 845, 535, 536,
+ 769, 537, 538, 168, 539, 540, 541, 542, 846, 543,
+ 544, 545, 546, 547, 548, 549, 847, 550, 170, 171,
+ 848, 551, 552, 553, 849, 172, 850, 173, 851, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 852,
+ 853, 561, 177, 178, 562, 179, 854, 563, 564, 565,
+ 855, 856, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 770, 577, 578, 771, 579, 580, 581,
+ 184, 185, 186, 582, 583, 584, 585, 586, 587, 588,
+ 187, 188, 589, 857, 590, 591, 190, 592, 858, 191,
+ 593, 192, 594, 595, 596, 859, 597, 598, 860, 861,
+ 599, 600, 601, 862, 863, 602, 603, 193, 194, 604,
+ 195, 196, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 864, 615, 616, 197, 617, 198, 618, 619,
+ 620, 865, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 200, 631, 632, 633, 634, 866, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 867, 648, 649, 207, 650, 651, 652, 653, 654,
+ 209, 655, 656, 657, 658, 659, 660, 661, 772, 662,
+ 868, 663, 664, 665, 666, 667, 869, 669, 670, 214,
+ 671, 672, 216, 673, 674, 217, 675, 870, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 219, 689, 871, 690, 691, 872, 692, 221, 693,
+ 694, 695, 696, 697, 873, 698, 222, 223, 874, 875,
+ 700, 701, 224, 702, 225, 876, 703, 704, 705, 706,
+ 707, 708, 709, 710, 877, 878, 711, 712, 713, 714,
+ 715, 879, 880, 716, 717, 718, 719, 720, 881, 232,
+ 882, 721, 233, 722, 723, 724, 725, 883, 884, 726,
+ 885, 886, 727, 728, 729, 730, 731, 732, 235, 236,
+ 237, 238, 239, 240, 241, 242, 243, 244, 245, 774,
+ 733, 734, 0, 0, 797, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 798, 98, 99, 753, 799, 1071, 101,
+ 102, 103, 104, 800, 801, 106, 107, 108, 0, 109,
+ 802, 803, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 430,
+ 0, 0, 37, 0, 38, 39, 0, 1674, 1675, 1676,
+ 40, 1677, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 2151, 439, 440,
+ 441, 0, 0, 0, 0, 1678, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 126, 449, 450, 451,
+ 128, 1679, 130, 1680, 1681, 0, 452, 453, 454, 455,
+ 456, 457, 458, 1682, 1683, 459, 460, 1684, 1685, 461,
+ 0, 462, 463, 464, 465, 1686, 0, 1687, 0, 466,
+ 467, 468, 469, 470, 471, 142, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 145, 480, 481,
+ 0, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484, 485,
+ 486, 487, 767, 488, 1695, 1696, 489, 1697, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 2152, 0, 502, 503, 1507, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 1698, 517, 518, 519, 520, 1699, 1700, 521,
+ 0, 522, 523, 524, 1701, 525, 0, 526, 0, 527,
+ 163, 0, 164, 528, 529, 530, 531, 0, 532, 1702,
+ 0, 1703, 533, 534, 0, 535, 536, 769, 537, 538,
+ 168, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 170, 171, 0, 551, 552,
+ 553, 1510, 1704, 0, 1705, 0, 554, 174, 175, 555,
+ 176, 556, 557, 558, 559, 560, 0, 0, 561, 1706,
+ 178, 562, 179, 0, 563, 564, 565, 1707, 1708, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 1709, 185, 1710,
+ 582, 583, 584, 585, 586, 587, 588, 187, 1711, 589,
+ 1712, 590, 591, 190, 592, 1713, 1714, 593, 1715, 594,
+ 595, 596, 0, 597, 598, 0, 0, 1716, 600, 601,
+ 0, 0, 602, 603, 193, 194, 604, 195, 1717, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 1718, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 1719,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 207, 650, 651, 652, 653, 654, 1720, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 1721, 669, 670, 214, 671, 672, 216,
+ 673, 674, 1722, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 1723, 689,
+ 0, 690, 691, 0, 692, 221, 693, 694, 695, 696,
+ 697, 0, 698, 1724, 1725, 0, 0, 700, 701, 1726,
+ 702, 1727, 1728, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 1729, 711, 712, 713, 714, 715, 1730, 0,
+ 716, 717, 718, 719, 720, 773, 1731, 2153, 721, 233,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 1732, 1733, 1734, 1735,
+ 240, 1736, 1737, 1738, 1739, 245, 774, 733, 734, 1740,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1741, 1742, 2154, 0, 0, 0, 0, 0, 0, 1744,
+ 2155, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 430, 0, 0, 37,
+ 0, 38, 39, 0, 1674, 1675, 1676, 40, 1677, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 1678, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 1679, 130,
+ 1680, 1681, 0, 452, 453, 454, 455, 456, 457, 458,
+ 1682, 1683, 459, 460, 1684, 1685, 461, 0, 462, 463,
+ 464, 465, 1686, 0, 1687, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 1688, 1689,
+ 1690, 1691, 1692, 1693, 1694, 484, 485, 486, 487, 767,
+ 488, 1695, 1696, 489, 1697, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 1698,
+ 517, 518, 519, 520, 1699, 1700, 521, 0, 522, 523,
+ 524, 1701, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 1702, 0, 1703, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 1510, 1704,
+ 0, 1705, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 1706, 178, 562, 179,
+ 0, 563, 564, 565, 1707, 1708, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1709, 185, 1710, 582, 583, 584,
+ 585, 586, 587, 588, 187, 1711, 589, 1712, 590, 591,
+ 190, 592, 1713, 1714, 593, 1715, 594, 595, 596, 0,
+ 597, 598, 0, 0, 1716, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 1717, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 1718,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1719, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 1720, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 212, 663, 664, 665, 666, 667,
+ 1721, 669, 670, 214, 671, 672, 216, 673, 674, 1722,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 1723, 689, 0, 690, 691,
+ 220, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1724, 1725, 0, 0, 700, 701, 1726, 702, 1727, 1728,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 1729,
+ 711, 712, 713, 714, 715, 1730, 0, 716, 717, 718,
+ 719, 720, 2487, 1731, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 234, 727, 728, 729, 730,
+ 731, 732, 235, 1732, 1733, 1734, 1735, 240, 1736, 1737,
+ 1738, 1739, 245, 774, 733, 734, 1740, 0, 246, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1741, 1742, 0,
+ 0, 0, 0, 0, 0, 0, 1744, 6322, 797, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 798, 98, 99,
+ 753, 799, 0, 101, 102, 103, 104, 800, 801, 106,
+ 107, 108, 0, 109, 802, 803, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 430, 0, 0, 37, 0, 38, 39,
+ 0, 1674, 1675, 1676, 40, 1677, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 1678,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 126, 449, 450, 451, 128, 1679, 130, 1680, 1681, 0,
+ 452, 453, 454, 455, 456, 457, 458, 1682, 1683, 459,
+ 460, 1684, 1685, 461, 0, 462, 463, 464, 465, 1686,
+ 0, 1687, 0, 466, 467, 468, 469, 470, 471, 142,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 145, 480, 481, 0, 1688, 1689, 1690, 1691, 1692,
+ 1693, 1694, 484, 485, 486, 487, 767, 488, 1695, 1696,
+ 489, 1697, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 1507, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 1698, 517, 518, 519,
+ 520, 1699, 1700, 521, 0, 522, 523, 524, 1701, 525,
+ 0, 526, 0, 527, 163, 0, 164, 528, 529, 530,
+ 531, 0, 532, 1702, 0, 1703, 533, 534, 0, 535,
+ 536, 769, 537, 538, 168, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 170,
+ 171, 0, 551, 552, 553, 1510, 1704, 0, 1705, 0,
+ 554, 174, 175, 555, 176, 556, 557, 558, 559, 560,
+ 0, 0, 561, 1706, 178, 562, 179, 0, 563, 564,
+ 565, 1707, 1708, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 1709, 185, 1710, 582, 583, 584, 585, 586, 587,
+ 588, 187, 1711, 589, 1712, 590, 591, 190, 592, 1713,
+ 1714, 593, 1715, 594, 595, 596, 0, 597, 598, 0,
+ 0, 1716, 600, 601, 0, 0, 602, 603, 193, 194,
+ 604, 195, 1717, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 1718, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 1719, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 207, 650, 651, 652, 653,
+ 654, 1720, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 1721, 669, 670,
+ 214, 671, 672, 216, 673, 674, 1722, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 1723, 689, 0, 690, 691, 0, 692, 221,
+ 693, 694, 695, 696, 697, 0, 698, 1724, 1725, 0,
+ 0, 700, 701, 1726, 702, 1727, 1728, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 1729, 711, 712, 713,
+ 714, 715, 1730, 0, 716, 717, 718, 719, 720, 773,
+ 1731, 0, 721, 233, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 1732, 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739, 245,
+ 774, 733, 734, 1740, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1741, 1742, 0, 0, 0, 0,
+ 0, 0, 0, 1744, 3720, 797, 81, 82, 750, 84,
+ 85, 86, 751, 0, 752, 89, 0, 0, 92, 93,
+ 94, 95, 96, 97, 798, 98, 99, 753, 799, 0,
+ 101, 102, 103, 104, 800, 801, 106, 107, 108, 0,
+ 109, 802, 803, 754, 755, 0, 0, 0, 756, 757,
+ 0, 0, 0, 0, 758, 0, 0, 0, 0, 0,
+ 0, 0, 0, 759, 0, 760, 0, 761, 762, 35,
+ 430, 0, 0, 37, 0, 38, 39, 0, 1674, 1675,
+ 1676, 40, 1677, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 0, 0, 0, 0, 1678, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, 128, 1679, 130, 1680, 1681, 0, 452, 453, 454,
+ 455, 456, 457, 458, 1682, 1683, 459, 460, 1684, 1685,
+ 461, 0, 462, 463, 464, 465, 1686, 0, 1687, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 765,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 0, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484,
+ 485, 486, 487, 767, 488, 1695, 1696, 489, 1697, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 1507, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 1698, 517, 518, 519, 520, 1699, 1700,
+ 521, 0, 522, 523, 524, 1701, 525, 0, 526, 0,
+ 527, 163, 0, 164, 528, 529, 530, 531, 0, 532,
+ 1702, 0, 1703, 533, 534, 0, 535, 536, 769, 537,
+ 538, 168, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 1510, 1704, 0, 1705, 0, 554, 174, 175,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 1706, 178, 562, 179, 0, 563, 564, 565, 1707, 1708,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 770, 577, 578, 771, 579, 580, 581, 1709, 185,
+ 1710, 582, 583, 584, 585, 586, 587, 588, 187, 1711,
+ 589, 1712, 590, 591, 190, 592, 1713, 1714, 593, 1715,
+ 594, 595, 596, 0, 597, 598, 0, 0, 1716, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 1717,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 1718, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 1719, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 1720, 655,
+ 656, 657, 658, 659, 660, 661, 772, 662, 0, 663,
+ 664, 665, 666, 667, 1721, 669, 670, 214, 671, 672,
+ 216, 673, 674, 1722, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 1723,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 1724, 1725, 0, 0, 700, 701,
+ 1726, 702, 1727, 1728, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 1729, 711, 712, 713, 714, 715, 1730,
+ 0, 716, 717, 718, 719, 720, 773, 1731, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 1732, 1733, 1734,
+ 1735, 240, 1736, 1737, 1738, 1739, 245, 774, 733, 734,
+ 1740, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1741, 1742, 0, 0, 0, 0, 0, 0, 0,
+ 1744, 5083, 797, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 798, 98, 99, 753, 799, 0, 101, 102, 103,
+ 104, 800, 801, 106, 107, 108, 0, 109, 802, 803,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 430, 0, 0,
+ 37, 0, 38, 39, 0, 1674, 1675, 1676, 40, 1677,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 1678, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 126, 449, 450, 451, 128, 1679,
+ 130, 1680, 1681, 0, 452, 453, 454, 455, 456, 457,
+ 458, 1682, 1683, 459, 460, 1684, 1685, 461, 0, 462,
+ 463, 464, 465, 1686, 0, 1687, 0, 466, 467, 468,
+ 469, 470, 471, 142, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 145, 480, 481, 0, 1688,
+ 1689, 1690, 1691, 1692, 1693, 1694, 484, 485, 486, 487,
+ 767, 488, 1695, 1696, 489, 1697, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 1507, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 1698, 517, 518, 519, 520, 1699, 1700, 521, 0, 522,
+ 523, 524, 1701, 525, 0, 526, 0, 527, 163, 0,
+ 164, 528, 529, 530, 531, 0, 532, 1702, 0, 1703,
+ 533, 534, 0, 535, 536, 769, 537, 538, 168, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 170, 171, 0, 551, 552, 553, 1510,
+ 1704, 0, 1705, 0, 554, 174, 175, 555, 176, 556,
+ 557, 558, 559, 560, 0, 0, 561, 1706, 178, 562,
+ 179, 0, 563, 564, 565, 1707, 1708, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 1709, 185, 1710, 582, 583,
+ 584, 585, 586, 587, 588, 187, 1711, 589, 1712, 590,
+ 591, 190, 592, 1713, 1714, 593, 1715, 594, 595, 596,
+ 0, 597, 598, 0, 0, 1716, 600, 601, 0, 0,
+ 602, 603, 193, 194, 604, 195, 1717, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 1718, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 1719, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 207,
+ 650, 651, 652, 653, 654, 1720, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 1721, 669, 670, 214, 671, 672, 216, 673, 674,
+ 1722, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 1723, 689, 0, 690,
+ 691, 0, 692, 221, 693, 694, 695, 696, 697, 0,
+ 698, 1724, 1725, 0, 0, 700, 701, 1726, 702, 1727,
+ 1728, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 1729, 711, 712, 713, 714, 715, 1730, 0, 716, 717,
+ 718, 719, 720, 773, 1731, 0, 721, 233, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 1732, 1733, 1734, 1735, 240, 1736,
+ 1737, 1738, 1739, 245, 774, 733, 734, 1740, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1741, 1742,
+ 0, 0, 0, 0, 0, 0, 0, 1744, 5152, 797,
+ 81, 82, 750, 84, 85, 86, 751, 0, 752, 89,
+ 0, 0, 92, 93, 94, 95, 96, 97, 798, 98,
+ 99, 753, 799, 0, 101, 102, 103, 104, 800, 801,
+ 106, 107, 108, 0, 109, 802, 803, 754, 755, 0,
+ 0, 0, 756, 757, 0, 0, 0, 0, 758, 0,
+ 0, 0, 0, 0, 0, 0, 0, 759, 0, 760,
+ 0, 761, 762, 35, 0, 0, 0, 37, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 0, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 0, 1500, 130, 1501, 1502,
+ 0, 452, 453, 454, 455, 456, 457, 458, 0, 0,
+ 459, 460, 1503, 1504, 461, 0, 462, 463, 464, 465,
+ 0, 0, 139, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 765, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 481, 0, 0, 0, 0, 146,
+ 0, 0, 0, 484, 485, 486, 487, 767, 488, 1505,
+ 1506, 489, 0, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 1507, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 0, 517, 518,
+ 519, 520, 0, 0, 521, 0, 522, 523, 524, 1508,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 0, 0, 0, 533, 534, 0,
+ 535, 536, 769, 537, 538, 168, 539, 540, 541, 542,
+ 3119, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 3120, 0, 551, 552, 553, 1510, 1511, 0, 1512,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 0, 178, 562, 179, 0, 563,
+ 564, 565, 0, 0, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 770, 577, 578, 771, 579,
+ 580, 581, 1513, 185, 1514, 582, 583, 584, 585, 586,
+ 587, 588, 0, 0, 589, 0, 590, 591, 190, 592,
+ 0, 0, 593, 1515, 594, 595, 596, 0, 597, 598,
+ 0, 0, 599, 600, 601, 0, 0, 602, 603, 3122,
+ 194, 604, 195, 0, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 0, 617, 0,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 1516, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 652,
+ 653, 654, 0, 655, 656, 657, 658, 659, 660, 661,
+ 772, 662, 0, 663, 664, 665, 666, 667, 0, 669,
+ 670, 3123, 671, 672, 216, 673, 674, 1518, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 0, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 1519, 1520,
+ 0, 0, 700, 701, 0, 702, 0, 0, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 0, 711, 712,
+ 713, 714, 715, 0, 0, 716, 717, 718, 719, 720,
+ 0, 1521, 3124, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 774, 733, 734, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 797, 81, 82, 750, 84, 85, 86,
+ 751, 0, 752, 89, 0, 3222, 92, 93, 94, 95,
+ 96, 97, 798, 98, 99, 753, 799, 0, 101, 102,
+ 103, 104, 800, 801, 106, 107, 108, 0, 109, 802,
+ 803, 754, 755, 0, 0, 0, 756, 757, 0, 0,
+ 0, 0, 758, 0, 0, 0, 0, 0, 0, 0,
+ 0, 759, 0, 760, 0, 761, 762, 35, 0, 0,
+ 0, 37, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 0, 439, 440, 441,
+ 0, 0, 0, 0, 0, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 0,
+ 1500, 130, 1501, 1502, 0, 452, 453, 454, 455, 456,
+ 457, 458, 0, 0, 459, 460, 1503, 1504, 461, 0,
+ 462, 463, 464, 465, 0, 0, 139, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 765, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 0, 0, 0, 146, 0, 0, 0, 484, 485, 486,
+ 487, 767, 488, 1505, 1506, 489, 0, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 1507, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 0, 517, 518, 519, 520, 0, 0, 521, 0,
+ 522, 523, 524, 1508, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 0, 0,
+ 0, 533, 534, 0, 535, 536, 769, 537, 538, 168,
+ 539, 540, 541, 542, 3119, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 3120, 0, 551, 552, 553,
+ 1510, 1511, 0, 1512, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 0, 178,
+ 562, 179, 0, 563, 564, 565, 0, 0, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 770,
+ 577, 578, 771, 579, 580, 581, 1513, 185, 1514, 582,
+ 583, 584, 585, 586, 587, 588, 0, 0, 589, 0,
+ 590, 591, 190, 592, 0, 0, 593, 1515, 594, 595,
+ 596, 0, 597, 598, 0, 0, 599, 600, 601, 0,
+ 0, 602, 603, 3122, 194, 604, 195, 0, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 0, 617, 0, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 1516, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 0, 655, 656, 657,
+ 658, 659, 660, 661, 772, 662, 0, 663, 664, 665,
+ 666, 667, 0, 669, 670, 3123, 671, 672, 216, 673,
+ 674, 1518, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 0, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 1519, 1520, 0, 0, 700, 701, 0, 702,
+ 0, 0, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 0, 711, 712, 713, 714, 715, 0, 0, 716,
+ 717, 718, 719, 720, 0, 1521, 3124, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 774, 733, 734, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 797, 81, 82,
+ 750, 84, 85, 86, 751, 0, 752, 89, 0, 4333,
+ 92, 93, 94, 95, 96, 97, 798, 98, 99, 753,
+ 799, 0, 101, 102, 103, 104, 800, 801, 106, 107,
+ 108, 0, 109, 802, 803, 754, 755, 0, 0, 0,
+ 756, 757, 0, 0, 0, 0, 758, 0, 0, 0,
+ 0, 0, 0, 0, 0, 759, 0, 760, 0, 761,
+ 762, 35, 430, 0, 0, 37, 0, 38, 39, 0,
+ 1674, 1675, 1676, 40, 1677, 0, 0, 0, 0, 0,
+ 0, 0, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 1678, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 1679, 130, 1680, 1681, 0, 452,
+ 453, 454, 455, 456, 457, 458, 1682, 1683, 459, 460,
+ 1684, 1685, 461, 0, 462, 463, 464, 465, 1686, 0,
+ 1687, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 765, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 0, 1688, 1689, 1690, 1691, 1692, 1693,
+ 1694, 484, 485, 486, 487, 767, 488, 1695, 1696, 489,
+ 1697, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 1507,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 1698, 517, 518, 519, 520,
+ 1699, 1700, 521, 0, 522, 523, 524, 1701, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 1702, 0, 1703, 533, 534, 0, 535, 536,
+ 769, 537, 538, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 1510, 1704, 0, 1705, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 1706, 178, 562, 179, 0, 563, 564, 565,
+ 1707, 1708, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 770, 577, 578, 771, 579, 580, 581,
+ 1709, 185, 1710, 582, 583, 584, 585, 586, 587, 588,
+ 187, 1711, 589, 1712, 590, 591, 190, 592, 1713, 1714,
+ 593, 1715, 594, 595, 596, 0, 597, 598, 0, 0,
+ 1716, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 1717, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 1718, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 1719, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 1720, 655, 656, 657, 658, 659, 660, 661, 772, 662,
+ 212, 663, 664, 665, 666, 667, 1721, 669, 670, 214,
+ 671, 672, 216, 673, 674, 1722, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 1723, 689, 0, 690, 691, 220, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 1724, 1725, 0, 0,
+ 700, 701, 1726, 702, 1727, 1728, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 1729, 711, 712, 713, 714,
+ 715, 1730, 0, 716, 717, 718, 719, 720, 2487, 1731,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 234, 727, 728, 729, 730, 731, 732, 235, 1732,
+ 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739, 245, 774,
+ 733, 734, 1740, 0, 246, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1741, 1742, 0, 0, 0, 0, 0,
+ 0, 0, 1744, 797, 81, 82, 750, 84, 85, 86,
+ 751, 0, 752, 89, 0, 0, 92, 93, 94, 95,
+ 96, 97, 798, 98, 99, 753, 799, 0, 101, 102,
+ 103, 104, 800, 801, 106, 107, 108, 0, 109, 802,
+ 803, 754, 755, 0, 0, 0, 756, 757, 0, 0,
+ 0, 0, 758, 0, 0, 0, 0, 0, 0, 0,
+ 0, 759, 0, 760, 0, 761, 762, 35, 430, 0,
+ 0, 37, 0, 38, 39, 0, 1674, 1675, 1676, 40,
+ 1677, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 0, 439, 440, 441,
+ 0, 0, 0, 0, 1678, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 128,
+ 1679, 130, 1680, 1681, 3726, 452, 453, 454, 455, 456,
+ 457, 458, 1682, 1683, 459, 460, 1684, 1685, 461, 0,
+ 462, 463, 464, 465, 1686, 0, 1687, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 765, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484, 485, 486,
+ 487, 767, 488, 1695, 1696, 489, 1697, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 1507, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 1698, 517, 518, 519, 520, 1699, 1700, 521, 0,
+ 522, 523, 524, 1701, 525, 0, 526, 0, 527, 163,
+ 3727, 164, 528, 529, 530, 531, 0, 532, 1702, 0,
+ 1703, 533, 534, 0, 535, 536, 769, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 1510, 1704, 0, 1705, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 3728, 561, 1706, 178,
+ 562, 179, 0, 563, 564, 565, 1707, 1708, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 770,
+ 577, 578, 771, 579, 580, 581, 1709, 185, 1710, 582,
+ 583, 584, 585, 586, 587, 588, 187, 1711, 589, 1712,
+ 590, 591, 190, 592, 1713, 1714, 593, 1715, 594, 595,
+ 596, 0, 597, 598, 0, 0, 1716, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 1717, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 1718, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 1719, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 1720, 655, 656, 657,
+ 658, 659, 660, 661, 772, 662, 0, 663, 664, 665,
+ 666, 667, 1721, 669, 670, 214, 671, 672, 216, 673,
+ 674, 1722, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 1723, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 1724, 1725, 0, 3729, 700, 701, 1726, 702,
+ 1727, 1728, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 1729, 711, 712, 713, 714, 715, 1730, 0, 716,
+ 717, 718, 719, 720, 773, 1731, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 1732, 1733, 1734, 1735, 240,
+ 1736, 1737, 1738, 1739, 245, 774, 733, 734, 1740, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1741,
+ 1742, 0, 0, 0, 0, 0, 0, 0, 1744, 797,
+ 81, 82, 750, 84, 85, 86, 751, 0, 752, 89,
+ 0, 0, 92, 93, 94, 95, 96, 97, 798, 98,
+ 99, 753, 799, 0, 101, 102, 103, 104, 800, 801,
+ 106, 107, 108, 0, 109, 802, 803, 754, 755, 0,
+ 0, 0, 756, 757, 0, 0, 0, 0, 758, 0,
+ 0, 0, 0, 0, 0, 0, 0, 759, 0, 760,
+ 0, 761, 762, 35, 430, 0, 0, 37, 0, 38,
+ 39, 0, 1674, 1675, 1676, 40, 1677, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, -2208, 439, 440, 441, 0, 0, 0, -2208,
+ 1678, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 128, 1679, 130, 1680, 1681,
+ 0, 452, 453, 454, 455, 456, 457, 458, 1682, 1683,
+ 459, 460, 1684, 1685, 461, 0, 462, 463, 464, 465,
+ 1686, 0, 1687, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 765, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 481, 0, 1688, 1689, 1690, 1691,
+ 1692, 1693, 1694, 484, 485, 486, 487, 767, 488, 1695,
+ 1696, 489, 1697, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 1507, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 1698, 517, 518,
+ 519, 520, 1699, 1700, 521, 0, 522, 523, 524, 1701,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 1702, 0, 1703, 533, 534, 0,
+ 535, 536, 769, 537, 538, 168, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 171, 0, 551, 552, 553, 1510, 1704, 0, 1705,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 1706, 178, 562, 179, 0, 563,
+ 564, 565, 1707, 1708, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 770, 577, 578, 771, 579,
+ 580, 581, 1709, 185, 1710, 582, 583, 584, 585, 586,
+ 587, 588, 187, 1711, 589, 1712, 590, 591, 190, 592,
+ 1713, 1714, 593, 1715, 594, 595, 596, 0, 597, 598,
+ 0, 0, 1716, 600, 601, 0, 0, 602, 603, 193,
+ 194, 604, 195, 1717, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 1718, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 1719, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 652,
+ 653, 654, 1720, 655, 656, 657, 658, 659, 660, 661,
+ 772, 662, 0, 663, 664, 665, 666, 667, 1721, 669,
+ 670, 214, 671, 672, 216, 673, 674, 1722, 675, -2208,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 1723, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 1724, 1725,
+ 0, 0, 700, 701, 1726, 702, 1727, 1728, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 1729, 711, 712,
+ 713, 714, 715, 1730, 0, 716, 717, 718, 719, 720,
+ 773, 1731, 0, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 1732, 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739,
+ 245, 774, 733, 734, 1740, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1741, 1742, 0, 0, 0,
+ 0, 0, 0, 0, 1744, 797, 81, 82, 750, 84,
+ 85, 86, 751, 0, 752, 89, 0, 0, 92, 93,
+ 94, 95, 96, 97, 798, 98, 99, 753, 799, 0,
+ 101, 102, 103, 104, 800, 801, 106, 107, 108, 0,
+ 109, 802, 803, 754, 755, 0, 0, 0, 756, 757,
+ 0, 0, 0, 0, 758, 0, 0, 0, 0, 0,
+ 0, 0, 0, 759, 0, 760, 0, 761, 762, 35,
+ 430, 0, 0, 37, 0, 38, 39, 0, 1674, 1675,
+ 1676, 40, 1677, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, -2206, 439,
+ 440, 441, 0, 0, 0, -2206, 1678, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, 128, 1679, 130, 1680, 1681, 0, 452, 453, 454,
+ 455, 456, 457, 458, 1682, 1683, 459, 460, 1684, 1685,
+ 461, 0, 462, 463, 464, 465, 1686, 0, 1687, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 765,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 0, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484,
+ 485, 486, 487, 767, 488, 1695, 1696, 489, 1697, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 1507, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 1698, 517, 518, 519, 520, 1699, 1700,
+ 521, 0, 522, 523, 524, 1701, 525, 0, 526, 0,
+ 527, 163, 0, 164, 528, 529, 530, 531, 0, 532,
+ 1702, 0, 1703, 533, 534, 0, 535, 536, 769, 537,
+ 538, 168, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 1510, 1704, 0, 1705, 0, 554, 174, 175,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 1706, 178, 562, 179, 0, 563, 564, 565, 1707, 1708,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 770, 577, 578, 771, 579, 580, 581, 1709, 185,
+ 1710, 582, 583, 584, 585, 586, 587, 588, 187, 1711,
+ 589, 1712, 590, 591, 190, 592, 1713, 1714, 593, 1715,
+ 594, 595, 596, 0, 597, 598, 0, 0, 1716, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 1717,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 1718, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 1719, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 1720, 655,
+ 656, 657, 658, 659, 660, 661, 772, 662, 0, 663,
+ 664, 665, 666, 667, 1721, 669, 670, 214, 671, 672,
+ 216, 673, 674, 1722, 675, -2206, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 1723,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 1724, 1725, 0, 0, 700, 701,
+ 1726, 702, 1727, 1728, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 1729, 711, 712, 713, 714, 715, 1730,
+ 0, 716, 717, 718, 719, 720, 773, 1731, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 1732, 1733, 1734,
+ 1735, 240, 1736, 1737, 1738, 1739, 245, 774, 733, 734,
+ 1740, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1741, 1742, 0, 0, 0, 0, 0, 0, 0,
+ 1744, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 430, 0, 0, 37,
+ 0, 38, 39, 0, 1674, 1675, 1676, 40, 1677, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 1678, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 1679, 130,
+ 1680, 1681, 0, 452, 453, 454, 455, 456, 457, 458,
+ 1682, 1683, 459, 460, 1684, 1685, 461, 0, 462, 463,
+ 464, 465, 1686, 0, 1687, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 1688, 1689,
+ 1690, 1691, 1692, 1693, 1694, 484, 485, 486, 487, 767,
+ 488, 1695, 1696, 489, 1697, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 1698,
+ 517, 518, 519, 520, 1699, 1700, 521, 0, 522, 523,
+ 524, 1701, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 1702, 0, 1703, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 1510, 1704,
+ 0, 1705, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 1706, 178, 562, 179,
+ 0, 563, 564, 565, 1707, 1708, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1709, 185, 1710, 582, 583, 584,
+ 585, 586, 587, 588, 187, 1711, 589, 1712, 590, 591,
+ 190, 592, 1713, 1714, 593, 1715, 594, 595, 596, 0,
+ 597, 598, 0, 0, 1716, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 1717, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 1718,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1719, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 1720, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 1721, 669, 670, 214, 671, 672, 216, 673, 674, 1722,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 1723, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1724, 1725, 0, 0, 700, 701, 1726, 702, 1727, 1728,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 1729,
+ 711, 712, 713, 714, 715, 1730, 0, 716, 717, 718,
+ 719, 720, 773, 1731, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 1732, 1733, 1734, 1735, 240, 1736, 1737,
+ 1738, 1739, 245, 774, 733, 734, 1740, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1741, 1742, 0,
+ 0, 0, 0, 0, 2447, 3678, 1744, 797, 81, 82,
+ 750, 84, 85, 86, 751, 0, 752, 89, 0, 0,
+ 92, 93, 94, 95, 96, 97, 798, 98, 99, 753,
+ 799, 0, 101, 102, 103, 104, 800, 801, 106, 107,
+ 108, 0, 109, 802, 803, 754, 755, 0, 0, 0,
+ 756, 757, 0, 0, 0, 0, 758, 0, 0, 0,
+ 0, 0, 0, 0, 0, 759, 0, 760, 0, 761,
+ 762, 35, 430, 0, 0, 37, 0, 38, 39, 0,
+ 1674, 1675, 1676, 40, 1677, 0, 0, 0, 0, 0,
+ 0, 0, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 1678, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 1679, 130, 1680, 1681, 0, 452,
+ 453, 454, 455, 456, 457, 458, 1682, 1683, 459, 460,
+ 1684, 1685, 461, 0, 462, 463, 464, 465, 1686, 0,
+ 1687, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 765, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 0, 1688, 1689, 1690, 1691, 1692, 1693,
+ 1694, 484, 485, 486, 487, 767, 488, 1695, 1696, 489,
+ 1697, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 1507,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 1698, 517, 518, 519, 520,
+ 1699, 1700, 521, 0, 522, 523, 524, 1701, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 1702, 0, 1703, 533, 534, 0, 535, 536,
+ 769, 537, 538, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 1510, 1704, 0, 1705, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 1706, 178, 562, 179, 0, 563, 564, 565,
+ 1707, 1708, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 770, 577, 578, 771, 579, 580, 581,
+ 1709, 185, 1710, 582, 583, 584, 585, 586, 587, 588,
+ 187, 1711, 589, 1712, 590, 591, 190, 592, 1713, 1714,
+ 593, 1715, 594, 595, 596, 0, 597, 598, 0, 0,
+ 1716, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 1717, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 1718, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 1719, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 1720, 655, 656, 657, 658, 659, 660, 661, 772, 662,
+ 0, 663, 664, 665, 666, 667, 1721, 669, 670, 214,
+ 671, 672, 216, 673, 674, 1722, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 1723, 689, 0, 690, 691, 0, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 1724, 1725, 0, 0,
+ 700, 701, 1726, 702, 1727, 1728, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 1729, 711, 712, 713, 714,
+ 715, 1730, 0, 716, 717, 718, 719, 720, 773, 1731,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 0, 727, 728, 729, 730, 731, 732, 235, 1732,
+ 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739, 245, 774,
+ 733, 734, 1740, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1741, 1742, 1743, 0, 0, 0, 0,
+ 0, 0, 1744, 797, 81, 82, 750, 84, 85, 86,
+ 751, 0, 752, 89, 0, 0, 92, 93, 94, 95,
+ 96, 97, 798, 98, 99, 753, 799, 0, 101, 102,
+ 103, 104, 800, 801, 106, 107, 108, 0, 109, 802,
+ 803, 754, 755, 0, 0, 0, 756, 757, 0, 0,
+ 0, 0, 758, 0, 0, 0, 0, 0, 0, 0,
+ 0, 759, 0, 760, 0, 761, 762, 35, 430, 0,
+ 0, 37, 0, 38, 39, 0, 1674, 1675, 1676, 40,
+ 1677, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 3037, 439, 440, 441,
+ 0, 0, 0, 0, 1678, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 128,
+ 1679, 130, 1680, 1681, 0, 452, 453, 454, 455, 456,
+ 457, 458, 1682, 1683, 459, 460, 1684, 1685, 461, 0,
+ 462, 463, 464, 465, 1686, 0, 1687, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 765, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484, 485, 486,
+ 487, 767, 488, 1695, 1696, 489, 1697, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 1507, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 1698, 517, 518, 519, 520, 1699, 1700, 521, 0,
+ 522, 523, 524, 1701, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 1702, 0,
+ 1703, 533, 534, 0, 535, 536, 769, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 1510, 1704, 0, 1705, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 1706, 178,
+ 562, 179, 0, 563, 564, 565, 1707, 1708, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 770,
+ 577, 578, 771, 579, 580, 581, 1709, 185, 1710, 582,
+ 583, 584, 585, 586, 587, 588, 187, 1711, 589, 1712,
+ 590, 591, 190, 592, 1713, 1714, 593, 1715, 594, 595,
+ 596, 0, 597, 598, 0, 0, 1716, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 1717, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 1718, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 1719, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 1720, 655, 656, 657,
+ 658, 659, 660, 661, 772, 662, 0, 663, 664, 665,
+ 666, 667, 1721, 669, 670, 214, 671, 672, 216, 673,
+ 674, 1722, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 1723, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 1724, 1725, 0, 0, 700, 701, 1726, 702,
+ 1727, 1728, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 1729, 711, 712, 713, 714, 715, 1730, 0, 716,
+ 717, 718, 719, 720, 773, 1731, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 1732, 1733, 1734, 1735, 240,
+ 1736, 1737, 1738, 1739, 245, 774, 733, 734, 1740, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1741,
+ 1742, 0, 0, 0, 0, 0, 0, 0, 1744, 797,
+ 81, 82, 750, 84, 85, 86, 751, 0, 752, 89,
+ 0, 0, 92, 93, 94, 95, 96, 97, 798, 98,
+ 99, 753, 799, 0, 101, 102, 103, 104, 800, 801,
+ 106, 107, 108, 0, 109, 802, 803, 754, 755, 0,
+ 0, 0, 756, 757, 0, 0, 0, 0, 758, 0,
+ 0, 0, 0, 0, 0, 0, 0, 759, 0, 760,
+ 0, 761, 762, 35, 430, 0, 0, 37, 0, 38,
+ 39, 0, 1674, 1675, 1676, 40, 1677, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 1678, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 128, 1679, 130, 1680, 1681,
+ 0, 452, 453, 454, 455, 456, 457, 458, 1682, 1683,
+ 459, 460, 1684, 1685, 461, 0, 462, 463, 464, 465,
+ 1686, 0, 1687, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 765, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 481, 0, 1688, 1689, 1690, 1691,
+ 1692, 1693, 1694, 484, 485, 486, 487, 767, 488, 1695,
+ 1696, 489, 1697, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 1507, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 1698, 517, 518,
+ 519, 520, 1699, 1700, 521, 0, 522, 523, 524, 1701,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 1702, 0, 1703, 533, 534, 0,
+ 535, 536, 769, 537, 538, 168, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 171, 0, 551, 552, 553, 1510, 1704, 0, 1705,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 1706, 178, 562, 179, 0, 563,
+ 564, 565, 1707, 1708, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 770, 577, 578, 771, 579,
+ 580, 581, 1709, 185, 1710, 582, 583, 584, 585, 586,
+ 587, 588, 187, 1711, 589, 1712, 590, 591, 190, 592,
+ 1713, 1714, 593, 1715, 594, 595, 596, 0, 597, 598,
+ 0, 0, 1716, 600, 601, 0, 0, 602, 603, 193,
+ 194, 604, 195, 1717, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 1718, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 1719, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 652,
+ 653, 654, 1720, 655, 656, 657, 658, 659, 660, 661,
+ 772, 662, 0, 663, 664, 665, 666, 667, 1721, 669,
+ 670, 214, 671, 672, 216, 673, 674, 1722, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 1723, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 1724, 1725,
+ 0, 0, 700, 701, 1726, 702, 1727, 1728, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 1729, 711, 712,
+ 713, 714, 715, 1730, 0, 716, 717, 718, 719, 720,
+ 773, 1731, 4210, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 1732, 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739,
+ 245, 774, 733, 734, 1740, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1741, 1742, 0, 0, 0,
+ 0, 0, 0, 0, 1744, 797, 81, 82, 750, 84,
+ 85, 86, 751, 0, 752, 89, 0, 0, 92, 93,
+ 94, 95, 96, 97, 798, 98, 99, 753, 799, 0,
+ 101, 102, 103, 104, 800, 801, 106, 107, 108, 0,
+ 109, 802, 803, 754, 755, 0, 0, 0, 756, 757,
+ 0, 0, 0, 0, 758, 0, 0, 0, 0, 0,
+ 0, 0, 0, 759, 0, 760, 0, 761, 762, 35,
+ 430, 0, 0, 37, 0, 38, 39, 0, 1674, 1675,
+ 1676, 40, 1677, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 0, 0, 0, 0, 1678, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, 128, 1679, 130, 1680, 1681, 0, 452, 453, 454,
+ 455, 456, 457, 458, 1682, 1683, 459, 460, 1684, 1685,
+ 461, 0, 462, 463, 464, 465, 1686, 0, 1687, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 765,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 0, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484,
+ 485, 486, 487, 767, 488, 1695, 1696, 489, 1697, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 1507, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 1698, 517, 518, 519, 520, 1699, 1700,
+ 521, 0, 522, 523, 524, 1701, 525, 0, 526, 0,
+ 527, 163, 3727, 164, 528, 529, 530, 531, 0, 532,
+ 1702, 0, 1703, 533, 534, 0, 535, 536, 769, 537,
+ 538, 168, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 1510, 1704, 0, 1705, 0, 554, 174, 175,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 1706, 178, 562, 179, 0, 563, 564, 565, 1707, 1708,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 770, 577, 578, 771, 579, 580, 581, 1709, 185,
+ 1710, 582, 583, 584, 585, 586, 587, 588, 187, 1711,
+ 589, 1712, 590, 591, 190, 592, 1713, 1714, 593, 1715,
+ 594, 595, 596, 0, 597, 598, 0, 0, 1716, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 1717,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 1718, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 1719, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 1720, 655,
+ 656, 657, 658, 659, 660, 661, 772, 662, 0, 663,
+ 664, 665, 666, 667, 1721, 669, 670, 214, 671, 672,
+ 216, 673, 674, 1722, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 1723,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 1724, 1725, 0, 0, 700, 701,
+ 1726, 702, 1727, 1728, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 1729, 711, 712, 713, 714, 715, 1730,
+ 0, 716, 717, 718, 719, 720, 773, 1731, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 1732, 1733, 1734,
+ 1735, 240, 1736, 1737, 1738, 1739, 245, 774, 733, 734,
+ 1740, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1741, 1742, 0, 0, 0, 0, 0, 0, 0,
+ 1744, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 430, 0, 0, 37,
+ 0, 38, 39, 0, 1674, 1675, 1676, 40, 1677, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 1678, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 1679, 130,
+ 1680, 1681, 0, 452, 453, 454, 455, 456, 457, 458,
+ 1682, 1683, 459, 460, 1684, 1685, 461, 0, 462, 463,
+ 464, 465, 1686, 0, 1687, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 1688, 1689,
+ 1690, 1691, 1692, 1693, 1694, 484, 485, 486, 487, 767,
+ 488, 1695, 1696, 489, 1697, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 1698,
+ 517, 518, 519, 520, 1699, 1700, 521, 0, 522, 523,
+ 524, 1701, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 1702, 0, 1703, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 1510, 1704,
+ 0, 1705, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 1706, 178, 562, 179,
+ 0, 563, 564, 565, 1707, 1708, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1709, 185, 1710, 582, 583, 584,
+ 585, 586, 587, 588, 187, 1711, 589, 1712, 590, 591,
+ 190, 592, 1713, 1714, 593, 1715, 594, 595, 596, 0,
+ 597, 598, 0, 0, 1716, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 1717, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 1718,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1719, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 1720, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 1721, 669, 670, 214, 671, 672, 216, 673, 674, 1722,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 1723, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1724, 1725, 3781, 0, 700, 701, 1726, 702, 1727, 1728,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 1729,
+ 711, 712, 713, 714, 715, 1730, 0, 716, 717, 718,
+ 719, 720, 773, 1731, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 1732, 1733, 1734, 1735, 240, 1736, 1737,
+ 1738, 1739, 245, 774, 733, 734, 1740, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1741, 1742, 0,
+ 0, 0, 0, 0, 0, 0, 1744, 797, 81, 82,
+ 750, 84, 85, 86, 751, 0, 752, 89, 0, 0,
+ 92, 93, 94, 95, 96, 97, 798, 98, 99, 753,
+ 799, 0, 101, 102, 103, 104, 800, 801, 106, 107,
+ 108, 0, 109, 802, 803, 754, 755, 0, 0, 0,
+ 756, 757, 0, 0, 0, 0, 758, 0, 0, 0,
+ 0, 0, 0, 0, 0, 759, 0, 760, 0, 761,
+ 762, 35, 430, 0, 0, 37, 0, 38, 39, 0,
+ 1674, 1675, 1676, 40, 1677, 0, 0, 0, 0, 0,
+ 0, 0, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 1678, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 1679, 130, 1680, 1681, 0, 452,
+ 453, 454, 455, 456, 457, 458, 1682, 1683, 459, 460,
+ 1684, 1685, 461, 0, 462, 463, 464, 465, 1686, 0,
+ 1687, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 765, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 5209, 1688, 1689, 1690, 1691, 1692, 1693,
+ 1694, 484, 485, 486, 487, 767, 488, 1695, 1696, 489,
+ 1697, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 1507,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 1698, 517, 518, 519, 520,
+ 1699, 1700, 521, 0, 522, 523, 524, 1701, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 1702, 0, 1703, 533, 534, 0, 535, 536,
+ 769, 537, 538, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 1510, 1704, 0, 1705, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 1706, 178, 562, 179, 0, 563, 564, 565,
+ 1707, 1708, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 770, 577, 578, 771, 579, 580, 581,
+ 1709, 185, 1710, 582, 583, 584, 585, 586, 587, 588,
+ 187, 1711, 589, 1712, 590, 591, 190, 592, 1713, 1714,
+ 593, 1715, 594, 595, 596, 0, 597, 598, 0, 0,
+ 1716, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 1717, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 1718, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 1719, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 1720, 655, 656, 657, 658, 659, 660, 661, 772, 662,
+ 0, 663, 664, 665, 666, 667, 1721, 669, 670, 214,
+ 671, 672, 216, 673, 674, 1722, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 1723, 689, 0, 690, 691, 0, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 1724, 1725, 0, 0,
+ 700, 701, 1726, 702, 1727, 1728, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 1729, 711, 712, 713, 714,
+ 715, 1730, 0, 716, 717, 718, 719, 720, 773, 1731,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 0, 727, 728, 729, 730, 731, 732, 235, 1732,
+ 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739, 245, 774,
+ 733, 734, 1740, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1741, 1742, 0, 0, 0, 0, 0,
+ 0, 0, 1744, 797, 81, 82, 750, 84, 85, 86,
+ 751, 0, 752, 89, 0, 0, 92, 93, 94, 95,
+ 96, 97, 798, 98, 99, 753, 799, 0, 101, 102,
+ 103, 104, 800, 801, 106, 107, 108, 0, 109, 802,
+ 803, 754, 755, 0, 0, 0, 756, 757, 0, 0,
+ 0, 0, 758, 0, 0, 0, 0, 0, 0, 0,
+ 0, 759, 0, 760, 0, 761, 762, 35, 430, 0,
+ 0, 37, 0, 38, 39, 0, 1674, 1675, 1676, 40,
+ 1677, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 0, 439, 440, 441,
+ 0, 0, 0, 0, 1678, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 6430,
+ 1679, 130, 1680, 1681, 0, 452, 453, 454, 455, 456,
+ 457, 458, 1682, 1683, 459, 460, 1684, 1685, 461, 0,
+ 462, 463, 464, 465, 1686, 0, 1687, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 765, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 6431,
+ 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484, 485, 486,
+ 487, 767, 488, 1695, 1696, 489, 1697, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 1507, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 1698, 517, 518, 519, 520, 1699, 1700, 521, 0,
+ 522, 523, 524, 1701, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 1702, 0,
+ 1703, 533, 534, 0, 535, 536, 769, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 1510, 1704, 0, 1705, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 1706, 178,
+ 562, 179, 0, 563, 564, 565, 1707, 1708, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 770,
+ 577, 578, 771, 579, 580, 581, 1709, 185, 1710, 582,
+ 583, 584, 585, 586, 587, 588, 187, 1711, 589, 1712,
+ 590, 591, 190, 592, 1713, 1714, 593, 1715, 594, 595,
+ 596, 0, 597, 598, 0, 0, 1716, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 1717, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 1718, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 1719, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 1720, 655, 656, 657,
+ 658, 659, 660, 661, 772, 662, 0, 663, 664, 665,
+ 666, 667, 1721, 669, 670, 214, 671, 672, 216, 673,
+ 674, 1722, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 1723, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 1724, 1725, 0, 0, 700, 701, 1726, 702,
+ 1727, 1728, 703, 704, 705, 706, 707, 6432, 709, 710,
+ 0, 1729, 711, 712, 713, 714, 715, 1730, 0, 716,
+ 717, 718, 719, 720, 773, 1731, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 1732, 1733, 1734, 1735, 240,
+ 1736, 1737, 1738, 1739, 245, 774, 733, 734, 1740, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1741,
+ 1742, 0, 0, 0, 0, 0, 0, 0, 1744, 797,
+ 81, 82, 750, 84, 85, 86, 751, 0, 752, 89,
+ 0, 0, 92, 93, 94, 95, 96, 97, 798, 98,
+ 99, 753, 799, 0, 101, 102, 103, 104, 800, 801,
+ 106, 107, 108, 0, 109, 802, 803, 754, 755, 0,
+ 0, 0, 756, 757, 0, 0, 0, 0, 758, 0,
+ 0, 0, 0, 0, 0, 0, 0, 759, 0, 760,
+ 0, 761, 762, 35, 430, 0, 0, 37, 0, 38,
+ 39, 0, 1674, 1675, 1676, 40, 1677, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 1678, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 128, 1679, 130, 1680, 1681,
+ 0, 452, 453, 454, 455, 456, 457, 458, 1682, 1683,
+ 459, 460, 1684, 1685, 461, 0, 462, 463, 464, 465,
+ 1686, 0, 1687, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 765, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 481, 6431, 1688, 1689, 1690, 1691,
+ 1692, 1693, 1694, 484, 485, 486, 487, 767, 488, 1695,
+ 1696, 489, 1697, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 1507, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 1698, 517, 518,
+ 519, 520, 1699, 1700, 521, 0, 522, 523, 524, 1701,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 1702, 0, 1703, 533, 534, 0,
+ 535, 536, 769, 537, 538, 168, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 171, 0, 551, 552, 553, 1510, 1704, 0, 1705,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 1706, 178, 562, 179, 0, 563,
+ 564, 565, 1707, 1708, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 770, 577, 578, 771, 579,
+ 580, 581, 1709, 185, 1710, 582, 583, 584, 585, 586,
+ 587, 588, 187, 1711, 589, 1712, 590, 591, 190, 592,
+ 1713, 1714, 593, 1715, 594, 595, 596, 0, 597, 598,
+ 0, 0, 1716, 600, 601, 0, 0, 602, 603, 193,
+ 194, 604, 195, 1717, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 1718, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 1719, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 652,
+ 653, 654, 1720, 655, 656, 657, 658, 659, 660, 661,
+ 772, 662, 0, 663, 664, 665, 666, 667, 1721, 669,
+ 670, 214, 671, 672, 216, 673, 674, 1722, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 1723, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 1724, 1725,
+ 0, 0, 700, 701, 1726, 702, 1727, 1728, 703, 704,
+ 705, 706, 707, 6432, 709, 710, 0, 1729, 711, 712,
+ 713, 714, 715, 1730, 0, 716, 717, 718, 719, 720,
+ 773, 1731, 0, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 1732, 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739,
+ 245, 774, 733, 734, 1740, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1741, 1742, 0, 0, 0,
+ 0, 0, 0, 0, 1744, 797, 81, 82, 750, 84,
+ 85, 86, 751, 0, 752, 89, 0, 0, 92, 93,
+ 94, 95, 96, 97, 798, 98, 99, 753, 799, 0,
+ 101, 102, 103, 104, 800, 801, 106, 107, 108, 0,
+ 109, 802, 803, 754, 755, 0, 0, 0, 756, 757,
+ 0, 0, 0, 0, 758, 0, 0, 0, 0, 0,
+ 0, 0, 0, 759, 0, 760, 0, 761, 762, 35,
+ 430, 0, 0, 37, 0, 38, 39, 0, 1674, 1675,
+ 1676, 40, 1677, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 0, 0, 0, 0, 1678, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, 128, 1679, 130, 1680, 1681, 0, 452, 453, 454,
+ 455, 456, 457, 458, 1682, 1683, 459, 460, 1684, 1685,
+ 461, 0, 462, 463, 464, 465, 1686, 0, 1687, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 765,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 0, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484,
+ 485, 486, 487, 767, 488, 1695, 1696, 489, 1697, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 1507, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 1698, 517, 518, 519, 520, 1699, 1700,
+ 521, 0, 522, 523, 524, 1701, 525, 0, 526, 0,
+ 527, 163, 0, 164, 528, 529, 530, 531, 0, 532,
+ 1702, 0, 1703, 533, 534, 0, 535, 536, 769, 537,
+ 538, 168, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 1510, 1704, 0, 1705, 0, 554, 174, 175,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 1706, 178, 562, 179, 0, 563, 564, 565, 1707, 1708,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 770, 577, 578, 771, 579, 580, 581, 1709, 185,
+ 1710, 582, 583, 584, 585, 586, 587, 588, 187, 1711,
+ 589, 1712, 590, 591, 190, 592, 1713, 1714, 593, 1715,
+ 594, 595, 596, 0, 597, 598, 0, 0, 1716, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 1717,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 1718, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 1719, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 1720, 655,
+ 656, 657, 658, 659, 660, 661, 772, 662, 0, 663,
+ 664, 665, 666, 667, 1721, 669, 670, 214, 671, 672,
+ 216, 673, 674, 1722, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 1723,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 1724, 1725, 0, 0, 700, 701,
+ 1726, 702, 1727, 1728, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 1729, 711, 712, 713, 714, 715, 1730,
+ 0, 716, 717, 718, 719, 720, 773, 1731, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 1732, 1733, 1734,
+ 1735, 240, 1736, 1737, 1738, 1739, 245, 774, 733, 734,
+ 1740, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1741, 1742, 0, 0, 0, 0, 0, 0, 0,
+ 1744, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 430, 0, 0, 37,
+ 0, 38, 39, 0, 1674, 1675, 1676, 40, 1677, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 1678, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 1679, 130,
+ 1680, 1681, 0, 452, 453, 454, 455, 456, 457, 458,
+ 1682, 1683, 459, 460, 1684, 1685, 461, 0, 462, 463,
+ 464, 465, 1686, 0, 1687, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 1688, 1689,
+ 1690, 1691, 1692, 1693, 1694, 484, 485, 486, 487, 767,
+ 488, 1695, 1696, 489, 1697, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 1698,
+ 517, 518, 519, 520, 1699, 1700, 521, 0, 522, 523,
+ 524, 1701, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 1702, 0, 1703, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 1510, 1704,
+ 0, 1705, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 1706, 178, 562, 179,
+ 0, 563, 564, 565, 1707, 1708, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1709, 185, 1710, 582, 583, 584,
+ 585, 586, 587, 588, 187, 1711, 589, 1712, 590, 591,
+ 190, 592, 1713, 1714, 593, 1715, 594, 595, 596, 0,
+ 597, 598, 0, 0, 1716, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 1717, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 1718,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1719, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 1720, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 1721, 669, 670, 214, 671, 672, 216, 673, 674, 1722,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 1723, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1724, 1725, 0, 0, 700, 701, 1726, 702, 1727, 1728,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 1729,
+ 711, 712, 713, 714, 715, 1730, 0, 716, 717, 718,
+ 719, 720, 773, 1731, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 1732, 1733, 1734, 1735, 240, 1736, 1737,
+ 1738, 1739, 245, 774, 733, 734, 1740, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 3040, 3041, 0,
+ 0, 0, 0, 0, 0, 0, 1744, 797, 81, 82,
+ 750, 84, 85, 86, 751, 0, 752, 89, 0, 0,
+ 92, 93, 94, 95, 96, 97, 798, 98, 99, 753,
+ 799, 0, 101, 102, 103, 104, 800, 801, 106, 107,
+ 108, 0, 109, 802, 803, 754, 755, 0, 0, 0,
+ 756, 757, 0, 0, 0, 0, 758, 0, 0, 0,
+ 0, 0, 0, 0, 0, 759, 0, 760, 0, 761,
+ 762, 35, 430, 0, 0, 37, 0, 38, 39, 0,
+ 1674, 1675, 1676, 40, 1677, 0, 0, 0, 0, 0,
+ 0, 0, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 1678, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 1679, 130, 1680, 1681, 0, 452,
+ 453, 454, 455, 456, 457, 458, 1682, 1683, 459, 460,
+ 1684, 1685, 461, 0, 462, 463, 464, 465, 1686, 0,
+ 1687, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 765, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 0, 1688, 1689, 1690, 1691, 1692, 1693,
+ 1694, 484, 485, 486, 487, 767, 488, 1695, 1696, 489,
+ 1697, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 1507,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 1698, 517, 518, 519, 520,
+ 1699, 1700, 521, 0, 522, 523, 524, 1701, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 1702, 0, 1703, 533, 534, 0, 535, 536,
+ 769, 537, 538, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 1510, 1704, 0, 1705, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 1706, 178, 562, 179, 0, 563, 564, 565,
+ 1707, 1708, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 770, 577, 578, 771, 579, 580, 581,
+ 1709, 185, 1710, 582, 583, 584, 585, 586, 587, 588,
+ 187, 1711, 589, 1712, 590, 591, 190, 592, 1713, 1714,
+ 593, 1715, 594, 595, 596, 0, 597, 598, 0, 0,
+ 1716, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 1717, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 1718, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 1719, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 1720, 655, 656, 657, 658, 659, 660, 661, 772, 662,
+ 0, 663, 664, 665, 666, 667, 1721, 669, 670, 214,
+ 671, 672, 216, 673, 674, 1722, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 1723, 689, 0, 690, 691, 0, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 1724, 1725, 0, 0,
+ 700, 701, 1726, 702, 1727, 1728, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 1729, 711, 712, 713, 714,
+ 715, 1730, 0, 716, 717, 718, 719, 720, 773, 1731,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 0, 727, 728, 729, 730, 731, 732, 5585, 1732,
+ 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739, 245, 774,
+ 733, 734, 1740, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1741, 1742, 0, 0, 0, 0, 0,
+ 0, 0, 1744, 797, 81, 82, 750, 84, 85, 86,
+ 751, 0, 752, 89, 0, 0, 92, 93, 94, 95,
+ 96, 97, 798, 98, 99, 753, 799, 0, 101, 102,
+ 103, 104, 800, 801, 106, 107, 108, 0, 109, 802,
+ 803, 754, 755, 0, 0, 0, 756, 757, 0, 0,
+ 0, 0, 758, 0, 0, 0, 0, 0, 0, 0,
+ 0, 759, 0, 760, 0, 761, 762, 35, 430, 0,
+ 0, 37, 0, 38, 39, 0, 1674, 1675, 1676, 40,
+ 1677, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 0, 439, 440, 441,
+ 0, 0, 0, 0, 1678, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 128,
+ 1679, 130, 1680, 1681, 0, 452, 453, 454, 455, 456,
+ 457, 458, 1682, 1683, 459, 460, 1684, 1685, 461, 0,
+ 462, 463, 464, 465, 1686, 0, 1687, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 765, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484, 485, 486,
+ 487, 767, 488, 1695, 1696, 489, 1697, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 1507, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 1698, 517, 518, 519, 520, 1699, 1700, 521, 0,
+ 522, 523, 524, 1701, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 1702, 0,
+ 1703, 533, 534, 0, 535, 536, 769, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 1510, 1704, 0, 1705, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 1706, 178,
+ 562, 179, 0, 563, 564, 565, 1707, 1708, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 770,
+ 577, 578, 771, 579, 580, 581, 1709, 185, 1710, 582,
+ 583, 584, 585, 586, 587, 5597, 187, 1711, 589, 1712,
+ 590, 591, 190, 592, 1713, 1714, 593, 1715, 594, 595,
+ 596, 0, 597, 598, 0, 0, 1716, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 1717, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 1718, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 1719, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 1720, 655, 656, 657,
+ 658, 659, 660, 661, 772, 662, 0, 663, 664, 665,
+ 666, 667, 1721, 669, 670, 214, 671, 672, 216, 673,
+ 674, 1722, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 1723, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 1724, 1725, 0, 0, 700, 701, 1726, 702,
+ 1727, 1728, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 1729, 711, 712, 713, 714, 715, 1730, 0, 716,
+ 717, 718, 719, 720, 773, 1731, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 1732, 1733, 1734, 1735, 240,
+ 1736, 1737, 1738, 1739, 245, 774, 733, 734, 1740, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1741,
+ 1742, 0, 0, 0, 0, 0, 0, 0, 1744, 797,
+ 81, 82, 750, 84, 85, 86, 751, 0, 752, 89,
+ 0, 0, 92, 93, 94, 95, 96, 97, 798, 98,
+ 99, 753, 799, 0, 101, 102, 103, 104, 800, 801,
+ 106, 107, 108, 0, 109, 802, 803, 754, 755, 0,
+ 0, 0, 756, 757, 0, 0, 0, 0, 758, 0,
+ 0, 0, 0, 0, 0, 0, 0, 759, 0, 760,
+ 0, 761, 762, 35, 430, 0, 0, 37, 0, 38,
+ 39, 0, 1674, 1675, 1676, 40, 1677, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 1678, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 128, 1679, 130, 1680, 1681,
+ 0, 452, 453, 454, 455, 456, 457, 458, 1682, 1683,
+ 459, 460, 1684, 1685, 461, 0, 462, 463, 464, 465,
+ 1686, 0, 1687, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 765, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 6136, 0, 1688, 1689, 1690, 1691,
+ 1692, 1693, 1694, 484, 485, 486, 487, 767, 488, 1695,
+ 1696, 489, 1697, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 1507, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 1698, 517, 518,
+ 519, 520, 1699, 1700, 521, 0, 522, 523, 524, 1701,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 1702, 0, 6137, 533, 534, 0,
+ 535, 536, 769, 537, 538, 168, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 171, 0, 551, 552, 553, 1510, 1704, 0, 1705,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 1706, 178, 562, 179, 0, 563,
+ 564, 565, 1707, 1708, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 770, 577, 578, 771, 579,
+ 580, 581, 1709, 185, 1710, 582, 583, 584, 585, 586,
+ 587, 588, 187, 1711, 589, 1712, 590, 591, 190, 592,
+ 1713, 1714, 593, 1715, 594, 595, 596, 0, 597, 598,
+ 0, 0, 1716, 600, 601, 0, 0, 602, 603, 193,
+ 194, 604, 195, 1717, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 1718, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 1719, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 6138,
+ 653, 654, 1720, 655, 656, 657, 658, 659, 660, 661,
+ 772, 662, 0, 663, 664, 665, 666, 667, 1721, 669,
+ 670, 214, 671, 672, 216, 673, 674, 1722, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 1723, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 1724, 1725,
+ 0, 0, 700, 701, 1726, 702, 1727, 1728, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 1729, 711, 712,
+ 713, 714, 715, 1730, 0, 716, 717, 718, 719, 720,
+ 773, 1731, 0, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 1732, 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739,
+ 245, 774, 733, 734, 1740, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1741, 1742, 0, 0, 0,
+ 0, 0, 0, 0, 6139, 797, 81, 82, 750, 84,
+ 85, 86, 751, 0, 752, 89, 0, 0, 92, 93,
+ 94, 95, 96, 97, 798, 98, 99, 753, 799, 0,
+ 101, 102, 103, 104, 800, 801, 106, 107, 108, 0,
+ 109, 802, 803, 754, 755, 0, 0, 0, 756, 757,
+ 0, 0, 0, 0, 758, 0, 0, 0, 0, 0,
+ 0, 0, 0, 759, 0, 760, 0, 761, 762, 35,
+ 430, 0, 0, 37, 0, 38, 39, 0, 1674, 1675,
+ 1676, 40, 1677, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 0, 0, 0, 0, 1678, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, -3512, 1679, 130, 1680, 1681, 0, 452, 453, 454,
+ 455, 456, 457, 458, 1682, 1683, 459, 460, 1684, 1685,
+ 461, 0, 462, 463, 464, 465, 1686, 0, 1687, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 765,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 6431, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484,
+ 485, 486, 487, 767, 488, 1695, 1696, 489, 1697, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 1507, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 1698, 517, 518, 519, 520, 1699, 1700,
+ 521, 0, 522, 523, 524, 1701, 525, 0, 526, 0,
+ 527, 163, 0, 164, 528, 529, 530, 531, 0, 532,
+ 1702, 0, 1703, 533, 534, 0, 535, 536, 769, 537,
+ 538, -3512, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 1510, 1704, 0, 1705, 0, 554, 0, 0,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 1706, 178, 562, -3512, 0, 563, 564, 565, 1707, 1708,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 770, 577, 578, 771, 579, 580, 581, 1709, 185,
+ 1710, 582, 583, 584, 585, 586, 587, 588, 187, 1711,
+ 589, 1712, 590, 591, 0, 592, 1713, 1714, 593, 1715,
+ 594, 595, 596, 0, 597, 598, 0, 0, 1716, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 1717,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 1718, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 1719, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 1720, 655,
+ 656, 657, 658, 659, 660, 661, 772, 662, 0, 663,
+ 664, 665, 666, 667, 1721, 669, 670, 214, 671, 672,
+ -3512, 673, 674, 1722, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 1723,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 1724, 1725, 0, 0, 700, 701,
+ 1726, 702, 1727, 1728, 703, 704, 705, 706, 707, 6432,
+ 709, 710, 0, 1729, 711, 712, 713, 714, 715, 1730,
+ 0, 716, 717, 718, 719, 720, 773, 1731, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 1732, 1733, 1734,
+ 1735, 240, 1736, 1737, 1738, 1739, 245, 774, 733, 734,
+ -3512, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1741, 1742, 0, 0, 0, 0, 0, 0, 0,
+ 1744, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 430, 0, 0, 37,
+ 0, 38, 39, 0, 1674, 1675, 1676, 40, 1677, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 1678, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 1679, 130,
+ 1680, 1681, 0, 452, 453, 454, 455, 456, 457, 458,
+ 1682, 1683, 459, 460, 1684, 1685, 461, 0, 462, 463,
+ 464, 465, 1686, 0, 1687, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 1688, 1689,
+ 1690, 1691, 1692, 1693, 1694, 484, 485, 486, 487, 767,
+ 488, 1695, 1696, 489, 6121, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 1698,
+ 517, 518, 519, 520, 1699, 1700, 521, 0, 522, 523,
+ 524, 1701, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 1702, 0, 1703, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 1510, 1704,
+ 0, 1705, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 1706, 178, 562, 179,
+ 0, 563, 564, 565, 1707, 1708, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1709, 185, 1710, 582, 583, 584,
+ 585, 586, 587, 588, 187, 1711, 589, 0, 590, 591,
+ 190, 592, 1713, 1714, 593, 1715, 594, 595, 596, 0,
+ 597, 598, 0, 0, 1716, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 1717, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 1718,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1719, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 3712, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 1721, 669, 670, 214, 671, 672, 216, 673, 674, 1722,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 1723, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1724, 1725, 0, 0, 700, 701, 1726, 702, 1727, 1728,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 1730, 0, 716, 717, 718,
+ 719, 720, 773, 1731, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 1732, 1733, 1734, 1735, 240, 1736, 1737,
+ 1738, 1739, 245, 774, 733, 734, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 3713, 3714, 0,
+ 0, 0, 0, 0, 0, 0, 3715, 797, 81, 82,
+ 750, 84, 85, 86, 751, 0, 752, 89, 0, 0,
+ 92, 93, 94, 95, 96, 97, 798, 98, 99, 753,
+ 799, 0, 101, 102, 103, 104, 800, 801, 106, 107,
+ 108, 0, 109, 802, 803, 754, 755, 0, 0, 0,
+ 756, 757, 0, 0, 0, 0, 758, 0, 0, 0,
+ 0, 0, 0, 0, 0, 759, 0, 760, 0, 761,
+ 762, 35, 430, 0, 0, 37, 0, 38, 39, 0,
+ 1674, 1675, 1676, 40, 1677, 0, 0, 0, 0, 0,
+ 0, 0, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 1678, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 1679, 130, 1680, 1681, 0, 452,
+ 453, 454, 455, 456, 457, 458, 1682, 1683, 459, 460,
+ 1684, 1685, 461, 0, 462, 463, 464, 465, 1686, 0,
+ 1687, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 765, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 0, 1688, 1689, 1690, 1691, 1692, 1693,
+ 1694, 484, 485, 486, 487, 767, 488, 1695, 1696, 489,
+ 0, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 1507,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 1698, 517, 518, 519, 520,
+ 1699, 1700, 521, 0, 522, 523, 524, 1701, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 1702, 0, 1703, 533, 534, 0, 535, 536,
+ 769, 537, 538, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 1510, 1704, 0, 1705, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 1706, 178, 562, 179, 0, 563, 564, 565,
+ 1707, 1708, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 770, 577, 578, 771, 579, 580, 581,
+ 1709, 185, 1710, 582, 583, 584, 585, 586, 587, 588,
+ 187, 1711, 589, 0, 590, 591, 190, 592, 1713, 1714,
+ 593, 1715, 594, 595, 596, 0, 597, 598, 0, 0,
+ 1716, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 1717, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 1718, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 1719, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 3712, 655, 656, 657, 658, 659, 660, 661, 772, 662,
+ 0, 663, 664, 665, 666, 667, 1721, 669, 670, 214,
+ 671, 672, 216, 673, 674, 1722, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 1723, 689, 0, 690, 691, 0, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 1724, 1725, 0, 0,
+ 700, 701, 1726, 702, 1727, 1728, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 0, 711, 712, 713, 714,
+ 715, 1730, 0, 716, 717, 718, 719, 720, 773, 1731,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 0, 727, 728, 729, 730, 731, 732, 235, 1732,
+ 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739, 245, 774,
+ 733, 734, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 3713, 3714, 0, 0, 0, 0, 0,
+ 0, 0, 3715, 797, 81, 82, 750, 84, 85, 86,
+ 751, 0, 752, 89, 0, 0, 92, 93, 94, 95,
+ 96, 97, 798, 98, 99, 753, 799, 0, 101, 102,
+ 103, 104, 800, 801, 106, 107, 108, 0, 109, 802,
+ 803, 754, 755, 0, 0, 0, 756, 757, 0, 0,
+ 0, 0, 758, 0, 0, 0, 0, 0, 0, 0,
+ 0, 759, 0, 760, 0, 761, 762, 35, 430, 0,
+ 0, 37, 0, 38, 39, 0, 1674, 1675, 0, 40,
+ 1677, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 0, 439, 440, 441,
+ 0, 0, 0, 0, 1678, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 128,
+ 1679, 130, 1680, 1681, 0, 452, 453, 454, 455, 456,
+ 457, 458, 1682, 1683, 459, 460, 1684, 1685, 461, 0,
+ 462, 463, 464, 465, 1686, 0, 1687, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 765, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484, 485, 486,
+ 487, 767, 488, 1695, 1696, 489, 0, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 1507, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 1698, 517, 518, 519, 520, 1699, 1700, 521, 0,
+ 522, 523, 524, 1701, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 1702, 0,
+ 1703, 533, 534, 0, 535, 536, 769, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 1510, 1704, 0, 1705, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 1706, 178,
+ 562, 179, 0, 563, 564, 565, 1707, 1708, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 770,
+ 577, 578, 771, 579, 580, 581, 1709, 185, 1710, 582,
+ 583, 584, 585, 586, 587, 588, 187, 1711, 589, 0,
+ 590, 591, 190, 592, 1713, 1714, 593, 1715, 594, 595,
+ 596, 0, 597, 598, 0, 0, 599, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 1717, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 1718, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 1719, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 3852, 3853, 656, 657,
+ 658, 659, 660, 661, 772, 662, 0, 663, 664, 665,
+ 666, 667, 1721, 669, 670, 214, 671, 672, 216, 673,
+ 674, 1722, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 1723, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 1724, 1725, 0, 0, 700, 701, 1726, 702,
+ 1727, 1728, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 0, 711, 712, 713, 714, 715, 1730, 0, 716,
+ 717, 718, 719, 720, 773, 1731, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 1732, 1733, 1734, 1735, 240,
+ 1736, 1737, 1738, 1739, 245, 774, 733, 734, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3854,
+ 3855, 0, 0, 0, 0, 0, 0, 0, 3715, 797,
+ 81, 82, 750, 84, 85, 86, 751, 0, 752, 89,
+ 0, 0, 92, 93, 94, 95, 96, 97, 798, 98,
+ 99, 753, 799, 0, 101, 102, 103, 104, 800, 801,
+ 106, 107, 108, 0, 109, 802, 803, 754, 755, 0,
+ 0, 0, 756, 757, 0, 0, 0, 0, 758, 0,
+ 0, 0, 0, 0, 0, 0, 0, 759, 0, 760,
+ 0, 761, 762, 35, 430, 0, 0, 37, 0, 38,
+ 39, 0, 1674, 1675, 0, 40, 1677, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 1678, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 128, 1679, 130, 1680, 1681,
+ 0, 452, 453, 454, 455, 456, 457, 458, 1682, 1683,
+ 459, 460, 1684, 1685, 461, 0, 462, 463, 464, 465,
+ 1686, 0, 1687, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 765, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 481, 0, 1688, 1689, 1690, 1691,
+ 1692, 1693, 1694, 484, 485, 486, 487, 767, 488, 1695,
+ 1696, 489, 0, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 1507, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 1698, 517, 518,
+ 519, 520, 1699, 1700, 521, 0, 522, 523, 524, 1701,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 1702, 0, 1703, 533, 534, 0,
+ 535, 536, 769, 537, 538, 168, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 171, 0, 551, 552, 553, 1510, 1704, 0, 1705,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 1706, 178, 562, 179, 0, 563,
+ 564, 565, 1707, 1708, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 770, 577, 578, 771, 579,
+ 580, 581, 1709, 185, 1710, 582, 583, 584, 585, 586,
+ 587, 588, 187, 1711, 589, 0, 590, 591, 190, 592,
+ 1713, 1714, 593, 1715, 594, 595, 596, 0, 597, 598,
+ 0, 0, 599, 600, 601, 0, 0, 602, 603, 193,
+ 194, 604, 195, 1717, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 1718, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 1719, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 652,
+ 653, 654, 3712, 655, 656, 657, 658, 659, 660, 661,
+ 772, 662, 0, 663, 664, 665, 666, 667, 1721, 669,
+ 670, 214, 671, 672, 216, 673, 674, 1722, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 1723, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 1724, 1725,
+ 0, 0, 700, 701, 1726, 702, 1727, 1728, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 0, 711, 712,
+ 713, 714, 715, 1730, 0, 716, 717, 718, 719, 720,
+ 773, 1731, 0, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 1732, 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739,
+ 245, 774, 733, 734, 0, 0, 0, 0, 0, 0,
+ 0, 0, 797, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 3715, 92, 93, 94, 95, 96,
+ 97, 798, 98, 99, 753, 799, 0, 101, 102, 103,
+ 104, 800, 801, 106, 107, 108, 0, 109, 802, 803,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 430, 0, 0,
+ 37, 0, 38, 39, 0, 1674, 1675, 0, 40, 1677,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 1678, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 126, 449, 450, 451, 128, 1679,
+ 130, 1680, 1681, 0, 452, 5114, 454, 455, 456, 457,
+ 458, 1682, 1683, 459, 460, 1684, 1685, 461, 0, 462,
+ 463, 464, 465, 1686, 0, 1687, 0, 466, 467, 468,
+ 469, 470, 471, 142, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 145, 480, 481, 0, 1688,
+ 1689, 1690, 1691, 1692, 1693, 1694, 484, 485, 486, 487,
+ 767, 488, 1695, 1696, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 1507, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 1698, 517, 518, 519, 520, 1699, 1700, 521, 0, 522,
+ 523, 524, 1701, 525, 0, 526, 0, 527, 163, 0,
+ 164, 528, 529, 530, 531, 0, 532, 1702, 0, 1703,
+ 533, 534, 0, 535, 536, 769, 537, 538, 168, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 170, 171, 0, 551, 552, 553, 1510,
+ 1704, 0, 1705, 0, 554, 174, 175, 555, 176, 556,
+ 557, 558, 559, 560, 0, 0, 561, 1706, 178, 562,
+ 179, 0, 563, 564, 565, 1707, 1708, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 1709, 185, 1710, 582, 583,
+ 584, 585, 586, 587, 588, 187, 1711, 589, 0, 590,
+ 591, 190, 592, 1713, 1714, 593, 1715, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 194, 604, 195, 1717, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 1718, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 1719, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 207,
+ 650, 651, 652, 653, 654, 3712, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 1721, 669, 670, 214, 671, 672, 216, 673, 674,
+ 1722, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 1723, 689, 0, 690,
+ 691, 0, 692, 221, 693, 694, 695, 696, 697, 0,
+ 698, 1724, 1725, 0, 0, 700, 701, 1726, 702, 1727,
+ 1728, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 1730, 0, 716, 717,
+ 718, 719, 720, 773, 1731, 0, 721, 233, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 1732, 1733, 1734, 1735, 240, 1736,
+ 1737, 1738, 1739, 245, 774, 733, 734, 0, 0, 0,
+ 0, 0, 0, 0, 0, 797, 81, 82, 750, 84,
+ 85, 86, 751, 0, 752, 89, 0, 3715, 92, 93,
+ 94, 95, 96, 97, 798, 98, 99, 753, 799, 0,
+ 101, 102, 103, 104, 800, 801, 106, 107, 108, 0,
+ 109, 802, 803, 754, 755, 0, 0, 0, 756, 757,
+ 0, 0, 0, 0, 758, 0, 0, 0, 0, 0,
+ 0, 0, 0, 759, 0, 760, 0, 761, 762, 35,
+ 430, 0, 0, 37, 0, 38, 39, 0, 1674, 1675,
+ 0, 40, 1677, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 0, 0, 0, 0, 1678, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, 128, 1679, 130, 1680, 1681, 0, 452, 453, 454,
+ 455, 456, 457, 458, 1682, 1683, 459, 460, 1684, 1685,
+ 461, 0, 462, 463, 464, 465, 1686, 0, 1687, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 765,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 0, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484,
+ 485, 486, 487, 767, 488, 1695, 1696, 489, 0, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 1507, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 1698, 517, 518, 519, 520, 1699, 1700,
+ 521, 0, 522, 523, 524, 1701, 525, 0, 526, 0,
+ 527, 163, 0, 164, 528, 529, 530, 531, 0, 532,
+ 1702, 0, 1703, 533, 534, 0, 535, 536, 769, 537,
+ 538, 168, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 1510, 1704, 0, 1705, 0, 554, 174, 175,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 1706, 178, 562, 179, 0, 563, 564, 565, 1707, 1708,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 770, 577, 578, 771, 579, 580, 581, 1709, 185,
+ 1710, 582, 583, 584, 585, 586, 587, 588, 187, 1711,
+ 589, 0, 590, 591, 190, 592, 1713, 1714, 593, 1715,
+ 594, 595, 596, 0, 597, 598, 0, 0, 599, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 1717,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 1718, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 1719, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 3712, 655,
+ 656, 657, 658, 659, 660, 661, 772, 662, 0, 663,
+ 664, 665, 666, 667, 1721, 669, 670, 214, 671, 672,
+ 216, 673, 674, 1722, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 1723,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 1724, 1725, 0, 0, 700, 701,
+ 1726, 702, 1727, 1728, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 0, 711, 712, 713, 714, 715, 1730,
+ 0, 716, 717, 718, 719, 720, 773, 1731, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 1732, 1733, 1734,
+ 1735, 5626, 1736, 1737, 1738, 1739, 245, 774, 733, 734,
+ 0, 0, 0, 0, 0, 0, 0, 0, 797, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 3715, 92, 93, 94, 95, 96, 97, 798, 98, 99,
+ 753, 799, 0, 101, 102, 103, 104, 800, 801, 106,
+ 107, 108, 0, 109, 802, 803, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 126, 449, 450, 451, 128, 129, 130, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 1683, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 1686,
+ 0, 1687, 0, 466, 467, 468, 469, 470, 471, 142,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 145, 480, 481, 0, 1688, 1689, 1690, 1691, 1692,
+ 1693, 1694, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 1699, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 163, 0, 164, 528, 529, 530,
+ 531, 0, 532, 1702, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 168, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 170,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 174, 175, 555, 176, 556, 557, 558, 559, 560,
+ 4576, 0, 561, 1706, 178, 562, 179, 0, 563, 564,
+ 565, 1707, 1708, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 185, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 1711, 589, 0, 590, 591, 190, 592, 0,
+ 1714, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 1197, 599, 600, 601, 0, 0, 602, 603, 193, 194,
+ 604, 195, 1717, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 1718, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 207, 650, 651, 652, 653,
+ 654, 209, 4577, 656, 657, 658, 659, 660, 661, 772,
+ 662, 212, 663, 664, 665, 666, 667, 1721, 669, 670,
+ 214, 671, 672, 216, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 1723, 689, 0, 690, 691, 220, 692, 221,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 1726, 702, 1727, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 1730, 0, 716, 717, 718, 719, 720, 2487,
+ 232, 0, 721, 233, 722, 723, 724, 725, 0, 0,
+ 726, 0, 234, 727, 728, 729, 730, 731, 732, 235,
+ 1732, 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739, 4578,
+ 774, 733, 734, 0, 0, 246, 0, 0, 0, 0,
+ 0, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 4579, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 1683, 459, 460, 764, 134, 461, 0, 462, 463,
+ 464, 465, 1686, 0, 1687, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 1688, 1689,
+ 1690, 1691, 1692, 1693, 1694, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 1699, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 1702, 0, 167, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 4576, 0, 561, 1706, 178, 562, 179,
+ 0, 563, 564, 565, 1707, 1708, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 1711, 589, 0, 590, 591,
+ 190, 592, 0, 1714, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 1197, 599, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 1717, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 1718,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 4577, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 1721, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 1723, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 1726, 702, 1727, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 1730, 0, 716, 717, 718,
+ 719, 720, 773, 232, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 1732, 1733, 1734, 1735, 240, 1736, 1737,
+ 1738, 1739, 4578, 774, 733, 734, 0, 0, 0, 0,
+ 0, 0, 0, 0, 797, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 4579, 92, 93, 94,
+ 95, 96, 97, 798, 98, 99, 753, 799, 0, 101,
+ 102, 103, 104, 800, 801, 106, 107, 108, 0, 109,
+ 802, 803, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 126, 449, 450, 451,
+ 128, 129, 130, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 1683, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 1686, 0, 1687, 0, 466,
+ 467, 468, 469, 470, 471, 142, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 145, 480, 481,
+ 0, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 1699, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 163, 0, 164, 528, 529, 530, 531, 0, 532, 1702,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 168, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 170, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 174, 175, 555,
+ 176, 556, 557, 558, 559, 560, 0, 0, 561, 1706,
+ 178, 562, 179, 0, 563, 564, 565, 1707, 1708, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 185, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 1711, 589,
+ 0, 590, 591, 190, 592, 0, 1714, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 194, 604, 195, 1717, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 1718, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 207, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 1721, 669, 670, 214, 671, 672, 216,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 1723, 689,
+ 0, 690, 691, 0, 692, 221, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 1726,
+ 702, 1727, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 1730, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 233,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 1732, 1733, 1734, 1735,
+ 240, 1736, 1737, 1738, 1739, 245, 774, 733, 734, 0,
+ 0, 0, 0, 0, 0, 0, 0, 797, 81, 82,
+ 750, 84, 85, 86, 751, 0, 752, 89, 0, 4289,
+ 92, 93, 94, 95, 96, 97, 798, 98, 99, 753,
+ 799, 0, 101, 102, 103, 104, 800, 801, 106, 107,
+ 108, 0, 109, 802, 803, 754, 755, 0, 0, 0,
+ 756, 757, 0, 0, 0, 0, 758, 0, 0, 0,
+ 0, 0, 0, 0, 0, 759, 0, 760, 0, 761,
+ 762, 35, 0, 0, 0, 37, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 0, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 129, 130, 131, 132, 0, 452,
+ 453, 454, 455, 456, 457, 458, 0, 1683, 459, 460,
+ 764, 134, 461, 0, 462, 463, 464, 465, 1686, 0,
+ 1687, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 765, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 0, 1688, 1689, 1690, 1691, 1692, 1693,
+ 1694, 484, 485, 486, 487, 767, 488, 149, 150, 489,
+ 0, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 504,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 158, 517, 518, 519, 520,
+ 1699, 0, 521, 0, 522, 523, 524, 162, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 1702, 0, 167, 533, 534, 0, 535, 536,
+ 769, 537, 538, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 0, 172, 0, 173, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 1706, 178, 562, 179, 0, 563, 564, 565,
+ 1707, 1708, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 770, 577, 578, 771, 579, 580, 581,
+ 184, 185, 186, 582, 583, 584, 585, 586, 587, 588,
+ 187, 1711, 589, 0, 590, 591, 190, 592, 0, 1714,
+ 593, 192, 594, 595, 596, 0, 597, 598, 0, 0,
+ 599, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 1717, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 1718, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 200, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 209, 4577, 656, 657, 658, 659, 660, 661, 772, 662,
+ 0, 663, 664, 665, 666, 667, 1721, 669, 670, 214,
+ 671, 672, 216, 673, 674, 217, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 1723, 689, 0, 690, 691, 0, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 222, 223, 0, 0,
+ 700, 701, 1726, 702, 1727, 0, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 0, 711, 712, 713, 714,
+ 715, 1730, 0, 716, 717, 718, 719, 720, 773, 232,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 0, 727, 728, 729, 730, 731, 732, 235, 1732,
+ 1733, 1734, 1735, 240, 1736, 1737, 1738, 1739, 4578, 774,
+ 733, 734, 0, 0, 0, 0, 0, 0, 0, 0,
+ 797, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 247, 92, 93, 94, 95, 96, 97, 798,
+ 98, 99, 753, 799, 0, 101, 102, 103, 104, 800,
+ 801, 106, 107, 108, 0, 109, 802, 803, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 126, 449, 450, 451, 128, 129, 130, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 1683, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 1686, 0, 1687, 0, 466, 467, 468, 469, 470,
+ 471, 142, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 145, 480, 481, 0, 1688, 1689, 1690,
+ 1691, 1692, 1693, 1694, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 1699, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 163, 0, 164, 528,
+ 529, 530, 531, 0, 532, 1702, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 168, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 170, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 174, 175, 555, 176, 556, 557, 558,
+ 559, 560, 0, 0, 561, 1706, 178, 562, 179, 0,
+ 563, 564, 565, 1707, 1708, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 185, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 1711, 589, 0, 590, 591, 190,
+ 592, 0, 1714, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 194, 604, 195, 1717, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 1718, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 207, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 1721,
+ 669, 670, 214, 671, 672, 216, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 1723, 689, 0, 690, 691, 0,
+ 692, 221, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 1726, 702, 1727, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 1730, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 233, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 1732, 1733, 1734, 1735, 240, 1736, 1737, 1738,
+ 1739, 245, 774, 733, 734, 0, 0, 0, 0, 0,
+ 0, 0, 0, 797, 81, 82, 750, 84, 85, 86,
+ 751, 0, 752, 89, 0, 5244, 92, 93, 94, 95,
+ 96, 97, 798, 98, 99, 753, 799, 0, 101, 102,
+ 103, 104, 800, 801, 106, 107, 108, 0, 109, 802,
+ 803, 754, 755, 0, 0, 0, 756, 757, 0, 0,
+ 0, 0, 758, 0, 0, 0, 0, 0, 0, 0,
+ 0, 759, 0, 760, 0, 761, 762, 35, 0, 0,
+ 0, 37, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 0, 439, 440, 441,
+ 0, 0, 0, 0, 0, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 128,
+ 129, 130, 131, 132, 0, 452, 453, 454, 455, 456,
+ 457, 458, 0, 1683, 459, 460, 764, 134, 461, 0,
+ 462, 463, 464, 465, 1686, 0, 1687, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 765, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 1688, 1689, 1690, 1691, 1692, 1693, 1694, 484, 485, 486,
+ 487, 767, 488, 149, 150, 489, 0, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 504, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 158, 517, 518, 519, 520, 1699, 0, 521, 0,
+ 522, 523, 524, 162, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 1702, 0,
+ 167, 533, 534, 0, 535, 536, 769, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 0, 172, 0, 173, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 1706, 178,
+ 562, 179, 0, 563, 564, 565, 1707, 1708, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 770,
+ 577, 578, 771, 579, 580, 581, 184, 185, 186, 582,
+ 583, 584, 585, 586, 587, 588, 187, 1711, 589, 0,
+ 590, 591, 190, 592, 0, 1714, 593, 192, 594, 595,
+ 596, 0, 597, 598, 0, 0, 599, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 1717, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 1718, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 200, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 209, 655, 656, 657,
+ 658, 659, 660, 661, 772, 662, 0, 663, 664, 665,
+ 666, 667, 1721, 669, 670, 214, 671, 672, 216, 673,
+ 674, 217, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 1723, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 222, 223, 0, 0, 700, 701, 1726, 702,
+ 1727, 0, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 0, 711, 712, 713, 714, 715, 1730, 0, 716,
+ 717, 718, 719, 720, 773, 232, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 1732, 1733, 1734, 1735, 240,
+ 1736, 1737, 1738, 1739, 245, 774, 733, 734, 0, 0,
+ 0, 0, 0, 0, 0, 0, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 6403, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 128, 129, 130, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 185, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 190, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 194, 604, 195,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 216, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 0, 0, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 5965, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 5170, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, -1818, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ -1818, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, -1818, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, -1818, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, -1818, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, -1818, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, -1818,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 0, 0, 0,
+ 81, 82, 750, 84, 85, 86, 751, 0, 752, 89,
+ 0, 0, 92, 93, 94, 95, 96, 97, 1831, 98,
+ 99, 753, 0, 0, 101, 102, 103, 104, 0, 0,
+ 106, 107, 108, 0, 109, 0, 0, 754, 755, 0,
+ 0, 0, 756, 757, 0, 0, 0, 0, 758, 0,
+ 0, 0, 0, 0, 0, 0, 0, 759, 0, 760,
+ 0, 761, 762, 35, 430, 0, 0, 37, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 0, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 0, 449, 450, 451, 128, 129, 0, 131, 132,
+ 0, 452, 453, 454, 455, 456, 457, 458, 0, 0,
+ 459, 460, 764, 134, 461, 0, 462, 463, 464, 465,
+ 138, 0, 0, 0, 466, 467, 468, 469, 470, 471,
+ 0, 472, 473, 765, 0, 474, 475, 476, 477, 478,
+ 479, 0, 0, 480, 481, 0, 0, 0, 0, 0,
+ 0, 0, 0, 484, 485, 486, 487, 767, 488, 149,
+ 150, 489, 0, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 504, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 158, 517, 518,
+ 519, 520, 160, 0, 521, 0, 522, 523, 524, 162,
+ 525, 0, 526, 0, 527, 0, 0, 0, 528, 529,
+ 530, 531, 0, 532, 166, 0, 167, 533, 534, 0,
+ 535, 536, 769, 537, 538, 0, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 0, 171, 0, 551, 552, 553, 0, 172, 0, 173,
+ 0, 554, 0, 0, 555, 0, 556, 557, 558, 559,
+ 560, 0, 0, 561, 177, 0, 562, 0, 0, 563,
+ 564, 565, 0, 0, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 770, 577, 578, 771, 579,
+ 580, 581, 184, 0, 186, 582, 583, 584, 585, 586,
+ 587, 588, 187, 188, 589, 0, 590, 591, 0, 592,
+ 0, 191, 593, 192, 594, 595, 596, 0, 597, 598,
+ 0, 0, 599, 600, 601, 0, 0, 602, 603, 193,
+ 0, 604, 0, 196, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 197, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 200, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 0, 650, 651, 652,
+ 653, 654, 209, 655, 656, 657, 658, 659, 660, 661,
+ 772, 662, 212, 663, 664, 665, 666, 667, 0, 669,
+ 670, 214, 671, 672, 0, 673, 674, 217, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 219, 689, 0, 690, 691, 220, 692,
+ 0, 693, 694, 695, 696, 697, 0, 698, 222, 223,
+ 0, 0, 700, 701, 224, 702, 225, 0, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 0, 711, 712,
+ 713, 714, 715, 0, 0, 716, 717, 718, 719, 720,
+ 2487, 232, 0, 721, 0, 722, 723, 724, 725, 0,
+ 0, 726, 0, 234, 727, 728, 729, 730, 731, 732,
+ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
+ 245, 774, 733, 734, 0, 0, 246, 0, 0, 0,
+ 0, 0, 0, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 247, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 212, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 220, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 2487, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 234, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 0, 0, 246,
+ 0, 0, 0, 0, 0, 0, 81, 82, 750, 84,
+ 85, 86, 751, 0, 752, 89, 0, 247, 92, 93,
+ 94, 95, 96, 97, 0, 98, 99, 753, 0, 0,
+ 101, 102, 103, 104, 0, 0, 106, 107, 108, 0,
+ 109, 0, 0, 754, 755, 0, 0, 0, 756, 757,
+ 0, 0, 0, 0, 758, 0, 0, 0, 0, 0,
+ 0, 0, 0, 759, 0, 760, 0, 761, 762, 35,
+ 0, 0, 0, 37, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 0, 0, 0, 0, 0, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 0, 449, 450,
+ 451, 128, 129, 0, 131, 132, 0, 452, 453, 454,
+ 455, 456, 457, 458, 0, 0, 459, 460, 764, 134,
+ 461, 0, 462, 463, 464, 465, 138, 0, 0, 0,
+ 466, 467, 468, 469, 470, 471, 0, 472, 473, 765,
+ 0, 474, 475, 476, 477, 478, 479, 0, 0, 480,
+ 481, 0, 0, 0, 0, 3293, 0, 0, 0, 484,
+ 485, 486, 487, 767, 488, 149, 150, 489, 0, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 504, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 158, 517, 518, 519, 520, 160, 0,
+ 521, 0, 522, 523, 524, 162, 525, 0, 526, 0,
+ 527, 0, 0, 0, 528, 529, 530, 531, 0, 532,
+ 166, 0, 167, 533, 534, 0, 535, 536, 769, 537,
+ 538, 0, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 0, 171, 0, 551,
+ 552, 553, 0, 172, 0, 173, 0, 554, 0, 0,
+ 555, 0, 556, 557, 558, 559, 560, 0, 0, 561,
+ 177, 0, 562, 0, 0, 563, 564, 565, 0, 0,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 770, 577, 578, 771, 579, 580, 581, 184, 0,
+ 186, 582, 583, 584, 585, 586, 587, 588, 187, 188,
+ 589, 0, 590, 591, 0, 592, 0, 191, 593, 192,
+ 594, 595, 596, 0, 597, 598, 0, 1197, 599, 600,
+ 601, 0, 0, 602, 603, 193, 0, 604, 0, 196,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 197, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 200, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 0, 650, 651, 652, 653, 654, 209, 655,
+ 656, 657, 658, 659, 660, 661, 772, 662, 0, 663,
+ 664, 665, 666, 667, 0, 669, 670, 214, 671, 672,
+ 0, 673, 674, 217, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 219,
+ 689, 0, 690, 691, 3294, 3295, 0, 693, 694, 695,
+ 696, 697, 0, 698, 222, 223, 0, 0, 700, 701,
+ 224, 702, 225, 0, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 0, 711, 712, 713, 714, 715, 0,
+ 0, 716, 717, 718, 719, 720, 773, 232, 0, 721,
+ 0, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 236, 237, 238,
+ 239, 240, 241, 242, 243, 244, 245, 774, 733, 734,
+ 0, 0, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 2203, 98, 99, 753, 0, 0, 101, 102, 103, 104,
+ 0, 0, 106, 107, 108, 0, 109, 0, 0, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 39, 0, 0, 0, 0, 40, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 0, 449, 450, 451, 128, 129, 0,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 764, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 0, 0, 466, 467, 468, 469,
+ 470, 471, 0, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 0, 480, 481, 0, 0, 0,
+ 0, 0, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 0, 0, 0,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 769, 537, 538, 0, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 0, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 0, 0, 555, 0, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 0, 562, 0,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 184, 0, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 0, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 0, 604, 0, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 0, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 214, 671, 672, 0, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 0, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 773, 232, 0, 721, 0, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 774, 733, 734, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 4378, 4379, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 39, 0, 0, 0, 0,
+ 40, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 0,
+ 0, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 4379,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 0, 0, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 1816, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 0, 0, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 3886, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 0, 0, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 5149, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 0, 0, 0, 0, 0, 0, 0,
+ 0, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 5643, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 430, 0, 0, 37,
+ 0, 38, 39, 0, 0, 0, 1321, 40, 0, 0,
+ 0, 0, 0, 1322, 1323, 1324, 431, 432, 433, 434,
+ 435, 436, 437, 438, 804, 439, 440, 441, 805, 806,
+ 807, 808, 809, 810, 811, 442, 443, 444, 812, 445,
+ 446, 447, 448, 126, 449, 450, 451, 0, 1500, 130,
+ 1501, 1502, 813, 452, 453, 454, 455, 456, 457, 458,
+ 814, 815, 459, 460, 1503, 1504, 461, 817, 462, 463,
+ 464, 465, 0, 818, 139, 819, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 821, 474, 475, 476,
+ 477, 478, 479, 822, 145, 480, 481, 0, 824, 825,
+ 826, 146, 827, 828, 829, 484, 485, 486, 487, 767,
+ 488, 1505, 1506, 489, 830, 490, 831, 491, 492, 493,
+ 494, 495, 496, 497, 832, 498, 499, 500, 501, 833,
+ 834, 502, 503, 1507, 505, 506, 835, 507, 508, 509,
+ 836, 510, 511, 512, 837, 513, 514, 515, 516, 0,
+ 517, 518, 519, 520, 0, 838, 521, 839, 522, 523,
+ 524, 1508, 525, 840, 526, 841, 527, 163, 842, 164,
+ 528, 529, 530, 531, 843, 532, 0, 844, 0, 533,
+ 534, 845, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 846, 543, 544, 545, 546, 547, 548, 549,
+ 847, 550, 170, 0, 0, 551, 552, 553, 1510, 1511,
+ 850, 1512, 851, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 852, 853, 561, 0, 178, 562, 179,
+ 854, 563, 564, 565, 855, 856, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1513, 185, 1514, 582, 583, 584,
+ 585, 586, 587, 588, 4884, 0, 589, 857, 590, 591,
+ 190, 592, 858, 0, 593, 1515, 594, 595, 596, 859,
+ 597, 598, 860, 861, 4885, 600, 601, 862, 863, 602,
+ 603, 0, 194, 604, 195, 0, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 864, 615, 616, 0,
+ 617, 0, 618, 619, 620, 865, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1516, 631, 632, 633,
+ 634, 866, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 867, 648, 649, 207, 650,
+ 651, 652, 653, 654, 0, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 868, 663, 664, 665, 666, 667,
+ 869, 669, 670, 3123, 671, 672, 216, 673, 674, 1518,
+ 675, 870, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 0, 689, 871, 690, 691,
+ 872, 692, 221, 693, 694, 695, 696, 697, 873, 698,
+ 1519, 1520, 0, 875, 700, 701, 0, 702, 0, 876,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 878,
+ 711, 712, 713, 714, 715, 879, 880, 716, 717, 718,
+ 719, 720, 0, 1521, 882, 721, 233, 722, 723, 724,
+ 725, 883, 884, 726, 885, 886, 727, 728, 729, 730,
+ 731, 732, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 774, 733, 734, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1327, 1328, 1329, 4886, 4887, 1332,
+ 1333, 1334, 1335, 797, 81, 82, 750, 84, 85, 86,
+ 751, 0, 752, 89, 0, 0, 92, 93, 94, 95,
+ 96, 97, 798, 98, 99, 753, 799, 0, 101, 102,
+ 103, 104, 800, 801, 106, 107, 108, 0, 109, 802,
+ 803, 754, 755, 0, 0, 0, 756, 757, 0, 0,
+ 0, 0, 758, 0, 0, 0, 0, 0, 0, 0,
+ 0, 759, 0, 760, 0, 761, 762, 35, 430, 0,
+ 0, 37, 0, 38, 39, 0, 0, 0, 1321, 40,
+ 0, 0, 0, 0, 0, 1322, 1323, 1324, 431, 432,
+ 433, 434, 435, 436, 437, 438, 804, 439, 440, 441,
+ 805, 806, 807, 808, 809, 810, 811, 442, 443, 444,
+ 812, 445, 446, 447, 448, 126, 449, 450, 451, 0,
+ 1500, 130, 1501, 1502, 813, 452, 453, 454, 455, 456,
+ 457, 458, 814, 815, 459, 460, 1503, 1504, 461, 817,
+ 462, 463, 464, 465, 0, 818, 139, 819, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 765, 821, 474,
+ 475, 476, 477, 478, 479, 822, 145, 480, 481, 0,
+ 824, 825, 826, 146, 827, 828, 829, 484, 485, 486,
+ 487, 767, 488, 1505, 1506, 489, 830, 490, 831, 491,
+ 492, 493, 494, 495, 496, 497, 832, 498, 499, 500,
+ 501, 833, 834, 502, 503, 1507, 505, 506, 835, 507,
+ 508, 509, 836, 510, 511, 512, 837, 513, 514, 515,
+ 516, 0, 517, 518, 519, 520, 0, 838, 521, 839,
+ 522, 523, 524, 1508, 525, 840, 526, 841, 527, 163,
+ 842, 164, 528, 529, 530, 531, 843, 532, 0, 844,
+ 0, 533, 534, 845, 535, 536, 769, 537, 538, 168,
+ 539, 540, 541, 542, 846, 543, 544, 545, 546, 547,
+ 548, 549, 847, 550, 170, 0, 0, 551, 552, 553,
+ 1510, 1511, 850, 1512, 851, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 852, 853, 561, 0, 178,
+ 562, 179, 854, 563, 564, 565, 855, 856, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 770,
+ 577, 578, 771, 579, 580, 581, 1513, 185, 1514, 582,
+ 583, 584, 585, 586, 587, 588, 5336, 0, 589, 857,
+ 590, 591, 190, 592, 858, 0, 593, 1515, 594, 595,
+ 596, 859, 597, 598, 860, 861, 4885, 600, 601, 862,
+ 863, 602, 603, 0, 194, 604, 195, 0, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 864, 615,
+ 616, 0, 617, 0, 618, 619, 620, 865, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 1516, 631,
+ 632, 633, 634, 866, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 867, 648, 649,
+ 207, 650, 651, 652, 653, 654, 0, 655, 656, 657,
+ 658, 659, 660, 661, 772, 662, 868, 663, 664, 665,
+ 666, 667, 869, 669, 670, 3123, 671, 672, 216, 673,
+ 674, 1518, 675, 870, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 0, 689, 871,
+ 690, 691, 872, 692, 221, 693, 694, 695, 696, 697,
+ 873, 698, 1519, 1520, 0, 875, 700, 701, 0, 702,
+ 0, 876, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 878, 711, 712, 713, 714, 715, 879, 880, 716,
+ 717, 718, 719, 720, 0, 1521, 882, 721, 233, 722,
+ 723, 724, 725, 883, 884, 726, 885, 886, 727, 728,
+ 729, 730, 731, 732, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 774, 733, 734, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1327, 1328, 1329, 4886,
+ 4887, 1332, 1333, 1334, 1335, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 1321,
+ 0, 0, 0, 0, 0, 0, 1322, 1323, 1324, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 1325, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 1326,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1327, 1328, 1329,
+ 1330, 1331, 1332, 1333, 1334, 1335, 81, 82, 750, 84,
+ 85, 86, 751, 0, 752, 89, 0, 0, 92, 93,
+ 94, 95, 96, 97, 0, 98, 99, 753, 0, 0,
+ 101, 102, 103, 104, 0, 0, 106, 107, 108, 0,
+ 109, 0, 0, 754, 755, 0, 0, 0, 756, 757,
+ 0, 0, 0, 0, 758, 0, 0, 0, 0, 0,
+ 0, 0, 0, 759, 0, 760, 0, 761, 762, 35,
+ 0, 0, 0, 37, 0, 0, 0, 0, 0, 0,
+ 1321, 0, 0, 0, 0, 0, 0, 1322, 1323, 1324,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 0, 0, 0, 0, 0, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 0, 449, 450,
+ 451, 128, 129, 0, 131, 132, 0, 452, 453, 454,
+ 455, 456, 457, 458, 0, 0, 459, 460, 764, 134,
+ 461, 0, 462, 1441, 464, 465, 138, 0, 0, 0,
+ 466, 467, 468, 469, 470, 471, 0, 472, 473, 765,
+ 0, 474, 475, 476, 477, 478, 479, 0, 0, 480,
+ 481, 0, 0, 0, 0, 0, 0, 0, 0, 484,
+ 485, 486, 487, 767, 488, 149, 150, 489, 0, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 504, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 158, 517, 518, 519, 520, 160, 0,
+ 1442, 0, 522, 523, 524, 162, 525, 0, 526, 0,
+ 527, 0, 0, 0, 528, 529, 530, 531, 0, 532,
+ 166, 0, 167, 533, 534, 0, 535, 536, 769, 537,
+ 538, 0, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 0, 171, 0, 551,
+ 552, 553, 0, 172, 0, 173, 0, 554, 0, 0,
+ 555, 0, 556, 557, 558, 559, 560, 0, 0, 561,
+ 177, 0, 562, 0, 0, 563, 564, 565, 0, 0,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 770, 577, 578, 771, 579, 580, 581, 184, 0,
+ 186, 582, 583, 584, 585, 586, 587, 588, 187, 188,
+ 589, 0, 590, 591, 0, 592, 0, 191, 593, 192,
+ 594, 595, 596, 0, 597, 598, 0, 0, 599, 600,
+ 601, 0, 0, 602, 603, 193, 0, 604, 0, 196,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 197, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 200, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 0, 650, 651, 652, 653, 654, 209, 655,
+ 656, 657, 658, 659, 660, 661, 772, 662, 0, 663,
+ 664, 665, 666, 667, 0, 669, 670, 214, 671, 672,
+ 0, 673, 674, 217, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 219,
+ 689, 0, 690, 691, 0, 692, 0, 693, 694, 695,
+ 696, 697, 0, 698, 222, 223, 0, 0, 700, 701,
+ 224, 702, 225, 0, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 0, 711, 712, 713, 714, 715, 0,
+ 0, 716, 717, 718, 719, 720, 773, 232, 0, 721,
+ 0, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 236, 237, 238,
+ 239, 240, 241, 242, 243, 244, 245, 774, 733, 734,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1327, 1328,
+ 1329, 1330, 1331, 1332, 1333, 1334, 1335, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 1321, 0, 0, 0, 0, 0, 0, 1322, 1323,
+ 1324, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 1552, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 1553, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 1554, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 0, 0, 0, 0, 0, 0, 0, 0, 1327,
+ 1328, 1329, 1330, 1331, 1332, 1333, 1334, 1335, 81, 82,
+ 750, 84, 85, 86, 751, 0, 752, 89, 0, 0,
+ 92, 93, 94, 95, 96, 97, 0, 98, 99, 753,
+ 0, 0, 101, 102, 103, 104, 0, 0, 106, 107,
+ 108, 0, 109, 0, 0, 754, 755, 0, 0, 0,
+ 756, 757, 0, 0, 0, 0, 758, 0, 0, 0,
+ 0, 0, 0, 0, 0, 759, 0, 760, 0, 761,
+ 762, 35, 0, 0, 0, 37, 0, 0, 0, 0,
+ 0, 0, 1321, 0, 0, 0, 0, 0, 0, 1322,
+ 1323, 1324, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 0, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 0,
+ 449, 450, 451, 128, 129, 0, 131, 132, 0, 452,
+ 453, 454, 455, 456, 457, 458, 0, 0, 459, 460,
+ 764, 134, 461, 0, 462, 2186, 464, 465, 138, 0,
+ 0, 0, 466, 467, 468, 469, 470, 471, 0, 472,
+ 473, 765, 0, 474, 475, 476, 477, 478, 479, 0,
+ 0, 480, 481, 0, 0, 0, 0, 0, 0, 0,
+ 0, 484, 485, 486, 487, 767, 488, 149, 150, 489,
+ 0, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 504,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 158, 517, 518, 519, 520,
+ 160, 0, 2187, 0, 522, 523, 524, 162, 525, 0,
+ 526, 0, 527, 0, 0, 0, 528, 529, 530, 531,
+ 0, 532, 166, 0, 167, 533, 534, 0, 535, 536,
+ 769, 537, 538, 0, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 0, 171,
+ 0, 551, 552, 553, 0, 172, 0, 173, 0, 554,
+ 0, 0, 555, 0, 556, 557, 558, 559, 560, 0,
+ 0, 561, 177, 0, 562, 0, 0, 563, 564, 565,
+ 0, 0, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 770, 577, 578, 771, 579, 580, 581,
+ 184, 0, 186, 582, 583, 584, 585, 586, 587, 588,
+ 187, 188, 589, 0, 590, 591, 0, 592, 0, 191,
+ 593, 192, 594, 595, 596, 0, 597, 598, 0, 0,
+ 599, 600, 601, 0, 0, 602, 603, 193, 0, 604,
+ 0, 196, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 197, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 200, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 0, 650, 651, 652, 653, 654,
+ 209, 655, 656, 657, 658, 659, 660, 661, 772, 662,
+ 0, 663, 664, 665, 666, 667, 0, 669, 670, 214,
+ 671, 672, 0, 673, 674, 217, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 219, 689, 0, 690, 691, 0, 692, 0, 693,
+ 694, 695, 696, 697, 0, 698, 222, 223, 0, 0,
+ 700, 701, 224, 702, 225, 0, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 0, 711, 712, 713, 714,
+ 715, 0, 0, 716, 717, 718, 719, 720, 773, 232,
+ 0, 721, 0, 722, 723, 724, 725, 0, 0, 726,
+ 0, 0, 727, 728, 729, 730, 731, 732, 235, 236,
+ 237, 238, 239, 240, 241, 242, 243, 244, 245, 774,
+ 733, 734, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1327, 1328, 1329, 1330, 1331, 1332, 1333, 1334, 1335, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 1321, 0, 0, 0, 0, 0, 0,
+ 1322, 1323, 1324, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1327, 1328, 1329, 1330, 1331, 1332, 1333, 1334, 1335,
+ 81, 82, 750, 84, 85, 86, 751, 0, 752, 89,
+ 0, 0, 92, 93, 94, 95, 96, 97, 0, 98,
+ 99, 753, 0, 0, 101, 102, 103, 104, 0, 0,
+ 106, 107, 108, 0, 109, 0, 0, 754, 755, 0,
+ 0, 0, 756, 757, 0, 0, 0, 0, 758, 0,
+ 0, 0, 0, 0, 0, 0, 0, 759, 0, 760,
+ 0, 761, 762, 35, 0, 0, 0, 37, 0, 0,
+ 0, 0, 0, 0, 1321, 0, 0, 0, 0, 0,
+ 0, 1322, 1323, 1324, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 0, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 0, 449, 450, 451, 128, 129, 0, 131, 132,
+ 0, 452, 453, 454, 455, 456, 457, 458, 0, 0,
+ 459, 460, 764, 134, 461, 0, 462, 3981, 464, 465,
+ 138, 0, 0, 0, 466, 467, 468, 469, 470, 471,
+ 0, 472, 473, 765, 0, 474, 475, 476, 477, 478,
+ 479, 0, 0, 480, 481, 0, 0, 0, 0, 0,
+ 0, 0, 0, 484, 485, 486, 487, 767, 488, 149,
+ 150, 489, 0, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 504, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 158, 517, 518,
+ 519, 520, 160, 0, 3982, 0, 522, 523, 524, 162,
+ 525, 0, 526, 0, 527, 0, 0, 0, 528, 529,
+ 530, 531, 0, 532, 166, 0, 167, 533, 534, 0,
+ 535, 536, 769, 537, 538, 0, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 0, 171, 0, 551, 552, 553, 0, 172, 0, 173,
+ 0, 554, 0, 0, 555, 0, 556, 557, 558, 559,
+ 560, 0, 0, 561, 177, 0, 562, 0, 0, 563,
+ 564, 565, 0, 0, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 770, 577, 578, 771, 579,
+ 580, 581, 184, 0, 186, 582, 583, 584, 585, 586,
+ 587, 588, 187, 188, 589, 0, 590, 591, 0, 592,
+ 0, 191, 593, 192, 594, 595, 596, 0, 597, 598,
+ 0, 0, 599, 600, 601, 0, 0, 602, 603, 193,
+ 0, 604, 0, 196, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 197, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 200, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 0, 650, 651, 652,
+ 653, 654, 209, 655, 656, 657, 658, 659, 660, 661,
+ 772, 662, 0, 663, 664, 665, 666, 667, 0, 669,
+ 670, 214, 671, 672, 0, 673, 674, 217, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 219, 689, 0, 690, 691, 0, 692,
+ 0, 693, 694, 695, 696, 697, 0, 698, 222, 223,
+ 0, 0, 700, 701, 224, 702, 225, 0, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 0, 711, 712,
+ 713, 714, 715, 0, 0, 716, 717, 718, 719, 720,
+ 773, 232, 0, 721, 0, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
+ 245, 774, 733, 734, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1327, 1328, 1329, 1330, 1331, 1332, 1333, 1334,
+ 1335, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 1321, 0, 0, 0, 0,
+ 0, 0, 1322, 1323, 1324, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 5945, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1327, 1328, 1329, 1330, 1331, 1332, 1333,
+ 1334, 1335, 797, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 798, 98, 99, 753, 799, 0, 101, 102, 103,
+ 104, 800, 801, 106, 107, 108, 0, 109, 802, 803,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 804, 439, 440, 441, 805,
+ 806, 807, 808, 809, 810, 811, 442, 443, 444, 812,
+ 445, 446, 447, 448, 126, 449, 450, 451, 128, 129,
+ 130, 131, 132, 813, 452, 453, 454, 455, 456, 457,
+ 458, 814, 815, 459, 460, 816, 134, 461, 817, 462,
+ 463, 464, 465, 138, 818, 139, 819, 466, 467, 468,
+ 469, 470, 471, 142, 472, 473, 820, 821, 474, 475,
+ 476, 477, 478, 479, 822, 145, 480, 481, 823, 824,
+ 825, 826, 146, 827, 828, 829, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 830, 490, 831, 491, 492,
+ 493, 494, 495, 496, 497, 832, 498, 499, 500, 501,
+ 833, 834, 502, 503, 504, 505, 506, 835, 507, 508,
+ 509, 836, 510, 511, 512, 837, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 838, 521, 839, 522,
+ 523, 524, 162, 525, 840, 526, 841, 527, 163, 842,
+ 164, 528, 529, 530, 531, 843, 532, 166, 844, 167,
+ 533, 534, 845, 535, 536, 769, 537, 538, 168, 539,
+ 540, 541, 542, 846, 543, 544, 545, 546, 547, 548,
+ 549, 847, 550, 170, 171, 848, 551, 552, 553, 849,
+ 172, 850, 173, 851, 554, 174, 175, 555, 176, 556,
+ 557, 558, 559, 560, 852, 853, 561, 177, 178, 562,
+ 179, 854, 563, 564, 565, 855, 856, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 185, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 857, 590,
+ 591, 190, 592, 858, 191, 593, 192, 594, 595, 596,
+ 859, 597, 598, 860, 861, 599, 600, 601, 862, 863,
+ 602, 603, 193, 194, 604, 195, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 864, 615, 616,
+ 197, 617, 198, 618, 619, 620, 865, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 866, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 867, 648, 649, 207,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 868, 663, 664, 665, 666,
+ 667, 869, 669, 670, 214, 671, 672, 216, 673, 674,
+ 217, 675, 870, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 871, 690,
+ 691, 872, 692, 221, 693, 694, 695, 696, 697, 873,
+ 698, 222, 223, 874, 875, 700, 701, 224, 702, 225,
+ 876, 703, 704, 705, 706, 707, 708, 709, 710, 877,
+ 878, 711, 712, 713, 714, 715, 879, 880, 716, 717,
+ 718, 719, 720, 881, 232, 882, 721, 233, 722, 723,
+ 724, 725, 883, 884, 726, 885, 886, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 0, 797, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 2163, 92, 93, 94, 95, 96, 97, 798, 98, 99,
+ 753, 799, 0, 101, 102, 103, 104, 800, 801, 106,
+ 107, 108, 0, 109, 802, 803, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 126, 449, 450, 451, 0, 1500, 130, 1501, 1502, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 1503, 1504, 461, 0, 462, 463, 464, 465, 0,
+ 0, 139, 0, 466, 467, 468, 469, 470, 471, 142,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 145, 480, 481, 0, 0, 0, 0, 146, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 1505, 1506,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 1507, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 0, 517, 518, 519,
+ 520, 0, 0, 521, 0, 522, 523, 524, 1508, 525,
+ 0, 526, 0, 527, 163, 0, 164, 528, 529, 530,
+ 531, 0, 532, 0, 0, 0, 533, 534, 0, 535,
+ 536, 769, 537, 538, 168, 539, 540, 541, 542, 3119,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 170,
+ 3120, 0, 551, 552, 553, 1510, 1511, 0, 1512, 0,
+ 554, 174, 175, 555, 176, 556, 557, 558, 559, 560,
+ 0, 0, 561, 0, 178, 562, 179, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 1513, 185, 1514, 582, 583, 584, 585, 586, 587,
+ 588, 0, 0, 589, 0, 590, 591, 190, 592, 0,
+ 0, 593, 1515, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 3121, 602, 603, 3122, 194,
+ 604, 195, 0, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 0, 617, 0, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 1516, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 207, 650, 651, 652, 653,
+ 654, 0, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 3123, 671, 672, 216, 673, 674, 1518, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 0, 689, 0, 690, 691, 0, 692, 221,
+ 693, 694, 695, 696, 697, 0, 698, 1519, 1520, 0,
+ 0, 700, 701, 0, 702, 0, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 0,
+ 1521, 3124, 721, 233, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 774, 733, 734, 0, 0, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 3125, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 0,
+ 0, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 1205, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 0, 0, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 6373, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 430, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 40, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 1093, 433, 434, 435, 436, 437, 438, 1094,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 1095,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 1096, 162, 525, 0, 526,
+ 0, 1097, 0, 1098, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 1099, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 1100, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 1101, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 1102, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 1103, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 0, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 1104, 1105, 92, 93, 94, 95, 96, 97,
+ 0, 98, 99, 753, 0, 0, 101, 102, 103, 104,
+ 0, 0, 106, 107, 108, 0, 109, 0, 0, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 430, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 40, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 1093, 433, 434,
+ 435, 436, 437, 438, 1094, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 0, 1128, 450, 451, 128, 129, 0,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 764, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 0, 0, 466, 467, 468, 469,
+ 470, 471, 0, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 0, 480, 481, 0, 0, 0,
+ 0, 0, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 1096, 162, 525, 0, 526, 0, 1129, 0, 1098, 0,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 769, 537, 538, 0, 539, 540,
+ 541, 542, 1099, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 0, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 0, 0, 555, 0, 556, 557,
+ 558, 559, 1100, 0, 0, 561, 177, 0, 562, 0,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 184, 0, 186, 582, 1101, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 0, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 0, 604, 0, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 1102, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 1103, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 0, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 214, 671, 672, 0, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 0, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 773, 232, 0, 721, 0, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 774, 733, 734, 0, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 1104, 1105, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 430, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 40, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 1606,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 1098, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 1099, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 0, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 1104, 1105, 92, 93, 94, 95, 96, 97,
+ 0, 98, 99, 753, 0, 0, 101, 102, 103, 104,
+ 0, 0, 106, 107, 108, 0, 109, 0, 0, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 430, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 40, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 1611, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 0, 449, 450, 451, 128, 129, 0,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 764, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 0, 0, 466, 467, 468, 469,
+ 470, 471, 0, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 0, 480, 481, 0, 0, 0,
+ 0, 0, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 0, 1098, 0,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 769, 537, 538, 0, 539, 540,
+ 541, 542, 1099, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 0, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 0, 0, 555, 0, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 0, 562, 0,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 184, 0, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 0, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 0, 604, 0, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 0, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 214, 671, 672, 0, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 0, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 773, 232, 0, 721, 0, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 774, 733, 734, 0, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 1104, 1105, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 430, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 768,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 1787, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1174, 1788, 81, 82, 750, 84, 85, 86, 751, 1175,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 0, 98, 99, 753, 0, 0, 101, 102, 103, 104,
+ 0, 0, 106, 107, 108, 0, 109, 0, 0, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 0, 449, 450, 451, 128, 129, 0,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 1176, 460, 1147, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 0, 0, 466, 467, 468, 469,
+ 470, 471, 0, 472, 473, 1177, 0, 1178, 475, 476,
+ 477, 478, 479, 0, 0, 480, 481, 0, 0, 0,
+ 0, 0, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 0, 0, 0,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 769, 537, 538, 0, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 0, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 0, 0, 555, 0, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 0, 562, 0,
+ 0, 563, 564, 1179, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 1180, 184, 0, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 0, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 0, 604, 0, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 0, 1181,
+ 651, 652, 653, 654, 209, 655, 656, 657, 1182, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 1183,
+ 0, 669, 670, 214, 671, 672, 0, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 0, 693, 694, 695, 696, 697, 0, 698,
+ 1184, 223, 0, 0, 1185, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 1151, 232, 0, 721, 0, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 1186, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 38, 39, 0, 0,
+ 0, 0, 40, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 804,
+ 439, 440, 441, 805, 806, 807, 808, 809, 810, 811,
+ 442, 443, 444, 812, 445, 446, 447, 448, 126, 449,
+ 450, 451, 128, 129, 130, 131, 132, 813, 452, 453,
+ 454, 455, 456, 457, 458, 814, 815, 459, 460, 816,
+ 134, 461, 817, 462, 463, 464, 465, 138, 818, 139,
+ 819, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 820, 821, 474, 475, 476, 477, 478, 479, 822, 145,
+ 480, 481, 823, 824, 825, 826, 146, 827, 828, 829,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 830,
+ 490, 831, 491, 492, 493, 494, 495, 496, 497, 832,
+ 498, 499, 500, 501, 833, 834, 502, 503, 504, 505,
+ 506, 835, 507, 508, 509, 836, 510, 511, 512, 837,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 838, 521, 839, 522, 523, 524, 162, 525, 840, 526,
+ 841, 527, 163, 842, 164, 528, 529, 530, 531, 843,
+ 532, 166, 844, 167, 533, 534, 845, 535, 536, 769,
+ 537, 538, 168, 539, 540, 541, 542, 846, 543, 544,
+ 545, 546, 547, 548, 549, 847, 550, 170, 171, 848,
+ 551, 552, 553, 849, 172, 850, 173, 851, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 852, 853,
+ 561, 177, 178, 562, 179, 854, 563, 564, 565, 855,
+ 856, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 185, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 857, 590, 591, 190, 592, 858, 191, 593,
+ 192, 594, 595, 596, 859, 597, 598, 860, 861, 599,
+ 600, 601, 862, 863, 602, 603, 193, 194, 604, 195,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 864, 615, 616, 197, 617, 198, 618, 619, 620,
+ 865, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 866, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 867, 648, 649, 207, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 868,
+ 663, 664, 665, 666, 667, 869, 669, 670, 214, 671,
+ 672, 216, 673, 674, 217, 675, 870, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 871, 690, 691, 872, 692, 221, 693, 694,
+ 695, 696, 697, 873, 698, 222, 223, 874, 875, 700,
+ 701, 224, 702, 225, 876, 703, 704, 705, 706, 707,
+ 708, 709, 710, 877, 878, 711, 712, 713, 714, 715,
+ 879, 880, 716, 717, 718, 719, 720, 881, 232, 882,
+ 721, 233, 722, 723, 724, 725, 883, 884, 726, 885,
+ 886, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 804, 439, 440, 441, 805, 806,
+ 807, 808, 809, 810, 811, 442, 443, 444, 812, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 813, 452, 453, 454, 455, 456, 457, 458,
+ 814, 815, 459, 460, 816, 134, 461, 817, 462, 463,
+ 464, 465, 138, 818, 139, 819, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 820, 821, 474, 475, 476,
+ 477, 478, 479, 822, 145, 480, 481, 823, 824, 825,
+ 826, 146, 827, 828, 829, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 830, 490, 831, 491, 492, 493,
+ 494, 495, 496, 497, 832, 498, 499, 500, 501, 833,
+ 834, 502, 503, 504, 505, 506, 835, 507, 508, 509,
+ 836, 510, 511, 512, 837, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 838, 521, 839, 522, 523,
+ 524, 162, 525, 840, 526, 841, 527, 163, 842, 164,
+ 528, 529, 530, 531, 843, 532, 166, 844, 167, 533,
+ 534, 845, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 846, 543, 544, 545, 546, 547, 548, 549,
+ 847, 550, 170, 171, 848, 551, 552, 553, 849, 172,
+ 850, 173, 851, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 852, 853, 561, 177, 178, 562, 179,
+ 854, 563, 564, 565, 855, 856, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 857, 590, 591,
+ 190, 592, 858, 191, 593, 192, 594, 595, 596, 859,
+ 597, 598, 860, 861, 599, 600, 601, 862, 863, 602,
+ 603, 193, 194, 604, 195, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 864, 615, 616, 197,
+ 617, 198, 618, 619, 620, 865, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 866, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 867, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 868, 663, 664, 665, 666, 667,
+ 869, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 870, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 871, 690, 691,
+ 872, 692, 221, 693, 694, 695, 696, 697, 873, 698,
+ 222, 223, 874, 875, 700, 701, 224, 702, 225, 876,
+ 703, 704, 705, 706, 707, 708, 709, 710, 877, 878,
+ 711, 712, 713, 714, 715, 879, 880, 716, 717, 718,
+ 719, 720, 881, 232, 882, 721, 233, 722, 723, 724,
+ 725, 883, 884, 726, 885, 886, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 4047, 436, 437, 438, 804,
+ 439, 440, 441, 805, 806, 807, 808, 809, 810, 811,
+ 442, 443, 444, 812, 445, 446, 447, 448, 126, 449,
+ 450, 451, 128, 129, 130, 131, 132, 813, 452, 453,
+ 454, 455, 456, 457, 458, 814, 815, 459, 460, 816,
+ 134, 461, 817, 462, 463, 464, 465, 138, 818, 139,
+ 819, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 820, 821, 474, 475, 476, 477, 478, 479, 822, 145,
+ 480, 481, 823, 824, 825, 826, 146, 827, 828, 829,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 830,
+ 490, 831, 491, 492, 493, 494, 495, 496, 497, 832,
+ 498, 499, 500, 501, 833, 834, 502, 503, 504, 4048,
+ 506, 835, 507, 508, 509, 836, 510, 511, 512, 837,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 838, 521, 839, 522, 523, 524, 162, 525, 840, 526,
+ 841, 527, 163, 842, 164, 528, 529, 530, 531, 843,
+ 532, 166, 844, 167, 533, 534, 845, 535, 536, 769,
+ 537, 538, 168, 539, 540, 541, 542, 846, 543, 544,
+ 545, 546, 547, 548, 549, 847, 550, 170, 171, 848,
+ 551, 552, 553, 849, 172, 850, 173, 851, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 852, 853,
+ 561, 177, 178, 562, 179, 854, 563, 564, 565, 855,
+ 856, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 185, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 857, 590, 591, 190, 592, 858, 191, 593,
+ 192, 594, 595, 596, 859, 597, 598, 860, 861, 599,
+ 600, 601, 862, 863, 602, 603, 193, 194, 604, 195,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 864, 615, 616, 197, 617, 198, 618, 619, 620,
+ 865, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 866, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 867, 648, 649, 207, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 868,
+ 663, 664, 665, 666, 667, 869, 4049, 670, 214, 671,
+ 672, 216, 673, 674, 217, 675, 870, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 871, 690, 691, 872, 692, 221, 693, 694,
+ 695, 696, 697, 873, 698, 222, 223, 874, 875, 700,
+ 701, 224, 702, 225, 876, 703, 704, 705, 706, 707,
+ 708, 709, 710, 877, 878, 711, 712, 713, 714, 715,
+ 879, 880, 716, 717, 718, 719, 720, 881, 232, 882,
+ 721, 233, 722, 723, 724, 725, 883, 884, 726, 885,
+ 886, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 1683, 459, 460, 764, 134, 461, 0, 462, 463,
+ 464, 465, 1686, 0, 1687, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 1688, 1689,
+ 1690, 1691, 1692, 1693, 1694, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 1699, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 1702, 0, 167, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 1706, 178, 562, 179,
+ 0, 563, 564, 565, 1707, 1708, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 1711, 589, 0, 590, 591,
+ 190, 592, 0, 1714, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 1717, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 1718,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 1721, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 1723, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 1726, 702, 1727, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 1730, 0, 716, 717, 718,
+ 719, 720, 773, 232, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 1732, 1733, 1734, 1735, 240, 1736, 1737,
+ 1738, 1739, 245, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 430, 0, 0, 37, 0, 38, 39, 0, 1674,
+ 1675, 0, 40, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 128, 1679, 130, 1680, 1681, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 1684,
+ 1685, 461, 0, 462, 463, 464, 465, 138, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 1695, 1696, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 1507, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 1700, 521, 0, 522, 523, 524, 1701, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 171, 0,
+ 551, 552, 553, 1510, 1704, 0, 1705, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 1709,
+ 185, 1710, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 190, 592, 1713, 191, 593,
+ 1715, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 194, 604, 195,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 1719, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 216, 673, 674, 1722, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 1724, 1725, 0, 0, 700,
+ 701, 224, 702, 225, 1728, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 1731, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 764, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 190, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 773, 232, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 128, 129, 130, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 1493, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 185, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 190, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 194, 604, 195,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 216, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 764, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 769, 537, 1544, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 190, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 773, 232, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 128, 129, 130, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 1558, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 185, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 190, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 194, 604, 195,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 216, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 764, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 769, 537, 1562, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 190, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 773, 232, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 0, 1500, 130, 1501, 1502, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 1503,
+ 1504, 461, 0, 462, 463, 464, 465, 0, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 1505, 1506, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 1507, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 0, 517, 518, 519, 520, 0,
+ 0, 521, 0, 522, 523, 524, 1508, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 0, 0, 0, 533, 534, 0, 535, 536, 769,
+ 537, 538, 168, 539, 540, 541, 542, 3119, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 3120, 0,
+ 551, 552, 553, 1510, 1511, 0, 1512, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 0, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 1513,
+ 185, 1514, 582, 583, 584, 585, 586, 587, 588, 0,
+ 0, 589, 0, 590, 591, 190, 592, 0, 0, 593,
+ 1515, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 3122, 194, 604, 195,
+ 0, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 0, 617, 0, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 1516, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 0,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 3123, 671,
+ 672, 216, 673, 674, 1518, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 0, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 1519, 1520, 0, 0, 700,
+ 701, 0, 702, 0, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 0, 1521, 3124,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 0, 1500, 130,
+ 1501, 1502, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 1503, 1504, 461, 0, 462, 463,
+ 464, 465, 0, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 1505, 1506, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 0,
+ 517, 518, 519, 520, 0, 0, 521, 0, 522, 523,
+ 524, 1508, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 0, 0, 0, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 0, 0, 551, 552, 553, 1510, 1511,
+ 0, 1512, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 0, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1513, 185, 1514, 582, 583, 584,
+ 585, 586, 587, 588, 0, 0, 589, 0, 590, 591,
+ 190, 592, 3208, 0, 593, 1515, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 0, 194, 604, 195, 0, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 0,
+ 617, 0, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1516, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 0, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 3123, 671, 672, 216, 673, 674, 1518,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 0, 689, 0, 690, 691,
+ 4985, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1519, 1520, 0, 0, 700, 701, 0, 702, 0, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 0, 1521, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 0, 1500, 130, 1501, 1502, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 1503,
+ 1504, 461, 0, 462, 463, 464, 465, 0, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 1505, 1506, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 1507, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 0, 517, 518, 519, 520, 0,
+ 0, 521, 0, 522, 523, 524, 1508, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 0, 0, 0, 533, 534, 0, 535, 536, 769,
+ 537, 538, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 0, 0,
+ 551, 552, 553, 1510, 1511, 0, 1512, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 0, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 1513,
+ 185, 1514, 582, 583, 584, 585, 586, 587, 588, 3280,
+ 0, 589, 0, 590, 591, 190, 592, 0, 0, 593,
+ 1515, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 0, 194, 604, 195,
+ 0, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 0, 617, 0, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 1516, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 0,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 1517, 671,
+ 672, 216, 673, 674, 1518, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 0, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 1519, 1520, 0, 0, 700,
+ 701, 0, 702, 0, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 0, 1521, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 0, 1500, 130,
+ 1501, 1502, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 1503, 1504, 461, 0, 462, 463,
+ 464, 465, 0, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 1505, 1506, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 0,
+ 517, 518, 519, 520, 0, 0, 521, 0, 522, 523,
+ 524, 1508, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 0, 0, 0, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 0, 0, 551, 552, 553, 1510, 1511,
+ 0, 1512, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 0, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1513, 185, 1514, 582, 583, 584,
+ 585, 586, 587, 588, 4781, 0, 589, 0, 590, 591,
+ 190, 592, 0, 0, 593, 1515, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 0, 194, 604, 195, 0, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 0,
+ 617, 0, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1516, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 0, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 1517, 671, 672, 216, 673, 674, 1518,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 0, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1519, 1520, 0, 0, 700, 701, 0, 702, 0, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 0, 1521, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 0, 1500, 130, 1501, 1502, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 1503,
+ 1504, 461, 0, 462, 463, 464, 465, 0, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 1505, 1506, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 1507, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 0, 517, 518, 519, 520, 0,
+ 0, 521, 0, 522, 523, 524, 1508, 525, 6445, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 0, 0, 0, 533, 534, 0, 535, 536, 769,
+ 537, 538, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 0, 0,
+ 551, 552, 553, 1510, 1511, 0, 1512, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 0, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 1513,
+ 185, 1514, 582, 583, 584, 585, 586, 587, 588, 0,
+ 0, 589, 0, 590, 591, 190, 592, 0, 0, 593,
+ 1515, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 0, 194, 604, 195,
+ 0, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 0, 617, 0, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 1516, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 0,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 1517, 671,
+ 672, 216, 673, 674, 1518, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 0, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 1519, 1520, 0, 0, 700,
+ 701, 0, 702, 0, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 0, 1521, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 0, 1500, 130,
+ 1501, 1502, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 1503, 1504, 461, 0, 462, 463,
+ 464, 465, 0, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 1505, 1506, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 0,
+ 517, 518, 519, 520, 0, 0, 521, 0, 522, 523,
+ 524, 1508, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 0, 0, 0, 533,
+ 534, 0, 535, 536, 769, 537, 1509, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 0, 0, 551, 552, 553, 1510, 1511,
+ 0, 1512, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 0, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1513, 185, 1514, 582, 583, 584,
+ 585, 586, 587, 588, 0, 0, 589, 0, 590, 591,
+ 190, 592, 0, 0, 593, 1515, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 0, 194, 604, 195, 0, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 0,
+ 617, 0, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1516, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 0, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 1517, 671, 672, 216, 673, 674, 1518,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 0, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1519, 1520, 0, 0, 700, 701, 0, 702, 0, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 0, 1521, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 0, 1500, 130, 1501, 1502, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 1503,
+ 1504, 461, 0, 462, 463, 464, 465, 0, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 1505, 1506, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 1507, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 0, 517, 518, 519, 520, 0,
+ 0, 521, 0, 522, 523, 524, 1508, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 0, 0, 0, 533, 534, 0, 535, 536, 769,
+ 537, 1570, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 0, 0,
+ 551, 552, 553, 1510, 1511, 0, 1512, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 0, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 1513,
+ 185, 1514, 582, 583, 584, 585, 586, 587, 588, 0,
+ 0, 589, 0, 590, 591, 190, 592, 0, 0, 593,
+ 1515, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 0, 194, 604, 195,
+ 0, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 0, 617, 0, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 1516, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 0,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 1517, 671,
+ 672, 216, 673, 674, 1518, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 0, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 1519, 1520, 0, 0, 700,
+ 701, 0, 702, 0, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 0, 1521, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 0, 1500, 130,
+ 1501, 1502, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 1503, 1504, 461, 0, 462, 463,
+ 464, 465, 0, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 1505, 1506, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 0,
+ 517, 518, 519, 520, 0, 0, 521, 0, 522, 523,
+ 524, 1508, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 0, 0, 0, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 0, 0, 551, 552, 553, 1510, 1511,
+ 0, 1512, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 0, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1513, 185, 1514, 582, 583, 584,
+ 585, 586, 587, 588, 0, 0, 589, 0, 590, 591,
+ 190, 592, 0, 0, 593, 1515, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 0, 194, 604, 195, 0, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 0,
+ 617, 0, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1516, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 0, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 1517, 671, 672, 216, 673, 674, 1518,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 0, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1519, 1520, 0, 0, 700, 701, 0, 702, 0, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 0, 1521, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 0, 1500, 130, 1501, 1502, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 1503,
+ 1504, 461, 0, 462, 463, 464, 465, 0, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 1505, 1506, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 1507, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 0, 517, 518, 519, 520, 0,
+ 0, 521, 0, 522, 523, 524, 1508, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 0, 0, 0, 533, 534, 0, 535, 536, 769,
+ 537, 538, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 0, 0,
+ 551, 552, 553, 1510, 1511, 0, 1512, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 0, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 1513,
+ 185, 1514, 582, 583, 584, 585, 586, 587, 588, 0,
+ 0, 589, 0, 590, 591, 190, 592, 0, 0, 593,
+ 1515, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 0, 194, 604, 195,
+ 0, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 0, 617, 0, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 1516, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 0,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 3123, 671,
+ 672, 216, 673, 674, 1518, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 0, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 1519, 1520, 0, 0, 700,
+ 701, 0, 702, 0, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 0, 1521, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 774, 733,
+ 734, 797, 81, 82, 750, 84, 85, 86, 751, 0,
+ 752, 89, 0, 0, 92, 93, 94, 95, 96, 97,
+ 798, 98, 99, 753, 799, 0, 101, 102, 103, 104,
+ 800, 801, 106, 107, 108, 0, 109, 802, 803, 754,
+ 755, 0, 0, 0, 756, 757, 0, 0, 0, 0,
+ 758, 0, 0, 0, 0, 0, 0, 0, 0, 759,
+ 0, 760, 0, 761, 762, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 0, 1500, 130,
+ 1501, 1502, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 1503, 1504, 461, 0, 462, 463,
+ 464, 465, 0, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 765, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 767,
+ 488, 1505, 1506, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 1507, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 0,
+ 517, 518, 519, 520, 0, 0, 521, 0, 522, 523,
+ 524, 1508, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 0, 0, 0, 533,
+ 534, 0, 535, 536, 769, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 0, 0, 551, 552, 553, 1510, 1511,
+ 0, 1512, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 0, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 770, 577, 578,
+ 771, 579, 580, 581, 1513, 185, 1514, 582, 583, 584,
+ 585, 586, 587, 588, 0, 0, 589, 0, 590, 591,
+ 190, 592, 0, 0, 593, 1515, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 0, 194, 604, 195, 0, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 0,
+ 617, 0, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 1516, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 0, 655, 656, 657, 658, 659,
+ 660, 661, 772, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 0, 671, 672, 216, 673, 674, 1518,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 0, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 1519, 1520, 0, 0, 700, 701, 0, 702, 0, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 0, 1521, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 774, 733, 734, 797, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 798, 98, 99, 753, 799,
+ 0, 101, 102, 103, 104, 800, 801, 106, 107, 108,
+ 0, 109, 802, 803, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 0, 0, 130, 0, 0, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 0,
+ 0, 461, 0, 462, 463, 464, 465, 0, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 0, 0, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 0, 517, 518, 519, 520, 0,
+ 0, 521, 0, 522, 523, 524, 0, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 0, 0, 0, 533, 534, 0, 535, 536, 769,
+ 537, 538, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 0, 0,
+ 551, 552, 553, 0, 0, 0, 0, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 0, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 0,
+ 185, 0, 582, 583, 584, 585, 586, 587, 588, 0,
+ 0, 589, 0, 590, 591, 190, 592, 0, 0, 593,
+ 0, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 0, 194, 604, 195,
+ 0, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 0, 617, 0, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 0, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 0,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 0, 671,
+ 672, 216, 673, 674, 0, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 0, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 0, 0, 0, 0, 700,
+ 701, 0, 702, 0, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 0, 0, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 804, 439, 440, 441, 805, 806, 807,
+ 808, 809, 810, 811, 442, 443, 444, 812, 445, 446,
+ 447, 448, 126, 449, 450, 451, 128, 129, 130, 131,
+ 132, 813, 452, 453, 454, 455, 456, 457, 458, 814,
+ 815, 459, 460, 0, 134, 461, 817, 462, 463, 464,
+ 465, 138, 818, 139, 819, 466, 467, 468, 469, 470,
+ 471, 142, 472, 473, 820, 821, 474, 475, 476, 477,
+ 478, 479, 822, 145, 480, 481, 0, 824, 825, 826,
+ 146, 827, 828, 829, 484, 485, 486, 487, 0, 488,
+ 149, 150, 489, 830, 490, 831, 491, 492, 493, 494,
+ 495, 496, 497, 832, 498, 499, 500, 501, 833, 834,
+ 502, 503, 504, 505, 506, 835, 507, 508, 509, 836,
+ 510, 511, 512, 837, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 838, 521, 839, 522, 523, 524,
+ 162, 525, 840, 526, 841, 527, 163, 842, 164, 528,
+ 529, 530, 531, 843, 532, 166, 844, 167, 533, 534,
+ 845, 535, 536, 0, 537, 538, 168, 539, 540, 541,
+ 542, 846, 543, 544, 545, 546, 547, 548, 549, 847,
+ 550, 170, 171, 0, 551, 552, 553, 0, 172, 850,
+ 173, 851, 554, 174, 175, 555, 176, 556, 557, 558,
+ 559, 560, 852, 853, 561, 177, 178, 562, 179, 854,
+ 563, 564, 565, 855, 856, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 0, 577, 578, 0,
+ 579, 580, 581, 184, 185, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 857, 590, 591, 190,
+ 592, 858, 191, 593, 192, 594, 595, 596, 859, 597,
+ 598, 860, 861, 599, 600, 601, 862, 863, 602, 603,
+ 193, 194, 604, 195, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 864, 615, 616, 197, 617,
+ 198, 618, 619, 620, 865, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 866, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 867, 648, 649, 207, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 0, 662, 868, 663, 664, 665, 666, 667, 869,
+ 669, 670, 214, 671, 672, 216, 673, 674, 217, 675,
+ 870, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 871, 690, 691, 872,
+ 692, 221, 693, 694, 695, 696, 697, 873, 698, 222,
+ 223, 0, 875, 700, 701, 224, 702, 225, 876, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 878, 711,
+ 712, 713, 714, 715, 879, 880, 716, 717, 718, 719,
+ 720, 0, 232, 882, 721, 233, 722, 723, 724, 725,
+ 883, 884, 726, 885, 886, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 0, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 3160, 462, 463, 464, 465, 138, 0, 0, 3229, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 3161,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 3230, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 3163, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 3231,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 3164, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 3165, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 3160, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 3161, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 3230, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 3163, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 4260, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 3164, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 3165, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 1162, 437, 438, 1113, 439, 1114, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 1115, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 1163, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 1116, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 1117, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 1113,
+ 439, 1114, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 1115, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 3949,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 1116, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 1117,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 3160, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 3161, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 3230, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 3163, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 3164, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 3165, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 430,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 763, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 766, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 768, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 1113, 439, 1114, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 1115, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 1116, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 1117, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 3462, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 3293, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 1197, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 3294, 3295, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 1011, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 430, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 1012,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 1013, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 430, 0, 0, 37, 0,
+ 0, 39, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 1269, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 2401, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 2402, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 2403, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 2404, 527,
+ 0, 0, 0, 2405, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 2406, 2407, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 2408, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 2409, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 2410, 654, 209, 655, 656,
+ 657, 2411, 659, 660, 661, 772, 662, 0, 2412, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 2413, 692, 0, 2414, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 2415, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 1114, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 1115, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 1116, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 1117, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 3293, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 1197, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 3294, 3295, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 2390, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 430, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 3807, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 3808, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 3097, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 3809, 692, 0, 693, 3810,
+ 695, 3811, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 3812, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 430, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 790, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 430,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 768, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 430, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 958, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 430, 0, 0,
+ 37, 0, 0, 39, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 1359,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 1360, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 1197, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 430, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 1483, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 4028, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 4029, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 4041, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 4042, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 430, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 430, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 1017, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 430, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 1074, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 430,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 1132, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 1197, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 1316, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 1317, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 1790,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 1975, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 1197, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 2032, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 2033,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 2263, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 2390, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 3097, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 39, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 40, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 5170, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 5184, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 5280, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 5350, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 1144, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 1146, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 1147, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 0, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 1148, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 1149, 223, 0,
+ 0, 1150, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 1151,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 1191, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 1147, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 0, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 1192, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 1193, 223, 0, 0, 1194, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 1151, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 1211, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 1341, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 1351,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 1354, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 1370, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 1427, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 1432, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 1448,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 1451, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 1453, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 1498, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 1564, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 1566,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 1576, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 1579, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 1582, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 1801, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 1176, 460, 1147, 134, 1802, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 0, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 1180, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 1181, 651,
+ 652, 653, 654, 209, 655, 656, 657, 1182, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 1794, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 1184,
+ 223, 0, 0, 1185, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 1151, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 1186, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 1922, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 1923, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 1146, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 1147, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 0, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 1151,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 2212, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 2246, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 2248, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 2324,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 2326, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 2328, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 2442, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 3062, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 0, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 3507,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 3511, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 3596, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 3960, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 4017, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 459, 460, 764, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 765, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 4031,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 581, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 650, 651, 652, 653, 654, 209, 655, 656,
+ 657, 658, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 667, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 222, 223, 0, 0, 700, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 773, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 732, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 764, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 765, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 4033, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 773,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 4181, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 655, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 764,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 765, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 4221, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 581, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 773, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 459, 460, 764, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 765, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 5463, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 581, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 650, 651,
+ 652, 653, 654, 209, 655, 656, 657, 658, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 667, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 222,
+ 223, 0, 0, 700, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 773, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 732, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 1176, 460, 1147, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 0, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 1180, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 1181, 651, 652, 653, 654, 209, 655, 656,
+ 657, 1182, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 1794, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 1184, 223, 0, 0, 1185, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 1151, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 1186, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 459,
+ 460, 1147, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 0, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 581, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 650, 651, 652, 653,
+ 654, 209, 655, 656, 657, 658, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 667, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 222, 223, 0,
+ 0, 700, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 1151,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 732, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 1176, 460, 1147, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 0, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 533, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 1180, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 612, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 629, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 1181, 651, 652, 653, 654, 209, 655, 656, 657, 1182,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 1794, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 3147, 694, 695, 696, 697, 0,
+ 698, 1184, 223, 0, 0, 1185, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 1151, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 1186, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 750,
+ 84, 85, 86, 751, 0, 752, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 753, 0,
+ 0, 101, 102, 103, 104, 0, 0, 106, 107, 108,
+ 0, 109, 0, 0, 754, 755, 0, 0, 0, 756,
+ 757, 0, 0, 0, 0, 758, 0, 0, 0, 0,
+ 0, 0, 0, 0, 759, 0, 760, 0, 761, 762,
+ 35, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 0, 449,
+ 450, 451, 128, 129, 0, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 1176, 460, 1147,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 0,
+ 0, 466, 467, 468, 469, 470, 471, 0, 472, 473,
+ 0, 0, 474, 475, 476, 477, 478, 479, 0, 0,
+ 480, 481, 0, 0, 0, 0, 0, 0, 0, 0,
+ 484, 485, 486, 487, 767, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 0, 0, 0, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 769,
+ 537, 538, 0, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 0, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 0,
+ 0, 555, 0, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 0, 562, 0, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 770, 577, 578, 771, 579, 580, 1180, 184,
+ 0, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 0, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 0, 604, 0,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 0, 1181, 651, 652, 653, 654, 209,
+ 655, 656, 657, 3212, 659, 660, 661, 772, 662, 0,
+ 663, 664, 665, 666, 3213, 0, 669, 670, 214, 671,
+ 672, 0, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 0, 693, 694,
+ 695, 696, 697, 0, 698, 1184, 223, 0, 0, 3214,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 1151, 232, 0,
+ 721, 0, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 1186, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 774, 733,
+ 734, 81, 82, 750, 84, 85, 86, 751, 0, 752,
+ 89, 0, 0, 92, 93, 94, 95, 96, 97, 0,
+ 98, 99, 753, 0, 0, 101, 102, 103, 104, 0,
+ 0, 106, 107, 108, 0, 109, 0, 0, 754, 755,
+ 0, 0, 0, 756, 757, 0, 0, 0, 0, 758,
+ 0, 0, 0, 0, 0, 0, 0, 0, 759, 0,
+ 760, 0, 761, 762, 35, 0, 0, 0, 37, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 431, 432, 433, 434, 435,
+ 436, 437, 438, 0, 439, 440, 441, 0, 0, 0,
+ 0, 0, 0, 0, 442, 443, 444, 0, 445, 446,
+ 447, 448, 0, 449, 450, 451, 128, 129, 0, 131,
+ 132, 0, 452, 453, 454, 455, 456, 457, 458, 0,
+ 0, 1176, 460, 1147, 134, 461, 0, 462, 463, 464,
+ 465, 138, 0, 0, 0, 466, 467, 468, 469, 470,
+ 471, 0, 472, 473, 0, 0, 474, 475, 476, 477,
+ 478, 479, 0, 0, 480, 481, 0, 0, 0, 0,
+ 0, 0, 0, 0, 484, 485, 486, 487, 767, 488,
+ 149, 150, 489, 0, 490, 0, 491, 492, 493, 494,
+ 495, 496, 497, 0, 498, 499, 500, 501, 0, 0,
+ 502, 503, 504, 505, 506, 0, 507, 508, 509, 0,
+ 510, 511, 512, 0, 513, 514, 515, 516, 158, 517,
+ 518, 519, 520, 160, 0, 521, 0, 522, 523, 524,
+ 162, 525, 0, 526, 0, 527, 0, 0, 0, 528,
+ 529, 530, 531, 0, 532, 166, 0, 167, 533, 534,
+ 0, 535, 536, 769, 537, 538, 0, 539, 540, 541,
+ 542, 0, 543, 544, 545, 546, 547, 548, 549, 0,
+ 550, 0, 171, 0, 551, 552, 553, 0, 172, 0,
+ 173, 0, 554, 0, 0, 555, 0, 556, 557, 558,
+ 559, 560, 0, 0, 561, 177, 0, 562, 0, 0,
+ 563, 564, 565, 0, 0, 566, 567, 568, 569, 570,
+ 571, 572, 573, 574, 575, 576, 770, 577, 578, 771,
+ 579, 580, 1180, 184, 0, 186, 582, 583, 584, 585,
+ 586, 587, 588, 187, 188, 589, 0, 590, 591, 0,
+ 592, 0, 191, 593, 192, 594, 595, 596, 0, 597,
+ 598, 0, 0, 599, 600, 601, 0, 0, 602, 603,
+ 193, 0, 604, 0, 196, 605, 606, 607, 608, 609,
+ 610, 611, 612, 613, 614, 0, 615, 616, 197, 617,
+ 198, 618, 619, 620, 0, 621, 622, 623, 624, 625,
+ 626, 627, 628, 629, 630, 200, 631, 632, 633, 634,
+ 0, 635, 636, 637, 638, 639, 640, 641, 642, 643,
+ 644, 645, 646, 647, 0, 648, 649, 0, 1181, 651,
+ 652, 653, 654, 209, 655, 656, 657, 3290, 659, 660,
+ 661, 772, 662, 0, 663, 664, 665, 666, 3213, 0,
+ 669, 670, 214, 671, 672, 0, 673, 674, 217, 675,
+ 0, 676, 677, 678, 679, 680, 681, 682, 683, 684,
+ 685, 686, 687, 688, 219, 689, 0, 690, 691, 0,
+ 692, 0, 693, 694, 695, 696, 697, 0, 698, 1184,
+ 223, 0, 0, 3214, 701, 224, 702, 225, 0, 703,
+ 704, 705, 706, 707, 708, 709, 710, 0, 0, 711,
+ 712, 713, 714, 715, 0, 0, 716, 717, 718, 719,
+ 720, 1151, 232, 0, 721, 0, 722, 723, 724, 725,
+ 0, 0, 726, 0, 0, 727, 728, 729, 730, 731,
+ 1186, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 774, 733, 734, 81, 82, 750, 84, 85,
+ 86, 751, 0, 752, 89, 0, 0, 92, 93, 94,
+ 95, 96, 97, 0, 98, 99, 753, 0, 0, 101,
+ 102, 103, 104, 0, 0, 106, 107, 108, 0, 109,
+ 0, 0, 754, 755, 0, 0, 0, 756, 757, 0,
+ 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
+ 0, 0, 759, 0, 760, 0, 761, 762, 35, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 431,
+ 432, 433, 434, 435, 436, 437, 438, 0, 439, 440,
+ 441, 0, 0, 0, 0, 0, 0, 0, 442, 443,
+ 444, 0, 445, 446, 447, 448, 0, 449, 450, 451,
+ 128, 129, 0, 131, 132, 0, 452, 453, 454, 455,
+ 456, 457, 458, 0, 0, 1176, 460, 1147, 134, 461,
+ 0, 462, 463, 464, 465, 138, 0, 0, 0, 466,
+ 467, 468, 469, 470, 471, 0, 472, 473, 0, 0,
+ 474, 475, 476, 477, 478, 479, 0, 0, 480, 481,
+ 0, 0, 0, 0, 0, 0, 0, 0, 484, 485,
+ 486, 487, 767, 488, 149, 150, 489, 0, 490, 0,
+ 491, 492, 493, 494, 495, 496, 497, 0, 498, 499,
+ 500, 501, 0, 0, 502, 503, 504, 505, 506, 0,
+ 507, 508, 509, 0, 510, 511, 512, 0, 513, 514,
+ 515, 516, 158, 517, 518, 519, 520, 160, 0, 521,
+ 0, 522, 523, 524, 162, 525, 0, 526, 0, 527,
+ 0, 0, 0, 528, 529, 530, 531, 0, 532, 166,
+ 0, 167, 533, 534, 0, 535, 536, 769, 537, 538,
+ 0, 539, 540, 541, 542, 0, 543, 544, 545, 546,
+ 547, 548, 549, 0, 550, 0, 171, 0, 551, 552,
+ 553, 0, 172, 0, 173, 0, 554, 0, 0, 555,
+ 0, 556, 557, 558, 559, 560, 0, 0, 561, 177,
+ 0, 562, 0, 0, 563, 564, 565, 0, 0, 566,
+ 567, 568, 569, 570, 571, 572, 573, 574, 575, 576,
+ 770, 577, 578, 771, 579, 580, 1180, 184, 0, 186,
+ 582, 583, 584, 585, 586, 587, 588, 187, 188, 589,
+ 0, 590, 591, 0, 592, 0, 191, 593, 192, 594,
+ 595, 596, 0, 597, 598, 0, 0, 599, 600, 601,
+ 0, 0, 602, 603, 193, 0, 604, 0, 196, 605,
+ 606, 607, 608, 609, 610, 611, 612, 613, 614, 0,
+ 615, 616, 197, 617, 198, 618, 619, 620, 0, 621,
+ 622, 623, 624, 625, 626, 627, 628, 629, 630, 200,
+ 631, 632, 633, 634, 0, 635, 636, 637, 638, 639,
+ 640, 641, 642, 643, 644, 645, 646, 647, 0, 648,
+ 649, 0, 1181, 651, 652, 653, 654, 209, 655, 656,
+ 657, 3314, 659, 660, 661, 772, 662, 0, 663, 664,
+ 665, 666, 3213, 0, 669, 670, 214, 671, 672, 0,
+ 673, 674, 217, 675, 0, 676, 677, 678, 679, 680,
+ 681, 682, 683, 684, 685, 686, 687, 688, 219, 689,
+ 0, 690, 691, 0, 692, 0, 693, 694, 695, 696,
+ 697, 0, 698, 1184, 223, 0, 0, 3214, 701, 224,
+ 702, 225, 0, 703, 704, 705, 706, 707, 708, 709,
+ 710, 0, 0, 711, 712, 713, 714, 715, 0, 0,
+ 716, 717, 718, 719, 720, 1151, 232, 0, 721, 0,
+ 722, 723, 724, 725, 0, 0, 726, 0, 0, 727,
+ 728, 729, 730, 731, 1186, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 774, 733, 734, 81,
+ 82, 750, 84, 85, 86, 751, 0, 752, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 753, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 754, 755, 0, 0,
+ 0, 756, 757, 0, 0, 0, 0, 758, 0, 0,
+ 0, 0, 0, 0, 0, 0, 759, 0, 760, 0,
+ 761, 762, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 431, 432, 433, 434, 435, 436, 437,
+ 438, 0, 439, 440, 441, 0, 0, 0, 0, 0,
+ 0, 0, 442, 443, 444, 0, 445, 446, 447, 448,
+ 0, 449, 450, 451, 128, 129, 0, 131, 132, 0,
+ 452, 453, 454, 455, 456, 457, 458, 0, 0, 1176,
+ 460, 1147, 134, 461, 0, 462, 463, 464, 465, 138,
+ 0, 0, 0, 466, 467, 468, 469, 470, 471, 0,
+ 472, 473, 0, 0, 474, 475, 476, 477, 478, 479,
+ 0, 0, 480, 481, 0, 0, 0, 0, 0, 0,
+ 0, 0, 484, 485, 486, 487, 767, 488, 149, 150,
+ 489, 0, 490, 0, 491, 492, 493, 494, 495, 496,
+ 497, 0, 498, 499, 500, 501, 0, 0, 502, 503,
+ 504, 505, 506, 0, 507, 508, 509, 0, 510, 511,
+ 512, 0, 513, 514, 515, 516, 158, 517, 518, 519,
+ 520, 160, 0, 521, 0, 522, 523, 524, 162, 525,
+ 0, 526, 0, 527, 0, 0, 0, 528, 529, 530,
+ 531, 0, 532, 166, 0, 167, 533, 534, 0, 535,
+ 536, 769, 537, 538, 0, 539, 540, 541, 542, 0,
+ 543, 544, 545, 546, 547, 548, 549, 0, 550, 0,
+ 171, 0, 551, 552, 553, 0, 172, 0, 173, 0,
+ 554, 0, 0, 555, 0, 556, 557, 558, 559, 560,
+ 0, 0, 561, 177, 0, 562, 0, 0, 563, 564,
+ 565, 0, 0, 566, 567, 568, 569, 570, 571, 572,
+ 573, 574, 575, 576, 770, 577, 578, 771, 579, 580,
+ 1180, 184, 0, 186, 582, 583, 584, 585, 586, 587,
+ 588, 187, 188, 589, 0, 590, 591, 0, 592, 0,
+ 191, 593, 192, 594, 595, 596, 0, 597, 598, 0,
+ 0, 599, 600, 601, 0, 0, 602, 603, 193, 0,
+ 604, 0, 196, 605, 606, 607, 608, 609, 610, 611,
+ 612, 613, 614, 0, 615, 616, 197, 617, 198, 618,
+ 619, 620, 0, 621, 622, 623, 624, 625, 626, 627,
+ 628, 629, 630, 200, 631, 632, 633, 634, 0, 635,
+ 636, 637, 638, 639, 640, 641, 642, 643, 644, 645,
+ 646, 647, 0, 648, 649, 0, 1181, 651, 652, 653,
+ 654, 209, 655, 656, 657, 1182, 659, 660, 661, 772,
+ 662, 0, 663, 664, 665, 666, 3213, 0, 669, 670,
+ 214, 671, 672, 0, 673, 674, 217, 675, 0, 676,
+ 677, 678, 679, 680, 681, 682, 683, 684, 685, 686,
+ 687, 688, 219, 689, 0, 690, 691, 0, 692, 0,
+ 693, 694, 695, 696, 697, 0, 698, 1184, 223, 0,
+ 0, 3214, 701, 224, 702, 225, 0, 703, 704, 705,
+ 706, 707, 708, 709, 710, 0, 0, 711, 712, 713,
+ 714, 715, 0, 0, 716, 717, 718, 719, 720, 1151,
+ 232, 0, 721, 0, 722, 723, 724, 725, 0, 0,
+ 726, 0, 0, 727, 728, 729, 730, 731, 1186, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 774, 733, 734, 81, 82, 750, 84, 85, 86, 751,
+ 0, 752, 89, 0, 0, 92, 93, 94, 95, 96,
+ 97, 0, 98, 99, 753, 0, 0, 101, 102, 103,
+ 104, 0, 0, 106, 107, 108, 0, 109, 0, 0,
+ 754, 755, 0, 0, 0, 756, 757, 0, 0, 0,
+ 0, 758, 0, 0, 0, 0, 0, 0, 0, 0,
+ 759, 0, 760, 0, 761, 762, 35, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 431, 432, 433,
+ 434, 435, 436, 437, 438, 0, 439, 440, 441, 0,
+ 0, 0, 0, 0, 0, 0, 442, 443, 444, 0,
+ 445, 446, 447, 448, 0, 449, 450, 451, 128, 129,
+ 0, 131, 132, 0, 452, 453, 454, 455, 456, 457,
+ 458, 0, 0, 459, 460, 764, 134, 461, 0, 462,
+ 463, 464, 465, 138, 0, 0, 0, 466, 467, 468,
+ 469, 470, 471, 0, 472, 473, 765, 0, 474, 475,
+ 476, 477, 478, 479, 0, 0, 480, 481, 0, 0,
+ 0, 0, 0, 0, 0, 0, 484, 485, 486, 487,
+ 767, 488, 149, 150, 489, 0, 490, 0, 491, 492,
+ 493, 494, 495, 496, 497, 0, 498, 499, 500, 501,
+ 0, 0, 502, 503, 504, 505, 506, 0, 507, 508,
+ 509, 0, 510, 511, 512, 0, 513, 514, 515, 516,
+ 158, 517, 518, 519, 520, 160, 0, 521, 0, 522,
+ 523, 524, 162, 525, 0, 526, 0, 527, 0, 0,
+ 0, 528, 529, 530, 531, 0, 532, 166, 0, 167,
+ 0, 534, 0, 535, 536, 769, 537, 538, 0, 539,
+ 540, 541, 542, 0, 543, 544, 545, 546, 547, 548,
+ 549, 0, 550, 0, 171, 0, 551, 552, 553, 0,
+ 172, 0, 173, 0, 554, 0, 0, 555, 0, 556,
+ 557, 558, 559, 560, 0, 0, 561, 177, 0, 562,
+ 0, 0, 563, 564, 565, 0, 0, 566, 567, 568,
+ 569, 570, 571, 572, 573, 574, 575, 576, 770, 577,
+ 578, 771, 579, 580, 581, 184, 0, 186, 582, 583,
+ 584, 585, 586, 587, 588, 187, 188, 589, 0, 590,
+ 591, 0, 592, 0, 191, 593, 192, 594, 595, 596,
+ 0, 597, 598, 0, 0, 599, 600, 601, 0, 0,
+ 602, 603, 193, 0, 604, 0, 196, 605, 606, 607,
+ 608, 609, 610, 611, 0, 613, 614, 0, 615, 616,
+ 197, 617, 198, 618, 619, 620, 0, 621, 622, 623,
+ 624, 625, 626, 627, 628, 0, 630, 200, 631, 632,
+ 633, 634, 0, 635, 636, 637, 638, 639, 640, 641,
+ 642, 643, 644, 645, 646, 647, 0, 648, 649, 0,
+ 650, 651, 652, 653, 654, 209, 0, 656, 657, 658,
+ 659, 660, 661, 772, 662, 0, 663, 664, 665, 666,
+ 667, 0, 669, 670, 214, 671, 672, 0, 673, 674,
+ 217, 675, 0, 676, 677, 678, 679, 680, 681, 682,
+ 683, 684, 685, 686, 687, 688, 219, 689, 0, 690,
+ 691, 0, 692, 0, 693, 694, 695, 696, 697, 0,
+ 698, 222, 223, 0, 0, 700, 701, 224, 702, 225,
+ 0, 703, 704, 705, 706, 707, 708, 709, 710, 0,
+ 0, 711, 712, 713, 714, 715, 0, 0, 716, 717,
+ 718, 719, 720, 773, 232, 0, 721, 0, 722, 723,
+ 724, 725, 0, 0, 726, 0, 0, 727, 728, 729,
+ 730, 731, 732, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 774, 733, 734, 81, 82, 0,
+ 84, 85, 86, 0, 0, 0, 89, 0, 0, 92,
+ 93, 94, 95, 96, 97, 0, 98, 99, 0, 0,
+ 0, 101, 102, 103, 104, 0, 105, 106, 107, 108,
+ -3267, 109, 110, 111, 0, 0, 0, 0, 0, 114,
+ 115, 0, 0, 0, 0, 116, 0, 0, 0, 0,
+ 0, 0, 0, 0, 117, 0, 118, 0, 119, 120,
+ 35, 0, 425, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 126, 0,
+ 0, 0, 128, 129, 130, 131, 132, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 134, 0, 0, 0, 0, 0, 0, 138, 0, 139,
+ 0, 0, 0, 0, 0, 0, 0, 142, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 145,
+ 0, 0, 0, 0, 0, 0, 146, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 149, 150, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 156, 0, 0, 0,
+ 0, 0, 0, 0, 158, 0, 0, 0, 0, 160,
+ 0, 0, 0, 0, 0, 0, 162, 0, 0, 0,
+ 0, 0, 163, 0, 164, 0, 0, 0, 0, 0,
+ 0, 166, 0, 167, 0, 0, 0, 0, 0, 0,
+ 0, 0, 168, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 170, 171, 0,
+ 0, 0, 0, 0, 172, 0, 173, 0, 0, 174,
+ 175, 0, 176, 0, 0, 0, 0, 0, 0, 0,
+ 0, 177, 178, 0, 179, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 184,
+ 185, 186, 0, 0, 0, 0, 0, 0, 0, 187,
+ 188, 0, 0, 0, 0, 190, 0, 0, 191, 0,
+ 192, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 193, 194, 0, 195,
+ 196, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 197, 0, 198, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 200, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 207, 0, 0, 0, 0, 0, 209,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 214, 0,
+ 0, 216, 0, 0, 217, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 219, 0, 0, 0, 0, 0, 0, 221, 0, 0,
+ 0, 0, 0, 0, 0, 222, 223, 0, 0, 0,
+ 0, 224, 0, 225, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 228, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 232, 0,
+ 0, 233, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 81, 82,
+ 0, 84, 85, 86, 0, 0, 0, 89, 0, 0,
+ 92, 93, 94, 95, 96, 97, 0, 98, 99, 0,
+ 0, 0, 101, 102, 103, 104, 0, 105, 106, 107,
+ 108, -3268, 109, 110, 111, 0, 0, 0, 0, 0,
+ 114, 115, 0, 0, 0, 0, 116, 0, 0, 0,
+ 0, 0, 0, 0, 0, 117, 0, 118, 0, 119,
+ 120, 35, 0, 1264, 0, 37, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 126,
+ 0, 0, 0, 128, 129, 130, 131, 132, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 134, 0, 0, 0, 0, 0, 0, 138, 0,
+ 139, 0, 0, 0, 0, 0, 0, 0, 142, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 145, 0, 0, 0, 0, 0, 0, 146, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 149, 150, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 156, 0, 0,
+ 0, 0, 0, 0, 0, 158, 0, 0, 0, 0,
+ 160, 0, 0, 0, 0, 0, 0, 162, 0, 0,
+ 0, 0, 0, 163, 0, 164, 0, 0, 0, 0,
+ 0, 0, 166, 0, 167, 0, 0, 0, 0, 0,
+ 0, 0, 0, 168, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 170, 171,
+ 0, 0, 0, 0, 0, 172, 0, 173, 0, 0,
+ 174, 175, 0, 176, 0, 0, 0, 0, 0, 0,
+ 0, 0, 177, 178, 0, 179, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 184, 185, 186, 0, 0, 0, 0, 0, 0, 0,
+ 187, 188, 0, 0, 0, 0, 190, 0, 0, 191,
+ 0, 192, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 193, 194, 0,
+ 195, 196, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 197, 0, 198, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 200, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 207, 0, 0, 0, 0, 0,
+ 209, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 214,
+ 0, 0, 216, 0, 0, 217, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 219, 0, 0, 0, 0, 0, 0, 221, 0,
+ 0, 0, 0, 0, 0, 0, 222, 223, 0, 0,
+ 0, 0, 224, 0, 225, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 228, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 232,
+ 0, 0, 233, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 235, 236,
+ 237, 238, 239, 240, 241, 242, 243, 244, 245, 81,
+ 82, 0, 84, 85, 86, 0, 0, 0, 89, 0,
+ 0, 92, 93, 94, 95, 96, 97, 0, 98, 99,
+ 0, 0, 0, 101, 102, 103, 104, 0, 0, 106,
+ 107, 108, 0, 109, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 35, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 126, 0, 0, 0, 128, 129, 130, 131, 132, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 134, 0, 0, 0, 0, 0, 0, 138,
+ 0, 139, 0, 0, 0, 0, 0, 0, 0, 142,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 145, 0, 0, 0, 0, 0, 0, 146, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 149, 150,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 158, 0, 0, 0,
+ 0, 160, 0, 0, 0, 0, 0, 0, 162, 0,
+ 0, 0, 0, 0, 163, 0, 164, 0, 0, 0,
+ 0, 0, 0, 166, 0, 167, 0, 0, 0, 0,
+ 0, 0, 0, 0, 168, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 170,
+ 171, 0, 0, 0, 0, 0, 172, 0, 173, 0,
+ 0, 174, 175, 0, 176, 0, 0, 0, 0, 0,
+ 0, 0, 0, 177, 178, 0, 179, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 184, 185, 186, 0, 0, 0, 0, 0, 0,
+ 0, 187, 188, 0, 0, 0, 0, 190, 0, 0,
+ 191, 0, 192, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 193, 194,
+ 0, 195, 196, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 197, 0, 198, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 200, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 207, 0, 0, 0, 0,
+ 0, 209, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 214, 0, 0, 216, 0, 0, 217, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 219, 0, 0, 0, 0, 0, 0, 221,
+ 0, 0, 0, 0, 0, 0, 0, 222, 223, 0,
+ 0, 0, 0, 224, 0, 225, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 232, 0, 0, 233, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 235,
+ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
+ 35, 430, 0, 0, 37, 0, 38, 39, 0, 0,
+ 0, 0, 40, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 128, 129, 130, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 0,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 0, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 0, 146, 0, 0, 0,
+ 484, 485, 486, 487, 0, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 2169, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 0,
+ 537, 538, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 0, 577, 578, 0, 579, 580, 581, 184,
+ 185, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 190, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 2170, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 194, 604, 195,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 0, 662, 0,
+ 663, 664, 665, 666, 667, 0, 669, 670, 214, 671,
+ 672, 216, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 0, 0, 700,
+ 701, 224, 702, 225, 2171, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 0, 232, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 0, 733,
+ 734, 35, 0, 0, 0, 37, 0, 0, 0, 0,
+ 0, 0, 1880, 1881, 6204, 0, 0, 0, 0, 0,
+ 0, 6205, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 123, 124, 0, 0, 0, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 129, 130, 131, 132, 0, 452,
+ 453, 454, 455, 456, 457, 458, 0, 0, 459, 460,
+ 0, 134, 461, 0, 462, 463, 464, 465, 138, 0,
+ 139, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 0, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 0, 0, 0, 0, 146, 0, 0,
+ 0, 484, 485, 486, 487, 0, 488, 149, 150, 489,
+ 0, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 504,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 158, 517, 518, 519, 520,
+ 160, 0, 521, 0, 522, 523, 524, 162, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 166, 0, 167, 533, 534, 0, 535, 536,
+ 0, 537, 538, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 0, 172, 0, 173, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 177, 178, 562, 179, 0, 563, 564, 565,
+ 0, 0, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 0, 577, 578, 0, 579, 580, 581,
+ 184, 185, 186, 582, 583, 584, 585, 586, 587, 588,
+ 187, 188, 589, 0, 590, 591, 190, 592, 0, 191,
+ 593, 192, 594, 595, 596, 0, 597, 598, 0, 0,
+ 599, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 196, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 197, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 200, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 209, 655, 656, 657, 658, 659, 660, 661, 0, 662,
+ 212, 663, 664, 665, 666, 667, 0, 669, 670, 214,
+ 671, 672, 216, 673, 674, 217, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 219, 689, 0, 690, 691, 220, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 222, 223, 0, 0,
+ 700, 701, 224, 702, 225, 0, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 0, 711, 712, 713, 714,
+ 715, 0, 0, 716, 717, 718, 719, 720, 231, 232,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 234, 727, 728, 729, 730, 731, 732, 235, 236,
+ 237, 238, 239, 240, 241, 242, 243, 244, 245, 0,
+ 733, 734, 0, 0, 246, 35, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 2495, 0, 0, 2496,
+ 0, 0, 247, 2497, 2498, 2499, 2500, 2501, 2502, 2503,
+ 2504, 2505, 2506, 2507, 2508, 2509, 2510, 2511, 2512, 2513,
+ 2514, 2515, 0, 2516, 2517, 2518, 2519, 2520, 2521, 2522,
+ 2523, 2524, 2525, 2526, 2527, 2528, 2529, 2530, 2531, 2532,
+ 2533, 2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2542,
+ 2543, 2544, 2545, 2546, 0, 0, 2547, 2548, 2549, 2550,
+ 2551, 2552, 2553, 2554, 2555, 2556, 2557, 2558, 2559, 2560,
+ 2561, 2562, 2563, 2564, 2565, 2566, 2567, 2568, 2569, 2570,
+ 2571, 2572, 2573, 0, 2574, 2575, 2576, 2577, 2578, 2579,
+ 2580, 2581, 2582, 2583, 2584, 2585, 2586, 2587, 2588, 0,
+ 2589, 2590, 2591, 2592, 2593, 2594, 2595, 2596, 2597, 2598,
+ 2599, 2600, 2601, 2602, 2603, 2604, 2605, 2606, 2607, 2608,
+ 2609, 2610, 2611, 2612, 2613, 2614, 2615, 2616, 2617, 2618,
+ 2619, 2620, 2621, 2622, 0, 2623, 2624, 2625, 2626, 2627,
+ 2628, 2629, 2630, 2631, 2632, 2633, 2634, 0, 0, 2635,
+ 2636, 2637, 2638, 0, 2639, 2640, 2641, 2642, 0, 2643,
+ 2644, 2645, 2646, 2647, 0, 2648, 2649, 0, 2650, 2651,
+ 2652, 0, 2653, 2654, 0, 2655, 2656, 2657, 2658, 2659,
+ 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669,
+ 2670, 2671, 2672, 2673, 2674, 2675, 2676, 2677, 2678, 2679,
+ 0, 2680, 0, 2681, 2682, 2683, 2684, 2685, 2686, 2687,
+ 2688, 2689, 2690, 2691, 2692, 2693, 2694, 2695, 2696, 2697,
+ 0, 2698, 2699, 2700, 2701, 2702, 2703, 2704, 2705, 2706,
+ 2707, 2708, 2709, 2710, 2711, 2712, 2713, 0, 2714, 2715,
+ 0, 2716, 2717, 2718, 2719, 2720, 2721, 2722, 2723, 2724,
+ 2725, 2726, 2727, 2728, 2729, 2730, 2731, 2732, 2733, 2734,
+ 2735, 2736, 2737, 2738, 2739, 2740, 2741, 2742, 2743, 0,
+ 2744, 2745, 0, 2746, 2747, 2748, 2749, 2750, 0, 2751,
+ 2752, 2753, 2754, 0, 0, 2755, 2756, 2757, 2758, 2759,
+ 2760, 2761, 2762, 2763, 2764, 2765, 2766, 2767, 2768, 2769,
+ 2770, 0, 2771, 2772, 2773, 2774, 2775, 2776, 2777, 2778,
+ 2779, 2780, 2781, 2782, 2783, 2784, 2785, 2786, 2787, 2788,
+ 2789, 2790, 2791, 2792, 2793, 2794, 2795, 2796, 2797, 2798,
+ 2799, 2800, 2801, 2802, 2803, 0, 2804, 2805, 2806, 2807,
+ 2808, 2809, 2810, 2811, 2812, 2813, 2814, 2815, 2816, 2817,
+ 2818, 2819, 0, 2820, 2821, 2822, 2823, 2824, 2825, 2826,
+ 2827, 2828, 2829, 2830, 2831, 2832, 2833, 2834, 2835, 2836,
+ 2837, 2838, 2839, 2840, 2841, 2842, 2843, 2844, 2845, 2846,
+ 2847, 2848, 2849, 2850, 2851, 2852, 2853, 2854, 2855, 2856,
+ 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866,
+ 2867, 2868, 0, 2869, 2870, 2871, 2872, 2873, 2874, 2875,
+ 2876, 2877, 2878, 2879, 2880, 2881, 2882, 2883, 0, 2884,
+ 2885, 2886, 2887, 2888, 2889, 2890, 2891, 2892, 2893, 2894,
+ 2895, 2896, 2897, 2898, 2899, 0, 2900, 2901, 2902, 2903,
+ 2904, 2905, 0, 2906, 0, 0, 0, 0, 2907, 2908,
+ 2909, 2910, 2911, 2912, 2913, 2914, 2915, 2916, 2917, 2918,
+ 2919, 2920, 2921, 0, 2922, 2923, 2924, 0, 0, 0,
+ 0, 0, 0, 0, 2925, 2926, 2927, 2928, 2929, 2930,
+ 2931, 2932, 2933, 35, 430, 0, 0, 37, 0, 38,
+ 39, 0, 0, 0, 0, 40, 0, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 0, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 128, 129, 130, 131, 132,
+ 0, 452, 453, 454, 455, 456, 457, 458, 0, 0,
+ 459, 460, 0, 134, 461, 0, 462, 463, 464, 465,
+ 138, 0, 139, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 0, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 481, 0, 0, 0, 0, 146,
+ 0, 0, 0, 484, 485, 486, 487, 0, 488, 149,
+ 150, 489, 2987, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 504, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 158, 517, 518,
+ 519, 520, 160, 2169, 521, 0, 522, 523, 524, 162,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 166, 0, 167, 533, 534, 0,
+ 535, 536, 0, 537, 538, 168, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 171, 0, 551, 552, 553, 0, 172, 0, 173,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 177, 178, 562, 179, 0, 563,
+ 564, 565, 0, 0, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 0, 577, 578, 0, 579,
+ 580, 581, 184, 185, 186, 582, 583, 584, 585, 586,
+ 587, 588, 187, 188, 589, 0, 590, 591, 190, 592,
+ 0, 191, 593, 192, 594, 595, 596, 0, 597, 598,
+ 2170, 0, 599, 600, 601, 0, 0, 602, 603, 193,
+ 194, 604, 195, 196, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 197, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 200, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 652,
+ 653, 654, 209, 655, 656, 657, 658, 659, 660, 661,
+ 0, 662, 0, 663, 664, 665, 666, 667, 0, 669,
+ 670, 214, 671, 672, 216, 673, 674, 217, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 219, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 222, 223,
+ 0, 0, 700, 701, 224, 702, 225, 2171, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 0, 711, 712,
+ 713, 714, 715, 0, 0, 716, 717, 718, 719, 720,
+ 0, 232, 0, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
+ 245, 0, 733, 734, 0, 35, 430, 0, 0, 37,
+ 0, 38, 39, 0, 0, 1880, 1881, 40, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 0, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 0, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 0,
+ 488, 149, 150, 489, 2992, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 2169, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 0, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 0, 577, 578,
+ 0, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 190, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 2170, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 0, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 2171,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 0, 232, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 0, 733, 734, 0, 35, 430, 0,
+ 0, 37, 0, 38, 39, 0, 0, 1880, 1881, 40,
+ 0, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 0, 439, 440, 441,
+ 0, 0, 0, 0, 0, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 128,
+ 129, 130, 131, 132, 0, 452, 453, 454, 455, 456,
+ 457, 458, 0, 0, 459, 460, 0, 134, 461, 0,
+ 462, 463, 464, 465, 138, 0, 139, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 0, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 0, 0, 0, 146, 0, 0, 0, 484, 485, 486,
+ 487, 0, 488, 149, 150, 489, 3942, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 504, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 158, 517, 518, 519, 520, 160, 2169, 521, 0,
+ 522, 523, 524, 162, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 166, 0,
+ 167, 533, 534, 0, 535, 536, 0, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 0, 172, 0, 173, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 177, 178,
+ 562, 179, 0, 563, 564, 565, 0, 0, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 0,
+ 577, 578, 0, 579, 580, 581, 184, 185, 186, 582,
+ 583, 584, 585, 586, 587, 588, 187, 188, 589, 0,
+ 590, 591, 190, 592, 0, 191, 593, 192, 594, 595,
+ 596, 0, 597, 598, 2170, 0, 599, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 196, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 197, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 200, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 209, 655, 656, 657,
+ 658, 659, 660, 661, 0, 662, 0, 663, 664, 665,
+ 666, 667, 0, 669, 670, 214, 671, 672, 216, 673,
+ 674, 217, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 219, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 222, 223, 0, 0, 700, 701, 224, 702,
+ 225, 2171, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 0, 711, 712, 713, 714, 715, 0, 0, 716,
+ 717, 718, 719, 720, 0, 232, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 236, 237, 238, 239, 240,
+ 241, 242, 243, 244, 245, 0, 733, 734, 0, 35,
+ 430, 0, 0, 37, 0, 38, 39, 0, 0, 1880,
+ 1881, 40, 0, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 0, 0, 0, 0, 0, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, 128, 129, 130, 131, 132, 0, 452, 453, 454,
+ 455, 456, 457, 458, 0, 0, 459, 460, 0, 134,
+ 461, 0, 462, 463, 464, 465, 138, 0, 139, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 0,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 0, 0, 0, 0, 146, 0, 0, 0, 484,
+ 485, 486, 487, 0, 488, 149, 150, 489, 0, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 504, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 158, 517, 518, 519, 520, 160, 2169,
+ 521, 0, 522, 523, 524, 162, 525, 0, 526, 0,
+ 527, 163, 0, 164, 528, 529, 530, 531, 0, 532,
+ 166, 0, 167, 533, 534, 0, 535, 536, 0, 537,
+ 538, 168, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 0, 172, 0, 173, 0, 554, 174, 175,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 177, 178, 562, 179, 0, 563, 564, 565, 0, 0,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 0, 577, 578, 0, 579, 580, 581, 184, 185,
+ 186, 582, 583, 584, 585, 586, 587, 588, 187, 188,
+ 589, 0, 590, 591, 190, 592, 0, 191, 593, 192,
+ 594, 595, 596, 0, 597, 598, 2170, 0, 599, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 196,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 197, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 200, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 209, 655,
+ 656, 657, 658, 659, 660, 661, 0, 662, 0, 663,
+ 664, 665, 666, 667, 0, 669, 670, 214, 671, 672,
+ 216, 673, 674, 217, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 219,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 222, 223, 0, 0, 700, 701,
+ 224, 702, 225, 2171, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 0, 711, 712, 713, 714, 715, 0,
+ 0, 716, 717, 718, 719, 720, 0, 232, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 236, 237, 238,
+ 239, 240, 241, 242, 243, 244, 245, 0, 733, 734,
+ 35, 430, 0, 0, 37, 0, 0, 39, 0, 0,
+ 0, 1880, 1881, 0, 0, 0, 0, 0, 0, 0,
+ 0, 431, 432, 433, 434, 435, 436, 437, 438, 0,
+ 439, 440, 441, 0, 0, 0, 0, 0, 0, 0,
+ 442, 443, 444, 0, 445, 446, 447, 448, 126, 449,
+ 450, 451, 128, 129, 130, 131, 132, 0, 452, 453,
+ 454, 455, 456, 457, 458, 0, 0, 459, 460, 0,
+ 134, 461, 0, 462, 463, 464, 465, 138, 0, 139,
+ 0, 466, 467, 468, 469, 470, 471, 142, 472, 473,
+ 0, 0, 474, 475, 476, 477, 478, 479, 0, 145,
+ 480, 481, 0, 0, 0, 482, 146, 0, 0, 483,
+ 484, 485, 486, 487, 0, 488, 149, 150, 489, 0,
+ 490, 0, 491, 492, 493, 494, 495, 496, 497, 0,
+ 498, 499, 500, 501, 0, 0, 502, 503, 504, 505,
+ 506, 0, 507, 508, 509, 0, 510, 511, 512, 0,
+ 513, 514, 515, 516, 158, 517, 518, 519, 520, 160,
+ 0, 521, 0, 522, 523, 524, 162, 525, 0, 526,
+ 0, 527, 163, 0, 164, 528, 529, 530, 531, 0,
+ 532, 166, 0, 167, 533, 534, 0, 535, 536, 0,
+ 537, 538, 168, 539, 540, 541, 542, 0, 543, 544,
+ 545, 546, 547, 548, 549, 0, 550, 170, 171, 0,
+ 551, 552, 553, 0, 172, 0, 173, 0, 554, 174,
+ 175, 555, 176, 556, 557, 558, 559, 560, 0, 0,
+ 561, 177, 178, 562, 179, 0, 563, 564, 565, 0,
+ 0, 566, 567, 568, 569, 570, 571, 572, 573, 574,
+ 575, 576, 0, 577, 578, 0, 579, 580, 581, 184,
+ 185, 186, 582, 583, 584, 585, 586, 587, 588, 187,
+ 188, 589, 0, 590, 591, 190, 592, 0, 191, 593,
+ 192, 594, 595, 596, 0, 597, 598, 0, 0, 599,
+ 600, 601, 0, 0, 602, 603, 193, 194, 604, 195,
+ 196, 605, 606, 607, 608, 609, 610, 611, 612, 613,
+ 614, 0, 615, 616, 197, 617, 198, 618, 619, 620,
+ 0, 621, 622, 623, 624, 625, 626, 627, 628, 629,
+ 630, 200, 631, 632, 633, 634, 0, 635, 636, 637,
+ 638, 639, 640, 641, 642, 643, 644, 645, 646, 647,
+ 0, 648, 649, 207, 650, 651, 652, 653, 654, 209,
+ 655, 656, 657, 658, 659, 660, 661, 0, 662, 0,
+ 663, 664, 665, 666, 667, 668, 669, 670, 214, 671,
+ 672, 216, 673, 674, 217, 675, 0, 676, 677, 678,
+ 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
+ 219, 689, 0, 690, 691, 0, 692, 221, 693, 694,
+ 695, 696, 697, 0, 698, 222, 223, 699, 0, 700,
+ 701, 224, 702, 225, 0, 703, 704, 705, 706, 707,
+ 708, 709, 710, 0, 0, 711, 712, 713, 714, 715,
+ 0, 0, 716, 717, 718, 719, 720, 0, 232, 0,
+ 721, 233, 722, 723, 724, 725, 0, 0, 726, 0,
+ 0, 727, 728, 729, 730, 731, 732, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 0, 733,
+ 734, 35, 430, 0, 0, 37, 0, 0, 39, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 0, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 129, 130, 131, 132, 0, 452,
+ 453, 454, 455, 456, 457, 458, 0, 0, 459, 460,
+ 0, 134, 461, 0, 462, 463, 464, 465, 138, 0,
+ 139, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 0, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 0, 0, 0, 482, 146, 0, 0,
+ 483, 484, 485, 486, 487, 0, 488, 149, 150, 489,
+ 0, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 504,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 158, 517, 518, 519, 520,
+ 160, 0, 521, 0, 522, 523, 524, 162, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 166, 0, 167, 533, 534, 0, 535, 536,
+ 0, 537, 538, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 0, 172, 0, 173, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 177, 178, 562, 179, 0, 563, 564, 565,
+ 0, 0, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 0, 577, 578, 0, 579, 580, 581,
+ 184, 185, 186, 582, 583, 584, 585, 586, 587, 588,
+ 187, 188, 589, 0, 590, 591, 190, 592, 0, 191,
+ 593, 192, 594, 595, 596, 0, 597, 598, 0, 0,
+ 599, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 196, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 197, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 200, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 209, 655, 656, 657, 658, 659, 660, 661, 0, 662,
+ 0, 663, 664, 665, 666, 667, 668, 669, 670, 214,
+ 671, 672, 216, 673, 674, 217, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 219, 689, 0, 690, 691, 0, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 222, 223, 0, 0,
+ 700, 701, 224, 702, 225, 0, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 0, 711, 712, 713, 714,
+ 715, 0, 0, 716, 717, 718, 719, 720, 0, 232,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 0, 727, 728, 729, 730, 731, 732, 235, 236,
+ 237, 238, 239, 240, 241, 242, 243, 244, 245, 35,
+ 733, 734, 0, 37, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 1345, 439,
+ 440, 441, 0, 0, 0, 0, 0, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, 128, 129, 130, 131, 132, 0, 452, 453, 454,
+ 455, 456, 457, 458, 0, 0, 459, 460, 0, 134,
+ 461, 0, 462, 463, 464, 465, 138, 0, 139, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 0,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 0, 0, 0, 482, 146, 0, 0, 483, 484,
+ 485, 486, 487, 0, 488, 149, 150, 489, 0, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 504, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 158, 517, 518, 519, 520, 160, 0,
+ 521, 0, 522, 523, 524, 162, 525, 0, 526, 0,
+ 527, 163, 0, 164, 528, 529, 530, 531, 0, 532,
+ 166, 0, 167, 533, 534, 0, 535, 536, 0, 537,
+ 538, 168, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 0, 172, 0, 173, 0, 554, 174, 175,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 177, 178, 562, 179, 0, 563, 564, 565, 0, 0,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 0, 577, 578, 0, 579, 580, 581, 184, 185,
+ 186, 582, 583, 584, 585, 586, 587, 588, 187, 188,
+ 589, 0, 590, 591, 190, 592, 0, 191, 593, 192,
+ 594, 595, 596, 0, 597, 598, 0, 0, 599, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 196,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 197, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 200, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 209, 655,
+ 656, 657, 658, 659, 660, 661, 0, 662, 0, 663,
+ 664, 665, 666, 667, 668, 669, 670, 214, 671, 672,
+ 216, 673, 674, 217, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 219,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 222, 223, 0, 0, 700, 701,
+ 224, 702, 225, 0, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 0, 711, 712, 713, 714, 715, 0,
+ 0, 716, 717, 718, 719, 720, 0, 232, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 236, 237, 238,
+ 239, 240, 241, 242, 243, 244, 245, 35, 733, 734,
+ 0, 37, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 1366, 439, 440, 441,
+ 0, 0, 0, 0, 0, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 128,
+ 129, 130, 131, 132, 0, 452, 453, 454, 455, 456,
+ 457, 458, 0, 0, 459, 460, 0, 134, 461, 0,
+ 462, 463, 464, 465, 138, 0, 139, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 0, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 0, 0, 482, 146, 0, 0, 483, 484, 485, 486,
+ 487, 0, 488, 149, 150, 489, 0, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 504, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 158, 517, 518, 519, 520, 160, 0, 521, 0,
+ 522, 523, 524, 162, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 166, 0,
+ 167, 533, 534, 0, 535, 536, 0, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 0, 172, 0, 173, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 177, 178,
+ 562, 179, 0, 563, 564, 565, 0, 0, 566, 567,
+ 568, 569, 1367, 571, 572, 573, 574, 575, 576, 0,
+ 577, 578, 0, 579, 580, 581, 184, 185, 186, 582,
+ 583, 584, 585, 586, 587, 588, 187, 188, 589, 0,
+ 590, 591, 190, 592, 0, 191, 593, 192, 594, 595,
+ 596, 0, 597, 598, 0, 0, 599, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 196, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 197, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 200, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 209, 655, 656, 657,
+ 658, 659, 660, 661, 0, 662, 0, 663, 664, 665,
+ 666, 667, 668, 669, 670, 214, 671, 672, 216, 673,
+ 674, 217, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 219, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 222, 223, 0, 0, 700, 701, 224, 702,
+ 225, 0, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 0, 711, 712, 713, 714, 715, 0, 0, 716,
+ 717, 718, 719, 720, 0, 232, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 236, 237, 238, 239, 240,
+ 241, 242, 243, 244, 245, 35, 733, 734, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 0, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 0, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 482, 146, 0, 0, 483, 484, 485, 486, 487, 0,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 0, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 0, 577, 578,
+ 0, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 190, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 0, 662, 0, 663, 664, 665, 666, 667,
+ 668, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 3386, 0, 716, 717, 718,
+ 719, 720, 0, 232, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 35, 733, 734, 0, 37, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 0, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 128, 129, 130, 131, 132,
+ 0, 452, 453, 454, 455, 456, 457, 458, 0, 0,
+ 459, 460, 0, 134, 461, 0, 462, 463, 464, 465,
+ 138, 0, 139, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 0, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 481, 0, 0, 0, 482, 146,
+ 0, 0, 483, 484, 485, 486, 487, 0, 488, 149,
+ 150, 489, 0, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 504, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 158, 517, 518,
+ 519, 520, 160, 0, 521, 0, 522, 523, 524, 162,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 166, 4421, 167, 533, 534, 0,
+ 535, 536, 0, 537, 538, 168, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 171, 0, 551, 552, 553, 0, 172, 0, 173,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 177, 178, 562, 179, 0, 563,
+ 564, 565, 0, 0, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 0, 577, 578, 0, 579,
+ 580, 581, 184, 185, 186, 582, 583, 584, 585, 586,
+ 587, 588, 187, 188, 589, 0, 590, 591, 190, 592,
+ 0, 191, 593, 192, 594, 595, 596, 0, 597, 598,
+ 0, 0, 599, 600, 601, 0, 0, 602, 603, 193,
+ 194, 604, 195, 196, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 197, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 200, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 652,
+ 653, 654, 209, 655, 656, 657, 658, 659, 660, 661,
+ 0, 662, 0, 663, 664, 665, 666, 667, 668, 669,
+ 670, 214, 671, 672, 216, 673, 674, 217, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 219, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 222, 223,
+ 0, 0, 700, 701, 224, 702, 225, 0, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 0, 711, 712,
+ 713, 714, 715, 0, 0, 716, 717, 718, 719, 720,
+ 0, 232, 0, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
+ 245, 35, 733, 734, 0, 37, 0, 0, 39, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 0, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 129, 130, 131, 132, 0, 452,
+ 453, 454, 455, 456, 457, 458, 0, 0, 459, 460,
+ 0, 134, 461, 0, 462, 463, 464, 465, 138, 0,
+ 139, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 0, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 0, 0, 0, 0, 146, 0, 0,
+ 0, 484, 485, 486, 487, 0, 488, 149, 150, 489,
+ 0, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 504,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 158, 517, 518, 519, 520,
+ 160, 2169, 521, 0, 522, 523, 524, 162, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 166, 0, 167, 533, 534, 0, 535, 536,
+ 0, 537, 538, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 0, 172, 0, 173, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 177, 178, 562, 179, 0, 563, 564, 565,
+ 0, 0, 566, 567, 568, 569, 570, 571, 572, 573,
+ 574, 575, 576, 0, 577, 578, 0, 579, 580, 581,
+ 184, 185, 186, 582, 583, 584, 585, 586, 587, 588,
+ 187, 188, 589, 0, 590, 591, 190, 592, 0, 191,
+ 593, 192, 594, 595, 596, 0, 597, 598, 2170, 0,
+ 599, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 196, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 197, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 200, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 209, 655, 656, 657, 658, 659, 660, 661, 0, 662,
+ 0, 663, 664, 665, 666, 667, 0, 669, 670, 214,
+ 671, 672, 216, 673, 674, 217, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 219, 689, 0, 690, 691, 0, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 222, 223, 0, 0,
+ 700, 701, 224, 702, 225, 2171, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 0, 711, 712, 713, 714,
+ 715, 0, 0, 716, 717, 718, 719, 720, 0, 232,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 0, 727, 728, 729, 730, 731, 732, 235, 236,
+ 237, 238, 239, 240, 241, 242, 243, 244, 245, 35,
+ 733, 734, 0, 37, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 0, 0, 0, 0, 0, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, 128, 129, 130, 131, 132, 0, 452, 453, 454,
+ 455, 456, 457, 458, 0, 0, 459, 460, 0, 134,
+ 461, 0, 462, 463, 464, 465, 138, 0, 139, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 0,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 0, 0, 0, 482, 146, 0, 0, 483, 484,
+ 485, 486, 487, 0, 488, 149, 150, 489, 0, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 504, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 158, 517, 518, 519, 520, 160, 0,
+ 521, 0, 522, 523, 524, 162, 525, 0, 526, 0,
+ 527, 163, 0, 164, 528, 529, 530, 531, 0, 532,
+ 166, 0, 167, 533, 534, 0, 535, 536, 0, 537,
+ 538, 168, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 0, 172, 0, 173, 0, 554, 174, 175,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 177, 178, 562, 179, 0, 563, 564, 565, 0, 0,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 0, 577, 578, 0, 579, 580, 581, 184, 185,
+ 186, 582, 583, 584, 585, 586, 587, 588, 187, 188,
+ 589, 0, 590, 591, 190, 592, 0, 191, 593, 192,
+ 594, 595, 596, 0, 597, 598, 0, 0, 599, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 196,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 197, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 200, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 209, 655,
+ 656, 657, 658, 659, 660, 661, 0, 662, 0, 663,
+ 664, 665, 666, 667, 668, 669, 670, 214, 671, 672,
+ 216, 673, 674, 217, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 219,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 222, 223, 0, 0, 700, 701,
+ 224, 702, 225, 0, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 0, 711, 712, 713, 714, 715, 0,
+ 0, 716, 717, 718, 719, 720, 0, 232, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 236, 237, 238,
+ 239, 240, 241, 242, 243, 244, 245, 35, 733, 734,
+ 0, 37, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 0, 439, 440, 441,
+ 0, 0, 0, 0, 0, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 128,
+ 129, 130, 131, 132, 0, 452, 453, 454, 455, 456,
+ 457, 458, 0, 0, 459, 460, 0, 134, 461, 0,
+ 462, 463, 464, 465, 138, 0, 139, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 0, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 0, 0, 482, 146, 0, 0, 483, 484, 485, 486,
+ 487, 0, 488, 149, 150, 489, 0, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 504, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 158, 517, 518, 519, 520, 160, 0, 521, 0,
+ 522, 523, 524, 162, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 166, 0,
+ 167, 533, 534, 0, 535, 536, 0, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 0, 172, 0, 173, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 177, 178,
+ 562, 179, 0, 563, 564, 565, 0, 0, 566, 567,
+ 568, 569, 1459, 571, 572, 573, 574, 575, 576, 0,
+ 577, 578, 0, 579, 580, 581, 184, 185, 186, 582,
+ 583, 584, 585, 586, 587, 588, 187, 188, 589, 0,
+ 590, 591, 190, 592, 0, 191, 593, 192, 594, 595,
+ 596, 0, 597, 598, 0, 0, 599, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 196, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 197, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 200, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 209, 655, 656, 657,
+ 658, 659, 660, 661, 0, 662, 0, 663, 664, 665,
+ 666, 667, 668, 669, 670, 214, 671, 672, 216, 673,
+ 674, 217, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 219, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 222, 223, 0, 0, 700, 701, 224, 702,
+ 225, 0, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 0, 711, 712, 713, 714, 715, 0, 0, 716,
+ 717, 718, 719, 720, 0, 232, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 236, 237, 238, 239, 240,
+ 241, 242, 243, 244, 245, 35, 733, 734, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 0, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 0, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 482, 146, 0, 0, 483, 484, 485, 486, 487, 0,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 0, 537, 1547, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 0, 577, 578,
+ 0, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 190, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 0, 662, 0, 663, 664, 665, 666, 667,
+ 668, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 0, 232, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 35, 733, 734, 0, 37, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 0, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 128, 129, 130, 131, 132,
+ 0, 452, 453, 454, 455, 456, 457, 458, 0, 0,
+ 459, 460, 0, 134, 461, 0, 462, 463, 464, 465,
+ 138, 0, 139, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 0, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 481, 0, 0, 0, 482, 146,
+ 0, 0, 483, 484, 485, 486, 487, 0, 488, 149,
+ 150, 489, 0, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 504, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 158, 517, 518,
+ 519, 520, 160, 0, 521, 0, 522, 523, 524, 162,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 166, 0, 167, 533, 534, 0,
+ 535, 536, 0, 537, 1560, 168, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 171, 0, 551, 552, 553, 0, 172, 0, 173,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 177, 178, 562, 179, 0, 563,
+ 564, 565, 0, 0, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 0, 577, 578, 0, 579,
+ 580, 581, 184, 185, 186, 582, 583, 584, 585, 586,
+ 587, 588, 187, 188, 589, 0, 590, 591, 190, 592,
+ 0, 191, 593, 192, 594, 595, 596, 0, 597, 598,
+ 0, 0, 599, 600, 601, 0, 0, 602, 603, 193,
+ 194, 604, 195, 196, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 197, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 200, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 652,
+ 653, 654, 209, 655, 656, 657, 658, 659, 660, 661,
+ 0, 662, 0, 663, 664, 665, 666, 667, 668, 669,
+ 670, 214, 671, 672, 216, 673, 674, 217, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 219, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 222, 223,
+ 0, 0, 700, 701, 224, 702, 225, 0, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 0, 711, 712,
+ 713, 714, 715, 0, 0, 716, 717, 718, 719, 720,
+ 0, 232, 0, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
+ 245, 35, 733, 734, 0, 37, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 431, 432, 433, 434, 435, 436, 437, 438,
+ 0, 439, 440, 441, 0, 0, 0, 0, 0, 0,
+ 0, 442, 443, 444, 0, 445, 446, 447, 448, 126,
+ 449, 450, 451, 128, 129, 130, 131, 132, 0, 452,
+ 453, 454, 455, 456, 457, 458, 0, 0, 459, 460,
+ 0, 134, 461, 0, 462, 463, 464, 465, 138, 0,
+ 139, 0, 466, 467, 468, 469, 470, 471, 142, 472,
+ 473, 0, 0, 474, 475, 476, 477, 478, 479, 0,
+ 145, 480, 481, 0, 0, 0, 482, 146, 0, 0,
+ 483, 484, 485, 486, 487, 0, 488, 149, 150, 489,
+ 0, 490, 0, 491, 492, 493, 494, 495, 496, 497,
+ 0, 498, 499, 500, 501, 0, 0, 502, 503, 504,
+ 505, 506, 0, 507, 508, 509, 0, 510, 511, 512,
+ 0, 513, 514, 515, 516, 158, 517, 518, 519, 520,
+ 160, 0, 521, 0, 522, 523, 524, 162, 525, 0,
+ 526, 0, 527, 163, 0, 164, 528, 529, 530, 531,
+ 0, 532, 166, 0, 167, 533, 534, 0, 535, 536,
+ 0, 537, 1572, 168, 539, 540, 541, 542, 0, 543,
+ 544, 545, 546, 547, 548, 549, 0, 550, 170, 171,
+ 0, 551, 552, 553, 0, 172, 0, 173, 0, 554,
+ 174, 175, 555, 176, 556, 557, 558, 559, 560, 0,
+ 0, 561, 177, 178, 562, 179, 0, 563, 564, 565,
+ 0, 0, 566, 567, 568, 569, 1573, 571, 572, 573,
+ 574, 575, 576, 0, 577, 578, 0, 579, 580, 581,
+ 184, 185, 186, 582, 583, 584, 585, 586, 587, 588,
+ 187, 188, 589, 0, 590, 591, 190, 592, 0, 191,
+ 593, 192, 594, 595, 596, 0, 597, 598, 0, 0,
+ 599, 600, 601, 0, 0, 602, 603, 193, 194, 604,
+ 195, 196, 605, 606, 607, 608, 609, 610, 611, 612,
+ 613, 614, 0, 615, 616, 197, 617, 198, 618, 619,
+ 620, 0, 621, 622, 623, 624, 625, 626, 627, 628,
+ 629, 630, 200, 631, 632, 633, 634, 0, 635, 636,
+ 637, 638, 639, 640, 641, 642, 643, 644, 645, 646,
+ 647, 0, 648, 649, 207, 650, 651, 652, 653, 654,
+ 209, 655, 656, 657, 658, 659, 660, 661, 0, 662,
+ 0, 663, 664, 665, 666, 667, 668, 669, 670, 214,
+ 671, 672, 216, 673, 674, 217, 675, 0, 676, 677,
+ 678, 679, 680, 681, 682, 683, 684, 685, 686, 687,
+ 688, 219, 689, 0, 690, 691, 0, 692, 221, 693,
+ 694, 695, 696, 697, 0, 698, 222, 223, 0, 0,
+ 700, 701, 224, 702, 225, 0, 703, 704, 705, 706,
+ 707, 708, 709, 710, 0, 0, 711, 712, 713, 714,
+ 715, 0, 0, 716, 717, 718, 719, 720, 0, 232,
+ 0, 721, 233, 722, 723, 724, 725, 0, 0, 726,
+ 0, 0, 727, 728, 729, 730, 731, 732, 235, 236,
+ 237, 238, 239, 240, 241, 242, 243, 244, 245, 35,
+ 733, 734, 0, 37, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 431, 432, 433, 434, 435, 436, 437, 438, 0, 439,
+ 440, 441, 123, 124, 0, 0, 0, 0, 0, 442,
+ 443, 444, 0, 445, 446, 447, 448, 126, 449, 450,
+ 451, 128, 129, 130, 131, 132, 0, 452, 453, 454,
+ 455, 456, 457, 458, 0, 0, 459, 460, 0, 134,
+ 461, 0, 462, 463, 464, 465, 138, 0, 139, 0,
+ 466, 467, 468, 469, 470, 471, 142, 472, 473, 0,
+ 0, 474, 475, 476, 477, 478, 479, 0, 145, 480,
+ 481, 0, 0, 0, 0, 146, 0, 0, 0, 484,
+ 485, 486, 487, 0, 488, 149, 150, 489, 0, 490,
+ 0, 491, 492, 493, 494, 495, 496, 497, 0, 498,
+ 499, 500, 501, 0, 0, 502, 503, 504, 505, 506,
+ 0, 507, 508, 509, 0, 510, 511, 512, 0, 513,
+ 514, 515, 516, 158, 517, 518, 519, 520, 160, 0,
+ 521, 0, 522, 523, 524, 162, 525, 0, 526, 0,
+ 527, 163, 0, 164, 528, 529, 530, 531, 0, 532,
+ 166, 0, 167, 533, 534, 0, 535, 536, 0, 537,
+ 538, 168, 539, 540, 541, 542, 0, 543, 544, 545,
+ 546, 547, 548, 549, 0, 550, 170, 171, 0, 551,
+ 552, 553, 0, 172, 0, 173, 0, 554, 174, 175,
+ 555, 176, 556, 557, 558, 559, 560, 0, 0, 561,
+ 177, 178, 562, 179, 0, 563, 564, 565, 0, 0,
+ 566, 567, 568, 569, 570, 571, 572, 573, 574, 575,
+ 576, 0, 577, 578, 0, 579, 580, 581, 184, 185,
+ 186, 582, 583, 584, 585, 586, 587, 588, 187, 188,
+ 589, 0, 590, 591, 190, 592, 0, 191, 593, 192,
+ 594, 595, 596, 0, 597, 598, 0, 0, 599, 600,
+ 601, 0, 0, 602, 603, 193, 194, 604, 195, 196,
+ 605, 606, 607, 608, 609, 610, 611, 612, 613, 614,
+ 0, 615, 616, 197, 617, 198, 618, 619, 620, 0,
+ 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
+ 200, 631, 632, 633, 634, 0, 635, 636, 637, 638,
+ 639, 640, 641, 642, 643, 644, 645, 646, 647, 0,
+ 648, 649, 207, 650, 651, 652, 653, 654, 209, 655,
+ 656, 657, 658, 659, 660, 661, 0, 662, 0, 663,
+ 664, 665, 666, 667, 0, 669, 670, 214, 671, 672,
+ 216, 673, 674, 217, 675, 0, 676, 677, 678, 679,
+ 680, 681, 682, 683, 684, 685, 686, 687, 688, 219,
+ 689, 0, 690, 691, 0, 692, 221, 693, 694, 695,
+ 696, 697, 0, 698, 222, 223, 0, 0, 700, 701,
+ 224, 702, 225, 0, 703, 704, 705, 706, 707, 708,
+ 709, 710, 0, 0, 711, 712, 713, 714, 715, 0,
+ 0, 716, 717, 718, 719, 720, 0, 232, 0, 721,
+ 233, 722, 723, 724, 725, 0, 0, 726, 0, 0,
+ 727, 728, 729, 730, 731, 732, 235, 236, 237, 238,
+ 239, 240, 241, 242, 243, 244, 245, 35, 733, 734,
+ 0, 37, 0, 0, 39, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 431, 432,
+ 433, 434, 435, 436, 437, 438, 0, 439, 440, 441,
+ 0, 0, 0, 0, 0, 0, 0, 442, 443, 444,
+ 0, 445, 446, 447, 448, 126, 449, 450, 451, 128,
+ 129, 130, 131, 132, 0, 452, 453, 454, 455, 456,
+ 457, 458, 0, 0, 459, 460, 0, 134, 461, 0,
+ 462, 463, 464, 465, 138, 0, 139, 0, 466, 467,
+ 468, 469, 470, 471, 142, 472, 473, 0, 0, 474,
+ 475, 476, 477, 478, 479, 0, 145, 480, 481, 0,
+ 0, 0, 0, 146, 0, 0, 0, 484, 485, 486,
+ 487, 0, 488, 149, 150, 489, 2972, 490, 0, 491,
+ 492, 493, 494, 495, 496, 497, 0, 498, 499, 500,
+ 501, 0, 0, 502, 503, 504, 505, 506, 0, 507,
+ 508, 509, 0, 510, 511, 512, 0, 513, 514, 515,
+ 516, 158, 517, 518, 519, 520, 160, 0, 521, 0,
+ 522, 523, 524, 162, 525, 0, 526, 0, 527, 163,
+ 0, 164, 528, 529, 530, 531, 0, 532, 166, 0,
+ 167, 533, 534, 0, 535, 536, 0, 537, 538, 168,
+ 539, 540, 541, 542, 0, 543, 544, 545, 546, 547,
+ 548, 549, 0, 550, 170, 171, 0, 551, 552, 553,
+ 0, 172, 0, 173, 0, 554, 174, 175, 555, 176,
+ 556, 557, 558, 559, 560, 0, 0, 561, 177, 178,
+ 562, 179, 0, 563, 564, 565, 0, 0, 566, 567,
+ 568, 569, 570, 571, 572, 573, 574, 575, 576, 0,
+ 577, 578, 0, 579, 580, 581, 184, 185, 186, 582,
+ 583, 584, 585, 586, 587, 588, 187, 188, 589, 0,
+ 590, 591, 190, 592, 0, 191, 593, 192, 594, 595,
+ 596, 0, 597, 598, 0, 0, 599, 600, 601, 0,
+ 0, 602, 603, 193, 194, 604, 195, 196, 605, 606,
+ 607, 608, 609, 610, 611, 612, 613, 614, 0, 615,
+ 616, 197, 617, 198, 618, 619, 620, 0, 621, 622,
+ 623, 624, 625, 626, 627, 628, 629, 630, 200, 631,
+ 632, 633, 634, 0, 635, 636, 637, 638, 639, 640,
+ 641, 642, 643, 644, 645, 646, 647, 0, 648, 649,
+ 207, 650, 651, 652, 653, 654, 209, 655, 656, 657,
+ 658, 659, 660, 661, 0, 662, 0, 663, 664, 665,
+ 666, 667, 0, 669, 670, 214, 671, 672, 216, 673,
+ 674, 217, 675, 0, 676, 677, 678, 679, 680, 681,
+ 682, 683, 684, 685, 686, 687, 688, 219, 689, 0,
+ 690, 691, 0, 692, 221, 693, 694, 695, 696, 697,
+ 0, 698, 222, 223, 0, 0, 700, 701, 224, 702,
+ 225, 0, 703, 704, 705, 706, 707, 708, 709, 710,
+ 0, 0, 711, 712, 713, 714, 715, 0, 0, 716,
+ 717, 718, 719, 720, 0, 232, 0, 721, 233, 722,
+ 723, 724, 725, 0, 0, 726, 0, 0, 727, 728,
+ 729, 730, 731, 732, 235, 236, 237, 238, 239, 240,
+ 241, 242, 243, 244, 245, 35, 733, 734, 0, 37,
+ 0, 0, 39, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 431, 432, 433, 434,
+ 435, 436, 437, 438, 0, 439, 440, 441, 0, 0,
+ 0, 0, 0, 0, 0, 442, 443, 444, 0, 445,
+ 446, 447, 448, 126, 449, 450, 451, 128, 129, 130,
+ 131, 132, 0, 452, 453, 454, 455, 456, 457, 458,
+ 0, 0, 459, 460, 0, 134, 461, 0, 462, 463,
+ 464, 465, 138, 0, 139, 0, 466, 467, 468, 469,
+ 470, 471, 142, 472, 473, 0, 0, 474, 475, 476,
+ 477, 478, 479, 0, 145, 480, 481, 0, 0, 0,
+ 0, 146, 0, 0, 0, 484, 485, 486, 487, 0,
+ 488, 149, 150, 489, 0, 490, 0, 491, 492, 493,
+ 494, 495, 496, 497, 0, 498, 499, 500, 501, 0,
+ 0, 502, 503, 504, 505, 506, 0, 507, 508, 509,
+ 0, 510, 511, 512, 0, 513, 514, 515, 516, 158,
+ 517, 518, 519, 520, 160, 0, 521, 0, 522, 523,
+ 524, 162, 525, 0, 526, 0, 527, 163, 0, 164,
+ 528, 529, 530, 531, 0, 532, 166, 0, 167, 533,
+ 534, 0, 535, 536, 0, 537, 538, 168, 539, 540,
+ 541, 542, 0, 543, 544, 545, 546, 547, 548, 549,
+ 0, 550, 170, 171, 0, 551, 552, 553, 0, 172,
+ 0, 173, 0, 554, 174, 175, 555, 176, 556, 557,
+ 558, 559, 560, 0, 0, 561, 177, 178, 562, 179,
+ 0, 563, 564, 565, 0, 0, 566, 567, 568, 569,
+ 570, 571, 572, 573, 574, 575, 576, 0, 577, 578,
+ 0, 579, 580, 581, 184, 185, 186, 582, 583, 584,
+ 585, 586, 587, 588, 187, 188, 589, 0, 590, 591,
+ 190, 592, 0, 191, 593, 192, 594, 595, 596, 0,
+ 597, 598, 0, 0, 599, 600, 601, 0, 0, 602,
+ 603, 193, 194, 604, 195, 196, 605, 606, 607, 608,
+ 609, 610, 611, 612, 613, 614, 0, 615, 616, 197,
+ 617, 198, 618, 619, 620, 0, 621, 622, 623, 624,
+ 625, 626, 627, 628, 629, 630, 200, 631, 632, 633,
+ 634, 0, 635, 636, 637, 638, 639, 640, 641, 642,
+ 643, 644, 645, 646, 647, 0, 648, 649, 207, 650,
+ 651, 652, 653, 654, 209, 655, 656, 657, 658, 659,
+ 660, 661, 0, 662, 0, 663, 664, 665, 666, 667,
+ 0, 669, 670, 214, 671, 672, 216, 673, 674, 217,
+ 675, 0, 676, 677, 678, 679, 680, 681, 682, 683,
+ 684, 685, 686, 687, 688, 219, 689, 0, 690, 691,
+ 0, 692, 221, 693, 694, 695, 696, 697, 0, 698,
+ 222, 223, 0, 0, 700, 701, 224, 702, 225, 0,
+ 703, 704, 705, 706, 707, 708, 709, 710, 0, 0,
+ 711, 712, 713, 714, 715, 0, 0, 716, 717, 718,
+ 719, 720, 0, 232, 0, 721, 233, 722, 723, 724,
+ 725, 0, 0, 726, 0, 0, 727, 728, 729, 730,
+ 731, 732, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 35, 733, 734, 0, 37, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 431, 432, 433, 434, 435, 436,
+ 437, 438, 0, 439, 440, 441, 0, 0, 0, 0,
+ 0, 0, 0, 442, 443, 444, 0, 445, 446, 447,
+ 448, 126, 449, 450, 451, 128, 129, 130, 131, 132,
+ 0, 452, 453, 454, 455, 456, 457, 458, 0, 0,
+ 459, 460, 0, 134, 461, 0, 462, 463, 464, 465,
+ 138, 0, 139, 0, 466, 467, 468, 469, 470, 471,
+ 142, 472, 473, 0, 0, 474, 475, 476, 477, 478,
+ 479, 0, 145, 480, 481, 0, 0, 0, 0, 146,
+ 0, 0, 0, 484, 485, 486, 487, 0, 488, 149,
+ 150, 489, 0, 490, 0, 491, 492, 493, 494, 495,
+ 496, 497, 0, 498, 499, 500, 501, 0, 0, 502,
+ 503, 504, 505, 506, 0, 507, 508, 509, 0, 510,
+ 511, 512, 0, 513, 514, 515, 516, 158, 517, 518,
+ 519, 520, 160, 0, 521, 0, 522, 523, 524, 162,
+ 525, 0, 526, 0, 527, 163, 0, 164, 528, 529,
+ 530, 531, 0, 532, 166, 0, 167, 533, 534, 0,
+ 535, 536, 0, 537, 538, 168, 539, 540, 541, 542,
+ 0, 543, 544, 545, 546, 547, 548, 549, 0, 550,
+ 170, 171, 0, 551, 552, 553, 0, 172, 0, 173,
+ 0, 554, 174, 175, 555, 176, 556, 557, 558, 559,
+ 560, 0, 0, 561, 177, 178, 562, 179, 0, 563,
+ 564, 565, 0, 0, 566, 567, 568, 569, 570, 571,
+ 572, 573, 574, 575, 576, 0, 577, 578, 0, 579,
+ 580, 581, 184, 185, 186, 582, 583, 584, 585, 586,
+ 587, 588, 187, 188, 589, 0, 590, 591, 190, 592,
+ 0, 191, 593, 192, 594, 595, 596, 0, 597, 598,
+ 0, 0, 599, 600, 601, 0, 0, 602, 603, 193,
+ 194, 604, 195, 196, 605, 606, 607, 608, 609, 610,
+ 611, 612, 613, 614, 0, 615, 616, 197, 617, 198,
+ 618, 619, 620, 0, 621, 622, 623, 624, 625, 626,
+ 627, 628, 629, 630, 200, 631, 632, 633, 634, 0,
+ 635, 636, 637, 638, 639, 640, 641, 642, 643, 644,
+ 645, 646, 647, 0, 648, 649, 207, 650, 651, 652,
+ 653, 654, 209, 655, 656, 657, 658, 659, 660, 661,
+ 0, 662, 0, 663, 664, 665, 666, 667, 0, 669,
+ 670, 214, 671, 672, 216, 673, 674, 217, 675, 0,
+ 676, 677, 678, 679, 680, 681, 682, 683, 684, 685,
+ 686, 687, 688, 219, 689, 0, 690, 691, 0, 692,
+ 221, 693, 694, 695, 696, 697, 0, 698, 222, 223,
+ 0, 0, 700, 701, 224, 702, 225, 0, 703, 704,
+ 705, 706, 707, 708, 709, 710, 0, 0, 711, 712,
+ 713, 714, 715, 0, 0, 716, 717, 718, 719, 720,
+ 0, 232, 0, 721, 233, 722, 723, 724, 725, 0,
+ 0, 726, 0, 0, 727, 728, 729, 730, 731, 732,
+ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
+ 245, 0, 733, 734
+};
+
+static const yytype_int16 yycheck[] =
+{
+ 2, 73, 73, 73, 73, 918, 73, 73, 247, 110,
+ 73, 73, 2, 926, 73, 148, 929, 73, 151, 73,
+ 79, 73, 73, 220, 73, 73, 73, 73, 73, 73,
+ 110, 1389, 73, 1381, 982, 1352, 393, 923, 393, 1229,
+ 206, 376, 1178, 161, 1173, 1195, 88, 1223, 1210, 1225,
+ 133, 110, 1630, 1050, 226, 156, 1550, 2023, 1115, 1116,
+ 1117, 1385, 2084, 923, 1121, 183, 199, 1064, 1301, 1932,
+ 1961, 1517, 1353, 1027, 1201, 3165, 156, 1143, 2007, 1379,
+ 1202, 83, 2364, 125, 1666, 73, 3455, 159, 1185, 90,
+ 795, 79, 1505, 1506, 2000, 1454, 159, 156, 1520, 100,
+ 909, 3520, 1515, 3822, 205, 147, 148, 3663, 4021, 151,
+ 2012, 2242, 213, 1076, 215, 157, 2007, 2430, 1369, 4101,
+ 1535, 3876, 982, 1352, 4297, 110, 3640, 228, 110, 165,
+ 1068, 2961, 1361, 2153, 4324, 136, 3994, 2000, 3127, 3128,
+ 1522, 3482, 1371, 919, 3884, 147, 2447, 4681, 228, 4346,
+ 151, 153, 928, 2119, 2120, 2049, 2050, 199, 4047, 2053,
+ 4049, 1277, 1277, 1545, 125, 1277, 942, 1318, 4624, 228,
+ 206, 156, 3374, 1555, 156, 796, 1258, 1559, 1429, 181,
+ 122, 1563, 1433, 1565, 1847, 1045, 1313, 1438, 3467, 1571,
+ 963, 1443, 1343, 2299, 378, 1577, 1447, 1348, 1580, 4247,
+ 363, 378, 3886, 1079, 980, 1063, 1458, 1990, 1938, 1460,
+ 986, 2113, 1874, 1875, 1876, 1048, 83, 4957, 1051, 2350,
+ 4677, 205, 998, 1106, 1869, 1870, 961, 1181, 4973, 4969,
+ 4918, 215, 5665, 4956, 4759, 4585, 213, 1319, 2140, 246,
+ 3850, 2955, 5793, 228, 5627, 3746, 228, 4961, 1499, 3002,
+ 5494, 161, 2, 3041, 1503, 1504, 5444, 3043, 5282, 1613,
+ 1588, 3773, 3919, 2046, 4311, 1514, 1393, 3020, 5708, 3352,
+ 4379, 5249, 4960, 183, 5643, 1226, 5645, 5829, 4646, 1226,
+ 2063, 5823, 1695, 1696, 5841, 1272, 1273, 4584, 20, 4586,
+ 29, 76, 1027, 1071, 161, 83, 13, 76, 76, 4724,
+ 3482, 9, 1715, 1725, 1537, 5493, 1011, 1389, 1310, 5115,
+ 5750, 6065, 384, 384, 384, 384, 183, 384, 384, 83,
+ 107, 384, 384, 76, 1973, 76, 123, 2221, 384, 76,
+ 384, 76, 384, 384, 393, 384, 384, 384, 384, 384,
+ 384, 1343, 76, 384, 163, 1080, 1348, 6048, 94, 92,
+ 116, 85, 86, 70, 70, 13, 76, 903, 75, 76,
+ 116, 78, 79, 190, 81, 76, 1423, 76, 13, 428,
+ 76, 1096, 76, 104, 76, 1100, 1101, 1102, 76, 76,
+ 3463, 85, 86, 85, 86, 1110, 188, 429, 76, 3890,
+ 76, 1274, 1275, 76, 132, 215, 132, 85, 86, 132,
+ 237, 1467, 188, 188, 5502, 393, 1141, 112, 79, 243,
+ 190, 161, 70, 5757, 5758, 70, 3420, 266, 3422, 3423,
+ 75, 76, 101, 3427, 3428, 3429, 81, 3431, 3432, 3433,
+ 286, 120, 70, 183, 1596, 1684, 1685, 75, 132, 154,
+ 428, 249, 1952, 81, 2469, 254, 1181, 1597, 5064, 5065,
+ 5066, 4976, 5068, 5069, 5070, 5071, 5072, 242, 76, 83,
+ 249, 1710, 208, 290, 160, 5489, 70, 85, 86, 70,
+ 1175, 75, 76, 1208, 78, 79, 83, 81, 1837, 5782,
+ 81, 1444, 5949, 149, 132, 1220, 221, 1400, 168, 270,
+ 244, 1404, 221, 1406, 160, 1819, 160, 149, 160, 396,
+ 83, 245, 292, 99, 112, 132, 1806, 114, 6262, 69,
+ 237, 377, 348, 73, 341, 6067, 76, 1403, 357, 83,
+ 370, 180, 244, 5963, 188, 4950, 183, 70, 337, 69,
+ 70, 114, 75, 73, 403, 75, 76, 149, 81, 345,
+ 147, 81, 98, 1403, 388, 5914, 98, 337, 905, 105,
+ 905, 6252, 192, 132, 193, 149, 486, 242, 446, 3310,
+ 1557, 94, 108, 243, 147, 156, 160, 100, 370, 6616,
+ 313, 83, 399, 149, 83, 132, 510, 98, 398, 520,
+ 526, 372, 1744, 473, 105, 1394, 5830, 98, 1654, 204,
+ 49, 242, 181, 356, 105, 149, 276, 416, 361, 242,
+ 560, 258, 114, 147, 358, 114, 2224, 0, 67, 92,
+ 149, 291, 572, 149, 141, 748, 749, 1767, 1745, 509,
+ 411, 301, 242, 183, 2070, 242, 2244, 573, 187, 570,
+ 560, 1781, 6679, 160, 3816, 147, 570, 228, 147, 3390,
+ 1637, 280, 572, 242, 488, 1772, 452, 287, 188, 329,
+ 394, 203, 198, 522, 1389, 6409, 1653, 699, 448, 318,
+ 5790, 1811, 1812, 322, 321, 280, 516, 324, 69, 210,
+ 1667, 393, 73, 570, 510, 208, 356, 341, 2002, 417,
+ 319, 417, 570, 427, 417, 281, 413, 242, 532, 432,
+ 529, 195, 219, 474, 3876, 2205, 440, 699, 258, 445,
+ 1862, 486, 3884, 6170, 570, 514, 748, 749, 6011, 6261,
+ 464, 4759, 239, 448, 516, 193, 572, 1671, 508, 448,
+ 486, 181, 1804, 417, 573, 1608, 1602, 1809, 1810, 418,
+ 1613, 475, 512, 570, 477, 414, 570, 4785, 221, 456,
+ 937, 519, 422, 5483, 6498, 285, 573, 1976, 1294, 515,
+ 570, 92, 242, 795, 573, 486, 4929, 428, 159, 515,
+ 132, 321, 508, 506, 324, 573, 471, 307, 570, 417,
+ 92, 4684, 133, 570, 560, 560, 462, 463, 510, 436,
+ 36, 98, 38, 570, 573, 500, 5592, 572, 531, 568,
+ 417, 570, 570, 572, 6495, 491, 2445, 4970, 456, 515,
+ 901, 2053, 566, 2151, 2152, 2034, 2469, 515, 1586, 2090,
+ 4792, 456, 213, 5163, 6058, 2478, 4798, 570, 2396, 570,
+ 486, 901, 531, 570, 486, 570, 6580, 570, 2079, 568,
+ 510, 2082, 564, 531, 486, 573, 570, 573, 417, 4579,
+ 573, 1080, 901, 552, 561, 562, 905, 1801, 6400, 2149,
+ 570, 2103, 2104, 6197, 552, 5223, 6413, 6399, 2352, 570,
+ 417, 570, 389, 471, 570, 5162, 570, 5164, 570, 508,
+ 242, 272, 570, 570, 486, 6629, 436, 6428, 1603, 573,
+ 1013, 1606, 570, 2034, 1609, 474, 1611, 570, 573, 1614,
+ 547, 1829, 486, 1618, 1229, 967, 1978, 967, 967, 455,
+ 967, 967, 1889, 2316, 1855, 6345, 1988, 562, 1855, 2403,
+ 486, 5020, 5021, 5022, 5023, 5024, 901, 905, 6358, 901,
+ 1083, 2415, 573, 561, 562, 573, 967, 570, 4976, 488,
+ 1127, 4445, 486, 3922, 455, 3924, 1671, 92, 6307, 563,
+ 564, 565, 566, 2325, 455, 428, 573, 486, 6500, 5565,
+ 486, 2333, 570, 573, 101, 98, 573, 561, 562, 566,
+ 561, 562, 964, 5941, 3070, 448, 4879, 4479, 2158, 1011,
+ 2222, 1013, 313, 532, 573, 1093, 503, 1095, 379, 1097,
+ 563, 564, 565, 566, 525, 1103, 529, 547, 5035, 2071,
+ 193, 313, 2074, 2075, 573, 3825, 1998, 561, 562, 563,
+ 564, 565, 566, 4282, 3110, 1202, 510, 1079, 3114, 552,
+ 1128, 1129, 4669, 6257, 474, 570, 573, 259, 561, 562,
+ 4878, 561, 562, 2377, 568, 1027, 1028, 6579, 572, 2383,
+ 508, 6471, 1074, 2361, 1218, 132, 1078, 1234, 6168, 6063,
+ 141, 1218, 92, 6173, 6174, 2047, 2295, 2296, 286, 181,
+ 193, 6239, 561, 562, 563, 564, 565, 566, 4141, 4142,
+ 432, 157, 2064, 4146, 381, 182, 1801, 3855, 6256, 1071,
+ 3856, 254, 222, 92, 1809, 1810, 1077, 280, 1179, 2494,
+ 570, 1071, 1183, 242, 188, 341, 3839, 28, 76, 237,
+ 242, 432, 76, 2041, 1095, 286, 1097, 242, 94, 94,
+ 501, 24, 286, 2185, 200, 181, 1107, 3996, 509, 356,
+ 432, 512, 1309, 357, 266, 6666, 286, 357, 219, 192,
+ 254, 266, 432, 440, 286, 76, 2288, 1128, 1129, 132,
+ 1132, 919, 5820, 1175, 286, 1177, 477, 280, 239, 92,
+ 928, 104, 167, 4644, 1203, 157, 193, 5005, 193, 521,
+ 5684, 76, 6332, 270, 942, 477, 6539, 6401, 313, 204,
+ 242, 478, 6260, 480, 1166, 506, 94, 2491, 486, 137,
+ 428, 92, 100, 3887, 1176, 4785, 145, 411, 1180, 1181,
+ 1182, 2041, 193, 242, 506, 1095, 4941, 1097, 200, 76,
+ 531, 404, 980, 242, 2251, 94, 4279, 156, 986, 5724,
+ 1973, 83, 1179, 337, 1211, 372, 1183, 266, 96, 531,
+ 998, 157, 208, 208, 287, 1203, 1177, 2367, 1128, 1129,
+ 529, 4225, 6655, 248, 94, 2047, 1093, 286, 1095, 570,
+ 1097, 119, 1303, 280, 92, 438, 1103, 24, 80, 13,
+ 337, 83, 2064, 552, 411, 87, 88, 89, 570, 362,
+ 508, 286, 486, 92, 200, 573, 1357, 1358, 4247, 222,
+ 570, 1128, 1129, 313, 3127, 147, 370, 414, 1258, 280,
+ 1272, 1273, 510, 6706, 233, 1277, 2412, 2413, 5628, 375,
+ 208, 428, 1383, 430, 2446, 2447, 94, 1277, 389, 529,
+ 534, 2453, 100, 92, 313, 438, 3198, 2459, 2460, 2461,
+ 3229, 5491, 515, 1383, 5477, 508, 294, 286, 2470, 208,
+ 362, 337, 6410, 356, 2476, 432, 6030, 6057, 5515, 510,
+ 417, 1071, 477, 570, 1383, 2322, 510, 486, 570, 1319,
+ 5243, 514, 6077, 6056, 438, 6075, 574, 278, 208, 2336,
+ 4681, 6029, 474, 1093, 491, 1095, 6060, 1097, 445, 141,
+ 4339, 506, 2349, 1103, 1104, 1105, 473, 474, 510, 282,
+ 313, 2488, 346, 375, 360, 508, 442, 4256, 3031, 337,
+ 474, 6059, 3274, 1357, 1358, 525, 531, 372, 1128, 1129,
+ 514, 529, 432, 479, 529, 354, 188, 1389, 5813, 3409,
+ 106, 1258, 313, 281, 4576, 346, 188, 4579, 1383, 1389,
+ 208, 1383, 503, 573, 486, 1272, 1273, 2320, 6506, 3139,
+ 1277, 573, 516, 432, 417, 570, 411, 2355, 242, 415,
+ 416, 346, 574, 80, 266, 529, 3071, 477, 3073, 375,
+ 87, 88, 89, 2168, 5174, 3218, 2294, 486, 5178, 6619,
+ 574, 243, 266, 266, 372, 2331, 288, 494, 552, 445,
+ 445, 510, 1319, 570, 246, 313, 506, 337, 477, 346,
+ 573, 508, 286, 508, 2402, 258, 570, 479, 2406, 2278,
+ 2330, 2331, 188, 2411, 313, 510, 2414, 3499, 560, 432,
+ 6578, 531, 5939, 411, 1272, 1273, 2319, 506, 514, 2347,
+ 572, 234, 6590, 162, 2377, 282, 2372, 508, 76, 4681,
+ 2383, 2334, 372, 6430, 2337, 1744, 391, 251, 1258, 6420,
+ 247, 432, 531, 6253, 313, 574, 358, 445, 513, 2467,
+ 570, 573, 1389, 191, 477, 568, 167, 1277, 321, 572,
+ 1602, 510, 6630, 479, 1476, 5049, 205, 5221, 69, 218,
+ 342, 411, 73, 193, 94, 5059, 187, 965, 909, 341,
+ 388, 570, 5441, 506, 346, 127, 477, 918, 208, 183,
+ 171, 1918, 6660, 1918, 372, 926, 167, 4986, 929, 1319,
+ 307, 342, 2405, 13, 432, 445, 2409, 2410, 531, 362,
+ 317, 222, 254, 1585, 1586, 506, 1588, 6685, 411, 332,
+ 236, 356, 415, 432, 262, 1585, 1586, 389, 1588, 188,
+ 2948, 4942, 6513, 411, 1605, 284, 1607, 2467, 1650, 1610,
+ 531, 1612, 3518, 405, 1615, 1616, 1617, 570, 3000, 477,
+ 6045, 97, 445, 6157, 243, 197, 2950, 1628, 159, 6054,
+ 2954, 372, 377, 432, 258, 121, 188, 445, 477, 1389,
+ 251, 5831, 1643, 436, 1645, 1647, 362, 248, 506, 570,
+ 488, 3514, 1070, 6406, 6407, 3518, 1840, 1841, 208, 1843,
+ 1857, 1824, 1859, 1840, 1841, 337, 1843, 506, 548, 1671,
+ 411, 1032, 2445, 531, 6601, 167, 5724, 3123, 477, 423,
+ 1041, 212, 6107, 362, 160, 570, 510, 1048, 3713, 3714,
+ 1051, 247, 531, 3718, 532, 109, 6000, 321, 6002, 182,
+ 372, 358, 6006, 6007, 445, 357, 529, 506, 510, 123,
+ 239, 503, 570, 6420, 218, 6171, 558, 559, 560, 561,
+ 562, 563, 564, 565, 566, 24, 337, 6638, 351, 552,
+ 3836, 570, 531, 3758, 3759, 34, 386, 508, 384, 411,
+ 242, 478, 357, 480, 1746, 1787, 1788, 4949, 2369, 1167,
+ 574, 307, 341, 1755, 377, 356, 248, 376, 7, 4941,
+ 4942, 10, 11, 351, 266, 179, 407, 1769, 244, 506,
+ 4759, 570, 21, 22, 23, 261, 25, 26, 101, 310,
+ 266, 30, 31, 32, 286, 445, 111, 270, 571, 377,
+ 573, 428, 474, 486, 346, 3153, 4785, 438, 351, 1801,
+ 304, 181, 1804, 1805, 351, 128, 6513, 1809, 1810, 1868,
+ 1869, 1870, 436, 203, 1804, 4905, 6241, 303, 419, 1809,
+ 1810, 321, 372, 502, 377, 570, 1787, 1788, 6581, 570,
+ 377, 371, 451, 474, 160, 1585, 1586, 1938, 1588, 138,
+ 237, 372, 514, 432, 560, 1887, 2996, 403, 1949, 190,
+ 253, 248, 568, 292, 570, 571, 572, 573, 1938, 1918,
+ 4943, 411, 244, 4867, 356, 279, 69, 1926, 4872, 266,
+ 73, 109, 483, 237, 6047, 516, 6066, 529, 190, 1938,
+ 573, 1869, 1870, 1868, 6340, 123, 317, 1889, 529, 1990,
+ 1880, 1881, 5632, 183, 3556, 445, 260, 5637, 337, 445,
+ 5640, 558, 559, 560, 561, 562, 563, 564, 565, 566,
+ 190, 552, 2109, 573, 529, 1905, 1906, 393, 3054, 243,
+ 432, 247, 478, 337, 480, 445, 1887, 419, 529, 570,
+ 1918, 6638, 181, 570, 370, 98, 436, 1804, 1926, 264,
+ 5, 179, 1809, 1810, 270, 2046, 477, 570, 479, 432,
+ 506, 341, 276, 1938, 430, 570, 1938, 337, 423, 24,
+ 399, 201, 2063, 478, 450, 480, 522, 291, 258, 34,
+ 571, 211, 6397, 574, 360, 6509, 358, 301, 290, 6283,
+ 245, 307, 570, 282, 2055, 188, 372, 4976, 1978, 2060,
+ 473, 474, 5174, 3109, 3109, 398, 5178, 3109, 1988, 3228,
+ 5858, 5557, 438, 3320, 486, 346, 570, 3089, 510, 448,
+ 290, 2050, 445, 489, 2053, 491, 428, 570, 337, 495,
+ 434, 293, 1889, 570, 421, 411, 429, 573, 73, 341,
+ 445, 321, 371, 1394, 324, 361, 445, 529, 474, 1400,
+ 203, 279, 372, 1404, 509, 1406, 188, 231, 460, 133,
+ 3713, 3714, 231, 573, 1804, 3718, 3919, 141, 570, 1809,
+ 1810, 341, 203, 2134, 205, 6255, 3929, 2138, 6493, 508,
+ 3564, 3153, 574, 138, 5443, 574, 6273, 326, 560, 571,
+ 516, 2071, 574, 225, 2074, 2075, 2088, 399, 488, 6504,
+ 6505, 3320, 411, 529, 2096, 3758, 3759, 510, 422, 337,
+ 6634, 1889, 2203, 242, 4126, 4011, 445, 1468, 190, 1470,
+ 1471, 1978, 372, 5482, 159, 445, 552, 259, 3370, 399,
+ 304, 1988, 5678, 2203, 5680, 304, 5467, 266, 1878, 3358,
+ 1880, 1881, 372, 5852, 570, 521, 385, 371, 341, 6028,
+ 573, 428, 207, 346, 2203, 573, 436, 407, 4011, 1899,
+ 6575, 411, 478, 3535, 480, 1905, 1906, 570, 573, 371,
+ 4461, 3543, 427, 3392, 573, 491, 413, 6080, 433, 353,
+ 5910, 411, 190, 3300, 454, 440, 107, 503, 3560, 183,
+ 506, 574, 2221, 5462, 4204, 445, 321, 474, 3570, 324,
+ 4210, 3573, 274, 3575, 3576, 2185, 434, 3579, 129, 341,
+ 341, 3583, 247, 3585, 2071, 4099, 3588, 2074, 2075, 576,
+ 475, 445, 6402, 3403, 3404, 3405, 6631, 282, 2203, 237,
+ 430, 2203, 3373, 307, 191, 2422, 69, 2229, 1978, 3226,
+ 73, 2233, 497, 445, 3486, 3487, 3488, 3489, 1988, 3491,
+ 362, 3298, 3324, 3300, 6102, 121, 4148, 496, 218, 180,
+ 3332, 191, 95, 3335, 258, 337, 274, 547, 372, 341,
+ 220, 231, 520, 438, 3516, 141, 430, 237, 4399, 1080,
+ 102, 103, 238, 2439, 403, 3188, 39, 3190, 3191, 155,
+ 570, 491, 529, 3665, 5625, 5467, 316, 3538, 341, 565,
+ 6009, 4193, 510, 346, 570, 262, 572, 411, 6053, 474,
+ 2372, 436, 428, 3189, 430, 552, 272, 4620, 268, 6499,
+ 439, 341, 570, 435, 284, 403, 159, 321, 2185, 337,
+ 324, 2071, 262, 341, 2074, 2075, 573, 491, 5669, 3189,
+ 1141, 445, 208, 378, 304, 167, 234, 6510, 269, 384,
+ 231, 516, 15, 5684, 397, 474, 237, 2135, 5431, 244,
+ 5433, 439, 488, 218, 4320, 187, 6338, 5871, 2430, 2361,
+ 2430, 2430, 2364, 2430, 2430, 491, 231, 282, 5198, 180,
+ 213, 2361, 237, 2374, 2364, 2376, 3185, 529, 3540, 2380,
+ 2055, 2382, 277, 353, 2385, 2060, 474, 318, 2389, 2430,
+ 222, 322, 362, 522, 411, 570, 532, 1208, 296, 3104,
+ 552, 5405, 2438, 5407, 5408, 5409, 337, 104, 372, 1220,
+ 3348, 21, 3350, 304, 3829, 2516, 3354, 80, 3153, 284,
+ 83, 188, 574, 266, 87, 88, 89, 238, 445, 272,
+ 6343, 6344, 436, 70, 522, 2185, 2516, 6156, 2226, 304,
+ 371, 104, 149, 5625, 81, 231, 2234, 411, 168, 3225,
+ 5632, 237, 3509, 160, 2242, 5637, 2458, 2516, 5640, 2134,
+ 70, 272, 353, 2138, 372, 4490, 4491, 4492, 4493, 529,
+ 237, 4496, 4497, 4498, 4499, 4500, 4501, 4502, 4503, 4504,
+ 4505, 445, 18, 19, 391, 416, 80, 5669, 353, 83,
+ 6663, 342, 343, 87, 88, 89, 529, 362, 432, 168,
+ 5841, 37, 5684, 411, 40, 3468, 529, 318, 439, 415,
+ 104, 322, 411, 573, 529, 529, 2266, 3930, 304, 98,
+ 416, 237, 372, 243, 529, 350, 5721, 461, 459, 4554,
+ 4555, 2516, 502, 3309, 2516, 2323, 379, 445, 552, 445,
+ 573, 491, 2292, 547, 260, 3627, 445, 552, 317, 445,
+ 573, 6464, 2302, 3715, 2304, 399, 276, 416, 573, 573,
+ 2310, 411, 2350, 522, 2314, 3727, 570, 353, 412, 574,
+ 5765, 291, 341, 152, 243, 407, 155, 435, 531, 3961,
+ 423, 301, 161, 531, 141, 415, 445, 438, 331, 294,
+ 147, 372, 3658, 3659, 130, 445, 486, 441, 568, 552,
+ 3762, 571, 572, 160, 552, 2480, 438, 276, 2483, 329,
+ 189, 2361, 355, 3389, 2364, 445, 117, 570, 237, 203,
+ 510, 205, 291, 474, 96, 288, 529, 163, 3818, 472,
+ 411, 188, 301, 190, 415, 571, 356, 502, 574, 140,
+ 571, 260, 474, 3805, 3001, 229, 3001, 119, 80, 552,
+ 4032, 83, 4034, 33, 6567, 87, 88, 89, 501, 5841,
+ 329, 531, 149, 6082, 445, 516, 509, 246, 204, 512,
+ 529, 356, 104, 160, 69, 70, 361, 1347, 529, 343,
+ 259, 6694, 552, 6696, 516, 570, 3624, 3920, 520, 246,
+ 438, 568, 271, 552, 288, 358, 1366, 529, 575, 1369,
+ 570, 552, 422, 6716, 5284, 2455, 2456, 94, 478, 4731,
+ 480, 5291, 2462, 2463, 573, 574, 3997, 274, 563, 570,
+ 552, 320, 107, 568, 570, 570, 474, 572, 5910, 565,
+ 3827, 4309, 491, 69, 570, 5724, 572, 73, 570, 6458,
+ 5965, 75, 4023, 2493, 129, 5970, 5971, 81, 3830, 333,
+ 334, 335, 336, 422, 568, 568, 340, 3670, 572, 3672,
+ 3673, 574, 346, 4729, 358, 4731, 5770, 69, 516, 3998,
+ 1343, 73, 159, 571, 438, 1348, 574, 6118, 4102, 80,
+ 6336, 529, 83, 571, 341, 573, 87, 88, 89, 346,
+ 413, 570, 4721, 572, 4176, 180, 317, 69, 70, 435,
+ 4182, 73, 317, 104, 552, 4707, 4669, 573, 563, 81,
+ 474, 577, 164, 568, 201, 570, 6157, 572, 138, 139,
+ 4951, 208, 570, 159, 211, 85, 86, 4490, 4491, 4492,
+ 4493, 3779, 389, 4496, 4497, 4498, 4499, 4500, 4501, 4502,
+ 4503, 4504, 4505, 573, 574, 4074, 352, 568, 405, 570,
+ 356, 572, 516, 102, 103, 5844, 288, 571, 3667, 573,
+ 5943, 4524, 4444, 4765, 3726, 529, 3728, 3729, 5951, 5952,
+ 573, 6053, 4897, 571, 577, 573, 212, 561, 562, 563,
+ 564, 565, 461, 80, 269, 464, 569, 571, 552, 569,
+ 573, 4554, 4555, 573, 270, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, 3609, 575, 570, 571, 70, 493,
+ 574, 563, 564, 565, 2275, 320, 6635, 2278, 6259, 3779,
+ 504, 568, 967, 570, 491, 571, 358, 573, 571, 4288,
+ 573, 460, 571, 318, 573, 460, 6118, 322, 460, 529,
+ 3003, 531, 3001, 570, 5226, 572, 503, 260, 3945, 3946,
+ 428, 429, 337, 4375, 4376, 571, 522, 573, 2319, 2320,
+ 333, 334, 335, 336, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, 2334, 310, 6157, 2337, 2979, 6697, 156,
+ 561, 562, 563, 564, 565, 372, 371, 288, 569, 3155,
+ 3850, 3157, 4244, 571, 571, 573, 573, 4963, 128, 4250,
+ 3197, 571, 571, 573, 573, 4387, 571, 4389, 573, 4391,
+ 3948, 294, 3071, 3001, 3073, 571, 435, 573, 3059, 570,
+ 407, 3975, 576, 571, 411, 573, 571, 6396, 573, 520,
+ 571, 416, 573, 81, 1079, 1080, 372, 571, 3139, 573,
+ 4097, 571, 570, 573, 2405, 4102, 573, 574, 2409, 2410,
+ 3040, 3041, 473, 571, 439, 573, 356, 358, 445, 3139,
+ 432, 571, 3104, 573, 571, 452, 573, 4958, 571, 573,
+ 573, 407, 6413, 4979, 459, 411, 571, 6259, 573, 415,
+ 3139, 128, 571, 3071, 573, 3073, 571, 4153, 573, 522,
+ 478, 3093, 480, 156, 4091, 3830, 478, 3294, 480, 3089,
+ 571, 571, 573, 573, 4682, 4683, 123, 3109, 4686, 445,
+ 3112, 3113, 571, 117, 573, 4112, 4979, 3218, 571, 3109,
+ 573, 549, 3112, 3113, 5691, 5692, 558, 559, 560, 561,
+ 562, 563, 564, 565, 566, 529, 571, 531, 573, 290,
+ 571, 477, 573, 479, 571, 80, 573, 571, 83, 573,
+ 572, 3153, 169, 356, 3139, 3256, 571, 3139, 573, 3260,
+ 428, 429, 6503, 3153, 571, 571, 573, 573, 6509, 571,
+ 571, 573, 573, 1218, 571, 359, 573, 194, 359, 114,
+ 3260, 237, 529, 3284, 531, 571, 121, 573, 571, 203,
+ 573, 205, 571, 529, 573, 212, 571, 3256, 573, 216,
+ 571, 3260, 573, 571, 3284, 573, 3307, 428, 429, 4533,
+ 3212, 2961, 147, 571, 571, 573, 573, 356, 571, 4276,
+ 573, 238, 3089, 359, 241, 3284, 3093, 117, 571, 3347,
+ 573, 6413, 549, 571, 4897, 573, 571, 549, 573, 256,
+ 3975, 571, 3109, 573, 571, 571, 573, 573, 571, 571,
+ 573, 573, 571, 4666, 573, 428, 429, 558, 559, 560,
+ 561, 562, 563, 564, 565, 566, 571, 571, 573, 573,
+ 4267, 3256, 4269, 563, 3256, 3260, 5298, 571, 3260, 573,
+ 290, 216, 3383, 571, 241, 573, 3153, 571, 3290, 573,
+ 3040, 3041, 571, 6634, 573, 571, 573, 573, 4252, 3284,
+ 4254, 570, 3284, 3383, 571, 3093, 4428, 571, 571, 573,
+ 573, 128, 3314, 4613, 571, 571, 573, 573, 571, 571,
+ 573, 6503, 242, 4485, 3383, 6415, 261, 6509, 3116, 346,
+ 4654, 266, 286, 571, 3324, 573, 571, 286, 573, 3089,
+ 574, 571, 3332, 573, 570, 3335, 3134, 563, 3449, 5278,
+ 282, 571, 3140, 573, 6302, 6303, 3144, 4519, 4296, 3109,
+ 6436, 6437, 3112, 3113, 571, 571, 573, 573, 303, 3449,
+ 4452, 571, 571, 573, 573, 571, 571, 573, 573, 3381,
+ 397, 486, 576, 3171, 4338, 576, 571, 4247, 573, 571,
+ 3449, 573, 571, 571, 573, 573, 486, 486, 3383, 3482,
+ 486, 3383, 80, 3153, 4566, 83, 571, 570, 573, 87,
+ 88, 89, 571, 571, 573, 573, 3418, 3205, 3420, 486,
+ 3422, 3423, 214, 358, 5002, 3427, 3428, 3429, 107, 3431,
+ 3432, 3433, 107, 571, 571, 573, 573, 3225, 571, 571,
+ 573, 573, 571, 571, 573, 573, 4443, 571, 5179, 573,
+ 5181, 128, 6634, 5116, 129, 282, 1857, 3324, 1859, 288,
+ 486, 4588, 570, 572, 3449, 3332, 4699, 3449, 3335, 3257,
+ 570, 533, 570, 411, 223, 266, 3715, 4415, 570, 4730,
+ 3347, 572, 223, 3485, 356, 266, 411, 3237, 356, 223,
+ 223, 266, 223, 356, 3282, 237, 411, 223, 574, 302,
+ 3288, 190, 510, 5166, 356, 180, 570, 350, 3510, 237,
+ 571, 141, 107, 341, 3302, 450, 341, 4252, 533, 4254,
+ 570, 3309, 356, 3762, 3312, 341, 117, 117, 341, 496,
+ 3318, 341, 159, 372, 522, 522, 491, 80, 237, 392,
+ 83, 575, 6632, 223, 87, 88, 89, 223, 570, 223,
+ 3338, 519, 3554, 5578, 570, 385, 3344, 1602, 570, 223,
+ 106, 570, 533, 3351, 107, 223, 223, 3609, 573, 223,
+ 223, 246, 4853, 223, 3324, 223, 223, 3365, 223, 223,
+ 223, 237, 3332, 223, 223, 3335, 223, 356, 474, 570,
+ 3378, 107, 302, 356, 269, 237, 237, 3347, 570, 76,
+ 76, 3389, 237, 4338, 570, 570, 570, 570, 570, 570,
+ 288, 570, 570, 76, 570, 550, 76, 570, 570, 570,
+ 570, 76, 570, 570, 4875, 570, 561, 562, 563, 564,
+ 565, 566, 348, 1678, 570, 530, 3737, 3627, 3810, 3811,
+ 3812, 3880, 3743, 318, 570, 368, 570, 322, 570, 5031,
+ 286, 5514, 5034, 1698, 570, 573, 570, 3737, 570, 570,
+ 570, 570, 337, 3743, 570, 570, 573, 80, 107, 171,
+ 83, 286, 288, 4863, 302, 107, 573, 237, 3737, 5061,
+ 358, 5127, 353, 237, 3743, 351, 445, 563, 282, 436,
+ 324, 573, 2, 187, 509, 573, 371, 13, 560, 1744,
+ 573, 114, 137, 4785, 570, 570, 570, 574, 121, 486,
+ 486, 432, 486, 521, 486, 80, 572, 432, 83, 486,
+ 486, 432, 87, 88, 89, 304, 486, 148, 486, 560,
+ 486, 160, 432, 3816, 147, 223, 356, 299, 486, 104,
+ 437, 416, 486, 346, 196, 288, 486, 509, 477, 114,
+ 356, 377, 3737, 351, 486, 3737, 121, 160, 3743, 428,
+ 3627, 3743, 486, 73, 439, 570, 259, 573, 570, 79,
+ 196, 372, 223, 83, 266, 510, 196, 486, 486, 486,
+ 510, 486, 147, 486, 459, 182, 196, 128, 486, 128,
+ 486, 486, 486, 3876, 486, 1840, 1841, 326, 1843, 486,
+ 110, 3884, 486, 3553, 3554, 486, 377, 360, 396, 80,
+ 396, 396, 83, 486, 486, 358, 87, 88, 89, 486,
+ 377, 486, 477, 133, 3185, 486, 486, 3188, 3830, 3190,
+ 3191, 116, 116, 571, 203, 486, 205, 147, 575, 288,
+ 3830, 288, 356, 288, 288, 288, 156, 288, 261, 356,
+ 3638, 5876, 288, 266, 573, 486, 570, 288, 288, 107,
+ 229, 288, 486, 80, 3854, 3855, 83, 5191, 3656, 223,
+ 356, 496, 223, 341, 5452, 3663, 188, 3627, 5260, 223,
+ 558, 559, 560, 561, 562, 563, 564, 565, 566, 510,
+ 303, 223, 5216, 223, 356, 205, 261, 114, 521, 4759,
+ 107, 266, 310, 213, 121, 215, 237, 341, 341, 107,
+ 294, 570, 434, 341, 106, 5578, 484, 484, 228, 5301,
+ 5302, 570, 568, 288, 289, 4785, 4923, 4924, 486, 223,
+ 147, 486, 570, 223, 5825, 510, 568, 223, 303, 572,
+ 510, 570, 223, 13, 350, 358, 4047, 4048, 4049, 486,
+ 345, 5113, 525, 242, 573, 326, 570, 83, 326, 484,
+ 573, 5043, 570, 3830, 333, 334, 335, 336, 570, 486,
+ 232, 340, 341, 3975, 251, 242, 573, 346, 560, 344,
+ 488, 573, 5948, 259, 571, 259, 284, 448, 4047, 4048,
+ 4049, 292, 573, 358, 357, 573, 361, 510, 107, 216,
+ 510, 33, 80, 9, 365, 83, 571, 571, 128, 87,
+ 88, 89, 571, 5395, 5396, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, 80, 521, 104, 83, 432, 570,
+ 510, 87, 88, 89, 292, 292, 114, 450, 346, 346,
+ 486, 237, 570, 121, 261, 356, 486, 346, 486, 266,
+ 117, 4053, 454, 356, 341, 302, 302, 302, 428, 320,
+ 356, 486, 4047, 4048, 4049, 4047, 4048, 4049, 477, 147,
+ 573, 196, 266, 356, 356, 3825, 573, 356, 3828, 445,
+ 3830, 529, 5211, 393, 411, 450, 303, 358, 260, 442,
+ 486, 107, 486, 399, 362, 288, 6121, 571, 510, 5037,
+ 5038, 5039, 5040, 5041, 3854, 3855, 294, 395, 4110, 510,
+ 560, 223, 351, 237, 107, 522, 4976, 475, 428, 442,
+ 239, 3482, 223, 396, 493, 223, 223, 94, 570, 222,
+ 4327, 351, 510, 100, 107, 504, 529, 550, 341, 341,
+ 356, 358, 96, 356, 294, 4246, 5528, 570, 561, 562,
+ 563, 564, 565, 566, 351, 257, 237, 5539, 5540, 564,
+ 107, 257, 5413, 238, 549, 324, 4246, 549, 237, 568,
+ 442, 571, 294, 571, 5556, 356, 341, 4179, 145, 4312,
+ 571, 571, 571, 261, 3972, 550, 266, 4246, 266, 266,
+ 266, 533, 266, 558, 559, 560, 561, 562, 563, 564,
+ 565, 566, 266, 95, 249, 572, 571, 5289, 573, 573,
+ 288, 289, 242, 5876, 573, 570, 573, 573, 323, 356,
+ 6083, 486, 128, 4225, 529, 303, 573, 4562, 4361, 350,
+ 242, 4428, 288, 450, 201, 4237, 4238, 5900, 571, 573,
+ 368, 208, 571, 571, 211, 4247, 571, 571, 203, 571,
+ 4252, 571, 4254, 571, 5202, 570, 573, 4247, 571, 242,
+ 378, 4246, 571, 486, 4246, 317, 344, 571, 340, 571,
+ 4312, 238, 4313, 367, 571, 570, 526, 570, 5275, 549,
+ 358, 508, 4323, 361, 4072, 312, 526, 558, 559, 560,
+ 561, 562, 563, 564, 565, 566, 551, 516, 356, 574,
+ 4302, 570, 358, 128, 570, 272, 3667, 570, 560, 3670,
+ 356, 3672, 3673, 573, 573, 571, 560, 571, 359, 4361,
+ 4361, 4560, 356, 223, 270, 486, 486, 2372, 570, 570,
+ 486, 346, 570, 550, 278, 4337, 4338, 226, 486, 341,
+ 4579, 223, 5202, 155, 561, 562, 563, 564, 565, 566,
+ 445, 437, 223, 223, 437, 437, 6378, 302, 270, 226,
+ 356, 560, 226, 486, 510, 304, 5363, 432, 526, 379,
+ 337, 379, 450, 507, 341, 5432, 226, 4379, 486, 486,
+ 4247, 314, 461, 486, 351, 2430, 486, 314, 314, 699,
+ 432, 196, 432, 360, 486, 486, 4568, 4569, 4570, 4571,
+ 341, 486, 486, 432, 432, 372, 445, 223, 116, 571,
+ 288, 4199, 288, 486, 571, 486, 571, 569, 486, 254,
+ 486, 117, 571, 486, 486, 4526, 360, 571, 573, 237,
+ 2475, 181, 571, 573, 5372, 5373, 496, 5375, 237, 570,
+ 107, 571, 223, 486, 411, 223, 4526, 414, 415, 560,
+ 237, 254, 351, 570, 569, 3816, 570, 510, 6121, 510,
+ 223, 237, 4452, 5460, 432, 359, 432, 4526, 432, 432,
+ 432, 5647, 550, 442, 573, 221, 221, 288, 445, 288,
+ 558, 559, 560, 561, 562, 563, 564, 565, 566, 214,
+ 288, 288, 5986, 4576, 5988, 573, 4579, 4247, 288, 288,
+ 288, 83, 558, 559, 560, 561, 562, 563, 564, 565,
+ 566, 288, 573, 5663, 288, 3876, 368, 6542, 568, 242,
+ 4270, 521, 6547, 3884, 571, 340, 242, 571, 526, 552,
+ 251, 483, 570, 4535, 571, 571, 571, 515, 560, 419,
+ 573, 4526, 573, 158, 4526, 571, 513, 560, 4620, 573,
+ 4620, 4620, 571, 4620, 4620, 237, 570, 107, 5940, 496,
+ 510, 510, 294, 486, 278, 128, 477, 223, 461, 246,
+ 486, 496, 437, 226, 6152, 432, 486, 486, 486, 4620,
+ 571, 486, 571, 432, 571, 4452, 570, 411, 570, 6167,
+ 128, 901, 477, 529, 516, 905, 237, 356, 4681, 909,
+ 147, 223, 181, 288, 288, 496, 571, 288, 918, 919,
+ 5992, 4399, 288, 570, 292, 273, 926, 2662, 928, 929,
+ 486, 356, 4372, 571, 107, 377, 533, 570, 570, 4379,
+ 354, 113, 942, 4421, 356, 6213, 6214, 496, 573, 5997,
+ 570, 573, 573, 80, 486, 80, 83, 6310, 442, 570,
+ 569, 961, 4753, 571, 248, 181, 242, 4758, 4446, 4760,
+ 288, 242, 5019, 128, 5019, 527, 5802, 571, 571, 571,
+ 980, 527, 573, 5823, 571, 368, 986, 114, 4758, 291,
+ 4760, 4799, 570, 4784, 121, 571, 366, 571, 998, 570,
+ 291, 476, 4810, 570, 4753, 363, 128, 255, 571, 4758,
+ 483, 4760, 4452, 351, 4784, 5895, 560, 1017, 242, 529,
+ 147, 486, 496, 147, 260, 272, 260, 1027, 80, 346,
+ 5882, 83, 1032, 346, 560, 4784, 6108, 1037, 5725, 128,
+ 477, 1041, 1042, 573, 573, 486, 141, 5685, 1048, 223,
+ 1050, 1051, 486, 486, 486, 226, 288, 195, 571, 570,
+ 244, 107, 114, 1063, 1064, 188, 266, 4759, 351, 121,
+ 570, 1071, 510, 442, 107, 341, 239, 442, 4753, 4759,
+ 1080, 4753, 222, 4758, 351, 4760, 4758, 6440, 4760, 216,
+ 529, 128, 153, 4785, 107, 147, 477, 242, 5736, 529,
+ 356, 570, 237, 6371, 359, 4785, 406, 275, 4800, 4784,
+ 573, 4803, 4784, 4805, 571, 570, 286, 458, 515, 571,
+ 571, 242, 570, 377, 570, 291, 570, 528, 435, 5981,
+ 5982, 160, 5735, 204, 261, 5685, 356, 267, 107, 266,
+ 571, 1141, 405, 571, 486, 223, 223, 486, 107, 570,
+ 570, 570, 570, 570, 570, 237, 346, 6205, 510, 4851,
+ 5736, 315, 570, 80, 216, 570, 83, 442, 4941, 4942,
+ 223, 571, 1172, 1173, 5724, 4867, 303, 5780, 181, 1179,
+ 4872, 1181, 107, 1183, 571, 360, 5736, 6455, 6456, 6542,
+ 496, 242, 456, 571, 6547, 456, 237, 114, 560, 128,
+ 107, 150, 4759, 1203, 121, 180, 4886, 4887, 1208, 261,
+ 1210, 570, 515, 510, 266, 4655, 6223, 570, 477, 570,
+ 1220, 525, 237, 570, 4702, 5997, 477, 259, 4785, 337,
+ 147, 358, 270, 570, 76, 571, 4967, 356, 230, 533,
+ 570, 429, 4799, 429, 141, 359, 141, 574, 204, 529,
+ 529, 303, 209, 4810, 514, 525, 80, 515, 573, 570,
+ 570, 570, 107, 6115, 234, 573, 234, 445, 104, 316,
+ 5019, 242, 1272, 1273, 3009, 5903, 477, 346, 272, 4971,
+ 6132, 477, 402, 356, 4976, 570, 5914, 6139, 356, 442,
+ 107, 107, 359, 359, 267, 222, 4976, 570, 244, 216,
+ 244, 128, 570, 1303, 486, 5036, 358, 128, 573, 571,
+ 128, 193, 76, 570, 465, 482, 508, 209, 570, 4759,
+ 219, 571, 571, 450, 3059, 442, 570, 428, 5020, 5021,
+ 5022, 5023, 5024, 363, 107, 482, 412, 570, 93, 104,
+ 428, 5019, 573, 573, 261, 4785, 346, 570, 445, 266,
+ 486, 342, 4830, 242, 428, 4833, 570, 1357, 1358, 4799,
+ 364, 150, 5990, 5043, 342, 222, 456, 573, 188, 456,
+ 4810, 5063, 5064, 5065, 5066, 516, 5068, 5069, 5070, 5071,
+ 5072, 1381, 1382, 1383, 515, 5241, 303, 570, 244, 1389,
+ 6462, 244, 529, 570, 1394, 529, 384, 510, 450, 1399,
+ 1400, 5174, 571, 515, 1404, 5178, 1406, 516, 5851, 94,
+ 1410, 2137, 3830, 1315, 3466, 100, 1810, 1358, 1357, 4976,
+ 3358, 3269, 4023, 550, 4758, 6172, 1426, 4733, 6362, 4238,
+ 3384, 6479, 3438, 5778, 561, 562, 563, 564, 565, 566,
+ 6203, 358, 6479, 5825, 4731, 5422, 4886, 4887, 4921, 5801,
+ 3952, 3614, 6342, 5684, 6467, 6233, 4934, 6232, 6382, 3956,
+ 145, 6503, 5467, 4968, 4953, 6177, 4911, 6319, 1468, 6321,
+ 1470, 1471, 4048, 4951, 3452, 5283, 4942, 3452, 4753, 1353,
+ 4286, 5461, 5213, 5214, 5808, 5293, 5043, 4937, 4332, 5004,
+ 6095, 6591, 6709, 6690, 5792, 4246, 6394, 5738, 550, 5968,
+ 2215, 6129, 6186, 5195, 5741, 154, 5198, 5199, 4975, 561,
+ 562, 563, 564, 565, 566, 183, 201, 1517, 5198, 4419,
+ 963, 5938, 6587, 208, 1638, 4576, 211, 5048, 4579, 2258,
+ 4979, 6169, 3468, 450, 5226, 3929, 4976, 3128, 2255, 2275,
+ 6083, 4343, 5851, 2330, 1061, 1028, 5226, 4180, 3383, 4784,
+ 2433, 2433, 4099, 238, 6638, 6420, 3414, 1557, 5983, 6399,
+ 1956, 5012, 5010, 3021, 6657, 2168, 1196, 5215, 5935, 4651,
+ 5048, 6335, 5997, 1599, 3598, 1828, 1781, 3847, 3057, 1849,
+ 5020, 5021, 5022, 5023, 5024, 1585, 1586, 272, 1588, 3862,
+ 3031, 1850, 6450, 6323, 4592, 5196, 1596, 4579, 5180, 5163,
+ 4576, 3056, 6118, 5043, 5911, 4652, 1852, 6117, 4576, 5289,
+ 6645, 6444, 6545, 6310, 5880, 4528, 5651, 6324, 2942, 6169,
+ 6325, 2471, 3784, 3683, 3413, 3782, 2945, 699, 4358, 3528,
+ 4681, 3093, 2268, 550, 6293, 1870, 1480, 1637, 394, 1864,
+ 6678, 3068, 3109, 3824, 561, 562, 563, 564, 565, 566,
+ 5441, 1651, 337, 1653, 1295, 3101, 341, 1275, 94, 3102,
+ 1650, 1275, 4658, 1073, 100, 5197, 351, 1667, 4659, 1868,
+ 4617, 1671, 1784, 427, 3113, 360, 3610, 1585, 2, 115,
+ 2394, 5663, 1682, 1106, -1, -1, -1, 372, -1, -1,
+ -1, -1, 5441, -1, 5467, -1, -1, -1, -1, -1,
+ 5392, 5393, -1, -1, -1, -1, -1, -1, -1, 145,
+ -1, -1, 1712, 5405, -1, 5407, 5408, 5409, 6570, -1,
+ -1, -1, -1, -1, -1, -1, 5283, -1, -1, 414,
+ 415, -1, 5289, -1, -1, -1, 5293, -1, -1, -1,
+ 1740, 1741, 1742, -1, 1744, -1, 6349, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1756, -1, 5198, -1,
+ 445, -1, -1, 199, 1764, 201, 5441, -1, -1, 5441,
+ -1, -1, 208, -1, -1, 211, -1, -1, -1, -1,
+ 6205, 5473, -1, -1, -1, -1, 5226, -1, 80, -1,
+ -1, 83, -1, -1, -1, 87, 88, 89, -1, -1,
+ -1, 1801, 238, -1, 1804, -1, -1, -1, -1, 1809,
+ 1810, -1, 6692, -1, -1, -1, -1, -1, 6421, 6422,
+ -1, 5513, 114, -1, -1, -1, 6573, 6574, 513, 121,
+ 6682, -1, -1, -1, -1, -1, 272, -1, -1, 5317,
+ -1, -1, 1842, 5283, -1, -1, 1846, 1847, -1, 5289,
+ -1, 5329, 5625, 5293, -1, 147, -1, -1, -1, 5632,
+ -1, -1, 1862, -1, 5637, -1, -1, 5640, 1868, 1869,
+ 1870, -1, -1, 5565, -1, -1, -1, -1, -1, -1,
+ 5320, 5321, -1, -1, -1, 5325, 5326, -1, -1, 1889,
+ 4941, 4942, -1, -1, -1, -1, 5669, -1, -1, -1,
+ -1, 337, -1, -1, -1, 341, -1, -1, -1, -1,
+ -1, 5684, -1, -1, -1, 351, -1, -1, 1918, -1,
+ -1, -1, -1, -1, 360, -1, 1926, -1, -1, -1,
+ -1, -1, 1932, -1, -1, -1, 372, 6362, 1938, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 1949,
+ -1, -1, 1952, 5840, -1, -1, 1956, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 261,
+ -1, 5662, -1, 5653, 266, 411, -1, -1, 414, 415,
+ 3715, -1, -1, -1, 5775, -1, 107, -1, -1, -1,
+ 1990, -1, -1, -1, -1, 5818, 288, 289, -1, -1,
+ 2000, -1, -1, -1, -1, 5775, -1, -1, 129, 445,
+ -1, 303, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5775, 3762, -1, -1,
+ -1, -1, 5724, -1, 155, -1, -1, 2037, -1, -1,
+ -1, -1, -1, -1, 5724, -1, 2046, -1, -1, 3784,
+ -1, -1, 344, -1, 6479, -1, -1, -1, -1, 180,
+ 181, -1, -1, 2063, -1, 3800, 358, 188, 5841, -1,
+ 2070, -1, -1, -1, -1, 5806, -1, 513, 5770, 5557,
+ -1, 3816, -1, -1, -1, -1, 5818, 5779, 5819, 5851,
+ 5851, 5851, 5851, -1, 5851, 5851, 6699, 6700, 5851, 5851,
+ 5775, -1, -1, 5775, -1, 5851, 5837, 5851, -1, 5851,
+ 5851, -1, 5851, 5851, 5851, 5851, 5851, 5851, -1, -1,
+ 5851, 80, -1, 5174, 83, 246, -1, 5178, 87, 88,
+ 89, -1, -1, -1, -1, 2135, -1, 5910, -1, -1,
+ -1, 3876, -1, -1, -1, 3880, -1, -1, 269, 3884,
+ -1, 2151, 2152, 2153, -1, 114, -1, -1, 450, -1,
+ -1, -1, 121, -1, -1, -1, -1, 5724, 2168, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2180, -1, -1, -1, -1, -1, -1, -1, 147, -1,
+ -1, 2191, -1, -1, -1, -1, -1, 318, -1, -1,
+ 5678, 322, 5680, 2203, -1, 2205, -1, 2207, -1, -1,
+ 6139, -1, -1, 5653, -1, -1, 337, -1, -1, -1,
+ 341, -1, 80, -1, -1, 83, 2226, -1, -1, -1,
+ -1, -1, -1, -1, 2234, -1, -1, 6028, -1, -1,
+ -1, -1, 2242, -1, -1, -1, -1, -1, -1, -1,
+ 371, -1, -1, -1, -1, -1, 114, -1, 550, -1,
+ 2260, -1, -1, 121, -1, -1, 558, 559, 560, 561,
+ 562, 563, 564, 565, 566, 2275, -1, -1, 2278, 6028,
+ 6053, 2281, -1, -1, 5724, -1, -1, -1, 2288, 147,
+ -1, -1, -1, -1, 2294, 416, -1, -1, -1, -1,
+ -1, -1, 261, -1, -1, 5997, 2306, 266, -1, 6001,
+ -1, -1, -1, -1, -1, -1, -1, 5997, 439, 2319,
+ 2320, -1, 2322, 2323, 6055, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2334, -1, 2336, 2337, 459, -1,
+ 461, -1, -1, 464, 303, 6118, 2346, 2347, -1, 2349,
+ 2350, -1, -1, 6028, -1, -1, 6028, -1, 216, -1,
+ -1, 2361, -1, -1, 2364, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6157, 5436, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 358,
+ -1, -1, -1, 261, -1, 2405, -1, -1, 266, 2409,
+ 2410, -1, 6203, -1, -1, -1, 5467, -1, -1, -1,
+ -1, -1, -1, 6154, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 6203, -1, -1, -1, -1, -1, -1,
+ 5997, -1, -1, -1, -1, 303, 2446, 2447, -1, 570,
+ -1, -1, 2452, 2453, 6203, -1, 107, -1, 2458, 2459,
+ 2460, 2461, -1, -1, 2464, -1, 2466, -1, 2468, 2469,
+ 2470, 2471, 2472, 2473, -1, -1, 2476, -1, 2478, 2479,
+ 131, -1, 2482, -1, -1, -1, 6259, -1, -1, -1,
+ -1, 450, -1, -1, -1, -1, 2496, 2497, 2498, 2499,
+ 358, -1, 80, -1, -1, 83, -1, -1, -1, 87,
+ 88, 89, -1, 6205, 2514, 166, 2516, 6209, -1, 6211,
+ 6311, -1, -1, 6215, 6216, -1, 104, -1, 6203, -1,
+ -1, 6203, -1, -1, -1, -1, 114, -1, -1, -1,
+ -1, 6311, -1, 121, -1, -1, -1, -1, 6105, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5997, -1, -1,
+ -1, -1, 6311, -1, -1, -1, -1, -1, -1, 147,
+ -1, -1, -1, -1, 5625, -1, 227, -1, 4313, -1,
+ -1, 5632, -1, -1, 6513, -1, 5637, -1, 4323, 5640,
+ 5641, 550, 450, -1, -1, -1, -1, -1, -1, 558,
+ 559, 560, 561, 562, 563, 564, 565, 566, -1, -1,
+ -1, -1, 263, -1, -1, -1, -1, -1, 5669, -1,
+ -1, -1, -1, -1, -1, -1, 4361, -1, -1, -1,
+ -1, -1, -1, 5684, -1, -1, 6311, -1, -1, 6311,
+ 6413, -1, -1, 294, -1, -1, -1, -1, 299, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2657, 6420, -1,
+ 6420, 6420, -1, 6420, 6395, 6105, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 261, 5735, -1, -1, -1, 266, 6420,
+ 341, -1, 550, -1, -1, -1, -1, 2697, -1, -1,
+ -1, -1, -1, 561, 562, 563, 564, 565, 566, -1,
+ 288, 289, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 112, 373, -1, -1, 303, -1, -1, -1, 5780,
+ 6503, -1, -1, -1, -1, -1, 6509, 131, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2750, 6513, -1, 6513, 6513, 6195, 6513, -1, -1, -1,
+ -1, -1, -1, -1, 415, -1, 344, -1, -1, 420,
+ -1, -1, 166, -1, -1, -1, 167, -1, 429, -1,
+ 358, -1, 6513, 361, -1, -1, 437, 6479, -1, -1,
+ 5841, -1, -1, -1, 445, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 457, -1, -1, -1,
+ -1, -1, -1, -1, -1, 466, -1, -1, -1, 470,
+ -1, -1, -1, -1, -1, 4560, -1, 218, -1, -1,
+ -1, -1, -1, 227, -1, -1, -1, -1, 489, -1,
+ 231, 4576, -1, -1, 4579, -1, 237, -1, -1, -1,
+ 6641, 242, -1, -1, -1, -1, -1, 248, 6336, 5910,
+ 251, 6634, -1, -1, 255, -1, -1, -1, -1, 263,
+ -1, 6641, 450, 524, -1, 1037, 6638, 528, 6638, 6638,
+ -1, 6638, -1, -1, -1, 4620, -1, -1, -1, -1,
+ -1, -1, 6641, 284, -1, 286, -1, -1, -1, 6690,
+ -1, 1063, -1, -1, -1, 299, -1, 6638, -1, -1,
+ -1, -1, -1, 304, -1, -1, -1, -1, 6709, -1,
+ 6690, -1, -1, -1, -1, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, -1, 2935, -1, -1, -1, 6709,
+ -1, 6690, -1, -1, -1, 2945, -1, 341, 2948, 6641,
+ -1, -1, -1, -1, -1, -1, -1, 6649, -1, -1,
+ 6709, 6641, 353, -1, -1, 356, 6641, -1, -1, 6641,
+ -1, 362, 550, -1, 6025, -1, -1, -1, -1, 373,
+ 558, 559, 560, 561, 562, 563, 564, 565, 566, -1,
+ -1, -1, -1, -1, -1, 573, -1, -1, 6690, -1,
+ -1, 3001, 6053, -1, 3004, -1, -1, -1, 3008, -1,
+ 6690, 3011, -1, 3013, -1, 6690, 3016, 6709, 6690, -1,
+ 6712, 415, -1, 417, -1, -1, 420, -1, 419, 6709,
+ -1, 3031, -1, -1, 6709, 429, -1, 6709, -1, -1,
+ 3040, 3041, -1, 437, -1, -1, -1, -1, -1, -1,
+ 80, 445, -1, 83, -1, -1, -1, 87, 88, 89,
+ -1, -1, -1, 457, -1, -1, -1, 6118, -1, -1,
+ -1, 3071, 466, 3073, 104, -1, 470, -1, -1, -1,
+ 471, -1, -1, -1, 114, -1, -1, -1, -1, -1,
+ -1, 121, -1, 3093, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6157, -1, -1, -1,
+ -1, 502, 3112, 3113, -1, -1, 3116, 147, -1, -1,
+ -1, -1, -1, 3123, -1, -1, -1, 3127, 3128, -1,
+ 524, -1, -1, -1, 3134, 526, -1, 528, 529, 3139,
+ 3140, -1, -1, -1, 3144, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3153, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3171, -1, -1, 3174, -1, -1, -1, -1, -1,
+ 571, -1, 573, 574, -1, 3185, -1, 3187, 3188, -1,
+ 3190, 3191, -1, 3193, -1, -1, -1, -1, -1, -1,
+ -1, 6641, -1, -1, -1, 3205, 4941, -1, 6259, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3218, -1,
+ -1, -1, -1, -1, -1, 3225, 3226, -1, -1, -1,
+ -1, 261, 4967, -1, 3234, -1, 266, 1399, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 92, 1410, -1,
+ 6690, -1, 97, -1, -1, -1, 3256, 3257, 288, 289,
+ 3260, -1, -1, -1, 1426, -1, -1, -1, -1, 6709,
+ -1, -1, -1, 303, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3282, -1, 3284, -1, -1, -1, 3288, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6349, -1,
+ -1, 5036, 3302, 148, 149, -1, -1, 3307, -1, 3309,
+ 3310, -1, 3312, -1, 344, -1, -1, -1, 3318, 164,
+ -1, -1, -1, -1, -1, -1, -1, -1, 358, -1,
+ -1, 361, -1, -1, -1, -1, -1, 182, 3338, -1,
+ -1, -1, -1, -1, 3344, -1, -1, -1, -1, -1,
+ -1, 3351, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 206, 6413, -1, -1, 3365, -1, -1, -1, -1,
+ 6421, 6422, 217, -1, -1, -1, -1, -1, 3378, -1,
+ -1, 226, -1, 3383, -1, -1, -1, -1, -1, 3389,
+ 3390, -1, -1, -1, 239, -1, -1, -1, -1, 244,
+ -1, -1, -1, -1, -1, -1, -1, 3407, 3408, 3409,
+ -1, -1, -1, 3413, -1, -1, -1, -1, -1, -1,
+ 450, -1, -1, -1, -1, 270, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5174,
+ 3440, 3441, -1, 5178, -1, -1, -1, -1, -1, 3449,
+ 295, -1, 6503, -1, -1, -1, 3456, -1, 6509, -1,
+ -1, -1, -1, -1, -1, 3465, -1, -1, -1, -1,
+ -1, -1, 317, -1, -1, -1, 6527, -1, 5213, 5214,
+ -1, -1, 3482, -1, -1, -1, -1, -1, -1, 1651,
+ -1, -1, -1, -1, -1, 3495, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3514, -1, -1, -1, 3518, -1,
+ 550, -1, -1, -1, -1, -1, -1, -1, 558, 559,
+ 560, 561, 562, 563, 564, 565, 566, -1, -1, -1,
+ 3540, 571, -1, -1, -1, -1, -1, 392, 393, -1,
+ -1, 396, -1, -1, -1, 80, -1, -1, 83, -1,
+ -1, -1, 87, 88, 89, 6616, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 423, 104,
+ -1, 426, -1, 6634, -1, -1, -1, 432, -1, 114,
+ -1, -1, -1, -1, 439, -1, 121, 442, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 461, -1, -1, -1,
+ -1, -1, 147, 468, -1, -1, -1, -1, 6679, 474,
+ -1, -1, 477, -1, -1, 6686, 481, -1, 3638, -1,
+ 910, 911, -1, -1, 914, -1, -1, -1, 6699, 6700,
+ -1, 496, -1, -1, 3654, -1, 3656, -1, -1, -1,
+ -1, -1, -1, 3663, 934, -1, -1, 3667, -1, 3669,
+ 3670, 941, 3672, 3673, 3674, -1, -1, 522, -1, -1,
+ -1, -1, 3682, 80, -1, -1, 83, 3687, -1, -1,
+ 87, 88, 89, -1, -1, -1, -1, -1, -1, -1,
+ 970, -1, 972, -1, -1, 975, -1, 104, -1, -1,
+ -1, -1, -1, 3713, 3714, 3715, -1, 114, 3718, 989,
+ -1, -1, -1, -1, 121, 995, 3726, 3727, 3728, 3729,
+ -1, -1, -1, -1, -1, -1, 261, 3737, -1, -1,
+ -1, 266, 3742, 3743, -1, 3745, -1, 3747, -1, -1,
+ 147, -1, -1, -1, -1, -1, -1, -1, 3758, 3759,
+ -1, -1, 3762, 288, 289, 107, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 303, 80,
+ -1, 3781, 83, 3783, -1, 3785, 87, 88, 89, 131,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 104, -1, 3805, -1, -1, -1, -1,
+ -1, -1, -1, 114, -1, -1, 3816, -1, -1, 344,
+ 121, -1, -1, -1, 166, -1, -1, -1, -1, -1,
+ 3830, -1, -1, 358, -1, -1, 361, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 147, 3847, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3862, -1, 261, -1, -1, -1, -1, 266,
+ -1, -1, -1, -1, -1, 2037, 3876, -1, -1, -1,
+ -1, -1, -1, -1, 3884, 227, -1, -1, -1, -1,
+ -1, 288, 289, -1, -1, -1, -1, 5632, -1, -1,
+ -1, -1, 5637, -1, -1, 5640, 303, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3919,
+ -1, 263, 3922, -1, 3924, 450, -1, -1, -1, 3929,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3945, 3946, 344, -1, -1,
+ -1, 3951, 294, -1, -1, -1, -1, 299, -1, -1,
+ 261, 358, -1, -1, 361, 266, -1, -1, -1, -1,
+ -1, -1, 3972, -1, -1, 3975, -1, -1, 3978, -1,
+ -1, -1, -1, -1, -1, -1, 3986, 288, 289, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 341,
+ -1, -1, 303, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4011, -1, -1, -1, -1, -1, -1, 2180, -1,
+ -1, -1, -1, -1, -1, 550, -1, -1, -1, 2191,
+ -1, 373, -1, 558, 559, 560, 561, 562, 563, 564,
+ 565, 566, -1, 344, -1, 2207, 571, 4047, 4048, 4049,
+ -1, -1, -1, 450, -1, 1325, 1326, 358, -1, -1,
+ 361, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5806, 4072, 415, -1, -1, -1, -1, 420, -1,
+ -1, 4081, -1, 4083, 5819, -1, -1, 429, -1, -1,
+ -1, 4091, -1, -1, -1, 437, -1, -1, 2260, -1,
+ -1, -1, 5837, 445, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4112, -1, -1, 457, 5851, -1, -1, 2281,
+ -1, -1, -1, -1, 466, -1, 1396, -1, 470, -1,
+ -1, -1, 2294, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1411, -1, -1, 2306, -1, -1, 489, -1, 450,
+ -1, -1, -1, 550, -1, -1, -1, -1, -1, -1,
+ -1, 558, 559, 560, 561, 562, 563, 564, 565, 566,
+ -1, 1441, 1442, -1, 571, 5910, -1, 4177, -1, -1,
+ -1, -1, 524, -1, 2346, 2347, 528, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1466, -1, -1, 4199,
+ -1, -1, -1, -1, 4204, -1, -1, -1, -1, -1,
+ 4210, -1, -1, -1, -1, -1, -1, -1, -1, 4219,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4246, 4247, -1, 550,
+ -1, -1, 4252, -1, 4254, -1, -1, 558, 559, 560,
+ 561, 562, 563, 564, 565, 566, -1, 4267, -1, 4269,
+ 571, -1, -1, -1, -1, -1, -1, 4277, -1, -1,
+ -1, -1, 1552, 1553, -1, -1, -1, -1, -1, 4289,
+ -1, 94, -1, -1, -1, -1, -1, 100, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 115, -1, -1, -1, -1, 4317, 6053, -1,
+ 6055, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2496, -1, -1, -1, 4338, 4339,
+ -1, -1, 145, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 80,
+ -1, -1, 83, 4363, -1, -1, 87, 88, 89, -1,
+ -1, -1, -1, -1, -1, -1, -1, 80, -1, -1,
+ 83, -1, -1, 104, 87, 88, 89, -1, -1, -1,
+ -1, -1, -1, 114, -1, -1, 199, -1, 201, 4399,
+ 121, 104, -1, -1, 6139, 208, 80, -1, 211, 83,
+ -1, 114, -1, 87, 88, 89, -1, -1, 121, 6154,
+ -1, 4421, -1, -1, -1, -1, 147, -1, -1, -1,
+ 104, -1, -1, -1, -1, 238, -1, -1, -1, -1,
+ 114, -1, -1, 4443, 147, -1, 4446, 121, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4463, -1, -1, 4466, -1, -1, 272,
+ -1, -1, 4472, 147, -1, -1, -1, -1, -1, -1,
+ 4480, -1, 4482, -1, -1, 4485, -1, -1, -1, 4489,
+ 4490, 4491, 4492, 4493, -1, -1, 4496, 4497, 4498, 4499,
+ 4500, 4501, 4502, 4503, 4504, 4505, -1, -1, -1, 4509,
+ 4510, 4511, 73, -1, 4514, -1, -1, -1, 79, 4519,
+ -1, -1, 83, -1, 4524, -1, 4526, -1, 4528, -1,
+ -1, -1, -1, -1, 337, -1, 4536, -1, 341, 4539,
+ 261, 4541, -1, -1, -1, 266, -1, -1, 351, 110,
+ -1, 4551, -1, -1, 4554, 4555, -1, 360, 261, 4559,
+ 4560, -1, -1, 266, -1, -1, 4566, 288, 289, 372,
+ -1, -1, -1, -1, -1, -1, 4576, -1, -1, 4579,
+ -1, -1, 303, -1, -1, 288, 289, 261, -1, 4589,
+ -1, -1, 266, -1, -1, 156, -1, -1, -1, -1,
+ 303, -1, -1, -1, -1, -1, -1, -1, 411, -1,
+ -1, 414, 415, -1, 288, 289, -1, -1, -1, -1,
+ -1, -1, -1, 344, -1, -1, -1, -1, 167, 303,
+ -1, -1, -1, -1, -1, -1, 4636, 358, -1, -1,
+ 361, 344, 445, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4653, -1, 358, -1, -1, 361, -1,
+ 6395, -1, -1, -1, -1, -1, -1, 228, -1, 4669,
+ 344, -1, -1, -1, -1, -1, -1, -1, -1, 218,
+ -1, 4681, -1, -1, 358, 6420, -1, 361, -1, -1,
+ -1, -1, 231, -1, -1, -1, -1, -1, 237, -1,
+ -1, -1, 4702, 242, -1, -1, -1, -1, -1, 248,
+ 513, -1, 251, -1, -1, -1, 255, -1, -1, -1,
+ -1, -1, -1, 1993, -1, -1, -1, -1, -1, 450,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 284, -1, 450, 2018, -1,
+ -1, -1, -1, 4753, -1, -1, -1, -1, 4758, 4759,
+ 4760, -1, -1, -1, -1, 304, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 450, -1, 6513, -1,
+ -1, -1, -1, -1, 4784, 4785, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 353, -1, -1, 356, -1, -1,
+ -1, 2091, -1, 362, -1, -1, -1, -1, -1, 550,
+ 4830, -1, 393, 4833, -1, -1, -1, 558, 559, 560,
+ 561, 562, 563, 564, 565, 566, -1, 550, -1, -1,
+ 571, 2121, 2122, 2123, 2124, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, -1, -1, -1, 428, 571, -1,
+ -1, -1, -1, -1, -1, -1, 550, -1, -1, -1,
+ 419, -1, -1, -1, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, -1, -1, 569, -1, 4897, -1, -1,
+ -1, -1, -1, 6638, -1, -1, 80, -1, -1, 83,
+ -1, 131, -1, 87, 88, 89, 2186, 2187, -1, -1,
+ -1, -1, -1, 4923, 4924, -1, -1, 4927, -1, -1,
+ 104, -1, 2202, -1, 4934, 474, -1, -1, -1, -1,
+ 114, 4941, 4942, -1, -1, -1, 166, 121, -1, -1,
+ 94, 4951, 92, -1, -1, -1, 100, 97, -1, -1,
+ -1, -1, -1, 502, -1, -1, 2236, 2237, 2238, 2239,
+ -1, 115, -1, 147, -1, 4975, 4976, -1, -1, 4979,
+ 4980, 4981, -1, -1, -1, -1, -1, 526, -1, 528,
+ 529, 4991, -1, -1, -1, 135, -1, -1, -1, -1,
+ -1, 145, -1, -1, -1, -1, -1, 227, 148, 149,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5019,
+ 160, -1, -1, -1, 164, 3187, -1, -1, -1, 568,
+ -1, 3193, 571, 572, -1, 574, -1, -1, -1, -1,
+ -1, -1, 182, 263, -1, -1, -1, -1, 5048, -1,
+ -1, -1, -1, -1, -1, -1, -1, 201, -1, -1,
+ -1, -1, -1, -1, 208, -1, 206, 211, -1, -1,
+ -1, -1, 3234, -1, 5074, -1, -1, 217, -1, 299,
+ -1, -1, -1, 2353, -1, 5085, 226, 261, -1, 2359,
+ -1, -1, 266, -1, 238, -1, -1, -1, -1, 239,
+ -1, -1, -1, -1, 244, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5113, 288, 289, 5116, 337, -1, -1,
+ -1, 341, -1, -1, 5124, 5125, -1, 5127, 272, 303,
+ 270, 5131, 5132, -1, -1, -1, 5136, -1, -1, -1,
+ 5140, -1, -1, 5143, 5144, -1, -1, -1, 5148, -1,
+ -1, -1, 372, 373, 5154, 295, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5166, -1, -1, -1,
+ 344, -1, -1, -1, 5174, -1, -1, 317, 5178, -1,
+ -1, -1, -1, -1, 358, -1, -1, 361, -1, -1,
+ -1, 411, -1, 337, -1, 415, -1, 341, -1, -1,
+ 420, -1, -1, -1, -1, -1, -1, 351, -1, 429,
+ -1, 5211, -1, -1, -1, -1, 360, 437, 358, 5219,
+ -1, -1, -1, -1, 80, 445, 5226, 83, 372, -1,
+ -1, 87, 88, 89, -1, -1, -1, 457, -1, -1,
+ -1, -1, 382, -1, 5244, -1, 466, -1, 104, -1,
+ 470, -1, 392, 393, -1, -1, 396, -1, 114, -1,
+ -1, -1, 5262, -1, -1, 121, -1, 411, -1, -1,
+ 414, 415, -1, -1, -1, 5275, 450, -1, -1, 3441,
+ -1, -1, -1, 423, 2554, -1, 426, -1, -1, -1,
+ 430, 147, 432, -1, -1, -1, -1, -1, -1, 439,
+ 5300, 445, 442, -1, 524, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5317, -1, -1,
+ -1, 461, 5322, -1, -1, -1, -1, -1, 468, 5329,
+ -1, -1, -1, -1, 474, -1, -1, 477, -1, -1,
+ 901, 481, -1, -1, 905, 5345, -1, -1, -1, 489,
+ -1, 491, 5352, -1, -1, -1, 496, 918, 919, -1,
+ -1, -1, -1, 5363, -1, 926, -1, 928, 929, 513,
+ -1, -1, -1, -1, -1, -1, 550, -1, -1, -1,
+ -1, 942, 522, -1, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, -1, 5394, -1, -1, 571, -1, -1,
+ 961, -1, -1, -1, -1, 261, -1, -1, -1, -1,
+ 266, -1, -1, -1, -1, -1, -1, -1, -1, 980,
+ 5420, -1, -1, -1, -1, 986, -1, -1, -1, -1,
+ -1, -1, 288, 289, -1, -1, 5436, 998, -1, -1,
+ -1, 5441, -1, -1, -1, -1, -1, 303, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5460, -1, -1, -1, -1, -1, 1027, 5467, -1, -1,
+ -1, -1, -1, -1, -1, -1, 131, -1, -1, 94,
+ 1041, 1042, -1, -1, -1, 100, -1, 1048, 344, 1050,
+ 1051, 5, 3654, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 358, 1064, -1, 361, -1, 3669, -1, -1,
+ 24, 166, 3674, -1, 5514, -1, 5516, -1, -1, 1080,
+ 34, 35, -1, -1, -1, -1, -1, 41, 42, -1,
+ 145, 45, 46, 47, 48, 49, 50, 51, 52, 53,
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+ 64, 65, 66, 67, 68, 69, -1, 5557, -1, 73,
+ -1, 75, 76, -1, -1, -1, -1, 81, -1, -1,
+ -1, -1, 227, -1, -1, 5575, -1, -1, 5578, -1,
+ 1141, 5581, 5582, 5583, -1, -1, 201, -1, -1, -1,
+ -1, -1, -1, 208, 450, -1, 211, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5606, 5607, 263, -1,
+ 5610, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 1181, -1, -1, 238, 138, 5625, -1, -1, -1, -1,
+ -1, -1, 5632, -1, -1, -1, -1, 5637, -1, -1,
+ 5640, 5641, 1203, -1, 299, -1, -1, 1208, 5648, -1,
+ -1, -1, -1, -1, -1, -1, -1, 272, -1, 1220,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5669,
+ -1, -1, 5672, -1, -1, -1, -1, -1, 5678, -1,
+ 5680, -1, 337, -1, 5684, -1, 341, -1, -1, -1,
+ -1, -1, -1, -1, 550, -1, -1, -1, -1, -1,
+ -1, 215, 558, 559, 560, 561, 562, 563, 564, 565,
+ 566, 1272, 1273, -1, -1, 571, -1, 372, 373, -1,
+ -1, 235, 337, -1, 5724, 5725, 341, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5735, 351, 3007, -1, -1,
+ -1, -1, -1, -1, 258, 360, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 411, 372, -1, -1,
+ 415, -1, -1, -1, -1, 420, -1, -1, 282, -1,
+ -1, -1, -1, -1, 429, 5775, -1, -1, -1, -1,
+ 5780, -1, 437, -1, -1, -1, -1, -1, 131, -1,
+ 445, -1, -1, -1, -1, -1, 411, -1, -1, 414,
+ 415, -1, 457, -1, -1, -1, -1, 321, -1, -1,
+ 324, 466, -1, -1, -1, 470, 3978, -1, -1, -1,
+ -1, 167, 1383, 166, 3986, -1, -1, -1, 1389, -1,
+ 445, -1, 346, -1, -1, -1, -1, -1, -1, 1400,
+ -1, 5841, -1, 1404, 5844, 1406, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 524,
+ -1, -1, 218, -1, -1, -1, 5876, -1, -1, -1,
+ 5880, -1, 5882, -1, 227, 231, -1, -1, -1, -1,
+ -1, 237, -1, -1, -1, -1, 242, -1, 513, -1,
+ 5900, -1, 248, -1, -1, 251, 5906, -1, -1, 255,
+ 5910, -1, -1, -1, -1, -1, 5916, 5917, -1, 4081,
+ 263, 4083, 436, -1, 3194, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 284, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 299, -1, 304, -1,
+ -1, -1, -1, -1, -1, 5965, -1, -1, -1, -1,
+ 5970, 5971, 486, -1, -1, 5975, -1, -1, -1, -1,
+ -1, 5981, 5982, 5983, -1, -1, -1, -1, 502, -1,
+ -1, -1, -1, -1, 337, -1, 1557, 5997, 341, -1,
+ -1, -1, -1, 517, -1, -1, -1, 353, -1, -1,
+ 356, 80, -1, -1, 83, 4177, 362, 6017, 87, 88,
+ 89, -1, -1, -1, -1, 6025, -1, -1, 6028, 372,
+ 373, -1, -1, 547, 73, 104, -1, -1, -1, -1,
+ 79, -1, -1, -1, 83, 114, 560, 561, 562, 563,
+ 564, 565, 121, 6053, 568, 569, 570, 4219, -1, -1,
+ 3330, 575, 576, 3333, -1, -1, -1, -1, 411, -1,
+ -1, 110, 415, 419, -1, -1, 1637, 420, 147, -1,
+ -1, -1, -1, 6083, 6084, -1, 429, -1, -1, -1,
+ -1, -1, 1653, -1, 437, -1, -1, -1, -1, -1,
+ -1, -1, 445, -1, -1, 6105, 1667, -1, -1, 6109,
+ 1671, -1, -1, -1, 457, 6115, 94, 156, 6118, -1,
+ -1, 6121, 100, 466, -1, -1, -1, 470, 474, -1,
+ -1, -1, 6132, -1, -1, -1, -1, -1, -1, 6139,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3421, -1, -1, -1, 4317, 502, 6157, -1, -1,
+ -1, -1, -1, -1, 3434, -1, 205, 145, -1, -1,
+ -1, -1, 3442, -1, 213, -1, 215, -1, 6178, -1,
+ 526, 524, 528, 529, -1, -1, -1, -1, -1, 228,
+ -1, -1, 261, -1, -1, -1, -1, 266, -1, -1,
+ -1, 4363, -1, 6203, -1, 6205, -1, -1, -1, -1,
+ -1, 3481, -1, -1, -1, -1, -1, -1, -1, 288,
+ 289, -1, 568, 201, -1, 571, 572, -1, 574, -1,
+ 208, -1, 3502, 211, 303, -1, -1, -1, -1, -1,
+ 1801, -1, -1, -1, -1, -1, -1, -1, 1809, 1810,
+ 92, -1, -1, -1, -1, 97, -1, -1, -1, 6259,
+ 238, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 344, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 358,
+ -1, -1, 361, 135, 272, -1, 3566, -1, 3568, -1,
+ -1, 6301, 6302, 6303, 4466, -1, 148, 1868, 1869, 1870,
+ 6310, 6311, -1, -1, 6314, -1, -1, -1, -1, 6319,
+ -1, 6321, 164, 6323, -1, -1, -1, 4489, 1889, -1,
+ -1, -1, -1, 6333, -1, -1, 6336, -1, -1, -1,
+ 182, -1, -1, -1, -1, -1, -1, -1, -1, 6349,
+ -1, -1, 4514, -1, 393, -1, -1, 1918, -1, 337,
+ -1, -1, 6362, 341, 206, 1926, -1, -1, -1, -1,
+ -1, -1, -1, 351, -1, 217, -1, 1938, -1, -1,
+ -1, 450, 360, -1, 226, -1, -1, -1, -1, 428,
+ -1, -1, -1, -1, 372, -1, -1, 239, 3668, -1,
+ -1, -1, 244, 6403, -1, 3675, -1, -1, -1, -1,
+ -1, -1, -1, 6413, -1, -1, -1, -1, -1, -1,
+ -1, 6421, 6422, -1, -1, -1, -1, 6427, 270, -1,
+ 6430, -1, -1, 411, -1, -1, 414, 415, -1, -1,
+ 6440, -1, -1, -1, -1, -1, 6446, -1, -1, -1,
+ 6450, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 445, -1, -1,
+ -1, -1, -1, -1, -1, 317, -1, -1, -1, 6479,
+ -1, 550, -1, -1, -1, -1, -1, -1, -1, 558,
+ 559, 560, 561, 562, 563, 564, 565, 566, -1, -1,
+ -1, -1, 571, 6503, -1, -1, -1, -1, -1, 6509,
+ -1, -1, -1, -1, 83, -1, 358, -1, -1, 88,
+ -1, 90, -1, -1, -1, -1, -1, 6527, -1, -1,
+ -1, 100, -1, -1, -1, 513, -1, -1, -1, -1,
+ -1, -1, 6542, -1, -1, 6545, -1, 6547, -1, -1,
+ 392, 393, -1, -1, 396, -1, 125, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 136, -1, -1,
+ 6570, -1, -1, -1, 2135, -1, -1, -1, 147, 148,
+ -1, 423, 151, -1, 426, -1, -1, -1, 157, -1,
+ 432, -1, 161, -1, -1, -1, -1, 439, -1, -1,
+ 442, 6601, -1, -1, -1, -1, -1, 2168, -1, -1,
+ -1, -1, 6612, -1, 183, -1, 6616, -1, -1, 461,
+ -1, -1, -1, -1, -1, -1, 468, -1, -1, -1,
+ 199, -1, 474, -1, 6634, 477, -1, -1, -1, 481,
+ -1, 6641, 2203, -1, -1, -1, -1, 489, -1, -1,
+ -1, -1, -1, -1, 496, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2226, -1, -1, -1, -1,
+ -1, -1, 1037, 2234, -1, -1, -1, -1, 6678, 6679,
+ 522, 2242, 6682, -1, -1, -1, 6686, -1, -1, -1,
+ 6690, -1, -1, -1, -1, -1, -1, -1, 1063, 6699,
+ 6700, -1, -1, -1, -1, -1, -1, -1, -1, 6709,
+ -1, 3981, 3982, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2319, 2320,
+ -1, 2322, 2323, -1, -1, 4927, -1, 5, -1, -1,
+ -1, -1, -1, 2334, -1, 2336, 2337, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 24, -1, 2349, 2350,
+ -1, -1, -1, -1, -1, -1, 34, 35, -1, -1,
+ -1, 39, -1, 41, 42, -1, -1, 45, 46, 47,
+ 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
+ 58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
+ 68, 69, -1, 71, -1, 73, -1, 75, 76, -1,
+ -1, -1, -1, 81, 2405, -1, -1, -1, 2409, 2410,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 429, -1, 901, -1, -1, -1, 905, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 919, -1, -1, -1, -1, -1, -1, 80, -1, 928,
+ 83, -1, -1, -1, 87, 88, 89, -1, -1, -1,
+ 138, -1, -1, 942, -1, -1, -1, -1, -1, -1,
+ -1, 104, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 114, 961, -1, -1, -1, 80, -1, 121, 83,
+ -1, -1, -1, 87, 88, 89, -1, -1, -1, -1,
+ -1, 980, -1, -1, -1, -1, -1, 986, -1, -1,
+ 104, 4221, -1, -1, 147, 2516, -1, -1, -1, 998,
+ 114, -1, -1, -1, -1, -1, -1, 121, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 215, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 1027, -1,
+ -1, -1, -1, 147, -1, -1, -1, 235, -1, -1,
+ -1, -1, -1, 1042, -1, 80, -1, -1, 83, -1,
+ -1, 1050, 87, 88, 89, -1, 1381, -1, -1, -1,
+ 258, -1, -1, -1, -1, 1064, -1, -1, -1, 104,
+ -1, -1, -1, -1, 1399, -1, -1, -1, -1, 114,
+ -1, 1080, -1, -1, 282, 1410, 121, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1426, -1, -1, -1, -1, -1, -1, 261, -1,
+ -1, -1, 147, 266, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 321, -1, -1, 324, -1, -1, -1,
+ -1, -1, -1, -1, -1, 288, 289, -1, -1, -1,
+ 5262, -1, 1141, -1, -1, -1, -1, 261, 346, -1,
+ 303, -1, 266, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 699, -1, 4402, -1, 288, 289, -1, -1, 5300, -1,
+ 1179, -1, 1181, -1, 1183, -1, -1, -1, -1, 303,
+ -1, 344, 1517, -1, -1, -1, -1, -1, -1, -1,
+ 5322, -1, -1, -1, 1203, 358, -1, -1, 361, 1208,
+ -1, -1, -1, -1, -1, 80, 83, -1, 83, 748,
+ 749, 1220, 87, 88, 89, -1, 261, -1, -1, -1,
+ 344, 266, -1, -1, -1, -1, -1, -1, 436, 104,
+ -1, -1, -1, 110, 358, -1, -1, 361, -1, 114,
+ -1, -1, -1, 288, 289, -1, 121, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 795, -1, 303, -1,
+ -1, -1, 5394, 1272, 1273, -1, -1, -1, -1, -1,
+ -1, -1, 147, -1, -1, -1, -1, -1, 486, 156,
+ -1, -1, -1, -1, -1, -1, -1, 450, -1, -1,
+ -1, -1, -1, -1, 502, -1, -1, -1, -1, 344,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 517,
+ -1, -1, -1, 358, -1, -1, 1651, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 450, -1, 205, -1,
+ -1, -1, -1, -1, -1, -1, 213, -1, 215, 547,
+ -1, -1, -1, -1, -1, -1, -1, -1, 1357, 1358,
+ -1, 228, 560, 561, 562, 563, 564, 565, -1, -1,
+ 568, 569, 570, 571, -1, 573, 574, 575, 576, 577,
+ -1, -1, -1, -1, 1383, -1, -1, -1, -1, -1,
+ 1389, -1, -1, -1, 5516, -1, 261, 550, -1, -1,
+ -1, 266, -1, -1, -1, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, -1, 450, -1, -1, 571, -1,
+ -1, -1, -1, 288, 289, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 550, -1, 303, -1,
+ -1, -1, -1, -1, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, -1, -1, -1, -1, 571, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 344,
+ 3001, 1010, 1011, -1, 1013, -1, -1, -1, -1, -1,
+ -1, -1, -1, 358, -1, -1, 361, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 550, -1, -1, -1, -1,
+ -1, -1, -1, 558, 559, 560, 561, 562, 563, 564,
+ 565, 566, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1074, -1, -1, 1077, 1078,
+ 3071, -1, 3073, -1, -1, -1, -1, -1, 1557, -1,
+ -1, -1, -1, -1, 1093, -1, 1095, -1, 1097, -1,
+ -1, -1, 3093, -1, 1103, -1, -1, -1, 1107, -1,
+ -1, -1, -1, -1, -1, 450, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3116, -1, -1, -1, 1128,
+ 1129, -1, -1, -1, -1, -1, -1, 1932, -1, -1,
+ -1, -1, -1, 3134, -1, -1, -1, -1, 3139, 3140,
+ -1, -1, -1, 3144, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3153, -1, -1, -1, -1, -1, 1637, -1,
+ -1, -1, -1, -1, -1, -1, 1175, -1, 1177, -1,
+ 3171, 4881, -1, -1, 1653, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4895, -1, 3188, 1667, 3190,
+ 3191, -1, 1671, -1, -1, 2000, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3205, 550, -1, -1, -1, -1,
+ -1, -1, -1, 558, 559, 560, 561, 562, 563, 564,
+ 565, 566, -1, -1, 3225, 3226, 571, -1, -1, -1,
+ -1, -1, 2037, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 1258,
+ -1, -1, -1, -1, -1, 3256, 3257, -1, -1, 3260,
+ -1, -1, -1, 1272, 1273, 2070, -1, 1276, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3282, -1, 3284, -1, -1, -1, 3288, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3302, -1, -1, -1, -1, -1, -1, 3309, -1,
+ 1319, 3312, -1, -1, 5916, -1, -1, 3318, -1, -1,
+ -1, -1, 1801, -1, -1, -1, -1, -1, -1, -1,
+ 1809, 1810, -1, -1, -1, -1, -1, 3338, -1, -1,
+ -1, -1, -1, 3344, -1, -1, 2151, 2152, 2153, -1,
+ 3351, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5965, 3365, -1, -1, -1, 5970, 5971,
+ -1, -1, -1, -1, -1, 2180, -1, 3378, -1, -1,
+ 1389, -1, 3383, -1, -1, -1, 2191, -1, 3389, 1868,
+ 1869, 1870, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2207, -1, -1, -1, -1, -1, -1, -1,
+ 1889, -1, -1, -1, -1, -1, -1, -1, -1, 80,
+ -1, -1, 83, -1, -1, -1, 87, 88, 89, -1,
+ -1, -1, -1, -1, -1, -1, -1, 80, -1, 1918,
+ 83, -1, -1, 104, 87, 88, 89, 1926, 3449, -1,
+ -1, -1, -1, 114, -1, 2260, -1, -1, -1, 1938,
+ 121, 104, -1, -1, -1, -1, -1, -1, -1, -1,
+ 1949, 114, -1, -1, -1, -1, 2281, -1, 121, -1,
+ -1, -1, 6084, -1, -1, -1, 147, -1, -1, 2294,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2306, -1, -1, 147, -1, -1, -1, -1, -1,
+ -1, 1990, 80, -1, -1, 83, -1, -1, -1, 87,
+ 88, 89, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 104, -1, -1, -1,
+ -1, 2346, 2347, -1, -1, -1, 114, -1, -1, -1,
+ -1, -1, -1, 121, 901, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2046, -1, -1,
+ -1, -1, 919, -1, -1, -1, -1, -1, -1, 147,
+ -1, 928, -1, -1, 2063, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 942, 1605, -1, 1607, -1,
+ 261, 1610, -1, 1612, -1, 266, 1615, 1616, 1617, -1,
+ -1, -1, 1621, -1, 961, -1, -1, -1, 261, 1628,
+ -1, -1, -1, 266, -1, -1, -1, 288, 289, -1,
+ -1, -1, -1, 980, 1643, -1, 1645, 3638, -1, 986,
+ -1, 1650, 303, -1, -1, 288, 289, -1, -1, -1,
+ -1, 998, -1, -1, -1, 3656, 2135, -1, -1, -1,
+ 303, -1, 3663, 2468, 5374, -1, 2471, -1, -1, 3670,
+ -1, 3672, 3673, -1, -1, -1, -1, -1, -1, 5389,
+ 1027, -1, -1, 344, -1, -1, -1, -1, -1, 2168,
+ -1, 2496, -1, 261, -1, 1042, -1, 358, 266, -1,
+ 361, 344, -1, 1050, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6314, -1, -1, 358, -1, 1064, 361, -1,
+ 288, 289, -1, -1, 2203, -1, -1, -1, -1, -1,
+ -1, -1, -1, 1080, -1, 303, 3737, -1, -1, -1,
+ -1, -1, 3743, 80, -1, -1, 83, 2226, -1, -1,
+ 87, 88, 89, -1, -1, 2234, -1, -1, -1, -1,
+ -1, -1, -1, 2242, -1, -1, 1775, 104, -1, -1,
+ 5480, -1, -1, -1, -1, -1, 344, 114, 1787, 1788,
+ -1, -1, -1, -1, 121, -1, -1, -1, -1, 450,
+ 358, -1, -1, 361, 1141, 1804, -1, -1, -1, -1,
+ 1809, 1810, -1, -1, -1, -1, -1, 450, -1, -1,
+ 147, -1, -1, -1, -1, -1, -1, -1, 80, -1,
+ -1, 83, -1, -1, -1, 87, 88, 89, -1, 3830,
+ -1, -1, 1179, -1, 1181, -1, 1183, -1, -1, -1,
+ -1, -1, 104, 2322, 2323, -1, -1, -1, -1, -1,
+ -1, -1, 114, -1, -1, -1, -1, 2336, -1, 121,
+ -1, 1208, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2349, 2350, -1, 1220, -1, -1, -1, -1, 1887, -1,
+ 1889, -1, 450, -1, -1, 147, -1, -1, -1, 550,
+ 1899, -1, -1, -1, -1, -1, -1, 558, 559, 560,
+ 561, 562, 563, 564, 565, 566, -1, 550, -1, -1,
+ 571, -1, -1, -1, -1, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, 261, 1272, 1273, -1, 571, 266,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3945, 3946, -1, -1, -1, -1,
+ -1, 288, 289, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 303, -1, -1, 1978,
+ -1, 3972, -1, -1, 3975, -1, 5686, -1, 5688, 1988,
+ -1, -1, 550, -1, -1, -1, -1, -1, -1, -1,
+ 558, 559, 560, 561, 562, 563, 564, 565, 566, 261,
+ -1, -1, -1, 571, 266, -1, -1, 344, -1, 80,
+ 1357, 1358, 83, -1, -1, -1, 87, 88, 89, -1,
+ -1, 358, -1, -1, 361, -1, 288, 289, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1383, 2516, -1, -1,
+ -1, 303, 1389, 114, -1, -1, 4047, 4048, 4049, -1,
+ 121, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2071, -1, -1, 2074, 2075, -1, -1, -1,
+ -1, 4072, -1, -1, -1, -1, 147, -1, -1, -1,
+ -1, -1, 344, -1, -1, -1, 94, -1, -1, -1,
+ 4091, -1, 100, -1, -1, -1, 358, -1, -1, 361,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4112, -1, 450, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 80, -1, 5839,
+ 83, -1, -1, -1, 87, 88, 89, 145, -1, -1,
+ -1, -1, -1, 2948, -1, 80, -1, -1, 83, -1,
+ -1, 104, 87, 88, 89, -1, -1, -1, -1, -1,
+ -1, 114, -1, -1, -1, -1, -1, -1, 121, 104,
+ -1, -1, -1, 108, -1, -1, 2185, -1, -1, 114,
+ -1, -1, -1, -1, -1, -1, 121, -1, 450, -1,
+ 261, -1, -1, 201, 147, 266, -1, -1, 4199, -1,
+ 208, -1, -1, 211, -1, -1, -1, -1, -1, -1,
+ 1557, -1, 147, 550, -1, -1, -1, 288, 289, -1,
+ -1, 558, 559, 560, 561, 562, 563, 564, 565, 566,
+ 238, -1, 303, -1, 571, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4246, -1, -1, -1, -1,
+ -1, 4252, 80, 4254, -1, 83, -1, -1, -1, 87,
+ 88, 89, -1, 198, 272, -1, 4267, -1, 4269, -1,
+ -1, -1, -1, 344, -1, -1, 104, 5987, -1, 5989,
+ -1, -1, -1, -1, -1, -1, 114, 358, 550, -1,
+ 1637, -1, -1, 121, -1, -1, 558, 559, 560, 561,
+ 562, 563, 564, 565, 566, -1, 1653, -1, 261, 571,
+ -1, -1, -1, 266, -1, -1, -1, -1, 3123, 147,
+ 1667, -1, 3127, 3128, 1671, -1, 261, -1, -1, 337,
+ -1, 266, -1, 341, -1, 288, 289, 4338, -1, -1,
+ -1, -1, -1, 351, -1, -1, -1, -1, -1, -1,
+ 303, -1, 360, 288, 289, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 372, 2374, -1, 2376, 303, -1,
+ -1, 2380, -1, 2382, -1, -1, 2385, -1, -1, 450,
+ 2389, -1, 3187, -1, -1, 2394, -1, -1, 3193, -1,
+ -1, 344, -1, -1, -1, -1, -1, -1, 4399, -1,
+ -1, -1, -1, 411, -1, 358, 414, 415, 361, 344,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4421, -1, -1, 358, -1, -1, 361, -1, -1, 3234,
+ -1, -1, -1, 261, -1, -1, -1, 445, 266, -1,
+ -1, -1, 4443, -1, -1, 4446, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1801, -1, -1, -1, -1, -1,
+ 288, 289, 1809, 1810, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 303, -1, 80, -1, 550,
+ 83, -1, -1, -1, 87, 88, 89, 558, 559, 560,
+ 561, 562, 563, 564, 565, 566, -1, 450, -1, -1,
+ -1, 104, -1, -1, -1, 513, -1, -1, -1, -1,
+ -1, 114, -1, -1, -1, 450, 344, -1, 121, -1,
+ -1, 1868, 3001, -1, -1, 4526, -1, -1, -1, -1,
+ 358, -1, -1, 361, 6244, -1, -1, -1, -1, -1,
+ -1, -1, 1889, -1, 147, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 510, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1938, 3071, -1, 3073, -1, -1, 550, -1, -1,
+ -1, -1, 1949, -1, 3409, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, 3093, 550, -1, -1, 571, -1,
+ -1, -1, 450, 558, 559, 560, 561, 562, 563, 564,
+ 565, 566, -1, -1, -1, -1, 3441, 3116, -1, -1,
+ -1, -1, -1, 1990, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6364, 3134, -1, -1, 261, -1,
+ 3139, 3140, -1, 266, -1, 3144, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3153, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 288, 289, -1, -1, -1,
+ -1, -1, 3171, -1, -1, -1, -1, -1, -1, 2046,
+ 303, 4702, -1, -1, -1, -1, -1, -1, -1, 3514,
+ -1, -1, -1, 3518, -1, -1, 2063, -1, -1, -1,
+ -1, -1, 550, -1, -1, -1, 3205, -1, -1, -1,
+ 558, 559, 560, 561, 562, 563, 564, 565, 566, 3218,
+ -1, 344, -1, 571, -1, -1, 3225, 3226, -1, -1,
+ -1, -1, 4753, -1, -1, 358, -1, 4758, 361, 4760,
+ -1, -1, -1, 6473, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3256, 3257, -1,
+ -1, 3260, -1, 4784, -1, -1, -1, -1, 2135, -1,
+ -1, -1, -1, -1, 6504, 6505, -1, -1, -1, -1,
+ -1, -1, -1, 3282, -1, 3284, -1, -1, -1, 3288,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 94, 2168, -1, 3302, -1, -1, 100, -1, 3307, 4830,
+ 3309, -1, 4833, 3312, -1, -1, -1, -1, -1, 3318,
+ -1, -1, -1, -1, -1, -1, -1, 450, -1, 3654,
+ -1, -1, -1, -1, -1, -1, 2203, -1, -1, 3338,
+ -1, -1, -1, -1, 3669, 3344, -1, -1, -1, 3674,
+ -1, 145, 3351, -1, 80, -1, -1, 83, -1, 2226,
+ -1, 87, 88, 89, -1, -1, 3365, 2234, -1, -1,
+ -1, -1, -1, -1, -1, 2242, -1, -1, 104, 3378,
+ -1, -1, -1, -1, 3383, -1, -1, -1, 114, -1,
+ 3389, -1, -1, -1, -1, 121, -1, -1, -1, -1,
+ -1, 6631, 4923, 4924, -1, -1, -1, 201, -1, -1,
+ -1, -1, -1, 4934, 208, 2944, -1, 211, -1, -1,
+ -1, 147, 2951, -1, -1, -1, -1, 550, -1, -1,
+ 4951, -1, 2961, -1, -1, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, 238, -1, -1, -1, 571, -1,
+ 3449, -1, -1, -1, -1, 2322, 2323, -1, -1, -1,
+ 5, -1, -1, -1, -1, -1, -1, -1, -1, 2336,
+ -1, -1, -1, -1, -1, -1, -1, -1, 272, 24,
+ -1, -1, 2349, 2350, -1, -1, -1, -1, -1, 34,
+ 35, -1, -1, 94, -1, -1, 41, 42, 5019, 100,
+ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
+ 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, -1, -1, 5048, 73, -1,
+ 75, 76, -1, -1, -1, 261, 81, -1, -1, -1,
+ 266, -1, -1, 337, 145, 94, -1, 341, -1, -1,
+ -1, 100, -1, -1, -1, -1, -1, 351, -1, -1,
+ 3089, -1, 288, 289, 3093, -1, 360, -1, -1, -1,
+ 3099, -1, 3101, -1, -1, 3104, -1, 303, 372, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 138, 3919, -1, 145, 3922, -1, 3924,
+ 201, -1, -1, -1, 3929, -1, -1, 208, -1, -1,
+ 211, -1, -1, -1, -1, -1, -1, 411, 344, -1,
+ 414, 415, -1, -1, 3153, -1, -1, -1, -1, -1,
+ -1, -1, 358, -1, -1, 361, -1, 238, -1, 3638,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2516,
+ -1, 445, 201, 3978, -1, -1, -1, 3656, -1, 208,
+ -1, 3986, 211, -1, 3663, -1, -1, -1, -1, -1,
+ 215, 272, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4011, -1, -1, 238,
+ 235, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 80, -1, -1, 83, -1, -1, -1, 87, 88,
+ 89, -1, -1, 258, -1, -1, -1, -1, -1, 513,
+ -1, -1, -1, 272, 450, 104, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 114, 337, 282, 3737, -1,
+ 341, -1, 121, -1, 3743, -1, -1, -1, -1, -1,
+ 351, -1, -1, -1, 5275, -1, 4081, -1, 4083, 360,
+ -1, -1, -1, -1, -1, -1, -1, -1, 147, -1,
+ -1, 372, 1037, -1, -1, -1, 321, -1, -1, 324,
+ -1, -1, -1, -1, -1, -1, -1, -1, 337, -1,
+ -1, -1, 341, -1, -1, 3324, 5317, -1, 1063, -1,
+ -1, 346, 351, 3332, -1, -1, 3335, -1, 5329, -1,
+ 411, 360, -1, 414, 415, -1, -1, -1, 3347, -1,
+ -1, -1, -1, 372, 550, -1, -1, -1, -1, -1,
+ -1, 3830, 558, 559, 560, 561, 562, 563, 564, 565,
+ 566, -1, 5363, -1, 445, 571, -1, 80, -1, -1,
+ 83, -1, 4177, -1, 87, 88, 89, -1, 237, -1,
+ -1, -1, 411, 242, -1, 414, 415, -1, -1, -1,
+ -1, 104, -1, -1, -1, -1, -1, -1, -1, 4204,
+ -1, 114, 261, -1, -1, 4210, -1, 266, 121, -1,
+ -1, 436, -1, -1, 4219, -1, 445, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 288,
+ 289, -1, 513, -1, 147, -1, -1, -1, -1, -1,
+ 5441, -1, 4247, -1, 303, -1, -1, -1, 80, -1,
+ -1, 83, -1, -1, -1, 87, 88, 89, -1, 5460,
+ -1, 486, -1, -1, -1, -1, 3945, 3946, -1, -1,
+ -1, -1, 104, -1, -1, -1, -1, 502, -1, -1,
+ -1, -1, 114, -1, 513, 344, -1, -1, -1, 121,
+ -1, -1, 517, 3972, -1, -1, 3975, -1, -1, 358,
+ -1, -1, 361, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4317, -1, -1, 147, -1, -1, -1, -1,
+ -1, -1, 547, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4339, 560, 561, 562, 563, 564,
+ 565, -1, -1, 568, 569, 570, 571, -1, 261, -1,
+ 575, -1, -1, 266, -1, -1, 5557, -1, 4363, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4047, 4048,
+ 4049, -1, -1, -1, -1, 288, 289, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 303, 450, -1, 4072, -1, -1, -1, -1, -1, -1,
+ 3609, 3610, -1, -1, 236, -1, -1, -1, -1, -1,
+ -1, -1, 4091, -1, -1, -1, -1, -1, 3627, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 261,
+ -1, 344, -1, 4112, 266, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 167, 358, -1, -1, 361, -1,
+ -1, -1, -1, -1, 1399, -1, 288, 289, -1, -1,
+ -1, 4466, -1, -1, -1, 1410, -1, -1, -1, -1,
+ -1, 303, -1, 386, -1, -1, -1, 5678, -1, 5680,
+ -1, 1426, -1, -1, 4489, -1, -1, -1, -1, -1,
+ -1, 550, -1, -1, -1, 218, -1, -1, -1, 558,
+ 559, 560, 561, 562, 563, 564, 565, 566, 231, 4514,
+ -1, -1, 344, -1, 237, -1, -1, -1, -1, 242,
+ 4199, -1, -1, -1, 5725, 248, 358, -1, 251, 361,
+ -1, -1, 255, -1, 5735, -1, 80, 450, -1, 83,
+ -1, -1, -1, 87, 88, 89, 3093, -1, -1, -1,
+ -1, -1, 384, -1, 467, -1, -1, -1, -1, -1,
+ 104, 284, -1, 107, -1, -1, -1, 4246, -1, 3116,
+ 114, -1, 1517, 4252, 5775, 4254, -1, 121, -1, 5780,
+ -1, 304, -1, -1, -1, -1, -1, 3134, 4267, -1,
+ 4269, -1, 3139, 3140, -1, -1, -1, 3144, -1, -1,
+ -1, -1, -1, 147, -1, -1, 3153, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3825, -1, 450, -1,
+ -1, 3830, -1, -1, 3171, -1, -1, -1, -1, -1,
+ 353, -1, -1, 356, -1, -1, -1, 550, -1, 362,
+ -1, -1, -1, -1, -1, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, -1, -1, -1, -1, 3205, 4338,
+ -1, -1, -1, -1, 4669, -1, -1, -1, -1, -1,
+ -1, 3218, -1, -1, -1, -1, -1, -1, 3225, 3226,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 419, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1651, -1, -1, 3256,
+ 3257, -1, -1, 3260, -1, -1, -1, 261, 550, -1,
+ 4399, -1, 266, -1, -1, -1, 558, 559, 560, 561,
+ 562, 563, 564, 565, 566, 3282, -1, 3284, -1, -1,
+ -1, 3288, 4421, -1, 288, 289, -1, -1, -1, -1,
+ -1, 474, -1, -1, 4759, 3302, -1, -1, -1, 303,
+ 3307, -1, 3309, -1, 4443, 3312, -1, 4446, -1, -1,
+ -1, 3318, -1, -1, -1, -1, -1, -1, -1, 502,
+ 4785, -1, 5983, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3338, -1, -1, -1, -1, 5997, 3344, -1, -1,
+ 344, -1, -1, 526, 3351, 528, 529, -1, -1, -1,
+ -1, -1, -1, -1, 358, -1, -1, 361, 3365, -1,
+ -1, -1, -1, -1, -1, -1, -1, 6028, -1, -1,
+ -1, 3378, -1, -1, -1, -1, 3383, -1, -1, -1,
+ -1, -1, 3389, -1, -1, 568, -1, 4526, 571, 572,
+ -1, 574, -1, -1, -1, -1, -1, -1, -1, 1804,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 110, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5, -1, 133, -1,
+ -1, -1, 3449, -1, -1, -1, 450, -1, -1, -1,
+ -1, -1, -1, -1, -1, 24, -1, -1, -1, -1,
+ -1, 156, 4927, -1, -1, 34, 35, -1, -1, -1,
+ -1, -1, 41, 42, -1, -1, 45, 46, 47, 48,
+ 49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
+ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68,
+ 69, -1, -1, -1, 73, -1, 75, 76, -1, -1,
+ 205, 4976, 81, -1, 4979, -1, -1, -1, 213, -1,
+ 215, -1, -1, -1, -1, -1, -1, 1932, -1, -1,
+ -1, -1, -1, 228, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6203, -1, 6205, -1, 550, -1, -1, -1,
+ -1, -1, -1, -1, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, 4702, -1, -1, -1, -1, -1, 138,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4247, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2000, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4753, -1, -1, -1, -1, 4758,
+ -1, 4760, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3638, 2037, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4312, -1, 4784, 215, -1, -1, 3656,
+ 6311, -1, -1, -1, -1, -1, 3663, -1, -1, -1,
+ -1, -1, 5127, -1, -1, 2070, 235, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6336, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6349, 258,
+ -1, 4830, 4361, -1, 4833, -1, -1, -1, -1, -1,
+ -1, 6362, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 282, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3737, -1, -1, -1, -1, -1, 3743, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 321, -1, -1, 324, -1, -1, -1, -1,
+ 6421, 6422, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2180, -1, 346, -1, -1,
+ -1, -1, -1, 4452, 4923, 4924, 2191, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4934, -1, 5262, -1, -1,
+ -1, -1, 2207, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4951, -1, -1, -1, -1, -1, 6479, -1,
+ -1, -1, -1, 3830, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5300, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2260, -1, 5322, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 436, -1, -1,
+ -1, -1, -1, -1, -1, -1, 2281, -1, -1, -1,
+ 5019, -1, -1, -1, -1, -1, -1, -1, -1, 2294,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2306, -1, -1, -1, -1, -1, -1, -1, 5048,
+ -1, -1, -1, -1, -1, -1, 80, 486, -1, 83,
+ -1, -1, -1, 87, 88, 89, -1, -1, -1, 5394,
+ -1, -1, -1, 502, -1, -1, -1, -1, 3945, 3946,
+ 104, 2346, 2347, -1, -1, -1, -1, -1, 517, -1,
+ 114, -1, -1, -1, -1, -1, -1, 121, -1, -1,
+ -1, -1, -1, -1, -1, 3972, -1, -1, 3975, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 547, -1,
+ 6641, -1, -1, 147, -1, -1, -1, -1, -1, 4658,
+ -1, 560, 561, 562, 563, 564, 565, -1, -1, 568,
+ 569, 570, 571, -1, -1, -1, 575, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 6690,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6699, 6700,
+ 4047, 4048, 4049, -1, -1, -1, -1, -1, 6709, 5514,
+ -1, 5516, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4072, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 80, -1, -1, 83, 4091, -1, -1, 87, 88, 89,
+ 4759, 2496, -1, -1, -1, -1, -1, 261, -1, -1,
+ -1, -1, 266, -1, 104, 4112, -1, 107, -1, -1,
+ -1, -1, -1, 5, 114, -1, 4785, -1, -1, -1,
+ 1037, 121, -1, -1, 288, 289, -1, -1, -1, -1,
+ 4799, -1, 24, -1, -1, -1, 5275, -1, -1, 303,
+ -1, 4810, 34, 35, -1, -1, 1063, 147, -1, 41,
+ 42, -1, -1, 45, 46, 47, 48, 49, 50, 51,
+ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
+ 62, 63, 64, 65, 66, 67, 68, 69, 5317, -1,
+ 344, 73, -1, 75, 76, -1, -1, -1, -1, 81,
+ 5329, -1, 4199, -1, 358, -1, -1, 361, -1, -1,
+ -1, -1, -1, -1, -1, -1, 901, -1, -1, -1,
+ -1, -1, -1, -1, 909, -1, 380, -1, -1, -1,
+ -1, -1, -1, 918, 5363, -1, -1, -1, -1, -1,
+ -1, 926, -1, -1, 929, -1, -1, -1, -1, 4246,
+ -1, -1, -1, -1, -1, 4252, 138, 4254, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5724,
+ 4267, 261, 4269, -1, -1, -1, 266, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 450, -1, 288, 289,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5441, 303, -1, -1, -1, 4976, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5460, -1, 215, -1, -1, 80, -1, -1, 83,
+ -1, 4338, -1, 87, 88, 89, -1, 1032, -1, -1,
+ -1, -1, 1037, 235, 344, -1, 1041, -1, -1, -1,
+ 104, -1, -1, 1048, -1, -1, 1051, -1, 358, -1,
+ 114, 361, -1, -1, -1, -1, 258, 121, 1063, -1,
+ -1, -1, -1, -1, 5043, -1, -1, -1, -1, 5844,
+ -1, -1, -1, -1, -1, -1, 550, -1, -1, -1,
+ 282, -1, 4399, 147, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4421, -1, -1, -1, 5557, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 321,
+ -1, -1, 324, -1, -1, -1, 4443, -1, -1, 4446,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 450, 5916, -1, -1, 346, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1172, 1173, -1,
+ -1, -1, 1399, -1, 1179, -1, -1, -1, 1183, -1,
+ -1, -1, -1, 1410, -1, -1, -1, -1, -1, -1,
+ 5965, -1, -1, -1, -1, 5970, 5971, 261, -1, 1426,
+ -1, -1, 266, -1, -1, 1210, -1, -1, -1, 4526,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5198,
+ -1, -1, -1, -1, 288, 289, -1, -1, -1, 5678,
+ -1, 5680, -1, -1, 436, -1, -1, -1, -1, 303,
+ 550, -1, -1, -1, -1, -1, -1, -1, 558, 559,
+ 560, 561, 562, 563, 564, 565, 566, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5725, -1, -1, -1,
+ 344, -1, -1, -1, 486, -1, -1, -1, -1, -1,
+ 1517, -1, -1, -1, 358, -1, -1, 361, -1, -1,
+ 502, -1, -1, -1, 5283, -1, -1, -1, 6083, 6084,
+ 5289, -1, -1, -1, 5293, 517, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5775, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 547, -1, 80, -1, -1,
+ 83, -1, 1357, 1358, 87, 88, 89, -1, 560, 561,
+ 562, 563, 564, 565, -1, -1, 568, 569, 570, -1,
+ -1, 104, -1, 575, -1, -1, 1381, 1382, 1383, -1,
+ -1, 114, -1, -1, -1, 4702, 450, -1, 121, 1394,
+ -1, -1, -1, -1, 1399, 1400, -1, -1, -1, 1404,
+ -1, 1406, -1, -1, -1, 1410, -1, -1, 3123, -1,
+ -1, -1, 3127, 3128, 147, -1, -1, -1, 482, -1,
+ -1, 1426, -1, -1, 1651, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4753, -1, -1, -1,
+ -1, 4758, -1, 4760, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 1468, -1, 1470, 1471, 4784, -1, -1,
+ -1, -1, 3187, -1, -1, -1, -1, -1, 3193, -1,
+ -1, -1, -1, -1, -1, -1, 550, -1, -1, -1,
+ -1, -1, -1, -1, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, -1, -1, -1, -1, -1, -1, 242,
+ -1, -1, 1517, 4830, -1, -1, 4833, -1, -1, 3234,
+ -1, -1, -1, -1, -1, -1, -1, -1, 261, -1,
+ -1, -1, -1, 266, 5983, -1, -1, -1, -1, 6314,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5997, -1,
+ -1, -1, -1, -1, -1, 288, 289, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 303, -1, -1, -1, -1, -1, -1, -1, -1, 6028,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1596, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4923, 4924, -1, -1,
+ -1, 344, -1, -1, -1, -1, -1, 4934, -1, -1,
+ -1, -1, -1, -1, -1, 358, -1, -1, 361, -1,
+ -1, -1, -1, -1, 4951, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1651, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1682, -1, -1,
+ -1, -1, 80, 5662, -1, 83, -1, -1, -1, 87,
+ 88, 89, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1932, 104, 1712, -1, 107,
+ -1, -1, -1, -1, -1, -1, 114, 450, -1, -1,
+ -1, -1, -1, 121, -1, -1, 3441, -1, -1, -1,
+ -1, 5048, -1, -1, -1, 1740, 1741, 1742, -1, 1744,
+ -1, -1, -1, -1, -1, 5724, -1, -1, -1, 147,
+ -1, -1, -1, -1, 6203, -1, 6205, -1, -1, 1764,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 2000, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3514,
+ -1, -1, -1, 3518, -1, -1, -1, -1, -1, -1,
+ 2037, -1, -1, -1, -1, -1, -1, 550, -1, -1,
+ -1, -1, -1, -1, -1, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, -1, -1, -1, 1842, -1, 5818,
+ -1, 1846, 1847, 2070, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1862, -1, -1,
+ -1, 94, 6311, 261, -1, -1, -1, 100, 266, -1,
+ -1, -1, -1, -1, 107, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 6336, -1, -1,
+ 288, 289, -1, -1, -1, -1, 129, -1, -1, -1,
+ -1, -1, -1, 6678, -1, 303, -1, -1, -1, -1,
+ -1, -1, 145, 6362, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1932, -1, -1,
+ -1, -1, -1, 1938, -1, -1, -1, -1, -1, 3654,
+ -1, -1, -1, -1, 1949, -1, 344, 180, -1, -1,
+ -1, -1, -1, 2180, 3669, -1, -1, -1, 5275, 3674,
+ 358, -1, -1, 361, 2191, -1, -1, -1, 201, -1,
+ -1, -1, -1, -1, -1, 208, -1, -1, 211, -1,
+ 2207, -1, -1, -1, -1, 1990, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2000, -1, -1, -1, -1,
+ 5317, -1, -1, -1, -1, 238, -1, -1, -1, -1,
+ -1, -1, 5329, -1, -1, -1, -1, -1, 5997, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 6479, -1, 2037, 2260, -1, -1, 269, -1, -1, 272,
+ -1, 2046, -1, -1, -1, -1, 5363, -1, -1, -1,
+ -1, -1, 450, -1, 2281, -1, -1, -1, 2063, -1,
+ -1, -1, -1, -1, -1, 2070, -1, 2294, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2306,
+ -1, -1, -1, -1, -1, 318, -1, -1, -1, 322,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 337, -1, -1, -1, 341, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 351, 2346,
+ 2347, -1, -1, -1, 5441, -1, 6105, 360, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 371, 372,
+ -1, -1, -1, 5460, -1, -1, 2151, 2152, 2153, -1,
+ -1, -1, 550, -1, -1, -1, -1, -1, -1, -1,
+ 558, 559, 560, 561, 562, 563, 564, 565, 566, -1,
+ -1, -1, -1, -1, -1, 2180, -1, -1, 411, -1,
+ -1, 414, 415, 416, -1, -1, 2191, -1, -1, -1,
+ -1, -1, 6641, -1, -1, -1, -1, -1, 2203, -1,
+ -1, -1, 2207, -1, 3919, -1, 439, 3922, -1, 3924,
+ -1, -1, 445, -1, 3929, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 459, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5557, 6690, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2260, -1, -1, -1, -1,
+ 6709, -1, -1, 3978, -1, -1, -1, -1, -1, 2496,
+ 2275, 3986, -1, 2278, -1, -1, 2281, -1, -1, -1,
+ 513, -1, -1, 2288, -1, -1, -1, -1, -1, 2294,
+ -1, -1, -1, -1, -1, -1, 4011, -1, -1, -1,
+ -1, 2306, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2319, 2320, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2334,
+ -1, -1, 2337, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2346, 2347, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5678, -1, 5680, -1, -1, 4081, -1, 4083, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3, -1, -1, -1, -1,
+ 8, -1, -1, -1, 12, -1, 14, -1, 16, 17,
+ 2405, -1, -1, -1, 2409, 2410, -1, -1, 5725, 27,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 43, 44, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2446, 2447, -1, -1, -1, -1, 2452, 2453, -1,
+ -1, -1, -1, -1, 2459, 2460, 2461, -1, 5775, 2464,
+ -1, 2466, 4177, 2468, 2469, 2470, 2471, 2472, 2473, -1,
+ -1, 2476, 90, 2478, 2479, -1, -1, 2482, -1, -1,
+ -1, -1, 100, -1, 102, 103, -1, -1, -1, -1,
+ -1, 2496, 2497, 2498, 2499, -1, -1, -1, -1, -1,
+ -1, -1, 120, -1, 4219, -1, -1, -1, -1, 2514,
+ -1, 2516, 130, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 142, -1, 144, 145, -1, -1,
+ -1, -1, 4247, 151, -1, 153, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 165, -1, 167,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 182, -1, 184, -1, -1, 187,
+ -1, 80, -1, -1, 83, -1, -1, -1, 87, 88,
+ 89, -1, -1, -1, 202, -1, 204, -1, -1, -1,
+ 208, -1, -1, -1, -1, 104, 214, -1, 107, -1,
+ -1, -1, 4317, -1, 222, 114, 224, -1, -1, -1,
+ -1, -1, 121, 231, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4339, -1, -1, -1, -1, -1,
+ 248, -1, -1, -1, -1, -1, -1, -1, 147, -1,
+ -1, -1, -1, -1, -1, -1, -1, 265, 4363, -1,
+ -1, -1, 2657, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5983, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5997, -1, -1, -1, -1, -1, -1, 305, 306, -1,
+ -1, -1, 2697, 311, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 325, -1, -1,
+ -1, 6028, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 80, 343, -1, 83, -1, -1,
+ -1, 87, 88, 89, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2750, -1, -1, 104, -1,
+ -1, 4466, 261, -1, -1, -1, -1, 266, 114, -1,
+ -1, -1, -1, -1, -1, 121, -1, -1, -1, 387,
+ -1, -1, -1, -1, 4489, -1, -1, -1, -1, 288,
+ 289, -1, -1, 401, -1, -1, -1, -1, -1, 407,
+ 408, 147, 410, -1, 303, -1, -1, 415, -1, 4514,
+ -1, -1, -1, 421, -1, -1, 424, -1, -1, -1,
+ -1, -1, -1, 431, 80, -1, -1, 83, -1, 437,
+ 438, 87, 88, 89, -1, -1, -1, 445, -1, -1,
+ -1, 449, -1, -1, -1, 344, -1, -1, 104, -1,
+ -1, 459, -1, -1, -1, -1, -1, -1, 114, 358,
+ -1, -1, 361, -1, -1, 121, 474, -1, -1, -1,
+ 216, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 494, -1, 496, -1,
+ -1, 147, -1, -1, -1, -1, 6203, 505, 6205, -1,
+ -1, -1, -1, 511, -1, -1, 3123, -1, 516, -1,
+ 3127, 3128, -1, -1, -1, 261, -1, -1, -1, -1,
+ 266, 529, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, -1,
+ 2935, -1, 288, 289, 552, -1, -1, -1, -1, -1,
+ 2945, 450, -1, 2948, -1, -1, -1, 303, -1, -1,
+ -1, -1, 570, -1, 4669, -1, 574, -1, -1, -1,
+ 3187, -1, -1, -1, -1, -1, 3193, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 242, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 344, -1,
+ -1, -1, -1, -1, 6311, 261, -1, -1, -1, 3004,
+ 266, -1, 358, 3008, -1, 361, 3011, 3234, 3013, -1,
+ -1, 3016, -1, -1, -1, -1, -1, -1, -1, 6336,
+ -1, -1, 288, 289, -1, -1, 3031, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3040, 3041, 303, -1, -1,
+ -1, 550, -1, -1, 4759, 6362, -1, -1, -1, 558,
+ 559, 560, 561, 562, 563, 564, 565, 566, -1, 80,
+ -1, -1, 83, -1, -1, -1, 87, 88, 89, -1,
+ 4785, -1, -1, -1, -1, -1, -1, -1, 344, -1,
+ -1, -1, -1, 104, -1, -1, -1, -1, -1, -1,
+ -1, -1, 358, 114, 450, 361, -1, -1, -1, -1,
+ 121, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3123, -1,
+ -1, -1, 3127, 3128, -1, -1, 147, -1, -1, -1,
+ -1, -1, -1, 80, 3139, -1, 83, -1, -1, -1,
+ 87, 88, 89, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 104, -1, -1,
+ -1, -1, 6479, -1, -1, -1, -1, 114, -1, 3174,
+ -1, -1, -1, -1, 121, -1, -1, -1, -1, -1,
+ 3185, -1, 3187, 3188, 450, 3190, 3191, -1, 3193, -1,
+ -1, -1, -1, -1, 550, -1, -1, -1, -1, -1,
+ 147, -1, 558, 559, 560, 561, 562, 563, 564, 565,
+ 566, -1, 4927, 3218, 3441, -1, -1, -1, -1, -1,
+ -1, 242, -1, -1, -1, -1, -1, -1, -1, 3234,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 261, -1, -1, -1, -1, 266, -1, -1, -1, -1,
+ -1, 3256, -1, -1, -1, 3260, -1, -1, -1, -1,
+ -1, 4976, -1, -1, 4979, -1, -1, 288, 289, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3284,
+ -1, -1, 303, -1, 550, -1, -1, 3514, -1, -1,
+ 237, 3518, 558, 559, 560, 561, 562, 563, 564, 565,
+ 566, -1, 3307, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 261, -1, -1, -1, -1, 266,
+ -1, -1, -1, 344, 6641, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 358, -1, -1,
+ 361, 288, 289, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 303, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 6690, -1, -1, -1, -1, 3383, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6709, -1, -1, -1, -1, 344, -1, -1,
+ -1, -1, 3407, 3408, 3409, -1, -1, -1, 3413, -1,
+ -1, 358, 5127, -1, 361, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3654, -1, 450,
+ -1, -1, -1, -1, -1, 3440, 3441, -1, -1, -1,
+ -1, -1, 3669, -1, 3449, -1, -1, 3674, 80, -1,
+ -1, 83, -1, -1, -1, 87, 88, 89, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 104, -1, -1, -1, -1, 3482, -1, -1,
+ -1, -1, 114, -1, -1, -1, -1, -1, -1, 121,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 450, -1, -1, -1, -1, -1, 3514,
+ -1, -1, -1, 3518, -1, 147, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 550,
+ -1, -1, -1, -1, -1, 3540, -1, 558, 559, 560,
+ 561, 562, 563, 564, 565, 566, -1, 5262, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5300, 80, -1, -1, 83,
+ -1, -1, -1, 87, 88, 89, -1, -1, -1, -1,
+ -1, -1, -1, 550, -1, -1, -1, 5322, -1, -1,
+ 104, 558, 559, 560, 561, 562, 563, 564, 565, 566,
+ 114, -1, -1, -1, -1, -1, -1, 121, -1, 261,
+ -1, -1, -1, -1, 266, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3654,
+ -1, -1, -1, 147, -1, -1, 288, 289, -1, -1,
+ -1, -1, 3667, -1, 3669, 3670, -1, 3672, 3673, 3674,
+ -1, 303, -1, -1, -1, -1, -1, 3682, -1, 5394,
+ -1, -1, 3687, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3919, -1, -1, 3922, -1, 3924, -1, -1,
+ -1, -1, 3929, -1, -1, -1, -1, -1, 3713, 3714,
+ 3715, -1, 344, 3718, -1, -1, -1, -1, -1, -1,
+ -1, 3726, 3727, 3728, 3729, -1, 358, -1, -1, 361,
+ -1, -1, 3737, -1, -1, -1, -1, 3742, 3743, -1,
+ 3745, -1, 3747, 237, -1, -1, -1, -1, -1, -1,
+ -1, 3978, -1, 3758, 3759, -1, -1, 3762, -1, 3986,
+ -1, -1, -1, -1, -1, -1, -1, 261, -1, -1,
+ -1, -1, 266, -1, -1, -1, 3781, -1, 3783, -1,
+ 3785, -1, -1, -1, 4011, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 288, 289, -1, -1, -1, -1,
+ 3805, 5516, -1, -1, -1, -1, -1, -1, -1, 303,
+ -1, 3816, 3, -1, -1, -1, -1, 8, 450, -1,
+ -1, 12, -1, 14, -1, 16, 17, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 27, -1, -1, -1,
+ -1, -1, 3847, -1, -1, -1, -1, -1, -1, -1,
+ 344, -1, 43, 44, 4081, -1, 4083, 3862, -1, -1,
+ -1, -1, -1, -1, 358, -1, -1, 361, -1, -1,
+ -1, 3876, -1, -1, -1, -1, -1, -1, -1, 3884,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 525, -1, -1, -1, -1, -1, 90,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 100,
+ -1, 102, 103, -1, 3919, -1, -1, 3922, 550, 3924,
+ -1, -1, -1, -1, 3929, -1, 558, 559, 560, 561,
+ 562, 563, 564, 565, 566, -1, -1, -1, -1, 130,
+ -1, -1, -1, -1, -1, -1, 3951, -1, -1, -1,
+ 4177, 142, -1, 144, 145, -1, 450, -1, -1, -1,
+ 151, -1, 153, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3978, 165, -1, 167, -1, -1, -1,
+ -1, 3986, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 182, 4219, 184, -1, -1, 187, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4011, -1, -1, 5724,
+ -1, 202, -1, 204, -1, -1, -1, 208, -1, -1,
+ 4247, -1, -1, 214, -1, -1, -1, -1, -1, -1,
+ -1, 222, -1, 224, -1, -1, -1, -1, -1, -1,
+ 231, -1, 4047, 4048, 4049, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 550, 248, -1, -1,
+ -1, -1, -1, -1, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, -1, 265, -1, 4081, -1, 4083, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4317, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4339, -1, 305, 306, -1, -1, -1, -1,
+ 311, -1, -1, -1, -1, -1, -1, -1, -1, 5844,
+ -1, -1, -1, -1, 325, -1, 4363, 80, -1, -1,
+ 83, -1, -1, -1, 87, 88, 89, -1, -1, -1,
+ -1, -1, 343, -1, -1, -1, -1, -1, -1, -1,
+ -1, 104, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 114, 4177, -1, -1, -1, -1, -1, 121, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 387, -1, -1, 4204,
+ -1, 5916, -1, -1, 147, 4210, -1, -1, -1, -1,
+ 401, -1, -1, -1, 4219, -1, 407, 408, -1, 410,
+ -1, -1, -1, -1, 415, -1, -1, 418, -1, -1,
+ 421, -1, -1, 424, -1, -1, -1, -1, -1, 4466,
+ 431, 4246, 4247, -1, -1, -1, 437, 438, -1, -1,
+ 5965, -1, -1, -1, 445, 5970, 5971, -1, 449, -1,
+ -1, -1, 4489, -1, -1, -1, -1, -1, 459, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 474, 4289, -1, -1, 4514, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 494, -1, 496, -1, -1, -1, -1,
+ -1, -1, 4317, -1, 505, -1, -1, -1, 261, -1,
+ 511, -1, -1, 266, -1, 516, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4339, -1, -1, -1, 529, -1,
+ -1, -1, -1, -1, -1, 288, 289, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4363, -1,
+ 303, 552, -1, -1, -1, -1, -1, -1, -1, 6084,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 570,
+ -1, -1, -1, 574, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 344, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 358, -1, -1, 361, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4669, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4463, -1,
+ -1, 4466, -1, -1, -1, -1, -1, 4472, -1, -1,
+ -1, -1, -1, -1, -1, 4480, -1, 4482, -1, -1,
+ 4485, -1, -1, -1, 4489, 4490, 4491, 4492, 4493, -1,
+ -1, 4496, 4497, 4498, 4499, 4500, 4501, 4502, 4503, 4504,
+ 4505, -1, -1, -1, 4509, 4510, 4511, 450, -1, 4514,
+ -1, -1, -1, -1, 4519, -1, -1, -1, -1, 4524,
+ -1, 4526, -1, 4528, -1, -1, -1, -1, -1, -1,
+ -1, 4536, 4759, -1, 4539, -1, 4541, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4551, -1, -1, 4554,
+ 4555, -1, -1, -1, 4559, 4560, -1, -1, 4785, -1,
+ 94, 4566, -1, -1, -1, -1, 100, -1, -1, -1,
+ -1, 4576, -1, 107, 4579, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4589, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 129, -1, -1, -1, 6314,
+ -1, -1, -1, -1, -1, -1, -1, 550, -1, 92,
+ -1, 145, -1, -1, -1, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, -1, -1, -1, 110, -1, -1,
+ -1, 4636, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 180, -1, 4653, -1,
+ -1, -1, 135, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4669, 148, -1, 201, 92, -1,
+ -1, -1, -1, 97, 208, -1, 4681, 211, -1, -1,
+ -1, 164, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 182,
+ 4927, -1, -1, -1, 238, 188, -1, -1, -1, -1,
+ -1, 135, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 206, 148, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 217, 269, -1, -1, 272, -1,
+ 164, -1, -1, 226, -1, -1, -1, -1, 4753, 4976,
+ -1, -1, 4979, 4758, 4759, 4760, 239, -1, 182, -1,
+ -1, -1, -1, -1, 247, -1, -1, -1, 251, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4784,
+ 4785, -1, 206, -1, 318, -1, -1, 270, 322, -1,
+ -1, -1, -1, 217, -1, -1, -1, -1, -1, -1,
+ -1, -1, 226, 337, -1, -1, -1, 341, -1, -1,
+ -1, -1, -1, -1, -1, 239, -1, 351, -1, -1,
+ 244, -1, -1, -1, 307, -1, 360, 251, -1, -1,
+ -1, -1, -1, -1, 317, -1, -1, 371, 372, -1,
+ -1, -1, -1, -1, -1, -1, 270, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 358, -1, 411, 361, -1,
+ 414, 415, 416, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4897, 317, -1, -1, -1, -1, -1, 382,
+ 5127, -1, -1, -1, -1, 439, -1, -1, -1, -1,
+ -1, 445, -1, 396, -1, -1, -1, -1, -1, -1,
+ 403, -1, 4927, -1, -1, 459, -1, -1, -1, -1,
+ -1, -1, -1, -1, 358, -1, 4941, 4942, -1, -1,
+ 423, -1, -1, -1, -1, -1, -1, 371, -1, 432,
+ -1, -1, -1, -1, -1, -1, 439, -1, 382, 442,
+ -1, -1, -1, -1, -1, -1, -1, -1, 392, 393,
+ -1, 4976, 396, -1, 4979, 4980, 4981, -1, 461, 513,
+ -1, -1, -1, -1, -1, 468, 4991, -1, -1, -1,
+ -1, 474, -1, -1, 477, 478, -1, 480, 481, 423,
+ -1, -1, 426, -1, -1, -1, 430, -1, 432, -1,
+ -1, -1, -1, 496, -1, 439, -1, -1, 442, -1,
+ 503, -1, -1, 506, -1, -1, 509, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5262, -1, 461, -1, 522,
+ -1, -1, -1, 97, 468, -1, -1, -1, -1, -1,
+ 474, -1, -1, 477, -1, -1, -1, 481, -1, -1,
+ -1, -1, -1, -1, -1, 489, -1, 491, -1, 5074,
+ -1, -1, 496, 5300, -1, -1, -1, -1, -1, -1,
+ 5085, -1, -1, -1, -1, 509, -1, -1, -1, -1,
+ -1, -1, -1, -1, 148, 5322, -1, -1, 522, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5113, -1,
+ 164, 5116, -1, -1, -1, -1, -1, -1, -1, 5124,
+ 5125, -1, 5127, -1, -1, -1, 5131, 5132, 182, -1,
+ -1, 5136, -1, -1, 188, 5140, -1, -1, 5143, 5144,
+ -1, -1, -1, 5148, -1, -1, -1, -1, -1, 5154,
+ -1, -1, 206, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5166, -1, 217, -1, -1, -1, 5394, -1, 5174,
+ -1, -1, 226, 5178, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 239, -1, -1, -1, -1,
+ 244, -1, -1, -1, -1, -1, -1, 251, -1, -1,
+ -1, -1, -1, 133, -1, -1, 5211, -1, -1, -1,
+ -1, -1, -1, -1, 5219, -1, 270, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 165, -1, -1, -1, 5244,
+ -1, 295, -1, -1, -1, -1, -1, -1, -1, -1,
+ 180, -1, -1, -1, -1, -1, -1, 5262, -1, 189,
+ -1, -1, -1, 317, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 204, -1, 206, -1, -1, -1,
+ 210, -1, -1, -1, -1, -1, -1, -1, -1, 5516,
+ 220, -1, -1, -1, -1, 5300, -1, -1, -1, 229,
+ -1, -1, -1, -1, 358, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5322, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 382, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 392, 393,
+ 5345, -1, 396, -1, -1, -1, -1, 5352, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 423,
+ -1, -1, 426, -1, -1, -1, 430, -1, 432, -1,
+ -1, -1, -1, -1, -1, 439, -1, -1, 442, 5394,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 461, -1, -1,
+ -1, -1, -1, -1, 468, 5420, -1, -1, -1, 473,
+ 474, -1, -1, 477, -1, -1, -1, 481, -1, -1,
+ -1, 5436, -1, -1, -1, -1, 5441, 491, -1, -1,
+ -1, -1, 496, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 509, -1, -1, -1, -1,
+ -1, -1, 5467, -1, -1, -1, -1, -1, 522, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5724, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5514,
+ -1, 5516, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5575, -1, -1, 5578, -1, -1, 5581, 5582, 5583, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5606, 5607, -1, -1, 5610, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5844, -1, -1,
+ 5625, -1, -1, -1, -1, -1, -1, 5632, -1, -1,
+ -1, -1, 5637, -1, -1, 5640, 5641, -1, -1, -1,
+ -1, -1, -1, 5648, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5669, -1, -1, 5672, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5684,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5916,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5724,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5735, -1, -1, -1, -1, -1, -1, -1, 5965, -1,
+ -1, -1, -1, 5970, 5971, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5775, -1, -1, -1, -1, 5780, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1037, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1063, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5841, -1, -1, 5844,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 6084, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5876, -1, -1, -1, 5880, -1, 5882, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5900, -1, -1, -1, -1,
+ -1, 5906, -1, -1, -1, 5910, -1, -1, -1, -1,
+ -1, 5916, 5917, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5965, -1, -1, -1, -1, 5970, 5971, -1, -1, -1,
+ 5975, -1, -1, -1, -1, -1, 5981, 5982, -1, 909,
+ 910, 911, -1, -1, 914, -1, -1, -1, 918, -1,
+ 920, -1, -1, 923, -1, -1, 926, -1, -1, 929,
+ -1, -1, 932, -1, 934, -1, -1, 937, -1, -1,
+ -1, 941, 6017, 943, -1, -1, -1, -1, -1, -1,
+ 6025, -1, -1, 6028, -1, -1, -1, -1, -1, -1,
+ -1, -1, 962, -1, -1, -1, -1, -1, 968, -1,
+ 970, -1, 972, -1, -1, 975, -1, -1, 6053, -1,
+ -1, -1, 982, -1, -1, -1, -1, 987, -1, 989,
+ -1, -1, -1, -1, -1, 995, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6083, 6084,
+ -1, -1, -1, -1, -1, -1, -1, 6314, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 1032, -1, 6109, -1, -1, -1, -1, -1,
+ 6115, 1041, -1, 6118, -1, 1045, 6121, -1, 1048, -1,
+ -1, 1051, -1, -1, -1, -1, -1, 6132, -1, -1,
+ -1, -1, -1, -1, 6139, -1, -1, 1067, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6157, -1, -1, -1, -1, 1399, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 1410, -1,
+ -1, -1, -1, 6178, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1426, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1127, 6203, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1144, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 1172, 1173, -1, -1, -1, -1, 1178, -1,
+ -1, -1, -1, -1, 6259, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1197, -1, -1,
+ -1, -1, 1202, -1, -1, 1517, -1, -1, -1, -1,
+ 1210, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1221, -1, -1, -1, -1, 6301, 6302, 6303, -1,
+ -1, -1, -1, -1, 1234, 6310, 6311, -1, -1, 6314,
+ -1, -1, -1, -1, 6319, -1, 6321, -1, 6323, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6333, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6349, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 1309,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 1320, -1, -1, -1, -1, 1325, 1326, -1, 6403, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6413, 1651,
+ -1, -1, -1, -1, -1, -1, 6421, 6422, -1, -1,
+ -1, -1, 6427, -1, -1, 6430, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6440, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6450, -1, -1, -1, -1,
+ -1, 1381, 1382, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1394, -1, 1396, -1, -1, -1,
+ 1400, -1, -1, 1403, 1404, -1, 1406, -1, -1, -1,
+ -1, 1411, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6503, -1,
+ -1, -1, -1, -1, 6509, 1435, -1, -1, -1, -1,
+ -1, 1441, 1442, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6527, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 1462, 1463, 1464, -1, 1466, 6542, 1468, -1,
+ 1470, 1471, 6547, -1, -1, -1, -1, 1477, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6570, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6601, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 6612, -1, -1,
+ -1, 6616, -1, -1, -1, -1, -1, -1, -1, -1,
+ 1550, -1, 1552, 1553, -1, -1, -1, -1, -1, 6634,
+ -1, -1, -1, -1, -1, -1, 6641, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1596, -1, -1, -1,
+ -1, -1, -1, 6678, 6679, -1, -1, 6682, -1, -1,
+ -1, 6686, -1, -1, -1, 6690, -1, -1, -1, -1,
+ 1932, -1, -1, -1, 6699, 6700, -1, -1, -1, -1,
+ 1630, -1, 1632, -1, 6709, -1, 1636, -1, 1638, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1657, -1, -1,
+ -1, -1, -1, 1663, -1, -1, 1666, -1, -1, 1669,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 1682, -1, -1, -1, -1, -1, 2000, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 1712, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2037, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 1740, 1741, 1742, -1, 1744, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2070, -1,
+ -1, -1, -1, -1, 1764, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1816, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 1842, -1, -1, -1, 1846, 1847, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1857, 1858, 1859,
+ 1860, -1, 1862, -1, -1, -1, -1, -1, 2180, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2191,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2207, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2260, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2281,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2294, -1, -1, 1985, -1, -1, -1, -1,
+ -1, -1, -1, 1993, 2306, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 2006, 2007, -1, -1,
+ -1, -1, -1, -1, -1, 2015, -1, -1, 2018, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2346, 2347, -1, -1, -1, -1,
+ -1, 2041, -1, 2043, -1, -1, -1, -1, -1, 2049,
+ 2050, -1, -1, 2053, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 2066, -1, -1, 2069,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2091, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2109,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2121, 2122, 2123, 2124, 2125, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2139,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2151, 2152, 2153, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2167, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2178, -1,
+ -1, -1, -1, -1, 2496, -1, 2186, 2187, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2202, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2220, 2221, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 2236, 2237, 2238, 2239,
+ -1, -1, -1, -1, -1, 2245, -1, -1, -1, -1,
+ -1, -1, 2252, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2275, -1, -1, 2278, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2288, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2319,
+ 2320, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2330, 2331, -1, -1, 2334, -1, -1, 2337, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2352, 2353, -1, -1, -1, -1, -1, 2359,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2370, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 2396, -1, -1, -1,
+ -1, -1, -1, 2403, -1, 2405, -1, -1, 2408, 2409,
+ 2410, -1, 2412, 2413, -1, 2415, -1, -1, -1, -1,
+ -1, -1, 2422, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2432, -1, -1, -1, -1, -1, 2438, 2439,
+ -1, -1, 2442, -1, -1, -1, 2446, 2447, -1, -1,
+ -1, -1, 2452, 2453, -1, -1, -1, -1, -1, 2459,
+ 2460, 2461, -1, -1, 2464, -1, 2466, 2467, 2468, 2469,
+ 2470, 2471, 2472, 2473, -1, -1, 2476, -1, 2478, 2479,
+ -1, -1, 2482, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2497, 2498, 2499,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2514, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2554, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2657, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2697, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2750, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3123, -1, -1, -1, 3127, 3128, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3187, -1, -1, -1, -1,
+ -1, 3193, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3234, -1, -1, 2925, 2926, 2927, 2928, 2929,
+ 2930, 2931, 2932, 2933, -1, 2935, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2944, 2945, -1, -1, 2948, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2970, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3002, -1, 3004, -1, -1, 3007, 3008, -1,
+ -1, 3011, -1, 3013, -1, -1, 3016, -1, -1, -1,
+ 3020, 3021, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3031, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3040, 3041, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3054, -1, -1, -1, -1, -1,
+ -1, -1, 3062, -1, 3064, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3441,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3155, -1, 3157, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3174, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3185, -1, -1, 3188, 3189,
+ 3190, 3191, -1, -1, 3194, -1, -1, 3197, -1, -1,
+ -1, -1, 3514, -1, -1, -1, 3518, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3229,
+ -1, -1, -1, -1, -1, -1, -1, 3237, 3238, -1,
+ -1, -1, -1, -1, 3244, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3253, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3273, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3294, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3330, -1, -1, 3333, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3654, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3669, -1, 3359,
+ 3360, -1, 3674, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3374, -1, 3376, 3377, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3407, 3408, 3409,
+ -1, -1, -1, 3413, -1, -1, -1, -1, -1, -1,
+ -1, 3421, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3434, -1, -1, -1, -1, -1,
+ 3440, -1, 3442, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3455, -1, -1, -1, -1,
+ 3460, -1, -1, -1, -1, -1, 3466, -1, -1, 3469,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3481, 3482, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3492, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3502, -1, 3504, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3528, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3540, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3554, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3564, -1, 3566, -1, 3568, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3919, -1, -1,
+ 3922, -1, 3924, -1, 3614, -1, -1, 3929, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3978, 3667, 3668, -1,
+ 3670, -1, 3672, 3673, 3986, 3675, -1, -1, -1, -1,
+ -1, -1, 3682, -1, -1, -1, -1, 3687, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4011,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3713, 3714, 3715, -1, -1, 3718, -1,
+ -1, -1, -1, -1, -1, -1, 3726, 3727, 3728, 3729,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3742, -1, -1, 3745, -1, 3747, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3758, 3759,
+ -1, -1, 3762, -1, -1, -1, -1, -1, -1, 4081,
+ -1, 4083, -1, -1, -1, -1, -1, -1, -1, 3779,
+ -1, 3781, -1, 3783, -1, 3785, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3805, -1, -1, -1, 3809,
+ -1, -1, -1, -1, -1, -1, 3816, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3839,
+ -1, -1, -1, -1, -1, -1, -1, 3847, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3862, -1, -1, 4177, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3876, -1, -1, -1,
+ 3880, -1, -1, 3883, 3884, -1, 3886, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4219, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4247, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3951, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3981, 3982, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4317, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4339, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4363, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4089,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4099,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4466, -1, -1, -1, -1, 1037,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4489, -1, -1,
+ -1, -1, -1, -1, -1, 1063, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4514, -1, 4204, -1, -1, -1, -1, -1,
+ 4210, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4221, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4258, 4259,
+ 4260, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4275, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4289,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4309,
+ 4310, 4311, -1, -1, -1, 4315, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4327, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4669, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4379,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4402, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4419,
+ 4420, -1, -1, -1, -1, -1, -1, -1, 4428, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4441, -1, -1, 4444, -1, -1, 4759, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4463, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4472, 4785, -1, -1, -1, -1, -1, -1,
+ 4480, -1, 4482, -1, -1, 4485, -1, -1, -1, -1,
+ 4490, 4491, 4492, 4493, -1, -1, 4496, 4497, 4498, 4499,
+ 4500, 4501, 4502, 4503, 4504, 4505, -1, -1, -1, 4509,
+ 4510, 4511, -1, -1, -1, -1, -1, -1, -1, 4519,
+ -1, 1399, -1, -1, 4524, -1, -1, -1, 4528, -1,
+ -1, -1, 1410, -1, -1, -1, 4536, -1, -1, 4539,
+ -1, 4541, -1, -1, -1, -1, -1, -1, 1426, -1,
+ -1, 4551, -1, -1, 4554, 4555, -1, -1, -1, 4559,
+ 4560, -1, -1, -1, 4564, -1, 4566, -1, -1, -1,
+ -1, -1, -1, 4573, 4574, 4575, 4576, -1, -1, 4579,
+ 4580, -1, -1, -1, 4584, 4585, 4586, -1, -1, 4589,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4927, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4636, -1, -1, 1517,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4651, -1, 4653, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4976, -1, -1, 4979, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4681, 4682, 4683, -1, -1, 4686, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4721, 4722, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4740, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 1651, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4793, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5127, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4848, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4881, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4895, -1, 4897, -1, -1,
+ -1, -1, -1, -1, 4904, -1, -1, -1, -1, -1,
+ 4910, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4921, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4936, -1, -1, -1,
+ -1, 4941, 4942, -1, -1, -1, -1, -1, -1, 4949,
+ 5262, -1, -1, -1, -1, -1, -1, -1, 4958, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4968, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4980, 4981, -1, -1, -1, -1, -1, -1, 5300, -1,
+ -1, 4991, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5002, 5003, -1, -1, -1, -1, -1, -1,
+ 5322, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5020, 5021, 5022, 5023, 5024, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5035, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1932, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5074, -1, -1, -1, -1, -1,
+ -1, -1, 5394, -1, -1, 5085, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5113, -1, -1, 5116, -1, -1, -1,
+ -1, -1, 2000, -1, 5124, 5125, -1, -1, -1, -1,
+ -1, 5131, 5132, -1, -1, -1, 5136, -1, -1, -1,
+ 5140, -1, -1, 5143, 5144, -1, -1, -1, 5148, 5149,
+ -1, -1, -1, -1, 5154, 5155, 5156, 5157, 5158, 2037,
+ -1, -1, 5162, 5163, 5164, -1, 5166, 5167, -1, -1,
+ 5170, -1, -1, -1, 5174, -1, 133, -1, 5178, -1,
+ -1, -1, -1, -1, 5184, -1, -1, -1, -1, -1,
+ -1, -1, 2070, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5202, -1, 5516, -1, -1, -1, -1, -1,
+ -1, 5211, -1, -1, -1, 5215, -1, -1, -1, 5219,
+ -1, 5221, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5241, -1, -1, 5244, -1, -1, -1, 205, -1,
+ -1, -1, -1, -1, -1, -1, 213, -1, 215, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5278, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5294, -1, -1, -1, -1, -1,
+ -1, -1, 2180, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 2191, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2207,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5345, -1, -1, -1, -1,
+ -1, -1, 5352, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5374, -1, -1, -1, -1, -1,
+ -1, 1037, 2260, -1, -1, -1, -1, -1, -1, 5389,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 2281, -1, -1, -1, 1063, -1, -1,
+ -1, -1, 5724, -1, -1, -1, 2294, -1, -1, -1,
+ 5420, -1, -1, -1, -1, -1, -1, -1, 2306, -1,
+ -1, -1, -1, -1, -1, -1, 5436, -1, -1, -1,
+ -1, -1, -1, 5443, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5452, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5467, 2346, 2347,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5480, -1, 5482, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5509,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5520, -1, -1, -1, -1, -1, 5526, -1, -1, -1,
+ -1, -1, 5844, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5575, -1, -1, 5578, -1,
+ -1, 5581, 5582, 5583, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5916, -1, 5606, 5607, -1, -1,
+ 5610, -1, -1, -1, -1, -1, -1, -1, 2496, -1,
+ -1, -1, -1, -1, -1, 5625, -1, -1, 5628, -1,
+ -1, -1, 5632, -1, -1, -1, -1, 5637, -1, -1,
+ 5640, 5641, -1, 5643, -1, 5645, -1, -1, 5648, -1,
+ -1, -1, -1, 5965, -1, -1, -1, -1, 5970, 5971,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5669,
+ -1, -1, 5672, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5684, 5685, 5686, -1, 5688, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5735, 5736, -1, -1, -1,
+ -1, -1, -1, 1399, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1410, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 1426, -1, 6084, -1, -1, -1, -1, -1, -1, -1,
+ 5780, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5792, -1, -1, -1, -1, 5797, -1, -1,
+ -1, -1, 5802, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5811, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5821, -1, -1, -1, 5825, -1, -1, 5828, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5839,
+ 5840, 5841, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1517, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5876, -1, -1, -1,
+ 5880, -1, 5882, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5900, -1, -1, -1, -1, -1, 5906, -1, -1, -1,
+ 5910, -1, -1, -1, 5914, -1, -1, 5917, -1, 5919,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5950, -1, 909, -1, -1, -1, -1, -1, -1, -1,
+ -1, 918, -1, -1, -1, -1, -1, -1, -1, 926,
+ -1, -1, 929, -1, -1, 5975, -1, -1, -1, -1,
+ -1, 5981, 5982, -1, -1, -1, 5986, 5987, 5988, 5989,
+ -1, -1, -1, -1, -1, 1651, -1, -1, -1, -1,
+ -1, -1, 6314, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 6017, -1, -1,
+ -1, -1, -1, -1, -1, 6025, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 6050, -1, -1, 6053, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1032, -1, -1, -1, 6079,
+ 1037, -1, -1, -1, 1041, -1, -1, -1, -1, -1,
+ -1, 1048, -1, -1, 1051, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1063, -1, -1, 6109,
+ -1, -1, -1, -1, -1, 6115, -1, -1, 6118, -1,
+ -1, 6121, -1, -1, -1, 6125, -1, -1, -1, -1,
+ -1, -1, 6132, -1, -1, -1, -1, -1, -1, 6139,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6152, -1, -1, -1, -1, 6157, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 6167, -1, 6169,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6178, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 6213, 6214, 1172, 1173, -1, -1, -1,
+ -1, -1, 1179, -1, -1, -1, 1183, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6244, 3123, -1, -1, -1, 3127,
+ 3128, -1, -1, 1210, -1, -1, -1, -1, -1, 6259,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1932, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 6293, -1, -1, -1, -1, -1, -1,
+ -1, 6301, 6302, 6303, -1, -1, -1, 6307, -1, 3187,
+ 6310, -1, -1, -1, -1, 3193, -1, -1, -1, 6319,
+ -1, 6321, -1, 6323, 6324, -1, -1, -1, -1, -1,
+ -1, -1, 6332, 6333, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2000, -1, -1, -1, -1, 6349,
+ -1, -1, -1, -1, -1, -1, 3234, -1, -1, -1,
+ -1, -1, -1, -1, 6364, -1, -1, -1, -1, -1,
+ -1, 6371, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2037, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6396, -1, -1, -1,
+ 1357, 1358, -1, 6403, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 6413, 2070, -1, -1, -1, -1, -1,
+ -1, 6421, 6422, 6423, 1381, 1382, -1, 6427, -1, -1,
+ 6430, -1, -1, -1, -1, -1, -1, 1394, -1, -1,
+ 6440, -1, 1399, 1400, 6444, -1, -1, 1404, -1, 1406,
+ 6450, -1, -1, 1410, -1, 6455, 6456, 6457, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 1426,
+ -1, -1, -1, 6473, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 6503, 6504, 6505, -1, -1, -1, 6509,
+ -1, 1468, -1, 1470, 1471, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2180, -1, -1, 6527, -1, -1,
+ -1, -1, -1, -1, -1, 2191, -1, -1, -1, -1,
+ -1, -1, 6542, -1, -1, -1, -1, 6547, 6548, -1,
+ -1, 2207, -1, -1, -1, -1, -1, -1, -1, -1,
+ 1517, -1, -1, 3441, -1, -1, -1, -1, -1, -1,
+ 6570, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 6601, -1, -1, 2260, -1, -1, -1, -1, -1,
+ -1, -1, 6612, -1, 6614, 6615, 6616, 6617, -1, 6619,
+ -1, -1, -1, -1, -1, 2281, -1, -1, -1, -1,
+ -1, 6631, -1, -1, 6634, -1, 3514, -1, 2294, 1596,
+ 3518, -1, -1, -1, -1, 6645, -1, -1, -1, -1,
+ 2306, -1, -1, -1, -1, -1, -1, 6657, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6678, 6679,
+ -1, -1, 6682, -1, -1, -1, 6686, -1, -1, -1,
+ 2346, 2347, -1, -1, 1651, -1, -1, -1, -1, 6699,
+ 6700, -1, -1, 6703, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1682, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1712, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3654, -1, -1, -1,
+ -1, -1, -1, 1740, 1741, 1742, -1, 1744, -1, -1,
+ -1, 3669, -1, -1, -1, -1, 3674, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1764, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2496, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1842, -1, -1, -1, 1846,
+ 1847, -1, -1, -1, -1, 6, 7, -1, 9, 10,
+ 11, -1, -1, -1, 15, 1862, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, -1, -1, -1, 30,
+ 31, 32, 33, -1, 35, 36, 37, 38, -1, 40,
+ 41, 42, -1, -1, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, -1, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1932, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 1949, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 117, -1, -1, -1,
+ 121, 122, 123, 124, 125, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 139, -1,
+ -1, -1, -1, 1990, -1, 146, -1, 148, -1, -1,
+ -1, 3919, -1, 2000, 3922, 156, 3924, -1, -1, -1,
+ -1, 3929, -1, -1, -1, -1, -1, 168, -1, -1,
+ -1, -1, -1, -1, 175, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 185, 186, -1, -1, -1, -1,
+ 2037, -1, -1, -1, -1, -1, -1, -1, -1, 2046,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3978, -1, -1, -1, 215, -1, 2063, -1, 3986, -1,
+ -1, -1, 223, 2070, -1, -1, -1, 228, -1, -1,
+ -1, -1, -1, -1, 235, -1, -1, -1, -1, -1,
+ 241, -1, 243, 4011, -1, -1, -1, -1, -1, 250,
+ -1, 252, -1, -1, -1, -1, -1, -1, -1, -1,
+ 261, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 276, 277, -1, -1, -1,
+ -1, -1, 283, -1, 285, -1, -1, 288, 289, -1,
+ 291, -1, -1, -1, -1, -1, -1, -1, -1, 300,
+ 301, -1, 303, -1, 2151, 2152, 2153, -1, -1, -1,
+ -1, -1, -1, 4081, -1, 4083, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 328, 329, 330,
+ -1, -1, -1, 2180, -1, -1, -1, 338, 339, -1,
+ -1, -1, -1, 344, 2191, -1, 347, -1, 349, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2207, -1, -1, -1, 365, 366, -1, 368, 369, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 383, -1, 385, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 400,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4177,
+ -1, -1, -1, 2260, -1, -1, -1, -1, -1, -1,
+ -1, 422, -1, -1, -1, -1, -1, 428, 2275, -1,
+ -1, 2278, -1, -1, 2281, -1, -1, -1, -1, -1,
+ -1, 2288, -1, -1, -1, -1, 447, 2294, -1, 450,
+ -1, 4219, 453, -1, -1, -1, -1, -1, -1, 2306,
+ -1, -1, -1, -1, -1, -1, -1, -1, 469, -1,
+ -1, -1, 2319, 2320, -1, 476, -1, -1, -1, 4247,
+ -1, -1, -1, 484, 485, -1, -1, 2334, -1, 490,
+ 2337, 492, -1, -1, -1, -1, -1, -1, -1, 2346,
+ 2347, 502, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 517, -1, -1, 520,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, -1, -1, -1, 4317,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2405, -1,
+ -1, -1, 2409, 2410, -1, -1, -1, -1, -1, -1,
+ -1, 4339, -1, -1, -1, -1, 577, 3123, -1, -1,
+ -1, 3127, 3128, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4363, -1, -1, -1, 2446,
+ 2447, -1, -1, -1, -1, 2452, 2453, -1, -1, -1,
+ -1, -1, 2459, 2460, 2461, -1, -1, 2464, -1, 2466,
+ -1, 2468, 2469, 2470, 2471, 2472, 2473, -1, -1, 2476,
+ -1, 2478, 2479, -1, -1, 2482, -1, -1, -1, -1,
+ -1, 3187, -1, -1, -1, -1, -1, 3193, -1, 2496,
+ 2497, 2498, 2499, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2514, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3234, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4466, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4489, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4514, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2657, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2697, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3441, -1, -1, -1, -1,
+ -1, 4669, -1, 2750, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3514, -1,
+ -1, -1, 3518, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4759, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4785, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2925, 2926,
+ 2927, 2928, 2929, 2930, 2931, 2932, 2933, -1, 2935, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2945, -1,
+ -1, 2948, -1, -1, -1, -1, -1, -1, 3654, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3669, -1, -1, -1, -1, 3674, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3004, -1, 4927,
+ -1, 3008, -1, -1, 3011, -1, 3013, -1, -1, 3016,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3031, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3040, 3041, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4976, -1,
+ -1, 4979, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3123, -1, -1, -1,
+ 3127, 3128, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3174, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3185, -1,
+ 3187, 3188, -1, 3190, 3191, -1, 3193, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5127,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3218, -1, 3919, -1, -1, 3922, -1, 3924, -1,
+ -1, -1, -1, 3929, -1, -1, -1, 3234, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3978, -1, -1, -1, -1, -1, -1, -1,
+ 3986, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3307, -1, -1, -1, -1, 4011, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5262, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5300, -1, -1, 4081, -1, 4083, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5322, -1, -1, -1, -1, -1,
+ 3407, 3408, 3409, -1, -1, -1, 3413, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3440, 3441, -1, -1, -1, 1037, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1063, -1, 5394, -1, -1, -1,
+ -1, 4177, -1, -1, -1, 3482, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3514, -1, -1,
+ -1, 3518, -1, 4219, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3540, -1, -1, -1, -1, -1, -1,
+ -1, 4247, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5516, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4317, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4339, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3654, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4363, -1, -1,
+ 3667, -1, 3669, 3670, -1, 3672, 3673, 3674, -1, -1,
+ -1, -1, -1, -1, -1, 3682, -1, -1, -1, -1,
+ 3687, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3713, 3714, 3715, -1,
+ -1, 3718, -1, -1, -1, -1, -1, -1, -1, 3726,
+ 3727, 3728, 3729, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3742, -1, -1, 3745, -1,
+ 3747, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3758, 3759, -1, -1, 3762, -1, -1, -1, -1,
+ 4466, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3781, -1, 3783, -1, 3785, -1,
+ -1, -1, -1, 4489, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5724, -1, 3805, -1,
+ 1399, -1, -1, -1, -1, -1, -1, -1, 4514, 3816,
+ -1, 1410, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1426, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3847, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3862, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3876,
+ -1, -1, -1, -1, -1, -1, -1, 3884, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 133, -1,
+ -1, -1, 3919, -1, -1, 3922, 5844, 3924, 1517, -1,
+ -1, -1, 3929, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3951, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4669, -1, -1, -1, -1, -1, -1,
+ -1, 3978, -1, -1, -1, -1, -1, -1, -1, 3986,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5916, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4011, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5965, -1, -1,
+ -1, -1, 5970, 5971, -1, -1, -1, -1, -1, -1,
+ -1, -1, 1651, 4759, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4081, -1, 4083, -1, -1, 4785,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6084, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4177, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4204, -1, -1,
+ -1, -1, -1, 4210, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4219, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4927, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4247, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4976, -1, -1, 4979, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4289, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4317, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4339, 1932, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4363, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6314, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2000, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5127, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2037, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4463, -1, -1, 4466,
+ -1, -1, -1, -1, -1, 4472, -1, -1, -1, -1,
+ -1, 2070, -1, 4480, -1, 4482, -1, -1, 4485, -1,
+ -1, -1, 4489, 4490, 4491, 4492, 4493, -1, -1, 4496,
+ 4497, 4498, 4499, 4500, 4501, 4502, 4503, 4504, 4505, -1,
+ -1, -1, 4509, 4510, 4511, -1, -1, 4514, -1, -1,
+ -1, -1, 4519, -1, -1, -1, -1, 4524, -1, -1,
+ -1, 4528, -1, -1, -1, -1, -1, -1, -1, 4536,
+ -1, -1, 4539, -1, 4541, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4551, -1, -1, 4554, 4555, -1,
+ -1, -1, 4559, 4560, -1, -1, 5262, -1, -1, 4566,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4576,
+ -1, -1, 4579, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2180, 4589, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2191, -1, 5300, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2207, -1,
+ -1, -1, -1, -1, -1, -1, 5322, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4636,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4653, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2260, 4669, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4681, -1, -1, -1, -1, -1,
+ -1, -1, 2281, -1, 909, -1, -1, -1, 5394, -1,
+ -1, -1, -1, 918, -1, 2294, -1, -1, -1, -1,
+ -1, 926, -1, -1, 929, -1, -1, 2306, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2346, 2347, -1,
+ -1, -1, 4759, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4785, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1032, -1, -1,
+ 5516, -1, 1037, -1, -1, -1, 1041, -1, -1, -1,
+ -1, -1, -1, 1048, -1, -1, 1051, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 1063, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4897, -1, -1, -1, -1, -1, -1, 2496, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4927, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4941, 4942, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1172, 1173, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4976,
+ -1, -1, 4979, 4980, 4981, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4991, 1210, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5724, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5074, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5085, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5113, -1, -1, 5116,
+ -1, -1, -1, -1, -1, -1, -1, 5124, 5125, -1,
+ 5127, -1, -1, -1, 5131, 5132, -1, -1, -1, 5136,
+ -1, -1, -1, 5140, -1, -1, 5143, 5144, 5844, -1,
+ -1, 5148, -1, -1, -1, -1, -1, 5154, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1381, 1382, -1, 5166,
+ -1, -1, -1, -1, -1, -1, -1, 5174, -1, 1394,
+ -1, 5178, -1, -1, 1399, 1400, -1, -1, -1, 1404,
+ -1, 1406, -1, -1, -1, 1410, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1426, -1, -1, 5211, -1, -1, -1, -1, -1,
+ 5916, -1, 5219, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5244, -1, -1,
+ -1, -1, -1, 1468, -1, 1470, 1471, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5262, -1, -1, -1, 5965,
+ -1, -1, -1, -1, 5970, 5971, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 1517, 5300, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5322, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5345, -1,
+ -1, -1, -1, -1, -1, 5352, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1596, -1, -1, -1, -1, -1, -1, 6084, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5394, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5420, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1651, -1, -1, 5436,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1682, -1, -1,
+ 5467, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1712, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5514, -1, 5516,
+ -1, -1, -1, -1, -1, 1740, 1741, 1742, -1, 1744,
+ -1, -1, -1, -1, 3123, -1, -1, -1, 3127, 3128,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 1764,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5575, -1,
+ -1, 5578, -1, -1, 5581, 5582, 5583, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3187, -1,
+ -1, -1, -1, -1, 3193, -1, -1, -1, -1, 5606,
+ 5607, -1, -1, 5610, -1, -1, -1, -1, 6314, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1842, 5625, -1,
+ -1, 1846, 1847, -1, -1, 5632, -1, -1, -1, -1,
+ 5637, -1, -1, 5640, 5641, 3234, -1, 1862, -1, -1,
+ -1, 5648, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5669, -1, -1, 5672, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5684, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1932, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5724, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5735, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5780, -1, 2000, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2037, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5841, -1, -1, 5844, -1, -1,
+ -1, -1, 3441, -1, -1, 2070, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5876,
+ -1, -1, -1, 5880, -1, 5882, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5900, -1, -1, -1, -1, -1, 5906,
+ -1, -1, -1, 5910, -1, -1, -1, -1, -1, 5916,
+ 5917, -1, -1, -1, -1, 3514, -1, -1, -1, 3518,
+ -1, -1, -1, -1, -1, -1, 2151, 2152, 2153, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2180, -1, -1, 5965, -1,
+ -1, -1, -1, 5970, 5971, -1, 2191, -1, 5975, -1,
+ -1, -1, -1, -1, 5981, 5982, -1, -1, -1, -1,
+ -1, -1, 2207, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 6017, -1, -1, -1, -1, -1, -1, -1, 6025, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2260, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6053, -1, -1, -1,
+ 2275, -1, -1, 2278, -1, 3654, 2281, -1, -1, -1,
+ -1, -1, -1, 2288, -1, -1, -1, -1, -1, 2294,
+ 3669, -1, -1, -1, -1, 3674, 6083, 6084, -1, -1,
+ -1, 2306, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2319, 2320, -1, -1, -1, -1,
+ -1, -1, 6109, -1, -1, -1, -1, -1, 6115, 2334,
+ -1, 6118, 2337, -1, 6121, -1, -1, -1, -1, -1,
+ -1, 2346, 2347, -1, -1, 6132, -1, -1, -1, -1,
+ -1, -1, 6139, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 6157, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 6178, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2405, -1, -1, -1, 2409, 2410, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2446, 2447, -1, -1, -1, -1, 2452, 2453, -1,
+ -1, -1, -1, -1, 2459, 2460, 2461, -1, -1, 2464,
+ -1, 2466, -1, 2468, 2469, 2470, 2471, 2472, 2473, -1,
+ -1, 2476, 6259, 2478, 2479, -1, -1, 2482, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 2496, 2497, 2498, 2499, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2514,
+ -1, -1, -1, -1, 6301, 6302, 6303, -1, -1, -1,
+ -1, -1, -1, 6310, -1, -1, -1, 6314, -1, -1,
+ -1, -1, 6319, -1, 6321, -1, 6323, -1, -1, -1,
+ 3919, -1, -1, 3922, -1, 3924, 6333, -1, -1, -1,
+ 3929, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6349, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3978,
+ -1, -1, -1, -1, -1, -1, -1, 3986, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6403, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6413, -1, -1, -1,
+ -1, -1, 4011, -1, 6421, 6422, -1, -1, -1, -1,
+ 6427, -1, -1, 6430, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2657, 6440, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 6450, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2697, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4081, -1, 4083, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6503, -1, -1, -1,
+ -1, -1, 6509, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 6527, -1, -1, -1, -1, 2750, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6542, -1, -1, -1, -1,
+ 6547, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 6570, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4177, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6601, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6612, -1, -1, -1, 6616,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4219, -1, -1, -1, -1, -1, -1, 6634, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4247, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 6678, 6679, -1, -1, 6682, -1, -1, -1, 6686,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6699, 6700, -1, -1, -1, -1, -1, -1,
+ 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, -1,
+ 2935, -1, -1, -1, -1, -1, -1, -1, 4317, -1,
+ 2945, -1, -1, 2948, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4339, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4363, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3004,
+ -1, -1, -1, 3008, -1, -1, 3011, -1, 3013, -1,
+ -1, 3016, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3031, -1, 6, 7,
+ -1, 9, 10, 11, -1, 3040, 3041, 15, -1, -1,
+ 18, 19, 20, 21, 22, 23, -1, 25, 26, -1,
+ -1, -1, 30, 31, 32, 33, -1, 35, 36, 37,
+ 38, -1, 40, 41, 42, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4466, -1, -1,
+ -1, 69, -1, -1, -1, 73, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4489, -1, -1, -1, -1, -1, -1, -1, 3123, -1,
+ -1, -1, 3127, 3128, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4514, -1, -1, -1, 117,
+ -1, -1, -1, 121, 122, 123, 124, 125, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 139, -1, -1, -1, -1, -1, -1, 146, 3174,
+ 148, -1, -1, -1, -1, -1, -1, -1, 156, -1,
+ 3185, -1, 3187, 3188, -1, 3190, 3191, -1, 3193, -1,
+ 168, -1, -1, -1, -1, -1, -1, 175, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 185, 186, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3234,
+ -1, -1, -1, -1, -1, -1, -1, 215, -1, -1,
+ -1, -1, -1, -1, -1, 223, -1, -1, -1, -1,
+ 228, -1, -1, -1, -1, -1, -1, 235, -1, -1,
+ -1, -1, -1, 241, -1, 243, -1, -1, -1, -1,
+ -1, -1, 250, -1, 252, -1, -1, -1, -1, -1,
+ -1, -1, -1, 261, -1, -1, -1, -1, -1, -1,
+ 4669, -1, -1, -1, -1, -1, -1, -1, 276, 277,
+ -1, -1, -1, -1, -1, 283, -1, 285, -1, -1,
+ 288, 289, -1, 291, -1, -1, -1, -1, -1, -1,
+ -1, -1, 300, 301, -1, 303, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 328, 329, 330, -1, -1, -1, -1, -1, -1, -1,
+ 338, 339, -1, -1, -1, -1, 344, -1, -1, 347,
+ -1, 349, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4759, -1, -1, -1, -1, -1, -1, 365, 366, -1,
+ 368, 369, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3407, 3408, 3409, 383, 4785, 385, 3413, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 400, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3440, 3441, -1, -1, -1,
+ -1, -1, -1, -1, 422, -1, -1, -1, -1, -1,
+ 428, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 447,
+ -1, -1, 450, -1, -1, 453, -1, 3482, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 469, -1, -1, -1, -1, -1, -1, 476, -1,
+ -1, -1, -1, -1, -1, -1, 484, 485, -1, 3514,
+ -1, -1, 490, 3518, 492, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 502, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3540, -1, -1, -1, 517,
+ -1, -1, 520, -1, -1, -1, -1, -1, 4927, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4976, -1, -1,
+ 4979, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3654,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3667, -1, 3669, 3670, -1, 3672, 3673, 3674,
+ -1, -1, -1, -1, -1, -1, -1, 3682, -1, -1,
+ -1, -1, 3687, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3713, 3714,
+ 3715, -1, -1, 3718, -1, -1, -1, -1, -1, -1,
+ -1, 3726, 3727, 3728, 3729, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3742, -1, -1,
+ 3745, -1, 3747, -1, -1, -1, -1, -1, 5127, -1,
+ -1, -1, -1, 3758, 3759, -1, -1, 3762, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3781, -1, 3783, -1,
+ 3785, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3805, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3816, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 88, 3847, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3862, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3876, -1, -1, -1, -1, -1, -1, 125, 3884,
+ -1, -1, -1, 5262, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 147, 148, -1, -1, 151, -1, -1, -1, -1, -1,
+ 157, -1, -1, -1, 3919, -1, -1, 3922, -1, 3924,
+ -1, 5300, -1, -1, 3929, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5322, -1, -1, 3951, -1, -1, -1,
+ -1, -1, 199, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3978, -1, -1, -1, -1, -1, -1,
+ -1, 3986, -1, -1, -1, -1, -1, 234, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 246,
+ -1, -1, -1, -1, -1, -1, 4011, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5394, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4081, -1, 4083, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 920,
+ -1, -1, -1, -1, -1, -1, -1, 5516, -1, -1,
+ -1, 932, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 943, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 962, 4177, -1, -1, -1, -1, 968, -1, -1,
+ -1, -1, 429, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4204,
+ -1, -1, -1, -1, -1, 4210, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4219, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4247, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4289, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4317, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4339, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5724, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4363, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 1178, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1197, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 1221, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 699, -1, -1, -1, -1, -1, 4463, -1,
+ -1, 4466, -1, -1, -1, 5844, -1, 4472, -1, -1,
+ -1, -1, -1, -1, -1, 4480, -1, 4482, -1, -1,
+ 4485, -1, -1, -1, 4489, 4490, 4491, 4492, 4493, -1,
+ -1, 4496, 4497, 4498, 4499, 4500, 4501, 4502, 4503, 4504,
+ 4505, 748, 749, -1, 4509, 4510, 4511, -1, -1, 4514,
+ -1, -1, -1, -1, 4519, -1, -1, -1, -1, 4524,
+ -1, -1, -1, 4528, -1, -1, -1, -1, -1, 1320,
+ -1, 4536, -1, -1, 4539, -1, 4541, 5916, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4551, -1, 795, 4554,
+ 4555, -1, -1, -1, 4559, 4560, -1, -1, -1, -1,
+ -1, 4566, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4576, -1, -1, 4579, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4589, -1, 5965, -1, -1, -1,
+ -1, 5970, 5971, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4636, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1435, -1, -1, -1, 4653, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4669, 912, -1, -1, -1, 916,
+ -1, 1462, 1463, 1464, -1, -1, 4681, 924, -1, -1,
+ 927, -1, -1, 930, 931, -1, 933, -1, 935, -1,
+ -1, 938, -1, 940, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6084, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 962, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 973, -1, -1, -1,
+ 977, -1, -1, -1, -1, -1, -1, 984, 985, -1,
+ -1, 988, -1, 990, 991, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4759, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1011, -1, 1013, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4785, -1, -1, -1, -1, -1, -1, -1, -1, 1036,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 1057, -1, 1059, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1068, 1069, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1078, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1636, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 1657, -1, -1, -1,
+ -1, -1, -1, -1, -1, 1666, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4897, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4927, -1, -1, -1, -1, -1, 1175, -1,
+ 1177, -1, -1, -1, -1, 6314, 4941, 4942, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 1211, -1, -1, -1, -1, -1,
+ -1, 4976, -1, -1, 4979, 4980, 4981, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4991, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 1172, 1173, 1816, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 1286,
+ -1, -1, 1289, -1, 1291, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 1306,
+ -1, -1, -1, -1, -1, -1, -1, 1858, -1, 5074,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5085, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5113, -1,
+ -1, 5116, -1, -1, -1, -1, -1, -1, -1, 5124,
+ 5125, -1, 5127, -1, -1, 1372, 5131, 5132, -1, -1,
+ -1, 5136, -1, -1, -1, 5140, -1, -1, 5143, 5144,
+ -1, -1, -1, 5148, -1, -1, -1, -1, -1, 5154,
+ 1397, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5166, -1, -1, -1, 1412, -1, 1414, -1, 5174,
+ -1, -1, -1, 5178, -1, -1, -1, 1424, -1, -1,
+ -1, -1, -1, -1, 1431, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5211, -1, -1, -1,
+ -1, -1, -1, -1, 5219, 2006, -1, -1, -1, -1,
+ -1, -1, -1, 1037, 2015, 1472, -1, 1474, -1, -1,
+ -1, -1, 1381, 1382, -1, -1, -1, -1, -1, 5244,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 1063,
+ -1, -1, 2043, -1, -1, -1, -1, 5262, 2049, 2050,
+ -1, -1, 2053, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2066, -1, -1, 2069, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5300, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5322, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2125, -1, -1, -1, -1, -1,
+ 5345, -1, -1, -1, -1, -1, -1, 5352, 2139, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 2167, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2178, -1, 5394,
+ -1, -1, -1, 1640, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 1658, -1, -1, -1, 5420, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2220,
+ 2221, 5436, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2245, -1, -1, -1, -1, -1,
+ -1, 2252, 5467, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5514,
+ -1, 5516, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 1682, -1, -1, -1, -1, -1, -1,
+ 1787, 1788, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 1712, -1, -1, -1, -1, -1, -1,
+ 5575, -1, -1, 5578, -1, -1, 5581, 5582, 5583, 2370,
+ -1, 1828, 1829, -1, -1, 1399, -1, -1, -1, -1,
+ -1, 1740, 1741, 1742, -1, 1744, 1410, -1, -1, -1,
+ -1, 5606, 5607, -1, -1, 5610, -1, -1, -1, -1,
+ -1, -1, 1426, -1, -1, 1764, -1, -1, -1, -1,
+ 5625, 2412, 2413, -1, -1, -1, -1, 5632, -1, -1,
+ -1, -1, 5637, -1, -1, 5640, 5641, -1, -1, -1,
+ 1887, 2432, -1, 5648, -1, 1892, -1, -1, 1895, -1,
+ -1, -1, -1, -1, -1, -1, 1903, -1, -1, -1,
+ -1, -1, -1, -1, 5669, -1, -1, 5672, -1, -1,
+ -1, -1, 1919, -1, -1, -1, -1, -1, -1, 5684,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 1842, -1, -1, -1, 1846, 1847, -1,
+ -1, -1, -1, 1517, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5724,
+ -1, -1, -1, -1, -1, -1, -1, 1974, -1, -1,
+ 5735, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5780, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2042, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5841, 1651, -1, 5844,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5876, -1, -1, -1, 5880, -1, 5882, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5900, -1, -1, -1, -1,
+ -1, 5906, -1, -1, -1, 5910, -1, -1, -1, -1,
+ -1, 5916, 5917, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 2176,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5965, -1, -1, -1, 2211, 5970, 5971, -1, -1, -1,
+ 5975, -1, -1, -1, -1, -1, 5981, 5982, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2151, 2152, 2153, -1, -1, 2254, -1, 2256,
+ -1, -1, 6017, -1, -1, -1, -1, -1, -1, -1,
+ 6025, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2282, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6053, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6083, 6084,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2339, -1, 2341, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6109, -1, -1, -1, 2355, 2356,
+ 6115, 2358, -1, 6118, -1, -1, 6121, -1, 1932, -1,
+ -1, -1, -1, -1, -1, -1, -1, 6132, -1, -1,
+ -1, -1, -1, -1, 6139, -1, -1, -1, -1, -1,
+ -1, -1, -1, 2390, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6157, 2944, -1, 2402, -1, -1, -1, 2406,
+ -1, -1, -1, -1, 2411, -1, -1, 2414, -1, -1,
+ -1, -1, -1, 6178, -1, -1, -1, -1, -1, 2970,
+ -1, -1, -1, -1, -1, -1, 2000, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3002, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 2037, -1, -1, -1, -1, -1, 3020,
+ 3021, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6259, -1, 2070, -1, -1, -1,
+ -1, -1, -1, 3054, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6301, 6302, 6303, -1,
+ -1, -1, -1, 2452, -1, 6310, -1, -1, -1, 6314,
+ -1, -1, -1, -1, 6319, 2464, 6321, 2466, 6323, 2468,
+ -1, -1, 2471, 2472, 2473, -1, -1, -1, 6333, -1,
+ 2479, -1, -1, 2482, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6349, -1, -1, -1, 2497, 2498,
+ 2499, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 2514, 2180, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 2191, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 2207, -1, -1, -1, -1, 6403, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6413, -1,
+ -1, -1, -1, -1, -1, -1, 6421, 6422, -1, -1,
+ -1, -1, 6427, -1, -1, 6430, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6440, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6450, 2260, 3238, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3253, -1, -1, -1, -1, 2281, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2294, -1, 3273, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2306, -1, -1, -1, -1, -1, 6503, -1,
+ -1, -1, -1, -1, 6509, -1, -1, -1, 2657, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6527, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2346, 2347, -1, -1, -1, 6542, -1, -1,
+ -1, -1, 6547, -1, -1, -1, -1, -1, 2697, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6570, -1, -1, 3359, 3360,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6601, -1, -1, -1,
+ -1, 2750, -1, -1, -1, -1, -1, 6612, -1, -1,
+ -1, 6616, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 6634,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3460,
+ -1, -1, -1, 6678, 6679, -1, -1, 6682, -1, -1,
+ -1, 6686, 2496, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6699, 6700, -1, -1, -1, -1,
+ -1, -1, -1, -1, 2951, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 2925, 2926, 2927, 2928,
+ 2929, 2930, 2931, 2932, 2933, -1, 2935, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 2945, -1, -1, 2948,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3004, -1, 3104, -1, 3008,
+ -1, -1, 3011, -1, 3013, -1, -1, 3016, -1, -1,
+ 3117, 3118, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 3136,
+ 3137, 3040, 3041, -1, 3141, 3142, -1, -1, -1, 3146,
+ 3147, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3161, -1, -1, -1, -1, -1,
+ -1, 3168, -1, -1, -1, 3172, 3173, -1, -1, 3176,
+ 3177, -1, -1, -1, -1, -1, 3183, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3195, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3207, -1, -1, -1, -1, 3212, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3227, -1, -1, -1, -1, -1, -1, -1, -1, 3236,
+ -1, -1, 3239, -1, 3241, 3242, 3243, -1, -1, -1,
+ -1, 3248, 3249, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3258, -1, -1, -1, -1, -1, 3264, 3809, -1,
+ -1, 3268, -1, -1, -1, 3174, -1, -1, -1, -1,
+ -1, 3278, 3279, -1, -1, -1, 3283, -1, -1, -1,
+ -1, -1, 3289, 3290, -1, -1, -1, -1, 3839, -1,
+ -1, -1, -1, -1, -1, -1, 3303, -1, -1, 3306,
+ -1, -1, -1, -1, -1, -1, 3313, 3314, -1, -1,
+ -1, -1, 3319, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3331, -1, -1, 3334, -1, -1,
+ -1, -1, 3339, -1, -1, -1, -1, -1, 3345, 3346,
+ -1, 3348, -1, 3350, -1, -1, 3353, 3354, -1, -1,
+ 3357, -1, -1, -1, 3361, 3362, 3363, 3364, -1, 3366,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3379, 3380, -1, 3382, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3393, 3394, 3395, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3450, -1, -1, -1, -1, -1, -1,
+ -1, 3458, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3477, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3407, 3408,
+ 3409, -1, -1, -1, 3413, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3527, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3440, -1, -1, -1, -1, -1, -1, 4089, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4099, 3123,
+ -1, -1, -1, 3127, 3128, -1, -1, -1, -1, -1,
+ 3567, -1, 3569, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3609, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3187, -1, -1, -1, 3624, -1, 3193,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3234, -1, -1, -1, -1, -1, -1, -1, -1, 3676,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4258, 4259, 4260,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4275, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4310,
+ 4311, -1, -1, -1, 4315, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3682, -1, -1, -1, -1, 3687, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3715, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3726, -1, 3728,
+ 3729, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3742, -1, -1, 3745, -1, 3747, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 3441, -1, -1,
+ -1, -1, 3781, -1, 3783, -1, 3785, -1, -1, -1,
+ -1, 1756, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4441, -1, -1, 4444, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 3847, -1,
+ 3514, 3948, -1, -1, 3518, -1, 3953, -1, -1, -1,
+ 1825, -1, -1, 3862, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 3973, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 3990, -1, -1, -1, 3994, -1, -1,
+ -1, -1, 3999, 4000, 4001, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4573, 4574, 4575, -1, -1, -1, 4035, 4036,
+ 4037, 4038, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3951, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4065, -1,
+ -1, -1, -1, -1, -1, -1, 4073, -1, 4075, 4076,
+ 4077, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 3654, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 3669, -1, -1, -1, -1,
+ 3674, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4191, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4200, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4226,
+ 4227, -1, -1, -1, 4231, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4253, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 2157, -1, -1, -1, 2161, -1, -1, 4296,
+ -1, -1, -1, -1, -1, 4204, -1, -1, -1, -1,
+ 4307, 4210, -1, -1, -1, 4312, -1, -1, -1, -1,
+ -1, 4318, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4348, -1, -1, -1, 3919, -1, -1, 3922, -1,
+ 3924, 4358, -1, 4904, 4361, 3929, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4289, -1, -1, -1, -1, 4936, -1, -1, -1, 4396,
+ -1, 4398, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3978, -1, -1, -1, 4415, -1,
+ -1, -1, 3986, -1, -1, -1, -1, 4968, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4442, -1, 4011, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5003, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5035, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4081, -1, 4083,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 4463, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4472, -1, -1, -1, -1, -1, -1,
+ -1, 4480, -1, 4482, -1, 2450, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 2465, -1, -1, -1, 2469, -1, -1, -1, -1, -1,
+ 4509, 4510, 4511, 4177, 5155, 5156, 5157, 5158, -1, 2484,
+ 2485, 2486, -1, -1, 2489, -1, -1, -1, -1, 4528,
+ -1, -1, -1, -1, -1, -1, -1, 4536, -1, -1,
+ 4539, -1, 4541, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4551, -1, -1, 4219, -1, -1, -1, -1,
+ 4559, 4560, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4247, -1, -1, -1, -1, 4685, -1,
+ 4589, 4688, -1, 4690, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 4703, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 4715, -1,
+ -1, -1, 4719, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4636, -1, -1,
+ -1, 4738, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4317, 4653, -1, -1, -1, -1, 4756,
+ -1, -1, -1, -1, -1, 4762, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4339, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4787, -1, -1, -1, 4791, -1, -1, -1, -1, 4363,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4806,
+ 4807, 4808, 4809, -1, -1, -1, -1, -1, -1, 4816,
+ 4817, 4818, 4819, -1, -1, -1, -1, -1, 4825, 4826,
+ -1, -1, -1, -1, 4831, 4832, -1, 4834, 4835, 4836,
+ 4837, 4838, 4839, 4840, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4850, -1, -1, -1, 4854, 4855, 4856,
+ 4857, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4878, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4896,
+ -1, -1, 4466, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4489, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4514, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5509, -1,
+ -1, -1, -1, -1, -1, 4972, -1, -1, -1, 5520,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5005, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5027, -1, 5029, -1, -1, -1, -1, -1, -1, -1,
+ 5037, 5038, 5039, 5040, 5041, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5052, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 2943, -1,
+ -1, 4980, 4981, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4991, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4669, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 3027, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 3039, 5074, -1, -1, -1, 3044,
+ -1, -1, -1, -1, -1, -1, 5085, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4759, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4785, -1, -1, -1, 5124, 5125, -1, -1, -1,
+ -1, -1, 5131, 5132, -1, -1, -1, 5136, -1, -1,
+ -1, 5140, -1, -1, 5143, 5144, -1, -1, -1, 5148,
+ -1, -1, -1, -1, -1, 5154, 5797, -1, -1, -1,
+ -1, 5802, -1, -1, -1, -1, 5263, 5264, 5265, -1,
+ -1, -1, 5269, 5270, 5271, 5272, -1, -1, -1, 5276,
+ 5821, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5211, -1, -1, 5312, 5313, 5314, 5315, 5316,
+ 5219, 5318, 5319, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5330, 5331, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5244, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4927, -1, -1, -1, 5364, -1, -1,
+ -1, -1, -1, -1, -1, 5372, 5373, -1, 5375, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5950,
+ -1, -1, 4976, -1, -1, 4979, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5345, -1, -1, -1,
+ -1, -1, -1, 5352, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5466,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 6050,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5420, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6079, -1,
+ -1, -1, -1, -1, -1, 5542, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5127, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5630, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5645, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5575, -1, -1, -1,
+ -1, -1, 5581, 5582, 5583, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5262, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5606, 5607, -1,
+ -1, 5610, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5726,
+ -1, -1, -1, -1, -1, -1, 5300, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5745, 5648,
+ -1, -1, -1, -1, 5751, 5752, -1, -1, 5322, -1,
+ -1, -1, -1, -1, 5761, -1, -1, -1, -1, -1,
+ -1, 5768, -1, 5672, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5803, 5804, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5816,
+ 3685, 5818, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5394, -1, -1, -1, -1, -1, 5833, -1, -1, -1,
+ 3705, 3706, -1, 3708, -1, -1, -1, -1, 3713, 3714,
+ -1, 3716, -1, 3718, -1, -1, -1, 3722, -1, -1,
+ 3725, 5858, -1, -1, -1, 3730, -1, -1, -1, -1,
+ -1, -1, 5869, -1, 3739, -1, -1, -1, -1, 3744,
+ -1, -1, -1, -1, -1, -1, 3751, 3752, 3753, 3754,
+ -1, -1, -1, 3758, 3759, -1, 3761, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5903, -1, -1, -1,
+ -1, -1, -1, 3778, -1, 3780, -1, 5914, -1, -1,
+ -1, -1, 3787, 3788, 3789, 3790, 3791, 3792, 3793, 3794,
+ 3795, 3796, -1, 5930, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5516, -1, -1, -1, -1, 5954, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5964, -1, -1,
+ -1, -1, -1, -1, -1, 3840, -1, -1, -1, -1,
+ -1, 5880, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5990, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5906, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5917, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6031, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5975, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3966, -1, -1, -1, 6102, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 6017, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6129, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5724, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 6176,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 6190, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 6109, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 6139, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 6249, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 6178,
+ 5844, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4208, 4209, -1, -1, -1, 4213, -1,
+ -1, 6348, 5916, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 4242, -1, -1,
+ -1, -1, -1, 6380, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6391, -1, -1, -1, -1, -1,
+ -1, 5965, 6301, 6302, 6303, -1, 5970, 5971, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6323, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 6333, -1, -1, -1, -1, 6,
+ 7, -1, 9, 10, 11, -1, -1, -1, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ -1, -1, -1, 30, 31, 32, 33, -1, 35, 36,
+ 37, 38, -1, 40, 41, 42, -1, -1, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, 6492, 63, -1, 65, -1,
+ 67, -1, 69, -1, 6403, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 6084, -1, -1, -1, -1, -1, -1, -1, 6427, -1,
+ -1, 6430, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 117, 6450, -1, -1, 121, 122, 123, 124, 125, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 139, -1, -1, -1, -1, -1, -1, 146,
+ -1, 148, -1, -1, -1, -1, -1, -1, -1, 156,
+ -1, -1, -1, -1, -1, -1, -1, 4462, -1, -1,
+ -1, 168, -1, 4468, -1, -1, -1, -1, 175, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 185, 186,
+ -1, 4486, 4487, -1, -1, 4490, 4491, 4492, 4493, -1,
+ -1, 4496, 4497, 4498, 4499, 4500, 4501, 4502, 4503, 4504,
+ 4505, 4506, -1, -1, -1, -1, -1, -1, 215, -1,
+ -1, -1, -1, -1, -1, -1, 223, -1, -1, -1,
+ -1, 228, -1, -1, 4529, -1, -1, 4532, 235, 4534,
+ -1, -1, 4537, 4538, 241, -1, 243, -1, -1, -1,
+ -1, -1, -1, 250, -1, 252, -1, -1, 4553, 4554,
+ 4555, 4556, -1, 4558, 261, -1, -1, -1, -1, -1,
+ -1, -1, 6601, -1, -1, -1, -1, -1, -1, 276,
+ 277, -1, -1, 6612, -1, -1, 283, -1, 285, -1,
+ -1, 288, 289, -1, 291, -1, -1, -1, -1, -1,
+ -1, -1, -1, 300, 301, -1, 303, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 6314, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 328, 329, 330, -1, -1, -1, -1, -1, -1,
+ -1, 338, 339, -1, -1, -1, -1, 344, -1, 6678,
+ 347, -1, 349, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 365, 366,
+ -1, 368, 369, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4678, -1, -1, 383, -1, 385, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 400, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 422, -1, -1, -1, -1,
+ -1, 428, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 447, -1, -1, 450, -1, -1, 453, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 469, -1, -1, -1, -1, -1, -1, 476,
+ -1, -1, -1, -1, -1, -1, -1, 484, 485, -1,
+ -1, -1, -1, 490, -1, 492, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 502, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 517, -1, -1, 520, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 577, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 4897, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 4940, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6, 7, -1, 9, 10,
+ 11, -1, -1, -1, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, -1, -1, -1, 30,
+ 31, 32, 33, -1, 35, 36, 37, 38, -1, 40,
+ 41, 42, -1, -1, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, -1, 69, -1,
+ 5075, -1, 73, -1, 5079, -1, 5081, 5082, -1, -1,
+ -1, -1, 5087, 5088, 5089, 5090, -1, -1, -1, 5094,
+ 5095, 5096, 5097, 5098, 5099, 5100, 5101, 5102, 5103, 5104,
+ 5105, 5106, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 117, -1, -1, -1,
+ 121, 122, 123, 124, 125, 5130, -1, -1, 5133, -1,
+ 5135, -1, -1, 5138, -1, -1, 5141, 5142, 139, -1,
+ 5145, 5146, -1, -1, -1, 146, -1, 148, -1, -1,
+ -1, -1, -1, -1, -1, 156, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 168, -1, -1,
+ -1, -1, -1, -1, 175, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 185, 186, -1, 5192, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5210, -1, -1, -1, -1,
+ -1, -1, -1, -1, 215, -1, -1, -1, -1, 5224,
+ -1, -1, 223, -1, -1, -1, -1, 228, -1, -1,
+ -1, -1, -1, -1, 235, -1, -1, -1, -1, -1,
+ 241, -1, 243, -1, -1, -1, -1, -1, -1, 250,
+ -1, 252, -1, -1, -1, -1, -1, -1, -1, -1,
+ 261, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 276, 277, -1, -1, -1,
+ -1, -1, 283, -1, 285, -1, -1, 288, 289, -1,
+ 291, -1, -1, -1, -1, -1, -1, -1, -1, 300,
+ 301, -1, 303, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 328, 329, 330,
+ -1, -1, -1, -1, -1, -1, -1, 338, 339, -1,
+ -1, -1, -1, 344, -1, -1, 347, -1, 349, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 365, 366, -1, 368, 369, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 383, -1, 385, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 400,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5423, -1,
+ -1, 422, -1, -1, -1, -1, -1, 428, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 447, -1, -1, 450,
+ -1, -1, 453, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 469, -1,
+ -1, -1, -1, -1, -1, 476, -1, -1, -1, -1,
+ -1, -1, -1, 484, 485, -1, -1, -1, -1, 490,
+ -1, 492, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 502, -1, -1, -1, -1, 5511, 5512, -1, -1,
+ -1, -1, -1, -1, 5519, -1, 517, -1, -1, 520,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5571, -1, -1, -1,
+ -1, -1, 5577, 5578, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5596, -1, 5598, -1, -1, -1, 5602, 5603, 5604,
+ 5605, -1, -1, 5608, 5609, -1, -1, -1, 5613, -1,
+ -1, -1, 5617, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5671, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5682, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5746, -1, 5748, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5783, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5873, -1,
+ 5875, 5876, 5877, 5878, 5879, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5890, 5891, 5892, -1, -1,
+ -1, -1, -1, -1, -1, 5900, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5918, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 3, 5937, -1, 6, 7, 8, 9, 10, 11,
+ 12, -1, 14, 15, 16, 17, 18, 19, 20, 21,
+ 22, 23, -1, 25, 26, 27, -1, -1, 30, 31,
+ 32, 33, -1, 35, 36, 37, 38, -1, 40, 41,
+ 42, 43, 44, -1, -1, -1, 48, 49, -1, -1,
+ -1, -1, 54, -1, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, 65, -1, 67, 68, 69, -1, -1,
+ -1, 73, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 90, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 100, -1,
+ 102, 103, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 114, -1, -1, 117, -1, -1, 120, 121,
+ 122, 123, 124, 125, -1, -1, -1, -1, 130, -1,
+ -1, -1, -1, -1, -1, -1, -1, 139, -1, -1,
+ 142, -1, 144, 145, 146, -1, 148, -1, -1, 151,
+ -1, 153, -1, -1, 156, -1, -1, -1, -1, -1,
+ -1, -1, -1, 165, -1, 167, 168, -1, -1, -1,
+ -1, -1, -1, 175, -1, 6110, -1, -1, -1, -1,
+ 182, -1, 184, 185, 186, 187, 6121, -1, -1, 6124,
+ -1, 193, -1, 6128, -1, -1, -1, -1, -1, -1,
+ 202, -1, 204, -1, -1, -1, 208, -1, -1, -1,
+ -1, 6146, 214, 215, -1, -1, -1, -1, -1, -1,
+ 222, 223, 224, -1, -1, -1, 228, -1, -1, 231,
+ -1, -1, -1, 235, -1, -1, -1, -1, -1, 241,
+ -1, 243, -1, -1, -1, -1, 248, -1, 250, -1,
+ 252, -1, -1, -1, 6189, -1, -1, -1, -1, 261,
+ -1, -1, -1, 265, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 276, 277, -1, -1, 280, -1,
+ -1, 283, -1, 285, -1, -1, 288, 289, -1, 291,
+ 6225, -1, -1, -1, -1, -1, -1, -1, 300, 301,
+ -1, 303, -1, 305, 306, -1, -1, -1, -1, 311,
+ -1, -1, -1, -1, -1, -1, -1, 319, -1, -1,
+ -1, -1, -1, 325, -1, -1, 328, 329, 330, -1,
+ -1, -1, -1, -1, -1, -1, 338, 339, -1, -1,
+ -1, 343, 344, -1, -1, 347, -1, 349, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 6296, -1, 365, 366, -1, 368, 369, -1, -1,
+ -1, -1, -1, 6308, -1, 6310, -1, -1, -1, -1,
+ -1, 383, -1, 385, -1, 387, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 400, 401,
+ -1, -1, -1, -1, -1, 407, 408, -1, 410, -1,
+ -1, -1, 6347, 415, -1, -1, -1, -1, -1, 421,
+ 422, -1, 424, -1, -1, -1, 428, -1, -1, 431,
+ -1, -1, -1, -1, -1, 437, 438, -1, -1, -1,
+ -1, -1, -1, 445, -1, 447, -1, 449, 450, -1,
+ -1, 453, -1, -1, -1, -1, -1, 459, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 469, -1, -1,
+ -1, -1, 474, -1, 476, -1, -1, -1, -1, -1,
+ -1, -1, 484, 485, -1, -1, -1, -1, 490, -1,
+ 492, -1, 494, -1, 496, -1, -1, -1, 6433, -1,
+ 502, -1, -1, 505, -1, -1, 508, -1, -1, 511,
+ -1, -1, -1, -1, 516, 517, -1, -1, 520, -1,
+ -1, -1, -1, -1, 6459, -1, -1, 529, -1, -1,
+ -1, -1, -1, -1, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, -1, -1, -1, -1, -1,
+ 552, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 6501, -1, 570, -1,
+ -1, -1, 574, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 6526, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 6542, -1, -1,
+ -1, -1, 6547, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5, 6, 7,
+ 8, 9, 10, 11, 12, -1, 14, 15, -1, -1,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
+ 28, -1, 30, 31, 32, 33, 34, 35, 36, 37,
+ 38, -1, 40, 41, 42, 43, 44, -1, -1, -1,
+ 48, 49, 6607, -1, -1, 6610, 54, -1, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, 65, -1, 67,
+ 68, 69, -1, -1, -1, 73, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 6646, 90, 91, 92, 93, 94, 95, 96, 97,
+ 98, 99, 100, 101, 102, 103, 104, 105, 106, 107,
+ 108, 109, 110, 111, 112, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
+ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
+ 138, 139, 140, 141, 142, 143, 144, 145, 146, 147,
+ 148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
+ 168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
+ 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
+ 188, 189, 190, 191, 192, 193, 194, 195, 196, 197,
+ 198, 199, 200, 201, 202, 203, 204, 205, 206, 207,
+ 208, 209, 210, 211, 212, 213, 214, 215, 216, 217,
+ 218, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
+ 238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
+ 248, 249, 250, 251, 252, 253, 254, 255, 256, 257,
+ 258, 259, 260, 261, 262, 263, 264, 265, 266, 267,
+ 268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
+ 278, 279, 280, 281, 282, 283, 284, 285, 286, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
+ 298, 299, 300, 301, 302, 303, 304, 305, 306, 307,
+ 308, 309, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, 341, 342, 343, 344, 345, 346, 347,
+ 348, 349, 350, 351, 352, 353, 354, 355, 356, 357,
+ 358, 359, 360, 361, 362, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, 380, 381, 382, 383, 384, 385, 386, 387,
+ 388, 389, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, 405, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, 419, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, 436, 437,
+ 438, 439, 440, 441, 442, 443, 444, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, 455, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, 471, 472, 473, 474, 475, 476, 477,
+ 478, 479, 480, 481, 482, 483, 484, 485, 486, 487,
+ 488, 489, 490, 491, 492, 493, 494, 495, 496, 497,
+ 498, 499, 500, 501, 502, 503, 504, 505, 506, 507,
+ 508, 509, 510, 511, 512, 513, 514, 515, 516, 517,
+ 518, 519, 520, 521, 522, 523, 524, 525, 526, 527,
+ 528, 529, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 547,
+ 548, 549, -1, -1, 5, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, 24, 25, 26, 27, 28, 576, 30,
+ 31, 32, 33, 34, 35, 36, 37, 38, -1, 40,
+ 41, 42, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, 70,
+ -1, -1, 73, -1, 75, 76, -1, 78, 79, 80,
+ 81, 82, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
+ 101, -1, -1, -1, -1, 106, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, 117, 118, 119, 120,
+ 121, 122, 123, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, 148, -1, 150,
+ 151, 152, 153, 154, 155, 156, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, 168, 169, 170,
+ -1, 172, 173, 174, 175, 176, 177, 178, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, 188, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, 203, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, 229, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ 241, -1, 243, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ 261, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, 276, 277, -1, 279, 280,
+ 281, 282, 283, -1, 285, -1, 287, 288, 289, 290,
+ 291, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ 301, 302, 303, -1, 305, 306, 307, 308, 309, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, 329, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ 341, 342, 343, 344, 345, 346, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, 366, 367, 368, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, 422, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, 444, 445, 446, 447, 448, 449, 450,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, 476, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, 493, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, 503, 504, 505, 506, 507, 508, 509, -1,
+ 511, 512, 513, 514, 515, 516, 517, 518, 519, 520,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 550,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 561, 562, 563, -1, -1, -1, -1, -1, -1, 570,
+ 571, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, 70, -1, -1, 73,
+ -1, 75, 76, -1, 78, 79, 80, 81, 82, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, 106, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ 134, 135, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, 188, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, 229, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, 341, 342, 343,
+ 344, 345, 346, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, 438, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ 474, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, 493,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, 503,
+ 504, 505, 506, 507, 508, 509, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, 529, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 550, -1, 552, -1,
+ -1, -1, -1, -1, -1, -1, -1, 561, 562, -1,
+ -1, -1, -1, -1, -1, -1, 570, 571, 5, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, 24, 25, 26,
+ 27, 28, -1, 30, 31, 32, 33, 34, 35, 36,
+ 37, 38, -1, 40, 41, 42, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, 70, -1, -1, 73, -1, 75, 76,
+ -1, 78, 79, 80, 81, 82, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, 106,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ 117, 118, 119, 120, 121, 122, 123, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, 148, -1, 150, 151, 152, 153, 154, 155, 156,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, 168, 169, 170, -1, 172, 173, 174, 175, 176,
+ 177, 178, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, 188, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, 229, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, 241, -1, 243, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, 261, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, 276,
+ 277, -1, 279, 280, 281, 282, 283, -1, 285, -1,
+ 287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, 301, 302, 303, -1, 305, 306,
+ 307, 308, 309, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, 329, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, 341, 342, 343, 344, 345, 346,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, 366,
+ 367, 368, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, 422, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, 444, 445, 446,
+ 447, 448, 449, 450, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, 476,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, 493, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, 503, 504, 505, 506,
+ 507, 508, 509, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, 520, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 550, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 561, 562, -1, -1, -1, -1,
+ -1, -1, -1, 570, 571, 5, 6, 7, 8, 9,
+ 10, 11, 12, -1, 14, 15, -1, -1, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, -1,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, -1,
+ 40, 41, 42, 43, 44, -1, -1, -1, 48, 49,
+ -1, -1, -1, -1, 54, -1, -1, -1, -1, -1,
+ -1, -1, -1, 63, -1, 65, -1, 67, 68, 69,
+ 70, -1, -1, 73, -1, 75, 76, -1, 78, 79,
+ 80, 81, 82, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, -1, -1, -1, -1, 106, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, -1, 172, 173, 174, 175, 176, 177, 178, 179,
+ 180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, -1, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, 258, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, 282, 283, -1, 285, -1, 287, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, 308, 309,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, 341, 342, 343, 344, 345, 346, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, 436, 437, -1, 439,
+ 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, 493, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, 503, 504, 505, 506, 507, 508, 509,
+ -1, 511, 512, 513, 514, 515, 516, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 547, 548, 549,
+ 550, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 561, 562, -1, -1, -1, -1, -1, -1, -1,
+ 570, 571, 5, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, 24, 25, 26, 27, 28, -1, 30, 31, 32,
+ 33, 34, 35, 36, 37, 38, -1, 40, 41, 42,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, 70, -1, -1,
+ 73, -1, 75, 76, -1, 78, 79, 80, 81, 82,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, 106, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, 117, 118, 119, 120, 121, 122,
+ 123, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, 134, 135, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, 148, -1, 150, 151, 152,
+ 153, 154, 155, 156, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, 168, 169, 170, -1, 172,
+ 173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, 188, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, 229, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, 241, -1,
+ 243, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, 261, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, 276, 277, -1, 279, 280, 281, 282,
+ 283, -1, 285, -1, 287, 288, 289, 290, 291, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, 301, 302,
+ 303, -1, 305, 306, 307, 308, 309, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, 329, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, 341, 342,
+ 343, 344, 345, 346, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, 366, 367, 368, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, 422,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, 444, 445, 446, 447, 448, 449, 450, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, 476, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ 493, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ 503, 504, 505, 506, 507, 508, 509, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, 520, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 550, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 561, 562,
+ -1, -1, -1, -1, -1, -1, -1, 570, 571, 5,
+ 6, 7, 8, 9, 10, 11, 12, -1, 14, 15,
+ -1, -1, 18, 19, 20, 21, 22, 23, 24, 25,
+ 26, 27, 28, -1, 30, 31, 32, 33, 34, 35,
+ 36, 37, 38, -1, 40, 41, 42, 43, 44, -1,
+ -1, -1, 48, 49, -1, -1, -1, -1, 54, -1,
+ -1, -1, -1, -1, -1, -1, -1, 63, -1, 65,
+ -1, 67, 68, 69, -1, -1, -1, 73, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ -1, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, -1, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, -1, -1,
+ 136, 137, 138, 139, 140, -1, 142, 143, 144, 145,
+ -1, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, 159, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, -1, -1, -1, -1, 175,
+ -1, -1, -1, 179, 180, 181, 182, 183, 184, 185,
+ 186, 187, -1, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, -1, 224, 225,
+ 226, 227, -1, -1, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, -1, -1, -1, 253, 254, -1,
+ 256, 257, 258, 259, 260, 261, 262, 263, 264, 265,
+ 266, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, 282, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, -1, 301, 302, 303, -1, 305,
+ 306, 307, -1, -1, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, 321, 322, 323, 324, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, -1, -1, 340, -1, 342, 343, 344, 345,
+ -1, -1, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, -1, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, -1, 384, -1,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, -1, 429, 430, 431, 432, 433, 434, 435,
+ 436, 437, -1, 439, 440, 441, 442, 443, -1, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, -1, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, -1, 491, -1, -1, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, -1, 504, 505,
+ 506, 507, 508, -1, -1, 511, 512, 513, 514, 515,
+ -1, 517, 518, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 547, 548, 549, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5, 6, 7, 8, 9, 10, 11,
+ 12, -1, 14, 15, -1, 571, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, -1, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, -1, 40, 41,
+ 42, 43, 44, -1, -1, -1, 48, 49, -1, -1,
+ -1, -1, 54, -1, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, 65, -1, 67, 68, 69, -1, -1,
+ -1, 73, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, -1, 99, 100, 101,
+ -1, -1, -1, -1, -1, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, -1,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, -1, -1, 136, 137, 138, 139, 140, -1,
+ 142, 143, 144, 145, -1, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, 159, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ -1, -1, -1, 175, -1, -1, -1, 179, 180, 181,
+ 182, 183, 184, 185, 186, 187, -1, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, -1, 224, 225, 226, 227, -1, -1, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, -1, -1,
+ -1, 253, 254, -1, 256, 257, 258, 259, 260, 261,
+ 262, 263, 264, 265, 266, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ 282, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, -1, 301,
+ 302, 303, -1, 305, 306, 307, -1, -1, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
+ 322, 323, 324, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, -1, -1, 340, -1,
+ 342, 343, 344, 345, -1, -1, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, -1, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, -1, 384, -1, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, -1, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, -1, 439, 440, 441,
+ 442, 443, -1, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, -1, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, -1, 491,
+ -1, -1, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, -1, 504, 505, 506, 507, 508, -1, -1, 511,
+ 512, 513, 514, 515, -1, 517, 518, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 547, 548, 549, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5, 6, 7,
+ 8, 9, 10, 11, 12, -1, 14, 15, -1, 571,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
+ 28, -1, 30, 31, 32, 33, 34, 35, 36, 37,
+ 38, -1, 40, 41, 42, 43, 44, -1, -1, -1,
+ 48, 49, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, 65, -1, 67,
+ 68, 69, 70, -1, -1, 73, -1, 75, 76, -1,
+ 78, 79, 80, 81, 82, -1, -1, -1, -1, -1,
+ -1, -1, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, 106, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
+ 138, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, 159, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, -1, 172, 173, 174, 175, 176, 177,
+ 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
+ 188, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, 229, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ 258, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, 282, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ 308, 309, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, 341, 342, 343, 344, 345, 346, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, 436, 437,
+ 438, 439, 440, 441, 442, 443, 444, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, 474, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, 493, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, 503, 504, 505, 506, 507,
+ 508, 509, -1, 511, 512, 513, 514, 515, 516, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, 529, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 547,
+ 548, 549, 550, -1, 552, -1, -1, -1, -1, -1,
+ -1, -1, -1, 561, 562, -1, -1, -1, -1, -1,
+ -1, -1, 570, 5, 6, 7, 8, 9, 10, 11,
+ 12, -1, 14, 15, -1, -1, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, -1, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, -1, 40, 41,
+ 42, 43, 44, -1, -1, -1, 48, 49, -1, -1,
+ -1, -1, 54, -1, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, 65, -1, 67, 68, 69, 70, -1,
+ -1, 73, -1, 75, 76, -1, 78, 79, 80, 81,
+ 82, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, -1, 99, 100, 101,
+ -1, -1, -1, -1, 106, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
+ 132, 133, 134, 135, 136, 137, 138, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, 159, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
+ 182, 183, 184, 185, 186, 187, 188, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, 229, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ 242, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, 258, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ 282, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, 298, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, 308, 309, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
+ 322, 323, 324, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, 341,
+ 342, 343, 344, 345, 346, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, -1, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, 487, 488, 489, 490, 491,
+ 492, 493, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, 503, 504, 505, 506, 507, 508, 509, -1, 511,
+ 512, 513, 514, 515, 516, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, 547, 548, 549, 550, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 561,
+ 562, -1, -1, -1, -1, -1, -1, -1, 570, 5,
+ 6, 7, 8, 9, 10, 11, 12, -1, 14, 15,
+ -1, -1, 18, 19, 20, 21, 22, 23, 24, 25,
+ 26, 27, 28, -1, 30, 31, 32, 33, 34, 35,
+ 36, 37, 38, -1, 40, 41, 42, 43, 44, -1,
+ -1, -1, 48, 49, -1, -1, -1, -1, 54, -1,
+ -1, -1, -1, -1, -1, -1, -1, 63, -1, 65,
+ -1, 67, 68, 69, 70, -1, -1, 73, -1, 75,
+ 76, -1, 78, 79, 80, 81, 82, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, 98, 99, 100, 101, -1, -1, -1, 105,
+ 106, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, 134, 135,
+ 136, 137, 138, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, 159, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, -1, 172, 173, 174, 175,
+ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
+ 186, 187, 188, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, 229, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, 258, 259, 260, 261, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, 282, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, 301, 302, 303, -1, 305,
+ 306, 307, 308, 309, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, 321, 322, 323, 324, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, 341, 342, 343, 344, 345,
+ 346, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ 436, 437, -1, 439, 440, 441, 442, 443, 444, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, 455,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, 493, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, 503, 504, 505,
+ 506, 507, 508, 509, -1, 511, 512, 513, 514, 515,
+ 516, 517, -1, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, 547, 548, 549, 550, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 561, 562, -1, -1, -1,
+ -1, -1, -1, -1, 570, 5, 6, 7, 8, 9,
+ 10, 11, 12, -1, 14, 15, -1, -1, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, -1,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, -1,
+ 40, 41, 42, 43, 44, -1, -1, -1, 48, 49,
+ -1, -1, -1, -1, 54, -1, -1, -1, -1, -1,
+ -1, -1, -1, 63, -1, 65, -1, 67, 68, 69,
+ 70, -1, -1, 73, -1, 75, 76, -1, 78, 79,
+ 80, 81, 82, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
+ 100, 101, -1, -1, -1, 105, 106, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, -1, 172, 173, 174, 175, 176, 177, 178, 179,
+ 180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, -1, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, 258, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, 282, 283, -1, 285, -1, 287, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, 308, 309,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, 341, 342, 343, 344, 345, 346, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, 436, 437, -1, 439,
+ 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, 455, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, 493, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, 503, 504, 505, 506, 507, 508, 509,
+ -1, 511, 512, 513, 514, 515, 516, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 547, 548, 549,
+ 550, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 561, 562, -1, -1, -1, -1, -1, -1, -1,
+ 570, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, 70, -1, -1, 73,
+ -1, 75, 76, -1, 78, 79, 80, 81, 82, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, 106, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ 134, 135, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, 188, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, 229, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, 341, 342, 343,
+ 344, 345, 346, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, 493,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, 503,
+ 504, 505, 506, 507, 508, 509, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 550, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 561, 562, -1,
+ -1, -1, -1, -1, 568, 569, 570, 5, 6, 7,
+ 8, 9, 10, 11, 12, -1, 14, 15, -1, -1,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
+ 28, -1, 30, 31, 32, 33, 34, 35, 36, 37,
+ 38, -1, 40, 41, 42, 43, 44, -1, -1, -1,
+ 48, 49, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, 65, -1, 67,
+ 68, 69, 70, -1, -1, 73, -1, 75, 76, -1,
+ 78, 79, 80, 81, 82, -1, -1, -1, -1, -1,
+ -1, -1, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, 106, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
+ 138, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, 159, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, -1, 172, 173, 174, 175, 176, 177,
+ 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
+ 188, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, 229, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ 258, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, 282, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ 308, 309, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, 341, 342, 343, 344, 345, 346, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, 436, 437,
+ -1, 439, 440, 441, 442, 443, 444, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, -1, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, 493, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, 503, 504, 505, 506, 507,
+ 508, 509, -1, 511, 512, 513, 514, 515, 516, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, -1, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 547,
+ 548, 549, 550, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 561, 562, 563, -1, -1, -1, -1,
+ -1, -1, 570, 5, 6, 7, 8, 9, 10, 11,
+ 12, -1, 14, 15, -1, -1, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, -1, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, -1, 40, 41,
+ 42, 43, 44, -1, -1, -1, 48, 49, -1, -1,
+ -1, -1, 54, -1, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, 65, -1, 67, 68, 69, 70, -1,
+ -1, 73, -1, 75, 76, -1, 78, 79, 80, 81,
+ 82, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
+ -1, -1, -1, -1, 106, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, 134, 135, 136, 137, 138, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, 159, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
+ 182, 183, 184, 185, 186, 187, 188, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, 229, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, 258, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ 282, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, 308, 309, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
+ 322, 323, 324, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, 341,
+ 342, 343, 344, 345, 346, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, -1, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, 490, 491,
+ 492, 493, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, 503, 504, 505, 506, 507, 508, 509, -1, 511,
+ 512, 513, 514, 515, 516, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, 547, 548, 549, 550, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 561,
+ 562, -1, -1, -1, -1, -1, -1, -1, 570, 5,
+ 6, 7, 8, 9, 10, 11, 12, -1, 14, 15,
+ -1, -1, 18, 19, 20, 21, 22, 23, 24, 25,
+ 26, 27, 28, -1, 30, 31, 32, 33, 34, 35,
+ 36, 37, 38, -1, 40, 41, 42, 43, 44, -1,
+ -1, -1, 48, 49, -1, -1, -1, -1, 54, -1,
+ -1, -1, -1, -1, -1, -1, -1, 63, -1, 65,
+ -1, 67, 68, 69, 70, -1, -1, 73, -1, 75,
+ 76, -1, 78, 79, 80, 81, 82, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ 106, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, 134, 135,
+ 136, 137, 138, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, 159, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, -1, 172, 173, 174, 175,
+ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
+ 186, 187, 188, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, 229, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, 258, 259, 260, 261, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, 282, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, 301, 302, 303, -1, 305,
+ 306, 307, 308, 309, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, 321, 322, 323, 324, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, 341, 342, 343, 344, 345,
+ 346, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ 436, 437, -1, 439, 440, 441, 442, 443, 444, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, 493, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, 503, 504, 505,
+ 506, 507, 508, 509, -1, 511, 512, 513, 514, 515,
+ 516, 517, 518, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, 547, 548, 549, 550, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 561, 562, -1, -1, -1,
+ -1, -1, -1, -1, 570, 5, 6, 7, 8, 9,
+ 10, 11, 12, -1, 14, 15, -1, -1, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, -1,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, -1,
+ 40, 41, 42, 43, 44, -1, -1, -1, 48, 49,
+ -1, -1, -1, -1, 54, -1, -1, -1, -1, -1,
+ -1, -1, -1, 63, -1, 65, -1, 67, 68, 69,
+ 70, -1, -1, 73, -1, 75, 76, -1, 78, 79,
+ 80, 81, 82, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, -1, -1, -1, -1, 106, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, -1, 172, 173, 174, 175, 176, 177, 178, 179,
+ 180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, 242, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, 258, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, 282, 283, -1, 285, -1, 287, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, 308, 309,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, 341, 342, 343, 344, 345, 346, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, 436, 437, -1, 439,
+ 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, 493, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, 503, 504, 505, 506, 507, 508, 509,
+ -1, 511, 512, 513, 514, 515, 516, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 547, 548, 549,
+ 550, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 561, 562, -1, -1, -1, -1, -1, -1, -1,
+ 570, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, 70, -1, -1, 73,
+ -1, 75, 76, -1, 78, 79, 80, 81, 82, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, 106, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ 134, 135, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, 188, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, 229, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, 341, 342, 343,
+ 344, 345, 346, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, 486, -1, 488, 489, 490, 491, 492, 493,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, 503,
+ 504, 505, 506, 507, 508, 509, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 550, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 561, 562, -1,
+ -1, -1, -1, -1, -1, -1, 570, 5, 6, 7,
+ 8, 9, 10, 11, 12, -1, 14, 15, -1, -1,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
+ 28, -1, 30, 31, 32, 33, 34, 35, 36, 37,
+ 38, -1, 40, 41, 42, 43, 44, -1, -1, -1,
+ 48, 49, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, 65, -1, 67,
+ 68, 69, 70, -1, -1, 73, -1, 75, 76, -1,
+ 78, 79, 80, 81, 82, -1, -1, -1, -1, -1,
+ -1, -1, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, 106, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
+ 138, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, 159, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
+ 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
+ 188, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, 229, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ 258, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, 282, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ 308, 309, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, 341, 342, 343, 344, 345, 346, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, 436, 437,
+ -1, 439, 440, 441, 442, 443, 444, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, -1, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, 493, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, 503, 504, 505, 506, 507,
+ 508, 509, -1, 511, 512, 513, 514, 515, 516, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, -1, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 547,
+ 548, 549, 550, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 561, 562, -1, -1, -1, -1, -1,
+ -1, -1, 570, 5, 6, 7, 8, 9, 10, 11,
+ 12, -1, 14, 15, -1, -1, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, -1, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, -1, 40, 41,
+ 42, 43, 44, -1, -1, -1, 48, 49, -1, -1,
+ -1, -1, 54, -1, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, 65, -1, 67, 68, 69, 70, -1,
+ -1, 73, -1, 75, 76, -1, 78, 79, 80, 81,
+ 82, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, -1, 99, 100, 101,
+ -1, -1, -1, -1, 106, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, 134, 135, 136, 137, 138, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, 159, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, 171,
+ 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
+ 182, 183, 184, 185, 186, 187, 188, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, 229, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, 258, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ 282, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, 308, 309, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
+ 322, 323, 324, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, 341,
+ 342, 343, 344, 345, 346, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, -1, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, 490, 491,
+ 492, 493, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, 503, 504, 505, 506, 507, 508, 509, -1, 511,
+ 512, 513, 514, 515, 516, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, 547, 548, 549, 550, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 561,
+ 562, -1, -1, -1, -1, -1, -1, -1, 570, 5,
+ 6, 7, 8, 9, 10, 11, 12, -1, 14, 15,
+ -1, -1, 18, 19, 20, 21, 22, 23, 24, 25,
+ 26, 27, 28, -1, 30, 31, 32, 33, 34, 35,
+ 36, 37, 38, -1, 40, 41, 42, 43, 44, -1,
+ -1, -1, 48, 49, -1, -1, -1, -1, 54, -1,
+ -1, -1, -1, -1, -1, -1, -1, 63, -1, 65,
+ -1, 67, 68, 69, 70, -1, -1, 73, -1, 75,
+ 76, -1, 78, 79, 80, 81, 82, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ 106, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, 134, 135,
+ 136, 137, 138, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, 159, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, 171, 172, 173, 174, 175,
+ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
+ 186, 187, 188, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, 229, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, 258, 259, 260, 261, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, 282, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, 301, 302, 303, -1, 305,
+ 306, 307, 308, 309, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, 321, 322, 323, 324, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, 341, 342, 343, 344, 345,
+ 346, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ 436, 437, -1, 439, 440, 441, 442, 443, 444, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, 493, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, 503, 504, 505,
+ 506, 507, 508, 509, -1, 511, 512, 513, 514, 515,
+ 516, 517, -1, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, 547, 548, 549, 550, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 561, 562, -1, -1, -1,
+ -1, -1, -1, -1, 570, 5, 6, 7, 8, 9,
+ 10, 11, 12, -1, 14, 15, -1, -1, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, -1,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, -1,
+ 40, 41, 42, 43, 44, -1, -1, -1, 48, 49,
+ -1, -1, -1, -1, 54, -1, -1, -1, -1, -1,
+ -1, -1, -1, 63, -1, 65, -1, 67, 68, 69,
+ 70, -1, -1, 73, -1, 75, 76, -1, 78, 79,
+ 80, 81, 82, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, -1, -1, -1, -1, 106, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, -1, 172, 173, 174, 175, 176, 177, 178, 179,
+ 180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, -1, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, 258, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, 282, 283, -1, 285, -1, 287, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, 308, 309,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, 341, 342, 343, 344, 345, 346, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, 436, 437, -1, 439,
+ 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, 493, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, 503, 504, 505, 506, 507, 508, 509,
+ -1, 511, 512, 513, 514, 515, 516, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 547, 548, 549,
+ 550, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 561, 562, -1, -1, -1, -1, -1, -1, -1,
+ 570, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, 70, -1, -1, 73,
+ -1, 75, 76, -1, 78, 79, 80, 81, 82, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, 106, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ 134, 135, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, 188, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, 229, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, 341, 342, 343,
+ 344, 345, 346, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, 493,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, 503,
+ 504, 505, 506, 507, 508, 509, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 550, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 561, 562, -1,
+ -1, -1, -1, -1, -1, -1, 570, 5, 6, 7,
+ 8, 9, 10, 11, 12, -1, 14, 15, -1, -1,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
+ 28, -1, 30, 31, 32, 33, 34, 35, 36, 37,
+ 38, -1, 40, 41, 42, 43, 44, -1, -1, -1,
+ 48, 49, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, 65, -1, 67,
+ 68, 69, 70, -1, -1, 73, -1, 75, 76, -1,
+ 78, 79, 80, 81, 82, -1, -1, -1, -1, -1,
+ -1, -1, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, 106, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
+ 138, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, 159, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, -1, 172, 173, 174, 175, 176, 177,
+ 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
+ 188, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, 229, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ 258, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, 282, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ 308, 309, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, 341, 342, 343, 344, 345, 346, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, 436, 437,
+ -1, 439, 440, 441, 442, 443, 444, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, -1, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, 493, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, 503, 504, 505, 506, 507,
+ 508, 509, -1, 511, 512, 513, 514, 515, 516, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, -1, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 547,
+ 548, 549, 550, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 561, 562, -1, -1, -1, -1, -1,
+ -1, -1, 570, 5, 6, 7, 8, 9, 10, 11,
+ 12, -1, 14, 15, -1, -1, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, -1, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, -1, 40, 41,
+ 42, 43, 44, -1, -1, -1, 48, 49, -1, -1,
+ -1, -1, 54, -1, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, 65, -1, 67, 68, 69, 70, -1,
+ -1, 73, -1, 75, 76, -1, 78, 79, 80, 81,
+ 82, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, -1, 99, 100, 101,
+ -1, -1, -1, -1, 106, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, 134, 135, 136, 137, 138, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, 159, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
+ 182, 183, 184, 185, 186, 187, 188, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, 229, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, 258, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ 282, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, 308, 309, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
+ 322, 323, 324, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, 341,
+ 342, 343, 344, 345, 346, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, -1, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, 490, 491,
+ 492, 493, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, 503, 504, 505, 506, 507, 508, 509, -1, 511,
+ 512, 513, 514, 515, 516, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, 547, 548, 549, 550, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 561,
+ 562, -1, -1, -1, -1, -1, -1, -1, 570, 5,
+ 6, 7, 8, 9, 10, 11, 12, -1, 14, 15,
+ -1, -1, 18, 19, 20, 21, 22, 23, 24, 25,
+ 26, 27, 28, -1, 30, 31, 32, 33, 34, 35,
+ 36, 37, 38, -1, 40, 41, 42, 43, 44, -1,
+ -1, -1, 48, 49, -1, -1, -1, -1, 54, -1,
+ -1, -1, -1, -1, -1, -1, -1, 63, -1, 65,
+ -1, 67, 68, 69, 70, -1, -1, 73, -1, 75,
+ 76, -1, 78, 79, 80, 81, 82, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ 106, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, 134, 135,
+ 136, 137, 138, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, 159, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, -1, 172, 173, 174, 175,
+ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
+ 186, 187, 188, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, 229, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, 258, 259, 260, 261, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, 282, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, 301, 302, 303, -1, 305,
+ 306, 307, 308, 309, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, 321, 322, 323, 324, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, 341, 342, 343, 344, 345,
+ 346, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ 436, 437, -1, 439, 440, 441, 442, 443, 444, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, 493, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, 503, 504, 505,
+ 506, 507, 508, 509, -1, 511, 512, 513, 514, 515,
+ 516, 517, -1, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, 547, 548, 549, 550, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 561, 562, -1, -1, -1,
+ -1, -1, -1, -1, 570, 5, 6, 7, 8, 9,
+ 10, 11, 12, -1, 14, 15, -1, -1, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, -1,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, -1,
+ 40, 41, 42, 43, 44, -1, -1, -1, 48, 49,
+ -1, -1, -1, -1, 54, -1, -1, -1, -1, -1,
+ -1, -1, -1, 63, -1, 65, -1, 67, 68, 69,
+ 70, -1, -1, 73, -1, 75, 76, -1, 78, 79,
+ 80, 81, 82, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, -1, -1, -1, -1, 106, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
+ 180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, -1, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, 258, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, 282, 283, -1, 285, -1, 287, -1, -1,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, 308, 309,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, 341, 342, 343, -1, 345, 346, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, 436, 437, -1, 439,
+ 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, 493, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, 503, 504, 505, 506, 507, 508, 509,
+ -1, 511, 512, 513, 514, 515, 516, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 547, 548, 549,
+ 550, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 561, 562, -1, -1, -1, -1, -1, -1, -1,
+ 570, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, 70, -1, -1, 73,
+ -1, 75, 76, -1, 78, 79, 80, 81, 82, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, 106, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ 134, 135, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, 188, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, 229, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, 346, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, 493,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, 509, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 561, 562, -1,
+ -1, -1, -1, -1, -1, -1, 570, 5, 6, 7,
+ 8, 9, 10, 11, 12, -1, 14, 15, -1, -1,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
+ 28, -1, 30, 31, 32, 33, 34, 35, 36, 37,
+ 38, -1, 40, 41, 42, 43, 44, -1, -1, -1,
+ 48, 49, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, 65, -1, 67,
+ 68, 69, 70, -1, -1, 73, -1, 75, 76, -1,
+ 78, 79, 80, 81, 82, -1, -1, -1, -1, -1,
+ -1, -1, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, 106, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
+ 138, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, 159, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, -1, 172, 173, 174, 175, 176, 177,
+ 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
+ -1, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, 229, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ 258, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, 282, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ 308, 309, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, -1, 342, 343, 344, 345, 346, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, 436, 437,
+ -1, 439, 440, 441, 442, 443, 444, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, -1, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, 493, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, -1, 504, 505, 506, 507,
+ 508, 509, -1, 511, 512, 513, 514, 515, 516, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, -1, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 547,
+ 548, 549, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 561, 562, -1, -1, -1, -1, -1,
+ -1, -1, 570, 5, 6, 7, 8, 9, 10, 11,
+ 12, -1, 14, 15, -1, -1, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, -1, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, -1, 40, 41,
+ 42, 43, 44, -1, -1, -1, 48, 49, -1, -1,
+ -1, -1, 54, -1, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, 65, -1, 67, 68, 69, 70, -1,
+ -1, 73, -1, 75, 76, -1, 78, 79, -1, 81,
+ 82, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, -1, 99, 100, 101,
+ -1, -1, -1, -1, 106, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, 134, 135, 136, 137, 138, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, 159, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
+ 182, 183, 184, 185, 186, 187, -1, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, 229, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, 258, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ 282, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, 308, 309, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
+ 322, 323, 324, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, -1,
+ 342, 343, 344, 345, 346, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, -1, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, 490, 491,
+ 492, 493, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, -1, 504, 505, 506, 507, 508, 509, -1, 511,
+ 512, 513, 514, 515, 516, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, 547, 548, 549, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 561,
+ 562, -1, -1, -1, -1, -1, -1, -1, 570, 5,
+ 6, 7, 8, 9, 10, 11, 12, -1, 14, 15,
+ -1, -1, 18, 19, 20, 21, 22, 23, 24, 25,
+ 26, 27, 28, -1, 30, 31, 32, 33, 34, 35,
+ 36, 37, 38, -1, 40, 41, 42, 43, 44, -1,
+ -1, -1, 48, 49, -1, -1, -1, -1, 54, -1,
+ -1, -1, -1, -1, -1, -1, -1, 63, -1, 65,
+ -1, 67, 68, 69, 70, -1, -1, 73, -1, 75,
+ 76, -1, 78, 79, -1, 81, 82, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ 106, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, 134, 135,
+ 136, 137, 138, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, 159, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, -1, 172, 173, 174, 175,
+ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
+ 186, 187, -1, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, 229, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, 258, 259, 260, 261, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, 282, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, 301, 302, 303, -1, 305,
+ 306, 307, 308, 309, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, 321, 322, 323, 324, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, -1, 342, 343, 344, 345,
+ 346, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ 436, 437, -1, 439, 440, 441, 442, 443, 444, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, 493, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, -1, 504, 505,
+ 506, 507, 508, 509, -1, 511, 512, 513, 514, 515,
+ 516, 517, -1, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, 547, 548, 549, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, 570, 18, 19, 20, 21, 22,
+ 23, 24, 25, 26, 27, 28, -1, 30, 31, 32,
+ 33, 34, 35, 36, 37, 38, -1, 40, 41, 42,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, 70, -1, -1,
+ 73, -1, 75, 76, -1, 78, 79, -1, 81, 82,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, 106, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, 117, 118, 119, 120, 121, 122,
+ 123, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, 134, 135, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, 148, -1, 150, 151, 152,
+ 153, 154, 155, 156, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, 168, 169, 170, -1, 172,
+ 173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, 229, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, 241, -1,
+ 243, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, 261, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, 276, 277, -1, 279, 280, 281, 282,
+ 283, -1, 285, -1, 287, 288, 289, 290, 291, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, 301, 302,
+ 303, -1, 305, 306, 307, 308, 309, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, 329, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, 344, 345, 346, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, 366, 367, 368, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, 422,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, 444, 445, 446, 447, 448, 449, 450, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, 476, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ 493, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, 509, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, 520, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, -1, -1, -1,
+ -1, -1, -1, -1, -1, 5, 6, 7, 8, 9,
+ 10, 11, 12, -1, 14, 15, -1, 570, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, -1,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, -1,
+ 40, 41, 42, 43, 44, -1, -1, -1, 48, 49,
+ -1, -1, -1, -1, 54, -1, -1, -1, -1, -1,
+ -1, -1, -1, 63, -1, 65, -1, 67, 68, 69,
+ 70, -1, -1, 73, -1, 75, 76, -1, 78, 79,
+ -1, 81, 82, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, -1, -1, -1, -1, 106, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, -1, 172, 173, 174, 175, 176, 177, 178, 179,
+ 180, 181, 182, 183, 184, 185, 186, 187, -1, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, -1, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, 258, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, 282, 283, -1, 285, -1, 287, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, 308, 309,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, -1, 342, 343, 344, 345, 346, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, 436, 437, -1, 439,
+ 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, 493, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, -1, 504, 505, 506, 507, 508, 509,
+ -1, 511, 512, 513, 514, 515, 516, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 547, 548, 549,
+ -1, -1, -1, -1, -1, -1, -1, -1, 5, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ 570, 18, 19, 20, 21, 22, 23, 24, 25, 26,
+ 27, 28, -1, 30, 31, 32, 33, 34, 35, 36,
+ 37, 38, -1, 40, 41, 42, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ 117, 118, 119, 120, 121, 122, 123, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, 135, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, 148, -1, 150, 151, 152, 153, 154, 155, 156,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, 168, 169, 170, -1, 172, 173, 174, 175, 176,
+ 177, 178, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, 241, -1, 243, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, 261, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, 276,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
+ 297, -1, 299, 300, 301, 302, 303, -1, 305, 306,
+ 307, 308, 309, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, 329, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, 344, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ 357, 358, 359, 360, -1, -1, 363, 364, 365, 366,
+ 367, 368, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, 422, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, 438, 439, 440, 441, 442, 443, 444, 445, 446,
+ 447, 448, 449, 450, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, 474, 475, 476,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, 509, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, 520, 521, 522, 523, 524, -1, -1,
+ 527, -1, 529, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, -1, -1, 552, -1, -1, -1, -1,
+ -1, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, 570, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, 135, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, 297, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, 357, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, 509, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, -1, -1, -1, -1,
+ -1, -1, -1, -1, 5, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, 570, 18, 19, 20,
+ 21, 22, 23, 24, 25, 26, 27, 28, -1, 30,
+ 31, 32, 33, 34, 35, 36, 37, 38, -1, 40,
+ 41, 42, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, 117, 118, 119, 120,
+ 121, 122, 123, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, 135, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, 148, -1, 150,
+ 151, 152, 153, 154, 155, 156, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, 168, 169, 170,
+ -1, 172, 173, 174, 175, 176, 177, 178, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ 241, -1, 243, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ 261, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, 276, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, 288, 289, 290,
+ 291, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ 301, 302, 303, -1, 305, 306, 307, 308, 309, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, 329, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, 344, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, 366, 367, 368, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, 422, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, 444, 445, 446, 447, 448, 449, 450,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, 476, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, 509, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, 520,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5, 6, 7,
+ 8, 9, 10, 11, 12, -1, 14, 15, -1, 570,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
+ 28, -1, 30, 31, 32, 33, 34, 35, 36, 37,
+ 38, -1, 40, 41, 42, 43, 44, -1, -1, -1,
+ 48, 49, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, 65, -1, 67,
+ 68, 69, -1, -1, -1, 73, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, -1, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, -1, 135, 136, 137,
+ 138, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, 159, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, -1, 172, 173, 174, 175, 176, 177,
+ 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
+ -1, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, -1, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ 258, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, -1, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ 308, 309, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, -1, 342, 343, 344, 345, -1, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, 436, 437,
+ -1, 439, 440, 441, 442, 443, 444, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, -1, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, -1, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, -1, 504, 505, 506, 507,
+ 508, 509, -1, 511, 512, 513, 514, 515, 516, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, -1, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 547,
+ 548, 549, -1, -1, -1, -1, -1, -1, -1, -1,
+ 5, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, 570, 18, 19, 20, 21, 22, 23, 24,
+ 25, 26, 27, 28, -1, 30, 31, 32, 33, 34,
+ 35, 36, 37, 38, -1, 40, 41, 42, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ 135, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, 148, -1, 150, 151, 152, 153, 154,
+ 155, 156, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, 168, 169, 170, -1, 172, 173, 174,
+ 175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, 241, -1, 243, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, 276, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, 301, 302, 303, -1,
+ 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, 344,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, 422, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, 444,
+ 445, 446, 447, 448, 449, 450, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, 476, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, 509, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, 520, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5, 6, 7, 8, 9, 10, 11,
+ 12, -1, 14, 15, -1, 570, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, -1, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, -1, 40, 41,
+ 42, 43, 44, -1, -1, -1, 48, 49, -1, -1,
+ -1, -1, 54, -1, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, 65, -1, 67, 68, 69, -1, -1,
+ -1, 73, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, -1, 99, 100, 101,
+ -1, -1, -1, -1, -1, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, -1, 135, 136, 137, 138, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, 159, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
+ 182, 183, 184, 185, 186, 187, -1, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, -1, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, 258, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ -1, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, 308, 309, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
+ 322, 323, 324, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, -1,
+ 342, 343, 344, 345, -1, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, -1, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, 490, 491,
+ 492, -1, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, -1, 504, 505, 506, 507, 508, 509, -1, 511,
+ 512, 513, 514, 515, 516, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, 547, 548, 549, -1, -1,
+ -1, -1, -1, -1, -1, -1, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, 570, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, 121, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, 344, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, 366, 367, 368,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, -1, -1, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, 570, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, 107, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, 168, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ 243, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, 276, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, 291, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, 301, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, 329, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, 422,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, -1, -1, -1,
+ 6, 7, 8, 9, 10, 11, 12, -1, 14, 15,
+ -1, -1, 18, 19, 20, 21, 22, 23, 571, 25,
+ 26, 27, -1, -1, 30, 31, 32, 33, -1, -1,
+ 36, 37, 38, -1, 40, -1, -1, 43, 44, -1,
+ -1, -1, 48, 49, -1, -1, -1, -1, 54, -1,
+ -1, -1, -1, -1, -1, -1, -1, 63, -1, 65,
+ -1, 67, 68, 69, 70, -1, -1, 73, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ -1, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, -1, 118, 119, 120, 121, 122, -1, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, -1, -1,
+ 136, 137, 138, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, -1, -1, 150, 151, 152, 153, 154, 155,
+ -1, 157, 158, 159, -1, 161, 162, 163, 164, 165,
+ 166, -1, -1, 169, 170, -1, -1, -1, -1, -1,
+ -1, -1, -1, 179, 180, 181, 182, 183, 184, 185,
+ 186, 187, -1, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, -1, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, -1, -1, -1, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, 258, 259, 260, -1, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ -1, 277, -1, 279, 280, 281, -1, 283, -1, 285,
+ -1, 287, -1, -1, 290, -1, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, -1, 302, -1, -1, 305,
+ 306, 307, -1, -1, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, 321, 322, 323, 324, 325,
+ 326, 327, 328, -1, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, -1, 342, 343, -1, 345,
+ -1, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ -1, 367, -1, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, -1, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ 436, 437, 438, 439, 440, 441, 442, 443, -1, 445,
+ 446, 447, 448, 449, -1, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, 474, 475,
+ -1, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, -1, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, -1, 504, 505,
+ 506, 507, 508, -1, -1, 511, 512, 513, 514, 515,
+ 516, 517, -1, 519, -1, 521, 522, 523, 524, -1,
+ -1, 527, -1, 529, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, 547, 548, 549, -1, -1, 552, -1, -1, -1,
+ -1, -1, -1, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, 570, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, 438, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, 474, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, 529, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, -1, -1, 552,
+ -1, -1, -1, -1, -1, -1, 6, 7, 8, 9,
+ 10, 11, 12, -1, 14, 15, -1, 570, 18, 19,
+ 20, 21, 22, 23, -1, 25, 26, 27, -1, -1,
+ 30, 31, 32, 33, -1, -1, 36, 37, 38, -1,
+ 40, -1, -1, 43, 44, -1, -1, -1, 48, 49,
+ -1, -1, -1, -1, 54, -1, -1, -1, -1, -1,
+ -1, -1, -1, 63, -1, 65, -1, 67, 68, 69,
+ -1, -1, -1, 73, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, -1, -1, -1, -1, -1, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, -1, 118, 119,
+ 120, 121, 122, -1, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, -1, -1, 136, 137, 138, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, -1, -1,
+ 150, 151, 152, 153, 154, 155, -1, 157, 158, 159,
+ -1, 161, 162, 163, 164, 165, 166, -1, -1, 169,
+ 170, -1, -1, -1, -1, 175, -1, -1, -1, 179,
+ 180, 181, 182, 183, 184, 185, 186, 187, -1, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, -1,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, -1, -1, -1, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, 258, 259,
+ 260, -1, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, -1, 277, -1, 279,
+ 280, 281, -1, 283, -1, 285, -1, 287, -1, -1,
+ 290, -1, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, -1, 302, -1, -1, 305, 306, 307, -1, -1,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, 321, 322, 323, 324, 325, 326, 327, 328, -1,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, -1, 342, 343, -1, 345, -1, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, 357, 358, 359,
+ 360, -1, -1, 363, 364, 365, -1, 367, -1, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, -1, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, 436, 437, -1, 439,
+ 440, 441, 442, 443, -1, 445, 446, 447, 448, 449,
+ -1, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, 474, 475, -1, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, -1, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, -1, 504, 505, 506, 507, 508, -1,
+ -1, 511, 512, 513, 514, 515, 516, 517, -1, 519,
+ -1, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 547, 548, 549,
+ -1, -1, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 570, 25, 26, 27, -1, -1, 30, 31, 32, 33,
+ -1, -1, 36, 37, 38, -1, 40, -1, -1, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, 76, -1, -1, -1, -1, 81, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, -1, 118, 119, 120, 121, 122, -1,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, -1, -1, 150, 151, 152, 153,
+ 154, 155, -1, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, -1, 169, 170, -1, -1, -1,
+ -1, -1, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, -1, -1, -1,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, -1, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, -1, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, -1, -1, 290, -1, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, -1, 302, -1,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, -1, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ -1, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, -1, 367, -1, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, -1, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, -1, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, -1, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, -1, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, 569, 570, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, 76, -1, -1, -1, -1,
+ 81, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, -1,
+ -1, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, 570,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, -1, -1, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 570, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, -1, -1, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, 570, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, -1, -1, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, 570, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, 570, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, 70, -1, -1, 73,
+ -1, 75, 76, -1, -1, -1, 80, 81, -1, -1,
+ -1, -1, -1, 87, 88, 89, 90, 91, 92, 93,
+ 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
+ 104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
+ 114, 115, 116, 117, 118, 119, 120, -1, 122, 123,
+ 124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
+ 134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
+ 144, 145, -1, 147, 148, 149, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
+ 164, 165, 166, 167, 168, 169, 170, -1, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
+ 194, 195, 196, 197, 198, 199, 200, 201, 202, 203,
+ 204, 205, 206, 207, 208, 209, 210, 211, 212, 213,
+ 214, 215, 216, 217, 218, 219, 220, 221, 222, -1,
+ 224, 225, 226, 227, -1, 229, 230, 231, 232, 233,
+ 234, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 246, 247, 248, 249, -1, 251, -1, 253,
+ 254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
+ 274, 275, 276, -1, -1, 279, 280, 281, 282, 283,
+ 284, 285, 286, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, 297, 298, 299, -1, 301, 302, 303,
+ 304, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, -1, 340, 341, 342, 343,
+ 344, 345, 346, -1, 348, 349, 350, 351, 352, 353,
+ 354, 355, 356, 357, 358, 359, 360, 361, 362, 363,
+ 364, -1, 366, 367, 368, -1, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, 380, 381, 382, -1,
+ 384, -1, 386, 387, 388, 389, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, 405, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, 419, 420, 421, 422, 423,
+ 424, 425, 426, 427, -1, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, 438, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, 455, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, -1, 470, 471, 472, 473,
+ 474, 475, 476, 477, 478, 479, 480, 481, 482, 483,
+ 484, 485, -1, 487, 488, 489, -1, 491, -1, 493,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, 503,
+ 504, 505, 506, 507, 508, 509, 510, 511, 512, 513,
+ 514, 515, -1, 517, 518, 519, 520, 521, 522, 523,
+ 524, 525, 526, 527, 528, 529, 530, 531, 532, 533,
+ 534, 535, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 547, 548, 549, -1, -1, -1, -1,
+ -1, -1, -1, -1, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, 5, 6, 7, 8, 9, 10, 11,
+ 12, -1, 14, 15, -1, -1, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, -1, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, -1, 40, 41,
+ 42, 43, 44, -1, -1, -1, 48, 49, -1, -1,
+ -1, -1, 54, -1, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, 65, -1, 67, 68, 69, 70, -1,
+ -1, 73, -1, 75, 76, -1, -1, -1, 80, 81,
+ -1, -1, -1, -1, -1, 87, 88, 89, 90, 91,
+ 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
+ 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
+ 112, 113, 114, 115, 116, 117, 118, 119, 120, -1,
+ 122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
+ 132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
+ 142, 143, 144, 145, -1, 147, 148, 149, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, 159, 160, 161,
+ 162, 163, 164, 165, 166, 167, 168, 169, 170, -1,
+ 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
+ 182, 183, 184, 185, 186, 187, 188, 189, 190, 191,
+ 192, 193, 194, 195, 196, 197, 198, 199, 200, 201,
+ 202, 203, 204, 205, 206, 207, 208, 209, 210, 211,
+ 212, 213, 214, 215, 216, 217, 218, 219, 220, 221,
+ 222, -1, 224, 225, 226, 227, -1, 229, 230, 231,
+ 232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
+ 242, 243, 244, 245, 246, 247, 248, 249, -1, 251,
+ -1, 253, 254, 255, 256, 257, 258, 259, 260, 261,
+ 262, 263, 264, 265, 266, 267, 268, 269, 270, 271,
+ 272, 273, 274, 275, 276, -1, -1, 279, 280, 281,
+ 282, 283, 284, 285, 286, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, 297, 298, 299, -1, 301,
+ 302, 303, 304, 305, 306, 307, 308, 309, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
+ 322, 323, 324, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, -1, 340, 341,
+ 342, 343, 344, 345, 346, -1, 348, 349, 350, 351,
+ 352, 353, 354, 355, 356, 357, 358, 359, 360, 361,
+ 362, 363, 364, -1, 366, 367, 368, -1, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, 380, 381,
+ 382, -1, 384, -1, 386, 387, 388, 389, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, 405, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, 419, 420, 421,
+ 422, 423, 424, 425, 426, 427, -1, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, 438, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, 455, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, -1, 470, 471,
+ 472, 473, 474, 475, 476, 477, 478, 479, 480, 481,
+ 482, 483, 484, 485, -1, 487, 488, 489, -1, 491,
+ -1, 493, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, 503, 504, 505, 506, 507, 508, 509, 510, 511,
+ 512, 513, 514, 515, -1, 517, 518, 519, 520, 521,
+ 522, 523, 524, 525, 526, 527, 528, 529, 530, 531,
+ 532, 533, 534, 535, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 547, 548, 549, -1, -1,
+ -1, -1, -1, -1, -1, -1, 558, 559, 560, 561,
+ 562, 563, 564, 565, 566, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, 80,
+ -1, -1, -1, -1, -1, -1, 87, 88, 89, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, -1,
+ -1, -1, -1, -1, -1, -1, -1, 558, 559, 560,
+ 561, 562, 563, 564, 565, 566, 6, 7, 8, 9,
+ 10, 11, 12, -1, 14, 15, -1, -1, 18, 19,
+ 20, 21, 22, 23, -1, 25, 26, 27, -1, -1,
+ 30, 31, 32, 33, -1, -1, 36, 37, 38, -1,
+ 40, -1, -1, 43, 44, -1, -1, -1, 48, 49,
+ -1, -1, -1, -1, 54, -1, -1, -1, -1, -1,
+ -1, -1, -1, 63, -1, 65, -1, 67, 68, 69,
+ -1, -1, -1, 73, -1, -1, -1, -1, -1, -1,
+ 80, -1, -1, -1, -1, -1, -1, 87, 88, 89,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, -1, -1, -1, -1, -1, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, -1, 118, 119,
+ 120, 121, 122, -1, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, -1, -1, 136, 137, 138, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, -1, -1,
+ 150, 151, 152, 153, 154, 155, -1, 157, 158, 159,
+ -1, 161, 162, 163, 164, 165, 166, -1, -1, 169,
+ 170, -1, -1, -1, -1, -1, -1, -1, -1, 179,
+ 180, 181, 182, 183, 184, 185, 186, 187, -1, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, -1,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, -1, -1, -1, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, 258, 259,
+ 260, -1, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, -1, 277, -1, 279,
+ 280, 281, -1, 283, -1, 285, -1, 287, -1, -1,
+ 290, -1, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, -1, 302, -1, -1, 305, 306, 307, -1, -1,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, 321, 322, 323, 324, 325, 326, 327, 328, -1,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, -1, 342, 343, -1, 345, -1, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, -1, 367, -1, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, -1, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, 436, 437, -1, 439,
+ 440, 441, 442, 443, -1, 445, 446, 447, 448, 449,
+ -1, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, -1, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, -1, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, -1, 504, 505, 506, 507, 508, -1,
+ -1, 511, 512, 513, 514, 515, 516, 517, -1, 519,
+ -1, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 547, 548, 549,
+ -1, -1, -1, -1, -1, -1, -1, -1, 558, 559,
+ 560, 561, 562, 563, 564, 565, 566, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, 80, -1, -1, -1, -1, -1, -1, 87, 88,
+ 89, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, -1, -1, -1, -1, -1, -1, -1, -1, 558,
+ 559, 560, 561, 562, 563, 564, 565, 566, 6, 7,
+ 8, 9, 10, 11, 12, -1, 14, 15, -1, -1,
+ 18, 19, 20, 21, 22, 23, -1, 25, 26, 27,
+ -1, -1, 30, 31, 32, 33, -1, -1, 36, 37,
+ 38, -1, 40, -1, -1, 43, 44, -1, -1, -1,
+ 48, 49, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, 65, -1, 67,
+ 68, 69, -1, -1, -1, 73, -1, -1, -1, -1,
+ -1, -1, 80, -1, -1, -1, -1, -1, -1, 87,
+ 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, -1, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, -1,
+ 118, 119, 120, 121, 122, -1, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, -1, -1, 136, 137,
+ 138, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ -1, -1, 150, 151, 152, 153, 154, 155, -1, 157,
+ 158, 159, -1, 161, 162, 163, 164, 165, 166, -1,
+ -1, 169, 170, -1, -1, -1, -1, -1, -1, -1,
+ -1, 179, 180, 181, 182, 183, 184, 185, 186, 187,
+ -1, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, -1, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, -1, -1, -1, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ 258, 259, 260, -1, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, -1, 277,
+ -1, 279, 280, 281, -1, 283, -1, 285, -1, 287,
+ -1, -1, 290, -1, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, -1, 302, -1, -1, 305, 306, 307,
+ -1, -1, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
+ 328, -1, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, -1, 342, 343, -1, 345, -1, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, -1, 367,
+ -1, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, -1, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, 436, 437,
+ -1, 439, 440, 441, 442, 443, -1, 445, 446, 447,
+ 448, 449, -1, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, -1, 475, -1, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, -1, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, -1, 504, 505, 506, 507,
+ 508, -1, -1, 511, 512, 513, 514, 515, 516, 517,
+ -1, 519, -1, 521, 522, 523, 524, -1, -1, 527,
+ -1, -1, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 547,
+ 548, 549, -1, -1, -1, -1, -1, -1, -1, -1,
+ 558, 559, 560, 561, 562, 563, 564, 565, 566, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, 80, -1, -1, -1, -1, -1, -1,
+ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, -1, -1, -1, -1, -1, -1, -1,
+ -1, 558, 559, 560, 561, 562, 563, 564, 565, 566,
+ 6, 7, 8, 9, 10, 11, 12, -1, 14, 15,
+ -1, -1, 18, 19, 20, 21, 22, 23, -1, 25,
+ 26, 27, -1, -1, 30, 31, 32, 33, -1, -1,
+ 36, 37, 38, -1, 40, -1, -1, 43, 44, -1,
+ -1, -1, 48, 49, -1, -1, -1, -1, 54, -1,
+ -1, -1, -1, -1, -1, -1, -1, 63, -1, 65,
+ -1, 67, 68, 69, -1, -1, -1, 73, -1, -1,
+ -1, -1, -1, -1, 80, -1, -1, -1, -1, -1,
+ -1, 87, 88, 89, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ -1, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, -1, 118, 119, 120, 121, 122, -1, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, -1, -1,
+ 136, 137, 138, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, -1, -1, 150, 151, 152, 153, 154, 155,
+ -1, 157, 158, 159, -1, 161, 162, 163, 164, 165,
+ 166, -1, -1, 169, 170, -1, -1, -1, -1, -1,
+ -1, -1, -1, 179, 180, 181, 182, 183, 184, 185,
+ 186, 187, -1, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, -1, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, -1, -1, -1, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, 258, 259, 260, -1, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ -1, 277, -1, 279, 280, 281, -1, 283, -1, 285,
+ -1, 287, -1, -1, 290, -1, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, -1, 302, -1, -1, 305,
+ 306, 307, -1, -1, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, 321, 322, 323, 324, 325,
+ 326, 327, 328, -1, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, -1, 342, 343, -1, 345,
+ -1, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ -1, 367, -1, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, -1, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ 436, 437, -1, 439, 440, 441, 442, 443, -1, 445,
+ 446, 447, 448, 449, -1, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ -1, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, -1, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, -1, 504, 505,
+ 506, 507, 508, -1, -1, 511, 512, 513, 514, 515,
+ 516, 517, -1, 519, -1, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, 547, 548, 549, -1, -1, -1, -1, -1, -1,
+ -1, -1, 558, 559, 560, 561, 562, 563, 564, 565,
+ 566, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, 80, -1, -1, -1, -1,
+ -1, -1, 87, 88, 89, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, -1, -1, -1, -1, -1,
+ -1, -1, -1, 558, 559, 560, 561, 562, 563, 564,
+ 565, 566, 5, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, 24, 25, 26, 27, 28, -1, 30, 31, 32,
+ 33, 34, 35, 36, 37, 38, -1, 40, 41, 42,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, 98, 99, 100, 101, 102,
+ 103, 104, 105, 106, 107, 108, 109, 110, 111, 112,
+ 113, 114, 115, 116, 117, 118, 119, 120, 121, 122,
+ 123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
+ 133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
+ 143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
+ 153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
+ 163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
+ 173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, 188, 189, 190, 191, 192,
+ 193, 194, 195, 196, 197, 198, 199, 200, 201, 202,
+ 203, 204, 205, 206, 207, 208, 209, 210, 211, 212,
+ 213, 214, 215, 216, 217, 218, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, 229, 230, 231, 232,
+ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
+ 243, 244, 245, 246, 247, 248, 249, 250, 251, 252,
+ 253, 254, 255, 256, 257, 258, 259, 260, 261, 262,
+ 263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
+ 273, 274, 275, 276, 277, 278, 279, 280, 281, 282,
+ 283, 284, 285, 286, 287, 288, 289, 290, 291, 292,
+ 293, 294, 295, 296, 297, 298, 299, 300, 301, 302,
+ 303, 304, 305, 306, 307, 308, 309, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, 329, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, 341, 342,
+ 343, 344, 345, 346, 347, 348, 349, 350, 351, 352,
+ 353, 354, 355, 356, 357, 358, 359, 360, 361, 362,
+ 363, 364, 365, 366, 367, 368, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, 380, 381, 382,
+ 383, 384, 385, 386, 387, 388, 389, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, 405, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, 419, 420, 421, 422,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, 438, 439, 440, 441, 442,
+ 443, 444, 445, 446, 447, 448, 449, 450, 451, 452,
+ 453, 454, 455, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, 471, 472,
+ 473, 474, 475, 476, 477, 478, 479, 480, 481, 482,
+ 483, 484, 485, 486, 487, 488, 489, 490, 491, 492,
+ 493, 494, 495, 496, 497, 498, 499, 500, 501, 502,
+ 503, 504, 505, 506, 507, 508, 509, 510, 511, 512,
+ 513, 514, 515, 516, 517, 518, 519, 520, 521, 522,
+ 523, 524, 525, 526, 527, 528, 529, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, -1, 5, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ 563, 18, 19, 20, 21, 22, 23, 24, 25, 26,
+ 27, 28, -1, 30, 31, 32, 33, 34, 35, 36,
+ 37, 38, -1, 40, 41, 42, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ 117, 118, 119, 120, -1, 122, 123, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, -1,
+ -1, 148, -1, 150, 151, 152, 153, 154, 155, 156,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, 168, 169, 170, -1, -1, -1, -1, 175, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, -1, 224, 225, 226,
+ 227, -1, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, 241, -1, 243, 244, 245, 246,
+ 247, -1, 249, -1, -1, -1, 253, 254, -1, 256,
+ 257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, 276,
+ 277, -1, 279, 280, 281, 282, 283, -1, 285, -1,
+ 287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
+ -1, -1, 299, -1, 301, 302, 303, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, 329, 330, 331, 332, 333, 334, 335, 336,
+ 337, -1, -1, 340, -1, 342, 343, 344, 345, -1,
+ -1, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, 362, 363, 364, 365, 366,
+ 367, 368, -1, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, -1, 384, -1, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, 422, 423, 424, 425, 426,
+ 427, -1, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, 450, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, -1, 470, -1, 472, 473, -1, 475, 476,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, -1, 491, -1, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, -1,
+ 517, 518, 519, 520, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 547, 548, 549, -1, -1, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, 563, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, -1,
+ -1, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, 563, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, -1, -1, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, 563, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, 70, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, 81, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, 242, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, 266, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, -1, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, 561, 562, 18, 19, 20, 21, 22, 23,
+ -1, 25, 26, 27, -1, -1, 30, 31, 32, 33,
+ -1, -1, 36, 37, 38, -1, 40, -1, -1, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, 70, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, 81, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, 98, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, -1, 118, 119, 120, 121, 122, -1,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, -1, -1, 150, 151, 152, 153,
+ 154, 155, -1, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, -1, 169, 170, -1, -1, -1,
+ -1, -1, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, -1, 242, -1,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, -1, 262, 263,
+ 264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, -1, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, -1, -1, 290, -1, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, -1, 302, -1,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, -1, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ -1, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, -1, 367, -1, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, -1, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, -1, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, -1, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, -1, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, -1, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, 561, 562, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, 70, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, 81, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, 242, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, 266, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, -1, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, 561, 562, 18, 19, 20, 21, 22, 23,
+ -1, 25, 26, 27, -1, -1, 30, 31, 32, 33,
+ -1, -1, 36, 37, 38, -1, 40, -1, -1, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, 70, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, 81, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, 98, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, -1, 118, 119, 120, 121, 122, -1,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, -1, -1, 150, 151, 152, 153,
+ 154, 155, -1, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, -1, 169, 170, -1, -1, -1,
+ -1, -1, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, -1, 242, -1,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, -1, 262, 263,
+ 264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, -1, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, -1, -1, 290, -1, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, -1, 302, -1,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, -1, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ -1, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, -1, 367, -1, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, -1, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, -1, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, -1, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, -1, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, -1, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, 561, 562, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, 70, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, 486, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 4, 560, 6, 7, 8, 9, 10, 11, 12, 13,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ -1, 25, 26, 27, -1, -1, 30, 31, 32, 33,
+ -1, -1, 36, 37, 38, -1, 40, -1, -1, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, -1, 118, 119, 120, 121, 122, -1,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, -1, -1, 150, 151, 152, 153,
+ 154, 155, -1, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, -1, 169, 170, -1, -1, -1,
+ -1, -1, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, -1, -1, -1,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, -1, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, -1, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, -1, -1, 290, -1, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, -1, 302, -1,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, -1, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ -1, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, -1, 367, -1, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, -1, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, -1, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, -1, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, -1, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, 75, 76, -1, -1,
+ -1, -1, 81, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 99, 100, 101, 102, 103, 104, 105, 106, 107, 108,
+ 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
+ 119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
+ 129, 130, 131, 132, 133, 134, 135, 136, 137, 138,
+ 139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
+ 149, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
+ 169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
+ 189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
+ 199, 200, 201, 202, 203, 204, 205, 206, 207, 208,
+ 209, 210, 211, 212, 213, 214, 215, 216, 217, 218,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238,
+ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
+ 249, 250, 251, 252, 253, 254, 255, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, 266, 267, 268,
+ 269, 270, 271, 272, 273, 274, 275, 276, 277, 278,
+ 279, 280, 281, 282, 283, 284, 285, 286, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, 297, 298,
+ 299, 300, 301, 302, 303, 304, 305, 306, 307, 308,
+ 309, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, 341, 342, 343, 344, 345, 346, 347, 348,
+ 349, 350, 351, 352, 353, 354, 355, 356, 357, 358,
+ 359, 360, 361, 362, 363, 364, 365, 366, 367, 368,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, 380, 381, 382, 383, 384, 385, 386, 387, 388,
+ 389, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, 405, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ 419, 420, 421, 422, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, 438,
+ 439, 440, 441, 442, 443, 444, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, 455, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, 471, 472, 473, 474, 475, 476, 477, 478,
+ 479, 480, 481, 482, 483, 484, 485, 486, 487, 488,
+ 489, 490, 491, 492, 493, 494, 495, 496, 497, 498,
+ 499, 500, 501, 502, 503, 504, 505, 506, 507, 508,
+ 509, 510, 511, 512, 513, 514, 515, 516, 517, 518,
+ 519, 520, 521, 522, 523, 524, 525, 526, 527, 528,
+ 529, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
+ 104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
+ 134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
+ 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
+ 164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
+ 194, 195, 196, 197, 198, 199, 200, 201, 202, 203,
+ 204, 205, 206, 207, 208, 209, 210, 211, 212, 213,
+ 214, 215, 216, 217, 218, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, 229, 230, 231, 232, 233,
+ 234, 235, 236, 237, 238, 239, 240, 241, 242, 243,
+ 244, 245, 246, 247, 248, 249, 250, 251, 252, 253,
+ 254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
+ 274, 275, 276, 277, 278, 279, 280, 281, 282, 283,
+ 284, 285, 286, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, 297, 298, 299, 300, 301, 302, 303,
+ 304, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, 341, 342, 343,
+ 344, 345, 346, 347, 348, 349, 350, 351, 352, 353,
+ 354, 355, 356, 357, 358, 359, 360, 361, 362, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, 380, 381, 382, 383,
+ 384, 385, 386, 387, 388, 389, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, 405, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, 419, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, 438, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, 455, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, 471, 472, 473,
+ 474, 475, 476, 477, 478, 479, 480, 481, 482, 483,
+ 484, 485, 486, 487, 488, 489, 490, 491, 492, 493,
+ 494, 495, 496, 497, 498, 499, 500, 501, 502, 503,
+ 504, 505, 506, 507, 508, 509, 510, 511, 512, 513,
+ 514, 515, 516, 517, 518, 519, 520, 521, 522, 523,
+ 524, 525, 526, 527, 528, 529, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 99, 100, 101, 102, 103, 104, 105, 106, 107, 108,
+ 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
+ 119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
+ 129, 130, 131, 132, 133, 134, 135, 136, 137, 138,
+ 139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
+ 149, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
+ 169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
+ 189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
+ 199, 200, 201, 202, 203, 204, 205, 206, 207, 208,
+ 209, 210, 211, 212, 213, 214, 215, 216, 217, 218,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238,
+ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
+ 249, 250, 251, 252, 253, 254, 255, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, 266, 267, 268,
+ 269, 270, 271, 272, 273, 274, 275, 276, 277, 278,
+ 279, 280, 281, 282, 283, 284, 285, 286, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, 297, 298,
+ 299, 300, 301, 302, 303, 304, 305, 306, 307, 308,
+ 309, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, 341, 342, 343, 344, 345, 346, 347, 348,
+ 349, 350, 351, 352, 353, 354, 355, 356, 357, 358,
+ 359, 360, 361, 362, 363, 364, 365, 366, 367, 368,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, 380, 381, 382, 383, 384, 385, 386, 387, 388,
+ 389, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, 405, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ 419, 420, 421, 422, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, 438,
+ 439, 440, 441, 442, 443, 444, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, 455, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, 471, 472, 473, 474, 475, 476, 477, 478,
+ 479, 480, 481, 482, 483, 484, 485, 486, 487, 488,
+ 489, 490, 491, 492, 493, 494, 495, 496, 497, 498,
+ 499, 500, 501, 502, 503, 504, 505, 506, 507, 508,
+ 509, 510, 511, 512, 513, 514, 515, 516, 517, 518,
+ 519, 520, 521, 522, 523, 524, 525, 526, 527, 528,
+ 529, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, 135, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, 509, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, 70, -1, -1, 73, -1, 75, 76, -1, 78,
+ 79, -1, 81, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, 121, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ 229, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, 277, -1,
+ 279, 280, 281, 282, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, 344, 345, 346, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, 366, 367, 368,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, 493, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, 121, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, 344, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, 366, 367, 368,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, 121, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, 344, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, 366, 367, 368,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, 516, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, -1, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, -1, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, -1, 224, 225, 226, 227, -1,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, -1, -1, -1, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, 266, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, 277, -1,
+ 279, 280, 281, 282, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, -1, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, -1,
+ -1, 340, -1, 342, 343, 344, 345, -1, -1, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, 366, 367, 368,
+ -1, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, -1, 384, -1, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, -1,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ -1, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, -1, 491, -1, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, -1, 517, 518,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, -1, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, -1, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, -1,
+ 224, 225, 226, 227, -1, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, -1, -1, -1, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, -1, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, -1, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, -1, -1, 340, -1, 342, 343,
+ 344, 345, 346, -1, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, -1, 366, 367, 368, -1, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, -1,
+ 384, -1, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, -1, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, -1, 470, -1, 472, 473,
+ 474, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, -1, 491, -1, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, -1, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, -1, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, -1, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, -1, 224, 225, 226, 227, -1,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, -1, -1, -1, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, -1, -1,
+ 279, 280, 281, 282, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, -1, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ -1, 340, -1, 342, 343, 344, 345, -1, -1, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, -1, 366, 367, 368,
+ -1, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, -1, 384, -1, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, -1,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ -1, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, -1, 491, -1, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, -1, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, -1, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, -1, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, -1,
+ 224, 225, 226, 227, -1, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, -1, -1, -1, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, -1, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, -1, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, -1, 340, -1, 342, 343,
+ 344, 345, -1, -1, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, -1, 366, 367, 368, -1, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, -1,
+ 384, -1, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, -1, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, -1, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, -1, 491, -1, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, -1, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, -1, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, -1, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, -1, 224, 225, 226, 227, -1,
+ -1, 230, -1, 232, 233, 234, 235, 236, 237, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, -1, -1, -1, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, -1, -1,
+ 279, 280, 281, 282, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, -1, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, -1,
+ -1, 340, -1, 342, 343, 344, 345, -1, -1, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, -1, 366, 367, 368,
+ -1, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, -1, 384, -1, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, -1,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ -1, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, -1, 491, -1, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, -1, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, -1, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, -1, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, -1,
+ 224, 225, 226, 227, -1, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, -1, -1, -1, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, -1, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, -1, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, -1, -1, 340, -1, 342, 343,
+ 344, 345, -1, -1, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, -1, 366, 367, 368, -1, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, -1,
+ 384, -1, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, -1, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, -1, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, -1, 491, -1, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, -1, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, -1, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, -1, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, -1, 224, 225, 226, 227, -1,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, -1, -1, -1, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, -1, -1,
+ 279, 280, 281, 282, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, -1, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, -1,
+ -1, 340, -1, 342, 343, 344, 345, -1, -1, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, -1, 366, 367, 368,
+ -1, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, -1, 384, -1, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, -1,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ -1, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, -1, 491, -1, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, -1, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, -1, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, -1, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, -1,
+ 224, 225, 226, 227, -1, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, -1, -1, -1, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, -1, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, -1, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, -1, -1, 340, -1, 342, 343,
+ 344, 345, -1, -1, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, -1, 366, 367, 368, -1, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, -1,
+ 384, -1, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, -1, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, -1, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, -1, 491, -1, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, -1, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, -1, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, -1, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, -1, 224, 225, 226, 227, -1,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, -1, -1, -1, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, -1, -1,
+ 279, 280, 281, 282, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, -1, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, -1,
+ -1, 340, -1, 342, 343, 344, 345, -1, -1, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, -1, 366, 367, 368,
+ -1, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, -1, 384, -1, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, -1,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ -1, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, -1, 491, -1, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, -1, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 547, 548,
+ 549, 5, 6, 7, 8, 9, 10, 11, 12, -1,
+ 14, 15, -1, -1, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, -1, 30, 31, 32, 33,
+ 34, 35, 36, 37, 38, -1, 40, 41, 42, 43,
+ 44, -1, -1, -1, 48, 49, -1, -1, -1, -1,
+ 54, -1, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, 65, -1, 67, 68, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, -1, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, 138, 139, 140, -1, 142, 143,
+ 144, 145, -1, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, -1,
+ 224, 225, 226, 227, -1, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, -1, -1, -1, 253,
+ 254, -1, 256, 257, 258, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, -1, -1, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, -1, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
+ 324, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, -1, -1, 340, -1, 342, 343,
+ 344, 345, -1, -1, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, -1, 366, 367, 368, -1, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, -1,
+ 384, -1, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, -1, 429, 430, 431, 432, 433,
+ 434, 435, 436, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, -1, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, -1, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, -1, 491, -1, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, -1, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 547, 548, 549, 5, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ -1, 30, 31, 32, 33, 34, 35, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, -1, -1, 123, -1, -1, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, -1,
+ -1, 140, -1, 142, 143, 144, 145, -1, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, -1, -1, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, -1, 224, 225, 226, 227, -1,
+ -1, 230, -1, 232, 233, 234, -1, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, -1, -1, -1, 253, 254, -1, 256, 257, 258,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, -1, -1,
+ 279, 280, 281, -1, -1, -1, -1, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, -1, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, -1,
+ 329, -1, 331, 332, 333, 334, 335, 336, 337, -1,
+ -1, 340, -1, 342, 343, 344, 345, -1, -1, 348,
+ -1, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, -1, 366, 367, 368,
+ -1, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, -1, 384, -1, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, -1, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, -1,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, -1, 448,
+ 449, 450, 451, 452, -1, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ -1, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, -1, -1, -1, -1, 488,
+ 489, -1, 491, -1, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, -1, -1, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
+ 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
+ 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
+ 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
+ 135, 136, 137, -1, 139, 140, 141, 142, 143, 144,
+ 145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
+ 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
+ 165, 166, 167, 168, 169, 170, -1, 172, 173, 174,
+ 175, 176, 177, 178, 179, 180, 181, 182, -1, 184,
+ 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
+ 195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
+ 205, 206, 207, 208, 209, 210, 211, 212, 213, 214,
+ 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, 229, 230, 231, 232, 233, 234,
+ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
+ 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
+ 255, 256, 257, -1, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
+ 275, 276, 277, -1, 279, 280, 281, -1, 283, 284,
+ 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
+ 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, -1, 322, 323, -1,
+ 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
+ 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
+ 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
+ 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
+ 385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ 405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, 419, 420, 421, 422, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, -1, 437, 438, 439, 440, 441, 442, 443, 444,
+ 445, 446, 447, 448, 449, 450, 451, 452, 453, 454,
+ 455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, 471, 472, 473, 474,
+ 475, 476, 477, 478, 479, 480, 481, 482, 483, 484,
+ 485, -1, 487, 488, 489, 490, 491, 492, 493, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, 503, 504,
+ 505, 506, 507, 508, 509, 510, 511, 512, 513, 514,
+ 515, -1, 517, 518, 519, 520, 521, 522, 523, 524,
+ 525, 526, 527, 528, 529, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, -1, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ 141, 142, 143, 144, 145, 146, -1, -1, 149, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, 160,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, 239, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, 389, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, 503, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, 239, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, 303, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, 389, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, 503, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, 98, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, 167, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, 248, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, 405, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, 438, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, 167, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, 248,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, 405, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, 438,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, 141, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, 160, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, 239, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, 503, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, 70,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ 171, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, 188, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ 167, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, 405, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, 438, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, 98, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, 175, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, 357, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, 474, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, 13, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, 70, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, 70, -1, -1, 73, -1,
+ -1, 76, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, 188, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, 239, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, 474, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ 167, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, 405, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, 438, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, 175, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, 357, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, 474, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, 13, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, 70, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, 474, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, 70, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, 98, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, 70,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, 188, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, 70, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, 70, -1, -1,
+ 73, -1, -1, 76, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, 357, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, 70, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, 98, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, 509, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, 509, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, 70, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, 70, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, 70, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, 70,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ 357, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, 98, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, 357, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, 72, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ 13, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, 76, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, 81, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, 107, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ 107, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, 188, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, -1, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, 98, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, -1, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, 117, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, -1, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, -1, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, 107, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ -1, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, 159, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, 159, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ 159, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, 159, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, -1, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, -1, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, -1, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ 253, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, 377, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, 429, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, 8,
+ 9, 10, 11, 12, -1, 14, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, 27, -1,
+ -1, 30, 31, 32, 33, -1, -1, 36, 37, 38,
+ -1, 40, -1, -1, 43, 44, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, -1, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, -1, 118,
+ 119, 120, 121, 122, -1, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, 138,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, -1,
+ -1, 150, 151, 152, 153, 154, 155, -1, 157, 158,
+ -1, -1, 161, 162, 163, 164, 165, 166, -1, -1,
+ 169, 170, -1, -1, -1, -1, -1, -1, -1, -1,
+ 179, 180, 181, 182, 183, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, -1, -1, -1, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, 258,
+ 259, 260, -1, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, -1, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, -1,
+ -1, 290, -1, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, -1, 302, -1, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
+ -1, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, -1, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, -1, 367, -1,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, -1, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, 436, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, -1, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, -1, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, 516, 517, -1,
+ 519, -1, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
+ 549, 6, 7, 8, 9, 10, 11, 12, -1, 14,
+ 15, -1, -1, 18, 19, 20, 21, 22, 23, -1,
+ 25, 26, 27, -1, -1, 30, 31, 32, 33, -1,
+ -1, 36, 37, 38, -1, 40, -1, -1, 43, 44,
+ -1, -1, -1, 48, 49, -1, -1, -1, -1, 54,
+ -1, -1, -1, -1, -1, -1, -1, -1, 63, -1,
+ 65, -1, 67, 68, 69, -1, -1, -1, 73, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 90, 91, 92, 93, 94,
+ 95, 96, 97, -1, 99, 100, 101, -1, -1, -1,
+ -1, -1, -1, -1, 109, 110, 111, -1, 113, 114,
+ 115, 116, -1, 118, 119, 120, 121, 122, -1, 124,
+ 125, -1, 127, 128, 129, 130, 131, 132, 133, -1,
+ -1, 136, 137, 138, 139, 140, -1, 142, 143, 144,
+ 145, 146, -1, -1, -1, 150, 151, 152, 153, 154,
+ 155, -1, 157, 158, -1, -1, 161, 162, 163, 164,
+ 165, 166, -1, -1, 169, 170, -1, -1, -1, -1,
+ -1, -1, -1, -1, 179, 180, 181, 182, 183, 184,
+ 185, 186, 187, -1, 189, -1, 191, 192, 193, 194,
+ 195, 196, 197, -1, 199, 200, 201, 202, -1, -1,
+ 205, 206, 207, 208, 209, -1, 211, 212, 213, -1,
+ 215, 216, 217, -1, 219, 220, 221, 222, 223, 224,
+ 225, 226, 227, 228, -1, 230, -1, 232, 233, 234,
+ 235, 236, -1, 238, -1, 240, -1, -1, -1, 244,
+ 245, 246, 247, -1, 249, 250, -1, 252, 253, 254,
+ -1, 256, 257, 258, 259, 260, -1, 262, 263, 264,
+ 265, -1, 267, 268, 269, 270, 271, 272, 273, -1,
+ 275, -1, 277, -1, 279, 280, 281, -1, 283, -1,
+ 285, -1, 287, -1, -1, 290, -1, 292, 293, 294,
+ 295, 296, -1, -1, 299, 300, -1, 302, -1, -1,
+ 305, 306, 307, -1, -1, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, -1, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, -1, 342, 343, -1,
+ 345, -1, 347, 348, 349, 350, 351, 352, -1, 354,
+ 355, -1, -1, 358, 359, 360, -1, -1, 363, 364,
+ 365, -1, 367, -1, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, -1, 381, 382, 383, 384,
+ 385, 386, 387, 388, -1, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ -1, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, -1, 420, 421, -1, 423, 424,
+ 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
+ 435, 436, 437, -1, 439, 440, 441, 442, 443, -1,
+ 445, 446, 447, 448, 449, -1, 451, 452, 453, 454,
+ -1, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 467, 468, 469, 470, -1, 472, 473, -1,
+ 475, -1, 477, 478, 479, 480, 481, -1, 483, 484,
+ 485, -1, -1, 488, 489, 490, 491, 492, -1, 494,
+ 495, 496, 497, 498, 499, 500, 501, -1, -1, 504,
+ 505, 506, 507, 508, -1, -1, 511, 512, 513, 514,
+ 515, 516, 517, -1, 519, -1, 521, 522, 523, 524,
+ -1, -1, 527, -1, -1, 530, 531, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 547, 548, 549, 6, 7, 8, 9, 10,
+ 11, 12, -1, 14, 15, -1, -1, 18, 19, 20,
+ 21, 22, 23, -1, 25, 26, 27, -1, -1, 30,
+ 31, 32, 33, -1, -1, 36, 37, 38, -1, 40,
+ -1, -1, 43, 44, -1, -1, -1, 48, 49, -1,
+ -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,
+ -1, -1, 63, -1, 65, -1, 67, 68, 69, -1,
+ -1, -1, 73, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 90,
+ 91, 92, 93, 94, 95, 96, 97, -1, 99, 100,
+ 101, -1, -1, -1, -1, -1, -1, -1, 109, 110,
+ 111, -1, 113, 114, 115, 116, -1, 118, 119, 120,
+ 121, 122, -1, 124, 125, -1, 127, 128, 129, 130,
+ 131, 132, 133, -1, -1, 136, 137, 138, 139, 140,
+ -1, 142, 143, 144, 145, 146, -1, -1, -1, 150,
+ 151, 152, 153, 154, 155, -1, 157, 158, -1, -1,
+ 161, 162, 163, 164, 165, 166, -1, -1, 169, 170,
+ -1, -1, -1, -1, -1, -1, -1, -1, 179, 180,
+ 181, 182, 183, 184, 185, 186, 187, -1, 189, -1,
+ 191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
+ 201, 202, -1, -1, 205, 206, 207, 208, 209, -1,
+ 211, 212, 213, -1, 215, 216, 217, -1, 219, 220,
+ 221, 222, 223, 224, 225, 226, 227, 228, -1, 230,
+ -1, 232, 233, 234, 235, 236, -1, 238, -1, 240,
+ -1, -1, -1, 244, 245, 246, 247, -1, 249, 250,
+ -1, 252, 253, 254, -1, 256, 257, 258, 259, 260,
+ -1, 262, 263, 264, 265, -1, 267, 268, 269, 270,
+ 271, 272, 273, -1, 275, -1, 277, -1, 279, 280,
+ 281, -1, 283, -1, 285, -1, 287, -1, -1, 290,
+ -1, 292, 293, 294, 295, 296, -1, -1, 299, 300,
+ -1, 302, -1, -1, 305, 306, 307, -1, -1, 310,
+ 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
+ 321, 322, 323, 324, 325, 326, 327, 328, -1, 330,
+ 331, 332, 333, 334, 335, 336, 337, 338, 339, 340,
+ -1, 342, 343, -1, 345, -1, 347, 348, 349, 350,
+ 351, 352, -1, 354, 355, -1, -1, 358, 359, 360,
+ -1, -1, 363, 364, 365, -1, 367, -1, 369, 370,
+ 371, 372, 373, 374, 375, 376, 377, 378, 379, -1,
+ 381, 382, 383, 384, 385, 386, 387, 388, -1, 390,
+ 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
+ 401, 402, 403, 404, -1, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, -1, 420,
+ 421, -1, 423, 424, 425, 426, 427, 428, 429, 430,
+ 431, 432, 433, 434, 435, 436, 437, -1, 439, 440,
+ 441, 442, 443, -1, 445, 446, 447, 448, 449, -1,
+ 451, 452, 453, 454, -1, 456, 457, 458, 459, 460,
+ 461, 462, 463, 464, 465, 466, 467, 468, 469, 470,
+ -1, 472, 473, -1, 475, -1, 477, 478, 479, 480,
+ 481, -1, 483, 484, 485, -1, -1, 488, 489, 490,
+ 491, 492, -1, 494, 495, 496, 497, 498, 499, 500,
+ 501, -1, -1, 504, 505, 506, 507, 508, -1, -1,
+ 511, 512, 513, 514, 515, 516, 517, -1, 519, -1,
+ 521, 522, 523, 524, -1, -1, 527, -1, -1, 530,
+ 531, 532, 533, 534, 535, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 547, 548, 549, 6,
+ 7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ 27, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, 43, 44, -1, -1,
+ -1, 48, 49, -1, -1, -1, -1, 54, -1, -1,
+ -1, -1, -1, -1, -1, -1, 63, -1, 65, -1,
+ 67, 68, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
+ 97, -1, 99, 100, 101, -1, -1, -1, -1, -1,
+ -1, -1, 109, 110, 111, -1, 113, 114, 115, 116,
+ -1, 118, 119, 120, 121, 122, -1, 124, 125, -1,
+ 127, 128, 129, 130, 131, 132, 133, -1, -1, 136,
+ 137, 138, 139, 140, -1, 142, 143, 144, 145, 146,
+ -1, -1, -1, 150, 151, 152, 153, 154, 155, -1,
+ 157, 158, -1, -1, 161, 162, 163, 164, 165, 166,
+ -1, -1, 169, 170, -1, -1, -1, -1, -1, -1,
+ -1, -1, 179, 180, 181, 182, 183, 184, 185, 186,
+ 187, -1, 189, -1, 191, 192, 193, 194, 195, 196,
+ 197, -1, 199, 200, 201, 202, -1, -1, 205, 206,
+ 207, 208, 209, -1, 211, 212, 213, -1, 215, 216,
+ 217, -1, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, -1, 230, -1, 232, 233, 234, 235, 236,
+ -1, 238, -1, 240, -1, -1, -1, 244, 245, 246,
+ 247, -1, 249, 250, -1, 252, 253, 254, -1, 256,
+ 257, 258, 259, 260, -1, 262, 263, 264, 265, -1,
+ 267, 268, 269, 270, 271, 272, 273, -1, 275, -1,
+ 277, -1, 279, 280, 281, -1, 283, -1, 285, -1,
+ 287, -1, -1, 290, -1, 292, 293, 294, 295, 296,
+ -1, -1, 299, 300, -1, 302, -1, -1, 305, 306,
+ 307, -1, -1, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
+ 327, 328, -1, 330, 331, 332, 333, 334, 335, 336,
+ 337, 338, 339, 340, -1, 342, 343, -1, 345, -1,
+ 347, 348, 349, 350, 351, 352, -1, 354, 355, -1,
+ -1, 358, 359, 360, -1, -1, 363, 364, 365, -1,
+ 367, -1, 369, 370, 371, 372, 373, 374, 375, 376,
+ 377, 378, 379, -1, 381, 382, 383, 384, 385, 386,
+ 387, 388, -1, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, -1, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, -1, 420, 421, -1, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 432, 433, 434, 435, 436,
+ 437, -1, 439, 440, 441, 442, 443, -1, 445, 446,
+ 447, 448, 449, -1, 451, 452, 453, 454, -1, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, -1, 472, 473, -1, 475, -1,
+ 477, 478, 479, 480, 481, -1, 483, 484, 485, -1,
+ -1, 488, 489, 490, 491, 492, -1, 494, 495, 496,
+ 497, 498, 499, 500, 501, -1, -1, 504, 505, 506,
+ 507, 508, -1, -1, 511, 512, 513, 514, 515, 516,
+ 517, -1, 519, -1, 521, 522, 523, 524, -1, -1,
+ 527, -1, -1, 530, 531, 532, 533, 534, 535, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 547, 548, 549, 6, 7, 8, 9, 10, 11, 12,
+ -1, 14, 15, -1, -1, 18, 19, 20, 21, 22,
+ 23, -1, 25, 26, 27, -1, -1, 30, 31, 32,
+ 33, -1, -1, 36, 37, 38, -1, 40, -1, -1,
+ 43, 44, -1, -1, -1, 48, 49, -1, -1, -1,
+ -1, 54, -1, -1, -1, -1, -1, -1, -1, -1,
+ 63, -1, 65, -1, 67, 68, 69, -1, -1, -1,
+ 73, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
+ 93, 94, 95, 96, 97, -1, 99, 100, 101, -1,
+ -1, -1, -1, -1, -1, -1, 109, 110, 111, -1,
+ 113, 114, 115, 116, -1, 118, 119, 120, 121, 122,
+ -1, 124, 125, -1, 127, 128, 129, 130, 131, 132,
+ 133, -1, -1, 136, 137, 138, 139, 140, -1, 142,
+ 143, 144, 145, 146, -1, -1, -1, 150, 151, 152,
+ 153, 154, 155, -1, 157, 158, 159, -1, 161, 162,
+ 163, 164, 165, 166, -1, -1, 169, 170, -1, -1,
+ -1, -1, -1, -1, -1, -1, 179, 180, 181, 182,
+ 183, 184, 185, 186, 187, -1, 189, -1, 191, 192,
+ 193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
+ -1, -1, 205, 206, 207, 208, 209, -1, 211, 212,
+ 213, -1, 215, 216, 217, -1, 219, 220, 221, 222,
+ 223, 224, 225, 226, 227, 228, -1, 230, -1, 232,
+ 233, 234, 235, 236, -1, 238, -1, 240, -1, -1,
+ -1, 244, 245, 246, 247, -1, 249, 250, -1, 252,
+ -1, 254, -1, 256, 257, 258, 259, 260, -1, 262,
+ 263, 264, 265, -1, 267, 268, 269, 270, 271, 272,
+ 273, -1, 275, -1, 277, -1, 279, 280, 281, -1,
+ 283, -1, 285, -1, 287, -1, -1, 290, -1, 292,
+ 293, 294, 295, 296, -1, -1, 299, 300, -1, 302,
+ -1, -1, 305, 306, 307, -1, -1, 310, 311, 312,
+ 313, 314, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 324, 325, 326, 327, 328, -1, 330, 331, 332,
+ 333, 334, 335, 336, 337, 338, 339, 340, -1, 342,
+ 343, -1, 345, -1, 347, 348, 349, 350, 351, 352,
+ -1, 354, 355, -1, -1, 358, 359, 360, -1, -1,
+ 363, 364, 365, -1, 367, -1, 369, 370, 371, 372,
+ 373, 374, 375, 376, -1, 378, 379, -1, 381, 382,
+ 383, 384, 385, 386, 387, 388, -1, 390, 391, 392,
+ 393, 394, 395, 396, 397, -1, 399, 400, 401, 402,
+ 403, 404, -1, 406, 407, 408, 409, 410, 411, 412,
+ 413, 414, 415, 416, 417, 418, -1, 420, 421, -1,
+ 423, 424, 425, 426, 427, 428, -1, 430, 431, 432,
+ 433, 434, 435, 436, 437, -1, 439, 440, 441, 442,
+ 443, -1, 445, 446, 447, 448, 449, -1, 451, 452,
+ 453, 454, -1, 456, 457, 458, 459, 460, 461, 462,
+ 463, 464, 465, 466, 467, 468, 469, 470, -1, 472,
+ 473, -1, 475, -1, 477, 478, 479, 480, 481, -1,
+ 483, 484, 485, -1, -1, 488, 489, 490, 491, 492,
+ -1, 494, 495, 496, 497, 498, 499, 500, 501, -1,
+ -1, 504, 505, 506, 507, 508, -1, -1, 511, 512,
+ 513, 514, 515, 516, 517, -1, 519, -1, 521, 522,
+ 523, 524, -1, -1, 527, -1, -1, 530, 531, 532,
+ 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
+ 543, 544, 545, 546, 547, 548, 549, 6, 7, -1,
+ 9, 10, 11, -1, -1, -1, 15, -1, -1, 18,
+ 19, 20, 21, 22, 23, -1, 25, 26, -1, -1,
+ -1, 30, 31, 32, 33, -1, 35, 36, 37, 38,
+ 39, 40, 41, 42, -1, -1, -1, -1, -1, 48,
+ 49, -1, -1, -1, -1, 54, -1, -1, -1, -1,
+ -1, -1, -1, -1, 63, -1, 65, -1, 67, 68,
+ 69, -1, 71, -1, 73, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 117, -1,
+ -1, -1, 121, 122, 123, 124, 125, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 139, -1, -1, -1, -1, -1, -1, 146, -1, 148,
+ -1, -1, -1, -1, -1, -1, -1, 156, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 168,
+ -1, -1, -1, -1, -1, -1, 175, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 185, 186, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 215, -1, -1, -1,
+ -1, -1, -1, -1, 223, -1, -1, -1, -1, 228,
+ -1, -1, -1, -1, -1, -1, 235, -1, -1, -1,
+ -1, -1, 241, -1, 243, -1, -1, -1, -1, -1,
+ -1, 250, -1, 252, -1, -1, -1, -1, -1, -1,
+ -1, -1, 261, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 276, 277, -1,
+ -1, -1, -1, -1, 283, -1, 285, -1, -1, 288,
+ 289, -1, 291, -1, -1, -1, -1, -1, -1, -1,
+ -1, 300, 301, -1, 303, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 328,
+ 329, 330, -1, -1, -1, -1, -1, -1, -1, 338,
+ 339, -1, -1, -1, -1, 344, -1, -1, 347, -1,
+ 349, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 365, 366, -1, 368,
+ 369, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 383, -1, 385, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 400, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 422, -1, -1, -1, -1, -1, 428,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 447, -1,
+ -1, 450, -1, -1, 453, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 469, -1, -1, -1, -1, -1, -1, 476, -1, -1,
+ -1, -1, -1, -1, -1, 484, 485, -1, -1, -1,
+ -1, 490, -1, 492, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 502, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 517, -1,
+ -1, 520, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, 6, 7,
+ -1, 9, 10, 11, -1, -1, -1, 15, -1, -1,
+ 18, 19, 20, 21, 22, 23, -1, 25, 26, -1,
+ -1, -1, 30, 31, 32, 33, -1, 35, 36, 37,
+ 38, 39, 40, 41, 42, -1, -1, -1, -1, -1,
+ 48, 49, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, 65, -1, 67,
+ 68, 69, -1, 71, -1, 73, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 117,
+ -1, -1, -1, 121, 122, 123, 124, 125, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 139, -1, -1, -1, -1, -1, -1, 146, -1,
+ 148, -1, -1, -1, -1, -1, -1, -1, 156, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 168, -1, -1, -1, -1, -1, -1, 175, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 185, 186, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 215, -1, -1,
+ -1, -1, -1, -1, -1, 223, -1, -1, -1, -1,
+ 228, -1, -1, -1, -1, -1, -1, 235, -1, -1,
+ -1, -1, -1, 241, -1, 243, -1, -1, -1, -1,
+ -1, -1, 250, -1, 252, -1, -1, -1, -1, -1,
+ -1, -1, -1, 261, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 276, 277,
+ -1, -1, -1, -1, -1, 283, -1, 285, -1, -1,
+ 288, 289, -1, 291, -1, -1, -1, -1, -1, -1,
+ -1, -1, 300, 301, -1, 303, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 328, 329, 330, -1, -1, -1, -1, -1, -1, -1,
+ 338, 339, -1, -1, -1, -1, 344, -1, -1, 347,
+ -1, 349, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 365, 366, -1,
+ 368, 369, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 383, -1, 385, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 400, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 422, -1, -1, -1, -1, -1,
+ 428, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 447,
+ -1, -1, 450, -1, -1, 453, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 469, -1, -1, -1, -1, -1, -1, 476, -1,
+ -1, -1, -1, -1, -1, -1, 484, 485, -1, -1,
+ -1, -1, 490, -1, 492, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 502, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 517,
+ -1, -1, 520, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 6,
+ 7, -1, 9, 10, 11, -1, -1, -1, 15, -1,
+ -1, 18, 19, 20, 21, 22, 23, -1, 25, 26,
+ -1, -1, -1, 30, 31, 32, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 69, -1, -1, -1, 73, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 117, -1, -1, -1, 121, 122, 123, 124, 125, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 139, -1, -1, -1, -1, -1, -1, 146,
+ -1, 148, -1, -1, -1, -1, -1, -1, -1, 156,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 168, -1, -1, -1, -1, -1, -1, 175, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 185, 186,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 223, -1, -1, -1,
+ -1, 228, -1, -1, -1, -1, -1, -1, 235, -1,
+ -1, -1, -1, -1, 241, -1, 243, -1, -1, -1,
+ -1, -1, -1, 250, -1, 252, -1, -1, -1, -1,
+ -1, -1, -1, -1, 261, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 276,
+ 277, -1, -1, -1, -1, -1, 283, -1, 285, -1,
+ -1, 288, 289, -1, 291, -1, -1, -1, -1, -1,
+ -1, -1, -1, 300, 301, -1, 303, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 328, 329, 330, -1, -1, -1, -1, -1, -1,
+ -1, 338, 339, -1, -1, -1, -1, 344, -1, -1,
+ 347, -1, 349, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 365, 366,
+ -1, 368, 369, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 383, -1, 385, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 400, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 422, -1, -1, -1, -1,
+ -1, 428, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 447, -1, -1, 450, -1, -1, 453, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 469, -1, -1, -1, -1, -1, -1, 476,
+ -1, -1, -1, -1, -1, -1, -1, 484, 485, -1,
+ -1, -1, -1, 490, -1, 492, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 517, -1, -1, 520, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 536,
+ 537, 538, 539, 540, 541, 542, 543, 544, 545, 546,
+ 69, 70, -1, -1, 73, -1, 75, 76, -1, -1,
+ -1, -1, 81, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, 121, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, -1,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ -1, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, -1, 175, -1, -1, -1,
+ 179, 180, 181, 182, -1, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ 229, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, -1,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, -1, 322, 323, -1, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, 344, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, 356, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, 366, 367, 368,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, -1, 437, -1,
+ 439, 440, 441, 442, 443, -1, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, -1, -1, 488,
+ 489, 490, 491, 492, 493, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, -1, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, -1, 548,
+ 549, 69, -1, -1, -1, 73, -1, -1, -1, -1,
+ -1, -1, 561, 562, 563, -1, -1, -1, -1, -1,
+ -1, 570, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, 102, 103, -1, -1, -1, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, -1, -1, 136, 137,
+ -1, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, -1, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, -1, -1, -1, -1, 175, -1, -1,
+ -1, 179, 180, 181, 182, -1, 184, 185, 186, 187,
+ -1, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, -1, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ -1, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, -1, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ -1, -1, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, -1, 322, 323, -1, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, -1, 342, 343, 344, 345, -1, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, -1, 437,
+ 438, 439, 440, 441, 442, 443, -1, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, 474, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, -1, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, -1, 504, 505, 506, 507,
+ 508, -1, -1, 511, 512, 513, 514, 515, 516, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, 529, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, -1,
+ 548, 549, -1, -1, 552, 69, -1, -1, -1, 73,
+ -1, -1, -1, -1, -1, -1, 80, -1, -1, 83,
+ -1, -1, 570, 87, 88, 89, 90, 91, 92, 93,
+ 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
+ 104, 105, -1, 107, 108, 109, 110, 111, 112, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
+ 134, 135, 136, 137, -1, -1, 140, 141, 142, 143,
+ 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, 171, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, -1,
+ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
+ 194, 195, 196, 197, 198, 199, 200, 201, 202, 203,
+ 204, 205, 206, 207, 208, 209, 210, 211, 212, 213,
+ 214, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, 229, 230, -1, -1, 233,
+ 234, 235, 236, -1, 238, 239, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, -1, 259, 260, 261, 262, 263,
+ 264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
+ 274, 275, 276, 277, 278, 279, 280, 281, 282, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, 297, 298, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, 308, 309, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, -1, 322, 323,
+ -1, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, 341, 342, 343,
+ 344, 345, 346, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, 357, 358, 359, 360, 361, -1, 363,
+ 364, 365, 366, -1, -1, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, 380, 381, 382, 383,
+ 384, -1, 386, 387, 388, 389, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, 405, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, -1, 437, 438, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, 455, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, 471, 472, 473,
+ 474, 475, 476, 477, 478, 479, 480, 481, 482, 483,
+ 484, 485, -1, 487, 488, 489, 490, 491, 492, 493,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, 503,
+ 504, 505, 506, 507, 508, 509, 510, 511, 512, 513,
+ 514, 515, 516, 517, 518, -1, 520, 521, 522, 523,
+ 524, 525, -1, 527, -1, -1, -1, -1, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, -1, 548, 549, 550, -1, -1, -1,
+ -1, -1, -1, -1, 558, 559, 560, 561, 562, 563,
+ 564, 565, 566, 69, 70, -1, -1, 73, -1, 75,
+ 76, -1, -1, -1, -1, 81, -1, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ -1, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, -1, -1,
+ 136, 137, -1, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, -1, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, -1, -1, -1, -1, 175,
+ -1, -1, -1, 179, 180, 181, 182, -1, 184, 185,
+ 186, 187, 188, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, 229, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, -1, 259, 260, 261, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, -1, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, 301, 302, 303, -1, 305,
+ 306, 307, -1, -1, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, -1, 322, 323, -1, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, -1, 342, 343, 344, 345,
+ -1, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ 356, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ -1, 437, -1, 439, 440, 441, 442, 443, -1, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, 493, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, -1, 504, 505,
+ 506, 507, 508, -1, -1, 511, 512, 513, 514, 515,
+ -1, 517, -1, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, -1, 548, 549, -1, 69, 70, -1, -1, 73,
+ -1, 75, 76, -1, -1, 561, 562, 81, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, -1, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, -1, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, -1,
+ 184, 185, 186, 187, 188, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, 229, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, -1, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, -1, 322, 323,
+ -1, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, 356, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, -1, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, 493,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, -1, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, -1, 548, 549, -1, 69, 70, -1,
+ -1, 73, -1, 75, 76, -1, -1, 561, 562, 81,
+ -1, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, -1, 99, 100, 101,
+ -1, -1, -1, -1, -1, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, -1, -1, 136, 137, -1, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, -1, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ -1, -1, -1, 175, -1, -1, -1, 179, 180, 181,
+ 182, -1, 184, 185, 186, 187, 188, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, 229, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, -1, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ -1, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, -1, -1, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, -1,
+ 322, 323, -1, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, -1,
+ 342, 343, 344, 345, -1, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, 356, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, -1, 437, -1, 439, 440, 441,
+ 442, 443, -1, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, 490, 491,
+ 492, 493, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, -1, 504, 505, 506, 507, 508, -1, -1, 511,
+ 512, 513, 514, 515, -1, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, -1, 548, 549, -1, 69,
+ 70, -1, -1, 73, -1, 75, 76, -1, -1, 561,
+ 562, 81, -1, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, -1, -1, -1, -1, -1, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, -1, -1, 136, 137, -1, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, -1,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, -1, -1, -1, -1, 175, -1, -1, -1, 179,
+ 180, 181, 182, -1, 184, 185, 186, 187, -1, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, -1, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, -1, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, -1, 283, -1, 285, -1, 287, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, -1, -1,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, -1, 322, 323, -1, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, -1, 342, 343, 344, 345, -1, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, 356, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, -1, 437, -1, 439,
+ 440, 441, 442, 443, -1, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, 493, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, -1, 504, 505, 506, 507, 508, -1,
+ -1, 511, 512, 513, 514, 515, -1, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, -1, 548, 549,
+ 69, 70, -1, -1, 73, -1, -1, 76, -1, -1,
+ -1, 561, 562, -1, -1, -1, -1, -1, -1, -1,
+ -1, 90, 91, 92, 93, 94, 95, 96, 97, -1,
+ 99, 100, 101, -1, -1, -1, -1, -1, -1, -1,
+ 109, 110, 111, -1, 113, 114, 115, 116, 117, 118,
+ 119, 120, 121, 122, 123, 124, 125, -1, 127, 128,
+ 129, 130, 131, 132, 133, -1, -1, 136, 137, -1,
+ 139, 140, -1, 142, 143, 144, 145, 146, -1, 148,
+ -1, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ -1, -1, 161, 162, 163, 164, 165, 166, -1, 168,
+ 169, 170, -1, -1, -1, 174, 175, -1, -1, 178,
+ 179, 180, 181, 182, -1, 184, 185, 186, 187, -1,
+ 189, -1, 191, 192, 193, 194, 195, 196, 197, -1,
+ 199, 200, 201, 202, -1, -1, 205, 206, 207, 208,
+ 209, -1, 211, 212, 213, -1, 215, 216, 217, -1,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ -1, 230, -1, 232, 233, 234, 235, 236, -1, 238,
+ -1, 240, 241, -1, 243, 244, 245, 246, 247, -1,
+ 249, 250, -1, 252, 253, 254, -1, 256, 257, -1,
+ 259, 260, 261, 262, 263, 264, 265, -1, 267, 268,
+ 269, 270, 271, 272, 273, -1, 275, 276, 277, -1,
+ 279, 280, 281, -1, 283, -1, 285, -1, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ 299, 300, 301, 302, 303, -1, 305, 306, 307, -1,
+ -1, 310, 311, 312, 313, 314, 315, 316, 317, 318,
+ 319, 320, -1, 322, 323, -1, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, -1, 342, 343, 344, 345, -1, 347, 348,
+ 349, 350, 351, 352, -1, 354, 355, -1, -1, 358,
+ 359, 360, -1, -1, 363, 364, 365, 366, 367, 368,
+ 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
+ 379, -1, 381, 382, 383, 384, 385, 386, 387, 388,
+ -1, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 400, 401, 402, 403, 404, -1, 406, 407, 408,
+ 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
+ -1, 420, 421, 422, 423, 424, 425, 426, 427, 428,
+ 429, 430, 431, 432, 433, 434, 435, -1, 437, -1,
+ 439, 440, 441, 442, 443, 444, 445, 446, 447, 448,
+ 449, 450, 451, 452, 453, 454, -1, 456, 457, 458,
+ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
+ 469, 470, -1, 472, 473, -1, 475, 476, 477, 478,
+ 479, 480, 481, -1, 483, 484, 485, 486, -1, 488,
+ 489, 490, 491, 492, -1, 494, 495, 496, 497, 498,
+ 499, 500, 501, -1, -1, 504, 505, 506, 507, 508,
+ -1, -1, 511, 512, 513, 514, 515, -1, 517, -1,
+ 519, 520, 521, 522, 523, 524, -1, -1, 527, -1,
+ -1, 530, 531, 532, 533, 534, 535, 536, 537, 538,
+ 539, 540, 541, 542, 543, 544, 545, 546, -1, 548,
+ 549, 69, 70, -1, -1, 73, -1, -1, 76, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, -1, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, -1, -1, 136, 137,
+ -1, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, -1, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, -1, -1, -1, 174, 175, -1, -1,
+ 178, 179, 180, 181, 182, -1, 184, 185, 186, 187,
+ -1, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, -1, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ -1, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, -1, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ -1, -1, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, -1, 322, 323, -1, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, -1, 342, 343, 344, 345, -1, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, -1, 437,
+ -1, 439, 440, 441, 442, 443, 444, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, -1, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, -1, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, -1, 504, 505, 506, 507,
+ 508, -1, -1, 511, 512, 513, 514, 515, -1, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, -1, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 69,
+ 548, 549, -1, 73, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
+ 100, 101, -1, -1, -1, -1, -1, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, -1, -1, 136, 137, -1, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, -1,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, -1, -1, -1, 174, 175, -1, -1, 178, 179,
+ 180, 181, 182, -1, 184, 185, 186, 187, -1, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, -1,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, -1, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, -1, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, -1, 283, -1, 285, -1, 287, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, -1, -1,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, -1, 322, 323, -1, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, -1, 342, 343, 344, 345, -1, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, -1, 437, -1, 439,
+ 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, -1, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, -1, 504, 505, 506, 507, 508, -1,
+ -1, 511, 512, 513, 514, 515, -1, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 69, 548, 549,
+ -1, 73, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
+ -1, -1, -1, -1, -1, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, -1, -1, 136, 137, -1, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, -1, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ -1, -1, 174, 175, -1, -1, 178, 179, 180, 181,
+ 182, -1, 184, 185, 186, 187, -1, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, -1, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, -1, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ -1, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, -1, -1, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, -1,
+ 322, 323, -1, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, -1,
+ 342, 343, 344, 345, -1, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, -1, 437, -1, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, 490, 491,
+ 492, -1, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, -1, 504, 505, 506, 507, 508, -1, -1, 511,
+ 512, 513, 514, 515, -1, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, 69, 548, 549, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, -1, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, -1, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ 174, 175, -1, -1, 178, 179, 180, 181, 182, -1,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, -1, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, -1, 322, 323,
+ -1, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, -1, 437, -1, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, 509, -1, 511, 512, 513,
+ 514, 515, -1, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 69, 548, 549, -1, 73, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ -1, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, -1, -1,
+ 136, 137, -1, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, -1, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, -1, -1, -1, 174, 175,
+ -1, -1, 178, 179, 180, 181, 182, -1, 184, 185,
+ 186, 187, -1, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, -1, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, 250, 251, 252, 253, 254, -1,
+ 256, 257, -1, 259, 260, 261, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, -1, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, 301, 302, 303, -1, 305,
+ 306, 307, -1, -1, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, -1, 322, 323, -1, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, -1, 342, 343, 344, 345,
+ -1, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ -1, 437, -1, 439, 440, 441, 442, 443, 444, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, -1, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, -1, 504, 505,
+ 506, 507, 508, -1, -1, 511, 512, 513, 514, 515,
+ -1, 517, -1, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, 69, 548, 549, -1, 73, -1, -1, 76, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, -1, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, -1, -1, 136, 137,
+ -1, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, -1, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, -1, -1, -1, -1, 175, -1, -1,
+ -1, 179, 180, 181, 182, -1, 184, 185, 186, 187,
+ -1, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, 229, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ -1, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, -1, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ -1, -1, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, -1, 322, 323, -1, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, -1, 342, 343, 344, 345, -1, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, 356, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, -1, 437,
+ -1, 439, 440, 441, 442, 443, -1, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, -1, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, 493, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, -1, 504, 505, 506, 507,
+ 508, -1, -1, 511, 512, 513, 514, 515, -1, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, -1, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 69,
+ 548, 549, -1, 73, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, -1, -1, -1, -1, -1, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, -1, -1, 136, 137, -1, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, -1,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, -1, -1, -1, 174, 175, -1, -1, 178, 179,
+ 180, 181, 182, -1, 184, 185, 186, 187, -1, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, -1,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, -1, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, -1, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, -1, 283, -1, 285, -1, 287, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, -1, -1,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, -1, 322, 323, -1, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, -1, 342, 343, 344, 345, -1, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, -1, 437, -1, 439,
+ 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, -1, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, -1, 504, 505, 506, 507, 508, -1,
+ -1, 511, 512, 513, 514, 515, -1, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 69, 548, 549,
+ -1, 73, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, -1, 99, 100, 101,
+ -1, -1, -1, -1, -1, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, -1, -1, 136, 137, -1, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, -1, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ -1, -1, 174, 175, -1, -1, 178, 179, 180, 181,
+ 182, -1, 184, 185, 186, 187, -1, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, -1, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, -1, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ -1, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, -1, -1, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, -1,
+ 322, 323, -1, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, -1,
+ 342, 343, 344, 345, -1, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, -1, 437, -1, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, 490, 491,
+ 492, -1, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, -1, 504, 505, 506, 507, 508, -1, -1, 511,
+ 512, 513, 514, 515, -1, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, 69, 548, 549, -1, 73,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, -1, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, -1, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ 174, 175, -1, -1, 178, 179, 180, 181, 182, -1,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, -1, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, -1, 322, 323,
+ -1, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, -1, 437, -1, 439, 440, 441, 442, 443,
+ 444, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, -1, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 69, 548, 549, -1, 73, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ -1, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, -1, -1,
+ 136, 137, -1, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, -1, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, -1, -1, -1, 174, 175,
+ -1, -1, 178, 179, 180, 181, 182, -1, 184, 185,
+ 186, 187, -1, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, -1, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, -1, 259, 260, 261, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, -1, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, 301, 302, 303, -1, 305,
+ 306, 307, -1, -1, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, -1, 322, 323, -1, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, -1, 342, 343, 344, 345,
+ -1, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ -1, 437, -1, 439, 440, 441, 442, 443, 444, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, -1, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, -1, 504, 505,
+ 506, 507, 508, -1, -1, 511, 512, 513, 514, 515,
+ -1, 517, -1, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, 69, 548, 549, -1, 73, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 90, 91, 92, 93, 94, 95, 96, 97,
+ -1, 99, 100, 101, -1, -1, -1, -1, -1, -1,
+ -1, 109, 110, 111, -1, 113, 114, 115, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 125, -1, 127,
+ 128, 129, 130, 131, 132, 133, -1, -1, 136, 137,
+ -1, 139, 140, -1, 142, 143, 144, 145, 146, -1,
+ 148, -1, 150, 151, 152, 153, 154, 155, 156, 157,
+ 158, -1, -1, 161, 162, 163, 164, 165, 166, -1,
+ 168, 169, 170, -1, -1, -1, 174, 175, -1, -1,
+ 178, 179, 180, 181, 182, -1, 184, 185, 186, 187,
+ -1, 189, -1, 191, 192, 193, 194, 195, 196, 197,
+ -1, 199, 200, 201, 202, -1, -1, 205, 206, 207,
+ 208, 209, -1, 211, 212, 213, -1, 215, 216, 217,
+ -1, 219, 220, 221, 222, 223, 224, 225, 226, 227,
+ 228, -1, 230, -1, 232, 233, 234, 235, 236, -1,
+ 238, -1, 240, 241, -1, 243, 244, 245, 246, 247,
+ -1, 249, 250, -1, 252, 253, 254, -1, 256, 257,
+ -1, 259, 260, 261, 262, 263, 264, 265, -1, 267,
+ 268, 269, 270, 271, 272, 273, -1, 275, 276, 277,
+ -1, 279, 280, 281, -1, 283, -1, 285, -1, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, 299, 300, 301, 302, 303, -1, 305, 306, 307,
+ -1, -1, 310, 311, 312, 313, 314, 315, 316, 317,
+ 318, 319, 320, -1, 322, 323, -1, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, -1, 342, 343, 344, 345, -1, 347,
+ 348, 349, 350, 351, 352, -1, 354, 355, -1, -1,
+ 358, 359, 360, -1, -1, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, -1, 381, 382, 383, 384, 385, 386, 387,
+ 388, -1, 390, 391, 392, 393, 394, 395, 396, 397,
+ 398, 399, 400, 401, 402, 403, 404, -1, 406, 407,
+ 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
+ 418, -1, 420, 421, 422, 423, 424, 425, 426, 427,
+ 428, 429, 430, 431, 432, 433, 434, 435, -1, 437,
+ -1, 439, 440, 441, 442, 443, 444, 445, 446, 447,
+ 448, 449, 450, 451, 452, 453, 454, -1, 456, 457,
+ 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 469, 470, -1, 472, 473, -1, 475, 476, 477,
+ 478, 479, 480, 481, -1, 483, 484, 485, -1, -1,
+ 488, 489, 490, 491, 492, -1, 494, 495, 496, 497,
+ 498, 499, 500, 501, -1, -1, 504, 505, 506, 507,
+ 508, -1, -1, 511, 512, 513, 514, 515, -1, 517,
+ -1, 519, 520, 521, 522, 523, 524, -1, -1, 527,
+ -1, -1, 530, 531, 532, 533, 534, 535, 536, 537,
+ 538, 539, 540, 541, 542, 543, 544, 545, 546, 69,
+ 548, 549, -1, 73, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 90, 91, 92, 93, 94, 95, 96, 97, -1, 99,
+ 100, 101, 102, 103, -1, -1, -1, -1, -1, 109,
+ 110, 111, -1, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, -1, 127, 128, 129,
+ 130, 131, 132, 133, -1, -1, 136, 137, -1, 139,
+ 140, -1, 142, 143, 144, 145, 146, -1, 148, -1,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, -1,
+ -1, 161, 162, 163, 164, 165, 166, -1, 168, 169,
+ 170, -1, -1, -1, -1, 175, -1, -1, -1, 179,
+ 180, 181, 182, -1, 184, 185, 186, 187, -1, 189,
+ -1, 191, 192, 193, 194, 195, 196, 197, -1, 199,
+ 200, 201, 202, -1, -1, 205, 206, 207, 208, 209,
+ -1, 211, 212, 213, -1, 215, 216, 217, -1, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, -1,
+ 230, -1, 232, 233, 234, 235, 236, -1, 238, -1,
+ 240, 241, -1, 243, 244, 245, 246, 247, -1, 249,
+ 250, -1, 252, 253, 254, -1, 256, 257, -1, 259,
+ 260, 261, 262, 263, 264, 265, -1, 267, 268, 269,
+ 270, 271, 272, 273, -1, 275, 276, 277, -1, 279,
+ 280, 281, -1, 283, -1, 285, -1, 287, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, -1, -1, 299,
+ 300, 301, 302, 303, -1, 305, 306, 307, -1, -1,
+ 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
+ 320, -1, 322, 323, -1, 325, 326, 327, 328, 329,
+ 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
+ 340, -1, 342, 343, 344, 345, -1, 347, 348, 349,
+ 350, 351, 352, -1, 354, 355, -1, -1, 358, 359,
+ 360, -1, -1, 363, 364, 365, 366, 367, 368, 369,
+ 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
+ -1, 381, 382, 383, 384, 385, 386, 387, 388, -1,
+ 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
+ 400, 401, 402, 403, 404, -1, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, -1,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, -1, 437, -1, 439,
+ 440, 441, 442, 443, -1, 445, 446, 447, 448, 449,
+ 450, 451, 452, 453, 454, -1, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,
+ 470, -1, 472, 473, -1, 475, 476, 477, 478, 479,
+ 480, 481, -1, 483, 484, 485, -1, -1, 488, 489,
+ 490, 491, 492, -1, 494, 495, 496, 497, 498, 499,
+ 500, 501, -1, -1, 504, 505, 506, 507, 508, -1,
+ -1, 511, 512, 513, 514, 515, -1, 517, -1, 519,
+ 520, 521, 522, 523, 524, -1, -1, 527, -1, -1,
+ 530, 531, 532, 533, 534, 535, 536, 537, 538, 539,
+ 540, 541, 542, 543, 544, 545, 546, 69, 548, 549,
+ -1, 73, -1, -1, 76, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 90, 91,
+ 92, 93, 94, 95, 96, 97, -1, 99, 100, 101,
+ -1, -1, -1, -1, -1, -1, -1, 109, 110, 111,
+ -1, 113, 114, 115, 116, 117, 118, 119, 120, 121,
+ 122, 123, 124, 125, -1, 127, 128, 129, 130, 131,
+ 132, 133, -1, -1, 136, 137, -1, 139, 140, -1,
+ 142, 143, 144, 145, 146, -1, 148, -1, 150, 151,
+ 152, 153, 154, 155, 156, 157, 158, -1, -1, 161,
+ 162, 163, 164, 165, 166, -1, 168, 169, 170, -1,
+ -1, -1, -1, 175, -1, -1, -1, 179, 180, 181,
+ 182, -1, 184, 185, 186, 187, 188, 189, -1, 191,
+ 192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
+ 202, -1, -1, 205, 206, 207, 208, 209, -1, 211,
+ 212, 213, -1, 215, 216, 217, -1, 219, 220, 221,
+ 222, 223, 224, 225, 226, 227, 228, -1, 230, -1,
+ 232, 233, 234, 235, 236, -1, 238, -1, 240, 241,
+ -1, 243, 244, 245, 246, 247, -1, 249, 250, -1,
+ 252, 253, 254, -1, 256, 257, -1, 259, 260, 261,
+ 262, 263, 264, 265, -1, 267, 268, 269, 270, 271,
+ 272, 273, -1, 275, 276, 277, -1, 279, 280, 281,
+ -1, 283, -1, 285, -1, 287, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, -1, -1, 299, 300, 301,
+ 302, 303, -1, 305, 306, 307, -1, -1, 310, 311,
+ 312, 313, 314, 315, 316, 317, 318, 319, 320, -1,
+ 322, 323, -1, 325, 326, 327, 328, 329, 330, 331,
+ 332, 333, 334, 335, 336, 337, 338, 339, 340, -1,
+ 342, 343, 344, 345, -1, 347, 348, 349, 350, 351,
+ 352, -1, 354, 355, -1, -1, 358, 359, 360, -1,
+ -1, 363, 364, 365, 366, 367, 368, 369, 370, 371,
+ 372, 373, 374, 375, 376, 377, 378, 379, -1, 381,
+ 382, 383, 384, 385, 386, 387, 388, -1, 390, 391,
+ 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, -1, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, -1, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, -1, 437, -1, 439, 440, 441,
+ 442, 443, -1, 445, 446, 447, 448, 449, 450, 451,
+ 452, 453, 454, -1, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 467, 468, 469, 470, -1,
+ 472, 473, -1, 475, 476, 477, 478, 479, 480, 481,
+ -1, 483, 484, 485, -1, -1, 488, 489, 490, 491,
+ 492, -1, 494, 495, 496, 497, 498, 499, 500, 501,
+ -1, -1, 504, 505, 506, 507, 508, -1, -1, 511,
+ 512, 513, 514, 515, -1, 517, -1, 519, 520, 521,
+ 522, 523, 524, -1, -1, 527, -1, -1, 530, 531,
+ 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,
+ 542, 543, 544, 545, 546, 69, 548, 549, -1, 73,
+ -1, -1, 76, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 90, 91, 92, 93,
+ 94, 95, 96, 97, -1, 99, 100, 101, -1, -1,
+ -1, -1, -1, -1, -1, 109, 110, 111, -1, 113,
+ 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
+ 124, 125, -1, 127, 128, 129, 130, 131, 132, 133,
+ -1, -1, 136, 137, -1, 139, 140, -1, 142, 143,
+ 144, 145, 146, -1, 148, -1, 150, 151, 152, 153,
+ 154, 155, 156, 157, 158, -1, -1, 161, 162, 163,
+ 164, 165, 166, -1, 168, 169, 170, -1, -1, -1,
+ -1, 175, -1, -1, -1, 179, 180, 181, 182, -1,
+ 184, 185, 186, 187, -1, 189, -1, 191, 192, 193,
+ 194, 195, 196, 197, -1, 199, 200, 201, 202, -1,
+ -1, 205, 206, 207, 208, 209, -1, 211, 212, 213,
+ -1, 215, 216, 217, -1, 219, 220, 221, 222, 223,
+ 224, 225, 226, 227, 228, -1, 230, -1, 232, 233,
+ 234, 235, 236, -1, 238, -1, 240, 241, -1, 243,
+ 244, 245, 246, 247, -1, 249, 250, -1, 252, 253,
+ 254, -1, 256, 257, -1, 259, 260, 261, 262, 263,
+ 264, 265, -1, 267, 268, 269, 270, 271, 272, 273,
+ -1, 275, 276, 277, -1, 279, 280, 281, -1, 283,
+ -1, 285, -1, 287, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, -1, -1, 299, 300, 301, 302, 303,
+ -1, 305, 306, 307, -1, -1, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, -1, 322, 323,
+ -1, 325, 326, 327, 328, 329, 330, 331, 332, 333,
+ 334, 335, 336, 337, 338, 339, 340, -1, 342, 343,
+ 344, 345, -1, 347, 348, 349, 350, 351, 352, -1,
+ 354, 355, -1, -1, 358, 359, 360, -1, -1, 363,
+ 364, 365, 366, 367, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, -1, 381, 382, 383,
+ 384, 385, 386, 387, 388, -1, 390, 391, 392, 393,
+ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ 404, -1, 406, 407, 408, 409, 410, 411, 412, 413,
+ 414, 415, 416, 417, 418, -1, 420, 421, 422, 423,
+ 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,
+ 434, 435, -1, 437, -1, 439, 440, 441, 442, 443,
+ -1, 445, 446, 447, 448, 449, 450, 451, 452, 453,
+ 454, -1, 456, 457, 458, 459, 460, 461, 462, 463,
+ 464, 465, 466, 467, 468, 469, 470, -1, 472, 473,
+ -1, 475, 476, 477, 478, 479, 480, 481, -1, 483,
+ 484, 485, -1, -1, 488, 489, 490, 491, 492, -1,
+ 494, 495, 496, 497, 498, 499, 500, 501, -1, -1,
+ 504, 505, 506, 507, 508, -1, -1, 511, 512, 513,
+ 514, 515, -1, 517, -1, 519, 520, 521, 522, 523,
+ 524, -1, -1, 527, -1, -1, 530, 531, 532, 533,
+ 534, 535, 536, 537, 538, 539, 540, 541, 542, 543,
+ 544, 545, 546, 69, 548, 549, -1, 73, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 90, 91, 92, 93, 94, 95,
+ 96, 97, -1, 99, 100, 101, -1, -1, -1, -1,
+ -1, -1, -1, 109, 110, 111, -1, 113, 114, 115,
+ 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
+ -1, 127, 128, 129, 130, 131, 132, 133, -1, -1,
+ 136, 137, -1, 139, 140, -1, 142, 143, 144, 145,
+ 146, -1, 148, -1, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, -1, -1, 161, 162, 163, 164, 165,
+ 166, -1, 168, 169, 170, -1, -1, -1, -1, 175,
+ -1, -1, -1, 179, 180, 181, 182, -1, 184, 185,
+ 186, 187, -1, 189, -1, 191, 192, 193, 194, 195,
+ 196, 197, -1, 199, 200, 201, 202, -1, -1, 205,
+ 206, 207, 208, 209, -1, 211, 212, 213, -1, 215,
+ 216, 217, -1, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, -1, 230, -1, 232, 233, 234, 235,
+ 236, -1, 238, -1, 240, 241, -1, 243, 244, 245,
+ 246, 247, -1, 249, 250, -1, 252, 253, 254, -1,
+ 256, 257, -1, 259, 260, 261, 262, 263, 264, 265,
+ -1, 267, 268, 269, 270, 271, 272, 273, -1, 275,
+ 276, 277, -1, 279, 280, 281, -1, 283, -1, 285,
+ -1, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, -1, -1, 299, 300, 301, 302, 303, -1, 305,
+ 306, 307, -1, -1, 310, 311, 312, 313, 314, 315,
+ 316, 317, 318, 319, 320, -1, 322, 323, -1, 325,
+ 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
+ 336, 337, 338, 339, 340, -1, 342, 343, 344, 345,
+ -1, 347, 348, 349, 350, 351, 352, -1, 354, 355,
+ -1, -1, 358, 359, 360, -1, -1, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, -1, 381, 382, 383, 384, 385,
+ 386, 387, 388, -1, 390, 391, 392, 393, 394, 395,
+ 396, 397, 398, 399, 400, 401, 402, 403, 404, -1,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, -1, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ -1, 437, -1, 439, 440, 441, 442, 443, -1, 445,
+ 446, 447, 448, 449, 450, 451, 452, 453, 454, -1,
+ 456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
+ 466, 467, 468, 469, 470, -1, 472, 473, -1, 475,
+ 476, 477, 478, 479, 480, 481, -1, 483, 484, 485,
+ -1, -1, 488, 489, 490, 491, 492, -1, 494, 495,
+ 496, 497, 498, 499, 500, 501, -1, -1, 504, 505,
+ 506, 507, 508, -1, -1, 511, 512, 513, 514, 515,
+ -1, 517, -1, 519, 520, 521, 522, 523, 524, -1,
+ -1, 527, -1, -1, 530, 531, 532, 533, 534, 535,
+ 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
+ 546, -1, 548, 549
+};
+
+ /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ symbol of state STATE-NUM. */
+static const yytype_int16 yystos[] =
+{
+ 0, 579, 1254, 0, 5, 24, 34, 35, 39, 41,
+ 42, 45, 46, 47, 48, 49, 50, 51, 52, 53,
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+ 64, 65, 66, 67, 68, 69, 71, 73, 75, 76,
+ 81, 138, 215, 235, 258, 282, 321, 324, 346, 436,
+ 486, 502, 517, 547, 560, 561, 562, 563, 564, 565,
+ 568, 569, 570, 571, 573, 574, 575, 576, 577, 1242,
+ 1255, 1285, 1287, 1378, 1388, 1389, 1391, 1397, 1398, 1286,
+ 3, 6, 7, 8, 9, 10, 11, 12, 14, 15,
+ 16, 17, 18, 19, 20, 21, 22, 23, 25, 26,
+ 27, 30, 31, 32, 33, 35, 36, 37, 38, 40,
+ 41, 42, 43, 44, 48, 49, 54, 63, 65, 67,
+ 68, 90, 100, 102, 103, 114, 117, 120, 121, 122,
+ 123, 124, 125, 130, 139, 142, 144, 145, 146, 148,
+ 151, 153, 156, 165, 167, 168, 175, 182, 184, 185,
+ 186, 187, 202, 204, 208, 214, 215, 222, 223, 224,
+ 228, 231, 235, 241, 243, 248, 250, 252, 261, 265,
+ 276, 277, 283, 285, 288, 289, 291, 300, 301, 303,
+ 305, 306, 311, 325, 328, 329, 330, 338, 339, 343,
+ 344, 347, 349, 365, 366, 368, 369, 383, 385, 387,
+ 400, 401, 407, 408, 410, 415, 421, 422, 424, 428,
+ 431, 437, 438, 445, 447, 449, 450, 453, 459, 469,
+ 474, 476, 484, 485, 490, 492, 494, 496, 502, 505,
+ 511, 516, 517, 520, 529, 536, 537, 538, 539, 540,
+ 541, 542, 543, 544, 545, 546, 552, 570, 580, 581,
+ 582, 583, 589, 590, 592, 593, 594, 595, 597, 601,
+ 613, 618, 619, 622, 623, 624, 643, 646, 647, 662,
+ 709, 712, 715, 718, 719, 720, 728, 735, 737, 738,
+ 741, 744, 745, 749, 758, 762, 763, 764, 767, 769,
+ 770, 771, 772, 780, 782, 802, 806, 808, 809, 819,
+ 821, 828, 829, 832, 833, 834, 835, 836, 845, 847,
+ 849, 852, 856, 857, 867, 868, 871, 876, 890, 922,
+ 925, 926, 927, 932, 935, 937, 939, 941, 942, 945,
+ 946, 949, 951, 952, 956, 957, 958, 961, 962, 963,
+ 964, 965, 972, 974, 975, 976, 977, 983, 985, 986,
+ 992, 993, 994, 997, 998, 999, 1000, 1002, 1003, 1005,
+ 1006, 1008, 1009, 1011, 1023, 1025, 1028, 1030, 1039, 1041,
+ 1046, 1051, 1059, 1063, 1064, 1065, 1066, 1067, 1068, 1074,
+ 1109, 1250, 1251, 1256, 1259, 1260, 1277, 1278, 1279, 1280,
+ 1281, 1292, 1294, 1298, 1299, 1300, 1301, 1302, 1304, 1306,
+ 1308, 1309, 1310, 1311, 1313, 1318, 1319, 1323, 1324, 1333,
+ 1335, 1336, 1337, 1340, 1345, 1348, 1353, 1355, 1356, 1359,
+ 1361, 1364, 1373, 1391, 1399, 71, 1281, 1289, 1290, 13,
+ 70, 90, 91, 92, 93, 94, 95, 96, 97, 99,
+ 100, 101, 109, 110, 111, 113, 114, 115, 116, 118,
+ 119, 120, 127, 128, 129, 130, 131, 132, 133, 136,
+ 137, 140, 142, 143, 144, 145, 150, 151, 152, 153,
+ 154, 155, 157, 158, 161, 162, 163, 164, 165, 166,
+ 169, 170, 174, 178, 179, 180, 181, 182, 184, 187,
+ 189, 191, 192, 193, 194, 195, 196, 197, 199, 200,
+ 201, 202, 205, 206, 207, 208, 209, 211, 212, 213,
+ 215, 216, 217, 219, 220, 221, 222, 224, 225, 226,
+ 227, 230, 232, 233, 234, 236, 238, 240, 244, 245,
+ 246, 247, 249, 253, 254, 256, 257, 259, 260, 262,
+ 263, 264, 265, 267, 268, 269, 270, 271, 272, 273,
+ 275, 279, 280, 281, 287, 290, 292, 293, 294, 295,
+ 296, 299, 302, 305, 306, 307, 310, 311, 312, 313,
+ 314, 315, 316, 317, 318, 319, 320, 322, 323, 325,
+ 326, 327, 331, 332, 333, 334, 335, 336, 337, 340,
+ 342, 343, 345, 348, 350, 351, 352, 354, 355, 358,
+ 359, 360, 363, 364, 367, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, 381, 382, 384, 386, 387,
+ 388, 390, 391, 392, 393, 394, 395, 396, 397, 398,
+ 399, 401, 402, 403, 404, 406, 407, 408, 409, 410,
+ 411, 412, 413, 414, 415, 416, 417, 418, 420, 421,
+ 423, 424, 425, 426, 427, 429, 430, 431, 432, 433,
+ 434, 435, 437, 439, 440, 441, 442, 443, 444, 445,
+ 446, 448, 449, 451, 452, 454, 456, 457, 458, 459,
+ 460, 461, 462, 463, 464, 465, 466, 467, 468, 470,
+ 472, 473, 475, 477, 478, 479, 480, 481, 483, 486,
+ 488, 489, 491, 494, 495, 496, 497, 498, 499, 500,
+ 501, 504, 505, 506, 507, 508, 511, 512, 513, 514,
+ 515, 519, 521, 522, 523, 524, 527, 530, 531, 532,
+ 533, 534, 535, 548, 549, 1244, 1245, 1247, 1249, 1250,
+ 1251, 1270, 1271, 1383, 1385, 1389, 1391, 28, 278, 1334,
+ 8, 12, 14, 27, 43, 44, 48, 49, 54, 63,
+ 65, 67, 68, 98, 138, 159, 171, 183, 188, 258,
+ 321, 324, 436, 516, 547, 1237, 1249, 1250, 1272, 1320,
+ 1321, 1363, 1364, 1365, 1369, 1374, 1375, 1376, 1385, 1391,
+ 98, 1060, 1237, 1272, 1382, 13, 1060, 5, 24, 28,
+ 34, 35, 41, 42, 98, 102, 103, 104, 105, 106,
+ 107, 108, 112, 126, 134, 135, 138, 141, 147, 149,
+ 159, 160, 167, 171, 172, 173, 174, 176, 177, 178,
+ 188, 190, 198, 203, 204, 210, 214, 218, 229, 231,
+ 237, 239, 242, 248, 251, 255, 266, 274, 278, 282,
+ 284, 286, 297, 298, 304, 308, 309, 341, 346, 353,
+ 356, 357, 361, 362, 380, 389, 405, 419, 438, 444,
+ 455, 471, 474, 482, 486, 487, 493, 502, 503, 509,
+ 510, 516, 518, 525, 526, 528, 529, 1249, 1252, 1365,
+ 1366, 1367, 1371, 1372, 1373, 1374, 1376, 24, 34, 138,
+ 282, 1360, 36, 38, 341, 1293, 488, 532, 978, 97,
+ 148, 164, 182, 188, 206, 217, 226, 239, 244, 251,
+ 270, 295, 317, 358, 382, 392, 393, 396, 423, 426,
+ 430, 432, 439, 442, 461, 468, 473, 474, 477, 481,
+ 491, 496, 509, 522, 734, 1321, 187, 978, 1170, 1240,
+ 1251, 1363, 1366, 1369, 1370, 1374, 1375, 1391, 98, 1060,
+ 520, 570, 1016, 356, 388, 978, 123, 570, 654, 92,
+ 110, 135, 148, 182, 188, 206, 217, 226, 239, 247,
+ 251, 307, 358, 361, 382, 396, 423, 432, 442, 461,
+ 468, 477, 478, 480, 481, 496, 503, 506, 509, 663,
+ 717, 824, 877, 891, 1237, 1261, 1262, 1263, 1272, 1389,
+ 1391, 13, 98, 387, 1237, 1272, 1276, 460, 1060, 1237,
+ 1272, 1276, 98, 381, 440, 478, 480, 294, 933, 934,
+ 1389, 92, 97, 135, 148, 164, 182, 206, 217, 226,
+ 239, 244, 251, 270, 317, 358, 371, 382, 393, 396,
+ 423, 426, 430, 432, 439, 442, 461, 468, 474, 477,
+ 481, 489, 491, 496, 509, 522, 734, 837, 839, 840,
+ 978, 576, 1303, 1367, 262, 1276, 167, 187, 222, 520,
+ 570, 715, 718, 1011, 1024, 1028, 1030, 1039, 1046, 1051,
+ 1059, 1063, 1256, 91, 98, 118, 234, 240, 242, 266,
+ 296, 332, 390, 409, 561, 562, 853, 854, 1060, 1242,
+ 1243, 1383, 1385, 98, 100, 167, 405, 438, 858, 859,
+ 860, 1369, 239, 1369, 1239, 1389, 474, 1077, 118, 240,
+ 853, 1369, 488, 1276, 371, 317, 182, 270, 432, 473,
+ 474, 570, 943, 944, 431, 1369, 98, 138, 443, 484,
+ 488, 516, 605, 614, 615, 1249, 1250, 1363, 1368, 1374,
+ 1376, 1391, 95, 248, 858, 859, 388, 978, 1369, 293,
+ 98, 203, 1079, 1080, 4, 13, 136, 159, 161, 307,
+ 327, 423, 432, 443, 484, 488, 535, 602, 603, 604,
+ 605, 98, 443, 484, 488, 605, 488, 357, 1121, 1122,
+ 1235, 1369, 1077, 1357, 1367, 563, 1369, 243, 570, 1017,
+ 570, 403, 1069, 1070, 1237, 1069, 1064, 1065, 1068, 574,
+ 570, 1016, 218, 284, 362, 502, 1081, 1082, 1064, 1066,
+ 1067, 193, 280, 319, 508, 573, 120, 580, 1301, 1304,
+ 1300, 1296, 574, 1305, 1307, 5, 24, 34, 138, 207,
+ 282, 1312, 183, 258, 321, 324, 436, 547, 570, 1165,
+ 1166, 1284, 1288, 1378, 71, 1281, 1237, 1272, 1392, 188,
+ 1261, 20, 510, 564, 1276, 1276, 1392, 510, 1325, 1326,
+ 1327, 24, 282, 282, 1371, 18, 19, 37, 40, 130,
+ 163, 204, 1362, 1362, 15, 1301, 104, 982, 907, 1240,
+ 842, 1369, 842, 1237, 391, 842, 491, 1237, 181, 474,
+ 895, 1240, 1251, 1369, 1244, 1245, 98, 260, 1235, 350,
+ 522, 80, 87, 88, 89, 143, 230, 558, 559, 560,
+ 561, 562, 563, 564, 565, 566, 929, 931, 1200, 1201,
+ 1369, 260, 1237, 895, 1237, 98, 1244, 1245, 895, 1237,
+ 1237, 260, 1235, 1237, 260, 842, 1237, 415, 445, 98,
+ 260, 1121, 1237, 435, 1237, 842, 98, 314, 1244, 1245,
+ 260, 1235, 294, 33, 190, 290, 341, 399, 979, 980,
+ 981, 570, 568, 572, 1226, 1228, 1010, 1011, 1012, 1013,
+ 1247, 1235, 1237, 1369, 97, 135, 149, 160, 182, 206,
+ 244, 270, 295, 358, 393, 423, 426, 468, 477, 489,
+ 496, 837, 838, 839, 840, 1389, 982, 1027, 1030, 1039,
+ 1046, 1051, 1063, 1235, 320, 842, 570, 260, 842, 1237,
+ 842, 491, 260, 1237, 181, 474, 478, 480, 1244, 478,
+ 480, 143, 230, 929, 413, 1237, 1237, 1244, 260, 598,
+ 1369, 260, 1237, 260, 842, 1237, 1237, 435, 842, 314,
+ 1244, 403, 439, 474, 522, 317, 164, 270, 97, 160,
+ 244, 393, 430, 489, 491, 495, 729, 80, 1264, 1265,
+ 575, 1385, 1392, 98, 1276, 1391, 1061, 460, 612, 1247,
+ 1389, 934, 320, 260, 907, 908, 260, 938, 260, 1237,
+ 122, 124, 125, 138, 139, 185, 186, 207, 235, 260,
+ 282, 283, 285, 328, 330, 349, 400, 447, 453, 484,
+ 485, 517, 844, 1144, 1146, 1148, 1150, 1152, 1154, 1155,
+ 1156, 1158, 1159, 1160, 1162, 1163, 1363, 1370, 1374, 1375,
+ 1391, 491, 181, 474, 260, 894, 895, 260, 1245, 1246,
+ 156, 522, 143, 230, 260, 930, 931, 128, 260, 894,
+ 260, 1246, 260, 894, 260, 1237, 260, 1237, 435, 938,
+ 260, 844, 260, 314, 1246, 294, 260, 841, 842, 260,
+ 1236, 1237, 260, 1237, 982, 570, 576, 1393, 1394, 1395,
+ 1396, 1398, 1303, 69, 1272, 1322, 570, 1029, 663, 1060,
+ 1024, 1010, 1016, 1243, 854, 855, 98, 854, 1060, 1243,
+ 855, 98, 854, 1060, 1243, 855, 855, 855, 1243, 1242,
+ 1242, 286, 510, 1327, 1328, 1402, 1404, 1060, 855, 391,
+ 570, 473, 570, 686, 686, 686, 356, 486, 573, 686,
+ 432, 1121, 1123, 854, 1060, 854, 1060, 573, 973, 1389,
+ 242, 570, 1026, 128, 522, 1010, 156, 878, 878, 1369,
+ 117, 549, 290, 572, 359, 359, 356, 242, 1389, 486,
+ 982, 237, 850, 356, 78, 79, 80, 82, 106, 122,
+ 124, 125, 134, 135, 138, 139, 146, 148, 172, 173,
+ 174, 175, 176, 177, 178, 185, 186, 188, 223, 228,
+ 229, 235, 250, 252, 283, 285, 300, 308, 309, 328,
+ 330, 339, 341, 346, 347, 349, 358, 369, 383, 400,
+ 428, 444, 453, 469, 484, 485, 490, 492, 493, 503,
+ 509, 517, 537, 538, 539, 540, 542, 543, 544, 545,
+ 550, 561, 562, 563, 570, 1064, 1147, 1150, 1153, 1154,
+ 1155, 1157, 1158, 1159, 1162, 1163, 1167, 1169, 1170, 1171,
+ 1173, 1196, 1197, 1198, 1202, 1220, 1225, 1232, 1233, 1240,
+ 1241, 1242, 1369, 1381, 1383, 1385, 1386, 1387, 1388, 1389,
+ 1390, 1231, 1232, 486, 560, 1392, 1389, 486, 560, 1321,
+ 98, 620, 1234, 1235, 443, 602, 188, 611, 1389, 612,
+ 1389, 117, 140, 602, 549, 454, 980, 359, 242, 486,
+ 560, 117, 549, 290, 1402, 981, 570, 1235, 563, 1228,
+ 1123, 1373, 1010, 241, 1018, 1167, 1205, 1069, 573, 570,
+ 1019, 571, 571, 1010, 1020, 1021, 1022, 1235, 98, 203,
+ 1078, 1078, 128, 1078, 231, 237, 304, 353, 1085, 1087,
+ 1088, 1103, 1105, 1106, 1107, 1081, 1082, 242, 286, 286,
+ 1121, 1124, 570, 574, 1295, 563, 1314, 1315, 1317, 576,
+ 576, 24, 282, 282, 486, 486, 486, 486, 570, 486,
+ 561, 562, 726, 1243, 1282, 1388, 214, 107, 1268, 128,
+ 1271, 1271, 286, 1327, 1329, 286, 1327, 1328, 1329, 515,
+ 1338, 1339, 1385, 13, 456, 561, 562, 1242, 1330, 1331,
+ 1332, 1381, 1383, 1387, 1388, 1389, 1390, 282, 288, 486,
+ 1237, 1237, 6, 163, 1237, 1362, 1317, 137, 337, 372,
+ 411, 445, 570, 905, 372, 407, 411, 445, 572, 843,
+ 372, 411, 445, 159, 212, 310, 372, 407, 411, 445,
+ 477, 479, 529, 613, 616, 987, 988, 989, 990, 1391,
+ 872, 94, 208, 372, 411, 445, 513, 629, 1237, 94,
+ 208, 445, 508, 596, 533, 260, 1121, 131, 166, 227,
+ 263, 299, 337, 341, 372, 373, 411, 420, 429, 437,
+ 445, 457, 466, 470, 524, 613, 617, 911, 923, 950,
+ 570, 892, 1228, 411, 596, 266, 223, 94, 100, 115,
+ 145, 201, 208, 211, 238, 272, 337, 341, 351, 360,
+ 372, 411, 414, 415, 445, 513, 625, 627, 628, 752,
+ 950, 726, 98, 260, 1235, 842, 842, 570, 928, 372,
+ 445, 572, 223, 356, 372, 411, 445, 923, 950, 94,
+ 208, 372, 411, 445, 266, 591, 411, 529, 552, 584,
+ 591, 372, 411, 445, 923, 950, 356, 372, 411, 223,
+ 107, 129, 180, 269, 318, 322, 337, 371, 411, 416,
+ 439, 445, 459, 625, 723, 724, 372, 411, 521, 752,
+ 760, 223, 372, 411, 445, 94, 159, 201, 208, 211,
+ 372, 407, 411, 445, 452, 615, 603, 605, 266, 223,
+ 115, 199, 337, 411, 445, 625, 626, 372, 411, 415,
+ 445, 157, 200, 375, 479, 356, 94, 100, 208, 372,
+ 411, 445, 644, 645, 591, 237, 411, 584, 591, 223,
+ 411, 445, 625, 1237, 574, 302, 190, 357, 534, 573,
+ 979, 98, 203, 518, 563, 571, 900, 1167, 1206, 1207,
+ 1370, 1167, 1227, 563, 1238, 1371, 1226, 571, 573, 229,
+ 356, 493, 609, 612, 726, 1014, 510, 1007, 356, 907,
+ 570, 842, 1237, 1144, 895, 350, 143, 230, 931, 895,
+ 895, 237, 1144, 842, 1237, 1237, 571, 686, 1237, 141,
+ 1144, 341, 242, 570, 810, 584, 107, 1001, 1237, 341,
+ 584, 533, 260, 1235, 584, 842, 842, 810, 506, 663,
+ 356, 237, 529, 919, 584, 341, 117, 599, 341, 496,
+ 759, 341, 1019, 159, 372, 736, 157, 200, 375, 479,
+ 107, 810, 237, 260, 584, 522, 260, 1235, 260, 713,
+ 1235, 1235, 522, 842, 878, 1240, 491, 1240, 1240, 1237,
+ 237, 1237, 734, 72, 1266, 1369, 575, 1267, 1264, 109,
+ 123, 179, 279, 337, 434, 223, 132, 417, 573, 630,
+ 223, 570, 223, 584, 519, 1161, 1161, 1161, 570, 1149,
+ 1149, 385, 570, 1151, 223, 138, 139, 1161, 1149, 1146,
+ 531, 552, 570, 1164, 570, 1164, 573, 630, 106, 1145,
+ 570, 183, 324, 547, 570, 1165, 843, 1149, 533, 223,
+ 573, 630, 223, 573, 260, 841, 260, 842, 260, 842,
+ 223, 573, 630, 1246, 223, 630, 223, 223, 630, 223,
+ 630, 223, 157, 200, 375, 479, 237, 223, 630, 223,
+ 237, 260, 223, 573, 630, 223, 573, 630, 223, 356,
+ 571, 1394, 1395, 1393, 573, 577, 1205, 1326, 1401, 1402,
+ 474, 1061, 571, 1024, 855, 1060, 855, 1060, 1404, 1405,
+ 855, 1060, 855, 1060, 1405, 855, 1060, 1060, 1060, 855,
+ 13, 456, 1377, 1380, 1385, 1060, 570, 687, 688, 1369,
+ 687, 98, 182, 206, 239, 244, 294, 295, 374, 393,
+ 426, 432, 439, 474, 477, 496, 863, 1234, 1246, 860,
+ 1237, 266, 573, 1042, 1060, 1060, 1389, 1322, 1144, 1209,
+ 107, 1246, 878, 571, 1235, 1237, 302, 1369, 237, 237,
+ 863, 1246, 431, 1369, 612, 356, 570, 568, 1064, 1210,
+ 1167, 1224, 570, 570, 237, 570, 570, 1064, 570, 570,
+ 570, 570, 570, 570, 570, 1167, 570, 570, 570, 570,
+ 570, 570, 570, 570, 348, 677, 570, 570, 570, 570,
+ 570, 570, 570, 570, 1167, 1167, 1167, 516, 1064, 1167,
+ 1205, 1228, 1389, 570, 1389, 80, 83, 87, 88, 89,
+ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
+ 100, 101, 102, 103, 104, 105, 107, 108, 109, 110,
+ 111, 112, 113, 114, 115, 116, 117, 118, 119, 120,
+ 121, 122, 123, 124, 125, 126, 127, 128, 129, 130,
+ 131, 132, 133, 134, 135, 136, 137, 140, 141, 142,
+ 143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
+ 153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
+ 163, 164, 165, 166, 168, 169, 170, 171, 172, 173,
+ 174, 175, 176, 177, 178, 179, 180, 181, 182, 184,
+ 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
+ 195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
+ 205, 206, 207, 208, 209, 210, 211, 212, 213, 214,
+ 215, 216, 217, 219, 220, 221, 222, 223, 224, 225,
+ 226, 227, 228, 229, 230, 233, 234, 235, 236, 238,
+ 239, 240, 241, 243, 244, 245, 246, 247, 249, 250,
+ 252, 253, 254, 256, 257, 259, 260, 261, 262, 263,
+ 264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
+ 274, 275, 276, 277, 278, 279, 280, 281, 282, 283,
+ 285, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, 297, 298, 299, 300, 301, 302, 303, 305, 306,
+ 307, 308, 309, 310, 311, 312, 313, 314, 315, 316,
+ 317, 318, 319, 320, 322, 323, 325, 326, 327, 328,
+ 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, 341, 342, 343, 344, 345, 346, 347, 348,
+ 349, 350, 351, 352, 354, 355, 357, 358, 359, 360,
+ 361, 363, 364, 365, 366, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, 380, 381, 382, 383,
+ 384, 386, 387, 388, 389, 390, 391, 392, 393, 394,
+ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
+ 405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
+ 415, 416, 417, 418, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ 437, 438, 439, 440, 441, 442, 443, 444, 445, 446,
+ 447, 448, 449, 450, 451, 452, 453, 454, 455, 456,
+ 457, 458, 459, 460, 461, 462, 463, 464, 465, 466,
+ 467, 468, 469, 470, 471, 472, 473, 474, 475, 476,
+ 477, 478, 479, 480, 481, 482, 483, 484, 485, 487,
+ 488, 489, 490, 491, 492, 493, 494, 495, 496, 497,
+ 498, 499, 500, 501, 503, 504, 505, 506, 507, 508,
+ 509, 510, 511, 512, 513, 514, 515, 516, 517, 518,
+ 520, 521, 522, 523, 524, 525, 527, 532, 533, 534,
+ 535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
+ 545, 546, 548, 549, 550, 558, 559, 560, 561, 562,
+ 563, 564, 565, 566, 1200, 1202, 1204, 1248, 1253, 1391,
+ 530, 1183, 368, 1167, 286, 573, 1075, 1402, 570, 1389,
+ 1228, 21, 1384, 1385, 1229, 1075, 352, 356, 1354, 1354,
+ 9, 515, 1341, 1342, 1344, 1321, 1321, 191, 262, 621,
+ 573, 140, 188, 612, 107, 188, 307, 610, 726, 1163,
+ 1389, 1391, 1389, 162, 205, 1179, 171, 188, 606, 607,
+ 609, 726, 188, 606, 1402, 1402, 302, 1235, 163, 416,
+ 846, 288, 571, 1016, 104, 114, 121, 147, 261, 266,
+ 288, 303, 358, 361, 450, 571, 573, 1070, 1236, 107,
+ 571, 573, 1019, 1066, 1066, 1083, 1084, 1167, 1066, 234,
+ 332, 1094, 292, 337, 399, 448, 508, 98, 1089, 1167,
+ 561, 562, 1090, 1091, 1167, 1169, 1103, 1104, 1088, 1087,
+ 1085, 1086, 237, 1106, 351, 1108, 1085, 1103, 1124, 1031,
+ 1235, 1124, 107, 1369, 445, 1205, 1314, 563, 573, 574,
+ 1372, 1291, 1294, 1291, 282, 183, 258, 321, 1166, 321,
+ 1166, 1166, 324, 1242, 321, 324, 436, 1388, 1388, 573,
+ 1283, 187, 1321, 509, 1269, 1271, 1237, 456, 1242, 1343,
+ 1385, 573, 560, 1237, 13, 1242, 1388, 1242, 1388, 573,
+ 1301, 1237, 570, 570, 1373, 137, 486, 486, 432, 266,
+ 277, 362, 365, 447, 518, 563, 898, 899, 900, 902,
+ 904, 906, 1144, 1370, 486, 521, 486, 432, 1238, 572,
+ 486, 486, 432, 304, 486, 148, 486, 477, 602, 372,
+ 987, 989, 560, 991, 237, 248, 266, 421, 873, 874,
+ 141, 160, 219, 239, 389, 503, 683, 684, 160, 188,
+ 341, 486, 160, 486, 188, 341, 432, 160, 201, 211,
+ 372, 411, 807, 432, 742, 97, 135, 206, 244, 358,
+ 393, 426, 489, 496, 837, 838, 1237, 223, 411, 445,
+ 625, 356, 726, 437, 299, 486, 1369, 486, 346, 726,
+ 192, 287, 432, 443, 488, 604, 842, 417, 445, 911,
+ 924, 196, 571, 893, 898, 486, 509, 477, 1235, 149,
+ 219, 260, 670, 683, 1369, 149, 160, 947, 377, 356,
+ 428, 430, 491, 160, 947, 101, 414, 428, 430, 491,
+ 428, 1235, 238, 272, 351, 842, 570, 486, 486, 259,
+ 570, 634, 92, 313, 477, 506, 531, 634, 160, 573,
+ 196, 372, 266, 223, 411, 445, 625, 950, 510, 510,
+ 338, 1144, 486, 432, 570, 929, 1237, 1235, 486, 486,
+ 432, 924, 196, 175, 474, 475, 959, 960, 1122, 1235,
+ 1369, 960, 486, 486, 810, 960, 182, 445, 616, 486,
+ 586, 616, 486, 486, 432, 924, 196, 1235, 486, 486,
+ 1235, 1146, 726, 128, 725, 726, 726, 180, 318, 322,
+ 128, 486, 584, 326, 432, 584, 337, 724, 486, 486,
+ 346, 1389, 752, 842, 486, 486, 432, 461, 396, 1389,
+ 396, 486, 396, 486, 396, 810, 810, 477, 1121, 377,
+ 377, 160, 486, 947, 432, 486, 486, 634, 634, 842,
+ 842, 842, 842, 1235, 116, 515, 116, 116, 486, 116,
+ 486, 515, 432, 570, 573, 616, 509, 768, 1245, 486,
+ 586, 616, 1235, 486, 947, 432, 372, 411, 399, 412,
+ 441, 608, 979, 1206, 1206, 1207, 571, 85, 86, 573,
+ 1081, 1082, 569, 575, 1235, 1012, 1237, 1235, 288, 1144,
+ 288, 356, 288, 288, 726, 842, 842, 288, 288, 288,
+ 1144, 288, 288, 288, 356, 486, 242, 486, 648, 496,
+ 570, 107, 223, 842, 811, 812, 1371, 987, 1144, 356,
+ 223, 739, 1237, 341, 377, 570, 585, 824, 510, 403,
+ 522, 1235, 98, 960, 810, 585, 223, 1245, 167, 248,
+ 600, 662, 719, 782, 856, 876, 983, 223, 1389, 760,
+ 761, 223, 356, 1389, 1245, 310, 842, 842, 842, 842,
+ 215, 398, 570, 768, 341, 585, 1235, 341, 721, 723,
+ 341, 107, 351, 377, 570, 686, 686, 260, 716, 1235,
+ 237, 260, 879, 1237, 570, 814, 905, 1237, 570, 896,
+ 896, 107, 1144, 96, 119, 281, 783, 294, 572, 1242,
+ 1267, 529, 531, 1062, 434, 908, 907, 1144, 1237, 570,
+ 570, 1205, 1242, 844, 1161, 1161, 106, 1145, 484, 484,
+ 1242, 1242, 1144, 568, 568, 1242, 486, 486, 1242, 1149,
+ 894, 895, 1246, 1245, 223, 630, 223, 510, 223, 510,
+ 930, 931, 630, 894, 1246, 894, 1237, 1237, 1144, 844,
+ 1246, 768, 223, 841, 842, 1236, 1237, 1237, 842, 571,
+ 577, 1396, 571, 1402, 1403, 1326, 260, 1235, 179, 1024,
+ 1060, 1060, 1405, 1060, 1060, 1405, 1060, 1060, 1237, 13,
+ 573, 1384, 687, 571, 573, 571, 245, 394, 427, 440,
+ 475, 1236, 841, 181, 442, 894, 1236, 350, 861, 862,
+ 1369, 894, 894, 1236, 1234, 1234, 1236, 841, 486, 529,
+ 869, 218, 304, 765, 766, 92, 221, 428, 448, 1043,
+ 1121, 345, 1044, 571, 573, 1027, 486, 1235, 943, 944,
+ 859, 858, 859, 242, 249, 870, 1369, 97, 149, 206,
+ 244, 295, 393, 426, 496, 837, 838, 1205, 569, 1205,
+ 1210, 1211, 525, 1221, 1222, 1167, 1205, 570, 1242, 1242,
+ 183, 258, 321, 324, 436, 547, 1212, 1213, 1389, 1391,
+ 1205, 1205, 1205, 1242, 1242, 1167, 1167, 929, 1167, 1206,
+ 1208, 1215, 428, 561, 562, 570, 1168, 1169, 1202, 1216,
+ 571, 1205, 1167, 1208, 1217, 1167, 126, 242, 298, 487,
+ 1167, 1205, 1218, 203, 341, 1064, 1205, 326, 1169, 1167,
+ 1177, 1178, 1179, 326, 1167, 1179, 571, 573, 1242, 1165,
+ 1144, 1167, 1167, 1167, 1167, 1371, 484, 112, 471, 1230,
+ 842, 1167, 570, 1064, 1219, 203, 205, 229, 333, 334,
+ 335, 336, 340, 341, 346, 493, 504, 1214, 1167, 570,
+ 1167, 486, 121, 261, 266, 303, 450, 1167, 1167, 1167,
+ 1167, 1167, 1167, 1167, 1167, 1167, 1167, 98, 105, 455,
+ 1199, 251, 232, 1184, 428, 570, 1196, 247, 307, 474,
+ 478, 480, 506, 1076, 1235, 1233, 242, 1110, 1206, 1237,
+ 1385, 1226, 1110, 1343, 573, 560, 1235, 488, 570, 1389,
+ 573, 1402, 571, 259, 259, 630, 1301, 1022, 1011, 1015,
+ 1167, 571, 317, 341, 1071, 1022, 1020, 573, 108, 198,
+ 510, 888, 428, 429, 561, 562, 1091, 1093, 1169, 448,
+ 292, 357, 573, 1092, 1242, 1388, 1092, 428, 429, 1093,
+ 1234, 345, 452, 1045, 1104, 1086, 510, 1040, 188, 370,
+ 570, 1032, 1063, 107, 510, 1369, 570, 1047, 1048, 1049,
+ 1369, 571, 574, 1315, 1145, 577, 1294, 577, 571, 726,
+ 571, 33, 1270, 1346, 1347, 1385, 1339, 1344, 1392, 1330,
+ 1145, 1379, 1395, 1379, 1145, 1245, 1237, 1237, 365, 128,
+ 1370, 571, 900, 902, 899, 902, 1370, 362, 571, 573,
+ 843, 1245, 1237, 1237, 1238, 1245, 1237, 1237, 1245, 521,
+ 1237, 1237, 188, 609, 726, 423, 509, 858, 432, 248,
+ 858, 570, 1237, 510, 880, 292, 292, 510, 677, 708,
+ 260, 1237, 346, 1245, 1237, 1237, 1167, 346, 1237, 1237,
+ 101, 414, 486, 486, 1237, 486, 743, 907, 570, 1144,
+ 895, 143, 230, 931, 895, 895, 237, 1144, 842, 1237,
+ 254, 337, 372, 411, 514, 746, 747, 748, 1121, 486,
+ 947, 432, 346, 192, 287, 1245, 1237, 356, 1237, 356,
+ 571, 573, 1244, 1246, 1237, 411, 625, 260, 670, 341,
+ 1144, 1237, 1242, 1369, 1235, 1237, 302, 1237, 98, 509,
+ 1237, 260, 1237, 260, 1369, 430, 491, 430, 491, 302,
+ 1237, 98, 509, 1237, 302, 428, 1235, 94, 208, 445,
+ 753, 754, 755, 756, 1371, 1245, 1237, 188, 243, 342,
+ 510, 633, 636, 637, 1371, 320, 1237, 145, 354, 1237,
+ 628, 356, 486, 477, 1235, 486, 947, 432, 196, 1237,
+ 1237, 573, 571, 573, 1245, 1237, 953, 954, 1371, 356,
+ 411, 486, 776, 1245, 1237, 1237, 356, 1121, 266, 573,
+ 686, 686, 1228, 1245, 1237, 1237, 1244, 159, 213, 272,
+ 379, 501, 509, 512, 587, 1391, 1245, 1237, 1237, 356,
+ 411, 1245, 1237, 411, 445, 625, 723, 726, 842, 1237,
+ 726, 842, 1237, 726, 1245, 1237, 445, 1245, 1237, 1237,
+ 1243, 1236, 1236, 1245, 919, 1237, 1236, 1237, 411, 445,
+ 625, 626, 1235, 1235, 1237, 1237, 1237, 1237, 1245, 1237,
+ 94, 100, 208, 372, 411, 445, 372, 411, 445, 810,
+ 411, 445, 411, 445, 411, 950, 1136, 1369, 260, 820,
+ 1369, 260, 1369, 1245, 1237, 1237, 1389, 1237, 953, 94,
+ 645, 442, 1244, 411, 445, 625, 1237, 1237, 1237, 486,
+ 486, 154, 500, 399, 573, 1081, 1081, 1081, 1167, 1167,
+ 518, 1207, 571, 1167, 1227, 1007, 346, 848, 1389, 107,
+ 848, 206, 842, 848, 848, 288, 510, 510, 848, 848,
+ 848, 294, 848, 848, 848, 842, 395, 649, 649, 270,
+ 474, 781, 1167, 1144, 842, 571, 573, 560, 674, 1371,
+ 1237, 132, 242, 432, 521, 740, 747, 748, 223, 351,
+ 303, 664, 666, 668, 670, 680, 683, 95, 266, 423,
+ 472, 587, 588, 237, 1237, 522, 1235, 107, 777, 475,
+ 919, 598, 1369, 599, 663, 891, 1237, 239, 842, 570,
+ 710, 711, 1170, 1172, 1173, 1369, 396, 1389, 810, 810,
+ 810, 810, 570, 810, 1134, 1135, 1136, 442, 223, 570,
+ 223, 223, 222, 1257, 842, 351, 664, 1369, 510, 703,
+ 529, 635, 341, 107, 686, 1389, 341, 356, 815, 816,
+ 1391, 810, 96, 571, 897, 898, 903, 107, 294, 420,
+ 489, 528, 909, 910, 911, 912, 909, 356, 294, 351,
+ 193, 280, 494, 508, 784, 785, 1237, 1266, 564, 257,
+ 257, 237, 630, 107, 584, 238, 995, 996, 1205, 571,
+ 571, 630, 568, 549, 549, 571, 571, 1242, 569, 570,
+ 1242, 1369, 1389, 1400, 571, 571, 630, 841, 842, 1237,
+ 842, 1237, 630, 630, 630, 630, 294, 630, 442, 237,
+ 630, 630, 356, 630, 341, 1062, 1392, 1380, 571, 688,
+ 266, 266, 266, 266, 266, 533, 1236, 726, 727, 573,
+ 572, 251, 864, 865, 1245, 95, 870, 486, 570, 242,
+ 221, 448, 221, 448, 428, 508, 323, 1144, 1245, 529,
+ 714, 878, 878, 242, 356, 864, 128, 630, 907, 842,
+ 1144, 895, 350, 895, 895, 1144, 842, 1237, 571, 569,
+ 569, 573, 1167, 210, 1222, 1223, 107, 571, 1167, 571,
+ 571, 571, 242, 571, 571, 571, 571, 571, 571, 573,
+ 573, 571, 380, 571, 571, 570, 1168, 1168, 1205, 83,
+ 87, 88, 89, 266, 288, 358, 558, 559, 560, 561,
+ 562, 563, 564, 565, 566, 1202, 1168, 571, 571, 237,
+ 242, 450, 571, 571, 107, 1218, 1205, 1218, 1218, 242,
+ 571, 203, 571, 1371, 378, 1181, 107, 571, 573, 1167,
+ 1371, 573, 1167, 1229, 1167, 571, 549, 1168, 1168, 216,
+ 1205, 242, 203, 205, 229, 340, 346, 493, 504, 1214,
+ 340, 216, 929, 1167, 471, 1230, 1167, 1219, 1167, 486,
+ 570, 1064, 570, 570, 367, 1188, 570, 1205, 478, 480,
+ 478, 480, 1235, 1077, 1077, 1077, 297, 429, 546, 570,
+ 1064, 1111, 1112, 1113, 1121, 1127, 1137, 1172, 1369, 526,
+ 1132, 1081, 1132, 7, 10, 11, 21, 22, 23, 25,
+ 26, 30, 31, 32, 181, 326, 385, 496, 1349, 1350,
+ 1352, 1342, 1343, 980, 1242, 1165, 607, 1145, 1022, 317,
+ 570, 1084, 358, 1200, 1203, 551, 889, 1242, 1388, 1093,
+ 357, 529, 508, 1090, 312, 1111, 526, 1133, 516, 473,
+ 509, 1033, 1034, 1035, 1369, 356, 1036, 1369, 1112, 1049,
+ 1050, 573, 1110, 560, 1229, 575, 1297, 574, 573, 560,
+ 29, 1358, 571, 571, 574, 906, 843, 902, 902, 128,
+ 904, 565, 1246, 1246, 356, 1236, 359, 356, 1167, 684,
+ 1237, 570, 570, 570, 708, 270, 570, 800, 223, 630,
+ 486, 1245, 1237, 612, 1144, 842, 842, 1144, 730, 1237,
+ 254, 514, 486, 486, 730, 746, 752, 411, 445, 625,
+ 1237, 1237, 1237, 278, 346, 226, 898, 371, 445, 486,
+ 341, 223, 155, 672, 673, 800, 445, 94, 208, 415,
+ 416, 445, 629, 638, 639, 752, 948, 437, 223, 630,
+ 223, 630, 1237, 1237, 1237, 1237, 437, 437, 302, 755,
+ 756, 755, 571, 573, 757, 1389, 270, 571, 573, 560,
+ 572, 1237, 226, 1245, 1237, 411, 445, 625, 1237, 1237,
+ 1237, 356, 372, 411, 445, 94, 208, 372, 411, 445,
+ 1144, 338, 1144, 571, 573, 560, 1235, 486, 1246, 510,
+ 773, 226, 686, 432, 959, 526, 693, 693, 686, 304,
+ 379, 346, 1389, 379, 1246, 507, 226, 486, 486, 432,
+ 461, 919, 919, 919, 371, 445, 160, 486, 947, 432,
+ 188, 237, 640, 233, 878, 486, 486, 314, 314, 314,
+ 486, 486, 432, 486, 486, 432, 486, 432, 486, 432,
+ 486, 196, 630, 1144, 341, 1389, 445, 948, 223, 630,
+ 486, 486, 571, 1237, 486, 947, 432, 486, 1245, 1237,
+ 571, 571, 571, 1207, 569, 1144, 842, 288, 848, 1237,
+ 1237, 1237, 288, 462, 463, 650, 1389, 650, 254, 571,
+ 571, 242, 810, 812, 338, 358, 561, 562, 726, 813,
+ 902, 1203, 1252, 1389, 141, 147, 160, 188, 190, 246,
+ 274, 341, 346, 389, 405, 503, 675, 676, 679, 222,
+ 525, 584, 612, 1237, 612, 360, 750, 1235, 1235, 1235,
+ 571, 573, 1246, 251, 423, 1246, 1242, 496, 1235, 686,
+ 1391, 237, 778, 919, 117, 599, 474, 759, 181, 1019,
+ 1167, 242, 573, 1236, 635, 817, 818, 1389, 571, 573,
+ 1237, 237, 687, 1235, 713, 1235, 1276, 1063, 570, 665,
+ 1235, 571, 1237, 529, 531, 704, 634, 107, 223, 1063,
+ 703, 486, 223, 1121, 571, 573, 560, 784, 571, 573,
+ 188, 560, 913, 1389, 612, 474, 901, 902, 237, 918,
+ 120, 418, 914, 915, 912, 915, 193, 280, 438, 508,
+ 970, 1237, 351, 356, 361, 254, 1262, 1063, 1276, 1144,
+ 570, 571, 573, 571, 1242, 1164, 1164, 569, 1400, 570,
+ 561, 562, 563, 564, 565, 569, 630, 510, 630, 510,
+ 630, 1237, 1237, 768, 842, 223, 237, 432, 432, 432,
+ 432, 432, 1236, 573, 862, 1369, 1245, 529, 573, 866,
+ 359, 1123, 442, 221, 221, 181, 337, 1235, 1237, 1246,
+ 863, 870, 1245, 288, 288, 288, 288, 726, 288, 288,
+ 288, 288, 288, 1210, 482, 1167, 214, 1144, 571, 1167,
+ 1214, 1167, 1167, 571, 1205, 573, 1144, 1168, 1168, 1168,
+ 1168, 203, 205, 341, 1168, 1168, 1168, 1168, 1168, 1168,
+ 1168, 1168, 1168, 1168, 1167, 1167, 1167, 1144, 571, 571,
+ 571, 1205, 571, 573, 128, 1169, 1182, 571, 1371, 1178,
+ 386, 467, 1180, 571, 573, 521, 1174, 107, 571, 1389,
+ 1167, 104, 104, 1167, 571, 1167, 242, 340, 1167, 571,
+ 216, 1168, 1168, 216, 216, 1167, 1167, 1082, 526, 570,
+ 1189, 1369, 571, 1205, 573, 1077, 1077, 1077, 1077, 1235,
+ 1235, 1235, 1064, 1127, 1137, 242, 570, 1064, 1112, 1113,
+ 107, 1114, 1115, 1369, 573, 168, 243, 276, 291, 301,
+ 329, 422, 1118, 1115, 107, 1114, 1117, 1369, 1115, 552,
+ 1131, 1228, 1167, 251, 1095, 571, 1095, 573, 560, 571,
+ 1358, 1027, 570, 889, 234, 296, 357, 529, 483, 171,
+ 1167, 419, 1038, 515, 571, 573, 1229, 158, 1038, 356,
+ 571, 573, 1048, 1133, 1167, 1242, 560, 1316, 1347, 1352,
+ 571, 565, 906, 496, 245, 427, 433, 440, 475, 497,
+ 875, 237, 875, 571, 570, 691, 692, 883, 1172, 1369,
+ 687, 687, 800, 1237, 687, 190, 274, 337, 341, 801,
+ 1237, 1237, 107, 510, 510, 294, 843, 1245, 1237, 486,
+ 947, 432, 486, 278, 1237, 128, 477, 1237, 223, 670,
+ 188, 1369, 750, 461, 246, 225, 259, 341, 634, 584,
+ 181, 246, 341, 461, 464, 634, 672, 724, 445, 639,
+ 496, 1237, 1369, 437, 754, 1237, 637, 813, 1371, 1237,
+ 371, 445, 486, 947, 432, 486, 226, 486, 486, 432,
+ 244, 358, 464, 822, 823, 244, 358, 830, 831, 486,
+ 486, 432, 571, 571, 571, 954, 338, 726, 902, 955,
+ 1203, 1252, 1389, 411, 1237, 570, 529, 774, 1237, 693,
+ 175, 1369, 570, 693, 1243, 1389, 1389, 1389, 1237, 1237,
+ 1237, 1237, 1243, 128, 477, 1237, 1237, 1237, 1237, 516,
+ 1237, 1237, 237, 237, 413, 237, 260, 1245, 1237, 1237,
+ 1245, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 356, 147,
+ 631, 223, 96, 119, 496, 1369, 1237, 1389, 752, 1237,
+ 1237, 1237, 1237, 1081, 571, 288, 848, 288, 288, 288,
+ 848, 584, 510, 655, 656, 730, 800, 529, 531, 842,
+ 570, 842, 1237, 1168, 101, 128, 678, 191, 262, 190,
+ 346, 292, 1235, 677, 244, 393, 796, 803, 804, 1369,
+ 739, 570, 377, 570, 665, 681, 273, 698, 668, 1246,
+ 1246, 1144, 570, 635, 98, 193, 280, 438, 508, 779,
+ 486, 775, 1245, 260, 1235, 761, 533, 356, 571, 1111,
+ 711, 919, 571, 573, 1136, 750, 768, 571, 721, 107,
+ 351, 377, 570, 1029, 714, 667, 669, 671, 683, 1369,
+ 377, 699, 700, 665, 698, 634, 354, 356, 705, 1063,
+ 716, 714, 635, 1389, 1237, 880, 816, 1391, 813, 356,
+ 903, 1167, 1167, 573, 570, 909, 496, 573, 113, 1167,
+ 486, 570, 687, 1235, 785, 730, 80, 1273, 571, 995,
+ 996, 569, 571, 1301, 1400, 1400, 1400, 1400, 1400, 1237,
+ 1237, 630, 442, 630, 1236, 1236, 1236, 1236, 1236, 726,
+ 248, 865, 870, 571, 1237, 181, 870, 242, 630, 346,
+ 851, 1389, 851, 851, 851, 288, 851, 851, 851, 851,
+ 851, 1167, 571, 571, 571, 242, 571, 1167, 242, 203,
+ 205, 242, 237, 216, 571, 536, 1176, 1205, 404, 515,
+ 128, 1182, 1169, 527, 527, 571, 1167, 337, 1167, 573,
+ 1175, 1146, 1167, 1167, 1167, 1167, 104, 104, 1167, 1167,
+ 216, 571, 571, 1167, 1190, 1369, 571, 1167, 1235, 1235,
+ 1235, 1235, 1115, 1117, 1115, 570, 541, 1169, 571, 1369,
+ 570, 1112, 291, 366, 1119, 1112, 1119, 291, 1118, 1119,
+ 291, 476, 1125, 570, 1369, 570, 363, 128, 255, 1102,
+ 1389, 1102, 1350, 562, 1343, 1351, 1388, 1389, 1389, 571,
+ 929, 483, 351, 1232, 1063, 370, 1063, 1035, 356, 570,
+ 1037, 1167, 560, 1049, 1038, 1396, 496, 571, 486, 858,
+ 242, 800, 1167, 571, 573, 529, 147, 882, 886, 882,
+ 571, 571, 571, 191, 262, 272, 190, 512, 630, 1144,
+ 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1246, 1237, 670,
+ 674, 1243, 678, 260, 260, 346, 726, 678, 346, 1243,
+ 1369, 1144, 630, 630, 560, 128, 477, 1237, 1237, 1237,
+ 1237, 1237, 1245, 1237, 1237, 1242, 1242, 1144, 573, 1242,
+ 1242, 573, 1245, 1237, 1237, 486, 1167, 141, 1167, 1246,
+ 1237, 486, 486, 242, 266, 529, 1236, 1236, 842, 1236,
+ 223, 226, 842, 1389, 1389, 1144, 630, 630, 486, 571,
+ 288, 848, 848, 848, 848, 570, 651, 652, 584, 195,
+ 244, 277, 244, 1167, 341, 676, 188, 107, 919, 686,
+ 919, 1240, 104, 222, 266, 751, 755, 351, 664, 640,
+ 220, 268, 570, 442, 510, 687, 107, 1246, 773, 599,
+ 341, 570, 239, 1237, 710, 1389, 442, 635, 222, 1258,
+ 842, 351, 664, 714, 571, 573, 529, 674, 128, 703,
+ 640, 699, 153, 477, 706, 529, 984, 107, 706, 242,
+ 356, 570, 1235, 1389, 900, 920, 921, 1370, 915, 1144,
+ 237, 916, 1235, 242, 486, 940, 406, 786, 275, 731,
+ 1274, 1369, 630, 571, 571, 630, 630, 1237, 359, 286,
+ 630, 864, 851, 1167, 571, 1168, 242, 1167, 1167, 1167,
+ 570, 571, 573, 571, 1182, 571, 515, 458, 571, 571,
+ 1167, 1167, 1167, 571, 377, 1191, 571, 1128, 1129, 1172,
+ 570, 1181, 1114, 570, 1236, 1112, 356, 510, 1120, 1112,
+ 291, 1112, 1240, 1135, 570, 1135, 1369, 1078, 1167, 528,
+ 1185, 1185, 1242, 1388, 435, 1072, 571, 1060, 1403, 1033,
+ 160, 881, 883, 204, 525, 1052, 1053, 1167, 864, 356,
+ 864, 571, 267, 689, 692, 358, 929, 842, 842, 887,
+ 405, 689, 689, 571, 486, 445, 1044, 107, 223, 223,
+ 631, 813, 1246, 1237, 486, 570, 895, 929, 931, 823,
+ 570, 570, 831, 1237, 571, 570, 571, 445, 1044, 1237,
+ 1237, 570, 570, 570, 529, 552, 1004, 413, 1004, 1004,
+ 237, 1237, 631, 1237, 848, 657, 658, 1371, 123, 169,
+ 194, 212, 216, 238, 241, 256, 346, 397, 653, 651,
+ 1389, 895, 107, 936, 936, 571, 259, 570, 510, 707,
+ 315, 690, 707, 570, 804, 796, 570, 571, 573, 1235,
+ 571, 442, 98, 152, 155, 161, 189, 246, 259, 271,
+ 461, 464, 682, 682, 1234, 1237, 1237, 571, 1063, 774,
+ 223, 181, 750, 242, 1237, 107, 1276, 1063, 665, 1235,
+ 571, 1401, 669, 360, 1369, 704, 699, 703, 193, 208,
+ 386, 1237, 133, 141, 307, 1063, 842, 1121, 881, 242,
+ 799, 902, 571, 573, 496, 214, 581, 914, 917, 1132,
+ 456, 456, 571, 331, 355, 787, 788, 789, 237, 792,
+ 730, 337, 514, 732, 733, 560, 1275, 1237, 870, 237,
+ 1168, 1177, 1205, 337, 548, 128, 1081, 571, 573, 107,
+ 1130, 188, 1142, 1143, 1168, 150, 1236, 571, 1167, 570,
+ 1112, 1120, 570, 571, 1135, 571, 170, 252, 425, 570,
+ 1096, 1097, 1098, 1099, 1100, 1101, 1167, 1186, 1187, 1369,
+ 127, 197, 180, 1073, 515, 1237, 571, 573, 342, 508,
+ 316, 341, 1053, 866, 875, 630, 882, 570, 919, 570,
+ 634, 888, 1235, 919, 919, 1237, 477, 259, 510, 632,
+ 445, 1044, 1237, 1209, 237, 826, 826, 1209, 1209, 1167,
+ 477, 1205, 1205, 641, 642, 1247, 841, 842, 841, 842,
+ 1236, 630, 571, 573, 563, 570, 609, 659, 726, 1001,
+ 1389, 1001, 341, 346, 397, 1001, 1001, 1132, 936, 111,
+ 264, 337, 685, 570, 722, 1167, 270, 243, 376, 451,
+ 356, 694, 695, 696, 571, 1240, 76, 805, 755, 665,
+ 698, 1237, 571, 750, 230, 825, 635, 984, 1235, 533,
+ 1111, 750, 1063, 1029, 714, 699, 665, 698, 674, 570,
+ 705, 703, 704, 429, 429, 141, 359, 141, 714, 880,
+ 571, 1235, 800, 909, 920, 1144, 574, 204, 529, 529,
+ 788, 428, 474, 790, 209, 793, 525, 795, 514, 730,
+ 1242, 1383, 1391, 80, 750, 630, 1167, 571, 571, 515,
+ 1205, 253, 398, 429, 1192, 1131, 1128, 570, 1168, 571,
+ 573, 107, 1138, 1139, 1369, 571, 1236, 1205, 571, 570,
+ 446, 570, 571, 573, 573, 107, 234, 234, 687, 1063,
+ 1132, 883, 445, 104, 1054, 316, 242, 687, 707, 929,
+ 888, 889, 686, 707, 707, 1237, 722, 1167, 477, 571,
+ 362, 435, 402, 827, 827, 571, 571, 571, 1237, 571,
+ 571, 571, 573, 1242, 1004, 658, 609, 660, 661, 1389,
+ 1389, 346, 687, 563, 687, 1389, 1389, 272, 723, 571,
+ 477, 193, 508, 356, 696, 356, 695, 570, 571, 573,
+ 640, 442, 750, 842, 107, 107, 570, 1237, 984, 714,
+ 703, 640, 699, 570, 701, 702, 1172, 1369, 706, 704,
+ 705, 359, 359, 570, 267, 884, 237, 915, 99, 281,
+ 971, 244, 244, 1001, 428, 460, 794, 570, 222, 1274,
+ 121, 171, 499, 1167, 1193, 1194, 1193, 1193, 571, 1135,
+ 573, 1143, 1371, 571, 573, 237, 1144, 571, 571, 1205,
+ 570, 1205, 1097, 1187, 1189, 128, 128, 445, 1047, 1167,
+ 482, 1054, 864, 571, 693, 571, 889, 690, 800, 800,
+ 1044, 1237, 895, 128, 1044, 486, 641, 842, 571, 573,
+ 687, 571, 465, 1237, 132, 337, 417, 445, 697, 697,
+ 571, 76, 442, 1237, 822, 1063, 750, 1401, 704, 699,
+ 703, 1167, 571, 573, 886, 886, 705, 706, 881, 570,
+ 677, 209, 342, 570, 966, 968, 972, 1030, 1039, 1046,
+ 1063, 1074, 895, 895, 791, 1369, 1167, 796, 1194, 428,
+ 236, 384, 236, 384, 219, 1195, 1195, 1195, 571, 1169,
+ 1139, 363, 188, 341, 346, 1140, 1141, 1391, 107, 1116,
+ 412, 1126, 571, 1096, 571, 687, 687, 1369, 1132, 193,
+ 204, 508, 1055, 1056, 482, 630, 800, 694, 1044, 842,
+ 570, 661, 93, 188, 346, 1237, 750, 984, 705, 703,
+ 704, 571, 702, 842, 887, 887, 706, 571, 883, 885,
+ 635, 428, 967, 968, 969, 1064, 1065, 573, 573, 571,
+ 1240, 104, 171, 251, 337, 483, 1181, 1168, 346, 1141,
+ 1168, 1369, 570, 571, 445, 445, 486, 510, 342, 445,
+ 204, 280, 1057, 800, 1205, 686, 686, 750, 706, 704,
+ 705, 886, 884, 571, 573, 706, 795, 571, 574, 486,
+ 242, 570, 1194, 428, 364, 150, 1167, 1369, 1369, 1240,
+ 1241, 1369, 1047, 342, 188, 370, 516, 570, 1058, 571,
+ 705, 706, 887, 677, 883, 1132, 222, 969, 456, 456,
+ 797, 798, 1242, 1371, 1388, 1389, 1138, 571, 570, 188,
+ 516, 1033, 570, 1034, 706, 635, 796, 529, 529, 571,
+ 573, 571, 1206, 1241, 515, 1205, 571, 706, 1240, 244,
+ 244, 798, 1081, 510, 1058, 571, 370, 1058, 1132, 570,
+ 895, 895, 571, 1369, 1033, 797, 515, 571, 1058
+};
+
+ /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_int16 yyr1[] =
+{
+ 0, 578, 579, 580, 580, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
+ 582, 583, 584, 584, 584, 585, 585, 586, 586, 587,
+ 587, 587, 587, 587, 587, 587, 587, 587, 588, 588,
+ 588, 588, 588, 588, 589, 590, 590, 591, 591, 592,
+ 592, 592, 592, 593, 593, 593, 593, 593, 593, 594,
+ 595, 596, 596, 597, 597, 597, 597, 598, 598, 599,
+ 599, 600, 600, 600, 600, 600, 600, 601, 601, 601,
+ 602, 602, 602, 603, 603, 603, 603, 604, 604, 604,
+ 604, 604, 604, 604, 604, 604, 604, 604, 605, 605,
+ 606, 606, 607, 607, 608, 608, 608, 608, 609, 609,
+ 609, 609, 610, 610, 610, 610, 610, 610, 610, 611,
+ 611, 611, 612, 612, 613, 614, 614, 614, 614, 615,
+ 615, 616, 616, 617, 617, 618, 618, 618, 618, 618,
+ 619, 620, 620, 621, 621, 622, 623, 623, 623, 623,
+ 623, 624, 624, 624, 624, 624, 624, 624, 624, 624,
+ 624, 624, 624, 624, 624, 624, 624, 624, 624, 624,
+ 624, 624, 625, 625, 626, 626, 626, 627, 628, 628,
+ 628, 628, 628, 628, 628, 628, 628, 628, 628, 628,
+ 628, 628, 628, 628, 628, 628, 628, 628, 628, 628,
+ 628, 628, 628, 628, 628, 628, 628, 628, 628, 628,
+ 628, 628, 628, 628, 628, 628, 628, 628, 628, 628,
+ 628, 628, 628, 628, 628, 628, 628, 628, 628, 628,
+ 628, 628, 628, 628, 628, 628, 628, 628, 629, 629,
+ 630, 630, 630, 631, 631, 632, 632, 633, 633, 633,
+ 633, 634, 635, 635, 636, 636, 637, 637, 637, 637,
+ 638, 638, 639, 639, 639, 639, 640, 640, 640, 640,
+ 641, 642, 642, 643, 644, 644, 645, 645, 645, 645,
+ 646, 646, 647, 647, 648, 648, 649, 649, 650, 650,
+ 650, 651, 651, 652, 652, 653, 653, 653, 653, 653,
+ 653, 653, 653, 653, 653, 653, 653, 653, 654, 654,
+ 655, 655, 656, 656, 657, 657, 658, 659, 659, 659,
+ 659, 659, 660, 660, 661, 662, 662, 662, 662, 662,
+ 662, 663, 663, 663, 663, 663, 663, 663, 663, 664,
+ 664, 665, 665, 666, 666, 667, 667, 668, 668, 668,
+ 669, 669, 670, 671, 671, 672, 672, 673, 673, 674,
+ 674, 675, 675, 675, 675, 676, 676, 676, 676, 676,
+ 676, 676, 676, 676, 677, 677, 677, 678, 678, 679,
+ 679, 679, 679, 680, 681, 681, 681, 682, 682, 682,
+ 682, 682, 682, 682, 682, 682, 682, 683, 683, 684,
+ 684, 684, 684, 684, 684, 684, 685, 685, 686, 686,
+ 687, 687, 688, 689, 689, 690, 690, 690, 690, 691,
+ 691, 692, 692, 693, 693, 694, 694, 694, 694, 694,
+ 695, 696, 697, 697, 697, 697, 697, 698, 698, 699,
+ 699, 700, 701, 701, 702, 702, 702, 703, 703, 704,
+ 704, 704, 705, 705, 705, 705, 706, 706, 707, 707,
+ 708, 709, 709, 710, 710, 711, 711, 711, 712, 712,
+ 713, 714, 714, 714, 715, 715, 716, 717, 717, 718,
+ 719, 719, 720, 720, 721, 721, 722, 722, 723, 723,
+ 724, 724, 724, 724, 724, 724, 724, 724, 724, 724,
+ 724, 724, 724, 724, 725, 725, 726, 726, 726, 726,
+ 727, 727, 728, 728, 729, 729, 730, 730, 731, 731,
+ 732, 732, 733, 733, 734, 734, 735, 736, 736, 737,
+ 737, 738, 738, 739, 739, 740, 740, 740, 740, 741,
+ 742, 742, 743, 744, 744, 744, 744, 744, 744, 744,
+ 744, 744, 744, 744, 744, 744, 745, 746, 746, 746,
+ 746, 747, 747, 748, 748, 749, 749, 750, 750, 751,
+ 751, 752, 753, 753, 754, 754, 754, 754, 755, 756,
+ 757, 758, 758, 759, 759, 760, 760, 761, 761, 762,
+ 762, 762, 763, 763, 763, 763, 764, 765, 765, 766,
+ 766, 767, 767, 768, 768, 769, 769, 770, 771, 772,
+ 773, 773, 774, 774, 775, 775, 776, 776, 777, 777,
+ 778, 778, 779, 779, 779, 779, 779, 780, 781, 781,
+ 782, 782, 783, 783, 783, 784, 784, 785, 785, 785,
+ 785, 785, 786, 786, 787, 787, 788, 789, 789, 790,
+ 790, 791, 792, 792, 793, 793, 794, 794, 795, 795,
+ 796, 796, 797, 797, 797, 798, 798, 798, 798, 799,
+ 799, 800, 800, 801, 801, 801, 801, 801, 801, 802,
+ 802, 803, 803, 804, 805, 805, 806, 807, 807, 807,
+ 807, 808, 809, 809, 809, 809, 809, 809, 809, 809,
+ 809, 809, 809, 809, 809, 809, 809, 809, 810, 811,
+ 811, 812, 812, 813, 813, 813, 813, 813, 813, 814,
+ 815, 815, 816, 817, 817, 818, 818, 819, 819, 819,
+ 819, 820, 820, 821, 822, 822, 823, 823, 823, 823,
+ 823, 824, 824, 825, 825, 826, 826, 826, 827, 827,
+ 828, 829, 829, 830, 830, 831, 831, 832, 832, 833,
+ 833, 834, 835, 836, 836, 836, 836, 836, 836, 836,
+ 836, 836, 836, 836, 836, 837, 837, 837, 837, 837,
+ 837, 837, 837, 837, 837, 837, 837, 837, 838, 838,
+ 838, 838, 838, 839, 839, 839, 839, 839, 839, 839,
+ 839, 840, 840, 840, 841, 841, 842, 842, 843, 843,
+ 844, 844, 845, 846, 846, 846, 847, 847, 847, 847,
+ 847, 847, 847, 847, 847, 847, 847, 847, 847, 847,
+ 847, 847, 847, 847, 848, 848, 849, 849, 849, 849,
+ 849, 849, 849, 849, 849, 849, 850, 850, 851, 851,
+ 852, 852, 852, 852, 852, 852, 852, 852, 852, 852,
+ 852, 853, 853, 853, 853, 853, 853, 853, 853, 853,
+ 853, 853, 853, 853, 853, 854, 854, 855, 855, 856,
+ 857, 857, 858, 858, 858, 858, 858, 859, 859, 860,
+ 860, 860, 860, 860, 861, 861, 862, 862, 863, 863,
+ 863, 863, 863, 863, 863, 863, 863, 863, 863, 863,
+ 863, 863, 863, 863, 863, 863, 863, 863, 863, 864,
+ 864, 865, 865, 866, 866, 867, 868, 868, 869, 869,
+ 870, 870, 871, 872, 872, 873, 873, 873, 874, 874,
+ 874, 875, 875, 875, 875, 875, 875, 876, 876, 877,
+ 877, 878, 878, 879, 879, 880, 880, 881, 881, 882,
+ 882, 883, 883, 883, 884, 884, 885, 885, 886, 886,
+ 887, 887, 888, 888, 888, 889, 889, 889, 890, 890,
+ 890, 890, 891, 891, 892, 892, 893, 893, 894, 894,
+ 895, 895, 895, 895, 896, 896, 897, 897, 898, 898,
+ 898, 898, 898, 899, 899, 899, 899, 899, 900, 901,
+ 902, 902, 902, 903, 903, 903, 904, 905, 905, 905,
+ 905, 906, 906, 907, 908, 908, 909, 909, 910, 910,
+ 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
+ 911, 911, 911, 911, 911, 911, 911, 912, 912, 912,
+ 912, 912, 913, 913, 914, 915, 915, 915, 916, 916,
+ 917, 917, 918, 918, 919, 919, 920, 921, 921, 922,
+ 922, 922, 923, 923, 924, 924, 925, 925, 925, 925,
+ 925, 925, 926, 926, 927, 927, 928, 928, 928, 928,
+ 929, 929, 930, 930, 931, 932, 933, 933, 934, 934,
+ 935, 935, 935, 936, 936, 936, 937, 938, 938, 939,
+ 940, 940, 940, 940, 941, 942, 942, 942, 942, 943,
+ 943, 944, 944, 944, 945, 945, 946, 946, 946, 946,
+ 946, 946, 946, 946, 946, 946, 946, 946, 946, 946,
+ 946, 946, 946, 946, 946, 946, 946, 946, 946, 946,
+ 946, 946, 946, 946, 946, 946, 946, 946, 946, 946,
+ 946, 946, 946, 946, 946, 946, 946, 946, 946, 946,
+ 946, 946, 946, 946, 946, 946, 946, 946, 946, 946,
+ 946, 947, 947, 948, 948, 949, 949, 949, 949, 949,
+ 949, 950, 950, 951, 951, 951, 951, 951, 951, 951,
+ 951, 951, 951, 951, 951, 951, 951, 951, 951, 951,
+ 951, 951, 951, 951, 951, 951, 951, 951, 951, 951,
+ 952, 953, 953, 954, 954, 955, 955, 955, 955, 955,
+ 956, 957, 957, 957, 957, 957, 957, 957, 957, 957,
+ 957, 957, 957, 957, 957, 957, 957, 957, 957, 957,
+ 957, 957, 957, 957, 957, 958, 958, 958, 959, 959,
+ 959, 959, 959, 959, 959, 960, 960, 961, 961, 961,
+ 961, 962, 963, 963, 963, 963, 963, 963, 963, 963,
+ 963, 964, 964, 965, 966, 966, 966, 967, 967, 968,
+ 968, 968, 968, 968, 969, 969, 970, 970, 970, 970,
+ 971, 971, 971, 972, 973, 973, 974, 975, 975, 976,
+ 976, 976, 976, 976, 976, 976, 976, 976, 976, 976,
+ 976, 977, 977, 978, 978, 978, 979, 979, 979, 979,
+ 979, 980, 980, 980, 981, 981, 982, 982, 982, 983,
+ 983, 983, 983, 984, 984, 984, 984, 985, 986, 987,
+ 987, 988, 988, 989, 989, 989, 990, 990, 990, 990,
+ 990, 990, 990, 991, 991, 992, 992, 992, 992, 993,
+ 994, 994, 994, 994, 995, 995, 996, 997, 998, 998,
+ 999, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1001, 1001,
+ 1002, 1003, 1003, 1003, 1003, 1003, 1003, 1004, 1004, 1005,
+ 1006, 1006, 1006, 1006, 1007, 1007, 1008, 1008, 1009, 1009,
+ 1010, 1010, 1011, 1011, 1012, 1013, 1013, 1014, 1014, 1014,
+ 1015, 1015, 1016, 1016, 1017, 1017, 1018, 1018, 1019, 1019,
+ 1020, 1021, 1021, 1022, 1022, 1023, 1023, 1023, 1023, 1024,
+ 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1025,
+ 1025, 1026, 1026, 1027, 1027, 1027, 1027, 1027, 1028, 1028,
+ 1028, 1029, 1029, 1030, 1031, 1031, 1032, 1032, 1032, 1032,
+ 1032, 1033, 1033, 1034, 1034, 1035, 1036, 1036, 1036, 1037,
+ 1037, 1037, 1038, 1038, 1039, 1040, 1040, 1041, 1042, 1042,
+ 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1044, 1044,
+ 1045, 1045, 1045, 1046, 1047, 1047, 1048, 1048, 1049, 1050,
+ 1050, 1051, 1052, 1052, 1053, 1053, 1053, 1053, 1053, 1054,
+ 1054, 1055, 1056, 1057, 1057, 1057, 1057, 1057, 1058, 1059,
+ 1060, 1060, 1061, 1061, 1061, 1061, 1061, 1061, 1062, 1062,
+ 1062, 1063, 1063, 1064, 1064, 1065, 1065, 1065, 1065, 1065,
+ 1065, 1065, 1065, 1066, 1066, 1067, 1067, 1067, 1067, 1067,
+ 1067, 1067, 1068, 1068, 1068, 1069, 1069, 1070, 1071, 1071,
+ 1071, 1072, 1072, 1072, 1073, 1073, 1073, 1074, 1074, 1075,
+ 1075, 1075, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076,
+ 1076, 1077, 1077, 1078, 1078, 1078, 1079, 1079, 1080, 1080,
+ 1081, 1081, 1082, 1083, 1083, 1084, 1084, 1085, 1085, 1085,
+ 1085, 1086, 1086, 1087, 1087, 1087, 1087, 1087, 1087, 1088,
+ 1088, 1089, 1089, 1090, 1091, 1091, 1091, 1092, 1092, 1093,
+ 1093, 1094, 1094, 1095, 1095, 1096, 1096, 1097, 1097, 1097,
+ 1097, 1097, 1098, 1099, 1100, 1101, 1102, 1102, 1103, 1103,
+ 1104, 1104, 1105, 1105, 1106, 1107, 1107, 1107, 1107, 1108,
+ 1108, 1109, 1109, 1110, 1110, 1111, 1111, 1112, 1112, 1112,
+ 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1113, 1113, 1113,
+ 1113, 1113, 1113, 1114, 1114, 1114, 1114, 1115, 1115, 1116,
+ 1116, 1117, 1117, 1117, 1117, 1117, 1118, 1118, 1118, 1118,
+ 1119, 1119, 1120, 1120, 1121, 1121, 1122, 1122, 1122, 1123,
+ 1123, 1124, 1124, 1124, 1125, 1126, 1126, 1127, 1127, 1128,
+ 1129, 1129, 1130, 1130, 1131, 1131, 1132, 1132, 1133, 1133,
+ 1133, 1134, 1134, 1135, 1135, 1136, 1137, 1137, 1138, 1138,
+ 1139, 1139, 1139, 1140, 1140, 1141, 1141, 1141, 1141, 1142,
+ 1142, 1143, 1143, 1144, 1144, 1144, 1144, 1144, 1144, 1145,
+ 1145, 1145, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1147,
+ 1147, 1147, 1147, 1148, 1148, 1149, 1149, 1150, 1150, 1150,
+ 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1151, 1151,
+ 1152, 1152, 1153, 1153, 1154, 1155, 1156, 1156, 1157, 1157,
+ 1158, 1159, 1160, 1160, 1160, 1160, 1160, 1160, 1161, 1161,
+ 1162, 1162, 1162, 1162, 1163, 1164, 1164, 1164, 1165, 1165,
+ 1165, 1165, 1165, 1165, 1165, 1165, 1165, 1165, 1165, 1165,
+ 1165, 1165, 1166, 1166, 1167, 1167, 1167, 1167, 1167, 1167,
+ 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167,
+ 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167,
+ 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167,
+ 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167,
+ 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167,
+ 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1168,
+ 1168, 1168, 1168, 1168, 1168, 1168, 1168, 1168, 1168, 1168,
+ 1168, 1168, 1168, 1168, 1168, 1168, 1168, 1168, 1168, 1168,
+ 1168, 1169, 1169, 1169, 1169, 1169, 1169, 1169, 1169, 1169,
+ 1169, 1169, 1169, 1169, 1169, 1170, 1170, 1170, 1170, 1170,
+ 1170, 1170, 1171, 1171, 1172, 1172, 1173, 1173, 1173, 1173,
+ 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173,
+ 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173,
+ 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173,
+ 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173,
+ 1173, 1173, 1174, 1174, 1175, 1175, 1175, 1175, 1176, 1177,
+ 1177, 1178, 1178, 1179, 1179, 1180, 1180, 1180, 1181, 1181,
+ 1181, 1181, 1182, 1182, 1183, 1183, 1184, 1184, 1185, 1185,
+ 1186, 1186, 1187, 1188, 1188, 1188, 1189, 1190, 1190, 1191,
+ 1191, 1192, 1192, 1192, 1192, 1193, 1193, 1194, 1194, 1194,
+ 1194, 1194, 1195, 1195, 1195, 1195, 1195, 1196, 1196, 1196,
+ 1197, 1197, 1198, 1199, 1199, 1199, 1200, 1200, 1201, 1201,
+ 1201, 1201, 1201, 1201, 1201, 1201, 1201, 1201, 1201, 1201,
+ 1202, 1202, 1203, 1203, 1204, 1204, 1204, 1204, 1204, 1204,
+ 1205, 1205, 1206, 1206, 1207, 1207, 1207, 1208, 1208, 1209,
+ 1209, 1210, 1210, 1210, 1211, 1211, 1212, 1213, 1213, 1213,
+ 1213, 1213, 1213, 1213, 1213, 1214, 1214, 1214, 1214, 1215,
+ 1215, 1216, 1217, 1217, 1217, 1217, 1217, 1218, 1218, 1218,
+ 1219, 1219, 1220, 1221, 1221, 1222, 1223, 1223, 1224, 1224,
+ 1225, 1225, 1226, 1226, 1226, 1226, 1227, 1227, 1228, 1228,
+ 1229, 1229, 1230, 1230, 1231, 1231, 1232, 1232, 1233, 1233,
+ 1233, 1233, 1234, 1234, 1235, 1235, 1236, 1236, 1237, 1238,
+ 1239, 1240, 1240, 1241, 1241, 1241, 1241, 1241, 1241, 1241,
+ 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1242, 1243,
+ 1243, 1243, 1243, 1244, 1245, 1245, 1245, 1245, 1246, 1246,
+ 1247, 1247, 1247, 1247, 1248, 1248, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249,
+ 1249, 1249, 1249, 1249, 1249, 1249, 1250, 1250, 1250, 1250,
+ 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250,
+ 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250,
+ 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250,
+ 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250,
+ 1250, 1250, 1250, 1250, 1251, 1251, 1251, 1251, 1251, 1251,
+ 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251,
+ 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1252, 1252, 1252,
+ 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252,
+ 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252,
+ 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252,
+ 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252,
+ 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252,
+ 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252,
+ 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252,
+ 1252, 1252, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253,
+ 1253, 1253, 1253, 1254, 1254, 1255, 1255, 1255, 1255, 1255,
+ 1255, 1255, 1255, 1257, 1256, 1258, 1256, 1259, 1260, 1260,
+ 1260, 1260, 1261, 1261, 1261, 1261, 1262, 1262, 1263, 1264,
+ 1265, 1265, 1266, 1266, 1266, 1267, 1267, 1268, 1268, 1269,
+ 1269, 1270, 1270, 1270, 1270, 1271, 1271, 1271, 1272, 1273,
+ 1273, 1274, 1274, 1275, 1275, 1275, 1275, 1276, 1276, 1277,
+ 1278, 1279, 1280, 1281, 1281, 1282, 1283, 1283, 1284, 1284,
+ 1284, 1284, 1284, 1286, 1285, 1287, 1288, 1289, 1289, 1290,
+ 1290, 1290, 1290, 1291, 1291, 1293, 1292, 1295, 1294, 1296,
+ 1294, 1294, 1297, 1297, 1298, 1298, 1298, 1299, 1299, 1299,
+ 1299, 1300, 1300, 1301, 1301, 1301, 1301, 1301, 1301, 1302,
+ 1302, 1302, 1303, 1305, 1304, 1306, 1307, 1306, 1308, 1308,
+ 1309, 1309, 1310, 1310, 1311, 1311, 1311, 1311, 1311, 1311,
+ 1311, 1311, 1311, 1312, 1312, 1312, 1312, 1312, 1312, 1312,
+ 1312, 1312, 1312, 1313, 1313, 1314, 1314, 1315, 1316, 1316,
+ 1317, 1317, 1317, 1318, 1319, 1320, 1320, 1320, 1320, 1321,
+ 1321, 1321, 1322, 1322, 1323, 1323, 1324, 1325, 1325, 1326,
+ 1326, 1327, 1327, 1328, 1328, 1329, 1330, 1330, 1331, 1331,
+ 1331, 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1332,
+ 1333, 1333, 1333, 1333, 1333, 1334, 1334, 1335, 1336, 1337,
+ 1338, 1338, 1339, 1340, 1341, 1341, 1342, 1343, 1343, 1344,
+ 1345, 1346, 1346, 1347, 1348, 1349, 1349, 1350, 1351, 1351,
+ 1351, 1351, 1351, 1352, 1352, 1352, 1352, 1352, 1352, 1352,
+ 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1353, 1353,
+ 1354, 1354, 1355, 1355, 1355, 1357, 1356, 1358, 1358, 1360,
+ 1359, 1361, 1361, 1361, 1362, 1362, 1362, 1362, 1362, 1362,
+ 1362, 1362, 1362, 1362, 1363, 1363, 1364, 1364, 1364, 1364,
+ 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
+ 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1365, 1365,
+ 1365, 1365, 1365, 1365, 1366, 1366, 1366, 1366, 1366, 1366,
+ 1366, 1367, 1368, 1368, 1368, 1368, 1368, 1368, 1368, 1368,
+ 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1370, 1370, 1370,
+ 1370, 1370, 1370, 1371, 1371, 1371, 1371, 1371, 1371, 1371,
+ 1371, 1371, 1371, 1371, 1372, 1372, 1372, 1372, 1372, 1373,
+ 1373, 1373, 1373, 1374, 1374, 1374, 1374, 1374, 1374, 1374,
+ 1375, 1375, 1375, 1376, 1376, 1376, 1376, 1376, 1376, 1377,
+ 1377, 1378, 1379, 1379, 1380, 1380, 1381, 1382, 1383, 1384,
+ 1384, 1384, 1385, 1386, 1387, 1388, 1389, 1390, 1391, 1391,
+ 1392, 1392, 1393, 1393, 1393, 1394, 1394, 1395, 1395, 1396,
+ 1396, 1397, 1397, 1397, 1397, 1397, 1398, 1398, 1398, 1398,
+ 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398,
+ 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398,
+ 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398,
+ 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398,
+ 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398,
+ 1398, 1398, 1399, 1399, 1399, 1399, 1400, 1400, 1400, 1400,
+ 1400, 1400, 1400, 1400, 1400, 1400, 1401, 1401, 1401, 1401,
+ 1402, 1402, 1403, 1403, 1404, 1404, 1405, 1405
+};
+
+ /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
+static const yytype_int8 yyr2[] =
+{
+ 0, 2, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
+ 2, 5, 1, 1, 0, 2, 0, 2, 0, 2,
+ 2, 3, 3, 1, 3, 3, 2, 1, 1, 2,
+ 2, 2, 3, 3, 5, 5, 5, 0, 3, 5,
+ 5, 5, 5, 3, 5, 3, 5, 3, 5, 5,
+ 6, 1, 1, 6, 4, 9, 7, 1, 0, 2,
+ 0, 1, 1, 1, 1, 1, 1, 2, 3, 3,
+ 2, 5, 1, 3, 3, 3, 3, 1, 3, 3,
+ 2, 2, 2, 2, 3, 3, 3, 3, 1, 3,
+ 1, 3, 1, 1, 2, 2, 2, 1, 1, 1,
+ 1, 1, 1, 1, 3, 5, 1, 1, 1, 1,
+ 1, 0, 1, 1, 2, 1, 2, 3, 2, 1,
+ 1, 2, 1, 2, 1, 3, 4, 5, 4, 2,
+ 4, 1, 1, 1, 1, 1, 2, 2, 2, 2,
+ 2, 4, 6, 4, 6, 10, 13, 4, 6, 4,
+ 10, 13, 4, 6, 4, 6, 5, 7, 11, 14,
+ 5, 7, 1, 3, 4, 4, 4, 3, 2, 5,
+ 3, 6, 4, 6, 6, 5, 7, 6, 6, 5,
+ 5, 6, 5, 9, 4, 5, 7, 6, 4, 8,
+ 4, 2, 4, 3, 6, 4, 3, 3, 3, 2,
+ 2, 3, 4, 4, 3, 3, 3, 3, 3, 3,
+ 4, 4, 3, 2, 3, 2, 2, 3, 4, 3,
+ 2, 2, 3, 4, 4, 4, 5, 1, 3, 2,
+ 1, 1, 0, 2, 0, 2, 0, 1, 1, 1,
+ 3, 3, 2, 0, 1, 3, 3, 1, 5, 3,
+ 1, 2, 1, 3, 2, 3, 6, 6, 10, 1,
+ 2, 1, 3, 4, 1, 3, 4, 6, 4, 8,
+ 2, 2, 11, 9, 1, 1, 1, 0, 1, 1,
+ 1, 1, 3, 2, 0, 1, 1, 3, 3, 1,
+ 1, 3, 3, 3, 3, 4, 3, 2, 1, 0,
+ 3, 0, 1, 0, 1, 3, 2, 1, 1, 1,
+ 3, 0, 1, 3, 1, 13, 16, 12, 15, 14,
+ 17, 1, 1, 2, 2, 2, 2, 1, 0, 1,
+ 0, 3, 0, 1, 3, 1, 3, 1, 1, 1,
+ 1, 1, 5, 2, 4, 2, 2, 1, 0, 2,
+ 0, 3, 1, 1, 2, 2, 1, 4, 4, 5,
+ 2, 5, 7, 5, 2, 3, 0, 1, 2, 1,
+ 2, 2, 2, 3, 3, 3, 0, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 3, 1, 5,
+ 9, 3, 9, 4, 10, 11, 2, 0, 3, 0,
+ 1, 3, 1, 4, 0, 2, 2, 2, 0, 1,
+ 3, 3, 6, 4, 0, 1, 1, 2, 2, 0,
+ 3, 3, 2, 1, 1, 3, 3, 4, 0, 1,
+ 0, 6, 1, 3, 3, 3, 5, 2, 0, 2,
+ 2, 0, 3, 4, 4, 0, 2, 0, 4, 0,
+ 3, 8, 11, 1, 3, 1, 1, 3, 6, 8,
+ 6, 2, 3, 0, 8, 11, 5, 1, 0, 6,
+ 5, 8, 4, 6, 1, 0, 3, 0, 1, 2,
+ 2, 2, 1, 2, 3, 2, 2, 2, 2, 3,
+ 3, 3, 1, 3, 1, 0, 1, 2, 2, 1,
+ 1, 3, 6, 10, 1, 0, 1, 2, 2, 0,
+ 2, 2, 1, 0, 1, 0, 7, 2, 0, 3,
+ 5, 5, 8, 2, 0, 2, 2, 2, 1, 5,
+ 2, 0, 2, 6, 6, 6, 10, 6, 6, 6,
+ 9, 9, 6, 6, 9, 6, 7, 2, 2, 2,
+ 2, 1, 2, 1, 0, 7, 6, 4, 0, 1,
+ 3, 4, 1, 3, 1, 2, 2, 2, 2, 1,
+ 1, 10, 13, 2, 0, 2, 2, 1, 0, 5,
+ 4, 4, 11, 14, 12, 15, 11, 2, 1, 4,
+ 0, 8, 11, 1, 1, 7, 9, 8, 10, 8,
+ 4, 0, 5, 0, 2, 0, 2, 0, 2, 0,
+ 2, 0, 1, 1, 1, 1, 1, 8, 1, 1,
+ 17, 21, 1, 1, 2, 1, 3, 1, 1, 1,
+ 3, 1, 2, 0, 1, 2, 4, 1, 1, 1,
+ 1, 1, 3, 0, 1, 0, 1, 1, 4, 0,
+ 1, 1, 1, 3, 0, 1, 1, 1, 1, 2,
+ 0, 0, 2, 2, 1, 2, 2, 2, 2, 11,
+ 13, 1, 3, 5, 1, 3, 5, 1, 2, 2,
+ 1, 8, 6, 5, 4, 4, 3, 7, 8, 6,
+ 6, 6, 6, 6, 4, 7, 5, 8, 3, 1,
+ 3, 3, 1, 1, 1, 1, 1, 1, 1, 3,
+ 1, 3, 3, 1, 0, 1, 3, 7, 9, 9,
+ 8, 3, 0, 13, 1, 3, 5, 5, 3, 6,
+ 2, 1, 0, 2, 0, 2, 4, 0, 1, 0,
+ 6, 8, 8, 1, 3, 5, 5, 7, 9, 7,
+ 9, 5, 6, 6, 4, 6, 4, 6, 8, 4,
+ 6, 4, 6, 5, 7, 1, 1, 1, 2, 1,
+ 2, 1, 1, 1, 3, 3, 3, 3, 1, 1,
+ 1, 1, 1, 2, 2, 1, 3, 2, 1, 1,
+ 1, 1, 1, 1, 1, 3, 1, 2, 2, 3,
+ 1, 3, 5, 2, 2, 0, 6, 6, 6, 6,
+ 6, 6, 6, 6, 8, 9, 8, 6, 6, 9,
+ 9, 9, 7, 10, 1, 1, 8, 8, 8, 8,
+ 8, 8, 8, 9, 8, 8, 2, 0, 1, 1,
+ 2, 2, 3, 4, 5, 4, 5, 3, 4, 3,
+ 4, 1, 2, 3, 3, 3, 3, 4, 4, 3,
+ 3, 4, 4, 4, 4, 1, 1, 1, 0, 8,
+ 8, 11, 1, 1, 2, 4, 5, 1, 3, 2,
+ 2, 2, 2, 2, 1, 3, 1, 3, 1, 2,
+ 2, 4, 3, 2, 2, 2, 2, 2, 2, 3,
+ 2, 2, 2, 2, 5, 5, 5, 5, 5, 1,
+ 3, 1, 2, 3, 0, 6, 6, 9, 3, 0,
+ 3, 0, 5, 2, 0, 3, 3, 3, 7, 7,
+ 10, 1, 1, 1, 1, 1, 1, 16, 19, 1,
+ 0, 1, 0, 1, 0, 2, 0, 1, 3, 4,
+ 5, 2, 2, 4, 4, 0, 1, 3, 2, 0,
+ 1, 0, 1, 1, 0, 2, 2, 0, 9, 12,
+ 7, 7, 2, 0, 3, 2, 1, 3, 1, 3,
+ 2, 1, 1, 2, 3, 2, 1, 3, 3, 3,
+ 2, 2, 1, 1, 1, 1, 2, 1, 1, 1,
+ 1, 4, 5, 1, 3, 3, 1, 3, 3, 5,
+ 6, 1, 3, 2, 1, 3, 1, 0, 1, 2,
+ 4, 5, 1, 1, 1, 1, 3, 3, 2, 2,
+ 1, 2, 2, 2, 2, 1, 2, 2, 2, 2,
+ 1, 1, 1, 3, 2, 1, 4, 0, 3, 0,
+ 1, 1, 3, 5, 2, 0, 2, 1, 3, 5,
+ 5, 5, 1, 2, 1, 0, 4, 6, 4, 6,
+ 4, 6, 4, 6, 4, 6, 3, 5, 5, 5,
+ 1, 3, 1, 3, 2, 2, 1, 2, 1, 2,
+ 11, 10, 10, 2, 2, 0, 9, 2, 0, 10,
+ 11, 11, 5, 5, 8, 4, 4, 7, 7, 1,
+ 1, 1, 1, 1, 5, 5, 6, 6, 6, 6,
+ 6, 8, 8, 6, 6, 7, 9, 9, 8, 10,
+ 6, 6, 6, 6, 6, 6, 6, 8, 6, 8,
+ 6, 8, 7, 9, 6, 8, 7, 9, 8, 10,
+ 8, 10, 9, 11, 8, 10, 9, 11, 8, 8,
+ 7, 6, 6, 6, 6, 8, 8, 8, 8, 6,
+ 9, 1, 0, 2, 0, 8, 8, 8, 10, 9,
+ 8, 1, 0, 6, 6, 6, 6, 6, 6, 6,
+ 9, 9, 6, 6, 6, 8, 6, 8, 8, 8,
+ 8, 6, 8, 6, 8, 7, 9, 7, 9, 6,
+ 7, 1, 3, 3, 3, 1, 1, 1, 1, 1,
+ 7, 6, 6, 6, 6, 6, 6, 7, 7, 6,
+ 9, 9, 6, 6, 6, 6, 6, 6, 8, 8,
+ 8, 6, 7, 6, 6, 4, 7, 6, 4, 4,
+ 4, 3, 4, 3, 1, 1, 3, 5, 5, 5,
+ 5, 8, 5, 5, 6, 7, 7, 7, 4, 4,
+ 5, 4, 6, 13, 1, 1, 3, 3, 1, 1,
+ 1, 1, 1, 1, 1, 0, 1, 1, 1, 1,
+ 1, 1, 0, 3, 2, 0, 2, 2, 2, 3,
+ 3, 3, 3, 2, 3, 2, 5, 4, 3, 3,
+ 3, 3, 3, 1, 1, 0, 3, 2, 2, 1,
+ 2, 1, 3, 2, 1, 0, 2, 3, 0, 9,
+ 11, 12, 14, 3, 4, 4, 0, 2, 5, 1,
+ 0, 1, 2, 3, 3, 3, 1, 2, 1, 1,
+ 1, 1, 1, 1, 0, 5, 4, 6, 6, 4,
+ 3, 5, 7, 9, 1, 3, 1, 5, 4, 4,
+ 6, 4, 6, 6, 5, 7, 9, 6, 1, 0,
+ 6, 11, 11, 11, 13, 9, 11, 1, 1, 10,
+ 4, 6, 2, 5, 2, 0, 6, 5, 3, 5,
+ 1, 3, 1, 1, 2, 1, 1, 1, 1, 0,
+ 1, 0, 1, 0, 1, 0, 1, 0, 3, 0,
+ 2, 1, 3, 1, 0, 2, 4, 3, 5, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 5,
+ 4, 3, 0, 1, 1, 1, 1, 1, 4, 10,
+ 13, 3, 0, 7, 1, 3, 1, 4, 4, 7,
+ 2, 1, 1, 1, 3, 2, 8, 5, 0, 4,
+ 3, 0, 3, 0, 7, 2, 0, 5, 3, 0,
+ 2, 2, 2, 3, 1, 3, 1, 2, 1, 0,
+ 1, 2, 0, 8, 1, 3, 3, 5, 2, 1,
+ 3, 9, 1, 2, 5, 5, 6, 6, 7, 2,
+ 0, 3, 1, 2, 5, 5, 8, 3, 4, 7,
+ 1, 1, 0, 3, 2, 2, 2, 2, 0, 2,
+ 2, 1, 1, 3, 3, 1, 2, 4, 4, 2,
+ 3, 5, 5, 1, 1, 9, 9, 1, 2, 4,
+ 4, 4, 2, 2, 3, 1, 3, 9, 1, 2,
+ 0, 7, 7, 0, 10, 6, 0, 1, 0, 2,
+ 1, 0, 3, 3, 4, 4, 4, 4, 3, 2,
+ 1, 1, 0, 1, 1, 0, 1, 5, 1, 0,
+ 1, 0, 3, 1, 3, 4, 3, 2, 2, 1,
+ 1, 1, 0, 2, 4, 5, 6, 4, 5, 2,
+ 3, 1, 1, 1, 1, 2, 2, 1, 1, 1,
+ 1, 1, 1, 4, 0, 1, 3, 1, 1, 1,
+ 1, 1, 2, 4, 4, 5, 2, 0, 1, 3,
+ 1, 0, 1, 2, 3, 2, 4, 2, 3, 2,
+ 0, 4, 5, 2, 0, 1, 3, 2, 3, 2,
+ 3, 2, 3, 2, 3, 1, 4, 3, 4, 5,
+ 4, 5, 4, 5, 2, 4, 1, 1, 0, 2,
+ 0, 1, 4, 5, 4, 0, 2, 2, 2, 1,
+ 1, 0, 5, 2, 1, 1, 2, 2, 4, 1,
+ 3, 1, 2, 3, 6, 4, 0, 2, 6, 2,
+ 1, 3, 4, 0, 2, 0, 2, 0, 2, 4,
+ 0, 1, 0, 1, 3, 3, 7, 12, 1, 3,
+ 2, 3, 3, 1, 2, 2, 2, 2, 1, 1,
+ 3, 3, 2, 2, 3, 5, 6, 2, 3, 3,
+ 4, 0, 1, 1, 1, 1, 1, 2, 4, 1,
+ 1, 1, 1, 2, 3, 3, 0, 1, 1, 1,
+ 1, 1, 2, 2, 2, 2, 2, 1, 3, 0,
+ 1, 1, 1, 1, 5, 2, 1, 1, 1, 1,
+ 4, 1, 2, 2, 1, 3, 3, 2, 1, 0,
+ 5, 2, 5, 2, 1, 3, 3, 0, 1, 1,
+ 1, 1, 1, 1, 3, 3, 3, 3, 3, 3,
+ 3, 0, 1, 4, 1, 3, 3, 5, 2, 2,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 2, 3, 3, 2, 2, 3, 5,
+ 4, 6, 3, 5, 4, 6, 4, 6, 5, 7,
+ 3, 2, 4, 2, 3, 3, 4, 3, 4, 3,
+ 4, 5, 6, 6, 7, 6, 7, 3, 4, 4,
+ 6, 3, 3, 4, 3, 4, 4, 5, 1, 1,
+ 3, 2, 2, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 2, 5, 6, 3,
+ 4, 1, 1, 2, 4, 1, 1, 1, 2, 2,
+ 2, 2, 1, 1, 4, 3, 5, 6, 8, 6,
+ 6, 4, 4, 1, 1, 1, 5, 1, 1, 4,
+ 1, 4, 1, 4, 1, 4, 1, 1, 1, 1,
+ 1, 1, 6, 4, 4, 6, 4, 4, 4, 4,
+ 4, 6, 5, 5, 5, 4, 6, 4, 4, 4,
+ 4, 5, 7, 7, 9, 5, 4, 6, 5, 7,
+ 7, 7, 2, 3, 3, 3, 4, 0, 4, 1,
+ 3, 3, 1, 1, 1, 2, 2, 0, 2, 3,
+ 3, 4, 2, 2, 5, 0, 5, 0, 2, 0,
+ 1, 3, 3, 2, 2, 0, 6, 1, 0, 3,
+ 0, 3, 3, 3, 0, 1, 4, 2, 2, 2,
+ 2, 2, 3, 2, 2, 3, 0, 4, 3, 5,
+ 4, 3, 5, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 4, 1, 4, 1, 4, 1, 2, 1, 2,
+ 1, 3, 1, 3, 1, 3, 3, 1, 0, 1,
+ 3, 3, 3, 2, 1, 3, 3, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 7,
+ 5, 3, 5, 5, 3, 3, 5, 3, 2, 1,
+ 1, 3, 5, 1, 2, 4, 2, 0, 1, 0,
+ 1, 2, 2, 2, 3, 5, 1, 0, 1, 2,
+ 0, 2, 1, 0, 1, 0, 1, 3, 3, 2,
+ 1, 1, 1, 3, 1, 2, 1, 3, 1, 1,
+ 1, 1, 2, 1, 1, 1, 1, 1, 2, 6,
+ 2, 3, 5, 1, 1, 1, 1, 1, 1, 1,
+ 1, 2, 2, 1, 1, 1, 1, 1, 1, 3,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 0, 2, 4, 3, 2, 1, 1,
+ 1, 1, 1, 0, 8, 0, 11, 2, 5, 3,
+ 2, 2, 3, 7, 1, 1, 1, 0, 2, 2,
+ 1, 0, 1, 3, 1, 2, 0, 2, 0, 2,
+ 0, 1, 3, 4, 3, 1, 1, 1, 1, 2,
+ 0, 2, 4, 0, 2, 2, 2, 1, 1, 3,
+ 7, 3, 1, 1, 1, 1, 2, 0, 1, 3,
+ 3, 3, 3, 0, 4, 5, 5, 0, 1, 1,
+ 1, 2, 2, 1, 2, 0, 7, 0, 5, 0,
+ 4, 2, 2, 0, 2, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 5, 2, 1, 3,
+ 2, 2, 3, 0, 5, 1, 0, 5, 2, 2,
+ 1, 1, 1, 2, 2, 3, 1, 2, 2, 3,
+ 3, 4, 2, 1, 2, 1, 1, 2, 2, 3,
+ 1, 1, 1, 1, 0, 1, 3, 5, 0, 2,
+ 0, 1, 2, 3, 2, 1, 1, 1, 0, 1,
+ 1, 1, 1, 1, 2, 2, 3, 0, 1, 2,
+ 1, 4, 3, 4, 3, 2, 1, 3, 1, 1,
+ 1, 1, 2, 2, 1, 2, 2, 1, 1, 1,
+ 4, 4, 4, 4, 4, 1, 0, 3, 3, 4,
+ 1, 3, 3, 4, 1, 3, 3, 1, 1, 1,
+ 6, 1, 3, 3, 6, 1, 3, 3, 1, 1,
+ 2, 2, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 4, 4,
+ 1, 1, 4, 4, 3, 0, 7, 1, 0, 0,
+ 7, 3, 4, 3, 1, 1, 1, 2, 3, 5,
+ 2, 2, 5, 2, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 3, 1, 0, 1, 2, 1, 2, 1, 1, 1,
+ 2, 2, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 2, 3, 1, 2, 1, 3, 1,
+ 3, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 2, 3, 2, 3, 1, 3, 3, 3,
+ 3, 3, 3, 1, 1, 4, 0, 2, 2, 1,
+ 2, 1, 0, 1, 1, 1, 0, 1
+};
+
+
+enum { YYENOMEM = -2 };
+
+#define yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrorlab
+
+
+#define YYRECOVERING() (!!yyerrstatus)
+
+#define YYBACKUP(Token, Value) \
+ do \
+ if (yychar == YYEMPTY) \
+ { \
+ yychar = (Token); \
+ yylval = (Value); \
+ YYPOPSTACK (yylen); \
+ yystate = *yyssp; \
+ goto yybackup; \
+ } \
+ else \
+ { \
+ yyerror (YY_("syntax error: cannot back up")); \
+ YYERROR; \
+ } \
+ while (0)
+
+/* Backward compatibility with an undocumented macro.
+ Use YYerror or YYUNDEF. */
+#define YYERRCODE YYUNDEF
+
+/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
+ If N is 0, then set CURRENT to the empty location which ends
+ the previous symbol: RHS[0] (always defined). */
+
+#ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do \
+ if (N) \
+ { \
+ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
+ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
+ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
+ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
+ } \
+ else \
+ { \
+ (Current).first_line = (Current).last_line = \
+ YYRHSLOC (Rhs, 0).last_line; \
+ (Current).first_column = (Current).last_column = \
+ YYRHSLOC (Rhs, 0).last_column; \
+ } \
+ while (0)
+#endif
+
+#define YYRHSLOC(Rhs, K) ((Rhs)[K])
+
+
+/* Enable debugging if requested. */
+#if YYDEBUG
+
+# ifndef YYFPRINTF
+# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
+# define YYFPRINTF fprintf
+# endif
+
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (0)
+
+
+/* YY_LOCATION_PRINT -- Print the location on the stream.
+ This macro was not mandated originally: define only if we know
+ we won't break user code: when these are the locations we know. */
+
+# ifndef YY_LOCATION_PRINT
+# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
+
+/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
+
+YY_ATTRIBUTE_UNUSED
+static int
+yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
+{
+ int res = 0;
+ int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
+ if (0 <= yylocp->first_line)
+ {
+ res += YYFPRINTF (yyo, "%d", yylocp->first_line);
+ if (0 <= yylocp->first_column)
+ res += YYFPRINTF (yyo, ".%d", yylocp->first_column);
+ }
+ if (0 <= yylocp->last_line)
+ {
+ if (yylocp->first_line < yylocp->last_line)
+ {
+ res += YYFPRINTF (yyo, "-%d", yylocp->last_line);
+ if (0 <= end_col)
+ res += YYFPRINTF (yyo, ".%d", end_col);
+ }
+ else if (0 <= end_col && yylocp->first_column < end_col)
+ res += YYFPRINTF (yyo, "-%d", end_col);
+ }
+ return res;
+ }
+
+# define YY_LOCATION_PRINT(File, Loc) \
+ yy_location_print_ (File, &(Loc))
+
+# else
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+# endif
+# endif /* !defined YY_LOCATION_PRINT */
+
+
+# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yy_symbol_print (stderr, \
+ Kind, Value, Location); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (0)
+
+
+/*-----------------------------------.
+| Print this symbol's value on YYO. |
+`-----------------------------------*/
+
+static void
+yy_symbol_value_print (FILE *yyo,
+ yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
+{
+ FILE *yyoutput = yyo;
+ YY_USE (yyoutput);
+ YY_USE (yylocationp);
+ if (!yyvaluep)
+ return;
+# ifdef YYPRINT
+ if (yykind < YYNTOKENS)
+ YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
+# endif
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+ YY_USE (yykind);
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
+}
+
+
+/*---------------------------.
+| Print this symbol on YYO. |
+`---------------------------*/
+
+static void
+yy_symbol_print (FILE *yyo,
+ yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
+{
+ YYFPRINTF (yyo, "%s %s (",
+ yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
+
+ YY_LOCATION_PRINT (yyo, *yylocationp);
+ YYFPRINTF (yyo, ": ");
+ yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp);
+ YYFPRINTF (yyo, ")");
+}
+
+/*------------------------------------------------------------------.
+| yy_stack_print -- Print the state stack from its BOTTOM up to its |
+| TOP (included). |
+`------------------------------------------------------------------*/
+
+static void
+yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
+{
+ YYFPRINTF (stderr, "Stack now");
+ for (; yybottom <= yytop; yybottom++)
+ {
+ int yybot = *yybottom;
+ YYFPRINTF (stderr, " %d", yybot);
+ }
+ YYFPRINTF (stderr, "\n");
+}
+
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (0)
+
+
+/*------------------------------------------------.
+| Report that the YYRULE is going to be reduced. |
+`------------------------------------------------*/
+
+static void
+yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp,
+ int yyrule)
+{
+ int yylno = yyrline[yyrule];
+ int yynrhs = yyr2[yyrule];
+ int yyi;
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
+ yyrule - 1, yylno);
+ /* The symbols being reduced. */
+ for (yyi = 0; yyi < yynrhs; yyi++)
+ {
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
+ yy_symbol_print (stderr,
+ YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
+ &yyvsp[(yyi + 1) - (yynrhs)],
+ &(yylsp[(yyi + 1) - (yynrhs)]));
+ YYFPRINTF (stderr, "\n");
+ }
+}
+
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (yyssp, yyvsp, yylsp, Rule); \
+} while (0)
+
+/* Nonzero means print parse trace. It is left uninitialized so that
+ multiple parsers can coexist. */
+int yydebug;
+#else /* !YYDEBUG */
+# define YYDPRINTF(Args) ((void) 0)
+# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
+# define YY_STACK_PRINT(Bottom, Top)
+# define YY_REDUCE_PRINT(Rule)
+#endif /* !YYDEBUG */
+
+
+/* YYINITDEPTH -- initial size of the parser's stacks. */
+#ifndef YYINITDEPTH
+# define YYINITDEPTH 200
+#endif
+
+/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
+ if the built-in stack extension method is used).
+
+ Do not make this value too large; the results are undefined if
+ YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
+ evaluated with infinite-precision integer arithmetic. */
+
+#ifndef YYMAXDEPTH
+# define YYMAXDEPTH 10000
+#endif
+
+
+
+
+
+
+/*-----------------------------------------------.
+| Release the memory associated to this symbol. |
+`-----------------------------------------------*/
+
+static void
+yydestruct (const char *yymsg,
+ yysymbol_kind_t yykind, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
+{
+ YY_USE (yyvaluep);
+ YY_USE (yylocationp);
+ if (!yymsg)
+ yymsg = "Deleting";
+ YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
+
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+ YY_USE (yykind);
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
+}
+
+
+/* Lookahead token kind. */
+int yychar;
+
+/* The semantic value of the lookahead symbol. */
+YYSTYPE yylval;
+/* Location data for the lookahead symbol. */
+YYLTYPE yylloc
+# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
+ = { 1, 1, 1, 1 }
+# endif
+;
+/* Number of syntax errors so far. */
+int yynerrs;
+
+
+
+
+/*----------.
+| yyparse. |
+`----------*/
+
+int
+yyparse (void)
+{
+ yy_state_fast_t yystate = 0;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus = 0;
+
+ /* Refer to the stacks through separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+
+ /* Their size. */
+ YYPTRDIFF_T yystacksize = YYINITDEPTH;
+
+ /* The state stack: array, bottom, top. */
+ yy_state_t yyssa[YYINITDEPTH];
+ yy_state_t *yyss = yyssa;
+ yy_state_t *yyssp = yyss;
+
+ /* The semantic value stack: array, bottom, top. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs = yyvsa;
+ YYSTYPE *yyvsp = yyvs;
+
+ /* The location stack: array, bottom, top. */
+ YYLTYPE yylsa[YYINITDEPTH];
+ YYLTYPE *yyls = yylsa;
+ YYLTYPE *yylsp = yyls;
+
+ int yyn;
+ /* The return value of yyparse. */
+ int yyresult;
+ /* Lookahead symbol kind. */
+ yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
+ /* The variables used to return semantic value and location from the
+ action routines. */
+ YYSTYPE yyval;
+ YYLTYPE yyloc;
+
+ /* The locations where the error started and ended. */
+ YYLTYPE yyerror_range[3];
+
+
+
+#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
+
+ /* The number of symbols on the RHS of the reduced rule.
+ Keep to zero when no symbol should be popped. */
+ int yylen = 0;
+
+ YYDPRINTF ((stderr, "Starting parse\n"));
+
+ yychar = YYEMPTY; /* Cause a token to be read. */
+ yylsp[0] = yylloc;
+ goto yysetstate;
+
+
+/*------------------------------------------------------------.
+| yynewstate -- push a new state, which is found in yystate. |
+`------------------------------------------------------------*/
+yynewstate:
+ /* In all cases, when you get here, the value and location stacks
+ have just been pushed. So pushing a state here evens the stacks. */
+ yyssp++;
+
+
+/*--------------------------------------------------------------------.
+| yysetstate -- set current state (the top of the stack) to yystate. |
+`--------------------------------------------------------------------*/
+yysetstate:
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+ YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
+ YY_IGNORE_USELESS_CAST_BEGIN
+ *yyssp = YY_CAST (yy_state_t, yystate);
+ YY_IGNORE_USELESS_CAST_END
+ YY_STACK_PRINT (yyss, yyssp);
+
+ if (yyss + yystacksize - 1 <= yyssp)
+#if !defined yyoverflow && !defined YYSTACK_RELOCATE
+ goto yyexhaustedlab;
+#else
+ {
+ /* Get the current used size of the three stacks, in elements. */
+ YYPTRDIFF_T yysize = yyssp - yyss + 1;
+
+# if defined yyoverflow
+ {
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ yy_state_t *yyss1 = yyss;
+ YYSTYPE *yyvs1 = yyvs;
+ YYLTYPE *yyls1 = yyls;
+
+ /* Each stack pointer address is followed by the size of the
+ data in use in that stack, in bytes. This used to be a
+ conditional around just the two extra args, but that might
+ be undefined if yyoverflow is a macro. */
+ yyoverflow (YY_("memory exhausted"),
+ &yyss1, yysize * YYSIZEOF (*yyssp),
+ &yyvs1, yysize * YYSIZEOF (*yyvsp),
+ &yyls1, yysize * YYSIZEOF (*yylsp),
+ &yystacksize);
+ yyss = yyss1;
+ yyvs = yyvs1;
+ yyls = yyls1;
+ }
+# else /* defined YYSTACK_RELOCATE */
+ /* Extend the stack our own way. */
+ if (YYMAXDEPTH <= yystacksize)
+ goto yyexhaustedlab;
+ yystacksize *= 2;
+ if (YYMAXDEPTH < yystacksize)
+ yystacksize = YYMAXDEPTH;
+
+ {
+ yy_state_t *yyss1 = yyss;
+ union yyalloc *yyptr =
+ YY_CAST (union yyalloc *,
+ YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
+ if (! yyptr)
+ goto yyexhaustedlab;
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
+ YYSTACK_RELOCATE (yyls_alloc, yyls);
+# undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
+ }
+# endif
+
+ yyssp = yyss + yysize - 1;
+ yyvsp = yyvs + yysize - 1;
+ yylsp = yyls + yysize - 1;
+
+ YY_IGNORE_USELESS_CAST_BEGIN
+ YYDPRINTF ((stderr, "Stack size increased to %ld\n",
+ YY_CAST (long, yystacksize)));
+ YY_IGNORE_USELESS_CAST_END
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ YYABORT;
+ }
+#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
+
+ if (yystate == YYFINAL)
+ YYACCEPT;
+
+ goto yybackup;
+
+
+/*-----------.
+| yybackup. |
+`-----------*/
+yybackup:
+ /* Do appropriate processing given the current state. Read a
+ lookahead token if we need one and don't already have one. */
+
+ /* First try to decide what to do without reference to lookahead token. */
+ yyn = yypact[yystate];
+ if (yypact_value_is_default (yyn))
+ goto yydefault;
+
+ /* Not known => get a lookahead token if don't already have one. */
+
+ /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */
+ if (yychar == YYEMPTY)
+ {
+ YYDPRINTF ((stderr, "Reading a token\n"));
+ yychar = yylex ();
+ }
+
+ if (yychar <= YYEOF)
+ {
+ yychar = YYEOF;
+ yytoken = YYSYMBOL_YYEOF;
+ YYDPRINTF ((stderr, "Now at end of input.\n"));
+ }
+ else if (yychar == YYerror)
+ {
+ /* The scanner already issued an error message, process directly
+ to error recovery. But do not keep the error token as
+ lookahead, it is too special and may lead us to an endless
+ loop in error recovery. */
+ yychar = YYUNDEF;
+ yytoken = YYSYMBOL_YYerror;
+ yyerror_range[1] = yylloc;
+ goto yyerrlab1;
+ }
+ else
+ {
+ yytoken = YYTRANSLATE (yychar);
+ YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
+ }
+
+ /* If the proper action on seeing token YYTOKEN is to reduce or to
+ detect an error, take that action. */
+ yyn += yytoken;
+ if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
+ goto yydefault;
+ yyn = yytable[yyn];
+ if (yyn <= 0)
+ {
+ if (yytable_value_is_error (yyn))
+ goto yyerrlab;
+ yyn = -yyn;
+ goto yyreduce;
+ }
+
+ /* Count tokens shifted since error; after three, turn off error
+ status. */
+ if (yyerrstatus)
+ yyerrstatus--;
+
+ /* Shift the lookahead token. */
+ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
+ yystate = yyn;
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+ *++yyvsp = yylval;
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
+ *++yylsp = yylloc;
+
+ /* Discard the shifted token. */
+ yychar = YYEMPTY;
+ goto yynewstate;
+
+
+/*-----------------------------------------------------------.
+| yydefault -- do the default action for the current state. |
+`-----------------------------------------------------------*/
+yydefault:
+ yyn = yydefact[yystate];
+ if (yyn == 0)
+ goto yyerrlab;
+ goto yyreduce;
+
+
+/*-----------------------------.
+| yyreduce -- do a reduction. |
+`-----------------------------*/
+yyreduce:
+ /* yyn is the number of a rule to reduce with. */
+ yylen = yyr2[yyn];
+
+ /* If YYLEN is nonzero, implement the default value of the action:
+ '$$ = $1'.
+
+ Otherwise, the following line sets YYVAL to garbage.
+ This behavior is undocumented and Bison
+ users should not rely upon it. Assigning to YYVAL
+ unconditionally makes the parser a bit smaller, and it avoids a
+ GCC warning that YYVAL may be used uninitialized. */
+ yyval = yyvsp[1-yylen];
+
+ /* Default location. */
+ YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
+ yyerror_range[1] = yyloc;
+ YY_REDUCE_PRINT (yyn);
+ switch (yyn)
+ {
+ case 3: /* toplevel_stmt: stmt */
+#line 1677 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 37174 "preproc.c"
+ break;
+
+ case 4: /* toplevel_stmt: TransactionStmtLegacy */
+#line 1681 "preproc.y"
+ {
+ fprintf(base_yyout, "{ ECPGtrans(__LINE__, %s, \"%s\");", connection ? connection : "NULL", (yyvsp[0].str));
+ whenever_action(2);
+ free((yyvsp[0].str));
+ }
+#line 37184 "preproc.c"
+ break;
+
+ case 5: /* stmt: AlterEventTrigStmt */
+#line 1691 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37190 "preproc.c"
+ break;
+
+ case 6: /* stmt: AlterCollationStmt */
+#line 1693 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37196 "preproc.c"
+ break;
+
+ case 7: /* stmt: AlterDatabaseStmt */
+#line 1695 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37202 "preproc.c"
+ break;
+
+ case 8: /* stmt: AlterDatabaseSetStmt */
+#line 1697 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37208 "preproc.c"
+ break;
+
+ case 9: /* stmt: AlterDefaultPrivilegesStmt */
+#line 1699 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37214 "preproc.c"
+ break;
+
+ case 10: /* stmt: AlterDomainStmt */
+#line 1701 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37220 "preproc.c"
+ break;
+
+ case 11: /* stmt: AlterEnumStmt */
+#line 1703 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37226 "preproc.c"
+ break;
+
+ case 12: /* stmt: AlterExtensionStmt */
+#line 1705 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37232 "preproc.c"
+ break;
+
+ case 13: /* stmt: AlterExtensionContentsStmt */
+#line 1707 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37238 "preproc.c"
+ break;
+
+ case 14: /* stmt: AlterFdwStmt */
+#line 1709 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37244 "preproc.c"
+ break;
+
+ case 15: /* stmt: AlterForeignServerStmt */
+#line 1711 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37250 "preproc.c"
+ break;
+
+ case 16: /* stmt: AlterFunctionStmt */
+#line 1713 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37256 "preproc.c"
+ break;
+
+ case 17: /* stmt: AlterGroupStmt */
+#line 1715 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37262 "preproc.c"
+ break;
+
+ case 18: /* stmt: AlterObjectDependsStmt */
+#line 1717 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37268 "preproc.c"
+ break;
+
+ case 19: /* stmt: AlterObjectSchemaStmt */
+#line 1719 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37274 "preproc.c"
+ break;
+
+ case 20: /* stmt: AlterOwnerStmt */
+#line 1721 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37280 "preproc.c"
+ break;
+
+ case 21: /* stmt: AlterOperatorStmt */
+#line 1723 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37286 "preproc.c"
+ break;
+
+ case 22: /* stmt: AlterTypeStmt */
+#line 1725 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37292 "preproc.c"
+ break;
+
+ case 23: /* stmt: AlterPolicyStmt */
+#line 1727 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37298 "preproc.c"
+ break;
+
+ case 24: /* stmt: AlterSeqStmt */
+#line 1729 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37304 "preproc.c"
+ break;
+
+ case 25: /* stmt: AlterSystemStmt */
+#line 1731 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37310 "preproc.c"
+ break;
+
+ case 26: /* stmt: AlterTableStmt */
+#line 1733 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37316 "preproc.c"
+ break;
+
+ case 27: /* stmt: AlterTblSpcStmt */
+#line 1735 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37322 "preproc.c"
+ break;
+
+ case 28: /* stmt: AlterCompositeTypeStmt */
+#line 1737 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37328 "preproc.c"
+ break;
+
+ case 29: /* stmt: AlterPublicationStmt */
+#line 1739 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37334 "preproc.c"
+ break;
+
+ case 30: /* stmt: AlterRoleSetStmt */
+#line 1741 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37340 "preproc.c"
+ break;
+
+ case 31: /* stmt: AlterRoleStmt */
+#line 1743 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37346 "preproc.c"
+ break;
+
+ case 32: /* stmt: AlterSubscriptionStmt */
+#line 1745 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37352 "preproc.c"
+ break;
+
+ case 33: /* stmt: AlterStatsStmt */
+#line 1747 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37358 "preproc.c"
+ break;
+
+ case 34: /* stmt: AlterTSConfigurationStmt */
+#line 1749 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37364 "preproc.c"
+ break;
+
+ case 35: /* stmt: AlterTSDictionaryStmt */
+#line 1751 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37370 "preproc.c"
+ break;
+
+ case 36: /* stmt: AlterUserMappingStmt */
+#line 1753 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37376 "preproc.c"
+ break;
+
+ case 37: /* stmt: AnalyzeStmt */
+#line 1755 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37382 "preproc.c"
+ break;
+
+ case 38: /* stmt: CallStmt */
+#line 1757 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37388 "preproc.c"
+ break;
+
+ case 39: /* stmt: CheckPointStmt */
+#line 1759 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37394 "preproc.c"
+ break;
+
+ case 40: /* stmt: ClosePortalStmt */
+#line 1761 "preproc.y"
+ {
+ if (INFORMIX_MODE)
+ {
+ if (pg_strcasecmp((yyvsp[0].str)+strlen("close "), "database") == 0)
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in CLOSE DATABASE statement");
+
+ fprintf(base_yyout, "{ ECPGdisconnect(__LINE__, \"CURRENT\");");
+ whenever_action(2);
+ free((yyvsp[0].str));
+ break;
+ }
+ }
+
+ output_statement((yyvsp[0].str), 0, ECPGst_normal);
+ }
+#line 37416 "preproc.c"
+ break;
+
+ case 41: /* stmt: ClusterStmt */
+#line 1779 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37422 "preproc.c"
+ break;
+
+ case 42: /* stmt: CommentStmt */
+#line 1781 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37428 "preproc.c"
+ break;
+
+ case 43: /* stmt: ConstraintsSetStmt */
+#line 1783 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37434 "preproc.c"
+ break;
+
+ case 44: /* stmt: CopyStmt */
+#line 1785 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37440 "preproc.c"
+ break;
+
+ case 45: /* stmt: CreateAmStmt */
+#line 1787 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37446 "preproc.c"
+ break;
+
+ case 46: /* stmt: CreateAsStmt */
+#line 1789 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37452 "preproc.c"
+ break;
+
+ case 47: /* stmt: CreateAssertionStmt */
+#line 1791 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37458 "preproc.c"
+ break;
+
+ case 48: /* stmt: CreateCastStmt */
+#line 1793 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37464 "preproc.c"
+ break;
+
+ case 49: /* stmt: CreateConversionStmt */
+#line 1795 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37470 "preproc.c"
+ break;
+
+ case 50: /* stmt: CreateDomainStmt */
+#line 1797 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37476 "preproc.c"
+ break;
+
+ case 51: /* stmt: CreateExtensionStmt */
+#line 1799 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37482 "preproc.c"
+ break;
+
+ case 52: /* stmt: CreateFdwStmt */
+#line 1801 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37488 "preproc.c"
+ break;
+
+ case 53: /* stmt: CreateForeignServerStmt */
+#line 1803 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37494 "preproc.c"
+ break;
+
+ case 54: /* stmt: CreateForeignTableStmt */
+#line 1805 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37500 "preproc.c"
+ break;
+
+ case 55: /* stmt: CreateFunctionStmt */
+#line 1807 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37506 "preproc.c"
+ break;
+
+ case 56: /* stmt: CreateGroupStmt */
+#line 1809 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37512 "preproc.c"
+ break;
+
+ case 57: /* stmt: CreateMatViewStmt */
+#line 1811 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37518 "preproc.c"
+ break;
+
+ case 58: /* stmt: CreateOpClassStmt */
+#line 1813 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37524 "preproc.c"
+ break;
+
+ case 59: /* stmt: CreateOpFamilyStmt */
+#line 1815 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37530 "preproc.c"
+ break;
+
+ case 60: /* stmt: CreatePublicationStmt */
+#line 1817 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37536 "preproc.c"
+ break;
+
+ case 61: /* stmt: AlterOpFamilyStmt */
+#line 1819 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37542 "preproc.c"
+ break;
+
+ case 62: /* stmt: CreatePolicyStmt */
+#line 1821 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37548 "preproc.c"
+ break;
+
+ case 63: /* stmt: CreatePLangStmt */
+#line 1823 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37554 "preproc.c"
+ break;
+
+ case 64: /* stmt: CreateSchemaStmt */
+#line 1825 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37560 "preproc.c"
+ break;
+
+ case 65: /* stmt: CreateSeqStmt */
+#line 1827 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37566 "preproc.c"
+ break;
+
+ case 66: /* stmt: CreateStmt */
+#line 1829 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37572 "preproc.c"
+ break;
+
+ case 67: /* stmt: CreateSubscriptionStmt */
+#line 1831 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37578 "preproc.c"
+ break;
+
+ case 68: /* stmt: CreateStatsStmt */
+#line 1833 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37584 "preproc.c"
+ break;
+
+ case 69: /* stmt: CreateTableSpaceStmt */
+#line 1835 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37590 "preproc.c"
+ break;
+
+ case 70: /* stmt: CreateTransformStmt */
+#line 1837 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37596 "preproc.c"
+ break;
+
+ case 71: /* stmt: CreateTrigStmt */
+#line 1839 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37602 "preproc.c"
+ break;
+
+ case 72: /* stmt: CreateEventTrigStmt */
+#line 1841 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37608 "preproc.c"
+ break;
+
+ case 73: /* stmt: CreateRoleStmt */
+#line 1843 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37614 "preproc.c"
+ break;
+
+ case 74: /* stmt: CreateUserStmt */
+#line 1845 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37620 "preproc.c"
+ break;
+
+ case 75: /* stmt: CreateUserMappingStmt */
+#line 1847 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37626 "preproc.c"
+ break;
+
+ case 76: /* stmt: CreatedbStmt */
+#line 1849 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37632 "preproc.c"
+ break;
+
+ case 77: /* stmt: DeallocateStmt */
+#line 1851 "preproc.y"
+ {
+ output_deallocate_prepare_statement((yyvsp[0].str));
+ }
+#line 37640 "preproc.c"
+ break;
+
+ case 78: /* stmt: DeclareCursorStmt */
+#line 1855 "preproc.y"
+ { output_simple_statement((yyvsp[0].str), (strncmp((yyvsp[0].str), "ECPGset_var", strlen("ECPGset_var")) == 0) ? 4 : 0); }
+#line 37646 "preproc.c"
+ break;
+
+ case 79: /* stmt: DefineStmt */
+#line 1857 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37652 "preproc.c"
+ break;
+
+ case 80: /* stmt: DeleteStmt */
+#line 1859 "preproc.y"
+ { output_statement((yyvsp[0].str), 1, ECPGst_prepnormal); }
+#line 37658 "preproc.c"
+ break;
+
+ case 81: /* stmt: DiscardStmt */
+#line 1861 "preproc.y"
+ { output_statement((yyvsp[0].str), 1, ECPGst_normal); }
+#line 37664 "preproc.c"
+ break;
+
+ case 82: /* stmt: DoStmt */
+#line 1863 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37670 "preproc.c"
+ break;
+
+ case 83: /* stmt: DropCastStmt */
+#line 1865 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37676 "preproc.c"
+ break;
+
+ case 84: /* stmt: DropOpClassStmt */
+#line 1867 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37682 "preproc.c"
+ break;
+
+ case 85: /* stmt: DropOpFamilyStmt */
+#line 1869 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37688 "preproc.c"
+ break;
+
+ case 86: /* stmt: DropOwnedStmt */
+#line 1871 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37694 "preproc.c"
+ break;
+
+ case 87: /* stmt: DropStmt */
+#line 1873 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37700 "preproc.c"
+ break;
+
+ case 88: /* stmt: DropSubscriptionStmt */
+#line 1875 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37706 "preproc.c"
+ break;
+
+ case 89: /* stmt: DropTableSpaceStmt */
+#line 1877 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37712 "preproc.c"
+ break;
+
+ case 90: /* stmt: DropTransformStmt */
+#line 1879 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37718 "preproc.c"
+ break;
+
+ case 91: /* stmt: DropRoleStmt */
+#line 1881 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37724 "preproc.c"
+ break;
+
+ case 92: /* stmt: DropUserMappingStmt */
+#line 1883 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37730 "preproc.c"
+ break;
+
+ case 93: /* stmt: DropdbStmt */
+#line 1885 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37736 "preproc.c"
+ break;
+
+ case 94: /* stmt: ExecuteStmt */
+#line 1887 "preproc.y"
+ {
+ check_declared_list((yyvsp[0].exec).name);
+ if ((yyvsp[0].exec).type == NULL || strlen((yyvsp[0].exec).type) == 0)
+ output_statement((yyvsp[0].exec).name, 1, ECPGst_execute);
+ else
+ {
+ if ((yyvsp[0].exec).name[0] != '"')
+ /* case of char_variable */
+ add_variable_to_tail(&argsinsert, find_variable((yyvsp[0].exec).name), &no_indicator);
+ else
+ {
+ /* case of ecpg_ident or CSTRING */
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *str = mm_strdup((yyvsp[0].exec).name + 1);
+
+ /* It must be cut off double quotation because new_variable() double-quotes. */
+ str[strlen(str) - 1] = '\0';
+ sprintf(length, "%zu", strlen(str));
+ add_variable_to_tail(&argsinsert, new_variable(str, ECPGmake_simple_type(ECPGt_const, length, 0), 0), &no_indicator);
+ }
+ output_statement(cat_str(3, mm_strdup("execute"), mm_strdup("$0"), (yyvsp[0].exec).type), 0, ECPGst_exec_with_exprlist);
+ }
+ }
+#line 37764 "preproc.c"
+ break;
+
+ case 95: /* stmt: ExplainStmt */
+#line 1911 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37770 "preproc.c"
+ break;
+
+ case 96: /* stmt: FetchStmt */
+#line 1913 "preproc.y"
+ { output_statement((yyvsp[0].str), 1, ECPGst_normal); }
+#line 37776 "preproc.c"
+ break;
+
+ case 97: /* stmt: GrantStmt */
+#line 1915 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37782 "preproc.c"
+ break;
+
+ case 98: /* stmt: GrantRoleStmt */
+#line 1917 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37788 "preproc.c"
+ break;
+
+ case 99: /* stmt: ImportForeignSchemaStmt */
+#line 1919 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37794 "preproc.c"
+ break;
+
+ case 100: /* stmt: IndexStmt */
+#line 1921 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37800 "preproc.c"
+ break;
+
+ case 101: /* stmt: InsertStmt */
+#line 1923 "preproc.y"
+ { output_statement((yyvsp[0].str), 1, ECPGst_prepnormal); }
+#line 37806 "preproc.c"
+ break;
+
+ case 102: /* stmt: ListenStmt */
+#line 1925 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37812 "preproc.c"
+ break;
+
+ case 103: /* stmt: RefreshMatViewStmt */
+#line 1927 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37818 "preproc.c"
+ break;
+
+ case 104: /* stmt: LoadStmt */
+#line 1929 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37824 "preproc.c"
+ break;
+
+ case 105: /* stmt: LockStmt */
+#line 1931 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37830 "preproc.c"
+ break;
+
+ case 106: /* stmt: MergeStmt */
+#line 1933 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37836 "preproc.c"
+ break;
+
+ case 107: /* stmt: NotifyStmt */
+#line 1935 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37842 "preproc.c"
+ break;
+
+ case 108: /* stmt: PrepareStmt */
+#line 1937 "preproc.y"
+ {
+ check_declared_list((yyvsp[0].prep).name);
+ if ((yyvsp[0].prep).type == NULL)
+ output_prepare_statement((yyvsp[0].prep).name, (yyvsp[0].prep).stmt);
+ else if (strlen((yyvsp[0].prep).type) == 0)
+ {
+ char *stmt = cat_str(3, mm_strdup("\""), (yyvsp[0].prep).stmt, mm_strdup("\""));
+ output_prepare_statement((yyvsp[0].prep).name, stmt);
+ }
+ else
+ {
+ if ((yyvsp[0].prep).name[0] != '"')
+ /* case of char_variable */
+ add_variable_to_tail(&argsinsert, find_variable((yyvsp[0].prep).name), &no_indicator);
+ else
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *str = mm_strdup((yyvsp[0].prep).name + 1);
+
+ /* It must be cut off double quotation because new_variable() double-quotes. */
+ str[strlen(str) - 1] = '\0';
+ sprintf(length, "%zu", strlen(str));
+ add_variable_to_tail(&argsinsert, new_variable(str, ECPGmake_simple_type(ECPGt_const, length, 0), 0), &no_indicator);
+ }
+ output_statement(cat_str(5, mm_strdup("prepare"), mm_strdup("$0"), (yyvsp[0].prep).type, mm_strdup("as"), (yyvsp[0].prep).stmt), 0, ECPGst_prepare);
+ }
+ }
+#line 37874 "preproc.c"
+ break;
+
+ case 109: /* stmt: ReassignOwnedStmt */
+#line 1965 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37880 "preproc.c"
+ break;
+
+ case 110: /* stmt: ReindexStmt */
+#line 1967 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37886 "preproc.c"
+ break;
+
+ case 111: /* stmt: RemoveAggrStmt */
+#line 1969 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37892 "preproc.c"
+ break;
+
+ case 112: /* stmt: RemoveFuncStmt */
+#line 1971 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37898 "preproc.c"
+ break;
+
+ case 113: /* stmt: RemoveOperStmt */
+#line 1973 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37904 "preproc.c"
+ break;
+
+ case 114: /* stmt: RenameStmt */
+#line 1975 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37910 "preproc.c"
+ break;
+
+ case 115: /* stmt: RevokeStmt */
+#line 1977 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37916 "preproc.c"
+ break;
+
+ case 116: /* stmt: RevokeRoleStmt */
+#line 1979 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37922 "preproc.c"
+ break;
+
+ case 117: /* stmt: RuleStmt */
+#line 1981 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37928 "preproc.c"
+ break;
+
+ case 118: /* stmt: SecLabelStmt */
+#line 1983 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37934 "preproc.c"
+ break;
+
+ case 119: /* stmt: SelectStmt */
+#line 1985 "preproc.y"
+ { output_statement((yyvsp[0].str), 1, ECPGst_prepnormal); }
+#line 37940 "preproc.c"
+ break;
+
+ case 120: /* stmt: TransactionStmt */
+#line 1987 "preproc.y"
+ {
+ fprintf(base_yyout, "{ ECPGtrans(__LINE__, %s, \"%s\");", connection ? connection : "NULL", (yyvsp[0].str));
+ whenever_action(2);
+ free((yyvsp[0].str));
+ }
+#line 37950 "preproc.c"
+ break;
+
+ case 121: /* stmt: TruncateStmt */
+#line 1993 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37956 "preproc.c"
+ break;
+
+ case 122: /* stmt: UnlistenStmt */
+#line 1995 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37962 "preproc.c"
+ break;
+
+ case 123: /* stmt: UpdateStmt */
+#line 1997 "preproc.y"
+ { output_statement((yyvsp[0].str), 1, ECPGst_prepnormal); }
+#line 37968 "preproc.c"
+ break;
+
+ case 124: /* stmt: VacuumStmt */
+#line 1999 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37974 "preproc.c"
+ break;
+
+ case 125: /* stmt: VariableResetStmt */
+#line 2001 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37980 "preproc.c"
+ break;
+
+ case 126: /* stmt: VariableSetStmt */
+#line 2003 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37986 "preproc.c"
+ break;
+
+ case 127: /* stmt: VariableShowStmt */
+#line 2005 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37992 "preproc.c"
+ break;
+
+ case 128: /* stmt: ViewStmt */
+#line 2007 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_normal); }
+#line 37998 "preproc.c"
+ break;
+
+ case 129: /* stmt: ECPGAllocateDescr */
+#line 2009 "preproc.y"
+ {
+ fprintf(base_yyout,"ECPGallocate_desc(__LINE__, %s);",(yyvsp[0].str));
+ whenever_action(0);
+ free((yyvsp[0].str));
+ }
+#line 38008 "preproc.c"
+ break;
+
+ case 130: /* stmt: ECPGConnect */
+#line 2015 "preproc.y"
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in CONNECT statement");
+
+ fprintf(base_yyout, "{ ECPGconnect(__LINE__, %d, %s, %d); ", compat, (yyvsp[0].str), autocommit);
+ reset_variables();
+ whenever_action(2);
+ free((yyvsp[0].str));
+ }
+#line 38022 "preproc.c"
+ break;
+
+ case 131: /* stmt: ECPGDeclareStmt */
+#line 2025 "preproc.y"
+ {
+ output_simple_statement((yyvsp[0].str), 0);
+ }
+#line 38030 "preproc.c"
+ break;
+
+ case 132: /* stmt: ECPGCursorStmt */
+#line 2029 "preproc.y"
+ {
+ output_simple_statement((yyvsp[0].str), (strncmp((yyvsp[0].str), "ECPGset_var", strlen("ECPGset_var")) == 0) ? 4 : 0);
+ }
+#line 38038 "preproc.c"
+ break;
+
+ case 133: /* stmt: ECPGDeallocateDescr */
+#line 2033 "preproc.y"
+ {
+ fprintf(base_yyout,"ECPGdeallocate_desc(__LINE__, %s);",(yyvsp[0].str));
+ whenever_action(0);
+ free((yyvsp[0].str));
+ }
+#line 38048 "preproc.c"
+ break;
+
+ case 134: /* stmt: ECPGDeclare */
+#line 2039 "preproc.y"
+ {
+ output_simple_statement((yyvsp[0].str), 0);
+ }
+#line 38056 "preproc.c"
+ break;
+
+ case 135: /* stmt: ECPGDescribe */
+#line 2043 "preproc.y"
+ {
+ check_declared_list((yyvsp[0].describe).stmt_name);
+
+ fprintf(base_yyout, "{ ECPGdescribe(__LINE__, %d, %d, %s, %s,", compat, (yyvsp[0].describe).input, connection ? connection : "NULL", (yyvsp[0].describe).stmt_name);
+ dump_variables(argsresult, 1);
+ fputs("ECPGt_EORT);", base_yyout);
+ fprintf(base_yyout, "}");
+ output_line_number();
+
+ free((yyvsp[0].describe).stmt_name);
+ }
+#line 38072 "preproc.c"
+ break;
+
+ case 136: /* stmt: ECPGDisconnect */
+#line 2055 "preproc.y"
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in DISCONNECT statement");
+
+ fprintf(base_yyout, "{ ECPGdisconnect(__LINE__, %s);",
+ (yyvsp[0].str) ? (yyvsp[0].str) : "\"CURRENT\"");
+ whenever_action(2);
+ free((yyvsp[0].str));
+ }
+#line 38086 "preproc.c"
+ break;
+
+ case 137: /* stmt: ECPGExecuteImmediateStmt */
+#line 2064 "preproc.y"
+ { output_statement((yyvsp[0].str), 0, ECPGst_exec_immediate); }
+#line 38092 "preproc.c"
+ break;
+
+ case 138: /* stmt: ECPGFree */
+#line 2066 "preproc.y"
+ {
+ const char *con = connection ? connection : "NULL";
+
+ if (strcmp((yyvsp[0].str), "all") == 0)
+ fprintf(base_yyout, "{ ECPGdeallocate_all(__LINE__, %d, %s);", compat, con);
+ else if ((yyvsp[0].str)[0] == ':')
+ fprintf(base_yyout, "{ ECPGdeallocate(__LINE__, %d, %s, %s);", compat, con, (yyvsp[0].str)+1);
+ else
+ fprintf(base_yyout, "{ ECPGdeallocate(__LINE__, %d, %s, \"%s\");", compat, con, (yyvsp[0].str));
+
+ whenever_action(2);
+ free((yyvsp[0].str));
+ }
+#line 38110 "preproc.c"
+ break;
+
+ case 139: /* stmt: ECPGGetDescriptor */
+#line 2080 "preproc.y"
+ {
+ lookup_descriptor((yyvsp[0].descriptor).name, connection);
+ output_get_descr((yyvsp[0].descriptor).name, (yyvsp[0].descriptor).str);
+ free((yyvsp[0].descriptor).name);
+ free((yyvsp[0].descriptor).str);
+ }
+#line 38121 "preproc.c"
+ break;
+
+ case 140: /* stmt: ECPGGetDescriptorHeader */
+#line 2087 "preproc.y"
+ {
+ lookup_descriptor((yyvsp[0].str), connection);
+ output_get_descr_header((yyvsp[0].str));
+ free((yyvsp[0].str));
+ }
+#line 38131 "preproc.c"
+ break;
+
+ case 141: /* stmt: ECPGOpen */
+#line 2093 "preproc.y"
+ {
+ struct cursor *ptr;
+
+ if ((ptr = add_additional_variables((yyvsp[0].str), true)) != NULL)
+ {
+ connection = ptr->connection ? mm_strdup(ptr->connection) : NULL;
+ output_statement(mm_strdup(ptr->command), 0, ECPGst_normal);
+ ptr->opened = true;
+ }
+ }
+#line 38146 "preproc.c"
+ break;
+
+ case 142: /* stmt: ECPGSetAutocommit */
+#line 2104 "preproc.y"
+ {
+ fprintf(base_yyout, "{ ECPGsetcommit(__LINE__, \"%s\", %s);", (yyvsp[0].str), connection ? connection : "NULL");
+ whenever_action(2);
+ free((yyvsp[0].str));
+ }
+#line 38156 "preproc.c"
+ break;
+
+ case 143: /* stmt: ECPGSetConnection */
+#line 2110 "preproc.y"
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in SET CONNECTION statement");
+
+ fprintf(base_yyout, "{ ECPGsetconn(__LINE__, %s);", (yyvsp[0].str));
+ whenever_action(2);
+ free((yyvsp[0].str));
+ }
+#line 38169 "preproc.c"
+ break;
+
+ case 144: /* stmt: ECPGSetDescriptor */
+#line 2119 "preproc.y"
+ {
+ lookup_descriptor((yyvsp[0].descriptor).name, connection);
+ output_set_descr((yyvsp[0].descriptor).name, (yyvsp[0].descriptor).str);
+ free((yyvsp[0].descriptor).name);
+ free((yyvsp[0].descriptor).str);
+ }
+#line 38180 "preproc.c"
+ break;
+
+ case 145: /* stmt: ECPGSetDescriptorHeader */
+#line 2126 "preproc.y"
+ {
+ lookup_descriptor((yyvsp[0].str), connection);
+ output_set_descr_header((yyvsp[0].str));
+ free((yyvsp[0].str));
+ }
+#line 38190 "preproc.c"
+ break;
+
+ case 146: /* stmt: ECPGTypedef */
+#line 2132 "preproc.y"
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in TYPE statement");
+
+ fprintf(base_yyout, "%s", (yyvsp[0].str));
+ free((yyvsp[0].str));
+ output_line_number();
+ }
+#line 38203 "preproc.c"
+ break;
+
+ case 147: /* stmt: ECPGVar */
+#line 2141 "preproc.y"
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in VAR statement");
+
+ output_simple_statement((yyvsp[0].str), 0);
+ }
+#line 38214 "preproc.c"
+ break;
+
+ case 148: /* stmt: ECPGWhenever */
+#line 2148 "preproc.y"
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in WHENEVER statement");
+
+ output_simple_statement((yyvsp[0].str), 0);
+ }
+#line 38225 "preproc.c"
+ break;
+
+ case 149: /* stmt: %empty */
+#line 2155 "preproc.y"
+ { (yyval.str) = NULL; }
+#line 38231 "preproc.c"
+ break;
+
+ case 150: /* CallStmt: CALL func_application */
+#line 2161 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("call"),(yyvsp[0].str));
+}
+#line 38239 "preproc.c"
+ break;
+
+ case 151: /* CreateRoleStmt: CREATE ROLE RoleId opt_with OptRoleList */
+#line 2169 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create role"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38247 "preproc.c"
+ break;
+
+ case 152: /* opt_with: WITH */
+#line 2177 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with");
+}
+#line 38255 "preproc.c"
+ break;
+
+ case 153: /* opt_with: WITH_LA */
+#line 2181 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with");
+}
+#line 38263 "preproc.c"
+ break;
+
+ case 154: /* opt_with: %empty */
+#line 2185 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 38270 "preproc.c"
+ break;
+
+ case 155: /* OptRoleList: OptRoleList CreateOptRoleElem */
+#line 2192 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38278 "preproc.c"
+ break;
+
+ case 156: /* OptRoleList: %empty */
+#line 2196 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 38285 "preproc.c"
+ break;
+
+ case 157: /* AlterOptRoleList: AlterOptRoleList AlterOptRoleElem */
+#line 2203 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38293 "preproc.c"
+ break;
+
+ case 158: /* AlterOptRoleList: %empty */
+#line 2207 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 38300 "preproc.c"
+ break;
+
+ case 159: /* AlterOptRoleElem: PASSWORD ecpg_sconst */
+#line 2214 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("password"),(yyvsp[0].str));
+}
+#line 38308 "preproc.c"
+ break;
+
+ case 160: /* AlterOptRoleElem: PASSWORD NULL_P */
+#line 2218 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("password null");
+}
+#line 38316 "preproc.c"
+ break;
+
+ case 161: /* AlterOptRoleElem: ENCRYPTED PASSWORD ecpg_sconst */
+#line 2222 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("encrypted password"),(yyvsp[0].str));
+}
+#line 38324 "preproc.c"
+ break;
+
+ case 162: /* AlterOptRoleElem: UNENCRYPTED PASSWORD ecpg_sconst */
+#line 2226 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(2,mm_strdup("unencrypted password"),(yyvsp[0].str));
+}
+#line 38333 "preproc.c"
+ break;
+
+ case 163: /* AlterOptRoleElem: INHERIT */
+#line 2231 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inherit");
+}
+#line 38341 "preproc.c"
+ break;
+
+ case 164: /* AlterOptRoleElem: CONNECTION LIMIT SignedIconst */
+#line 2235 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("connection limit"),(yyvsp[0].str));
+}
+#line 38349 "preproc.c"
+ break;
+
+ case 165: /* AlterOptRoleElem: VALID UNTIL ecpg_sconst */
+#line 2239 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("valid until"),(yyvsp[0].str));
+}
+#line 38357 "preproc.c"
+ break;
+
+ case 166: /* AlterOptRoleElem: USER role_list */
+#line 2243 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("user"),(yyvsp[0].str));
+}
+#line 38365 "preproc.c"
+ break;
+
+ case 167: /* AlterOptRoleElem: ecpg_ident */
+#line 2247 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38373 "preproc.c"
+ break;
+
+ case 168: /* CreateOptRoleElem: AlterOptRoleElem */
+#line 2255 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38381 "preproc.c"
+ break;
+
+ case 169: /* CreateOptRoleElem: SYSID Iconst */
+#line 2259 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("sysid"),(yyvsp[0].str));
+}
+#line 38389 "preproc.c"
+ break;
+
+ case 170: /* CreateOptRoleElem: ADMIN role_list */
+#line 2263 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("admin"),(yyvsp[0].str));
+}
+#line 38397 "preproc.c"
+ break;
+
+ case 171: /* CreateOptRoleElem: ROLE role_list */
+#line 2267 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("role"),(yyvsp[0].str));
+}
+#line 38405 "preproc.c"
+ break;
+
+ case 172: /* CreateOptRoleElem: IN_P ROLE role_list */
+#line 2271 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("in role"),(yyvsp[0].str));
+}
+#line 38413 "preproc.c"
+ break;
+
+ case 173: /* CreateOptRoleElem: IN_P GROUP_P role_list */
+#line 2275 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("in group"),(yyvsp[0].str));
+}
+#line 38421 "preproc.c"
+ break;
+
+ case 174: /* CreateUserStmt: CREATE USER RoleId opt_with OptRoleList */
+#line 2283 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create user"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38429 "preproc.c"
+ break;
+
+ case 175: /* AlterRoleStmt: ALTER ROLE RoleSpec opt_with AlterOptRoleList */
+#line 2291 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter role"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38437 "preproc.c"
+ break;
+
+ case 176: /* AlterRoleStmt: ALTER USER RoleSpec opt_with AlterOptRoleList */
+#line 2295 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter user"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38445 "preproc.c"
+ break;
+
+ case 177: /* opt_in_database: %empty */
+#line 2303 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 38452 "preproc.c"
+ break;
+
+ case 178: /* opt_in_database: IN_P DATABASE name */
+#line 2306 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("in database"),(yyvsp[0].str));
+}
+#line 38460 "preproc.c"
+ break;
+
+ case 179: /* AlterRoleSetStmt: ALTER ROLE RoleSpec opt_in_database SetResetClause */
+#line 2314 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter role"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38468 "preproc.c"
+ break;
+
+ case 180: /* AlterRoleSetStmt: ALTER ROLE ALL opt_in_database SetResetClause */
+#line 2318 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter role all"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38476 "preproc.c"
+ break;
+
+ case 181: /* AlterRoleSetStmt: ALTER USER RoleSpec opt_in_database SetResetClause */
+#line 2322 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter user"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38484 "preproc.c"
+ break;
+
+ case 182: /* AlterRoleSetStmt: ALTER USER ALL opt_in_database SetResetClause */
+#line 2326 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter user all"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38492 "preproc.c"
+ break;
+
+ case 183: /* DropRoleStmt: DROP ROLE role_list */
+#line 2334 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop role"),(yyvsp[0].str));
+}
+#line 38500 "preproc.c"
+ break;
+
+ case 184: /* DropRoleStmt: DROP ROLE IF_P EXISTS role_list */
+#line 2338 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop role if exists"),(yyvsp[0].str));
+}
+#line 38508 "preproc.c"
+ break;
+
+ case 185: /* DropRoleStmt: DROP USER role_list */
+#line 2342 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop user"),(yyvsp[0].str));
+}
+#line 38516 "preproc.c"
+ break;
+
+ case 186: /* DropRoleStmt: DROP USER IF_P EXISTS role_list */
+#line 2346 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop user if exists"),(yyvsp[0].str));
+}
+#line 38524 "preproc.c"
+ break;
+
+ case 187: /* DropRoleStmt: DROP GROUP_P role_list */
+#line 2350 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop group"),(yyvsp[0].str));
+}
+#line 38532 "preproc.c"
+ break;
+
+ case 188: /* DropRoleStmt: DROP GROUP_P IF_P EXISTS role_list */
+#line 2354 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop group if exists"),(yyvsp[0].str));
+}
+#line 38540 "preproc.c"
+ break;
+
+ case 189: /* CreateGroupStmt: CREATE GROUP_P RoleId opt_with OptRoleList */
+#line 2362 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create group"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38548 "preproc.c"
+ break;
+
+ case 190: /* AlterGroupStmt: ALTER GROUP_P RoleSpec add_drop USER role_list */
+#line 2370 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter group"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("user"),(yyvsp[0].str));
+}
+#line 38556 "preproc.c"
+ break;
+
+ case 191: /* add_drop: ADD_P */
+#line 2378 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("add");
+}
+#line 38564 "preproc.c"
+ break;
+
+ case 192: /* add_drop: DROP */
+#line 2382 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("drop");
+}
+#line 38572 "preproc.c"
+ break;
+
+ case 193: /* CreateSchemaStmt: CREATE SCHEMA OptSchemaName AUTHORIZATION RoleSpec OptSchemaEltList */
+#line 2390 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create schema"),(yyvsp[-3].str),mm_strdup("authorization"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38580 "preproc.c"
+ break;
+
+ case 194: /* CreateSchemaStmt: CREATE SCHEMA ColId OptSchemaEltList */
+#line 2394 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create schema"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38588 "preproc.c"
+ break;
+
+ case 195: /* CreateSchemaStmt: CREATE SCHEMA IF_P NOT EXISTS OptSchemaName AUTHORIZATION RoleSpec OptSchemaEltList */
+#line 2398 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(5,mm_strdup("create schema if not exists"),(yyvsp[-3].str),mm_strdup("authorization"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38597 "preproc.c"
+ break;
+
+ case 196: /* CreateSchemaStmt: CREATE SCHEMA IF_P NOT EXISTS ColId OptSchemaEltList */
+#line 2403 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(3,mm_strdup("create schema if not exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38606 "preproc.c"
+ break;
+
+ case 197: /* OptSchemaName: ColId */
+#line 2412 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38614 "preproc.c"
+ break;
+
+ case 198: /* OptSchemaName: %empty */
+#line 2416 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 38621 "preproc.c"
+ break;
+
+ case 199: /* OptSchemaEltList: OptSchemaEltList schema_stmt */
+#line 2423 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38629 "preproc.c"
+ break;
+
+ case 200: /* OptSchemaEltList: %empty */
+#line 2427 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 38636 "preproc.c"
+ break;
+
+ case 201: /* schema_stmt: CreateStmt */
+#line 2434 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38644 "preproc.c"
+ break;
+
+ case 202: /* schema_stmt: IndexStmt */
+#line 2438 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38652 "preproc.c"
+ break;
+
+ case 203: /* schema_stmt: CreateSeqStmt */
+#line 2442 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38660 "preproc.c"
+ break;
+
+ case 204: /* schema_stmt: CreateTrigStmt */
+#line 2446 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38668 "preproc.c"
+ break;
+
+ case 205: /* schema_stmt: GrantStmt */
+#line 2450 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38676 "preproc.c"
+ break;
+
+ case 206: /* schema_stmt: ViewStmt */
+#line 2454 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38684 "preproc.c"
+ break;
+
+ case 207: /* VariableSetStmt: SET set_rest */
+#line 2462 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set"),(yyvsp[0].str));
+}
+#line 38692 "preproc.c"
+ break;
+
+ case 208: /* VariableSetStmt: SET LOCAL set_rest */
+#line 2466 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set local"),(yyvsp[0].str));
+}
+#line 38700 "preproc.c"
+ break;
+
+ case 209: /* VariableSetStmt: SET SESSION set_rest */
+#line 2470 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set session"),(yyvsp[0].str));
+}
+#line 38708 "preproc.c"
+ break;
+
+ case 210: /* set_rest: TRANSACTION transaction_mode_list */
+#line 2478 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("transaction"),(yyvsp[0].str));
+}
+#line 38716 "preproc.c"
+ break;
+
+ case 211: /* set_rest: SESSION CHARACTERISTICS AS TRANSACTION transaction_mode_list */
+#line 2482 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("session characteristics as transaction"),(yyvsp[0].str));
+}
+#line 38724 "preproc.c"
+ break;
+
+ case 212: /* set_rest: set_rest_more */
+#line 2486 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38732 "preproc.c"
+ break;
+
+ case 213: /* generic_set: var_name TO var_list */
+#line 2494 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 38740 "preproc.c"
+ break;
+
+ case 214: /* generic_set: var_name '=' var_list */
+#line 2498 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 38748 "preproc.c"
+ break;
+
+ case 215: /* generic_set: var_name TO DEFAULT */
+#line 2502 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("to default"));
+}
+#line 38756 "preproc.c"
+ break;
+
+ case 216: /* generic_set: var_name '=' DEFAULT */
+#line 2506 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("= default"));
+}
+#line 38764 "preproc.c"
+ break;
+
+ case 217: /* set_rest_more: generic_set */
+#line 2514 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38772 "preproc.c"
+ break;
+
+ case 218: /* set_rest_more: var_name FROM CURRENT_P */
+#line 2518 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("from current"));
+}
+#line 38780 "preproc.c"
+ break;
+
+ case 219: /* set_rest_more: TIME ZONE zone_value */
+#line 2522 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("time zone"),(yyvsp[0].str));
+}
+#line 38788 "preproc.c"
+ break;
+
+ case 220: /* set_rest_more: CATALOG_P ecpg_sconst */
+#line 2526 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(2,mm_strdup("catalog"),(yyvsp[0].str));
+}
+#line 38797 "preproc.c"
+ break;
+
+ case 221: /* set_rest_more: SCHEMA ecpg_sconst */
+#line 2531 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("schema"),(yyvsp[0].str));
+}
+#line 38805 "preproc.c"
+ break;
+
+ case 222: /* set_rest_more: NAMES opt_encoding */
+#line 2535 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("names"),(yyvsp[0].str));
+}
+#line 38813 "preproc.c"
+ break;
+
+ case 223: /* set_rest_more: ROLE NonReservedWord_or_Sconst */
+#line 2539 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("role"),(yyvsp[0].str));
+}
+#line 38821 "preproc.c"
+ break;
+
+ case 224: /* set_rest_more: SESSION AUTHORIZATION NonReservedWord_or_Sconst */
+#line 2543 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("session authorization"),(yyvsp[0].str));
+}
+#line 38829 "preproc.c"
+ break;
+
+ case 225: /* set_rest_more: SESSION AUTHORIZATION DEFAULT */
+#line 2547 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("session authorization default");
+}
+#line 38837 "preproc.c"
+ break;
+
+ case 226: /* set_rest_more: XML_P OPTION document_or_content */
+#line 2551 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("xml option"),(yyvsp[0].str));
+}
+#line 38845 "preproc.c"
+ break;
+
+ case 227: /* set_rest_more: TRANSACTION SNAPSHOT ecpg_sconst */
+#line 2555 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("transaction snapshot"),(yyvsp[0].str));
+}
+#line 38853 "preproc.c"
+ break;
+
+ case 228: /* var_name: ECPGColId */
+#line 2563 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38861 "preproc.c"
+ break;
+
+ case 229: /* var_name: var_name '.' ColId */
+#line 2567 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("."),(yyvsp[0].str));
+}
+#line 38869 "preproc.c"
+ break;
+
+ case 230: /* var_list: var_value */
+#line 2575 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38877 "preproc.c"
+ break;
+
+ case 231: /* var_list: var_list ',' var_value */
+#line 2579 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 38885 "preproc.c"
+ break;
+
+ case 232: /* var_value: opt_boolean_or_string */
+#line 2587 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38893 "preproc.c"
+ break;
+
+ case 233: /* var_value: NumericOnly */
+#line 2591 "preproc.y"
+ {
+ if ((yyvsp[0].str)[0] == '$')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38907 "preproc.c"
+ break;
+
+ case 234: /* iso_level: READ UNCOMMITTED */
+#line 2605 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("read uncommitted");
+}
+#line 38915 "preproc.c"
+ break;
+
+ case 235: /* iso_level: READ COMMITTED */
+#line 2609 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("read committed");
+}
+#line 38923 "preproc.c"
+ break;
+
+ case 236: /* iso_level: REPEATABLE READ */
+#line 2613 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("repeatable read");
+}
+#line 38931 "preproc.c"
+ break;
+
+ case 237: /* iso_level: SERIALIZABLE */
+#line 2617 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("serializable");
+}
+#line 38939 "preproc.c"
+ break;
+
+ case 238: /* opt_boolean_or_string: TRUE_P */
+#line 2625 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("true");
+}
+#line 38947 "preproc.c"
+ break;
+
+ case 239: /* opt_boolean_or_string: FALSE_P */
+#line 2629 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("false");
+}
+#line 38955 "preproc.c"
+ break;
+
+ case 240: /* opt_boolean_or_string: ON */
+#line 2633 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("on");
+}
+#line 38963 "preproc.c"
+ break;
+
+ case 241: /* opt_boolean_or_string: NonReservedWord_or_Sconst */
+#line 2637 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38971 "preproc.c"
+ break;
+
+ case 242: /* zone_value: ecpg_sconst */
+#line 2645 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38979 "preproc.c"
+ break;
+
+ case 243: /* zone_value: ecpg_ident */
+#line 2649 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 38987 "preproc.c"
+ break;
+
+ case 244: /* zone_value: ConstInterval ecpg_sconst opt_interval */
+#line 2653 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 38995 "preproc.c"
+ break;
+
+ case 245: /* zone_value: ConstInterval '(' Iconst ')' ecpg_sconst */
+#line 2657 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 39003 "preproc.c"
+ break;
+
+ case 246: /* zone_value: NumericOnly */
+#line 2661 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39011 "preproc.c"
+ break;
+
+ case 247: /* zone_value: DEFAULT */
+#line 2665 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("default");
+}
+#line 39019 "preproc.c"
+ break;
+
+ case 248: /* zone_value: LOCAL */
+#line 2669 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("local");
+}
+#line 39027 "preproc.c"
+ break;
+
+ case 249: /* opt_encoding: ecpg_sconst */
+#line 2677 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39035 "preproc.c"
+ break;
+
+ case 250: /* opt_encoding: DEFAULT */
+#line 2681 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("default");
+}
+#line 39043 "preproc.c"
+ break;
+
+ case 251: /* opt_encoding: %empty */
+#line 2685 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 39050 "preproc.c"
+ break;
+
+ case 252: /* NonReservedWord_or_Sconst: NonReservedWord */
+#line 2692 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39058 "preproc.c"
+ break;
+
+ case 253: /* NonReservedWord_or_Sconst: ecpg_sconst */
+#line 2696 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39066 "preproc.c"
+ break;
+
+ case 254: /* VariableResetStmt: RESET reset_rest */
+#line 2704 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("reset"),(yyvsp[0].str));
+}
+#line 39074 "preproc.c"
+ break;
+
+ case 255: /* reset_rest: generic_reset */
+#line 2712 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39082 "preproc.c"
+ break;
+
+ case 256: /* reset_rest: TIME ZONE */
+#line 2716 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("time zone");
+}
+#line 39090 "preproc.c"
+ break;
+
+ case 257: /* reset_rest: TRANSACTION ISOLATION LEVEL */
+#line 2720 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("transaction isolation level");
+}
+#line 39098 "preproc.c"
+ break;
+
+ case 258: /* reset_rest: SESSION AUTHORIZATION */
+#line 2724 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("session authorization");
+}
+#line 39106 "preproc.c"
+ break;
+
+ case 259: /* generic_reset: var_name */
+#line 2732 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39114 "preproc.c"
+ break;
+
+ case 260: /* generic_reset: ALL */
+#line 2736 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 39122 "preproc.c"
+ break;
+
+ case 261: /* SetResetClause: SET set_rest */
+#line 2744 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set"),(yyvsp[0].str));
+}
+#line 39130 "preproc.c"
+ break;
+
+ case 262: /* SetResetClause: VariableResetStmt */
+#line 2748 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39138 "preproc.c"
+ break;
+
+ case 263: /* FunctionSetResetClause: SET set_rest_more */
+#line 2756 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set"),(yyvsp[0].str));
+}
+#line 39146 "preproc.c"
+ break;
+
+ case 264: /* FunctionSetResetClause: VariableResetStmt */
+#line 2760 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39154 "preproc.c"
+ break;
+
+ case 265: /* VariableShowStmt: SHOW var_name ecpg_into */
+#line 2768 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("show"),(yyvsp[-1].str));
+}
+#line 39162 "preproc.c"
+ break;
+
+ case 266: /* VariableShowStmt: SHOW TIME ZONE ecpg_into */
+#line 2772 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("show time zone");
+}
+#line 39170 "preproc.c"
+ break;
+
+ case 267: /* VariableShowStmt: SHOW TRANSACTION ISOLATION LEVEL ecpg_into */
+#line 2776 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("show transaction isolation level");
+}
+#line 39178 "preproc.c"
+ break;
+
+ case 268: /* VariableShowStmt: SHOW SESSION AUTHORIZATION ecpg_into */
+#line 2780 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("show session authorization");
+}
+#line 39186 "preproc.c"
+ break;
+
+ case 269: /* VariableShowStmt: SHOW ALL */
+#line 2784 "preproc.y"
+ {
+ mmerror(PARSE_ERROR, ET_ERROR, "SHOW ALL is not implemented");
+ (yyval.str) = EMPTY;
+ }
+#line 39195 "preproc.c"
+ break;
+
+ case 270: /* ConstraintsSetStmt: SET CONSTRAINTS constraints_set_list constraints_set_mode */
+#line 2793 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("set constraints"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39203 "preproc.c"
+ break;
+
+ case 271: /* constraints_set_list: ALL */
+#line 2801 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 39211 "preproc.c"
+ break;
+
+ case 272: /* constraints_set_list: qualified_name_list */
+#line 2805 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39219 "preproc.c"
+ break;
+
+ case 273: /* constraints_set_mode: DEFERRED */
+#line 2813 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deferred");
+}
+#line 39227 "preproc.c"
+ break;
+
+ case 274: /* constraints_set_mode: IMMEDIATE */
+#line 2817 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("immediate");
+}
+#line 39235 "preproc.c"
+ break;
+
+ case 275: /* CheckPointStmt: CHECKPOINT */
+#line 2825 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("checkpoint");
+}
+#line 39243 "preproc.c"
+ break;
+
+ case 276: /* DiscardStmt: DISCARD ALL */
+#line 2833 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("discard all");
+}
+#line 39251 "preproc.c"
+ break;
+
+ case 277: /* DiscardStmt: DISCARD TEMP */
+#line 2837 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("discard temp");
+}
+#line 39259 "preproc.c"
+ break;
+
+ case 278: /* DiscardStmt: DISCARD TEMPORARY */
+#line 2841 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("discard temporary");
+}
+#line 39267 "preproc.c"
+ break;
+
+ case 279: /* DiscardStmt: DISCARD PLANS */
+#line 2845 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("discard plans");
+}
+#line 39275 "preproc.c"
+ break;
+
+ case 280: /* DiscardStmt: DISCARD SEQUENCES */
+#line 2849 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("discard sequences");
+}
+#line 39283 "preproc.c"
+ break;
+
+ case 281: /* AlterTableStmt: ALTER TABLE relation_expr alter_table_cmds */
+#line 2857 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter table"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39291 "preproc.c"
+ break;
+
+ case 282: /* AlterTableStmt: ALTER TABLE IF_P EXISTS relation_expr alter_table_cmds */
+#line 2861 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter table if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39299 "preproc.c"
+ break;
+
+ case 283: /* AlterTableStmt: ALTER TABLE relation_expr partition_cmd */
+#line 2865 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter table"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39307 "preproc.c"
+ break;
+
+ case 284: /* AlterTableStmt: ALTER TABLE IF_P EXISTS relation_expr partition_cmd */
+#line 2869 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter table if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39315 "preproc.c"
+ break;
+
+ case 285: /* AlterTableStmt: ALTER TABLE ALL IN_P TABLESPACE name SET TABLESPACE name opt_nowait */
+#line 2873 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter table all in tablespace"),(yyvsp[-4].str),mm_strdup("set tablespace"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39323 "preproc.c"
+ break;
+
+ case 286: /* AlterTableStmt: ALTER TABLE ALL IN_P TABLESPACE name OWNED BY role_list SET TABLESPACE name opt_nowait */
+#line 2877 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter table all in tablespace"),(yyvsp[-7].str),mm_strdup("owned by"),(yyvsp[-4].str),mm_strdup("set tablespace"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39331 "preproc.c"
+ break;
+
+ case 287: /* AlterTableStmt: ALTER INDEX qualified_name alter_table_cmds */
+#line 2881 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter index"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39339 "preproc.c"
+ break;
+
+ case 288: /* AlterTableStmt: ALTER INDEX IF_P EXISTS qualified_name alter_table_cmds */
+#line 2885 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter index if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39347 "preproc.c"
+ break;
+
+ case 289: /* AlterTableStmt: ALTER INDEX qualified_name index_partition_cmd */
+#line 2889 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter index"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39355 "preproc.c"
+ break;
+
+ case 290: /* AlterTableStmt: ALTER INDEX ALL IN_P TABLESPACE name SET TABLESPACE name opt_nowait */
+#line 2893 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter index all in tablespace"),(yyvsp[-4].str),mm_strdup("set tablespace"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39363 "preproc.c"
+ break;
+
+ case 291: /* AlterTableStmt: ALTER INDEX ALL IN_P TABLESPACE name OWNED BY role_list SET TABLESPACE name opt_nowait */
+#line 2897 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter index all in tablespace"),(yyvsp[-7].str),mm_strdup("owned by"),(yyvsp[-4].str),mm_strdup("set tablespace"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39371 "preproc.c"
+ break;
+
+ case 292: /* AlterTableStmt: ALTER SEQUENCE qualified_name alter_table_cmds */
+#line 2901 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter sequence"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39379 "preproc.c"
+ break;
+
+ case 293: /* AlterTableStmt: ALTER SEQUENCE IF_P EXISTS qualified_name alter_table_cmds */
+#line 2905 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter sequence if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39387 "preproc.c"
+ break;
+
+ case 294: /* AlterTableStmt: ALTER VIEW qualified_name alter_table_cmds */
+#line 2909 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter view"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39395 "preproc.c"
+ break;
+
+ case 295: /* AlterTableStmt: ALTER VIEW IF_P EXISTS qualified_name alter_table_cmds */
+#line 2913 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter view if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39403 "preproc.c"
+ break;
+
+ case 296: /* AlterTableStmt: ALTER MATERIALIZED VIEW qualified_name alter_table_cmds */
+#line 2917 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter materialized view"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39411 "preproc.c"
+ break;
+
+ case 297: /* AlterTableStmt: ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name alter_table_cmds */
+#line 2921 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter materialized view if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39419 "preproc.c"
+ break;
+
+ case 298: /* AlterTableStmt: ALTER MATERIALIZED VIEW ALL IN_P TABLESPACE name SET TABLESPACE name opt_nowait */
+#line 2925 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter materialized view all in tablespace"),(yyvsp[-4].str),mm_strdup("set tablespace"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39427 "preproc.c"
+ break;
+
+ case 299: /* AlterTableStmt: ALTER MATERIALIZED VIEW ALL IN_P TABLESPACE name OWNED BY role_list SET TABLESPACE name opt_nowait */
+#line 2929 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter materialized view all in tablespace"),(yyvsp[-7].str),mm_strdup("owned by"),(yyvsp[-4].str),mm_strdup("set tablespace"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39435 "preproc.c"
+ break;
+
+ case 300: /* AlterTableStmt: ALTER FOREIGN TABLE relation_expr alter_table_cmds */
+#line 2933 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter foreign table"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39443 "preproc.c"
+ break;
+
+ case 301: /* AlterTableStmt: ALTER FOREIGN TABLE IF_P EXISTS relation_expr alter_table_cmds */
+#line 2937 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter foreign table if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39451 "preproc.c"
+ break;
+
+ case 302: /* alter_table_cmds: alter_table_cmd */
+#line 2945 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39459 "preproc.c"
+ break;
+
+ case 303: /* alter_table_cmds: alter_table_cmds ',' alter_table_cmd */
+#line 2949 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 39467 "preproc.c"
+ break;
+
+ case 304: /* partition_cmd: ATTACH PARTITION qualified_name PartitionBoundSpec */
+#line 2957 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("attach partition"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39475 "preproc.c"
+ break;
+
+ case 305: /* partition_cmd: DETACH PARTITION qualified_name opt_concurrently */
+#line 2961 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("detach partition"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39483 "preproc.c"
+ break;
+
+ case 306: /* partition_cmd: DETACH PARTITION qualified_name FINALIZE */
+#line 2965 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("detach partition"),(yyvsp[-1].str),mm_strdup("finalize"));
+}
+#line 39491 "preproc.c"
+ break;
+
+ case 307: /* index_partition_cmd: ATTACH PARTITION qualified_name */
+#line 2973 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("attach partition"),(yyvsp[0].str));
+}
+#line 39499 "preproc.c"
+ break;
+
+ case 308: /* alter_table_cmd: ADD_P columnDef */
+#line 2981 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("add"),(yyvsp[0].str));
+}
+#line 39507 "preproc.c"
+ break;
+
+ case 309: /* alter_table_cmd: ADD_P IF_P NOT EXISTS columnDef */
+#line 2985 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("add if not exists"),(yyvsp[0].str));
+}
+#line 39515 "preproc.c"
+ break;
+
+ case 310: /* alter_table_cmd: ADD_P COLUMN columnDef */
+#line 2989 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("add column"),(yyvsp[0].str));
+}
+#line 39523 "preproc.c"
+ break;
+
+ case 311: /* alter_table_cmd: ADD_P COLUMN IF_P NOT EXISTS columnDef */
+#line 2993 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("add column if not exists"),(yyvsp[0].str));
+}
+#line 39531 "preproc.c"
+ break;
+
+ case 312: /* alter_table_cmd: ALTER opt_column ColId alter_column_default */
+#line 2997 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39539 "preproc.c"
+ break;
+
+ case 313: /* alter_table_cmd: ALTER opt_column ColId DROP NOT NULL_P */
+#line 3001 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("drop not null"));
+}
+#line 39547 "preproc.c"
+ break;
+
+ case 314: /* alter_table_cmd: ALTER opt_column ColId SET NOT NULL_P */
+#line 3005 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("set not null"));
+}
+#line 39555 "preproc.c"
+ break;
+
+ case 315: /* alter_table_cmd: ALTER opt_column ColId DROP EXPRESSION */
+#line 3009 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("drop expression"));
+}
+#line 39563 "preproc.c"
+ break;
+
+ case 316: /* alter_table_cmd: ALTER opt_column ColId DROP EXPRESSION IF_P EXISTS */
+#line 3013 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("drop expression if exists"));
+}
+#line 39571 "preproc.c"
+ break;
+
+ case 317: /* alter_table_cmd: ALTER opt_column ColId SET STATISTICS SignedIconst */
+#line 3017 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("set statistics"),(yyvsp[0].str));
+}
+#line 39579 "preproc.c"
+ break;
+
+ case 318: /* alter_table_cmd: ALTER opt_column Iconst SET STATISTICS SignedIconst */
+#line 3021 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("set statistics"),(yyvsp[0].str));
+}
+#line 39587 "preproc.c"
+ break;
+
+ case 319: /* alter_table_cmd: ALTER opt_column ColId SET reloptions */
+#line 3025 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("set"),(yyvsp[0].str));
+}
+#line 39595 "preproc.c"
+ break;
+
+ case 320: /* alter_table_cmd: ALTER opt_column ColId RESET reloptions */
+#line 3029 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("reset"),(yyvsp[0].str));
+}
+#line 39603 "preproc.c"
+ break;
+
+ case 321: /* alter_table_cmd: ALTER opt_column ColId SET STORAGE ColId */
+#line 3033 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("set storage"),(yyvsp[0].str));
+}
+#line 39611 "preproc.c"
+ break;
+
+ case 322: /* alter_table_cmd: ALTER opt_column ColId SET column_compression */
+#line 3037 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("set"),(yyvsp[0].str));
+}
+#line 39619 "preproc.c"
+ break;
+
+ case 323: /* alter_table_cmd: ALTER opt_column ColId ADD_P GENERATED generated_when AS IDENTITY_P OptParenthesizedSeqOptList */
+#line 3041 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter"),(yyvsp[-7].str),(yyvsp[-6].str),mm_strdup("add generated"),(yyvsp[-3].str),mm_strdup("as identity"),(yyvsp[0].str));
+}
+#line 39627 "preproc.c"
+ break;
+
+ case 324: /* alter_table_cmd: ALTER opt_column ColId alter_identity_column_option_list */
+#line 3045 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39635 "preproc.c"
+ break;
+
+ case 325: /* alter_table_cmd: ALTER opt_column ColId DROP IDENTITY_P */
+#line 3049 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("drop identity"));
+}
+#line 39643 "preproc.c"
+ break;
+
+ case 326: /* alter_table_cmd: ALTER opt_column ColId DROP IDENTITY_P IF_P EXISTS */
+#line 3053 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("drop identity if exists"));
+}
+#line 39651 "preproc.c"
+ break;
+
+ case 327: /* alter_table_cmd: DROP opt_column IF_P EXISTS ColId opt_drop_behavior */
+#line 3057 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("drop"),(yyvsp[-4].str),mm_strdup("if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39659 "preproc.c"
+ break;
+
+ case 328: /* alter_table_cmd: DROP opt_column ColId opt_drop_behavior */
+#line 3061 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("drop"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39667 "preproc.c"
+ break;
+
+ case 329: /* alter_table_cmd: ALTER opt_column ColId opt_set_data TYPE_P Typename opt_collate_clause alter_using */
+#line 3065 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("alter"),(yyvsp[-6].str),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("type"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39675 "preproc.c"
+ break;
+
+ case 330: /* alter_table_cmd: ALTER opt_column ColId alter_generic_options */
+#line 3069 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39683 "preproc.c"
+ break;
+
+ case 331: /* alter_table_cmd: ADD_P TableConstraint */
+#line 3073 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("add"),(yyvsp[0].str));
+}
+#line 39691 "preproc.c"
+ break;
+
+ case 332: /* alter_table_cmd: ALTER CONSTRAINT name ConstraintAttributeSpec */
+#line 3077 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter constraint"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39699 "preproc.c"
+ break;
+
+ case 333: /* alter_table_cmd: VALIDATE CONSTRAINT name */
+#line 3081 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("validate constraint"),(yyvsp[0].str));
+}
+#line 39707 "preproc.c"
+ break;
+
+ case 334: /* alter_table_cmd: DROP CONSTRAINT IF_P EXISTS name opt_drop_behavior */
+#line 3085 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop constraint if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39715 "preproc.c"
+ break;
+
+ case 335: /* alter_table_cmd: DROP CONSTRAINT name opt_drop_behavior */
+#line 3089 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop constraint"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 39723 "preproc.c"
+ break;
+
+ case 336: /* alter_table_cmd: SET WITHOUT OIDS */
+#line 3093 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("set without oids");
+}
+#line 39731 "preproc.c"
+ break;
+
+ case 337: /* alter_table_cmd: CLUSTER ON name */
+#line 3097 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("cluster on"),(yyvsp[0].str));
+}
+#line 39739 "preproc.c"
+ break;
+
+ case 338: /* alter_table_cmd: SET WITHOUT CLUSTER */
+#line 3101 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("set without cluster");
+}
+#line 39747 "preproc.c"
+ break;
+
+ case 339: /* alter_table_cmd: SET LOGGED */
+#line 3105 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("set logged");
+}
+#line 39755 "preproc.c"
+ break;
+
+ case 340: /* alter_table_cmd: SET UNLOGGED */
+#line 3109 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("set unlogged");
+}
+#line 39763 "preproc.c"
+ break;
+
+ case 341: /* alter_table_cmd: ENABLE_P TRIGGER name */
+#line 3113 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("enable trigger"),(yyvsp[0].str));
+}
+#line 39771 "preproc.c"
+ break;
+
+ case 342: /* alter_table_cmd: ENABLE_P ALWAYS TRIGGER name */
+#line 3117 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("enable always trigger"),(yyvsp[0].str));
+}
+#line 39779 "preproc.c"
+ break;
+
+ case 343: /* alter_table_cmd: ENABLE_P REPLICA TRIGGER name */
+#line 3121 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("enable replica trigger"),(yyvsp[0].str));
+}
+#line 39787 "preproc.c"
+ break;
+
+ case 344: /* alter_table_cmd: ENABLE_P TRIGGER ALL */
+#line 3125 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enable trigger all");
+}
+#line 39795 "preproc.c"
+ break;
+
+ case 345: /* alter_table_cmd: ENABLE_P TRIGGER USER */
+#line 3129 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enable trigger user");
+}
+#line 39803 "preproc.c"
+ break;
+
+ case 346: /* alter_table_cmd: DISABLE_P TRIGGER name */
+#line 3133 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("disable trigger"),(yyvsp[0].str));
+}
+#line 39811 "preproc.c"
+ break;
+
+ case 347: /* alter_table_cmd: DISABLE_P TRIGGER ALL */
+#line 3137 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("disable trigger all");
+}
+#line 39819 "preproc.c"
+ break;
+
+ case 348: /* alter_table_cmd: DISABLE_P TRIGGER USER */
+#line 3141 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("disable trigger user");
+}
+#line 39827 "preproc.c"
+ break;
+
+ case 349: /* alter_table_cmd: ENABLE_P RULE name */
+#line 3145 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("enable rule"),(yyvsp[0].str));
+}
+#line 39835 "preproc.c"
+ break;
+
+ case 350: /* alter_table_cmd: ENABLE_P ALWAYS RULE name */
+#line 3149 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("enable always rule"),(yyvsp[0].str));
+}
+#line 39843 "preproc.c"
+ break;
+
+ case 351: /* alter_table_cmd: ENABLE_P REPLICA RULE name */
+#line 3153 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("enable replica rule"),(yyvsp[0].str));
+}
+#line 39851 "preproc.c"
+ break;
+
+ case 352: /* alter_table_cmd: DISABLE_P RULE name */
+#line 3157 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("disable rule"),(yyvsp[0].str));
+}
+#line 39859 "preproc.c"
+ break;
+
+ case 353: /* alter_table_cmd: INHERIT qualified_name */
+#line 3161 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("inherit"),(yyvsp[0].str));
+}
+#line 39867 "preproc.c"
+ break;
+
+ case 354: /* alter_table_cmd: NO INHERIT qualified_name */
+#line 3165 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("no inherit"),(yyvsp[0].str));
+}
+#line 39875 "preproc.c"
+ break;
+
+ case 355: /* alter_table_cmd: OF any_name */
+#line 3169 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("of"),(yyvsp[0].str));
+}
+#line 39883 "preproc.c"
+ break;
+
+ case 356: /* alter_table_cmd: NOT OF */
+#line 3173 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not of");
+}
+#line 39891 "preproc.c"
+ break;
+
+ case 357: /* alter_table_cmd: OWNER TO RoleSpec */
+#line 3177 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 39899 "preproc.c"
+ break;
+
+ case 358: /* alter_table_cmd: SET ACCESS METHOD name */
+#line 3181 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set access method"),(yyvsp[0].str));
+}
+#line 39907 "preproc.c"
+ break;
+
+ case 359: /* alter_table_cmd: SET TABLESPACE name */
+#line 3185 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set tablespace"),(yyvsp[0].str));
+}
+#line 39915 "preproc.c"
+ break;
+
+ case 360: /* alter_table_cmd: SET reloptions */
+#line 3189 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set"),(yyvsp[0].str));
+}
+#line 39923 "preproc.c"
+ break;
+
+ case 361: /* alter_table_cmd: RESET reloptions */
+#line 3193 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("reset"),(yyvsp[0].str));
+}
+#line 39931 "preproc.c"
+ break;
+
+ case 362: /* alter_table_cmd: REPLICA IDENTITY_P replica_identity */
+#line 3197 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("replica identity"),(yyvsp[0].str));
+}
+#line 39939 "preproc.c"
+ break;
+
+ case 363: /* alter_table_cmd: ENABLE_P ROW LEVEL SECURITY */
+#line 3201 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enable row level security");
+}
+#line 39947 "preproc.c"
+ break;
+
+ case 364: /* alter_table_cmd: DISABLE_P ROW LEVEL SECURITY */
+#line 3205 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("disable row level security");
+}
+#line 39955 "preproc.c"
+ break;
+
+ case 365: /* alter_table_cmd: FORCE ROW LEVEL SECURITY */
+#line 3209 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("force row level security");
+}
+#line 39963 "preproc.c"
+ break;
+
+ case 366: /* alter_table_cmd: NO FORCE ROW LEVEL SECURITY */
+#line 3213 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no force row level security");
+}
+#line 39971 "preproc.c"
+ break;
+
+ case 367: /* alter_table_cmd: alter_generic_options */
+#line 3217 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 39979 "preproc.c"
+ break;
+
+ case 368: /* alter_column_default: SET DEFAULT a_expr */
+#line 3225 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set default"),(yyvsp[0].str));
+}
+#line 39987 "preproc.c"
+ break;
+
+ case 369: /* alter_column_default: DROP DEFAULT */
+#line 3229 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("drop default");
+}
+#line 39995 "preproc.c"
+ break;
+
+ case 370: /* opt_drop_behavior: CASCADE */
+#line 3237 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cascade");
+}
+#line 40003 "preproc.c"
+ break;
+
+ case 371: /* opt_drop_behavior: RESTRICT */
+#line 3241 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restrict");
+}
+#line 40011 "preproc.c"
+ break;
+
+ case 372: /* opt_drop_behavior: %empty */
+#line 3245 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40018 "preproc.c"
+ break;
+
+ case 373: /* opt_collate_clause: COLLATE any_name */
+#line 3252 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("collate"),(yyvsp[0].str));
+}
+#line 40026 "preproc.c"
+ break;
+
+ case 374: /* opt_collate_clause: %empty */
+#line 3256 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40033 "preproc.c"
+ break;
+
+ case 375: /* alter_using: USING a_expr */
+#line 3263 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("using"),(yyvsp[0].str));
+}
+#line 40041 "preproc.c"
+ break;
+
+ case 376: /* alter_using: %empty */
+#line 3267 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40048 "preproc.c"
+ break;
+
+ case 377: /* replica_identity: NOTHING */
+#line 3274 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nothing");
+}
+#line 40056 "preproc.c"
+ break;
+
+ case 378: /* replica_identity: FULL */
+#line 3278 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("full");
+}
+#line 40064 "preproc.c"
+ break;
+
+ case 379: /* replica_identity: DEFAULT */
+#line 3282 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("default");
+}
+#line 40072 "preproc.c"
+ break;
+
+ case 380: /* replica_identity: USING INDEX name */
+#line 3286 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("using index"),(yyvsp[0].str));
+}
+#line 40080 "preproc.c"
+ break;
+
+ case 381: /* reloptions: '(' reloption_list ')' */
+#line 3294 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 40088 "preproc.c"
+ break;
+
+ case 382: /* opt_reloptions: WITH reloptions */
+#line 3302 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("with"),(yyvsp[0].str));
+}
+#line 40096 "preproc.c"
+ break;
+
+ case 383: /* opt_reloptions: %empty */
+#line 3306 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40103 "preproc.c"
+ break;
+
+ case 384: /* reloption_list: reloption_elem */
+#line 3313 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40111 "preproc.c"
+ break;
+
+ case 385: /* reloption_list: reloption_list ',' reloption_elem */
+#line 3317 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 40119 "preproc.c"
+ break;
+
+ case 386: /* reloption_elem: ColLabel '=' def_arg */
+#line 3325 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 40127 "preproc.c"
+ break;
+
+ case 387: /* reloption_elem: ColLabel */
+#line 3329 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40135 "preproc.c"
+ break;
+
+ case 388: /* reloption_elem: ColLabel '.' ColLabel '=' def_arg */
+#line 3333 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("."),(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 40143 "preproc.c"
+ break;
+
+ case 389: /* reloption_elem: ColLabel '.' ColLabel */
+#line 3337 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("."),(yyvsp[0].str));
+}
+#line 40151 "preproc.c"
+ break;
+
+ case 390: /* alter_identity_column_option_list: alter_identity_column_option */
+#line 3345 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40159 "preproc.c"
+ break;
+
+ case 391: /* alter_identity_column_option_list: alter_identity_column_option_list alter_identity_column_option */
+#line 3349 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40167 "preproc.c"
+ break;
+
+ case 392: /* alter_identity_column_option: RESTART */
+#line 3357 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restart");
+}
+#line 40175 "preproc.c"
+ break;
+
+ case 393: /* alter_identity_column_option: RESTART opt_with NumericOnly */
+#line 3361 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("restart"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40183 "preproc.c"
+ break;
+
+ case 394: /* alter_identity_column_option: SET SeqOptElem */
+#line 3365 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set"),(yyvsp[0].str));
+}
+#line 40191 "preproc.c"
+ break;
+
+ case 395: /* alter_identity_column_option: SET GENERATED generated_when */
+#line 3369 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set generated"),(yyvsp[0].str));
+}
+#line 40199 "preproc.c"
+ break;
+
+ case 396: /* PartitionBoundSpec: FOR VALUES WITH '(' hash_partbound ')' */
+#line 3377 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("for values with ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 40207 "preproc.c"
+ break;
+
+ case 397: /* PartitionBoundSpec: FOR VALUES IN_P '(' expr_list ')' */
+#line 3381 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("for values in ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 40215 "preproc.c"
+ break;
+
+ case 398: /* PartitionBoundSpec: FOR VALUES FROM '(' expr_list ')' TO '(' expr_list ')' */
+#line 3385 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("for values from ("),(yyvsp[-5].str),mm_strdup(") to ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 40223 "preproc.c"
+ break;
+
+ case 399: /* PartitionBoundSpec: DEFAULT */
+#line 3389 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("default");
+}
+#line 40231 "preproc.c"
+ break;
+
+ case 400: /* hash_partbound_elem: NonReservedWord Iconst */
+#line 3397 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40239 "preproc.c"
+ break;
+
+ case 401: /* hash_partbound: hash_partbound_elem */
+#line 3405 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40247 "preproc.c"
+ break;
+
+ case 402: /* hash_partbound: hash_partbound ',' hash_partbound_elem */
+#line 3409 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 40255 "preproc.c"
+ break;
+
+ case 403: /* AlterCompositeTypeStmt: ALTER TYPE_P any_name alter_type_cmds */
+#line 3417 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter type"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40263 "preproc.c"
+ break;
+
+ case 404: /* alter_type_cmds: alter_type_cmd */
+#line 3425 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40271 "preproc.c"
+ break;
+
+ case 405: /* alter_type_cmds: alter_type_cmds ',' alter_type_cmd */
+#line 3429 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 40279 "preproc.c"
+ break;
+
+ case 406: /* alter_type_cmd: ADD_P ATTRIBUTE TableFuncElement opt_drop_behavior */
+#line 3437 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("add attribute"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40287 "preproc.c"
+ break;
+
+ case 407: /* alter_type_cmd: DROP ATTRIBUTE IF_P EXISTS ColId opt_drop_behavior */
+#line 3441 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop attribute if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40295 "preproc.c"
+ break;
+
+ case 408: /* alter_type_cmd: DROP ATTRIBUTE ColId opt_drop_behavior */
+#line 3445 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop attribute"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40303 "preproc.c"
+ break;
+
+ case 409: /* alter_type_cmd: ALTER ATTRIBUTE ColId opt_set_data TYPE_P Typename opt_collate_clause opt_drop_behavior */
+#line 3449 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter attribute"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("type"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40311 "preproc.c"
+ break;
+
+ case 410: /* ClosePortalStmt: CLOSE cursor_name */
+#line 3457 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[0].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[0].str);
+ struct cursor *ptr = NULL;
+ for (ptr = cur; ptr != NULL; ptr = ptr -> next)
+ {
+ if (strcmp((yyvsp[0].str), ptr -> name) == 0)
+ {
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ break;
+ }
+ }
+ (yyval.str) = cat2_str(mm_strdup("close"), cursor_marker);
+ }
+#line 40331 "preproc.c"
+ break;
+
+ case 411: /* ClosePortalStmt: CLOSE ALL */
+#line 3473 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("close all");
+}
+#line 40339 "preproc.c"
+ break;
+
+ case 412: /* CopyStmt: COPY opt_binary qualified_name opt_column_list copy_from opt_program copy_file_name copy_delimiter opt_with copy_options where_clause */
+#line 3481 "preproc.y"
+ {
+ if (strcmp((yyvsp[-5].str), "from") == 0 &&
+ (strcmp((yyvsp[-4].str), "stdin") == 0 || strcmp((yyvsp[-4].str), "stdout") == 0))
+ mmerror(PARSE_ERROR, ET_WARNING, "COPY FROM STDIN is not implemented");
+
+ (yyval.str) = cat_str(11,mm_strdup("copy"),(yyvsp[-9].str),(yyvsp[-8].str),(yyvsp[-7].str),(yyvsp[-6].str),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40351 "preproc.c"
+ break;
+
+ case 413: /* CopyStmt: COPY '(' PreparableStmt ')' TO opt_program copy_file_name opt_with copy_options */
+#line 3489 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("copy ("),(yyvsp[-6].str),mm_strdup(") to"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40359 "preproc.c"
+ break;
+
+ case 414: /* copy_from: FROM */
+#line 3497 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("from");
+}
+#line 40367 "preproc.c"
+ break;
+
+ case 415: /* copy_from: TO */
+#line 3501 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("to");
+}
+#line 40375 "preproc.c"
+ break;
+
+ case 416: /* opt_program: PROGRAM */
+#line 3509 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("program");
+}
+#line 40383 "preproc.c"
+ break;
+
+ case 417: /* opt_program: %empty */
+#line 3513 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40390 "preproc.c"
+ break;
+
+ case 418: /* copy_file_name: ecpg_sconst */
+#line 3520 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40398 "preproc.c"
+ break;
+
+ case 419: /* copy_file_name: STDIN */
+#line 3524 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stdin");
+}
+#line 40406 "preproc.c"
+ break;
+
+ case 420: /* copy_file_name: STDOUT */
+#line 3528 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stdout");
+}
+#line 40414 "preproc.c"
+ break;
+
+ case 421: /* copy_options: copy_opt_list */
+#line 3536 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40422 "preproc.c"
+ break;
+
+ case 422: /* copy_options: '(' copy_generic_opt_list ')' */
+#line 3540 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 40430 "preproc.c"
+ break;
+
+ case 423: /* copy_opt_list: copy_opt_list copy_opt_item */
+#line 3548 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40438 "preproc.c"
+ break;
+
+ case 424: /* copy_opt_list: %empty */
+#line 3552 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40445 "preproc.c"
+ break;
+
+ case 425: /* copy_opt_item: BINARY */
+#line 3559 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("binary");
+}
+#line 40453 "preproc.c"
+ break;
+
+ case 426: /* copy_opt_item: FREEZE */
+#line 3563 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("freeze");
+}
+#line 40461 "preproc.c"
+ break;
+
+ case 427: /* copy_opt_item: DELIMITER opt_as ecpg_sconst */
+#line 3567 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("delimiter"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40469 "preproc.c"
+ break;
+
+ case 428: /* copy_opt_item: NULL_P opt_as ecpg_sconst */
+#line 3571 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("null"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40477 "preproc.c"
+ break;
+
+ case 429: /* copy_opt_item: CSV */
+#line 3575 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("csv");
+}
+#line 40485 "preproc.c"
+ break;
+
+ case 430: /* copy_opt_item: HEADER_P */
+#line 3579 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("header");
+}
+#line 40493 "preproc.c"
+ break;
+
+ case 431: /* copy_opt_item: QUOTE opt_as ecpg_sconst */
+#line 3583 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("quote"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40501 "preproc.c"
+ break;
+
+ case 432: /* copy_opt_item: ESCAPE opt_as ecpg_sconst */
+#line 3587 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("escape"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40509 "preproc.c"
+ break;
+
+ case 433: /* copy_opt_item: FORCE QUOTE columnList */
+#line 3591 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("force quote"),(yyvsp[0].str));
+}
+#line 40517 "preproc.c"
+ break;
+
+ case 434: /* copy_opt_item: FORCE QUOTE '*' */
+#line 3595 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("force quote *");
+}
+#line 40525 "preproc.c"
+ break;
+
+ case 435: /* copy_opt_item: FORCE NOT NULL_P columnList */
+#line 3599 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("force not null"),(yyvsp[0].str));
+}
+#line 40533 "preproc.c"
+ break;
+
+ case 436: /* copy_opt_item: FORCE NULL_P columnList */
+#line 3603 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("force null"),(yyvsp[0].str));
+}
+#line 40541 "preproc.c"
+ break;
+
+ case 437: /* copy_opt_item: ENCODING ecpg_sconst */
+#line 3607 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("encoding"),(yyvsp[0].str));
+}
+#line 40549 "preproc.c"
+ break;
+
+ case 438: /* opt_binary: BINARY */
+#line 3615 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("binary");
+}
+#line 40557 "preproc.c"
+ break;
+
+ case 439: /* opt_binary: %empty */
+#line 3619 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40564 "preproc.c"
+ break;
+
+ case 440: /* copy_delimiter: opt_using DELIMITERS ecpg_sconst */
+#line 3626 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("delimiters"),(yyvsp[0].str));
+}
+#line 40572 "preproc.c"
+ break;
+
+ case 441: /* copy_delimiter: %empty */
+#line 3630 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40579 "preproc.c"
+ break;
+
+ case 442: /* opt_using: USING */
+#line 3637 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("using");
+}
+#line 40587 "preproc.c"
+ break;
+
+ case 443: /* opt_using: %empty */
+#line 3641 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40594 "preproc.c"
+ break;
+
+ case 444: /* copy_generic_opt_list: copy_generic_opt_elem */
+#line 3648 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40602 "preproc.c"
+ break;
+
+ case 445: /* copy_generic_opt_list: copy_generic_opt_list ',' copy_generic_opt_elem */
+#line 3652 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 40610 "preproc.c"
+ break;
+
+ case 446: /* copy_generic_opt_elem: ColLabel copy_generic_opt_arg */
+#line 3660 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40618 "preproc.c"
+ break;
+
+ case 447: /* copy_generic_opt_arg: opt_boolean_or_string */
+#line 3668 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40626 "preproc.c"
+ break;
+
+ case 448: /* copy_generic_opt_arg: NumericOnly */
+#line 3672 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40634 "preproc.c"
+ break;
+
+ case 449: /* copy_generic_opt_arg: '*' */
+#line 3676 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("*");
+}
+#line 40642 "preproc.c"
+ break;
+
+ case 450: /* copy_generic_opt_arg: '(' copy_generic_opt_arg_list ')' */
+#line 3680 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 40650 "preproc.c"
+ break;
+
+ case 451: /* copy_generic_opt_arg: %empty */
+#line 3684 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40657 "preproc.c"
+ break;
+
+ case 452: /* copy_generic_opt_arg_list: copy_generic_opt_arg_list_item */
+#line 3691 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40665 "preproc.c"
+ break;
+
+ case 453: /* copy_generic_opt_arg_list: copy_generic_opt_arg_list ',' copy_generic_opt_arg_list_item */
+#line 3695 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 40673 "preproc.c"
+ break;
+
+ case 454: /* copy_generic_opt_arg_list_item: opt_boolean_or_string */
+#line 3703 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40681 "preproc.c"
+ break;
+
+ case 455: /* CreateStmt: CREATE OptTemp TABLE qualified_name '(' OptTableElementList ')' OptInherit OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace */
+#line 3711 "preproc.y"
+ {
+ (yyval.str) = cat_str(13,mm_strdup("create"),(yyvsp[-11].str),mm_strdup("table"),(yyvsp[-9].str),mm_strdup("("),(yyvsp[-7].str),mm_strdup(")"),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40689 "preproc.c"
+ break;
+
+ case 456: /* CreateStmt: CREATE OptTemp TABLE IF_P NOT EXISTS qualified_name '(' OptTableElementList ')' OptInherit OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace */
+#line 3715 "preproc.y"
+ {
+ (yyval.str) = cat_str(13,mm_strdup("create"),(yyvsp[-14].str),mm_strdup("table if not exists"),(yyvsp[-9].str),mm_strdup("("),(yyvsp[-7].str),mm_strdup(")"),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40697 "preproc.c"
+ break;
+
+ case 457: /* CreateStmt: CREATE OptTemp TABLE qualified_name OF any_name OptTypedTableElementList OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace */
+#line 3719 "preproc.y"
+ {
+ (yyval.str) = cat_str(12,mm_strdup("create"),(yyvsp[-10].str),mm_strdup("table"),(yyvsp[-8].str),mm_strdup("of"),(yyvsp[-6].str),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40705 "preproc.c"
+ break;
+
+ case 458: /* CreateStmt: CREATE OptTemp TABLE IF_P NOT EXISTS qualified_name OF any_name OptTypedTableElementList OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace */
+#line 3723 "preproc.y"
+ {
+ (yyval.str) = cat_str(12,mm_strdup("create"),(yyvsp[-13].str),mm_strdup("table if not exists"),(yyvsp[-8].str),mm_strdup("of"),(yyvsp[-6].str),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40713 "preproc.c"
+ break;
+
+ case 459: /* CreateStmt: CREATE OptTemp TABLE qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace */
+#line 3727 "preproc.y"
+ {
+ (yyval.str) = cat_str(13,mm_strdup("create"),(yyvsp[-12].str),mm_strdup("table"),(yyvsp[-10].str),mm_strdup("partition of"),(yyvsp[-7].str),(yyvsp[-6].str),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40721 "preproc.c"
+ break;
+
+ case 460: /* CreateStmt: CREATE OptTemp TABLE IF_P NOT EXISTS qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace */
+#line 3731 "preproc.y"
+ {
+ (yyval.str) = cat_str(13,mm_strdup("create"),(yyvsp[-15].str),mm_strdup("table if not exists"),(yyvsp[-10].str),mm_strdup("partition of"),(yyvsp[-7].str),(yyvsp[-6].str),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40729 "preproc.c"
+ break;
+
+ case 461: /* OptTemp: TEMPORARY */
+#line 3739 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("temporary");
+}
+#line 40737 "preproc.c"
+ break;
+
+ case 462: /* OptTemp: TEMP */
+#line 3743 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("temp");
+}
+#line 40745 "preproc.c"
+ break;
+
+ case 463: /* OptTemp: LOCAL TEMPORARY */
+#line 3747 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("local temporary");
+}
+#line 40753 "preproc.c"
+ break;
+
+ case 464: /* OptTemp: LOCAL TEMP */
+#line 3751 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("local temp");
+}
+#line 40761 "preproc.c"
+ break;
+
+ case 465: /* OptTemp: GLOBAL TEMPORARY */
+#line 3755 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("global temporary");
+}
+#line 40769 "preproc.c"
+ break;
+
+ case 466: /* OptTemp: GLOBAL TEMP */
+#line 3759 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("global temp");
+}
+#line 40777 "preproc.c"
+ break;
+
+ case 467: /* OptTemp: UNLOGGED */
+#line 3763 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unlogged");
+}
+#line 40785 "preproc.c"
+ break;
+
+ case 468: /* OptTemp: %empty */
+#line 3767 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40792 "preproc.c"
+ break;
+
+ case 469: /* OptTableElementList: TableElementList */
+#line 3774 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40800 "preproc.c"
+ break;
+
+ case 470: /* OptTableElementList: %empty */
+#line 3778 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40807 "preproc.c"
+ break;
+
+ case 471: /* OptTypedTableElementList: '(' TypedTableElementList ')' */
+#line 3785 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 40815 "preproc.c"
+ break;
+
+ case 472: /* OptTypedTableElementList: %empty */
+#line 3789 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40822 "preproc.c"
+ break;
+
+ case 473: /* TableElementList: TableElement */
+#line 3796 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40830 "preproc.c"
+ break;
+
+ case 474: /* TableElementList: TableElementList ',' TableElement */
+#line 3800 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 40838 "preproc.c"
+ break;
+
+ case 475: /* TypedTableElementList: TypedTableElement */
+#line 3808 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40846 "preproc.c"
+ break;
+
+ case 476: /* TypedTableElementList: TypedTableElementList ',' TypedTableElement */
+#line 3812 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 40854 "preproc.c"
+ break;
+
+ case 477: /* TableElement: columnDef */
+#line 3820 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40862 "preproc.c"
+ break;
+
+ case 478: /* TableElement: TableLikeClause */
+#line 3824 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40870 "preproc.c"
+ break;
+
+ case 479: /* TableElement: TableConstraint */
+#line 3828 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40878 "preproc.c"
+ break;
+
+ case 480: /* TypedTableElement: columnOptions */
+#line 3836 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40886 "preproc.c"
+ break;
+
+ case 481: /* TypedTableElement: TableConstraint */
+#line 3840 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40894 "preproc.c"
+ break;
+
+ case 482: /* columnDef: ColId Typename opt_column_compression create_generic_options ColQualList */
+#line 3848 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40902 "preproc.c"
+ break;
+
+ case 483: /* columnOptions: ColId ColQualList */
+#line 3856 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40910 "preproc.c"
+ break;
+
+ case 484: /* columnOptions: ColId WITH OPTIONS ColQualList */
+#line 3860 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-3].str),mm_strdup("with options"),(yyvsp[0].str));
+}
+#line 40918 "preproc.c"
+ break;
+
+ case 485: /* column_compression: COMPRESSION ColId */
+#line 3868 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("compression"),(yyvsp[0].str));
+}
+#line 40926 "preproc.c"
+ break;
+
+ case 486: /* column_compression: COMPRESSION DEFAULT */
+#line 3872 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("compression default");
+}
+#line 40934 "preproc.c"
+ break;
+
+ case 487: /* opt_column_compression: column_compression */
+#line 3880 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40942 "preproc.c"
+ break;
+
+ case 488: /* opt_column_compression: %empty */
+#line 3884 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40949 "preproc.c"
+ break;
+
+ case 489: /* ColQualList: ColQualList ColConstraint */
+#line 3891 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40957 "preproc.c"
+ break;
+
+ case 490: /* ColQualList: %empty */
+#line 3895 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 40964 "preproc.c"
+ break;
+
+ case 491: /* ColConstraint: CONSTRAINT name ColConstraintElem */
+#line 3902 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("constraint"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 40972 "preproc.c"
+ break;
+
+ case 492: /* ColConstraint: ColConstraintElem */
+#line 3906 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40980 "preproc.c"
+ break;
+
+ case 493: /* ColConstraint: ConstraintAttr */
+#line 3910 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 40988 "preproc.c"
+ break;
+
+ case 494: /* ColConstraint: COLLATE any_name */
+#line 3914 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("collate"),(yyvsp[0].str));
+}
+#line 40996 "preproc.c"
+ break;
+
+ case 495: /* ColConstraintElem: NOT NULL_P */
+#line 3922 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not null");
+}
+#line 41004 "preproc.c"
+ break;
+
+ case 496: /* ColConstraintElem: NULL_P */
+#line 3926 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("null");
+}
+#line 41012 "preproc.c"
+ break;
+
+ case 497: /* ColConstraintElem: UNIQUE opt_unique_null_treatment opt_definition OptConsTableSpace */
+#line 3930 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("unique"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41020 "preproc.c"
+ break;
+
+ case 498: /* ColConstraintElem: PRIMARY KEY opt_definition OptConsTableSpace */
+#line 3934 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("primary key"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41028 "preproc.c"
+ break;
+
+ case 499: /* ColConstraintElem: CHECK '(' a_expr ')' opt_no_inherit */
+#line 3938 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("check ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 41036 "preproc.c"
+ break;
+
+ case 500: /* ColConstraintElem: DEFAULT b_expr */
+#line 3942 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("default"),(yyvsp[0].str));
+}
+#line 41044 "preproc.c"
+ break;
+
+ case 501: /* ColConstraintElem: GENERATED generated_when AS IDENTITY_P OptParenthesizedSeqOptList */
+#line 3946 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("generated"),(yyvsp[-3].str),mm_strdup("as identity"),(yyvsp[0].str));
+}
+#line 41052 "preproc.c"
+ break;
+
+ case 502: /* ColConstraintElem: GENERATED generated_when AS '(' a_expr ')' STORED */
+#line 3950 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("generated"),(yyvsp[-5].str),mm_strdup("as ("),(yyvsp[-2].str),mm_strdup(") stored"));
+}
+#line 41060 "preproc.c"
+ break;
+
+ case 503: /* ColConstraintElem: REFERENCES qualified_name opt_column_list key_match key_actions */
+#line 3954 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("references"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41068 "preproc.c"
+ break;
+
+ case 504: /* opt_unique_null_treatment: NULLS_P DISTINCT */
+#line 3962 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nulls distinct");
+}
+#line 41076 "preproc.c"
+ break;
+
+ case 505: /* opt_unique_null_treatment: NULLS_P NOT DISTINCT */
+#line 3966 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nulls not distinct");
+}
+#line 41084 "preproc.c"
+ break;
+
+ case 506: /* opt_unique_null_treatment: %empty */
+#line 3970 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41091 "preproc.c"
+ break;
+
+ case 507: /* generated_when: ALWAYS */
+#line 3977 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("always");
+}
+#line 41099 "preproc.c"
+ break;
+
+ case 508: /* generated_when: BY DEFAULT */
+#line 3981 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("by default");
+}
+#line 41107 "preproc.c"
+ break;
+
+ case 509: /* ConstraintAttr: DEFERRABLE */
+#line 3989 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deferrable");
+}
+#line 41115 "preproc.c"
+ break;
+
+ case 510: /* ConstraintAttr: NOT DEFERRABLE */
+#line 3993 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not deferrable");
+}
+#line 41123 "preproc.c"
+ break;
+
+ case 511: /* ConstraintAttr: INITIALLY DEFERRED */
+#line 3997 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("initially deferred");
+}
+#line 41131 "preproc.c"
+ break;
+
+ case 512: /* ConstraintAttr: INITIALLY IMMEDIATE */
+#line 4001 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("initially immediate");
+}
+#line 41139 "preproc.c"
+ break;
+
+ case 513: /* TableLikeClause: LIKE qualified_name TableLikeOptionList */
+#line 4009 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("like"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41147 "preproc.c"
+ break;
+
+ case 514: /* TableLikeOptionList: TableLikeOptionList INCLUDING TableLikeOption */
+#line 4017 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("including"),(yyvsp[0].str));
+}
+#line 41155 "preproc.c"
+ break;
+
+ case 515: /* TableLikeOptionList: TableLikeOptionList EXCLUDING TableLikeOption */
+#line 4021 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("excluding"),(yyvsp[0].str));
+}
+#line 41163 "preproc.c"
+ break;
+
+ case 516: /* TableLikeOptionList: %empty */
+#line 4025 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41170 "preproc.c"
+ break;
+
+ case 517: /* TableLikeOption: COMMENTS */
+#line 4032 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("comments");
+}
+#line 41178 "preproc.c"
+ break;
+
+ case 518: /* TableLikeOption: COMPRESSION */
+#line 4036 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("compression");
+}
+#line 41186 "preproc.c"
+ break;
+
+ case 519: /* TableLikeOption: CONSTRAINTS */
+#line 4040 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("constraints");
+}
+#line 41194 "preproc.c"
+ break;
+
+ case 520: /* TableLikeOption: DEFAULTS */
+#line 4044 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("defaults");
+}
+#line 41202 "preproc.c"
+ break;
+
+ case 521: /* TableLikeOption: IDENTITY_P */
+#line 4048 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("identity");
+}
+#line 41210 "preproc.c"
+ break;
+
+ case 522: /* TableLikeOption: GENERATED */
+#line 4052 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("generated");
+}
+#line 41218 "preproc.c"
+ break;
+
+ case 523: /* TableLikeOption: INDEXES */
+#line 4056 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("indexes");
+}
+#line 41226 "preproc.c"
+ break;
+
+ case 524: /* TableLikeOption: STATISTICS */
+#line 4060 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("statistics");
+}
+#line 41234 "preproc.c"
+ break;
+
+ case 525: /* TableLikeOption: STORAGE */
+#line 4064 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("storage");
+}
+#line 41242 "preproc.c"
+ break;
+
+ case 526: /* TableLikeOption: ALL */
+#line 4068 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 41250 "preproc.c"
+ break;
+
+ case 527: /* TableConstraint: CONSTRAINT name ConstraintElem */
+#line 4076 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("constraint"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41258 "preproc.c"
+ break;
+
+ case 528: /* TableConstraint: ConstraintElem */
+#line 4080 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41266 "preproc.c"
+ break;
+
+ case 529: /* ConstraintElem: CHECK '(' a_expr ')' ConstraintAttributeSpec */
+#line 4088 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("check ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 41274 "preproc.c"
+ break;
+
+ case 530: /* ConstraintElem: UNIQUE opt_unique_null_treatment '(' columnList ')' opt_c_include opt_definition OptConsTableSpace ConstraintAttributeSpec */
+#line 4092 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("unique"),(yyvsp[-7].str),mm_strdup("("),(yyvsp[-5].str),mm_strdup(")"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41282 "preproc.c"
+ break;
+
+ case 531: /* ConstraintElem: UNIQUE ExistingIndex ConstraintAttributeSpec */
+#line 4096 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("unique"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41290 "preproc.c"
+ break;
+
+ case 532: /* ConstraintElem: PRIMARY KEY '(' columnList ')' opt_c_include opt_definition OptConsTableSpace ConstraintAttributeSpec */
+#line 4100 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("primary key ("),(yyvsp[-5].str),mm_strdup(")"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41298 "preproc.c"
+ break;
+
+ case 533: /* ConstraintElem: PRIMARY KEY ExistingIndex ConstraintAttributeSpec */
+#line 4104 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("primary key"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41306 "preproc.c"
+ break;
+
+ case 534: /* ConstraintElem: EXCLUDE access_method_clause '(' ExclusionConstraintList ')' opt_c_include opt_definition OptConsTableSpace OptWhereClause ConstraintAttributeSpec */
+#line 4108 "preproc.y"
+ {
+ (yyval.str) = cat_str(10,mm_strdup("exclude"),(yyvsp[-8].str),mm_strdup("("),(yyvsp[-6].str),mm_strdup(")"),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41314 "preproc.c"
+ break;
+
+ case 535: /* ConstraintElem: FOREIGN KEY '(' columnList ')' REFERENCES qualified_name opt_column_list key_match key_actions ConstraintAttributeSpec */
+#line 4112 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("foreign key ("),(yyvsp[-7].str),mm_strdup(") references"),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41322 "preproc.c"
+ break;
+
+ case 536: /* opt_no_inherit: NO INHERIT */
+#line 4120 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no inherit");
+}
+#line 41330 "preproc.c"
+ break;
+
+ case 537: /* opt_no_inherit: %empty */
+#line 4124 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41337 "preproc.c"
+ break;
+
+ case 538: /* opt_column_list: '(' columnList ')' */
+#line 4131 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 41345 "preproc.c"
+ break;
+
+ case 539: /* opt_column_list: %empty */
+#line 4135 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41352 "preproc.c"
+ break;
+
+ case 540: /* columnList: columnElem */
+#line 4142 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41360 "preproc.c"
+ break;
+
+ case 541: /* columnList: columnList ',' columnElem */
+#line 4146 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 41368 "preproc.c"
+ break;
+
+ case 542: /* columnElem: ColId */
+#line 4154 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41376 "preproc.c"
+ break;
+
+ case 543: /* opt_c_include: INCLUDE '(' columnList ')' */
+#line 4162 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("include ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 41384 "preproc.c"
+ break;
+
+ case 544: /* opt_c_include: %empty */
+#line 4166 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41391 "preproc.c"
+ break;
+
+ case 545: /* key_match: MATCH FULL */
+#line 4173 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("match full");
+}
+#line 41399 "preproc.c"
+ break;
+
+ case 546: /* key_match: MATCH PARTIAL */
+#line 4177 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = mm_strdup("match partial");
+}
+#line 41408 "preproc.c"
+ break;
+
+ case 547: /* key_match: MATCH SIMPLE */
+#line 4182 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("match simple");
+}
+#line 41416 "preproc.c"
+ break;
+
+ case 548: /* key_match: %empty */
+#line 4186 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41423 "preproc.c"
+ break;
+
+ case 549: /* ExclusionConstraintList: ExclusionConstraintElem */
+#line 4193 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41431 "preproc.c"
+ break;
+
+ case 550: /* ExclusionConstraintList: ExclusionConstraintList ',' ExclusionConstraintElem */
+#line 4197 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 41439 "preproc.c"
+ break;
+
+ case 551: /* ExclusionConstraintElem: index_elem WITH any_operator */
+#line 4205 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("with"),(yyvsp[0].str));
+}
+#line 41447 "preproc.c"
+ break;
+
+ case 552: /* ExclusionConstraintElem: index_elem WITH OPERATOR '(' any_operator ')' */
+#line 4209 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-5].str),mm_strdup("with operator ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 41455 "preproc.c"
+ break;
+
+ case 553: /* OptWhereClause: WHERE '(' a_expr ')' */
+#line 4217 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("where ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 41463 "preproc.c"
+ break;
+
+ case 554: /* OptWhereClause: %empty */
+#line 4221 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41470 "preproc.c"
+ break;
+
+ case 555: /* key_actions: key_update */
+#line 4228 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41478 "preproc.c"
+ break;
+
+ case 556: /* key_actions: key_delete */
+#line 4232 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41486 "preproc.c"
+ break;
+
+ case 557: /* key_actions: key_update key_delete */
+#line 4236 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41494 "preproc.c"
+ break;
+
+ case 558: /* key_actions: key_delete key_update */
+#line 4240 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41502 "preproc.c"
+ break;
+
+ case 559: /* key_actions: %empty */
+#line 4244 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41509 "preproc.c"
+ break;
+
+ case 560: /* key_update: ON UPDATE key_action */
+#line 4251 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(2,mm_strdup("on update"),(yyvsp[0].str));
+}
+#line 41518 "preproc.c"
+ break;
+
+ case 561: /* key_delete: ON DELETE_P key_action */
+#line 4260 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("on delete"),(yyvsp[0].str));
+}
+#line 41526 "preproc.c"
+ break;
+
+ case 562: /* key_action: NO ACTION */
+#line 4268 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no action");
+}
+#line 41534 "preproc.c"
+ break;
+
+ case 563: /* key_action: RESTRICT */
+#line 4272 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restrict");
+}
+#line 41542 "preproc.c"
+ break;
+
+ case 564: /* key_action: CASCADE */
+#line 4276 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cascade");
+}
+#line 41550 "preproc.c"
+ break;
+
+ case 565: /* key_action: SET NULL_P opt_column_list */
+#line 4280 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set null"),(yyvsp[0].str));
+}
+#line 41558 "preproc.c"
+ break;
+
+ case 566: /* key_action: SET DEFAULT opt_column_list */
+#line 4284 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set default"),(yyvsp[0].str));
+}
+#line 41566 "preproc.c"
+ break;
+
+ case 567: /* OptInherit: INHERITS '(' qualified_name_list ')' */
+#line 4292 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("inherits ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 41574 "preproc.c"
+ break;
+
+ case 568: /* OptInherit: %empty */
+#line 4296 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41581 "preproc.c"
+ break;
+
+ case 569: /* OptPartitionSpec: PartitionSpec */
+#line 4303 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41589 "preproc.c"
+ break;
+
+ case 570: /* OptPartitionSpec: %empty */
+#line 4307 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41596 "preproc.c"
+ break;
+
+ case 571: /* PartitionSpec: PARTITION BY ColId '(' part_params ')' */
+#line 4314 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("partition by"),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 41604 "preproc.c"
+ break;
+
+ case 572: /* part_params: part_elem */
+#line 4322 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41612 "preproc.c"
+ break;
+
+ case 573: /* part_params: part_params ',' part_elem */
+#line 4326 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 41620 "preproc.c"
+ break;
+
+ case 574: /* part_elem: ColId opt_collate opt_class */
+#line 4334 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41628 "preproc.c"
+ break;
+
+ case 575: /* part_elem: func_expr_windowless opt_collate opt_class */
+#line 4338 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41636 "preproc.c"
+ break;
+
+ case 576: /* part_elem: '(' a_expr ')' opt_collate opt_class */
+#line 4342 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("("),(yyvsp[-3].str),mm_strdup(")"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41644 "preproc.c"
+ break;
+
+ case 577: /* table_access_method_clause: USING name */
+#line 4350 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("using"),(yyvsp[0].str));
+}
+#line 41652 "preproc.c"
+ break;
+
+ case 578: /* table_access_method_clause: %empty */
+#line 4354 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41659 "preproc.c"
+ break;
+
+ case 579: /* OptWith: WITH reloptions */
+#line 4361 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("with"),(yyvsp[0].str));
+}
+#line 41667 "preproc.c"
+ break;
+
+ case 580: /* OptWith: WITHOUT OIDS */
+#line 4365 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("without oids");
+}
+#line 41675 "preproc.c"
+ break;
+
+ case 581: /* OptWith: %empty */
+#line 4369 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41682 "preproc.c"
+ break;
+
+ case 582: /* OnCommitOption: ON COMMIT DROP */
+#line 4376 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("on commit drop");
+}
+#line 41690 "preproc.c"
+ break;
+
+ case 583: /* OnCommitOption: ON COMMIT DELETE_P ROWS */
+#line 4380 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("on commit delete rows");
+}
+#line 41698 "preproc.c"
+ break;
+
+ case 584: /* OnCommitOption: ON COMMIT PRESERVE ROWS */
+#line 4384 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("on commit preserve rows");
+}
+#line 41706 "preproc.c"
+ break;
+
+ case 585: /* OnCommitOption: %empty */
+#line 4388 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41713 "preproc.c"
+ break;
+
+ case 586: /* OptTableSpace: TABLESPACE name */
+#line 4395 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("tablespace"),(yyvsp[0].str));
+}
+#line 41721 "preproc.c"
+ break;
+
+ case 587: /* OptTableSpace: %empty */
+#line 4399 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41728 "preproc.c"
+ break;
+
+ case 588: /* OptConsTableSpace: USING INDEX TABLESPACE name */
+#line 4406 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("using index tablespace"),(yyvsp[0].str));
+}
+#line 41736 "preproc.c"
+ break;
+
+ case 589: /* OptConsTableSpace: %empty */
+#line 4410 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41743 "preproc.c"
+ break;
+
+ case 590: /* ExistingIndex: USING INDEX name */
+#line 4417 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("using index"),(yyvsp[0].str));
+}
+#line 41751 "preproc.c"
+ break;
+
+ case 591: /* CreateStatsStmt: CREATE STATISTICS any_name opt_name_list ON stats_params FROM from_list */
+#line 4425 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create statistics"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("on"),(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 41759 "preproc.c"
+ break;
+
+ case 592: /* CreateStatsStmt: CREATE STATISTICS IF_P NOT EXISTS any_name opt_name_list ON stats_params FROM from_list */
+#line 4429 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create statistics if not exists"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("on"),(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 41767 "preproc.c"
+ break;
+
+ case 593: /* stats_params: stats_param */
+#line 4437 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41775 "preproc.c"
+ break;
+
+ case 594: /* stats_params: stats_params ',' stats_param */
+#line 4441 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 41783 "preproc.c"
+ break;
+
+ case 595: /* stats_param: ColId */
+#line 4449 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41791 "preproc.c"
+ break;
+
+ case 596: /* stats_param: func_expr_windowless */
+#line 4453 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41799 "preproc.c"
+ break;
+
+ case 597: /* stats_param: '(' a_expr ')' */
+#line 4457 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 41807 "preproc.c"
+ break;
+
+ case 598: /* AlterStatsStmt: ALTER STATISTICS any_name SET STATISTICS SignedIconst */
+#line 4465 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter statistics"),(yyvsp[-3].str),mm_strdup("set statistics"),(yyvsp[0].str));
+}
+#line 41815 "preproc.c"
+ break;
+
+ case 599: /* AlterStatsStmt: ALTER STATISTICS IF_P EXISTS any_name SET STATISTICS SignedIconst */
+#line 4469 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter statistics if exists"),(yyvsp[-3].str),mm_strdup("set statistics"),(yyvsp[0].str));
+}
+#line 41823 "preproc.c"
+ break;
+
+ case 600: /* create_as_target: qualified_name opt_column_list table_access_method_clause OptWith OnCommitOption OptTableSpace */
+#line 4477 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41831 "preproc.c"
+ break;
+
+ case 601: /* opt_with_data: WITH DATA_P */
+#line 4485 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with data");
+}
+#line 41839 "preproc.c"
+ break;
+
+ case 602: /* opt_with_data: WITH NO DATA_P */
+#line 4489 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with no data");
+}
+#line 41847 "preproc.c"
+ break;
+
+ case 603: /* opt_with_data: %empty */
+#line 4493 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41854 "preproc.c"
+ break;
+
+ case 604: /* CreateMatViewStmt: CREATE OptNoLog MATERIALIZED VIEW create_mv_target AS SelectStmt opt_with_data */
+#line 4500 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create"),(yyvsp[-6].str),mm_strdup("materialized view"),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41862 "preproc.c"
+ break;
+
+ case 605: /* CreateMatViewStmt: CREATE OptNoLog MATERIALIZED VIEW IF_P NOT EXISTS create_mv_target AS SelectStmt opt_with_data */
+#line 4504 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create"),(yyvsp[-9].str),mm_strdup("materialized view if not exists"),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41870 "preproc.c"
+ break;
+
+ case 606: /* create_mv_target: qualified_name opt_column_list table_access_method_clause opt_reloptions OptTableSpace */
+#line 4512 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41878 "preproc.c"
+ break;
+
+ case 607: /* OptNoLog: UNLOGGED */
+#line 4520 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unlogged");
+}
+#line 41886 "preproc.c"
+ break;
+
+ case 608: /* OptNoLog: %empty */
+#line 4524 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41893 "preproc.c"
+ break;
+
+ case 609: /* RefreshMatViewStmt: REFRESH MATERIALIZED VIEW opt_concurrently qualified_name opt_with_data */
+#line 4531 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("refresh materialized view"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41901 "preproc.c"
+ break;
+
+ case 610: /* CreateSeqStmt: CREATE OptTemp SEQUENCE qualified_name OptSeqOptList */
+#line 4539 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create"),(yyvsp[-3].str),mm_strdup("sequence"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41909 "preproc.c"
+ break;
+
+ case 611: /* CreateSeqStmt: CREATE OptTemp SEQUENCE IF_P NOT EXISTS qualified_name OptSeqOptList */
+#line 4543 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create"),(yyvsp[-6].str),mm_strdup("sequence if not exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41917 "preproc.c"
+ break;
+
+ case 612: /* AlterSeqStmt: ALTER SEQUENCE qualified_name SeqOptList */
+#line 4551 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter sequence"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41925 "preproc.c"
+ break;
+
+ case 613: /* AlterSeqStmt: ALTER SEQUENCE IF_P EXISTS qualified_name SeqOptList */
+#line 4555 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter sequence if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41933 "preproc.c"
+ break;
+
+ case 614: /* OptSeqOptList: SeqOptList */
+#line 4563 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41941 "preproc.c"
+ break;
+
+ case 615: /* OptSeqOptList: %empty */
+#line 4567 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41948 "preproc.c"
+ break;
+
+ case 616: /* OptParenthesizedSeqOptList: '(' SeqOptList ')' */
+#line 4574 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 41956 "preproc.c"
+ break;
+
+ case 617: /* OptParenthesizedSeqOptList: %empty */
+#line 4578 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 41963 "preproc.c"
+ break;
+
+ case 618: /* SeqOptList: SeqOptElem */
+#line 4585 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 41971 "preproc.c"
+ break;
+
+ case 619: /* SeqOptList: SeqOptList SeqOptElem */
+#line 4589 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 41979 "preproc.c"
+ break;
+
+ case 620: /* SeqOptElem: AS SimpleTypename */
+#line 4597 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("as"),(yyvsp[0].str));
+}
+#line 41987 "preproc.c"
+ break;
+
+ case 621: /* SeqOptElem: CACHE NumericOnly */
+#line 4601 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("cache"),(yyvsp[0].str));
+}
+#line 41995 "preproc.c"
+ break;
+
+ case 622: /* SeqOptElem: CYCLE */
+#line 4605 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cycle");
+}
+#line 42003 "preproc.c"
+ break;
+
+ case 623: /* SeqOptElem: NO CYCLE */
+#line 4609 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no cycle");
+}
+#line 42011 "preproc.c"
+ break;
+
+ case 624: /* SeqOptElem: INCREMENT opt_by NumericOnly */
+#line 4613 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("increment"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42019 "preproc.c"
+ break;
+
+ case 625: /* SeqOptElem: MAXVALUE NumericOnly */
+#line 4617 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("maxvalue"),(yyvsp[0].str));
+}
+#line 42027 "preproc.c"
+ break;
+
+ case 626: /* SeqOptElem: MINVALUE NumericOnly */
+#line 4621 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("minvalue"),(yyvsp[0].str));
+}
+#line 42035 "preproc.c"
+ break;
+
+ case 627: /* SeqOptElem: NO MAXVALUE */
+#line 4625 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no maxvalue");
+}
+#line 42043 "preproc.c"
+ break;
+
+ case 628: /* SeqOptElem: NO MINVALUE */
+#line 4629 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no minvalue");
+}
+#line 42051 "preproc.c"
+ break;
+
+ case 629: /* SeqOptElem: OWNED BY any_name */
+#line 4633 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("owned by"),(yyvsp[0].str));
+}
+#line 42059 "preproc.c"
+ break;
+
+ case 630: /* SeqOptElem: SEQUENCE NAME_P any_name */
+#line 4637 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("sequence name"),(yyvsp[0].str));
+}
+#line 42067 "preproc.c"
+ break;
+
+ case 631: /* SeqOptElem: START opt_with NumericOnly */
+#line 4641 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("start"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42075 "preproc.c"
+ break;
+
+ case 632: /* SeqOptElem: RESTART */
+#line 4645 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restart");
+}
+#line 42083 "preproc.c"
+ break;
+
+ case 633: /* SeqOptElem: RESTART opt_with NumericOnly */
+#line 4649 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("restart"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42091 "preproc.c"
+ break;
+
+ case 634: /* opt_by: BY */
+#line 4657 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("by");
+}
+#line 42099 "preproc.c"
+ break;
+
+ case 635: /* opt_by: %empty */
+#line 4661 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42106 "preproc.c"
+ break;
+
+ case 636: /* NumericOnly: ecpg_fconst */
+#line 4668 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42114 "preproc.c"
+ break;
+
+ case 637: /* NumericOnly: '+' ecpg_fconst */
+#line 4672 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("+"),(yyvsp[0].str));
+}
+#line 42122 "preproc.c"
+ break;
+
+ case 638: /* NumericOnly: '-' ecpg_fconst */
+#line 4676 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("-"),(yyvsp[0].str));
+}
+#line 42130 "preproc.c"
+ break;
+
+ case 639: /* NumericOnly: SignedIconst */
+#line 4680 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42138 "preproc.c"
+ break;
+
+ case 640: /* NumericOnly_list: NumericOnly */
+#line 4688 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42146 "preproc.c"
+ break;
+
+ case 641: /* NumericOnly_list: NumericOnly_list ',' NumericOnly */
+#line 4692 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 42154 "preproc.c"
+ break;
+
+ case 642: /* CreatePLangStmt: CREATE opt_or_replace opt_trusted opt_procedural LANGUAGE name */
+#line 4700 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("create"),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("language"),(yyvsp[0].str));
+}
+#line 42162 "preproc.c"
+ break;
+
+ case 643: /* CreatePLangStmt: CREATE opt_or_replace opt_trusted opt_procedural LANGUAGE name HANDLER handler_name opt_inline_handler opt_validator */
+#line 4704 "preproc.y"
+ {
+ (yyval.str) = cat_str(10,mm_strdup("create"),(yyvsp[-8].str),(yyvsp[-7].str),(yyvsp[-6].str),mm_strdup("language"),(yyvsp[-4].str),mm_strdup("handler"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42170 "preproc.c"
+ break;
+
+ case 644: /* opt_trusted: TRUSTED */
+#line 4712 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trusted");
+}
+#line 42178 "preproc.c"
+ break;
+
+ case 645: /* opt_trusted: %empty */
+#line 4716 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42185 "preproc.c"
+ break;
+
+ case 646: /* handler_name: name */
+#line 4723 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42193 "preproc.c"
+ break;
+
+ case 647: /* handler_name: name attrs */
+#line 4727 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42201 "preproc.c"
+ break;
+
+ case 648: /* opt_inline_handler: INLINE_P handler_name */
+#line 4735 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("inline"),(yyvsp[0].str));
+}
+#line 42209 "preproc.c"
+ break;
+
+ case 649: /* opt_inline_handler: %empty */
+#line 4739 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42216 "preproc.c"
+ break;
+
+ case 650: /* validator_clause: VALIDATOR handler_name */
+#line 4746 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("validator"),(yyvsp[0].str));
+}
+#line 42224 "preproc.c"
+ break;
+
+ case 651: /* validator_clause: NO VALIDATOR */
+#line 4750 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no validator");
+}
+#line 42232 "preproc.c"
+ break;
+
+ case 652: /* opt_validator: validator_clause */
+#line 4758 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42240 "preproc.c"
+ break;
+
+ case 653: /* opt_validator: %empty */
+#line 4762 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42247 "preproc.c"
+ break;
+
+ case 654: /* opt_procedural: PROCEDURAL */
+#line 4769 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("procedural");
+}
+#line 42255 "preproc.c"
+ break;
+
+ case 655: /* opt_procedural: %empty */
+#line 4773 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42262 "preproc.c"
+ break;
+
+ case 656: /* CreateTableSpaceStmt: CREATE TABLESPACE name OptTableSpaceOwner LOCATION ecpg_sconst opt_reloptions */
+#line 4780 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("create tablespace"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("location"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42270 "preproc.c"
+ break;
+
+ case 657: /* OptTableSpaceOwner: OWNER RoleSpec */
+#line 4788 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("owner"),(yyvsp[0].str));
+}
+#line 42278 "preproc.c"
+ break;
+
+ case 658: /* OptTableSpaceOwner: %empty */
+#line 4792 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42285 "preproc.c"
+ break;
+
+ case 659: /* DropTableSpaceStmt: DROP TABLESPACE name */
+#line 4799 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop tablespace"),(yyvsp[0].str));
+}
+#line 42293 "preproc.c"
+ break;
+
+ case 660: /* DropTableSpaceStmt: DROP TABLESPACE IF_P EXISTS name */
+#line 4803 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop tablespace if exists"),(yyvsp[0].str));
+}
+#line 42301 "preproc.c"
+ break;
+
+ case 661: /* CreateExtensionStmt: CREATE EXTENSION name opt_with create_extension_opt_list */
+#line 4811 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create extension"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42309 "preproc.c"
+ break;
+
+ case 662: /* CreateExtensionStmt: CREATE EXTENSION IF_P NOT EXISTS name opt_with create_extension_opt_list */
+#line 4815 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create extension if not exists"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42317 "preproc.c"
+ break;
+
+ case 663: /* create_extension_opt_list: create_extension_opt_list create_extension_opt_item */
+#line 4823 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42325 "preproc.c"
+ break;
+
+ case 664: /* create_extension_opt_list: %empty */
+#line 4827 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42332 "preproc.c"
+ break;
+
+ case 665: /* create_extension_opt_item: SCHEMA name */
+#line 4834 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("schema"),(yyvsp[0].str));
+}
+#line 42340 "preproc.c"
+ break;
+
+ case 666: /* create_extension_opt_item: VERSION_P NonReservedWord_or_Sconst */
+#line 4838 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("version"),(yyvsp[0].str));
+}
+#line 42348 "preproc.c"
+ break;
+
+ case 667: /* create_extension_opt_item: FROM NonReservedWord_or_Sconst */
+#line 4842 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(2,mm_strdup("from"),(yyvsp[0].str));
+}
+#line 42357 "preproc.c"
+ break;
+
+ case 668: /* create_extension_opt_item: CASCADE */
+#line 4847 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cascade");
+}
+#line 42365 "preproc.c"
+ break;
+
+ case 669: /* AlterExtensionStmt: ALTER EXTENSION name UPDATE alter_extension_opt_list */
+#line 4855 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter extension"),(yyvsp[-2].str),mm_strdup("update"),(yyvsp[0].str));
+}
+#line 42373 "preproc.c"
+ break;
+
+ case 670: /* alter_extension_opt_list: alter_extension_opt_list alter_extension_opt_item */
+#line 4863 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42381 "preproc.c"
+ break;
+
+ case 671: /* alter_extension_opt_list: %empty */
+#line 4867 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42388 "preproc.c"
+ break;
+
+ case 672: /* alter_extension_opt_item: TO NonReservedWord_or_Sconst */
+#line 4874 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("to"),(yyvsp[0].str));
+}
+#line 42396 "preproc.c"
+ break;
+
+ case 673: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop object_type_name name */
+#line 4882 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter extension"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42404 "preproc.c"
+ break;
+
+ case 674: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop object_type_any_name any_name */
+#line 4886 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter extension"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42412 "preproc.c"
+ break;
+
+ case 675: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop AGGREGATE aggregate_with_argtypes */
+#line 4890 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter extension"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("aggregate"),(yyvsp[0].str));
+}
+#line 42420 "preproc.c"
+ break;
+
+ case 676: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop CAST '(' Typename AS Typename ')' */
+#line 4894 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("alter extension"),(yyvsp[-7].str),(yyvsp[-6].str),mm_strdup("cast ("),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 42428 "preproc.c"
+ break;
+
+ case 677: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop DOMAIN_P Typename */
+#line 4898 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter extension"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("domain"),(yyvsp[0].str));
+}
+#line 42436 "preproc.c"
+ break;
+
+ case 678: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop FUNCTION function_with_argtypes */
+#line 4902 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter extension"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("function"),(yyvsp[0].str));
+}
+#line 42444 "preproc.c"
+ break;
+
+ case 679: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop OPERATOR operator_with_argtypes */
+#line 4906 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter extension"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("operator"),(yyvsp[0].str));
+}
+#line 42452 "preproc.c"
+ break;
+
+ case 680: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop OPERATOR CLASS any_name USING name */
+#line 4910 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter extension"),(yyvsp[-6].str),(yyvsp[-5].str),mm_strdup("operator class"),(yyvsp[-2].str),mm_strdup("using"),(yyvsp[0].str));
+}
+#line 42460 "preproc.c"
+ break;
+
+ case 681: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop OPERATOR FAMILY any_name USING name */
+#line 4914 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter extension"),(yyvsp[-6].str),(yyvsp[-5].str),mm_strdup("operator family"),(yyvsp[-2].str),mm_strdup("using"),(yyvsp[0].str));
+}
+#line 42468 "preproc.c"
+ break;
+
+ case 682: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop PROCEDURE function_with_argtypes */
+#line 4918 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter extension"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("procedure"),(yyvsp[0].str));
+}
+#line 42476 "preproc.c"
+ break;
+
+ case 683: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop ROUTINE function_with_argtypes */
+#line 4922 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter extension"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("routine"),(yyvsp[0].str));
+}
+#line 42484 "preproc.c"
+ break;
+
+ case 684: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop TRANSFORM FOR Typename LANGUAGE name */
+#line 4926 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter extension"),(yyvsp[-6].str),(yyvsp[-5].str),mm_strdup("transform for"),(yyvsp[-2].str),mm_strdup("language"),(yyvsp[0].str));
+}
+#line 42492 "preproc.c"
+ break;
+
+ case 685: /* AlterExtensionContentsStmt: ALTER EXTENSION name add_drop TYPE_P Typename */
+#line 4930 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter extension"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("type"),(yyvsp[0].str));
+}
+#line 42500 "preproc.c"
+ break;
+
+ case 686: /* CreateFdwStmt: CREATE FOREIGN DATA_P WRAPPER name opt_fdw_options create_generic_options */
+#line 4938 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create foreign data wrapper"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42508 "preproc.c"
+ break;
+
+ case 687: /* fdw_option: HANDLER handler_name */
+#line 4946 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("handler"),(yyvsp[0].str));
+}
+#line 42516 "preproc.c"
+ break;
+
+ case 688: /* fdw_option: NO HANDLER */
+#line 4950 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no handler");
+}
+#line 42524 "preproc.c"
+ break;
+
+ case 689: /* fdw_option: VALIDATOR handler_name */
+#line 4954 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("validator"),(yyvsp[0].str));
+}
+#line 42532 "preproc.c"
+ break;
+
+ case 690: /* fdw_option: NO VALIDATOR */
+#line 4958 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no validator");
+}
+#line 42540 "preproc.c"
+ break;
+
+ case 691: /* fdw_options: fdw_option */
+#line 4966 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42548 "preproc.c"
+ break;
+
+ case 692: /* fdw_options: fdw_options fdw_option */
+#line 4970 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42556 "preproc.c"
+ break;
+
+ case 693: /* opt_fdw_options: fdw_options */
+#line 4978 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42564 "preproc.c"
+ break;
+
+ case 694: /* opt_fdw_options: %empty */
+#line 4982 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42571 "preproc.c"
+ break;
+
+ case 695: /* AlterFdwStmt: ALTER FOREIGN DATA_P WRAPPER name opt_fdw_options alter_generic_options */
+#line 4989 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter foreign data wrapper"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42579 "preproc.c"
+ break;
+
+ case 696: /* AlterFdwStmt: ALTER FOREIGN DATA_P WRAPPER name fdw_options */
+#line 4993 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter foreign data wrapper"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42587 "preproc.c"
+ break;
+
+ case 697: /* create_generic_options: OPTIONS '(' generic_option_list ')' */
+#line 5001 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("options ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 42595 "preproc.c"
+ break;
+
+ case 698: /* create_generic_options: %empty */
+#line 5005 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42602 "preproc.c"
+ break;
+
+ case 699: /* generic_option_list: generic_option_elem */
+#line 5012 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42610 "preproc.c"
+ break;
+
+ case 700: /* generic_option_list: generic_option_list ',' generic_option_elem */
+#line 5016 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 42618 "preproc.c"
+ break;
+
+ case 701: /* alter_generic_options: OPTIONS '(' alter_generic_option_list ')' */
+#line 5024 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("options ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 42626 "preproc.c"
+ break;
+
+ case 702: /* alter_generic_option_list: alter_generic_option_elem */
+#line 5032 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42634 "preproc.c"
+ break;
+
+ case 703: /* alter_generic_option_list: alter_generic_option_list ',' alter_generic_option_elem */
+#line 5036 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 42642 "preproc.c"
+ break;
+
+ case 704: /* alter_generic_option_elem: generic_option_elem */
+#line 5044 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42650 "preproc.c"
+ break;
+
+ case 705: /* alter_generic_option_elem: SET generic_option_elem */
+#line 5048 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("set"),(yyvsp[0].str));
+}
+#line 42658 "preproc.c"
+ break;
+
+ case 706: /* alter_generic_option_elem: ADD_P generic_option_elem */
+#line 5052 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("add"),(yyvsp[0].str));
+}
+#line 42666 "preproc.c"
+ break;
+
+ case 707: /* alter_generic_option_elem: DROP generic_option_name */
+#line 5056 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop"),(yyvsp[0].str));
+}
+#line 42674 "preproc.c"
+ break;
+
+ case 708: /* generic_option_elem: generic_option_name generic_option_arg */
+#line 5064 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42682 "preproc.c"
+ break;
+
+ case 709: /* generic_option_name: ColLabel */
+#line 5072 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42690 "preproc.c"
+ break;
+
+ case 710: /* generic_option_arg: ecpg_sconst */
+#line 5080 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42698 "preproc.c"
+ break;
+
+ case 711: /* CreateForeignServerStmt: CREATE SERVER name opt_type opt_foreign_server_version FOREIGN DATA_P WRAPPER name create_generic_options */
+#line 5088 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create server"),(yyvsp[-7].str),(yyvsp[-6].str),(yyvsp[-5].str),mm_strdup("foreign data wrapper"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42706 "preproc.c"
+ break;
+
+ case 712: /* CreateForeignServerStmt: CREATE SERVER IF_P NOT EXISTS name opt_type opt_foreign_server_version FOREIGN DATA_P WRAPPER name create_generic_options */
+#line 5092 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create server if not exists"),(yyvsp[-7].str),(yyvsp[-6].str),(yyvsp[-5].str),mm_strdup("foreign data wrapper"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42714 "preproc.c"
+ break;
+
+ case 713: /* opt_type: TYPE_P ecpg_sconst */
+#line 5100 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("type"),(yyvsp[0].str));
+}
+#line 42722 "preproc.c"
+ break;
+
+ case 714: /* opt_type: %empty */
+#line 5104 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42729 "preproc.c"
+ break;
+
+ case 715: /* foreign_server_version: VERSION_P ecpg_sconst */
+#line 5111 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("version"),(yyvsp[0].str));
+}
+#line 42737 "preproc.c"
+ break;
+
+ case 716: /* foreign_server_version: VERSION_P NULL_P */
+#line 5115 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("version null");
+}
+#line 42745 "preproc.c"
+ break;
+
+ case 717: /* opt_foreign_server_version: foreign_server_version */
+#line 5123 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42753 "preproc.c"
+ break;
+
+ case 718: /* opt_foreign_server_version: %empty */
+#line 5127 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42760 "preproc.c"
+ break;
+
+ case 719: /* AlterForeignServerStmt: ALTER SERVER name foreign_server_version alter_generic_options */
+#line 5134 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter server"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42768 "preproc.c"
+ break;
+
+ case 720: /* AlterForeignServerStmt: ALTER SERVER name foreign_server_version */
+#line 5138 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter server"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42776 "preproc.c"
+ break;
+
+ case 721: /* AlterForeignServerStmt: ALTER SERVER name alter_generic_options */
+#line 5142 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter server"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42784 "preproc.c"
+ break;
+
+ case 722: /* CreateForeignTableStmt: CREATE FOREIGN TABLE qualified_name '(' OptTableElementList ')' OptInherit SERVER name create_generic_options */
+#line 5150 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("create foreign table"),(yyvsp[-7].str),mm_strdup("("),(yyvsp[-5].str),mm_strdup(")"),(yyvsp[-3].str),mm_strdup("server"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42792 "preproc.c"
+ break;
+
+ case 723: /* CreateForeignTableStmt: CREATE FOREIGN TABLE IF_P NOT EXISTS qualified_name '(' OptTableElementList ')' OptInherit SERVER name create_generic_options */
+#line 5154 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("create foreign table if not exists"),(yyvsp[-7].str),mm_strdup("("),(yyvsp[-5].str),mm_strdup(")"),(yyvsp[-3].str),mm_strdup("server"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42800 "preproc.c"
+ break;
+
+ case 724: /* CreateForeignTableStmt: CREATE FOREIGN TABLE qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec SERVER name create_generic_options */
+#line 5158 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("create foreign table"),(yyvsp[-8].str),mm_strdup("partition of"),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("server"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42808 "preproc.c"
+ break;
+
+ case 725: /* CreateForeignTableStmt: CREATE FOREIGN TABLE IF_P NOT EXISTS qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec SERVER name create_generic_options */
+#line 5162 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("create foreign table if not exists"),(yyvsp[-8].str),mm_strdup("partition of"),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("server"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42816 "preproc.c"
+ break;
+
+ case 726: /* ImportForeignSchemaStmt: IMPORT_P FOREIGN SCHEMA name import_qualification FROM SERVER name INTO name create_generic_options */
+#line 5170 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("import foreign schema"),(yyvsp[-7].str),(yyvsp[-6].str),mm_strdup("from server"),(yyvsp[-3].str),mm_strdup("into"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42824 "preproc.c"
+ break;
+
+ case 727: /* import_qualification_type: LIMIT TO */
+#line 5178 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("limit to");
+}
+#line 42832 "preproc.c"
+ break;
+
+ case 728: /* import_qualification_type: EXCEPT */
+#line 5182 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("except");
+}
+#line 42840 "preproc.c"
+ break;
+
+ case 729: /* import_qualification: import_qualification_type '(' relation_expr_list ')' */
+#line 5190 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 42848 "preproc.c"
+ break;
+
+ case 730: /* import_qualification: %empty */
+#line 5194 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42855 "preproc.c"
+ break;
+
+ case 731: /* CreateUserMappingStmt: CREATE USER MAPPING FOR auth_ident SERVER name create_generic_options */
+#line 5201 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create user mapping for"),(yyvsp[-3].str),mm_strdup("server"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42863 "preproc.c"
+ break;
+
+ case 732: /* CreateUserMappingStmt: CREATE USER MAPPING IF_P NOT EXISTS FOR auth_ident SERVER name create_generic_options */
+#line 5205 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create user mapping if not exists for"),(yyvsp[-3].str),mm_strdup("server"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42871 "preproc.c"
+ break;
+
+ case 733: /* auth_ident: RoleSpec */
+#line 5213 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 42879 "preproc.c"
+ break;
+
+ case 734: /* auth_ident: USER */
+#line 5217 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("user");
+}
+#line 42887 "preproc.c"
+ break;
+
+ case 735: /* DropUserMappingStmt: DROP USER MAPPING FOR auth_ident SERVER name */
+#line 5225 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("drop user mapping for"),(yyvsp[-2].str),mm_strdup("server"),(yyvsp[0].str));
+}
+#line 42895 "preproc.c"
+ break;
+
+ case 736: /* DropUserMappingStmt: DROP USER MAPPING IF_P EXISTS FOR auth_ident SERVER name */
+#line 5229 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("drop user mapping if exists for"),(yyvsp[-2].str),mm_strdup("server"),(yyvsp[0].str));
+}
+#line 42903 "preproc.c"
+ break;
+
+ case 737: /* AlterUserMappingStmt: ALTER USER MAPPING FOR auth_ident SERVER name alter_generic_options */
+#line 5237 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter user mapping for"),(yyvsp[-3].str),mm_strdup("server"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42911 "preproc.c"
+ break;
+
+ case 738: /* CreatePolicyStmt: CREATE POLICY name ON qualified_name RowSecurityDefaultPermissive RowSecurityDefaultForCmd RowSecurityDefaultToRole RowSecurityOptionalExpr RowSecurityOptionalWithCheck */
+#line 5245 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("create policy"),(yyvsp[-7].str),mm_strdup("on"),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42919 "preproc.c"
+ break;
+
+ case 739: /* AlterPolicyStmt: ALTER POLICY name ON qualified_name RowSecurityOptionalToRole RowSecurityOptionalExpr RowSecurityOptionalWithCheck */
+#line 5253 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter policy"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 42927 "preproc.c"
+ break;
+
+ case 740: /* RowSecurityOptionalExpr: USING '(' a_expr ')' */
+#line 5261 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("using ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 42935 "preproc.c"
+ break;
+
+ case 741: /* RowSecurityOptionalExpr: %empty */
+#line 5265 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42942 "preproc.c"
+ break;
+
+ case 742: /* RowSecurityOptionalWithCheck: WITH CHECK '(' a_expr ')' */
+#line 5272 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("with check ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 42950 "preproc.c"
+ break;
+
+ case 743: /* RowSecurityOptionalWithCheck: %empty */
+#line 5276 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42957 "preproc.c"
+ break;
+
+ case 744: /* RowSecurityDefaultToRole: TO role_list */
+#line 5283 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("to"),(yyvsp[0].str));
+}
+#line 42965 "preproc.c"
+ break;
+
+ case 745: /* RowSecurityDefaultToRole: %empty */
+#line 5287 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42972 "preproc.c"
+ break;
+
+ case 746: /* RowSecurityOptionalToRole: TO role_list */
+#line 5294 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("to"),(yyvsp[0].str));
+}
+#line 42980 "preproc.c"
+ break;
+
+ case 747: /* RowSecurityOptionalToRole: %empty */
+#line 5298 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 42987 "preproc.c"
+ break;
+
+ case 748: /* RowSecurityDefaultPermissive: AS ecpg_ident */
+#line 5305 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("as"),(yyvsp[0].str));
+}
+#line 42995 "preproc.c"
+ break;
+
+ case 749: /* RowSecurityDefaultPermissive: %empty */
+#line 5309 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43002 "preproc.c"
+ break;
+
+ case 750: /* RowSecurityDefaultForCmd: FOR row_security_cmd */
+#line 5316 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("for"),(yyvsp[0].str));
+}
+#line 43010 "preproc.c"
+ break;
+
+ case 751: /* RowSecurityDefaultForCmd: %empty */
+#line 5320 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43017 "preproc.c"
+ break;
+
+ case 752: /* row_security_cmd: ALL */
+#line 5327 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 43025 "preproc.c"
+ break;
+
+ case 753: /* row_security_cmd: SELECT */
+#line 5331 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("select");
+}
+#line 43033 "preproc.c"
+ break;
+
+ case 754: /* row_security_cmd: INSERT */
+#line 5335 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("insert");
+}
+#line 43041 "preproc.c"
+ break;
+
+ case 755: /* row_security_cmd: UPDATE */
+#line 5339 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("update");
+}
+#line 43049 "preproc.c"
+ break;
+
+ case 756: /* row_security_cmd: DELETE_P */
+#line 5343 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delete");
+}
+#line 43057 "preproc.c"
+ break;
+
+ case 757: /* CreateAmStmt: CREATE ACCESS METHOD name TYPE_P am_type HANDLER handler_name */
+#line 5351 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("create access method"),(yyvsp[-4].str),mm_strdup("type"),(yyvsp[-2].str),mm_strdup("handler"),(yyvsp[0].str));
+}
+#line 43065 "preproc.c"
+ break;
+
+ case 758: /* am_type: INDEX */
+#line 5359 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("index");
+}
+#line 43073 "preproc.c"
+ break;
+
+ case 759: /* am_type: TABLE */
+#line 5363 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("table");
+}
+#line 43081 "preproc.c"
+ break;
+
+ case 760: /* CreateTrigStmt: CREATE opt_or_replace TRIGGER name TriggerActionTime TriggerEvents ON qualified_name TriggerReferencing TriggerForSpec TriggerWhen EXECUTE FUNCTION_or_PROCEDURE func_name '(' TriggerFuncArgs ')' */
+#line 5371 "preproc.y"
+ {
+ (yyval.str) = cat_str(17,mm_strdup("create"),(yyvsp[-15].str),mm_strdup("trigger"),(yyvsp[-13].str),(yyvsp[-12].str),(yyvsp[-11].str),mm_strdup("on"),(yyvsp[-9].str),(yyvsp[-8].str),(yyvsp[-7].str),(yyvsp[-6].str),mm_strdup("execute"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 43089 "preproc.c"
+ break;
+
+ case 761: /* CreateTrigStmt: CREATE opt_or_replace CONSTRAINT TRIGGER name AFTER TriggerEvents ON qualified_name OptConstrFromTable ConstraintAttributeSpec FOR EACH ROW TriggerWhen EXECUTE FUNCTION_or_PROCEDURE func_name '(' TriggerFuncArgs ')' */
+#line 5375 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(18,mm_strdup("create"),(yyvsp[-19].str),mm_strdup("constraint trigger"),(yyvsp[-16].str),mm_strdup("after"),(yyvsp[-14].str),mm_strdup("on"),(yyvsp[-12].str),(yyvsp[-11].str),(yyvsp[-10].str),mm_strdup("for each row"),(yyvsp[-6].str),mm_strdup("execute"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 43098 "preproc.c"
+ break;
+
+ case 762: /* TriggerActionTime: BEFORE */
+#line 5384 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("before");
+}
+#line 43106 "preproc.c"
+ break;
+
+ case 763: /* TriggerActionTime: AFTER */
+#line 5388 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("after");
+}
+#line 43114 "preproc.c"
+ break;
+
+ case 764: /* TriggerActionTime: INSTEAD OF */
+#line 5392 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("instead of");
+}
+#line 43122 "preproc.c"
+ break;
+
+ case 765: /* TriggerEvents: TriggerOneEvent */
+#line 5400 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43130 "preproc.c"
+ break;
+
+ case 766: /* TriggerEvents: TriggerEvents OR TriggerOneEvent */
+#line 5404 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("or"),(yyvsp[0].str));
+}
+#line 43138 "preproc.c"
+ break;
+
+ case 767: /* TriggerOneEvent: INSERT */
+#line 5412 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("insert");
+}
+#line 43146 "preproc.c"
+ break;
+
+ case 768: /* TriggerOneEvent: DELETE_P */
+#line 5416 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delete");
+}
+#line 43154 "preproc.c"
+ break;
+
+ case 769: /* TriggerOneEvent: UPDATE */
+#line 5420 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("update");
+}
+#line 43162 "preproc.c"
+ break;
+
+ case 770: /* TriggerOneEvent: UPDATE OF columnList */
+#line 5424 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("update of"),(yyvsp[0].str));
+}
+#line 43170 "preproc.c"
+ break;
+
+ case 771: /* TriggerOneEvent: TRUNCATE */
+#line 5428 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("truncate");
+}
+#line 43178 "preproc.c"
+ break;
+
+ case 772: /* TriggerReferencing: REFERENCING TriggerTransitions */
+#line 5436 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("referencing"),(yyvsp[0].str));
+}
+#line 43186 "preproc.c"
+ break;
+
+ case 773: /* TriggerReferencing: %empty */
+#line 5440 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43193 "preproc.c"
+ break;
+
+ case 774: /* TriggerTransitions: TriggerTransition */
+#line 5447 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43201 "preproc.c"
+ break;
+
+ case 775: /* TriggerTransitions: TriggerTransitions TriggerTransition */
+#line 5451 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43209 "preproc.c"
+ break;
+
+ case 776: /* TriggerTransition: TransitionOldOrNew TransitionRowOrTable opt_as TransitionRelName */
+#line 5459 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43217 "preproc.c"
+ break;
+
+ case 777: /* TransitionOldOrNew: NEW */
+#line 5467 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("new");
+}
+#line 43225 "preproc.c"
+ break;
+
+ case 778: /* TransitionOldOrNew: OLD */
+#line 5471 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("old");
+}
+#line 43233 "preproc.c"
+ break;
+
+ case 779: /* TransitionRowOrTable: TABLE */
+#line 5479 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("table");
+}
+#line 43241 "preproc.c"
+ break;
+
+ case 780: /* TransitionRowOrTable: ROW */
+#line 5483 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("row");
+}
+#line 43249 "preproc.c"
+ break;
+
+ case 781: /* TransitionRelName: ColId */
+#line 5491 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43257 "preproc.c"
+ break;
+
+ case 782: /* TriggerForSpec: FOR TriggerForOptEach TriggerForType */
+#line 5499 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("for"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43265 "preproc.c"
+ break;
+
+ case 783: /* TriggerForSpec: %empty */
+#line 5503 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43272 "preproc.c"
+ break;
+
+ case 784: /* TriggerForOptEach: EACH */
+#line 5510 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("each");
+}
+#line 43280 "preproc.c"
+ break;
+
+ case 785: /* TriggerForOptEach: %empty */
+#line 5514 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43287 "preproc.c"
+ break;
+
+ case 786: /* TriggerForType: ROW */
+#line 5521 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("row");
+}
+#line 43295 "preproc.c"
+ break;
+
+ case 787: /* TriggerForType: STATEMENT */
+#line 5525 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("statement");
+}
+#line 43303 "preproc.c"
+ break;
+
+ case 788: /* TriggerWhen: WHEN '(' a_expr ')' */
+#line 5533 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("when ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 43311 "preproc.c"
+ break;
+
+ case 789: /* TriggerWhen: %empty */
+#line 5537 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43318 "preproc.c"
+ break;
+
+ case 790: /* FUNCTION_or_PROCEDURE: FUNCTION */
+#line 5544 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("function");
+}
+#line 43326 "preproc.c"
+ break;
+
+ case 791: /* FUNCTION_or_PROCEDURE: PROCEDURE */
+#line 5548 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("procedure");
+}
+#line 43334 "preproc.c"
+ break;
+
+ case 792: /* TriggerFuncArgs: TriggerFuncArg */
+#line 5556 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43342 "preproc.c"
+ break;
+
+ case 793: /* TriggerFuncArgs: TriggerFuncArgs ',' TriggerFuncArg */
+#line 5560 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 43350 "preproc.c"
+ break;
+
+ case 794: /* TriggerFuncArgs: %empty */
+#line 5564 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43357 "preproc.c"
+ break;
+
+ case 795: /* TriggerFuncArg: Iconst */
+#line 5571 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43365 "preproc.c"
+ break;
+
+ case 796: /* TriggerFuncArg: ecpg_fconst */
+#line 5575 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43373 "preproc.c"
+ break;
+
+ case 797: /* TriggerFuncArg: ecpg_sconst */
+#line 5579 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43381 "preproc.c"
+ break;
+
+ case 798: /* TriggerFuncArg: ColLabel */
+#line 5583 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43389 "preproc.c"
+ break;
+
+ case 799: /* OptConstrFromTable: FROM qualified_name */
+#line 5591 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("from"),(yyvsp[0].str));
+}
+#line 43397 "preproc.c"
+ break;
+
+ case 800: /* OptConstrFromTable: %empty */
+#line 5595 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43404 "preproc.c"
+ break;
+
+ case 801: /* ConstraintAttributeSpec: %empty */
+#line 5602 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43411 "preproc.c"
+ break;
+
+ case 802: /* ConstraintAttributeSpec: ConstraintAttributeSpec ConstraintAttributeElem */
+#line 5605 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43419 "preproc.c"
+ break;
+
+ case 803: /* ConstraintAttributeElem: NOT DEFERRABLE */
+#line 5613 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not deferrable");
+}
+#line 43427 "preproc.c"
+ break;
+
+ case 804: /* ConstraintAttributeElem: DEFERRABLE */
+#line 5617 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deferrable");
+}
+#line 43435 "preproc.c"
+ break;
+
+ case 805: /* ConstraintAttributeElem: INITIALLY IMMEDIATE */
+#line 5621 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("initially immediate");
+}
+#line 43443 "preproc.c"
+ break;
+
+ case 806: /* ConstraintAttributeElem: INITIALLY DEFERRED */
+#line 5625 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("initially deferred");
+}
+#line 43451 "preproc.c"
+ break;
+
+ case 807: /* ConstraintAttributeElem: NOT VALID */
+#line 5629 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not valid");
+}
+#line 43459 "preproc.c"
+ break;
+
+ case 808: /* ConstraintAttributeElem: NO INHERIT */
+#line 5633 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no inherit");
+}
+#line 43467 "preproc.c"
+ break;
+
+ case 809: /* CreateEventTrigStmt: CREATE EVENT TRIGGER name ON ColLabel EXECUTE FUNCTION_or_PROCEDURE func_name '(' ')' */
+#line 5641 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("create event trigger"),(yyvsp[-7].str),mm_strdup("on"),(yyvsp[-5].str),mm_strdup("execute"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("( )"));
+}
+#line 43475 "preproc.c"
+ break;
+
+ case 810: /* CreateEventTrigStmt: CREATE EVENT TRIGGER name ON ColLabel WHEN event_trigger_when_list EXECUTE FUNCTION_or_PROCEDURE func_name '(' ')' */
+#line 5645 "preproc.y"
+ {
+ (yyval.str) = cat_str(10,mm_strdup("create event trigger"),(yyvsp[-9].str),mm_strdup("on"),(yyvsp[-7].str),mm_strdup("when"),(yyvsp[-5].str),mm_strdup("execute"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("( )"));
+}
+#line 43483 "preproc.c"
+ break;
+
+ case 811: /* event_trigger_when_list: event_trigger_when_item */
+#line 5653 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43491 "preproc.c"
+ break;
+
+ case 812: /* event_trigger_when_list: event_trigger_when_list AND event_trigger_when_item */
+#line 5657 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("and"),(yyvsp[0].str));
+}
+#line 43499 "preproc.c"
+ break;
+
+ case 813: /* event_trigger_when_item: ColId IN_P '(' event_trigger_value_list ')' */
+#line 5665 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-4].str),mm_strdup("in ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 43507 "preproc.c"
+ break;
+
+ case 814: /* event_trigger_value_list: SCONST */
+#line 5673 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sconst");
+}
+#line 43515 "preproc.c"
+ break;
+
+ case 815: /* event_trigger_value_list: event_trigger_value_list ',' SCONST */
+#line 5677 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup(", sconst"));
+}
+#line 43523 "preproc.c"
+ break;
+
+ case 816: /* AlterEventTrigStmt: ALTER EVENT TRIGGER name enable_trigger */
+#line 5685 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter event trigger"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43531 "preproc.c"
+ break;
+
+ case 817: /* enable_trigger: ENABLE_P */
+#line 5693 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enable");
+}
+#line 43539 "preproc.c"
+ break;
+
+ case 818: /* enable_trigger: ENABLE_P REPLICA */
+#line 5697 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enable replica");
+}
+#line 43547 "preproc.c"
+ break;
+
+ case 819: /* enable_trigger: ENABLE_P ALWAYS */
+#line 5701 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enable always");
+}
+#line 43555 "preproc.c"
+ break;
+
+ case 820: /* enable_trigger: DISABLE_P */
+#line 5705 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("disable");
+}
+#line 43563 "preproc.c"
+ break;
+
+ case 821: /* CreateAssertionStmt: CREATE ASSERTION any_name CHECK '(' a_expr ')' ConstraintAttributeSpec */
+#line 5713 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(6,mm_strdup("create assertion"),(yyvsp[-5].str),mm_strdup("check ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 43572 "preproc.c"
+ break;
+
+ case 822: /* DefineStmt: CREATE opt_or_replace AGGREGATE func_name aggr_args definition */
+#line 5722 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("create"),(yyvsp[-4].str),mm_strdup("aggregate"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43580 "preproc.c"
+ break;
+
+ case 823: /* DefineStmt: CREATE opt_or_replace AGGREGATE func_name old_aggr_definition */
+#line 5726 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create"),(yyvsp[-3].str),mm_strdup("aggregate"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43588 "preproc.c"
+ break;
+
+ case 824: /* DefineStmt: CREATE OPERATOR any_operator definition */
+#line 5730 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create operator"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43596 "preproc.c"
+ break;
+
+ case 825: /* DefineStmt: CREATE TYPE_P any_name definition */
+#line 5734 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create type"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43604 "preproc.c"
+ break;
+
+ case 826: /* DefineStmt: CREATE TYPE_P any_name */
+#line 5738 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("create type"),(yyvsp[0].str));
+}
+#line 43612 "preproc.c"
+ break;
+
+ case 827: /* DefineStmt: CREATE TYPE_P any_name AS '(' OptTableFuncElementList ')' */
+#line 5742 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create type"),(yyvsp[-4].str),mm_strdup("as ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 43620 "preproc.c"
+ break;
+
+ case 828: /* DefineStmt: CREATE TYPE_P any_name AS ENUM_P '(' opt_enum_val_list ')' */
+#line 5746 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create type"),(yyvsp[-5].str),mm_strdup("as enum ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 43628 "preproc.c"
+ break;
+
+ case 829: /* DefineStmt: CREATE TYPE_P any_name AS RANGE definition */
+#line 5750 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create type"),(yyvsp[-3].str),mm_strdup("as range"),(yyvsp[0].str));
+}
+#line 43636 "preproc.c"
+ break;
+
+ case 830: /* DefineStmt: CREATE TEXT_P SEARCH PARSER any_name definition */
+#line 5754 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create text search parser"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43644 "preproc.c"
+ break;
+
+ case 831: /* DefineStmt: CREATE TEXT_P SEARCH DICTIONARY any_name definition */
+#line 5758 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create text search dictionary"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43652 "preproc.c"
+ break;
+
+ case 832: /* DefineStmt: CREATE TEXT_P SEARCH TEMPLATE any_name definition */
+#line 5762 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create text search template"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43660 "preproc.c"
+ break;
+
+ case 833: /* DefineStmt: CREATE TEXT_P SEARCH CONFIGURATION any_name definition */
+#line 5766 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create text search configuration"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43668 "preproc.c"
+ break;
+
+ case 834: /* DefineStmt: CREATE COLLATION any_name definition */
+#line 5770 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create collation"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43676 "preproc.c"
+ break;
+
+ case 835: /* DefineStmt: CREATE COLLATION IF_P NOT EXISTS any_name definition */
+#line 5774 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create collation if not exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43684 "preproc.c"
+ break;
+
+ case 836: /* DefineStmt: CREATE COLLATION any_name FROM any_name */
+#line 5778 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create collation"),(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 43692 "preproc.c"
+ break;
+
+ case 837: /* DefineStmt: CREATE COLLATION IF_P NOT EXISTS any_name FROM any_name */
+#line 5782 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create collation if not exists"),(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 43700 "preproc.c"
+ break;
+
+ case 838: /* definition: '(' def_list ')' */
+#line 5790 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 43708 "preproc.c"
+ break;
+
+ case 839: /* def_list: def_elem */
+#line 5798 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43716 "preproc.c"
+ break;
+
+ case 840: /* def_list: def_list ',' def_elem */
+#line 5802 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 43724 "preproc.c"
+ break;
+
+ case 841: /* def_elem: ColLabel '=' def_arg */
+#line 5810 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 43732 "preproc.c"
+ break;
+
+ case 842: /* def_elem: ColLabel */
+#line 5814 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43740 "preproc.c"
+ break;
+
+ case 843: /* def_arg: func_type */
+#line 5822 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43748 "preproc.c"
+ break;
+
+ case 844: /* def_arg: reserved_keyword */
+#line 5826 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43756 "preproc.c"
+ break;
+
+ case 845: /* def_arg: qual_all_Op */
+#line 5830 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43764 "preproc.c"
+ break;
+
+ case 846: /* def_arg: NumericOnly */
+#line 5834 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43772 "preproc.c"
+ break;
+
+ case 847: /* def_arg: ecpg_sconst */
+#line 5838 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43780 "preproc.c"
+ break;
+
+ case 848: /* def_arg: NONE */
+#line 5842 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("none");
+}
+#line 43788 "preproc.c"
+ break;
+
+ case 849: /* old_aggr_definition: '(' old_aggr_list ')' */
+#line 5850 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 43796 "preproc.c"
+ break;
+
+ case 850: /* old_aggr_list: old_aggr_elem */
+#line 5858 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43804 "preproc.c"
+ break;
+
+ case 851: /* old_aggr_list: old_aggr_list ',' old_aggr_elem */
+#line 5862 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 43812 "preproc.c"
+ break;
+
+ case 852: /* old_aggr_elem: ecpg_ident '=' def_arg */
+#line 5870 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 43820 "preproc.c"
+ break;
+
+ case 853: /* opt_enum_val_list: enum_val_list */
+#line 5878 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43828 "preproc.c"
+ break;
+
+ case 854: /* opt_enum_val_list: %empty */
+#line 5882 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43835 "preproc.c"
+ break;
+
+ case 855: /* enum_val_list: ecpg_sconst */
+#line 5889 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43843 "preproc.c"
+ break;
+
+ case 856: /* enum_val_list: enum_val_list ',' ecpg_sconst */
+#line 5893 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 43851 "preproc.c"
+ break;
+
+ case 857: /* AlterEnumStmt: ALTER TYPE_P any_name ADD_P VALUE_P opt_if_not_exists ecpg_sconst */
+#line 5901 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter type"),(yyvsp[-4].str),mm_strdup("add value"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43859 "preproc.c"
+ break;
+
+ case 858: /* AlterEnumStmt: ALTER TYPE_P any_name ADD_P VALUE_P opt_if_not_exists ecpg_sconst BEFORE ecpg_sconst */
+#line 5905 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter type"),(yyvsp[-6].str),mm_strdup("add value"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("before"),(yyvsp[0].str));
+}
+#line 43867 "preproc.c"
+ break;
+
+ case 859: /* AlterEnumStmt: ALTER TYPE_P any_name ADD_P VALUE_P opt_if_not_exists ecpg_sconst AFTER ecpg_sconst */
+#line 5909 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter type"),(yyvsp[-6].str),mm_strdup("add value"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("after"),(yyvsp[0].str));
+}
+#line 43875 "preproc.c"
+ break;
+
+ case 860: /* AlterEnumStmt: ALTER TYPE_P any_name RENAME VALUE_P ecpg_sconst TO ecpg_sconst */
+#line 5913 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter type"),(yyvsp[-5].str),mm_strdup("rename value"),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 43883 "preproc.c"
+ break;
+
+ case 861: /* opt_if_not_exists: IF_P NOT EXISTS */
+#line 5921 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("if not exists");
+}
+#line 43891 "preproc.c"
+ break;
+
+ case 862: /* opt_if_not_exists: %empty */
+#line 5925 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43898 "preproc.c"
+ break;
+
+ case 863: /* CreateOpClassStmt: CREATE OPERATOR CLASS any_name opt_default FOR TYPE_P Typename USING name opt_opfamily AS opclass_item_list */
+#line 5932 "preproc.y"
+ {
+ (yyval.str) = cat_str(10,mm_strdup("create operator class"),(yyvsp[-9].str),(yyvsp[-8].str),mm_strdup("for type"),(yyvsp[-5].str),mm_strdup("using"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("as"),(yyvsp[0].str));
+}
+#line 43906 "preproc.c"
+ break;
+
+ case 864: /* opclass_item_list: opclass_item */
+#line 5940 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 43914 "preproc.c"
+ break;
+
+ case 865: /* opclass_item_list: opclass_item_list ',' opclass_item */
+#line 5944 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 43922 "preproc.c"
+ break;
+
+ case 866: /* opclass_item: OPERATOR Iconst any_operator opclass_purpose opt_recheck */
+#line 5952 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("operator"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43930 "preproc.c"
+ break;
+
+ case 867: /* opclass_item: OPERATOR Iconst operator_with_argtypes opclass_purpose opt_recheck */
+#line 5956 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("operator"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43938 "preproc.c"
+ break;
+
+ case 868: /* opclass_item: FUNCTION Iconst function_with_argtypes */
+#line 5960 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("function"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 43946 "preproc.c"
+ break;
+
+ case 869: /* opclass_item: FUNCTION Iconst '(' type_list ')' function_with_argtypes */
+#line 5964 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("function"),(yyvsp[-4].str),mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 43954 "preproc.c"
+ break;
+
+ case 870: /* opclass_item: STORAGE Typename */
+#line 5968 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("storage"),(yyvsp[0].str));
+}
+#line 43962 "preproc.c"
+ break;
+
+ case 871: /* opt_default: DEFAULT */
+#line 5976 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("default");
+}
+#line 43970 "preproc.c"
+ break;
+
+ case 872: /* opt_default: %empty */
+#line 5980 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43977 "preproc.c"
+ break;
+
+ case 873: /* opt_opfamily: FAMILY any_name */
+#line 5987 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("family"),(yyvsp[0].str));
+}
+#line 43985 "preproc.c"
+ break;
+
+ case 874: /* opt_opfamily: %empty */
+#line 5991 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 43992 "preproc.c"
+ break;
+
+ case 875: /* opclass_purpose: FOR SEARCH */
+#line 5998 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("for search");
+}
+#line 44000 "preproc.c"
+ break;
+
+ case 876: /* opclass_purpose: FOR ORDER BY any_name */
+#line 6002 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("for order by"),(yyvsp[0].str));
+}
+#line 44008 "preproc.c"
+ break;
+
+ case 877: /* opclass_purpose: %empty */
+#line 6006 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 44015 "preproc.c"
+ break;
+
+ case 878: /* opt_recheck: RECHECK */
+#line 6013 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = mm_strdup("recheck");
+}
+#line 44024 "preproc.c"
+ break;
+
+ case 879: /* opt_recheck: %empty */
+#line 6018 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 44031 "preproc.c"
+ break;
+
+ case 880: /* CreateOpFamilyStmt: CREATE OPERATOR FAMILY any_name USING name */
+#line 6025 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create operator family"),(yyvsp[-2].str),mm_strdup("using"),(yyvsp[0].str));
+}
+#line 44039 "preproc.c"
+ break;
+
+ case 881: /* AlterOpFamilyStmt: ALTER OPERATOR FAMILY any_name USING name ADD_P opclass_item_list */
+#line 6033 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter operator family"),(yyvsp[-4].str),mm_strdup("using"),(yyvsp[-2].str),mm_strdup("add"),(yyvsp[0].str));
+}
+#line 44047 "preproc.c"
+ break;
+
+ case 882: /* AlterOpFamilyStmt: ALTER OPERATOR FAMILY any_name USING name DROP opclass_drop_list */
+#line 6037 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter operator family"),(yyvsp[-4].str),mm_strdup("using"),(yyvsp[-2].str),mm_strdup("drop"),(yyvsp[0].str));
+}
+#line 44055 "preproc.c"
+ break;
+
+ case 883: /* opclass_drop_list: opclass_drop */
+#line 6045 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 44063 "preproc.c"
+ break;
+
+ case 884: /* opclass_drop_list: opclass_drop_list ',' opclass_drop */
+#line 6049 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 44071 "preproc.c"
+ break;
+
+ case 885: /* opclass_drop: OPERATOR Iconst '(' type_list ')' */
+#line 6057 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("operator"),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 44079 "preproc.c"
+ break;
+
+ case 886: /* opclass_drop: FUNCTION Iconst '(' type_list ')' */
+#line 6061 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("function"),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 44087 "preproc.c"
+ break;
+
+ case 887: /* DropOpClassStmt: DROP OPERATOR CLASS any_name USING name opt_drop_behavior */
+#line 6069 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("drop operator class"),(yyvsp[-3].str),mm_strdup("using"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44095 "preproc.c"
+ break;
+
+ case 888: /* DropOpClassStmt: DROP OPERATOR CLASS IF_P EXISTS any_name USING name opt_drop_behavior */
+#line 6073 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("drop operator class if exists"),(yyvsp[-3].str),mm_strdup("using"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44103 "preproc.c"
+ break;
+
+ case 889: /* DropOpFamilyStmt: DROP OPERATOR FAMILY any_name USING name opt_drop_behavior */
+#line 6081 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("drop operator family"),(yyvsp[-3].str),mm_strdup("using"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44111 "preproc.c"
+ break;
+
+ case 890: /* DropOpFamilyStmt: DROP OPERATOR FAMILY IF_P EXISTS any_name USING name opt_drop_behavior */
+#line 6085 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("drop operator family if exists"),(yyvsp[-3].str),mm_strdup("using"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44119 "preproc.c"
+ break;
+
+ case 891: /* DropOwnedStmt: DROP OWNED BY role_list opt_drop_behavior */
+#line 6093 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop owned by"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44127 "preproc.c"
+ break;
+
+ case 892: /* ReassignOwnedStmt: REASSIGN OWNED BY role_list TO RoleSpec */
+#line 6101 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("reassign owned by"),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 44135 "preproc.c"
+ break;
+
+ case 893: /* DropStmt: DROP object_type_any_name IF_P EXISTS any_name_list opt_drop_behavior */
+#line 6109 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("drop"),(yyvsp[-4].str),mm_strdup("if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44143 "preproc.c"
+ break;
+
+ case 894: /* DropStmt: DROP object_type_any_name any_name_list opt_drop_behavior */
+#line 6113 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("drop"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44151 "preproc.c"
+ break;
+
+ case 895: /* DropStmt: DROP drop_type_name IF_P EXISTS name_list opt_drop_behavior */
+#line 6117 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("drop"),(yyvsp[-4].str),mm_strdup("if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44159 "preproc.c"
+ break;
+
+ case 896: /* DropStmt: DROP drop_type_name name_list opt_drop_behavior */
+#line 6121 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("drop"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44167 "preproc.c"
+ break;
+
+ case 897: /* DropStmt: DROP object_type_name_on_any_name name ON any_name opt_drop_behavior */
+#line 6125 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("drop"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("on"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44175 "preproc.c"
+ break;
+
+ case 898: /* DropStmt: DROP object_type_name_on_any_name IF_P EXISTS name ON any_name opt_drop_behavior */
+#line 6129 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("drop"),(yyvsp[-6].str),mm_strdup("if exists"),(yyvsp[-3].str),mm_strdup("on"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44183 "preproc.c"
+ break;
+
+ case 899: /* DropStmt: DROP TYPE_P type_name_list opt_drop_behavior */
+#line 6133 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop type"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44191 "preproc.c"
+ break;
+
+ case 900: /* DropStmt: DROP TYPE_P IF_P EXISTS type_name_list opt_drop_behavior */
+#line 6137 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop type if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44199 "preproc.c"
+ break;
+
+ case 901: /* DropStmt: DROP DOMAIN_P type_name_list opt_drop_behavior */
+#line 6141 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop domain"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44207 "preproc.c"
+ break;
+
+ case 902: /* DropStmt: DROP DOMAIN_P IF_P EXISTS type_name_list opt_drop_behavior */
+#line 6145 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop domain if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44215 "preproc.c"
+ break;
+
+ case 903: /* DropStmt: DROP INDEX CONCURRENTLY any_name_list opt_drop_behavior */
+#line 6149 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop index concurrently"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44223 "preproc.c"
+ break;
+
+ case 904: /* DropStmt: DROP INDEX CONCURRENTLY IF_P EXISTS any_name_list opt_drop_behavior */
+#line 6153 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop index concurrently if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44231 "preproc.c"
+ break;
+
+ case 905: /* object_type_any_name: TABLE */
+#line 6161 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("table");
+}
+#line 44239 "preproc.c"
+ break;
+
+ case 906: /* object_type_any_name: SEQUENCE */
+#line 6165 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sequence");
+}
+#line 44247 "preproc.c"
+ break;
+
+ case 907: /* object_type_any_name: VIEW */
+#line 6169 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("view");
+}
+#line 44255 "preproc.c"
+ break;
+
+ case 908: /* object_type_any_name: MATERIALIZED VIEW */
+#line 6173 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("materialized view");
+}
+#line 44263 "preproc.c"
+ break;
+
+ case 909: /* object_type_any_name: INDEX */
+#line 6177 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("index");
+}
+#line 44271 "preproc.c"
+ break;
+
+ case 910: /* object_type_any_name: FOREIGN TABLE */
+#line 6181 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("foreign table");
+}
+#line 44279 "preproc.c"
+ break;
+
+ case 911: /* object_type_any_name: COLLATION */
+#line 6185 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("collation");
+}
+#line 44287 "preproc.c"
+ break;
+
+ case 912: /* object_type_any_name: CONVERSION_P */
+#line 6189 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("conversion");
+}
+#line 44295 "preproc.c"
+ break;
+
+ case 913: /* object_type_any_name: STATISTICS */
+#line 6193 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("statistics");
+}
+#line 44303 "preproc.c"
+ break;
+
+ case 914: /* object_type_any_name: TEXT_P SEARCH PARSER */
+#line 6197 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("text search parser");
+}
+#line 44311 "preproc.c"
+ break;
+
+ case 915: /* object_type_any_name: TEXT_P SEARCH DICTIONARY */
+#line 6201 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("text search dictionary");
+}
+#line 44319 "preproc.c"
+ break;
+
+ case 916: /* object_type_any_name: TEXT_P SEARCH TEMPLATE */
+#line 6205 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("text search template");
+}
+#line 44327 "preproc.c"
+ break;
+
+ case 917: /* object_type_any_name: TEXT_P SEARCH CONFIGURATION */
+#line 6209 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("text search configuration");
+}
+#line 44335 "preproc.c"
+ break;
+
+ case 918: /* object_type_name: drop_type_name */
+#line 6217 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 44343 "preproc.c"
+ break;
+
+ case 919: /* object_type_name: DATABASE */
+#line 6221 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("database");
+}
+#line 44351 "preproc.c"
+ break;
+
+ case 920: /* object_type_name: ROLE */
+#line 6225 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("role");
+}
+#line 44359 "preproc.c"
+ break;
+
+ case 921: /* object_type_name: SUBSCRIPTION */
+#line 6229 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("subscription");
+}
+#line 44367 "preproc.c"
+ break;
+
+ case 922: /* object_type_name: TABLESPACE */
+#line 6233 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tablespace");
+}
+#line 44375 "preproc.c"
+ break;
+
+ case 923: /* drop_type_name: ACCESS METHOD */
+#line 6241 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("access method");
+}
+#line 44383 "preproc.c"
+ break;
+
+ case 924: /* drop_type_name: EVENT TRIGGER */
+#line 6245 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("event trigger");
+}
+#line 44391 "preproc.c"
+ break;
+
+ case 925: /* drop_type_name: EXTENSION */
+#line 6249 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("extension");
+}
+#line 44399 "preproc.c"
+ break;
+
+ case 926: /* drop_type_name: FOREIGN DATA_P WRAPPER */
+#line 6253 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("foreign data wrapper");
+}
+#line 44407 "preproc.c"
+ break;
+
+ case 927: /* drop_type_name: opt_procedural LANGUAGE */
+#line 6257 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("language"));
+}
+#line 44415 "preproc.c"
+ break;
+
+ case 928: /* drop_type_name: PUBLICATION */
+#line 6261 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("publication");
+}
+#line 44423 "preproc.c"
+ break;
+
+ case 929: /* drop_type_name: SCHEMA */
+#line 6265 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("schema");
+}
+#line 44431 "preproc.c"
+ break;
+
+ case 930: /* drop_type_name: SERVER */
+#line 6269 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("server");
+}
+#line 44439 "preproc.c"
+ break;
+
+ case 931: /* object_type_name_on_any_name: POLICY */
+#line 6277 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("policy");
+}
+#line 44447 "preproc.c"
+ break;
+
+ case 932: /* object_type_name_on_any_name: RULE */
+#line 6281 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rule");
+}
+#line 44455 "preproc.c"
+ break;
+
+ case 933: /* object_type_name_on_any_name: TRIGGER */
+#line 6285 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trigger");
+}
+#line 44463 "preproc.c"
+ break;
+
+ case 934: /* any_name_list: any_name */
+#line 6293 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 44471 "preproc.c"
+ break;
+
+ case 935: /* any_name_list: any_name_list ',' any_name */
+#line 6297 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 44479 "preproc.c"
+ break;
+
+ case 936: /* any_name: ColId */
+#line 6305 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 44487 "preproc.c"
+ break;
+
+ case 937: /* any_name: ColId attrs */
+#line 6309 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44495 "preproc.c"
+ break;
+
+ case 938: /* attrs: '.' attr_name */
+#line 6317 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("."),(yyvsp[0].str));
+}
+#line 44503 "preproc.c"
+ break;
+
+ case 939: /* attrs: attrs '.' attr_name */
+#line 6321 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("."),(yyvsp[0].str));
+}
+#line 44511 "preproc.c"
+ break;
+
+ case 940: /* type_name_list: Typename */
+#line 6329 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 44519 "preproc.c"
+ break;
+
+ case 941: /* type_name_list: type_name_list ',' Typename */
+#line 6333 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 44527 "preproc.c"
+ break;
+
+ case 942: /* TruncateStmt: TRUNCATE opt_table relation_expr_list opt_restart_seqs opt_drop_behavior */
+#line 6341 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("truncate"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44535 "preproc.c"
+ break;
+
+ case 943: /* opt_restart_seqs: CONTINUE_P IDENTITY_P */
+#line 6349 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("continue identity");
+}
+#line 44543 "preproc.c"
+ break;
+
+ case 944: /* opt_restart_seqs: RESTART IDENTITY_P */
+#line 6353 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restart identity");
+}
+#line 44551 "preproc.c"
+ break;
+
+ case 945: /* opt_restart_seqs: %empty */
+#line 6357 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 44558 "preproc.c"
+ break;
+
+ case 946: /* CommentStmt: COMMENT ON object_type_any_name any_name IS comment_text */
+#line 6364 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("comment on"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44566 "preproc.c"
+ break;
+
+ case 947: /* CommentStmt: COMMENT ON COLUMN any_name IS comment_text */
+#line 6368 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("comment on column"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44574 "preproc.c"
+ break;
+
+ case 948: /* CommentStmt: COMMENT ON object_type_name name IS comment_text */
+#line 6372 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("comment on"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44582 "preproc.c"
+ break;
+
+ case 949: /* CommentStmt: COMMENT ON TYPE_P Typename IS comment_text */
+#line 6376 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("comment on type"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44590 "preproc.c"
+ break;
+
+ case 950: /* CommentStmt: COMMENT ON DOMAIN_P Typename IS comment_text */
+#line 6380 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("comment on domain"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44598 "preproc.c"
+ break;
+
+ case 951: /* CommentStmt: COMMENT ON AGGREGATE aggregate_with_argtypes IS comment_text */
+#line 6384 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("comment on aggregate"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44606 "preproc.c"
+ break;
+
+ case 952: /* CommentStmt: COMMENT ON FUNCTION function_with_argtypes IS comment_text */
+#line 6388 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("comment on function"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44614 "preproc.c"
+ break;
+
+ case 953: /* CommentStmt: COMMENT ON OPERATOR operator_with_argtypes IS comment_text */
+#line 6392 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("comment on operator"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44622 "preproc.c"
+ break;
+
+ case 954: /* CommentStmt: COMMENT ON CONSTRAINT name ON any_name IS comment_text */
+#line 6396 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("comment on constraint"),(yyvsp[-4].str),mm_strdup("on"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44630 "preproc.c"
+ break;
+
+ case 955: /* CommentStmt: COMMENT ON CONSTRAINT name ON DOMAIN_P any_name IS comment_text */
+#line 6400 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("comment on constraint"),(yyvsp[-5].str),mm_strdup("on domain"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44638 "preproc.c"
+ break;
+
+ case 956: /* CommentStmt: COMMENT ON object_type_name_on_any_name name ON any_name IS comment_text */
+#line 6404 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("comment on"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("on"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44646 "preproc.c"
+ break;
+
+ case 957: /* CommentStmt: COMMENT ON PROCEDURE function_with_argtypes IS comment_text */
+#line 6408 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("comment on procedure"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44654 "preproc.c"
+ break;
+
+ case 958: /* CommentStmt: COMMENT ON ROUTINE function_with_argtypes IS comment_text */
+#line 6412 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("comment on routine"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44662 "preproc.c"
+ break;
+
+ case 959: /* CommentStmt: COMMENT ON TRANSFORM FOR Typename LANGUAGE name IS comment_text */
+#line 6416 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("comment on transform for"),(yyvsp[-4].str),mm_strdup("language"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44670 "preproc.c"
+ break;
+
+ case 960: /* CommentStmt: COMMENT ON OPERATOR CLASS any_name USING name IS comment_text */
+#line 6420 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("comment on operator class"),(yyvsp[-4].str),mm_strdup("using"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44678 "preproc.c"
+ break;
+
+ case 961: /* CommentStmt: COMMENT ON OPERATOR FAMILY any_name USING name IS comment_text */
+#line 6424 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("comment on operator family"),(yyvsp[-4].str),mm_strdup("using"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44686 "preproc.c"
+ break;
+
+ case 962: /* CommentStmt: COMMENT ON LARGE_P OBJECT_P NumericOnly IS comment_text */
+#line 6428 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("comment on large object"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44694 "preproc.c"
+ break;
+
+ case 963: /* CommentStmt: COMMENT ON CAST '(' Typename AS Typename ')' IS comment_text */
+#line 6432 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("comment on cast ("),(yyvsp[-5].str),mm_strdup("as"),(yyvsp[-3].str),mm_strdup(") is"),(yyvsp[0].str));
+}
+#line 44702 "preproc.c"
+ break;
+
+ case 964: /* comment_text: ecpg_sconst */
+#line 6440 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 44710 "preproc.c"
+ break;
+
+ case 965: /* comment_text: NULL_P */
+#line 6444 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("null");
+}
+#line 44718 "preproc.c"
+ break;
+
+ case 966: /* SecLabelStmt: SECURITY LABEL opt_provider ON object_type_any_name any_name IS security_label */
+#line 6452 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("security label"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44726 "preproc.c"
+ break;
+
+ case 967: /* SecLabelStmt: SECURITY LABEL opt_provider ON COLUMN any_name IS security_label */
+#line 6456 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("security label"),(yyvsp[-5].str),mm_strdup("on column"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44734 "preproc.c"
+ break;
+
+ case 968: /* SecLabelStmt: SECURITY LABEL opt_provider ON object_type_name name IS security_label */
+#line 6460 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("security label"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44742 "preproc.c"
+ break;
+
+ case 969: /* SecLabelStmt: SECURITY LABEL opt_provider ON TYPE_P Typename IS security_label */
+#line 6464 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("security label"),(yyvsp[-5].str),mm_strdup("on type"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44750 "preproc.c"
+ break;
+
+ case 970: /* SecLabelStmt: SECURITY LABEL opt_provider ON DOMAIN_P Typename IS security_label */
+#line 6468 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("security label"),(yyvsp[-5].str),mm_strdup("on domain"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44758 "preproc.c"
+ break;
+
+ case 971: /* SecLabelStmt: SECURITY LABEL opt_provider ON AGGREGATE aggregate_with_argtypes IS security_label */
+#line 6472 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("security label"),(yyvsp[-5].str),mm_strdup("on aggregate"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44766 "preproc.c"
+ break;
+
+ case 972: /* SecLabelStmt: SECURITY LABEL opt_provider ON FUNCTION function_with_argtypes IS security_label */
+#line 6476 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("security label"),(yyvsp[-5].str),mm_strdup("on function"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44774 "preproc.c"
+ break;
+
+ case 973: /* SecLabelStmt: SECURITY LABEL opt_provider ON LARGE_P OBJECT_P NumericOnly IS security_label */
+#line 6480 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("security label"),(yyvsp[-6].str),mm_strdup("on large object"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44782 "preproc.c"
+ break;
+
+ case 974: /* SecLabelStmt: SECURITY LABEL opt_provider ON PROCEDURE function_with_argtypes IS security_label */
+#line 6484 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("security label"),(yyvsp[-5].str),mm_strdup("on procedure"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44790 "preproc.c"
+ break;
+
+ case 975: /* SecLabelStmt: SECURITY LABEL opt_provider ON ROUTINE function_with_argtypes IS security_label */
+#line 6488 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("security label"),(yyvsp[-5].str),mm_strdup("on routine"),(yyvsp[-2].str),mm_strdup("is"),(yyvsp[0].str));
+}
+#line 44798 "preproc.c"
+ break;
+
+ case 976: /* opt_provider: FOR NonReservedWord_or_Sconst */
+#line 6496 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("for"),(yyvsp[0].str));
+}
+#line 44806 "preproc.c"
+ break;
+
+ case 977: /* opt_provider: %empty */
+#line 6500 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 44813 "preproc.c"
+ break;
+
+ case 978: /* security_label: ecpg_sconst */
+#line 6507 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 44821 "preproc.c"
+ break;
+
+ case 979: /* security_label: NULL_P */
+#line 6511 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("null");
+}
+#line 44829 "preproc.c"
+ break;
+
+ case 980: /* FetchStmt: FETCH fetch_args */
+#line 6519 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("fetch"),(yyvsp[0].str));
+}
+#line 44837 "preproc.c"
+ break;
+
+ case 981: /* FetchStmt: MOVE fetch_args */
+#line 6523 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("move"),(yyvsp[0].str));
+}
+#line 44845 "preproc.c"
+ break;
+
+ case 982: /* FetchStmt: FETCH fetch_args ecpg_fetch_into */
+#line 6527 "preproc.y"
+ {
+ (yyval.str) = cat2_str(mm_strdup("fetch"), (yyvsp[-1].str));
+ }
+#line 44853 "preproc.c"
+ break;
+
+ case 983: /* FetchStmt: FETCH FORWARD cursor_name opt_ecpg_fetch_into */
+#line 6531 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[-1].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[-1].str);
+ struct cursor *ptr = add_additional_variables((yyvsp[-1].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ (yyval.str) = cat_str(2, mm_strdup("fetch forward"), cursor_marker);
+ }
+#line 44866 "preproc.c"
+ break;
+
+ case 984: /* FetchStmt: FETCH FORWARD from_in cursor_name opt_ecpg_fetch_into */
+#line 6540 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[-1].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[-1].str);
+ struct cursor *ptr = add_additional_variables((yyvsp[-1].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ (yyval.str) = cat_str(2, mm_strdup("fetch forward from"), cursor_marker);
+ }
+#line 44879 "preproc.c"
+ break;
+
+ case 985: /* FetchStmt: FETCH BACKWARD cursor_name opt_ecpg_fetch_into */
+#line 6549 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[-1].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[-1].str);
+ struct cursor *ptr = add_additional_variables((yyvsp[-1].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ (yyval.str) = cat_str(2, mm_strdup("fetch backward"), cursor_marker);
+ }
+#line 44892 "preproc.c"
+ break;
+
+ case 986: /* FetchStmt: FETCH BACKWARD from_in cursor_name opt_ecpg_fetch_into */
+#line 6558 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[-1].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[-1].str);
+ struct cursor *ptr = add_additional_variables((yyvsp[-1].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ (yyval.str) = cat_str(2, mm_strdup("fetch backward from"), cursor_marker);
+ }
+#line 44905 "preproc.c"
+ break;
+
+ case 987: /* FetchStmt: MOVE FORWARD cursor_name */
+#line 6567 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[0].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[0].str);
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ (yyval.str) = cat_str(2, mm_strdup("move forward"), cursor_marker);
+ }
+#line 44918 "preproc.c"
+ break;
+
+ case 988: /* FetchStmt: MOVE FORWARD from_in cursor_name */
+#line 6576 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[0].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[0].str);
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ (yyval.str) = cat_str(2, mm_strdup("move forward from"), cursor_marker);
+ }
+#line 44931 "preproc.c"
+ break;
+
+ case 989: /* FetchStmt: MOVE BACKWARD cursor_name */
+#line 6585 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[0].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[0].str);
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ (yyval.str) = cat_str(2, mm_strdup("move backward"), cursor_marker);
+ }
+#line 44944 "preproc.c"
+ break;
+
+ case 990: /* FetchStmt: MOVE BACKWARD from_in cursor_name */
+#line 6594 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[0].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[0].str);
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ (yyval.str) = cat_str(2, mm_strdup("move backward from"), cursor_marker);
+ }
+#line 44957 "preproc.c"
+ break;
+
+ case 991: /* fetch_args: cursor_name */
+#line 6607 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 44975 "preproc.c"
+ break;
+
+ case 992: /* fetch_args: from_in cursor_name */
+#line 6621 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 44993 "preproc.c"
+ break;
+
+ case 993: /* fetch_args: NEXT opt_from_in cursor_name */
+#line 6635 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(3,mm_strdup("next"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45011 "preproc.c"
+ break;
+
+ case 994: /* fetch_args: PRIOR opt_from_in cursor_name */
+#line 6649 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(3,mm_strdup("prior"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45029 "preproc.c"
+ break;
+
+ case 995: /* fetch_args: FIRST_P opt_from_in cursor_name */
+#line 6663 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(3,mm_strdup("first"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45047 "preproc.c"
+ break;
+
+ case 996: /* fetch_args: LAST_P opt_from_in cursor_name */
+#line 6677 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(3,mm_strdup("last"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45065 "preproc.c"
+ break;
+
+ case 997: /* fetch_args: ABSOLUTE_P SignedIconst opt_from_in cursor_name */
+#line 6691 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+ if ((yyvsp[-2].str)[0] == '$')
+ {
+ free((yyvsp[-2].str));
+ (yyvsp[-2].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(4,mm_strdup("absolute"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45088 "preproc.c"
+ break;
+
+ case 998: /* fetch_args: RELATIVE_P SignedIconst opt_from_in cursor_name */
+#line 6710 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+ if ((yyvsp[-2].str)[0] == '$')
+ {
+ free((yyvsp[-2].str));
+ (yyvsp[-2].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(4,mm_strdup("relative"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45111 "preproc.c"
+ break;
+
+ case 999: /* fetch_args: SignedIconst opt_from_in cursor_name */
+#line 6729 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+ if ((yyvsp[-2].str)[0] == '$')
+ {
+ free((yyvsp[-2].str));
+ (yyvsp[-2].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45134 "preproc.c"
+ break;
+
+ case 1000: /* fetch_args: ALL opt_from_in cursor_name */
+#line 6748 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(3,mm_strdup("all"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45152 "preproc.c"
+ break;
+
+ case 1001: /* fetch_args: FORWARD SignedIconst opt_from_in cursor_name */
+#line 6762 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+ if ((yyvsp[-2].str)[0] == '$')
+ {
+ free((yyvsp[-2].str));
+ (yyvsp[-2].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(4,mm_strdup("forward"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45175 "preproc.c"
+ break;
+
+ case 1002: /* fetch_args: FORWARD ALL opt_from_in cursor_name */
+#line 6781 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(3,mm_strdup("forward all"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45193 "preproc.c"
+ break;
+
+ case 1003: /* fetch_args: BACKWARD SignedIconst opt_from_in cursor_name */
+#line 6795 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+ if ((yyvsp[-2].str)[0] == '$')
+ {
+ free((yyvsp[-2].str));
+ (yyvsp[-2].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(4,mm_strdup("backward"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45216 "preproc.c"
+ break;
+
+ case 1004: /* fetch_args: BACKWARD ALL opt_from_in cursor_name */
+#line 6814 "preproc.y"
+ {
+ struct cursor *ptr = add_additional_variables((yyvsp[0].str), false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ((yyvsp[0].str)[0] == ':')
+ {
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = mm_strdup("$0");
+ }
+
+ (yyval.str) = cat_str(3,mm_strdup("backward all"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45234 "preproc.c"
+ break;
+
+ case 1005: /* from_in: FROM */
+#line 6832 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("from");
+}
+#line 45242 "preproc.c"
+ break;
+
+ case 1006: /* from_in: IN_P */
+#line 6836 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("in");
+}
+#line 45250 "preproc.c"
+ break;
+
+ case 1007: /* opt_from_in: from_in */
+#line 6844 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45258 "preproc.c"
+ break;
+
+ case 1008: /* opt_from_in: %empty */
+#line 6848 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45265 "preproc.c"
+ break;
+
+ case 1009: /* GrantStmt: GRANT privileges ON privilege_target TO grantee_list opt_grant_grant_option opt_granted_by */
+#line 6855 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("grant"),(yyvsp[-6].str),mm_strdup("on"),(yyvsp[-4].str),mm_strdup("to"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45273 "preproc.c"
+ break;
+
+ case 1010: /* RevokeStmt: REVOKE privileges ON privilege_target FROM grantee_list opt_granted_by opt_drop_behavior */
+#line 6863 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("revoke"),(yyvsp[-6].str),mm_strdup("on"),(yyvsp[-4].str),mm_strdup("from"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45281 "preproc.c"
+ break;
+
+ case 1011: /* RevokeStmt: REVOKE GRANT OPTION FOR privileges ON privilege_target FROM grantee_list opt_granted_by opt_drop_behavior */
+#line 6867 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("revoke grant option for"),(yyvsp[-6].str),mm_strdup("on"),(yyvsp[-4].str),mm_strdup("from"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45289 "preproc.c"
+ break;
+
+ case 1012: /* privileges: privilege_list */
+#line 6875 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45297 "preproc.c"
+ break;
+
+ case 1013: /* privileges: ALL */
+#line 6879 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 45305 "preproc.c"
+ break;
+
+ case 1014: /* privileges: ALL PRIVILEGES */
+#line 6883 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all privileges");
+}
+#line 45313 "preproc.c"
+ break;
+
+ case 1015: /* privileges: ALL '(' columnList ')' */
+#line 6887 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("all ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 45321 "preproc.c"
+ break;
+
+ case 1016: /* privileges: ALL PRIVILEGES '(' columnList ')' */
+#line 6891 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("all privileges ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 45329 "preproc.c"
+ break;
+
+ case 1017: /* privilege_list: privilege */
+#line 6899 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45337 "preproc.c"
+ break;
+
+ case 1018: /* privilege_list: privilege_list ',' privilege */
+#line 6903 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 45345 "preproc.c"
+ break;
+
+ case 1019: /* privilege: SELECT opt_column_list */
+#line 6911 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("select"),(yyvsp[0].str));
+}
+#line 45353 "preproc.c"
+ break;
+
+ case 1020: /* privilege: REFERENCES opt_column_list */
+#line 6915 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("references"),(yyvsp[0].str));
+}
+#line 45361 "preproc.c"
+ break;
+
+ case 1021: /* privilege: CREATE opt_column_list */
+#line 6919 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("create"),(yyvsp[0].str));
+}
+#line 45369 "preproc.c"
+ break;
+
+ case 1022: /* privilege: ALTER SYSTEM_P */
+#line 6923 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("alter system");
+}
+#line 45377 "preproc.c"
+ break;
+
+ case 1023: /* privilege: ColId opt_column_list */
+#line 6927 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45385 "preproc.c"
+ break;
+
+ case 1024: /* parameter_name_list: parameter_name */
+#line 6935 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45393 "preproc.c"
+ break;
+
+ case 1025: /* parameter_name_list: parameter_name_list ',' parameter_name */
+#line 6939 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 45401 "preproc.c"
+ break;
+
+ case 1026: /* parameter_name: ColId */
+#line 6947 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45409 "preproc.c"
+ break;
+
+ case 1027: /* parameter_name: parameter_name '.' ColId */
+#line 6951 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("."),(yyvsp[0].str));
+}
+#line 45417 "preproc.c"
+ break;
+
+ case 1028: /* privilege_target: qualified_name_list */
+#line 6959 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45425 "preproc.c"
+ break;
+
+ case 1029: /* privilege_target: TABLE qualified_name_list */
+#line 6963 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("table"),(yyvsp[0].str));
+}
+#line 45433 "preproc.c"
+ break;
+
+ case 1030: /* privilege_target: SEQUENCE qualified_name_list */
+#line 6967 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("sequence"),(yyvsp[0].str));
+}
+#line 45441 "preproc.c"
+ break;
+
+ case 1031: /* privilege_target: FOREIGN DATA_P WRAPPER name_list */
+#line 6971 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("foreign data wrapper"),(yyvsp[0].str));
+}
+#line 45449 "preproc.c"
+ break;
+
+ case 1032: /* privilege_target: FOREIGN SERVER name_list */
+#line 6975 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("foreign server"),(yyvsp[0].str));
+}
+#line 45457 "preproc.c"
+ break;
+
+ case 1033: /* privilege_target: FUNCTION function_with_argtypes_list */
+#line 6979 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("function"),(yyvsp[0].str));
+}
+#line 45465 "preproc.c"
+ break;
+
+ case 1034: /* privilege_target: PROCEDURE function_with_argtypes_list */
+#line 6983 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("procedure"),(yyvsp[0].str));
+}
+#line 45473 "preproc.c"
+ break;
+
+ case 1035: /* privilege_target: ROUTINE function_with_argtypes_list */
+#line 6987 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("routine"),(yyvsp[0].str));
+}
+#line 45481 "preproc.c"
+ break;
+
+ case 1036: /* privilege_target: DATABASE name_list */
+#line 6991 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("database"),(yyvsp[0].str));
+}
+#line 45489 "preproc.c"
+ break;
+
+ case 1037: /* privilege_target: DOMAIN_P any_name_list */
+#line 6995 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("domain"),(yyvsp[0].str));
+}
+#line 45497 "preproc.c"
+ break;
+
+ case 1038: /* privilege_target: LANGUAGE name_list */
+#line 6999 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("language"),(yyvsp[0].str));
+}
+#line 45505 "preproc.c"
+ break;
+
+ case 1039: /* privilege_target: LARGE_P OBJECT_P NumericOnly_list */
+#line 7003 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("large object"),(yyvsp[0].str));
+}
+#line 45513 "preproc.c"
+ break;
+
+ case 1040: /* privilege_target: PARAMETER parameter_name_list */
+#line 7007 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("parameter"),(yyvsp[0].str));
+}
+#line 45521 "preproc.c"
+ break;
+
+ case 1041: /* privilege_target: SCHEMA name_list */
+#line 7011 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("schema"),(yyvsp[0].str));
+}
+#line 45529 "preproc.c"
+ break;
+
+ case 1042: /* privilege_target: TABLESPACE name_list */
+#line 7015 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("tablespace"),(yyvsp[0].str));
+}
+#line 45537 "preproc.c"
+ break;
+
+ case 1043: /* privilege_target: TYPE_P any_name_list */
+#line 7019 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("type"),(yyvsp[0].str));
+}
+#line 45545 "preproc.c"
+ break;
+
+ case 1044: /* privilege_target: ALL TABLES IN_P SCHEMA name_list */
+#line 7023 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("all tables in schema"),(yyvsp[0].str));
+}
+#line 45553 "preproc.c"
+ break;
+
+ case 1045: /* privilege_target: ALL SEQUENCES IN_P SCHEMA name_list */
+#line 7027 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("all sequences in schema"),(yyvsp[0].str));
+}
+#line 45561 "preproc.c"
+ break;
+
+ case 1046: /* privilege_target: ALL FUNCTIONS IN_P SCHEMA name_list */
+#line 7031 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("all functions in schema"),(yyvsp[0].str));
+}
+#line 45569 "preproc.c"
+ break;
+
+ case 1047: /* privilege_target: ALL PROCEDURES IN_P SCHEMA name_list */
+#line 7035 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("all procedures in schema"),(yyvsp[0].str));
+}
+#line 45577 "preproc.c"
+ break;
+
+ case 1048: /* privilege_target: ALL ROUTINES IN_P SCHEMA name_list */
+#line 7039 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("all routines in schema"),(yyvsp[0].str));
+}
+#line 45585 "preproc.c"
+ break;
+
+ case 1049: /* grantee_list: grantee */
+#line 7047 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45593 "preproc.c"
+ break;
+
+ case 1050: /* grantee_list: grantee_list ',' grantee */
+#line 7051 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 45601 "preproc.c"
+ break;
+
+ case 1051: /* grantee: RoleSpec */
+#line 7059 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45609 "preproc.c"
+ break;
+
+ case 1052: /* grantee: GROUP_P RoleSpec */
+#line 7063 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("group"),(yyvsp[0].str));
+}
+#line 45617 "preproc.c"
+ break;
+
+ case 1053: /* opt_grant_grant_option: WITH GRANT OPTION */
+#line 7071 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with grant option");
+}
+#line 45625 "preproc.c"
+ break;
+
+ case 1054: /* opt_grant_grant_option: %empty */
+#line 7075 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45632 "preproc.c"
+ break;
+
+ case 1055: /* GrantRoleStmt: GRANT privilege_list TO role_list opt_grant_admin_option opt_granted_by */
+#line 7082 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("grant"),(yyvsp[-4].str),mm_strdup("to"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45640 "preproc.c"
+ break;
+
+ case 1056: /* RevokeRoleStmt: REVOKE privilege_list FROM role_list opt_granted_by opt_drop_behavior */
+#line 7090 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("revoke"),(yyvsp[-4].str),mm_strdup("from"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45648 "preproc.c"
+ break;
+
+ case 1057: /* RevokeRoleStmt: REVOKE ADMIN OPTION FOR privilege_list FROM role_list opt_granted_by opt_drop_behavior */
+#line 7094 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("revoke admin option for"),(yyvsp[-4].str),mm_strdup("from"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45656 "preproc.c"
+ break;
+
+ case 1058: /* opt_grant_admin_option: WITH ADMIN OPTION */
+#line 7102 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with admin option");
+}
+#line 45664 "preproc.c"
+ break;
+
+ case 1059: /* opt_grant_admin_option: %empty */
+#line 7106 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45671 "preproc.c"
+ break;
+
+ case 1060: /* opt_granted_by: GRANTED BY RoleSpec */
+#line 7113 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("granted by"),(yyvsp[0].str));
+}
+#line 45679 "preproc.c"
+ break;
+
+ case 1061: /* opt_granted_by: %empty */
+#line 7117 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45686 "preproc.c"
+ break;
+
+ case 1062: /* AlterDefaultPrivilegesStmt: ALTER DEFAULT PRIVILEGES DefACLOptionList DefACLAction */
+#line 7124 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter default privileges"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45694 "preproc.c"
+ break;
+
+ case 1063: /* DefACLOptionList: DefACLOptionList DefACLOption */
+#line 7132 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45702 "preproc.c"
+ break;
+
+ case 1064: /* DefACLOptionList: %empty */
+#line 7136 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45709 "preproc.c"
+ break;
+
+ case 1065: /* DefACLOption: IN_P SCHEMA name_list */
+#line 7143 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("in schema"),(yyvsp[0].str));
+}
+#line 45717 "preproc.c"
+ break;
+
+ case 1066: /* DefACLOption: FOR ROLE role_list */
+#line 7147 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("for role"),(yyvsp[0].str));
+}
+#line 45725 "preproc.c"
+ break;
+
+ case 1067: /* DefACLOption: FOR USER role_list */
+#line 7151 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("for user"),(yyvsp[0].str));
+}
+#line 45733 "preproc.c"
+ break;
+
+ case 1068: /* DefACLAction: GRANT privileges ON defacl_privilege_target TO grantee_list opt_grant_grant_option */
+#line 7159 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("grant"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),mm_strdup("to"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45741 "preproc.c"
+ break;
+
+ case 1069: /* DefACLAction: REVOKE privileges ON defacl_privilege_target FROM grantee_list opt_drop_behavior */
+#line 7163 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("revoke"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),mm_strdup("from"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45749 "preproc.c"
+ break;
+
+ case 1070: /* DefACLAction: REVOKE GRANT OPTION FOR privileges ON defacl_privilege_target FROM grantee_list opt_drop_behavior */
+#line 7167 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("revoke grant option for"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),mm_strdup("from"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45757 "preproc.c"
+ break;
+
+ case 1071: /* defacl_privilege_target: TABLES */
+#line 7175 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tables");
+}
+#line 45765 "preproc.c"
+ break;
+
+ case 1072: /* defacl_privilege_target: FUNCTIONS */
+#line 7179 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("functions");
+}
+#line 45773 "preproc.c"
+ break;
+
+ case 1073: /* defacl_privilege_target: ROUTINES */
+#line 7183 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("routines");
+}
+#line 45781 "preproc.c"
+ break;
+
+ case 1074: /* defacl_privilege_target: SEQUENCES */
+#line 7187 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sequences");
+}
+#line 45789 "preproc.c"
+ break;
+
+ case 1075: /* defacl_privilege_target: TYPES_P */
+#line 7191 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("types");
+}
+#line 45797 "preproc.c"
+ break;
+
+ case 1076: /* defacl_privilege_target: SCHEMAS */
+#line 7195 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("schemas");
+}
+#line 45805 "preproc.c"
+ break;
+
+ case 1077: /* IndexStmt: CREATE opt_unique INDEX opt_concurrently opt_index_name ON relation_expr access_method_clause '(' index_params ')' opt_include opt_unique_null_treatment opt_reloptions OptTableSpace where_clause */
+#line 7203 "preproc.y"
+ {
+ (yyval.str) = cat_str(16,mm_strdup("create"),(yyvsp[-14].str),mm_strdup("index"),(yyvsp[-12].str),(yyvsp[-11].str),mm_strdup("on"),(yyvsp[-9].str),(yyvsp[-8].str),mm_strdup("("),(yyvsp[-6].str),mm_strdup(")"),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45813 "preproc.c"
+ break;
+
+ case 1078: /* IndexStmt: CREATE opt_unique INDEX opt_concurrently IF_P NOT EXISTS name ON relation_expr access_method_clause '(' index_params ')' opt_include opt_unique_null_treatment opt_reloptions OptTableSpace where_clause */
+#line 7207 "preproc.y"
+ {
+ (yyval.str) = cat_str(17,mm_strdup("create"),(yyvsp[-17].str),mm_strdup("index"),(yyvsp[-15].str),mm_strdup("if not exists"),(yyvsp[-11].str),mm_strdup("on"),(yyvsp[-9].str),(yyvsp[-8].str),mm_strdup("("),(yyvsp[-6].str),mm_strdup(")"),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45821 "preproc.c"
+ break;
+
+ case 1079: /* opt_unique: UNIQUE */
+#line 7215 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unique");
+}
+#line 45829 "preproc.c"
+ break;
+
+ case 1080: /* opt_unique: %empty */
+#line 7219 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45836 "preproc.c"
+ break;
+
+ case 1081: /* opt_concurrently: CONCURRENTLY */
+#line 7226 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("concurrently");
+}
+#line 45844 "preproc.c"
+ break;
+
+ case 1082: /* opt_concurrently: %empty */
+#line 7230 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45851 "preproc.c"
+ break;
+
+ case 1083: /* opt_index_name: name */
+#line 7237 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45859 "preproc.c"
+ break;
+
+ case 1084: /* opt_index_name: %empty */
+#line 7241 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45866 "preproc.c"
+ break;
+
+ case 1085: /* access_method_clause: USING name */
+#line 7248 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("using"),(yyvsp[0].str));
+}
+#line 45874 "preproc.c"
+ break;
+
+ case 1086: /* access_method_clause: %empty */
+#line 7252 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45881 "preproc.c"
+ break;
+
+ case 1087: /* index_params: index_elem */
+#line 7259 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45889 "preproc.c"
+ break;
+
+ case 1088: /* index_params: index_params ',' index_elem */
+#line 7263 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 45897 "preproc.c"
+ break;
+
+ case 1089: /* index_elem_options: opt_collate opt_class opt_asc_desc opt_nulls_order */
+#line 7271 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45905 "preproc.c"
+ break;
+
+ case 1090: /* index_elem_options: opt_collate any_name reloptions opt_asc_desc opt_nulls_order */
+#line 7275 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45913 "preproc.c"
+ break;
+
+ case 1091: /* index_elem: ColId index_elem_options */
+#line 7283 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45921 "preproc.c"
+ break;
+
+ case 1092: /* index_elem: func_expr_windowless index_elem_options */
+#line 7287 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 45929 "preproc.c"
+ break;
+
+ case 1093: /* index_elem: '(' a_expr ')' index_elem_options */
+#line 7291 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 45937 "preproc.c"
+ break;
+
+ case 1094: /* opt_include: INCLUDE '(' index_including_params ')' */
+#line 7299 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("include ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 45945 "preproc.c"
+ break;
+
+ case 1095: /* opt_include: %empty */
+#line 7303 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45952 "preproc.c"
+ break;
+
+ case 1096: /* index_including_params: index_elem */
+#line 7310 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45960 "preproc.c"
+ break;
+
+ case 1097: /* index_including_params: index_including_params ',' index_elem */
+#line 7314 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 45968 "preproc.c"
+ break;
+
+ case 1098: /* opt_collate: COLLATE any_name */
+#line 7322 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("collate"),(yyvsp[0].str));
+}
+#line 45976 "preproc.c"
+ break;
+
+ case 1099: /* opt_collate: %empty */
+#line 7326 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45983 "preproc.c"
+ break;
+
+ case 1100: /* opt_class: any_name */
+#line 7333 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 45991 "preproc.c"
+ break;
+
+ case 1101: /* opt_class: %empty */
+#line 7337 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 45998 "preproc.c"
+ break;
+
+ case 1102: /* opt_asc_desc: ASC */
+#line 7344 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("asc");
+}
+#line 46006 "preproc.c"
+ break;
+
+ case 1103: /* opt_asc_desc: DESC */
+#line 7348 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("desc");
+}
+#line 46014 "preproc.c"
+ break;
+
+ case 1104: /* opt_asc_desc: %empty */
+#line 7352 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 46021 "preproc.c"
+ break;
+
+ case 1105: /* opt_nulls_order: NULLS_LA FIRST_P */
+#line 7359 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nulls first");
+}
+#line 46029 "preproc.c"
+ break;
+
+ case 1106: /* opt_nulls_order: NULLS_LA LAST_P */
+#line 7363 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nulls last");
+}
+#line 46037 "preproc.c"
+ break;
+
+ case 1107: /* opt_nulls_order: %empty */
+#line 7367 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 46044 "preproc.c"
+ break;
+
+ case 1108: /* CreateFunctionStmt: CREATE opt_or_replace FUNCTION func_name func_args_with_defaults RETURNS func_return opt_createfunc_opt_list opt_routine_body */
+#line 7374 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("create"),(yyvsp[-7].str),mm_strdup("function"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("returns"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46052 "preproc.c"
+ break;
+
+ case 1109: /* CreateFunctionStmt: CREATE opt_or_replace FUNCTION func_name func_args_with_defaults RETURNS TABLE '(' table_func_column_list ')' opt_createfunc_opt_list opt_routine_body */
+#line 7378 "preproc.y"
+ {
+ (yyval.str) = cat_str(10,mm_strdup("create"),(yyvsp[-10].str),mm_strdup("function"),(yyvsp[-8].str),(yyvsp[-7].str),mm_strdup("returns table ("),(yyvsp[-3].str),mm_strdup(")"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46060 "preproc.c"
+ break;
+
+ case 1110: /* CreateFunctionStmt: CREATE opt_or_replace FUNCTION func_name func_args_with_defaults opt_createfunc_opt_list opt_routine_body */
+#line 7382 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create"),(yyvsp[-5].str),mm_strdup("function"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46068 "preproc.c"
+ break;
+
+ case 1111: /* CreateFunctionStmt: CREATE opt_or_replace PROCEDURE func_name func_args_with_defaults opt_createfunc_opt_list opt_routine_body */
+#line 7386 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create"),(yyvsp[-5].str),mm_strdup("procedure"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46076 "preproc.c"
+ break;
+
+ case 1112: /* opt_or_replace: OR REPLACE */
+#line 7394 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("or replace");
+}
+#line 46084 "preproc.c"
+ break;
+
+ case 1113: /* opt_or_replace: %empty */
+#line 7398 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 46091 "preproc.c"
+ break;
+
+ case 1114: /* func_args: '(' func_args_list ')' */
+#line 7405 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 46099 "preproc.c"
+ break;
+
+ case 1115: /* func_args: '(' ')' */
+#line 7409 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("( )");
+}
+#line 46107 "preproc.c"
+ break;
+
+ case 1116: /* func_args_list: func_arg */
+#line 7417 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46115 "preproc.c"
+ break;
+
+ case 1117: /* func_args_list: func_args_list ',' func_arg */
+#line 7421 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 46123 "preproc.c"
+ break;
+
+ case 1118: /* function_with_argtypes_list: function_with_argtypes */
+#line 7429 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46131 "preproc.c"
+ break;
+
+ case 1119: /* function_with_argtypes_list: function_with_argtypes_list ',' function_with_argtypes */
+#line 7433 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 46139 "preproc.c"
+ break;
+
+ case 1120: /* function_with_argtypes: func_name func_args */
+#line 7441 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46147 "preproc.c"
+ break;
+
+ case 1121: /* function_with_argtypes: type_func_name_keyword */
+#line 7445 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46155 "preproc.c"
+ break;
+
+ case 1122: /* function_with_argtypes: ColId */
+#line 7449 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46163 "preproc.c"
+ break;
+
+ case 1123: /* function_with_argtypes: ColId indirection */
+#line 7453 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46171 "preproc.c"
+ break;
+
+ case 1124: /* func_args_with_defaults: '(' func_args_with_defaults_list ')' */
+#line 7461 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 46179 "preproc.c"
+ break;
+
+ case 1125: /* func_args_with_defaults: '(' ')' */
+#line 7465 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("( )");
+}
+#line 46187 "preproc.c"
+ break;
+
+ case 1126: /* func_args_with_defaults_list: func_arg_with_default */
+#line 7473 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46195 "preproc.c"
+ break;
+
+ case 1127: /* func_args_with_defaults_list: func_args_with_defaults_list ',' func_arg_with_default */
+#line 7477 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 46203 "preproc.c"
+ break;
+
+ case 1128: /* func_arg: arg_class param_name func_type */
+#line 7485 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46211 "preproc.c"
+ break;
+
+ case 1129: /* func_arg: param_name arg_class func_type */
+#line 7489 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46219 "preproc.c"
+ break;
+
+ case 1130: /* func_arg: param_name func_type */
+#line 7493 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46227 "preproc.c"
+ break;
+
+ case 1131: /* func_arg: arg_class func_type */
+#line 7497 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46235 "preproc.c"
+ break;
+
+ case 1132: /* func_arg: func_type */
+#line 7501 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46243 "preproc.c"
+ break;
+
+ case 1133: /* arg_class: IN_P */
+#line 7509 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("in");
+}
+#line 46251 "preproc.c"
+ break;
+
+ case 1134: /* arg_class: OUT_P */
+#line 7513 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("out");
+}
+#line 46259 "preproc.c"
+ break;
+
+ case 1135: /* arg_class: INOUT */
+#line 7517 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inout");
+}
+#line 46267 "preproc.c"
+ break;
+
+ case 1136: /* arg_class: IN_P OUT_P */
+#line 7521 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("in out");
+}
+#line 46275 "preproc.c"
+ break;
+
+ case 1137: /* arg_class: VARIADIC */
+#line 7525 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("variadic");
+}
+#line 46283 "preproc.c"
+ break;
+
+ case 1138: /* param_name: type_function_name */
+#line 7533 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46291 "preproc.c"
+ break;
+
+ case 1139: /* func_return: func_type */
+#line 7541 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46299 "preproc.c"
+ break;
+
+ case 1140: /* func_type: Typename */
+#line 7549 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46307 "preproc.c"
+ break;
+
+ case 1141: /* func_type: type_function_name attrs '%' TYPE_P */
+#line 7553 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("% type"));
+}
+#line 46315 "preproc.c"
+ break;
+
+ case 1142: /* func_type: SETOF type_function_name attrs '%' TYPE_P */
+#line 7557 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("setof"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("% type"));
+}
+#line 46323 "preproc.c"
+ break;
+
+ case 1143: /* func_arg_with_default: func_arg */
+#line 7565 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46331 "preproc.c"
+ break;
+
+ case 1144: /* func_arg_with_default: func_arg DEFAULT a_expr */
+#line 7569 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("default"),(yyvsp[0].str));
+}
+#line 46339 "preproc.c"
+ break;
+
+ case 1145: /* func_arg_with_default: func_arg '=' a_expr */
+#line 7573 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 46347 "preproc.c"
+ break;
+
+ case 1146: /* aggr_arg: func_arg */
+#line 7581 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46356 "preproc.c"
+ break;
+
+ case 1147: /* aggr_args: '(' '*' ')' */
+#line 7590 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("( * )");
+}
+#line 46364 "preproc.c"
+ break;
+
+ case 1148: /* aggr_args: '(' aggr_args_list ')' */
+#line 7594 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 46372 "preproc.c"
+ break;
+
+ case 1149: /* aggr_args: '(' ORDER BY aggr_args_list ')' */
+#line 7598 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("( order by"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 46380 "preproc.c"
+ break;
+
+ case 1150: /* aggr_args: '(' aggr_args_list ORDER BY aggr_args_list ')' */
+#line 7602 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("("),(yyvsp[-4].str),mm_strdup("order by"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 46388 "preproc.c"
+ break;
+
+ case 1151: /* aggr_args_list: aggr_arg */
+#line 7610 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46396 "preproc.c"
+ break;
+
+ case 1152: /* aggr_args_list: aggr_args_list ',' aggr_arg */
+#line 7614 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 46404 "preproc.c"
+ break;
+
+ case 1153: /* aggregate_with_argtypes: func_name aggr_args */
+#line 7622 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46412 "preproc.c"
+ break;
+
+ case 1154: /* aggregate_with_argtypes_list: aggregate_with_argtypes */
+#line 7630 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46420 "preproc.c"
+ break;
+
+ case 1155: /* aggregate_with_argtypes_list: aggregate_with_argtypes_list ',' aggregate_with_argtypes */
+#line 7634 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 46428 "preproc.c"
+ break;
+
+ case 1156: /* opt_createfunc_opt_list: createfunc_opt_list */
+#line 7642 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46436 "preproc.c"
+ break;
+
+ case 1157: /* opt_createfunc_opt_list: %empty */
+#line 7646 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 46443 "preproc.c"
+ break;
+
+ case 1158: /* createfunc_opt_list: createfunc_opt_item */
+#line 7653 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46451 "preproc.c"
+ break;
+
+ case 1159: /* createfunc_opt_list: createfunc_opt_list createfunc_opt_item */
+#line 7657 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46459 "preproc.c"
+ break;
+
+ case 1160: /* common_func_opt_item: CALLED ON NULL_P INPUT_P */
+#line 7665 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("called on null input");
+}
+#line 46467 "preproc.c"
+ break;
+
+ case 1161: /* common_func_opt_item: RETURNS NULL_P ON NULL_P INPUT_P */
+#line 7669 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("returns null on null input");
+}
+#line 46475 "preproc.c"
+ break;
+
+ case 1162: /* common_func_opt_item: STRICT_P */
+#line 7673 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("strict");
+}
+#line 46483 "preproc.c"
+ break;
+
+ case 1163: /* common_func_opt_item: IMMUTABLE */
+#line 7677 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("immutable");
+}
+#line 46491 "preproc.c"
+ break;
+
+ case 1164: /* common_func_opt_item: STABLE */
+#line 7681 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stable");
+}
+#line 46499 "preproc.c"
+ break;
+
+ case 1165: /* common_func_opt_item: VOLATILE */
+#line 7685 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("volatile");
+}
+#line 46507 "preproc.c"
+ break;
+
+ case 1166: /* common_func_opt_item: EXTERNAL SECURITY DEFINER */
+#line 7689 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("external security definer");
+}
+#line 46515 "preproc.c"
+ break;
+
+ case 1167: /* common_func_opt_item: EXTERNAL SECURITY INVOKER */
+#line 7693 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("external security invoker");
+}
+#line 46523 "preproc.c"
+ break;
+
+ case 1168: /* common_func_opt_item: SECURITY DEFINER */
+#line 7697 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("security definer");
+}
+#line 46531 "preproc.c"
+ break;
+
+ case 1169: /* common_func_opt_item: SECURITY INVOKER */
+#line 7701 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("security invoker");
+}
+#line 46539 "preproc.c"
+ break;
+
+ case 1170: /* common_func_opt_item: LEAKPROOF */
+#line 7705 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("leakproof");
+}
+#line 46547 "preproc.c"
+ break;
+
+ case 1171: /* common_func_opt_item: NOT LEAKPROOF */
+#line 7709 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not leakproof");
+}
+#line 46555 "preproc.c"
+ break;
+
+ case 1172: /* common_func_opt_item: COST NumericOnly */
+#line 7713 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("cost"),(yyvsp[0].str));
+}
+#line 46563 "preproc.c"
+ break;
+
+ case 1173: /* common_func_opt_item: ROWS NumericOnly */
+#line 7717 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("rows"),(yyvsp[0].str));
+}
+#line 46571 "preproc.c"
+ break;
+
+ case 1174: /* common_func_opt_item: SUPPORT any_name */
+#line 7721 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("support"),(yyvsp[0].str));
+}
+#line 46579 "preproc.c"
+ break;
+
+ case 1175: /* common_func_opt_item: FunctionSetResetClause */
+#line 7725 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46587 "preproc.c"
+ break;
+
+ case 1176: /* common_func_opt_item: PARALLEL ColId */
+#line 7729 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("parallel"),(yyvsp[0].str));
+}
+#line 46595 "preproc.c"
+ break;
+
+ case 1177: /* createfunc_opt_item: AS func_as */
+#line 7737 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("as"),(yyvsp[0].str));
+}
+#line 46603 "preproc.c"
+ break;
+
+ case 1178: /* createfunc_opt_item: LANGUAGE NonReservedWord_or_Sconst */
+#line 7741 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("language"),(yyvsp[0].str));
+}
+#line 46611 "preproc.c"
+ break;
+
+ case 1179: /* createfunc_opt_item: TRANSFORM transform_type_list */
+#line 7745 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("transform"),(yyvsp[0].str));
+}
+#line 46619 "preproc.c"
+ break;
+
+ case 1180: /* createfunc_opt_item: WINDOW */
+#line 7749 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("window");
+}
+#line 46627 "preproc.c"
+ break;
+
+ case 1181: /* createfunc_opt_item: common_func_opt_item */
+#line 7753 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46635 "preproc.c"
+ break;
+
+ case 1182: /* func_as: ecpg_sconst */
+#line 7761 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46643 "preproc.c"
+ break;
+
+ case 1183: /* func_as: ecpg_sconst ',' ecpg_sconst */
+#line 7765 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 46651 "preproc.c"
+ break;
+
+ case 1184: /* ReturnStmt: RETURN a_expr */
+#line 7773 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("return"),(yyvsp[0].str));
+}
+#line 46659 "preproc.c"
+ break;
+
+ case 1185: /* opt_routine_body: ReturnStmt */
+#line 7781 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46667 "preproc.c"
+ break;
+
+ case 1186: /* opt_routine_body: BEGIN_P ATOMIC routine_body_stmt_list END_P */
+#line 7785 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("begin atomic"),(yyvsp[-1].str),mm_strdup("end"));
+}
+#line 46675 "preproc.c"
+ break;
+
+ case 1187: /* opt_routine_body: %empty */
+#line 7789 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 46682 "preproc.c"
+ break;
+
+ case 1188: /* routine_body_stmt_list: routine_body_stmt_list routine_body_stmt ';' */
+#line 7796 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(";"));
+}
+#line 46690 "preproc.c"
+ break;
+
+ case 1189: /* routine_body_stmt_list: %empty */
+#line 7800 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 46697 "preproc.c"
+ break;
+
+ case 1190: /* routine_body_stmt: stmt */
+#line 7807 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46705 "preproc.c"
+ break;
+
+ case 1191: /* routine_body_stmt: ReturnStmt */
+#line 7811 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46713 "preproc.c"
+ break;
+
+ case 1192: /* transform_type_list: FOR TYPE_P Typename */
+#line 7819 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("for type"),(yyvsp[0].str));
+}
+#line 46721 "preproc.c"
+ break;
+
+ case 1193: /* transform_type_list: transform_type_list ',' FOR TYPE_P Typename */
+#line 7823 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-4].str),mm_strdup(", for type"),(yyvsp[0].str));
+}
+#line 46729 "preproc.c"
+ break;
+
+ case 1194: /* opt_definition: WITH definition */
+#line 7831 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("with"),(yyvsp[0].str));
+}
+#line 46737 "preproc.c"
+ break;
+
+ case 1195: /* opt_definition: %empty */
+#line 7835 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 46744 "preproc.c"
+ break;
+
+ case 1196: /* table_func_column: param_name func_type */
+#line 7842 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46752 "preproc.c"
+ break;
+
+ case 1197: /* table_func_column_list: table_func_column */
+#line 7850 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46760 "preproc.c"
+ break;
+
+ case 1198: /* table_func_column_list: table_func_column_list ',' table_func_column */
+#line 7854 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 46768 "preproc.c"
+ break;
+
+ case 1199: /* AlterFunctionStmt: ALTER FUNCTION function_with_argtypes alterfunc_opt_list opt_restrict */
+#line 7862 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter function"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46776 "preproc.c"
+ break;
+
+ case 1200: /* AlterFunctionStmt: ALTER PROCEDURE function_with_argtypes alterfunc_opt_list opt_restrict */
+#line 7866 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter procedure"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46784 "preproc.c"
+ break;
+
+ case 1201: /* AlterFunctionStmt: ALTER ROUTINE function_with_argtypes alterfunc_opt_list opt_restrict */
+#line 7870 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter routine"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46792 "preproc.c"
+ break;
+
+ case 1202: /* alterfunc_opt_list: common_func_opt_item */
+#line 7878 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46800 "preproc.c"
+ break;
+
+ case 1203: /* alterfunc_opt_list: alterfunc_opt_list common_func_opt_item */
+#line 7882 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46808 "preproc.c"
+ break;
+
+ case 1204: /* opt_restrict: RESTRICT */
+#line 7890 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restrict");
+}
+#line 46816 "preproc.c"
+ break;
+
+ case 1205: /* opt_restrict: %empty */
+#line 7894 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 46823 "preproc.c"
+ break;
+
+ case 1206: /* RemoveFuncStmt: DROP FUNCTION function_with_argtypes_list opt_drop_behavior */
+#line 7901 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop function"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46831 "preproc.c"
+ break;
+
+ case 1207: /* RemoveFuncStmt: DROP FUNCTION IF_P EXISTS function_with_argtypes_list opt_drop_behavior */
+#line 7905 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop function if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46839 "preproc.c"
+ break;
+
+ case 1208: /* RemoveFuncStmt: DROP PROCEDURE function_with_argtypes_list opt_drop_behavior */
+#line 7909 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop procedure"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46847 "preproc.c"
+ break;
+
+ case 1209: /* RemoveFuncStmt: DROP PROCEDURE IF_P EXISTS function_with_argtypes_list opt_drop_behavior */
+#line 7913 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop procedure if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46855 "preproc.c"
+ break;
+
+ case 1210: /* RemoveFuncStmt: DROP ROUTINE function_with_argtypes_list opt_drop_behavior */
+#line 7917 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop routine"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46863 "preproc.c"
+ break;
+
+ case 1211: /* RemoveFuncStmt: DROP ROUTINE IF_P EXISTS function_with_argtypes_list opt_drop_behavior */
+#line 7921 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop routine if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46871 "preproc.c"
+ break;
+
+ case 1212: /* RemoveAggrStmt: DROP AGGREGATE aggregate_with_argtypes_list opt_drop_behavior */
+#line 7929 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop aggregate"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46879 "preproc.c"
+ break;
+
+ case 1213: /* RemoveAggrStmt: DROP AGGREGATE IF_P EXISTS aggregate_with_argtypes_list opt_drop_behavior */
+#line 7933 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop aggregate if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46887 "preproc.c"
+ break;
+
+ case 1214: /* RemoveOperStmt: DROP OPERATOR operator_with_argtypes_list opt_drop_behavior */
+#line 7941 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop operator"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46895 "preproc.c"
+ break;
+
+ case 1215: /* RemoveOperStmt: DROP OPERATOR IF_P EXISTS operator_with_argtypes_list opt_drop_behavior */
+#line 7945 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop operator if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46903 "preproc.c"
+ break;
+
+ case 1216: /* oper_argtypes: '(' Typename ')' */
+#line 7953 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 46911 "preproc.c"
+ break;
+
+ case 1217: /* oper_argtypes: '(' Typename ',' Typename ')' */
+#line 7957 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("("),(yyvsp[-3].str),mm_strdup(","),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 46919 "preproc.c"
+ break;
+
+ case 1218: /* oper_argtypes: '(' NONE ',' Typename ')' */
+#line 7961 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("( none ,"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 46927 "preproc.c"
+ break;
+
+ case 1219: /* oper_argtypes: '(' Typename ',' NONE ')' */
+#line 7965 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-3].str),mm_strdup(", none )"));
+}
+#line 46935 "preproc.c"
+ break;
+
+ case 1220: /* any_operator: all_Op */
+#line 7973 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46943 "preproc.c"
+ break;
+
+ case 1221: /* any_operator: ColId '.' any_operator */
+#line 7977 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("."),(yyvsp[0].str));
+}
+#line 46951 "preproc.c"
+ break;
+
+ case 1222: /* operator_with_argtypes_list: operator_with_argtypes */
+#line 7985 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46959 "preproc.c"
+ break;
+
+ case 1223: /* operator_with_argtypes_list: operator_with_argtypes_list ',' operator_with_argtypes */
+#line 7989 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 46967 "preproc.c"
+ break;
+
+ case 1224: /* operator_with_argtypes: any_operator oper_argtypes */
+#line 7997 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46975 "preproc.c"
+ break;
+
+ case 1225: /* DoStmt: DO dostmt_opt_list */
+#line 8005 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("do"),(yyvsp[0].str));
+}
+#line 46983 "preproc.c"
+ break;
+
+ case 1226: /* dostmt_opt_list: dostmt_opt_item */
+#line 8013 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 46991 "preproc.c"
+ break;
+
+ case 1227: /* dostmt_opt_list: dostmt_opt_list dostmt_opt_item */
+#line 8017 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 46999 "preproc.c"
+ break;
+
+ case 1228: /* dostmt_opt_item: ecpg_sconst */
+#line 8025 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 47007 "preproc.c"
+ break;
+
+ case 1229: /* dostmt_opt_item: LANGUAGE NonReservedWord_or_Sconst */
+#line 8029 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("language"),(yyvsp[0].str));
+}
+#line 47015 "preproc.c"
+ break;
+
+ case 1230: /* CreateCastStmt: CREATE CAST '(' Typename AS Typename ')' WITH FUNCTION function_with_argtypes cast_context */
+#line 8037 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create cast ("),(yyvsp[-7].str),mm_strdup("as"),(yyvsp[-5].str),mm_strdup(") with function"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 47023 "preproc.c"
+ break;
+
+ case 1231: /* CreateCastStmt: CREATE CAST '(' Typename AS Typename ')' WITHOUT FUNCTION cast_context */
+#line 8041 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("create cast ("),(yyvsp[-6].str),mm_strdup("as"),(yyvsp[-4].str),mm_strdup(") without function"),(yyvsp[0].str));
+}
+#line 47031 "preproc.c"
+ break;
+
+ case 1232: /* CreateCastStmt: CREATE CAST '(' Typename AS Typename ')' WITH INOUT cast_context */
+#line 8045 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("create cast ("),(yyvsp[-6].str),mm_strdup("as"),(yyvsp[-4].str),mm_strdup(") with inout"),(yyvsp[0].str));
+}
+#line 47039 "preproc.c"
+ break;
+
+ case 1233: /* cast_context: AS IMPLICIT_P */
+#line 8053 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("as implicit");
+}
+#line 47047 "preproc.c"
+ break;
+
+ case 1234: /* cast_context: AS ASSIGNMENT */
+#line 8057 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("as assignment");
+}
+#line 47055 "preproc.c"
+ break;
+
+ case 1235: /* cast_context: %empty */
+#line 8061 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 47062 "preproc.c"
+ break;
+
+ case 1236: /* DropCastStmt: DROP CAST opt_if_exists '(' Typename AS Typename ')' opt_drop_behavior */
+#line 8068 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("drop cast"),(yyvsp[-6].str),mm_strdup("("),(yyvsp[-4].str),mm_strdup("as"),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 47070 "preproc.c"
+ break;
+
+ case 1237: /* opt_if_exists: IF_P EXISTS */
+#line 8076 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("if exists");
+}
+#line 47078 "preproc.c"
+ break;
+
+ case 1238: /* opt_if_exists: %empty */
+#line 8080 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 47085 "preproc.c"
+ break;
+
+ case 1239: /* CreateTransformStmt: CREATE opt_or_replace TRANSFORM FOR Typename LANGUAGE name '(' transform_element_list ')' */
+#line 8087 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("create"),(yyvsp[-8].str),mm_strdup("transform for"),(yyvsp[-5].str),mm_strdup("language"),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 47093 "preproc.c"
+ break;
+
+ case 1240: /* transform_element_list: FROM SQL_P WITH FUNCTION function_with_argtypes ',' TO SQL_P WITH FUNCTION function_with_argtypes */
+#line 8095 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("from sql with function"),(yyvsp[-6].str),mm_strdup(", to sql with function"),(yyvsp[0].str));
+}
+#line 47101 "preproc.c"
+ break;
+
+ case 1241: /* transform_element_list: TO SQL_P WITH FUNCTION function_with_argtypes ',' FROM SQL_P WITH FUNCTION function_with_argtypes */
+#line 8099 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("to sql with function"),(yyvsp[-6].str),mm_strdup(", from sql with function"),(yyvsp[0].str));
+}
+#line 47109 "preproc.c"
+ break;
+
+ case 1242: /* transform_element_list: FROM SQL_P WITH FUNCTION function_with_argtypes */
+#line 8103 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("from sql with function"),(yyvsp[0].str));
+}
+#line 47117 "preproc.c"
+ break;
+
+ case 1243: /* transform_element_list: TO SQL_P WITH FUNCTION function_with_argtypes */
+#line 8107 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("to sql with function"),(yyvsp[0].str));
+}
+#line 47125 "preproc.c"
+ break;
+
+ case 1244: /* DropTransformStmt: DROP TRANSFORM opt_if_exists FOR Typename LANGUAGE name opt_drop_behavior */
+#line 8115 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("drop transform"),(yyvsp[-5].str),mm_strdup("for"),(yyvsp[-3].str),mm_strdup("language"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 47133 "preproc.c"
+ break;
+
+ case 1245: /* ReindexStmt: REINDEX reindex_target_type opt_concurrently qualified_name */
+#line 8123 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("reindex"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 47141 "preproc.c"
+ break;
+
+ case 1246: /* ReindexStmt: REINDEX reindex_target_multitable opt_concurrently name */
+#line 8127 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("reindex"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 47149 "preproc.c"
+ break;
+
+ case 1247: /* ReindexStmt: REINDEX '(' utility_option_list ')' reindex_target_type opt_concurrently qualified_name */
+#line 8131 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("reindex ("),(yyvsp[-4].str),mm_strdup(")"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 47157 "preproc.c"
+ break;
+
+ case 1248: /* ReindexStmt: REINDEX '(' utility_option_list ')' reindex_target_multitable opt_concurrently name */
+#line 8135 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("reindex ("),(yyvsp[-4].str),mm_strdup(")"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 47165 "preproc.c"
+ break;
+
+ case 1249: /* reindex_target_type: INDEX */
+#line 8143 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("index");
+}
+#line 47173 "preproc.c"
+ break;
+
+ case 1250: /* reindex_target_type: TABLE */
+#line 8147 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("table");
+}
+#line 47181 "preproc.c"
+ break;
+
+ case 1251: /* reindex_target_multitable: SCHEMA */
+#line 8155 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("schema");
+}
+#line 47189 "preproc.c"
+ break;
+
+ case 1252: /* reindex_target_multitable: SYSTEM_P */
+#line 8159 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("system");
+}
+#line 47197 "preproc.c"
+ break;
+
+ case 1253: /* reindex_target_multitable: DATABASE */
+#line 8163 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("database");
+}
+#line 47205 "preproc.c"
+ break;
+
+ case 1254: /* AlterTblSpcStmt: ALTER TABLESPACE name SET reloptions */
+#line 8171 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter tablespace"),(yyvsp[-2].str),mm_strdup("set"),(yyvsp[0].str));
+}
+#line 47213 "preproc.c"
+ break;
+
+ case 1255: /* AlterTblSpcStmt: ALTER TABLESPACE name RESET reloptions */
+#line 8175 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter tablespace"),(yyvsp[-2].str),mm_strdup("reset"),(yyvsp[0].str));
+}
+#line 47221 "preproc.c"
+ break;
+
+ case 1256: /* RenameStmt: ALTER AGGREGATE aggregate_with_argtypes RENAME TO name */
+#line 8183 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter aggregate"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47229 "preproc.c"
+ break;
+
+ case 1257: /* RenameStmt: ALTER COLLATION any_name RENAME TO name */
+#line 8187 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter collation"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47237 "preproc.c"
+ break;
+
+ case 1258: /* RenameStmt: ALTER CONVERSION_P any_name RENAME TO name */
+#line 8191 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter conversion"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47245 "preproc.c"
+ break;
+
+ case 1259: /* RenameStmt: ALTER DATABASE name RENAME TO name */
+#line 8195 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter database"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47253 "preproc.c"
+ break;
+
+ case 1260: /* RenameStmt: ALTER DOMAIN_P any_name RENAME TO name */
+#line 8199 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter domain"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47261 "preproc.c"
+ break;
+
+ case 1261: /* RenameStmt: ALTER DOMAIN_P any_name RENAME CONSTRAINT name TO name */
+#line 8203 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter domain"),(yyvsp[-5].str),mm_strdup("rename constraint"),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47269 "preproc.c"
+ break;
+
+ case 1262: /* RenameStmt: ALTER FOREIGN DATA_P WRAPPER name RENAME TO name */
+#line 8207 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter foreign data wrapper"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47277 "preproc.c"
+ break;
+
+ case 1263: /* RenameStmt: ALTER FUNCTION function_with_argtypes RENAME TO name */
+#line 8211 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter function"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47285 "preproc.c"
+ break;
+
+ case 1264: /* RenameStmt: ALTER GROUP_P RoleId RENAME TO RoleId */
+#line 8215 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter group"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47293 "preproc.c"
+ break;
+
+ case 1265: /* RenameStmt: ALTER opt_procedural LANGUAGE name RENAME TO name */
+#line 8219 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter"),(yyvsp[-5].str),mm_strdup("language"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47301 "preproc.c"
+ break;
+
+ case 1266: /* RenameStmt: ALTER OPERATOR CLASS any_name USING name RENAME TO name */
+#line 8223 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter operator class"),(yyvsp[-5].str),mm_strdup("using"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47309 "preproc.c"
+ break;
+
+ case 1267: /* RenameStmt: ALTER OPERATOR FAMILY any_name USING name RENAME TO name */
+#line 8227 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter operator family"),(yyvsp[-5].str),mm_strdup("using"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47317 "preproc.c"
+ break;
+
+ case 1268: /* RenameStmt: ALTER POLICY name ON qualified_name RENAME TO name */
+#line 8231 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter policy"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47325 "preproc.c"
+ break;
+
+ case 1269: /* RenameStmt: ALTER POLICY IF_P EXISTS name ON qualified_name RENAME TO name */
+#line 8235 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter policy if exists"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47333 "preproc.c"
+ break;
+
+ case 1270: /* RenameStmt: ALTER PROCEDURE function_with_argtypes RENAME TO name */
+#line 8239 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter procedure"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47341 "preproc.c"
+ break;
+
+ case 1271: /* RenameStmt: ALTER PUBLICATION name RENAME TO name */
+#line 8243 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter publication"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47349 "preproc.c"
+ break;
+
+ case 1272: /* RenameStmt: ALTER ROUTINE function_with_argtypes RENAME TO name */
+#line 8247 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter routine"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47357 "preproc.c"
+ break;
+
+ case 1273: /* RenameStmt: ALTER SCHEMA name RENAME TO name */
+#line 8251 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter schema"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47365 "preproc.c"
+ break;
+
+ case 1274: /* RenameStmt: ALTER SERVER name RENAME TO name */
+#line 8255 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter server"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47373 "preproc.c"
+ break;
+
+ case 1275: /* RenameStmt: ALTER SUBSCRIPTION name RENAME TO name */
+#line 8259 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter subscription"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47381 "preproc.c"
+ break;
+
+ case 1276: /* RenameStmt: ALTER TABLE relation_expr RENAME TO name */
+#line 8263 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter table"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47389 "preproc.c"
+ break;
+
+ case 1277: /* RenameStmt: ALTER TABLE IF_P EXISTS relation_expr RENAME TO name */
+#line 8267 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter table if exists"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47397 "preproc.c"
+ break;
+
+ case 1278: /* RenameStmt: ALTER SEQUENCE qualified_name RENAME TO name */
+#line 8271 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter sequence"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47405 "preproc.c"
+ break;
+
+ case 1279: /* RenameStmt: ALTER SEQUENCE IF_P EXISTS qualified_name RENAME TO name */
+#line 8275 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter sequence if exists"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47413 "preproc.c"
+ break;
+
+ case 1280: /* RenameStmt: ALTER VIEW qualified_name RENAME TO name */
+#line 8279 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter view"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47421 "preproc.c"
+ break;
+
+ case 1281: /* RenameStmt: ALTER VIEW IF_P EXISTS qualified_name RENAME TO name */
+#line 8283 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter view if exists"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47429 "preproc.c"
+ break;
+
+ case 1282: /* RenameStmt: ALTER MATERIALIZED VIEW qualified_name RENAME TO name */
+#line 8287 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter materialized view"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47437 "preproc.c"
+ break;
+
+ case 1283: /* RenameStmt: ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name RENAME TO name */
+#line 8291 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter materialized view if exists"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47445 "preproc.c"
+ break;
+
+ case 1284: /* RenameStmt: ALTER INDEX qualified_name RENAME TO name */
+#line 8295 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter index"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47453 "preproc.c"
+ break;
+
+ case 1285: /* RenameStmt: ALTER INDEX IF_P EXISTS qualified_name RENAME TO name */
+#line 8299 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter index if exists"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47461 "preproc.c"
+ break;
+
+ case 1286: /* RenameStmt: ALTER FOREIGN TABLE relation_expr RENAME TO name */
+#line 8303 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter foreign table"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47469 "preproc.c"
+ break;
+
+ case 1287: /* RenameStmt: ALTER FOREIGN TABLE IF_P EXISTS relation_expr RENAME TO name */
+#line 8307 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter foreign table if exists"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47477 "preproc.c"
+ break;
+
+ case 1288: /* RenameStmt: ALTER TABLE relation_expr RENAME opt_column name TO name */
+#line 8311 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter table"),(yyvsp[-5].str),mm_strdup("rename"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47485 "preproc.c"
+ break;
+
+ case 1289: /* RenameStmt: ALTER TABLE IF_P EXISTS relation_expr RENAME opt_column name TO name */
+#line 8315 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter table if exists"),(yyvsp[-5].str),mm_strdup("rename"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47493 "preproc.c"
+ break;
+
+ case 1290: /* RenameStmt: ALTER VIEW qualified_name RENAME opt_column name TO name */
+#line 8319 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter view"),(yyvsp[-5].str),mm_strdup("rename"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47501 "preproc.c"
+ break;
+
+ case 1291: /* RenameStmt: ALTER VIEW IF_P EXISTS qualified_name RENAME opt_column name TO name */
+#line 8323 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter view if exists"),(yyvsp[-5].str),mm_strdup("rename"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47509 "preproc.c"
+ break;
+
+ case 1292: /* RenameStmt: ALTER MATERIALIZED VIEW qualified_name RENAME opt_column name TO name */
+#line 8327 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter materialized view"),(yyvsp[-5].str),mm_strdup("rename"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47517 "preproc.c"
+ break;
+
+ case 1293: /* RenameStmt: ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name RENAME opt_column name TO name */
+#line 8331 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter materialized view if exists"),(yyvsp[-5].str),mm_strdup("rename"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47525 "preproc.c"
+ break;
+
+ case 1294: /* RenameStmt: ALTER TABLE relation_expr RENAME CONSTRAINT name TO name */
+#line 8335 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter table"),(yyvsp[-5].str),mm_strdup("rename constraint"),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47533 "preproc.c"
+ break;
+
+ case 1295: /* RenameStmt: ALTER TABLE IF_P EXISTS relation_expr RENAME CONSTRAINT name TO name */
+#line 8339 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter table if exists"),(yyvsp[-5].str),mm_strdup("rename constraint"),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47541 "preproc.c"
+ break;
+
+ case 1296: /* RenameStmt: ALTER FOREIGN TABLE relation_expr RENAME opt_column name TO name */
+#line 8343 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter foreign table"),(yyvsp[-5].str),mm_strdup("rename"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47549 "preproc.c"
+ break;
+
+ case 1297: /* RenameStmt: ALTER FOREIGN TABLE IF_P EXISTS relation_expr RENAME opt_column name TO name */
+#line 8347 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter foreign table if exists"),(yyvsp[-5].str),mm_strdup("rename"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 47557 "preproc.c"
+ break;
+
+ case 1298: /* RenameStmt: ALTER RULE name ON qualified_name RENAME TO name */
+#line 8351 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter rule"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47565 "preproc.c"
+ break;
+
+ case 1299: /* RenameStmt: ALTER TRIGGER name ON qualified_name RENAME TO name */
+#line 8355 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter trigger"),(yyvsp[-5].str),mm_strdup("on"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47573 "preproc.c"
+ break;
+
+ case 1300: /* RenameStmt: ALTER EVENT TRIGGER name RENAME TO name */
+#line 8359 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter event trigger"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47581 "preproc.c"
+ break;
+
+ case 1301: /* RenameStmt: ALTER ROLE RoleId RENAME TO RoleId */
+#line 8363 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter role"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47589 "preproc.c"
+ break;
+
+ case 1302: /* RenameStmt: ALTER USER RoleId RENAME TO RoleId */
+#line 8367 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter user"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47597 "preproc.c"
+ break;
+
+ case 1303: /* RenameStmt: ALTER TABLESPACE name RENAME TO name */
+#line 8371 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter tablespace"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47605 "preproc.c"
+ break;
+
+ case 1304: /* RenameStmt: ALTER STATISTICS any_name RENAME TO name */
+#line 8375 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter statistics"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47613 "preproc.c"
+ break;
+
+ case 1305: /* RenameStmt: ALTER TEXT_P SEARCH PARSER any_name RENAME TO name */
+#line 8379 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search parser"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47621 "preproc.c"
+ break;
+
+ case 1306: /* RenameStmt: ALTER TEXT_P SEARCH DICTIONARY any_name RENAME TO name */
+#line 8383 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search dictionary"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47629 "preproc.c"
+ break;
+
+ case 1307: /* RenameStmt: ALTER TEXT_P SEARCH TEMPLATE any_name RENAME TO name */
+#line 8387 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search template"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47637 "preproc.c"
+ break;
+
+ case 1308: /* RenameStmt: ALTER TEXT_P SEARCH CONFIGURATION any_name RENAME TO name */
+#line 8391 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search configuration"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47645 "preproc.c"
+ break;
+
+ case 1309: /* RenameStmt: ALTER TYPE_P any_name RENAME TO name */
+#line 8395 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter type"),(yyvsp[-3].str),mm_strdup("rename to"),(yyvsp[0].str));
+}
+#line 47653 "preproc.c"
+ break;
+
+ case 1310: /* RenameStmt: ALTER TYPE_P any_name RENAME ATTRIBUTE name TO name opt_drop_behavior */
+#line 8399 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter type"),(yyvsp[-6].str),mm_strdup("rename attribute"),(yyvsp[-3].str),mm_strdup("to"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 47661 "preproc.c"
+ break;
+
+ case 1311: /* opt_column: COLUMN */
+#line 8407 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("column");
+}
+#line 47669 "preproc.c"
+ break;
+
+ case 1312: /* opt_column: %empty */
+#line 8411 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 47676 "preproc.c"
+ break;
+
+ case 1313: /* opt_set_data: SET DATA_P */
+#line 8418 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("set data");
+}
+#line 47684 "preproc.c"
+ break;
+
+ case 1314: /* opt_set_data: %empty */
+#line 8422 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 47691 "preproc.c"
+ break;
+
+ case 1315: /* AlterObjectDependsStmt: ALTER FUNCTION function_with_argtypes opt_no DEPENDS ON EXTENSION name */
+#line 8429 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter function"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("depends on extension"),(yyvsp[0].str));
+}
+#line 47699 "preproc.c"
+ break;
+
+ case 1316: /* AlterObjectDependsStmt: ALTER PROCEDURE function_with_argtypes opt_no DEPENDS ON EXTENSION name */
+#line 8433 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter procedure"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("depends on extension"),(yyvsp[0].str));
+}
+#line 47707 "preproc.c"
+ break;
+
+ case 1317: /* AlterObjectDependsStmt: ALTER ROUTINE function_with_argtypes opt_no DEPENDS ON EXTENSION name */
+#line 8437 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter routine"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("depends on extension"),(yyvsp[0].str));
+}
+#line 47715 "preproc.c"
+ break;
+
+ case 1318: /* AlterObjectDependsStmt: ALTER TRIGGER name ON qualified_name opt_no DEPENDS ON EXTENSION name */
+#line 8441 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("alter trigger"),(yyvsp[-7].str),mm_strdup("on"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("depends on extension"),(yyvsp[0].str));
+}
+#line 47723 "preproc.c"
+ break;
+
+ case 1319: /* AlterObjectDependsStmt: ALTER MATERIALIZED VIEW qualified_name opt_no DEPENDS ON EXTENSION name */
+#line 8445 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter materialized view"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("depends on extension"),(yyvsp[0].str));
+}
+#line 47731 "preproc.c"
+ break;
+
+ case 1320: /* AlterObjectDependsStmt: ALTER INDEX qualified_name opt_no DEPENDS ON EXTENSION name */
+#line 8449 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter index"),(yyvsp[-5].str),(yyvsp[-4].str),mm_strdup("depends on extension"),(yyvsp[0].str));
+}
+#line 47739 "preproc.c"
+ break;
+
+ case 1321: /* opt_no: NO */
+#line 8457 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no");
+}
+#line 47747 "preproc.c"
+ break;
+
+ case 1322: /* opt_no: %empty */
+#line 8461 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 47754 "preproc.c"
+ break;
+
+ case 1323: /* AlterObjectSchemaStmt: ALTER AGGREGATE aggregate_with_argtypes SET SCHEMA name */
+#line 8468 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter aggregate"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47762 "preproc.c"
+ break;
+
+ case 1324: /* AlterObjectSchemaStmt: ALTER COLLATION any_name SET SCHEMA name */
+#line 8472 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter collation"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47770 "preproc.c"
+ break;
+
+ case 1325: /* AlterObjectSchemaStmt: ALTER CONVERSION_P any_name SET SCHEMA name */
+#line 8476 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter conversion"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47778 "preproc.c"
+ break;
+
+ case 1326: /* AlterObjectSchemaStmt: ALTER DOMAIN_P any_name SET SCHEMA name */
+#line 8480 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter domain"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47786 "preproc.c"
+ break;
+
+ case 1327: /* AlterObjectSchemaStmt: ALTER EXTENSION name SET SCHEMA name */
+#line 8484 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter extension"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47794 "preproc.c"
+ break;
+
+ case 1328: /* AlterObjectSchemaStmt: ALTER FUNCTION function_with_argtypes SET SCHEMA name */
+#line 8488 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter function"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47802 "preproc.c"
+ break;
+
+ case 1329: /* AlterObjectSchemaStmt: ALTER OPERATOR operator_with_argtypes SET SCHEMA name */
+#line 8492 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter operator"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47810 "preproc.c"
+ break;
+
+ case 1330: /* AlterObjectSchemaStmt: ALTER OPERATOR CLASS any_name USING name SET SCHEMA name */
+#line 8496 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter operator class"),(yyvsp[-5].str),mm_strdup("using"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47818 "preproc.c"
+ break;
+
+ case 1331: /* AlterObjectSchemaStmt: ALTER OPERATOR FAMILY any_name USING name SET SCHEMA name */
+#line 8500 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter operator family"),(yyvsp[-5].str),mm_strdup("using"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47826 "preproc.c"
+ break;
+
+ case 1332: /* AlterObjectSchemaStmt: ALTER PROCEDURE function_with_argtypes SET SCHEMA name */
+#line 8504 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter procedure"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47834 "preproc.c"
+ break;
+
+ case 1333: /* AlterObjectSchemaStmt: ALTER ROUTINE function_with_argtypes SET SCHEMA name */
+#line 8508 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter routine"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47842 "preproc.c"
+ break;
+
+ case 1334: /* AlterObjectSchemaStmt: ALTER TABLE relation_expr SET SCHEMA name */
+#line 8512 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter table"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47850 "preproc.c"
+ break;
+
+ case 1335: /* AlterObjectSchemaStmt: ALTER TABLE IF_P EXISTS relation_expr SET SCHEMA name */
+#line 8516 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter table if exists"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47858 "preproc.c"
+ break;
+
+ case 1336: /* AlterObjectSchemaStmt: ALTER STATISTICS any_name SET SCHEMA name */
+#line 8520 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter statistics"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47866 "preproc.c"
+ break;
+
+ case 1337: /* AlterObjectSchemaStmt: ALTER TEXT_P SEARCH PARSER any_name SET SCHEMA name */
+#line 8524 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search parser"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47874 "preproc.c"
+ break;
+
+ case 1338: /* AlterObjectSchemaStmt: ALTER TEXT_P SEARCH DICTIONARY any_name SET SCHEMA name */
+#line 8528 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search dictionary"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47882 "preproc.c"
+ break;
+
+ case 1339: /* AlterObjectSchemaStmt: ALTER TEXT_P SEARCH TEMPLATE any_name SET SCHEMA name */
+#line 8532 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search template"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47890 "preproc.c"
+ break;
+
+ case 1340: /* AlterObjectSchemaStmt: ALTER TEXT_P SEARCH CONFIGURATION any_name SET SCHEMA name */
+#line 8536 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search configuration"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47898 "preproc.c"
+ break;
+
+ case 1341: /* AlterObjectSchemaStmt: ALTER SEQUENCE qualified_name SET SCHEMA name */
+#line 8540 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter sequence"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47906 "preproc.c"
+ break;
+
+ case 1342: /* AlterObjectSchemaStmt: ALTER SEQUENCE IF_P EXISTS qualified_name SET SCHEMA name */
+#line 8544 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter sequence if exists"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47914 "preproc.c"
+ break;
+
+ case 1343: /* AlterObjectSchemaStmt: ALTER VIEW qualified_name SET SCHEMA name */
+#line 8548 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter view"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47922 "preproc.c"
+ break;
+
+ case 1344: /* AlterObjectSchemaStmt: ALTER VIEW IF_P EXISTS qualified_name SET SCHEMA name */
+#line 8552 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter view if exists"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47930 "preproc.c"
+ break;
+
+ case 1345: /* AlterObjectSchemaStmt: ALTER MATERIALIZED VIEW qualified_name SET SCHEMA name */
+#line 8556 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter materialized view"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47938 "preproc.c"
+ break;
+
+ case 1346: /* AlterObjectSchemaStmt: ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name SET SCHEMA name */
+#line 8560 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter materialized view if exists"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47946 "preproc.c"
+ break;
+
+ case 1347: /* AlterObjectSchemaStmt: ALTER FOREIGN TABLE relation_expr SET SCHEMA name */
+#line 8564 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter foreign table"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47954 "preproc.c"
+ break;
+
+ case 1348: /* AlterObjectSchemaStmt: ALTER FOREIGN TABLE IF_P EXISTS relation_expr SET SCHEMA name */
+#line 8568 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter foreign table if exists"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47962 "preproc.c"
+ break;
+
+ case 1349: /* AlterObjectSchemaStmt: ALTER TYPE_P any_name SET SCHEMA name */
+#line 8572 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter type"),(yyvsp[-3].str),mm_strdup("set schema"),(yyvsp[0].str));
+}
+#line 47970 "preproc.c"
+ break;
+
+ case 1350: /* AlterOperatorStmt: ALTER OPERATOR operator_with_argtypes SET '(' operator_def_list ')' */
+#line 8580 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter operator"),(yyvsp[-4].str),mm_strdup("set ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 47978 "preproc.c"
+ break;
+
+ case 1351: /* operator_def_list: operator_def_elem */
+#line 8588 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 47986 "preproc.c"
+ break;
+
+ case 1352: /* operator_def_list: operator_def_list ',' operator_def_elem */
+#line 8592 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 47994 "preproc.c"
+ break;
+
+ case 1353: /* operator_def_elem: ColLabel '=' NONE */
+#line 8600 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("= none"));
+}
+#line 48002 "preproc.c"
+ break;
+
+ case 1354: /* operator_def_elem: ColLabel '=' operator_def_arg */
+#line 8604 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 48010 "preproc.c"
+ break;
+
+ case 1355: /* operator_def_arg: func_type */
+#line 8612 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48018 "preproc.c"
+ break;
+
+ case 1356: /* operator_def_arg: reserved_keyword */
+#line 8616 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48026 "preproc.c"
+ break;
+
+ case 1357: /* operator_def_arg: qual_all_Op */
+#line 8620 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48034 "preproc.c"
+ break;
+
+ case 1358: /* operator_def_arg: NumericOnly */
+#line 8624 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48042 "preproc.c"
+ break;
+
+ case 1359: /* operator_def_arg: ecpg_sconst */
+#line 8628 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48050 "preproc.c"
+ break;
+
+ case 1360: /* AlterTypeStmt: ALTER TYPE_P any_name SET '(' operator_def_list ')' */
+#line 8636 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter type"),(yyvsp[-4].str),mm_strdup("set ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 48058 "preproc.c"
+ break;
+
+ case 1361: /* AlterOwnerStmt: ALTER AGGREGATE aggregate_with_argtypes OWNER TO RoleSpec */
+#line 8644 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter aggregate"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48066 "preproc.c"
+ break;
+
+ case 1362: /* AlterOwnerStmt: ALTER COLLATION any_name OWNER TO RoleSpec */
+#line 8648 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter collation"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48074 "preproc.c"
+ break;
+
+ case 1363: /* AlterOwnerStmt: ALTER CONVERSION_P any_name OWNER TO RoleSpec */
+#line 8652 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter conversion"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48082 "preproc.c"
+ break;
+
+ case 1364: /* AlterOwnerStmt: ALTER DATABASE name OWNER TO RoleSpec */
+#line 8656 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter database"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48090 "preproc.c"
+ break;
+
+ case 1365: /* AlterOwnerStmt: ALTER DOMAIN_P any_name OWNER TO RoleSpec */
+#line 8660 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter domain"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48098 "preproc.c"
+ break;
+
+ case 1366: /* AlterOwnerStmt: ALTER FUNCTION function_with_argtypes OWNER TO RoleSpec */
+#line 8664 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter function"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48106 "preproc.c"
+ break;
+
+ case 1367: /* AlterOwnerStmt: ALTER opt_procedural LANGUAGE name OWNER TO RoleSpec */
+#line 8668 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter"),(yyvsp[-5].str),mm_strdup("language"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48114 "preproc.c"
+ break;
+
+ case 1368: /* AlterOwnerStmt: ALTER LARGE_P OBJECT_P NumericOnly OWNER TO RoleSpec */
+#line 8672 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter large object"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48122 "preproc.c"
+ break;
+
+ case 1369: /* AlterOwnerStmt: ALTER OPERATOR operator_with_argtypes OWNER TO RoleSpec */
+#line 8676 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter operator"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48130 "preproc.c"
+ break;
+
+ case 1370: /* AlterOwnerStmt: ALTER OPERATOR CLASS any_name USING name OWNER TO RoleSpec */
+#line 8680 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter operator class"),(yyvsp[-5].str),mm_strdup("using"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48138 "preproc.c"
+ break;
+
+ case 1371: /* AlterOwnerStmt: ALTER OPERATOR FAMILY any_name USING name OWNER TO RoleSpec */
+#line 8684 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter operator family"),(yyvsp[-5].str),mm_strdup("using"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48146 "preproc.c"
+ break;
+
+ case 1372: /* AlterOwnerStmt: ALTER PROCEDURE function_with_argtypes OWNER TO RoleSpec */
+#line 8688 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter procedure"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48154 "preproc.c"
+ break;
+
+ case 1373: /* AlterOwnerStmt: ALTER ROUTINE function_with_argtypes OWNER TO RoleSpec */
+#line 8692 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter routine"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48162 "preproc.c"
+ break;
+
+ case 1374: /* AlterOwnerStmt: ALTER SCHEMA name OWNER TO RoleSpec */
+#line 8696 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter schema"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48170 "preproc.c"
+ break;
+
+ case 1375: /* AlterOwnerStmt: ALTER TYPE_P any_name OWNER TO RoleSpec */
+#line 8700 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter type"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48178 "preproc.c"
+ break;
+
+ case 1376: /* AlterOwnerStmt: ALTER TABLESPACE name OWNER TO RoleSpec */
+#line 8704 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter tablespace"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48186 "preproc.c"
+ break;
+
+ case 1377: /* AlterOwnerStmt: ALTER STATISTICS any_name OWNER TO RoleSpec */
+#line 8708 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter statistics"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48194 "preproc.c"
+ break;
+
+ case 1378: /* AlterOwnerStmt: ALTER TEXT_P SEARCH DICTIONARY any_name OWNER TO RoleSpec */
+#line 8712 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search dictionary"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48202 "preproc.c"
+ break;
+
+ case 1379: /* AlterOwnerStmt: ALTER TEXT_P SEARCH CONFIGURATION any_name OWNER TO RoleSpec */
+#line 8716 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search configuration"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48210 "preproc.c"
+ break;
+
+ case 1380: /* AlterOwnerStmt: ALTER FOREIGN DATA_P WRAPPER name OWNER TO RoleSpec */
+#line 8720 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter foreign data wrapper"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48218 "preproc.c"
+ break;
+
+ case 1381: /* AlterOwnerStmt: ALTER SERVER name OWNER TO RoleSpec */
+#line 8724 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter server"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48226 "preproc.c"
+ break;
+
+ case 1382: /* AlterOwnerStmt: ALTER EVENT TRIGGER name OWNER TO RoleSpec */
+#line 8728 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter event trigger"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48234 "preproc.c"
+ break;
+
+ case 1383: /* AlterOwnerStmt: ALTER PUBLICATION name OWNER TO RoleSpec */
+#line 8732 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter publication"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48242 "preproc.c"
+ break;
+
+ case 1384: /* AlterOwnerStmt: ALTER SUBSCRIPTION name OWNER TO RoleSpec */
+#line 8736 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter subscription"),(yyvsp[-3].str),mm_strdup("owner to"),(yyvsp[0].str));
+}
+#line 48250 "preproc.c"
+ break;
+
+ case 1385: /* CreatePublicationStmt: CREATE PUBLICATION name opt_definition */
+#line 8744 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("create publication"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48258 "preproc.c"
+ break;
+
+ case 1386: /* CreatePublicationStmt: CREATE PUBLICATION name FOR ALL TABLES opt_definition */
+#line 8748 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create publication"),(yyvsp[-4].str),mm_strdup("for all tables"),(yyvsp[0].str));
+}
+#line 48266 "preproc.c"
+ break;
+
+ case 1387: /* CreatePublicationStmt: CREATE PUBLICATION name FOR pub_obj_list opt_definition */
+#line 8752 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create publication"),(yyvsp[-3].str),mm_strdup("for"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48274 "preproc.c"
+ break;
+
+ case 1388: /* PublicationObjSpec: TABLE relation_expr opt_column_list OptWhereClause */
+#line 8760 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("table"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48282 "preproc.c"
+ break;
+
+ case 1389: /* PublicationObjSpec: TABLES IN_P SCHEMA ColId */
+#line 8764 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("tables in schema"),(yyvsp[0].str));
+}
+#line 48290 "preproc.c"
+ break;
+
+ case 1390: /* PublicationObjSpec: TABLES IN_P SCHEMA CURRENT_SCHEMA */
+#line 8768 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tables in schema current_schema");
+}
+#line 48298 "preproc.c"
+ break;
+
+ case 1391: /* PublicationObjSpec: ColId opt_column_list OptWhereClause */
+#line 8772 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48306 "preproc.c"
+ break;
+
+ case 1392: /* PublicationObjSpec: ColId indirection opt_column_list OptWhereClause */
+#line 8776 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48314 "preproc.c"
+ break;
+
+ case 1393: /* PublicationObjSpec: extended_relation_expr opt_column_list OptWhereClause */
+#line 8780 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48322 "preproc.c"
+ break;
+
+ case 1394: /* PublicationObjSpec: CURRENT_SCHEMA */
+#line 8784 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_schema");
+}
+#line 48330 "preproc.c"
+ break;
+
+ case 1395: /* pub_obj_list: PublicationObjSpec */
+#line 8792 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48338 "preproc.c"
+ break;
+
+ case 1396: /* pub_obj_list: pub_obj_list ',' PublicationObjSpec */
+#line 8796 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 48346 "preproc.c"
+ break;
+
+ case 1397: /* AlterPublicationStmt: ALTER PUBLICATION name SET definition */
+#line 8804 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter publication"),(yyvsp[-2].str),mm_strdup("set"),(yyvsp[0].str));
+}
+#line 48354 "preproc.c"
+ break;
+
+ case 1398: /* AlterPublicationStmt: ALTER PUBLICATION name ADD_P pub_obj_list */
+#line 8808 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter publication"),(yyvsp[-2].str),mm_strdup("add"),(yyvsp[0].str));
+}
+#line 48362 "preproc.c"
+ break;
+
+ case 1399: /* AlterPublicationStmt: ALTER PUBLICATION name SET pub_obj_list */
+#line 8812 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter publication"),(yyvsp[-2].str),mm_strdup("set"),(yyvsp[0].str));
+}
+#line 48370 "preproc.c"
+ break;
+
+ case 1400: /* AlterPublicationStmt: ALTER PUBLICATION name DROP pub_obj_list */
+#line 8816 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter publication"),(yyvsp[-2].str),mm_strdup("drop"),(yyvsp[0].str));
+}
+#line 48378 "preproc.c"
+ break;
+
+ case 1401: /* CreateSubscriptionStmt: CREATE SUBSCRIPTION name CONNECTION ecpg_sconst PUBLICATION name_list opt_definition */
+#line 8824 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("create subscription"),(yyvsp[-5].str),mm_strdup("connection"),(yyvsp[-3].str),mm_strdup("publication"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48386 "preproc.c"
+ break;
+
+ case 1402: /* AlterSubscriptionStmt: ALTER SUBSCRIPTION name SET definition */
+#line 8832 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter subscription"),(yyvsp[-2].str),mm_strdup("set"),(yyvsp[0].str));
+}
+#line 48394 "preproc.c"
+ break;
+
+ case 1403: /* AlterSubscriptionStmt: ALTER SUBSCRIPTION name CONNECTION ecpg_sconst */
+#line 8836 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter subscription"),(yyvsp[-2].str),mm_strdup("connection"),(yyvsp[0].str));
+}
+#line 48402 "preproc.c"
+ break;
+
+ case 1404: /* AlterSubscriptionStmt: ALTER SUBSCRIPTION name REFRESH PUBLICATION opt_definition */
+#line 8840 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter subscription"),(yyvsp[-3].str),mm_strdup("refresh publication"),(yyvsp[0].str));
+}
+#line 48410 "preproc.c"
+ break;
+
+ case 1405: /* AlterSubscriptionStmt: ALTER SUBSCRIPTION name ADD_P PUBLICATION name_list opt_definition */
+#line 8844 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter subscription"),(yyvsp[-4].str),mm_strdup("add publication"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48418 "preproc.c"
+ break;
+
+ case 1406: /* AlterSubscriptionStmt: ALTER SUBSCRIPTION name DROP PUBLICATION name_list opt_definition */
+#line 8848 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter subscription"),(yyvsp[-4].str),mm_strdup("drop publication"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48426 "preproc.c"
+ break;
+
+ case 1407: /* AlterSubscriptionStmt: ALTER SUBSCRIPTION name SET PUBLICATION name_list opt_definition */
+#line 8852 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter subscription"),(yyvsp[-4].str),mm_strdup("set publication"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48434 "preproc.c"
+ break;
+
+ case 1408: /* AlterSubscriptionStmt: ALTER SUBSCRIPTION name ENABLE_P */
+#line 8856 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter subscription"),(yyvsp[-1].str),mm_strdup("enable"));
+}
+#line 48442 "preproc.c"
+ break;
+
+ case 1409: /* AlterSubscriptionStmt: ALTER SUBSCRIPTION name DISABLE_P */
+#line 8860 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter subscription"),(yyvsp[-1].str),mm_strdup("disable"));
+}
+#line 48450 "preproc.c"
+ break;
+
+ case 1410: /* AlterSubscriptionStmt: ALTER SUBSCRIPTION name SKIP definition */
+#line 8864 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter subscription"),(yyvsp[-2].str),mm_strdup("skip"),(yyvsp[0].str));
+}
+#line 48458 "preproc.c"
+ break;
+
+ case 1411: /* DropSubscriptionStmt: DROP SUBSCRIPTION name opt_drop_behavior */
+#line 8872 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop subscription"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48466 "preproc.c"
+ break;
+
+ case 1412: /* DropSubscriptionStmt: DROP SUBSCRIPTION IF_P EXISTS name opt_drop_behavior */
+#line 8876 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("drop subscription if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48474 "preproc.c"
+ break;
+
+ case 1413: /* RuleStmt: CREATE opt_or_replace RULE name AS ON event TO qualified_name where_clause DO opt_instead RuleActionList */
+#line 8884 "preproc.y"
+ {
+ (yyval.str) = cat_str(12,mm_strdup("create"),(yyvsp[-11].str),mm_strdup("rule"),(yyvsp[-9].str),mm_strdup("as on"),(yyvsp[-6].str),mm_strdup("to"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("do"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48482 "preproc.c"
+ break;
+
+ case 1414: /* RuleActionList: NOTHING */
+#line 8892 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nothing");
+}
+#line 48490 "preproc.c"
+ break;
+
+ case 1415: /* RuleActionList: RuleActionStmt */
+#line 8896 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48498 "preproc.c"
+ break;
+
+ case 1416: /* RuleActionList: '(' RuleActionMulti ')' */
+#line 8900 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 48506 "preproc.c"
+ break;
+
+ case 1417: /* RuleActionMulti: RuleActionMulti ';' RuleActionStmtOrEmpty */
+#line 8908 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(";"),(yyvsp[0].str));
+}
+#line 48514 "preproc.c"
+ break;
+
+ case 1418: /* RuleActionMulti: RuleActionStmtOrEmpty */
+#line 8912 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48522 "preproc.c"
+ break;
+
+ case 1419: /* RuleActionStmt: SelectStmt */
+#line 8920 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48530 "preproc.c"
+ break;
+
+ case 1420: /* RuleActionStmt: InsertStmt */
+#line 8924 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48538 "preproc.c"
+ break;
+
+ case 1421: /* RuleActionStmt: UpdateStmt */
+#line 8928 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48546 "preproc.c"
+ break;
+
+ case 1422: /* RuleActionStmt: DeleteStmt */
+#line 8932 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48554 "preproc.c"
+ break;
+
+ case 1423: /* RuleActionStmt: NotifyStmt */
+#line 8936 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48562 "preproc.c"
+ break;
+
+ case 1424: /* RuleActionStmtOrEmpty: RuleActionStmt */
+#line 8944 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48570 "preproc.c"
+ break;
+
+ case 1425: /* RuleActionStmtOrEmpty: %empty */
+#line 8948 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 48577 "preproc.c"
+ break;
+
+ case 1426: /* event: SELECT */
+#line 8955 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("select");
+}
+#line 48585 "preproc.c"
+ break;
+
+ case 1427: /* event: UPDATE */
+#line 8959 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("update");
+}
+#line 48593 "preproc.c"
+ break;
+
+ case 1428: /* event: DELETE_P */
+#line 8963 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delete");
+}
+#line 48601 "preproc.c"
+ break;
+
+ case 1429: /* event: INSERT */
+#line 8967 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("insert");
+}
+#line 48609 "preproc.c"
+ break;
+
+ case 1430: /* opt_instead: INSTEAD */
+#line 8975 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("instead");
+}
+#line 48617 "preproc.c"
+ break;
+
+ case 1431: /* opt_instead: ALSO */
+#line 8979 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("also");
+}
+#line 48625 "preproc.c"
+ break;
+
+ case 1432: /* opt_instead: %empty */
+#line 8983 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 48632 "preproc.c"
+ break;
+
+ case 1433: /* NotifyStmt: NOTIFY ColId notify_payload */
+#line 8990 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("notify"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48640 "preproc.c"
+ break;
+
+ case 1434: /* notify_payload: ',' ecpg_sconst */
+#line 8998 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup(","),(yyvsp[0].str));
+}
+#line 48648 "preproc.c"
+ break;
+
+ case 1435: /* notify_payload: %empty */
+#line 9002 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 48655 "preproc.c"
+ break;
+
+ case 1436: /* ListenStmt: LISTEN ColId */
+#line 9009 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("listen"),(yyvsp[0].str));
+}
+#line 48663 "preproc.c"
+ break;
+
+ case 1437: /* UnlistenStmt: UNLISTEN ColId */
+#line 9017 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("unlisten"),(yyvsp[0].str));
+}
+#line 48671 "preproc.c"
+ break;
+
+ case 1438: /* UnlistenStmt: UNLISTEN '*' */
+#line 9021 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unlisten *");
+}
+#line 48679 "preproc.c"
+ break;
+
+ case 1439: /* TransactionStmt: ABORT_P opt_transaction opt_transaction_chain */
+#line 9029 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("abort"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48687 "preproc.c"
+ break;
+
+ case 1440: /* TransactionStmt: START TRANSACTION transaction_mode_list_or_empty */
+#line 9033 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("start transaction"),(yyvsp[0].str));
+}
+#line 48695 "preproc.c"
+ break;
+
+ case 1441: /* TransactionStmt: COMMIT opt_transaction opt_transaction_chain */
+#line 9037 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("commit"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48703 "preproc.c"
+ break;
+
+ case 1442: /* TransactionStmt: ROLLBACK opt_transaction opt_transaction_chain */
+#line 9041 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("rollback"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48711 "preproc.c"
+ break;
+
+ case 1443: /* TransactionStmt: SAVEPOINT ColId */
+#line 9045 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("savepoint"),(yyvsp[0].str));
+}
+#line 48719 "preproc.c"
+ break;
+
+ case 1444: /* TransactionStmt: RELEASE SAVEPOINT ColId */
+#line 9049 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("release savepoint"),(yyvsp[0].str));
+}
+#line 48727 "preproc.c"
+ break;
+
+ case 1445: /* TransactionStmt: RELEASE ColId */
+#line 9053 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("release"),(yyvsp[0].str));
+}
+#line 48735 "preproc.c"
+ break;
+
+ case 1446: /* TransactionStmt: ROLLBACK opt_transaction TO SAVEPOINT ColId */
+#line 9057 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("rollback"),(yyvsp[-3].str),mm_strdup("to savepoint"),(yyvsp[0].str));
+}
+#line 48743 "preproc.c"
+ break;
+
+ case 1447: /* TransactionStmt: ROLLBACK opt_transaction TO ColId */
+#line 9061 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("rollback"),(yyvsp[-2].str),mm_strdup("to"),(yyvsp[0].str));
+}
+#line 48751 "preproc.c"
+ break;
+
+ case 1448: /* TransactionStmt: PREPARE TRANSACTION ecpg_sconst */
+#line 9065 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("prepare transaction"),(yyvsp[0].str));
+}
+#line 48759 "preproc.c"
+ break;
+
+ case 1449: /* TransactionStmt: COMMIT PREPARED ecpg_sconst */
+#line 9069 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("commit prepared"),(yyvsp[0].str));
+}
+#line 48767 "preproc.c"
+ break;
+
+ case 1450: /* TransactionStmt: ROLLBACK PREPARED ecpg_sconst */
+#line 9073 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("rollback prepared"),(yyvsp[0].str));
+}
+#line 48775 "preproc.c"
+ break;
+
+ case 1451: /* TransactionStmtLegacy: BEGIN_P opt_transaction transaction_mode_list_or_empty */
+#line 9081 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("begin"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48783 "preproc.c"
+ break;
+
+ case 1452: /* TransactionStmtLegacy: END_P opt_transaction opt_transaction_chain */
+#line 9085 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("end"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48791 "preproc.c"
+ break;
+
+ case 1453: /* opt_transaction: WORK */
+#line 9093 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("work");
+}
+#line 48799 "preproc.c"
+ break;
+
+ case 1454: /* opt_transaction: TRANSACTION */
+#line 9097 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("transaction");
+}
+#line 48807 "preproc.c"
+ break;
+
+ case 1455: /* opt_transaction: %empty */
+#line 9101 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 48814 "preproc.c"
+ break;
+
+ case 1456: /* transaction_mode_item: ISOLATION LEVEL iso_level */
+#line 9108 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("isolation level"),(yyvsp[0].str));
+}
+#line 48822 "preproc.c"
+ break;
+
+ case 1457: /* transaction_mode_item: READ ONLY */
+#line 9112 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("read only");
+}
+#line 48830 "preproc.c"
+ break;
+
+ case 1458: /* transaction_mode_item: READ WRITE */
+#line 9116 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("read write");
+}
+#line 48838 "preproc.c"
+ break;
+
+ case 1459: /* transaction_mode_item: DEFERRABLE */
+#line 9120 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deferrable");
+}
+#line 48846 "preproc.c"
+ break;
+
+ case 1460: /* transaction_mode_item: NOT DEFERRABLE */
+#line 9124 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not deferrable");
+}
+#line 48854 "preproc.c"
+ break;
+
+ case 1461: /* transaction_mode_list: transaction_mode_item */
+#line 9132 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48862 "preproc.c"
+ break;
+
+ case 1462: /* transaction_mode_list: transaction_mode_list ',' transaction_mode_item */
+#line 9136 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 48870 "preproc.c"
+ break;
+
+ case 1463: /* transaction_mode_list: transaction_mode_list transaction_mode_item */
+#line 9140 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48878 "preproc.c"
+ break;
+
+ case 1464: /* transaction_mode_list_or_empty: transaction_mode_list */
+#line 9148 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 48886 "preproc.c"
+ break;
+
+ case 1465: /* transaction_mode_list_or_empty: %empty */
+#line 9152 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 48893 "preproc.c"
+ break;
+
+ case 1466: /* opt_transaction_chain: AND CHAIN */
+#line 9159 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("and chain");
+}
+#line 48901 "preproc.c"
+ break;
+
+ case 1467: /* opt_transaction_chain: AND NO CHAIN */
+#line 9163 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("and no chain");
+}
+#line 48909 "preproc.c"
+ break;
+
+ case 1468: /* opt_transaction_chain: %empty */
+#line 9167 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 48916 "preproc.c"
+ break;
+
+ case 1469: /* ViewStmt: CREATE OptTemp VIEW qualified_name opt_column_list opt_reloptions AS SelectStmt opt_check_option */
+#line 9174 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("create"),(yyvsp[-7].str),mm_strdup("view"),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48924 "preproc.c"
+ break;
+
+ case 1470: /* ViewStmt: CREATE OR REPLACE OptTemp VIEW qualified_name opt_column_list opt_reloptions AS SelectStmt opt_check_option */
+#line 9178 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("create or replace"),(yyvsp[-7].str),mm_strdup("view"),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48932 "preproc.c"
+ break;
+
+ case 1471: /* ViewStmt: CREATE OptTemp RECURSIVE VIEW qualified_name '(' columnList ')' opt_reloptions AS SelectStmt opt_check_option */
+#line 9182 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(11,mm_strdup("create"),(yyvsp[-10].str),mm_strdup("recursive view"),(yyvsp[-7].str),mm_strdup("("),(yyvsp[-5].str),mm_strdup(")"),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48941 "preproc.c"
+ break;
+
+ case 1472: /* ViewStmt: CREATE OR REPLACE OptTemp RECURSIVE VIEW qualified_name '(' columnList ')' opt_reloptions AS SelectStmt opt_check_option */
+#line 9187 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(11,mm_strdup("create or replace"),(yyvsp[-10].str),mm_strdup("recursive view"),(yyvsp[-7].str),mm_strdup("("),(yyvsp[-5].str),mm_strdup(")"),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48950 "preproc.c"
+ break;
+
+ case 1473: /* opt_check_option: WITH CHECK OPTION */
+#line 9196 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with check option");
+}
+#line 48958 "preproc.c"
+ break;
+
+ case 1474: /* opt_check_option: WITH CASCADED CHECK OPTION */
+#line 9200 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with cascaded check option");
+}
+#line 48966 "preproc.c"
+ break;
+
+ case 1475: /* opt_check_option: WITH LOCAL CHECK OPTION */
+#line 9204 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with local check option");
+}
+#line 48974 "preproc.c"
+ break;
+
+ case 1476: /* opt_check_option: %empty */
+#line 9208 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 48981 "preproc.c"
+ break;
+
+ case 1477: /* LoadStmt: LOAD file_name */
+#line 9215 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("load"),(yyvsp[0].str));
+}
+#line 48989 "preproc.c"
+ break;
+
+ case 1478: /* CreatedbStmt: CREATE DATABASE name opt_with createdb_opt_list */
+#line 9223 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("create database"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 48997 "preproc.c"
+ break;
+
+ case 1479: /* createdb_opt_list: createdb_opt_items */
+#line 9231 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49005 "preproc.c"
+ break;
+
+ case 1480: /* createdb_opt_list: %empty */
+#line 9235 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49012 "preproc.c"
+ break;
+
+ case 1481: /* createdb_opt_items: createdb_opt_item */
+#line 9242 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49020 "preproc.c"
+ break;
+
+ case 1482: /* createdb_opt_items: createdb_opt_items createdb_opt_item */
+#line 9246 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49028 "preproc.c"
+ break;
+
+ case 1483: /* createdb_opt_item: createdb_opt_name opt_equal NumericOnly */
+#line 9254 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49036 "preproc.c"
+ break;
+
+ case 1484: /* createdb_opt_item: createdb_opt_name opt_equal opt_boolean_or_string */
+#line 9258 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49044 "preproc.c"
+ break;
+
+ case 1485: /* createdb_opt_item: createdb_opt_name opt_equal DEFAULT */
+#line 9262 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup("default"));
+}
+#line 49052 "preproc.c"
+ break;
+
+ case 1486: /* createdb_opt_name: ecpg_ident */
+#line 9270 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49060 "preproc.c"
+ break;
+
+ case 1487: /* createdb_opt_name: CONNECTION LIMIT */
+#line 9274 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("connection limit");
+}
+#line 49068 "preproc.c"
+ break;
+
+ case 1488: /* createdb_opt_name: ENCODING */
+#line 9278 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("encoding");
+}
+#line 49076 "preproc.c"
+ break;
+
+ case 1489: /* createdb_opt_name: LOCATION */
+#line 9282 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("location");
+}
+#line 49084 "preproc.c"
+ break;
+
+ case 1490: /* createdb_opt_name: OWNER */
+#line 9286 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("owner");
+}
+#line 49092 "preproc.c"
+ break;
+
+ case 1491: /* createdb_opt_name: TABLESPACE */
+#line 9290 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tablespace");
+}
+#line 49100 "preproc.c"
+ break;
+
+ case 1492: /* createdb_opt_name: TEMPLATE */
+#line 9294 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("template");
+}
+#line 49108 "preproc.c"
+ break;
+
+ case 1493: /* opt_equal: '=' */
+#line 9302 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("=");
+}
+#line 49116 "preproc.c"
+ break;
+
+ case 1494: /* opt_equal: %empty */
+#line 9306 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49123 "preproc.c"
+ break;
+
+ case 1495: /* AlterDatabaseStmt: ALTER DATABASE name WITH createdb_opt_list */
+#line 9313 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter database"),(yyvsp[-2].str),mm_strdup("with"),(yyvsp[0].str));
+}
+#line 49131 "preproc.c"
+ break;
+
+ case 1496: /* AlterDatabaseStmt: ALTER DATABASE name createdb_opt_list */
+#line 9317 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter database"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49139 "preproc.c"
+ break;
+
+ case 1497: /* AlterDatabaseStmt: ALTER DATABASE name SET TABLESPACE name */
+#line 9321 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter database"),(yyvsp[-3].str),mm_strdup("set tablespace"),(yyvsp[0].str));
+}
+#line 49147 "preproc.c"
+ break;
+
+ case 1498: /* AlterDatabaseStmt: ALTER DATABASE name REFRESH COLLATION VERSION_P */
+#line 9325 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter database"),(yyvsp[-3].str),mm_strdup("refresh collation version"));
+}
+#line 49155 "preproc.c"
+ break;
+
+ case 1499: /* AlterDatabaseSetStmt: ALTER DATABASE name SetResetClause */
+#line 9333 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter database"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49163 "preproc.c"
+ break;
+
+ case 1500: /* DropdbStmt: DROP DATABASE name */
+#line 9341 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop database"),(yyvsp[0].str));
+}
+#line 49171 "preproc.c"
+ break;
+
+ case 1501: /* DropdbStmt: DROP DATABASE IF_P EXISTS name */
+#line 9345 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("drop database if exists"),(yyvsp[0].str));
+}
+#line 49179 "preproc.c"
+ break;
+
+ case 1502: /* DropdbStmt: DROP DATABASE name opt_with '(' drop_option_list ')' */
+#line 9349 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("drop database"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 49187 "preproc.c"
+ break;
+
+ case 1503: /* DropdbStmt: DROP DATABASE IF_P EXISTS name opt_with '(' drop_option_list ')' */
+#line 9353 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("drop database if exists"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 49195 "preproc.c"
+ break;
+
+ case 1504: /* drop_option_list: drop_option */
+#line 9361 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49203 "preproc.c"
+ break;
+
+ case 1505: /* drop_option_list: drop_option_list ',' drop_option */
+#line 9365 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 49211 "preproc.c"
+ break;
+
+ case 1506: /* drop_option: FORCE */
+#line 9373 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("force");
+}
+#line 49219 "preproc.c"
+ break;
+
+ case 1507: /* AlterCollationStmt: ALTER COLLATION any_name REFRESH VERSION_P */
+#line 9381 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter collation"),(yyvsp[-2].str),mm_strdup("refresh version"));
+}
+#line 49227 "preproc.c"
+ break;
+
+ case 1508: /* AlterSystemStmt: ALTER SYSTEM_P SET generic_set */
+#line 9389 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("alter system set"),(yyvsp[0].str));
+}
+#line 49235 "preproc.c"
+ break;
+
+ case 1509: /* AlterSystemStmt: ALTER SYSTEM_P RESET generic_reset */
+#line 9393 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("alter system reset"),(yyvsp[0].str));
+}
+#line 49243 "preproc.c"
+ break;
+
+ case 1510: /* CreateDomainStmt: CREATE DOMAIN_P any_name opt_as Typename ColQualList */
+#line 9401 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("create domain"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49251 "preproc.c"
+ break;
+
+ case 1511: /* AlterDomainStmt: ALTER DOMAIN_P any_name alter_column_default */
+#line 9409 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter domain"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49259 "preproc.c"
+ break;
+
+ case 1512: /* AlterDomainStmt: ALTER DOMAIN_P any_name DROP NOT NULL_P */
+#line 9413 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter domain"),(yyvsp[-3].str),mm_strdup("drop not null"));
+}
+#line 49267 "preproc.c"
+ break;
+
+ case 1513: /* AlterDomainStmt: ALTER DOMAIN_P any_name SET NOT NULL_P */
+#line 9417 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter domain"),(yyvsp[-3].str),mm_strdup("set not null"));
+}
+#line 49275 "preproc.c"
+ break;
+
+ case 1514: /* AlterDomainStmt: ALTER DOMAIN_P any_name ADD_P TableConstraint */
+#line 9421 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter domain"),(yyvsp[-2].str),mm_strdup("add"),(yyvsp[0].str));
+}
+#line 49283 "preproc.c"
+ break;
+
+ case 1515: /* AlterDomainStmt: ALTER DOMAIN_P any_name DROP CONSTRAINT name opt_drop_behavior */
+#line 9425 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter domain"),(yyvsp[-4].str),mm_strdup("drop constraint"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49291 "preproc.c"
+ break;
+
+ case 1516: /* AlterDomainStmt: ALTER DOMAIN_P any_name DROP CONSTRAINT IF_P EXISTS name opt_drop_behavior */
+#line 9429 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("alter domain"),(yyvsp[-6].str),mm_strdup("drop constraint if exists"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49299 "preproc.c"
+ break;
+
+ case 1517: /* AlterDomainStmt: ALTER DOMAIN_P any_name VALIDATE CONSTRAINT name */
+#line 9433 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter domain"),(yyvsp[-3].str),mm_strdup("validate constraint"),(yyvsp[0].str));
+}
+#line 49307 "preproc.c"
+ break;
+
+ case 1518: /* opt_as: AS */
+#line 9441 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("as");
+}
+#line 49315 "preproc.c"
+ break;
+
+ case 1519: /* opt_as: %empty */
+#line 9445 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49322 "preproc.c"
+ break;
+
+ case 1520: /* AlterTSDictionaryStmt: ALTER TEXT_P SEARCH DICTIONARY any_name definition */
+#line 9452 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("alter text search dictionary"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49330 "preproc.c"
+ break;
+
+ case 1521: /* AlterTSConfigurationStmt: ALTER TEXT_P SEARCH CONFIGURATION any_name ADD_P MAPPING FOR name_list any_with any_name_list */
+#line 9460 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter text search configuration"),(yyvsp[-6].str),mm_strdup("add mapping for"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49338 "preproc.c"
+ break;
+
+ case 1522: /* AlterTSConfigurationStmt: ALTER TEXT_P SEARCH CONFIGURATION any_name ALTER MAPPING FOR name_list any_with any_name_list */
+#line 9464 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter text search configuration"),(yyvsp[-6].str),mm_strdup("alter mapping for"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49346 "preproc.c"
+ break;
+
+ case 1523: /* AlterTSConfigurationStmt: ALTER TEXT_P SEARCH CONFIGURATION any_name ALTER MAPPING REPLACE any_name any_with any_name */
+#line 9468 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("alter text search configuration"),(yyvsp[-6].str),mm_strdup("alter mapping replace"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49354 "preproc.c"
+ break;
+
+ case 1524: /* AlterTSConfigurationStmt: ALTER TEXT_P SEARCH CONFIGURATION any_name ALTER MAPPING FOR name_list REPLACE any_name any_with any_name */
+#line 9472 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("alter text search configuration"),(yyvsp[-8].str),mm_strdup("alter mapping for"),(yyvsp[-4].str),mm_strdup("replace"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49362 "preproc.c"
+ break;
+
+ case 1525: /* AlterTSConfigurationStmt: ALTER TEXT_P SEARCH CONFIGURATION any_name DROP MAPPING FOR name_list */
+#line 9476 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search configuration"),(yyvsp[-4].str),mm_strdup("drop mapping for"),(yyvsp[0].str));
+}
+#line 49370 "preproc.c"
+ break;
+
+ case 1526: /* AlterTSConfigurationStmt: ALTER TEXT_P SEARCH CONFIGURATION any_name DROP MAPPING IF_P EXISTS FOR name_list */
+#line 9480 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("alter text search configuration"),(yyvsp[-6].str),mm_strdup("drop mapping if exists for"),(yyvsp[0].str));
+}
+#line 49378 "preproc.c"
+ break;
+
+ case 1527: /* any_with: WITH */
+#line 9488 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with");
+}
+#line 49386 "preproc.c"
+ break;
+
+ case 1528: /* any_with: WITH_LA */
+#line 9492 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with");
+}
+#line 49394 "preproc.c"
+ break;
+
+ case 1529: /* CreateConversionStmt: CREATE opt_default CONVERSION_P any_name FOR ecpg_sconst TO ecpg_sconst FROM any_name */
+#line 9500 "preproc.y"
+ {
+ (yyval.str) = cat_str(10,mm_strdup("create"),(yyvsp[-8].str),mm_strdup("conversion"),(yyvsp[-6].str),mm_strdup("for"),(yyvsp[-4].str),mm_strdup("to"),(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 49402 "preproc.c"
+ break;
+
+ case 1530: /* ClusterStmt: CLUSTER opt_verbose qualified_name cluster_index_specification */
+#line 9508 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("cluster"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49410 "preproc.c"
+ break;
+
+ case 1531: /* ClusterStmt: CLUSTER '(' utility_option_list ')' qualified_name cluster_index_specification */
+#line 9512 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("cluster ("),(yyvsp[-3].str),mm_strdup(")"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49418 "preproc.c"
+ break;
+
+ case 1532: /* ClusterStmt: CLUSTER opt_verbose */
+#line 9516 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("cluster"),(yyvsp[0].str));
+}
+#line 49426 "preproc.c"
+ break;
+
+ case 1533: /* ClusterStmt: CLUSTER opt_verbose name ON qualified_name */
+#line 9520 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("cluster"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("on"),(yyvsp[0].str));
+}
+#line 49434 "preproc.c"
+ break;
+
+ case 1534: /* cluster_index_specification: USING name */
+#line 9528 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("using"),(yyvsp[0].str));
+}
+#line 49442 "preproc.c"
+ break;
+
+ case 1535: /* cluster_index_specification: %empty */
+#line 9532 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49449 "preproc.c"
+ break;
+
+ case 1536: /* VacuumStmt: VACUUM opt_full opt_freeze opt_verbose opt_analyze opt_vacuum_relation_list */
+#line 9539 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("vacuum"),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49457 "preproc.c"
+ break;
+
+ case 1537: /* VacuumStmt: VACUUM '(' utility_option_list ')' opt_vacuum_relation_list */
+#line 9543 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("vacuum ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 49465 "preproc.c"
+ break;
+
+ case 1538: /* AnalyzeStmt: analyze_keyword opt_verbose opt_vacuum_relation_list */
+#line 9551 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49473 "preproc.c"
+ break;
+
+ case 1539: /* AnalyzeStmt: analyze_keyword '(' utility_option_list ')' opt_vacuum_relation_list */
+#line 9555 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 49481 "preproc.c"
+ break;
+
+ case 1540: /* utility_option_list: utility_option_elem */
+#line 9563 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49489 "preproc.c"
+ break;
+
+ case 1541: /* utility_option_list: utility_option_list ',' utility_option_elem */
+#line 9567 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 49497 "preproc.c"
+ break;
+
+ case 1542: /* analyze_keyword: ANALYZE */
+#line 9575 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("analyze");
+}
+#line 49505 "preproc.c"
+ break;
+
+ case 1543: /* analyze_keyword: ANALYSE */
+#line 9579 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("analyse");
+}
+#line 49513 "preproc.c"
+ break;
+
+ case 1544: /* utility_option_elem: utility_option_name utility_option_arg */
+#line 9587 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49521 "preproc.c"
+ break;
+
+ case 1545: /* utility_option_name: NonReservedWord */
+#line 9595 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49529 "preproc.c"
+ break;
+
+ case 1546: /* utility_option_name: analyze_keyword */
+#line 9599 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49537 "preproc.c"
+ break;
+
+ case 1547: /* utility_option_arg: opt_boolean_or_string */
+#line 9607 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49545 "preproc.c"
+ break;
+
+ case 1548: /* utility_option_arg: NumericOnly */
+#line 9611 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49553 "preproc.c"
+ break;
+
+ case 1549: /* utility_option_arg: %empty */
+#line 9615 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49560 "preproc.c"
+ break;
+
+ case 1550: /* opt_analyze: analyze_keyword */
+#line 9622 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49568 "preproc.c"
+ break;
+
+ case 1551: /* opt_analyze: %empty */
+#line 9626 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49575 "preproc.c"
+ break;
+
+ case 1552: /* opt_verbose: VERBOSE */
+#line 9633 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("verbose");
+}
+#line 49583 "preproc.c"
+ break;
+
+ case 1553: /* opt_verbose: %empty */
+#line 9637 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49590 "preproc.c"
+ break;
+
+ case 1554: /* opt_full: FULL */
+#line 9644 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("full");
+}
+#line 49598 "preproc.c"
+ break;
+
+ case 1555: /* opt_full: %empty */
+#line 9648 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49605 "preproc.c"
+ break;
+
+ case 1556: /* opt_freeze: FREEZE */
+#line 9655 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("freeze");
+}
+#line 49613 "preproc.c"
+ break;
+
+ case 1557: /* opt_freeze: %empty */
+#line 9659 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49620 "preproc.c"
+ break;
+
+ case 1558: /* opt_name_list: '(' name_list ')' */
+#line 9666 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 49628 "preproc.c"
+ break;
+
+ case 1559: /* opt_name_list: %empty */
+#line 9670 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49635 "preproc.c"
+ break;
+
+ case 1560: /* vacuum_relation: qualified_name opt_name_list */
+#line 9677 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49643 "preproc.c"
+ break;
+
+ case 1561: /* vacuum_relation_list: vacuum_relation */
+#line 9685 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49651 "preproc.c"
+ break;
+
+ case 1562: /* vacuum_relation_list: vacuum_relation_list ',' vacuum_relation */
+#line 9689 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 49659 "preproc.c"
+ break;
+
+ case 1563: /* opt_vacuum_relation_list: vacuum_relation_list */
+#line 9697 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49667 "preproc.c"
+ break;
+
+ case 1564: /* opt_vacuum_relation_list: %empty */
+#line 9701 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49674 "preproc.c"
+ break;
+
+ case 1565: /* ExplainStmt: EXPLAIN ExplainableStmt */
+#line 9708 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("explain"),(yyvsp[0].str));
+}
+#line 49682 "preproc.c"
+ break;
+
+ case 1566: /* ExplainStmt: EXPLAIN analyze_keyword opt_verbose ExplainableStmt */
+#line 9712 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("explain"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49690 "preproc.c"
+ break;
+
+ case 1567: /* ExplainStmt: EXPLAIN VERBOSE ExplainableStmt */
+#line 9716 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("explain verbose"),(yyvsp[0].str));
+}
+#line 49698 "preproc.c"
+ break;
+
+ case 1568: /* ExplainStmt: EXPLAIN '(' utility_option_list ')' ExplainableStmt */
+#line 9720 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("explain ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 49706 "preproc.c"
+ break;
+
+ case 1569: /* ExplainableStmt: SelectStmt */
+#line 9728 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49714 "preproc.c"
+ break;
+
+ case 1570: /* ExplainableStmt: InsertStmt */
+#line 9732 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49722 "preproc.c"
+ break;
+
+ case 1571: /* ExplainableStmt: UpdateStmt */
+#line 9736 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49730 "preproc.c"
+ break;
+
+ case 1572: /* ExplainableStmt: DeleteStmt */
+#line 9740 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49738 "preproc.c"
+ break;
+
+ case 1573: /* ExplainableStmt: MergeStmt */
+#line 9744 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49746 "preproc.c"
+ break;
+
+ case 1574: /* ExplainableStmt: DeclareCursorStmt */
+#line 9748 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49754 "preproc.c"
+ break;
+
+ case 1575: /* ExplainableStmt: CreateAsStmt */
+#line 9752 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49762 "preproc.c"
+ break;
+
+ case 1576: /* ExplainableStmt: CreateMatViewStmt */
+#line 9756 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49770 "preproc.c"
+ break;
+
+ case 1577: /* ExplainableStmt: RefreshMatViewStmt */
+#line 9760 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49778 "preproc.c"
+ break;
+
+ case 1578: /* ExplainableStmt: ExecuteStmt */
+#line 9764 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].exec).name;
+ }
+#line 49786 "preproc.c"
+ break;
+
+ case 1579: /* PrepareStmt: PREPARE prepared_name prep_type_clause AS PreparableStmt */
+#line 9772 "preproc.y"
+ {
+ (yyval.prep).name = (yyvsp[-3].str);
+ (yyval.prep).type = (yyvsp[-2].str);
+ (yyval.prep).stmt = (yyvsp[0].str);
+ }
+#line 49796 "preproc.c"
+ break;
+
+ case 1580: /* PrepareStmt: PREPARE prepared_name FROM execstring */
+#line 9778 "preproc.y"
+ {
+ (yyval.prep).name = (yyvsp[-2].str);
+ (yyval.prep).type = NULL;
+ (yyval.prep).stmt = (yyvsp[0].str);
+ }
+#line 49806 "preproc.c"
+ break;
+
+ case 1581: /* prep_type_clause: '(' type_list ')' */
+#line 9788 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 49814 "preproc.c"
+ break;
+
+ case 1582: /* prep_type_clause: %empty */
+#line 9792 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49821 "preproc.c"
+ break;
+
+ case 1583: /* PreparableStmt: SelectStmt */
+#line 9799 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49829 "preproc.c"
+ break;
+
+ case 1584: /* PreparableStmt: InsertStmt */
+#line 9803 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49837 "preproc.c"
+ break;
+
+ case 1585: /* PreparableStmt: UpdateStmt */
+#line 9807 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49845 "preproc.c"
+ break;
+
+ case 1586: /* PreparableStmt: DeleteStmt */
+#line 9811 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49853 "preproc.c"
+ break;
+
+ case 1587: /* PreparableStmt: MergeStmt */
+#line 9815 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49861 "preproc.c"
+ break;
+
+ case 1588: /* ExecuteStmt: EXECUTE prepared_name execute_param_clause execute_rest */
+#line 9823 "preproc.y"
+ {
+ (yyval.exec).name = (yyvsp[-2].str);
+ (yyval.exec).type = (yyvsp[-1].str);
+ }
+#line 49870 "preproc.c"
+ break;
+
+ case 1589: /* ExecuteStmt: CREATE OptTemp TABLE create_as_target AS EXECUTE prepared_name execute_param_clause opt_with_data execute_rest */
+#line 9828 "preproc.y"
+ {
+ (yyval.exec).name = cat_str(8,mm_strdup("create"),(yyvsp[-8].str),mm_strdup("table"),(yyvsp[-6].str),mm_strdup("as execute"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str));
+ }
+#line 49878 "preproc.c"
+ break;
+
+ case 1590: /* ExecuteStmt: CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS EXECUTE prepared_name execute_param_clause opt_with_data execute_rest */
+#line 9832 "preproc.y"
+ {
+ (yyval.exec).name = cat_str(8,mm_strdup("create"),(yyvsp[-11].str),mm_strdup("table if not exists"),(yyvsp[-6].str),mm_strdup("as execute"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str));
+ }
+#line 49886 "preproc.c"
+ break;
+
+ case 1591: /* execute_param_clause: '(' expr_list ')' */
+#line 9840 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 49894 "preproc.c"
+ break;
+
+ case 1592: /* execute_param_clause: %empty */
+#line 9844 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 49901 "preproc.c"
+ break;
+
+ case 1593: /* InsertStmt: opt_with_clause INSERT INTO insert_target insert_rest opt_on_conflict returning_clause */
+#line 9851 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,(yyvsp[-6].str),mm_strdup("insert into"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 49909 "preproc.c"
+ break;
+
+ case 1594: /* insert_target: qualified_name */
+#line 9859 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49917 "preproc.c"
+ break;
+
+ case 1595: /* insert_target: qualified_name AS ColId */
+#line 9863 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("as"),(yyvsp[0].str));
+}
+#line 49925 "preproc.c"
+ break;
+
+ case 1596: /* insert_rest: SelectStmt */
+#line 9871 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49933 "preproc.c"
+ break;
+
+ case 1597: /* insert_rest: OVERRIDING override_kind VALUE_P SelectStmt */
+#line 9875 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("overriding"),(yyvsp[-2].str),mm_strdup("value"),(yyvsp[0].str));
+}
+#line 49941 "preproc.c"
+ break;
+
+ case 1598: /* insert_rest: '(' insert_column_list ')' SelectStmt */
+#line 9879 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 49949 "preproc.c"
+ break;
+
+ case 1599: /* insert_rest: '(' insert_column_list ')' OVERRIDING override_kind VALUE_P SelectStmt */
+#line 9883 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("("),(yyvsp[-5].str),mm_strdup(") overriding"),(yyvsp[-2].str),mm_strdup("value"),(yyvsp[0].str));
+}
+#line 49957 "preproc.c"
+ break;
+
+ case 1600: /* insert_rest: DEFAULT VALUES */
+#line 9887 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("default values");
+}
+#line 49965 "preproc.c"
+ break;
+
+ case 1601: /* override_kind: USER */
+#line 9895 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("user");
+}
+#line 49973 "preproc.c"
+ break;
+
+ case 1602: /* override_kind: SYSTEM_P */
+#line 9899 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("system");
+}
+#line 49981 "preproc.c"
+ break;
+
+ case 1603: /* insert_column_list: insert_column_item */
+#line 9907 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 49989 "preproc.c"
+ break;
+
+ case 1604: /* insert_column_list: insert_column_list ',' insert_column_item */
+#line 9911 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 49997 "preproc.c"
+ break;
+
+ case 1605: /* insert_column_item: ColId opt_indirection */
+#line 9919 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50005 "preproc.c"
+ break;
+
+ case 1606: /* opt_on_conflict: ON CONFLICT opt_conf_expr DO UPDATE SET set_clause_list where_clause */
+#line 9927 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("on conflict"),(yyvsp[-5].str),mm_strdup("do update set"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50013 "preproc.c"
+ break;
+
+ case 1607: /* opt_on_conflict: ON CONFLICT opt_conf_expr DO NOTHING */
+#line 9931 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("on conflict"),(yyvsp[-2].str),mm_strdup("do nothing"));
+}
+#line 50021 "preproc.c"
+ break;
+
+ case 1608: /* opt_on_conflict: %empty */
+#line 9935 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50028 "preproc.c"
+ break;
+
+ case 1609: /* opt_conf_expr: '(' index_params ')' where_clause */
+#line 9942 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 50036 "preproc.c"
+ break;
+
+ case 1610: /* opt_conf_expr: ON CONSTRAINT name */
+#line 9946 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("on constraint"),(yyvsp[0].str));
+}
+#line 50044 "preproc.c"
+ break;
+
+ case 1611: /* opt_conf_expr: %empty */
+#line 9950 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50051 "preproc.c"
+ break;
+
+ case 1612: /* returning_clause: RETURNING target_list opt_ecpg_into */
+#line 9957 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("returning"),(yyvsp[-1].str));
+}
+#line 50059 "preproc.c"
+ break;
+
+ case 1613: /* returning_clause: %empty */
+#line 9961 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50066 "preproc.c"
+ break;
+
+ case 1614: /* DeleteStmt: opt_with_clause DELETE_P FROM relation_expr_opt_alias using_clause where_or_current_clause returning_clause */
+#line 9968 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,(yyvsp[-6].str),mm_strdup("delete from"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50074 "preproc.c"
+ break;
+
+ case 1615: /* using_clause: USING from_list */
+#line 9976 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("using"),(yyvsp[0].str));
+}
+#line 50082 "preproc.c"
+ break;
+
+ case 1616: /* using_clause: %empty */
+#line 9980 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50089 "preproc.c"
+ break;
+
+ case 1617: /* LockStmt: LOCK_P opt_table relation_expr_list opt_lock opt_nowait */
+#line 9987 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("lock"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50097 "preproc.c"
+ break;
+
+ case 1618: /* opt_lock: IN_P lock_type MODE */
+#line 9995 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("in"),(yyvsp[-1].str),mm_strdup("mode"));
+}
+#line 50105 "preproc.c"
+ break;
+
+ case 1619: /* opt_lock: %empty */
+#line 9999 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50112 "preproc.c"
+ break;
+
+ case 1620: /* lock_type: ACCESS SHARE */
+#line 10006 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("access share");
+}
+#line 50120 "preproc.c"
+ break;
+
+ case 1621: /* lock_type: ROW SHARE */
+#line 10010 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("row share");
+}
+#line 50128 "preproc.c"
+ break;
+
+ case 1622: /* lock_type: ROW EXCLUSIVE */
+#line 10014 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("row exclusive");
+}
+#line 50136 "preproc.c"
+ break;
+
+ case 1623: /* lock_type: SHARE UPDATE EXCLUSIVE */
+#line 10018 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("share update exclusive");
+}
+#line 50144 "preproc.c"
+ break;
+
+ case 1624: /* lock_type: SHARE */
+#line 10022 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("share");
+}
+#line 50152 "preproc.c"
+ break;
+
+ case 1625: /* lock_type: SHARE ROW EXCLUSIVE */
+#line 10026 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("share row exclusive");
+}
+#line 50160 "preproc.c"
+ break;
+
+ case 1626: /* lock_type: EXCLUSIVE */
+#line 10030 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exclusive");
+}
+#line 50168 "preproc.c"
+ break;
+
+ case 1627: /* lock_type: ACCESS EXCLUSIVE */
+#line 10034 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("access exclusive");
+}
+#line 50176 "preproc.c"
+ break;
+
+ case 1628: /* opt_nowait: NOWAIT */
+#line 10042 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nowait");
+}
+#line 50184 "preproc.c"
+ break;
+
+ case 1629: /* opt_nowait: %empty */
+#line 10046 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50191 "preproc.c"
+ break;
+
+ case 1630: /* opt_nowait_or_skip: NOWAIT */
+#line 10053 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nowait");
+}
+#line 50199 "preproc.c"
+ break;
+
+ case 1631: /* opt_nowait_or_skip: SKIP LOCKED */
+#line 10057 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("skip locked");
+}
+#line 50207 "preproc.c"
+ break;
+
+ case 1632: /* opt_nowait_or_skip: %empty */
+#line 10061 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50214 "preproc.c"
+ break;
+
+ case 1633: /* UpdateStmt: opt_with_clause UPDATE relation_expr_opt_alias SET set_clause_list from_clause where_or_current_clause returning_clause */
+#line 10068 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,(yyvsp[-7].str),mm_strdup("update"),(yyvsp[-5].str),mm_strdup("set"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50222 "preproc.c"
+ break;
+
+ case 1634: /* set_clause_list: set_clause */
+#line 10076 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50230 "preproc.c"
+ break;
+
+ case 1635: /* set_clause_list: set_clause_list ',' set_clause */
+#line 10080 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 50238 "preproc.c"
+ break;
+
+ case 1636: /* set_clause: set_target '=' a_expr */
+#line 10088 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 50246 "preproc.c"
+ break;
+
+ case 1637: /* set_clause: '(' set_target_list ')' '=' a_expr */
+#line 10092 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("("),(yyvsp[-3].str),mm_strdup(") ="),(yyvsp[0].str));
+}
+#line 50254 "preproc.c"
+ break;
+
+ case 1638: /* set_target: ColId opt_indirection */
+#line 10100 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50262 "preproc.c"
+ break;
+
+ case 1639: /* set_target_list: set_target */
+#line 10108 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50270 "preproc.c"
+ break;
+
+ case 1640: /* set_target_list: set_target_list ',' set_target */
+#line 10112 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 50278 "preproc.c"
+ break;
+
+ case 1641: /* MergeStmt: opt_with_clause MERGE INTO relation_expr_opt_alias USING table_ref ON a_expr merge_when_list */
+#line 10120 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,(yyvsp[-8].str),mm_strdup("merge into"),(yyvsp[-5].str),mm_strdup("using"),(yyvsp[-3].str),mm_strdup("on"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50286 "preproc.c"
+ break;
+
+ case 1642: /* merge_when_list: merge_when_clause */
+#line 10128 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50294 "preproc.c"
+ break;
+
+ case 1643: /* merge_when_list: merge_when_list merge_when_clause */
+#line 10132 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50302 "preproc.c"
+ break;
+
+ case 1644: /* merge_when_clause: WHEN MATCHED opt_merge_when_condition THEN merge_update */
+#line 10140 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("when matched"),(yyvsp[-2].str),mm_strdup("then"),(yyvsp[0].str));
+}
+#line 50310 "preproc.c"
+ break;
+
+ case 1645: /* merge_when_clause: WHEN MATCHED opt_merge_when_condition THEN merge_delete */
+#line 10144 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("when matched"),(yyvsp[-2].str),mm_strdup("then"),(yyvsp[0].str));
+}
+#line 50318 "preproc.c"
+ break;
+
+ case 1646: /* merge_when_clause: WHEN NOT MATCHED opt_merge_when_condition THEN merge_insert */
+#line 10148 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("when not matched"),(yyvsp[-2].str),mm_strdup("then"),(yyvsp[0].str));
+}
+#line 50326 "preproc.c"
+ break;
+
+ case 1647: /* merge_when_clause: WHEN MATCHED opt_merge_when_condition THEN DO NOTHING */
+#line 10152 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("when matched"),(yyvsp[-3].str),mm_strdup("then do nothing"));
+}
+#line 50334 "preproc.c"
+ break;
+
+ case 1648: /* merge_when_clause: WHEN NOT MATCHED opt_merge_when_condition THEN DO NOTHING */
+#line 10156 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("when not matched"),(yyvsp[-3].str),mm_strdup("then do nothing"));
+}
+#line 50342 "preproc.c"
+ break;
+
+ case 1649: /* opt_merge_when_condition: AND a_expr */
+#line 10164 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("and"),(yyvsp[0].str));
+}
+#line 50350 "preproc.c"
+ break;
+
+ case 1650: /* opt_merge_when_condition: %empty */
+#line 10168 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50357 "preproc.c"
+ break;
+
+ case 1651: /* merge_update: UPDATE SET set_clause_list */
+#line 10175 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("update set"),(yyvsp[0].str));
+}
+#line 50365 "preproc.c"
+ break;
+
+ case 1652: /* merge_delete: DELETE_P */
+#line 10183 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delete");
+}
+#line 50373 "preproc.c"
+ break;
+
+ case 1653: /* merge_insert: INSERT merge_values_clause */
+#line 10191 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("insert"),(yyvsp[0].str));
+}
+#line 50381 "preproc.c"
+ break;
+
+ case 1654: /* merge_insert: INSERT OVERRIDING override_kind VALUE_P merge_values_clause */
+#line 10195 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("insert overriding"),(yyvsp[-2].str),mm_strdup("value"),(yyvsp[0].str));
+}
+#line 50389 "preproc.c"
+ break;
+
+ case 1655: /* merge_insert: INSERT '(' insert_column_list ')' merge_values_clause */
+#line 10199 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("insert ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 50397 "preproc.c"
+ break;
+
+ case 1656: /* merge_insert: INSERT '(' insert_column_list ')' OVERRIDING override_kind VALUE_P merge_values_clause */
+#line 10203 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("insert ("),(yyvsp[-5].str),mm_strdup(") overriding"),(yyvsp[-2].str),mm_strdup("value"),(yyvsp[0].str));
+}
+#line 50405 "preproc.c"
+ break;
+
+ case 1657: /* merge_insert: INSERT DEFAULT VALUES */
+#line 10207 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("insert default values");
+}
+#line 50413 "preproc.c"
+ break;
+
+ case 1658: /* merge_values_clause: VALUES '(' expr_list ')' */
+#line 10215 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("values ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 50421 "preproc.c"
+ break;
+
+ case 1659: /* DeclareCursorStmt: DECLARE cursor_name cursor_options CURSOR opt_hold FOR SelectStmt */
+#line 10223 "preproc.y"
+ {
+ struct cursor *ptr, *this;
+ char *cursor_marker = (yyvsp[-5].str)[0] == ':' ? mm_strdup("$0") : mm_strdup((yyvsp[-5].str));
+ char *comment, *c1, *c2;
+ int (* strcmp_fn)(const char *, const char *) = (((yyvsp[-5].str)[0] == ':' || (yyvsp[-5].str)[0] == '"') ? strcmp : pg_strcasecmp);
+
+ if (INFORMIX_MODE && pg_strcasecmp((yyvsp[-5].str), "database") == 0)
+ mmfatal(PARSE_ERROR, "\"database\" cannot be used as cursor name in INFORMIX mode");
+
+ for (ptr = cur; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp_fn((yyvsp[-5].str), ptr->name) == 0)
+ {
+ if ((yyvsp[-5].str)[0] == ':')
+ mmerror(PARSE_ERROR, ET_ERROR, "using variable \"%s\" in different declare statements is not supported", (yyvsp[-5].str)+1);
+ else
+ mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" is already defined", (yyvsp[-5].str));
+ }
+ }
+
+ this = (struct cursor *) mm_alloc(sizeof(struct cursor));
+
+ this->next = cur;
+ this->name = (yyvsp[-5].str);
+ this->function = (current_function ? mm_strdup(current_function) : NULL);
+ this->connection = connection ? mm_strdup(connection) : NULL;
+ this->opened = false;
+ this->command = cat_str(7, mm_strdup("declare"), cursor_marker, (yyvsp[-4].str), mm_strdup("cursor"), (yyvsp[-2].str), mm_strdup("for"), (yyvsp[0].str));
+ this->argsinsert = argsinsert;
+ this->argsinsert_oos = NULL;
+ this->argsresult = argsresult;
+ this->argsresult_oos = NULL;
+ argsinsert = argsresult = NULL;
+ cur = this;
+
+ c1 = mm_strdup(this->command);
+ if ((c2 = strstr(c1, "*/")) != NULL)
+ {
+ /* We put this text into a comment, so we better remove [*][/]. */
+ c2[0] = '.';
+ c2[1] = '.';
+ }
+ comment = cat_str(3, mm_strdup("/*"), c1, mm_strdup("*/"));
+
+ (yyval.str) = cat2_str(adjust_outofscope_cursor_vars(this), comment);
+ }
+#line 50472 "preproc.c"
+ break;
+
+ case 1660: /* cursor_name: name */
+#line 10274 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50480 "preproc.c"
+ break;
+
+ case 1661: /* cursor_name: char_civar */
+#line 10278 "preproc.y"
+ {
+ char *curname = mm_alloc(strlen((yyvsp[0].str)) + 2);
+ sprintf(curname, ":%s", (yyvsp[0].str));
+ free((yyvsp[0].str));
+ (yyvsp[0].str) = curname;
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 50492 "preproc.c"
+ break;
+
+ case 1662: /* cursor_options: %empty */
+#line 10290 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50499 "preproc.c"
+ break;
+
+ case 1663: /* cursor_options: cursor_options NO SCROLL */
+#line 10293 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("no scroll"));
+}
+#line 50507 "preproc.c"
+ break;
+
+ case 1664: /* cursor_options: cursor_options SCROLL */
+#line 10297 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("scroll"));
+}
+#line 50515 "preproc.c"
+ break;
+
+ case 1665: /* cursor_options: cursor_options BINARY */
+#line 10301 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("binary"));
+}
+#line 50523 "preproc.c"
+ break;
+
+ case 1666: /* cursor_options: cursor_options ASENSITIVE */
+#line 10305 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("asensitive"));
+}
+#line 50531 "preproc.c"
+ break;
+
+ case 1667: /* cursor_options: cursor_options INSENSITIVE */
+#line 10309 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("insensitive"));
+}
+#line 50539 "preproc.c"
+ break;
+
+ case 1668: /* opt_hold: %empty */
+#line 10317 "preproc.y"
+ {
+ if (compat == ECPG_COMPAT_INFORMIX_SE && autocommit)
+ (yyval.str) = mm_strdup("with hold");
+ else
+ (yyval.str) = EMPTY;
+ }
+#line 50550 "preproc.c"
+ break;
+
+ case 1669: /* opt_hold: WITH HOLD */
+#line 10324 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with hold");
+}
+#line 50558 "preproc.c"
+ break;
+
+ case 1670: /* opt_hold: WITHOUT HOLD */
+#line 10328 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("without hold");
+}
+#line 50566 "preproc.c"
+ break;
+
+ case 1671: /* SelectStmt: select_no_parens */
+#line 10336 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50574 "preproc.c"
+ break;
+
+ case 1672: /* SelectStmt: select_with_parens */
+#line 10340 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50582 "preproc.c"
+ break;
+
+ case 1673: /* select_with_parens: '(' select_no_parens ')' */
+#line 10348 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 50590 "preproc.c"
+ break;
+
+ case 1674: /* select_with_parens: '(' select_with_parens ')' */
+#line 10352 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 50598 "preproc.c"
+ break;
+
+ case 1675: /* select_no_parens: simple_select */
+#line 10360 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50606 "preproc.c"
+ break;
+
+ case 1676: /* select_no_parens: select_clause sort_clause */
+#line 10364 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50614 "preproc.c"
+ break;
+
+ case 1677: /* select_no_parens: select_clause opt_sort_clause for_locking_clause opt_select_limit */
+#line 10368 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50622 "preproc.c"
+ break;
+
+ case 1678: /* select_no_parens: select_clause opt_sort_clause select_limit opt_for_locking_clause */
+#line 10372 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50630 "preproc.c"
+ break;
+
+ case 1679: /* select_no_parens: with_clause select_clause */
+#line 10376 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50638 "preproc.c"
+ break;
+
+ case 1680: /* select_no_parens: with_clause select_clause sort_clause */
+#line 10380 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50646 "preproc.c"
+ break;
+
+ case 1681: /* select_no_parens: with_clause select_clause opt_sort_clause for_locking_clause opt_select_limit */
+#line 10384 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50654 "preproc.c"
+ break;
+
+ case 1682: /* select_no_parens: with_clause select_clause opt_sort_clause select_limit opt_for_locking_clause */
+#line 10388 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50662 "preproc.c"
+ break;
+
+ case 1683: /* select_clause: simple_select */
+#line 10396 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50670 "preproc.c"
+ break;
+
+ case 1684: /* select_clause: select_with_parens */
+#line 10400 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50678 "preproc.c"
+ break;
+
+ case 1685: /* simple_select: SELECT opt_all_clause opt_target_list into_clause from_clause where_clause group_clause having_clause window_clause */
+#line 10408 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("select"),(yyvsp[-7].str),(yyvsp[-6].str),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50686 "preproc.c"
+ break;
+
+ case 1686: /* simple_select: SELECT distinct_clause target_list into_clause from_clause where_clause group_clause having_clause window_clause */
+#line 10412 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,mm_strdup("select"),(yyvsp[-7].str),(yyvsp[-6].str),(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50694 "preproc.c"
+ break;
+
+ case 1687: /* simple_select: values_clause */
+#line 10416 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50702 "preproc.c"
+ break;
+
+ case 1688: /* simple_select: TABLE relation_expr */
+#line 10420 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("table"),(yyvsp[0].str));
+}
+#line 50710 "preproc.c"
+ break;
+
+ case 1689: /* simple_select: select_clause UNION set_quantifier select_clause */
+#line 10424 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("union"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50718 "preproc.c"
+ break;
+
+ case 1690: /* simple_select: select_clause INTERSECT set_quantifier select_clause */
+#line 10428 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("intersect"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50726 "preproc.c"
+ break;
+
+ case 1691: /* simple_select: select_clause EXCEPT set_quantifier select_clause */
+#line 10432 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("except"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50734 "preproc.c"
+ break;
+
+ case 1692: /* with_clause: WITH cte_list */
+#line 10440 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("with"),(yyvsp[0].str));
+}
+#line 50742 "preproc.c"
+ break;
+
+ case 1693: /* with_clause: WITH_LA cte_list */
+#line 10444 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("with"),(yyvsp[0].str));
+}
+#line 50750 "preproc.c"
+ break;
+
+ case 1694: /* with_clause: WITH RECURSIVE cte_list */
+#line 10448 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("with recursive"),(yyvsp[0].str));
+}
+#line 50758 "preproc.c"
+ break;
+
+ case 1695: /* cte_list: common_table_expr */
+#line 10456 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50766 "preproc.c"
+ break;
+
+ case 1696: /* cte_list: cte_list ',' common_table_expr */
+#line 10460 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 50774 "preproc.c"
+ break;
+
+ case 1697: /* common_table_expr: name opt_name_list AS opt_materialized '(' PreparableStmt ')' opt_search_clause opt_cycle_clause */
+#line 10468 "preproc.y"
+ {
+ (yyval.str) = cat_str(9,(yyvsp[-8].str),(yyvsp[-7].str),mm_strdup("as"),(yyvsp[-5].str),mm_strdup("("),(yyvsp[-3].str),mm_strdup(")"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50782 "preproc.c"
+ break;
+
+ case 1698: /* opt_materialized: MATERIALIZED */
+#line 10476 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("materialized");
+}
+#line 50790 "preproc.c"
+ break;
+
+ case 1699: /* opt_materialized: NOT MATERIALIZED */
+#line 10480 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not materialized");
+}
+#line 50798 "preproc.c"
+ break;
+
+ case 1700: /* opt_materialized: %empty */
+#line 10484 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50805 "preproc.c"
+ break;
+
+ case 1701: /* opt_search_clause: SEARCH DEPTH FIRST_P BY columnList SET ColId */
+#line 10491 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("search depth first by"),(yyvsp[-2].str),mm_strdup("set"),(yyvsp[0].str));
+}
+#line 50813 "preproc.c"
+ break;
+
+ case 1702: /* opt_search_clause: SEARCH BREADTH FIRST_P BY columnList SET ColId */
+#line 10495 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("search breadth first by"),(yyvsp[-2].str),mm_strdup("set"),(yyvsp[0].str));
+}
+#line 50821 "preproc.c"
+ break;
+
+ case 1703: /* opt_search_clause: %empty */
+#line 10499 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50828 "preproc.c"
+ break;
+
+ case 1704: /* opt_cycle_clause: CYCLE columnList SET ColId TO AexprConst DEFAULT AexprConst USING ColId */
+#line 10506 "preproc.y"
+ {
+ (yyval.str) = cat_str(10,mm_strdup("cycle"),(yyvsp[-8].str),mm_strdup("set"),(yyvsp[-6].str),mm_strdup("to"),(yyvsp[-4].str),mm_strdup("default"),(yyvsp[-2].str),mm_strdup("using"),(yyvsp[0].str));
+}
+#line 50836 "preproc.c"
+ break;
+
+ case 1705: /* opt_cycle_clause: CYCLE columnList SET ColId USING ColId */
+#line 10510 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("cycle"),(yyvsp[-4].str),mm_strdup("set"),(yyvsp[-2].str),mm_strdup("using"),(yyvsp[0].str));
+}
+#line 50844 "preproc.c"
+ break;
+
+ case 1706: /* opt_cycle_clause: %empty */
+#line 10514 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50851 "preproc.c"
+ break;
+
+ case 1707: /* opt_with_clause: with_clause */
+#line 10521 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50859 "preproc.c"
+ break;
+
+ case 1708: /* opt_with_clause: %empty */
+#line 10525 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50866 "preproc.c"
+ break;
+
+ case 1709: /* into_clause: INTO OptTempTableName */
+#line 10532 "preproc.y"
+ {
+ FoundInto = 1;
+ (yyval.str)= cat2_str(mm_strdup("into"), (yyvsp[0].str));
+ }
+#line 50875 "preproc.c"
+ break;
+
+ case 1710: /* into_clause: ecpg_into */
+#line 10536 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 50881 "preproc.c"
+ break;
+
+ case 1711: /* into_clause: %empty */
+#line 10538 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50888 "preproc.c"
+ break;
+
+ case 1712: /* OptTempTableName: TEMPORARY opt_table qualified_name */
+#line 10545 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("temporary"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50896 "preproc.c"
+ break;
+
+ case 1713: /* OptTempTableName: TEMP opt_table qualified_name */
+#line 10549 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("temp"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50904 "preproc.c"
+ break;
+
+ case 1714: /* OptTempTableName: LOCAL TEMPORARY opt_table qualified_name */
+#line 10553 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("local temporary"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50912 "preproc.c"
+ break;
+
+ case 1715: /* OptTempTableName: LOCAL TEMP opt_table qualified_name */
+#line 10557 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("local temp"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50920 "preproc.c"
+ break;
+
+ case 1716: /* OptTempTableName: GLOBAL TEMPORARY opt_table qualified_name */
+#line 10561 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("global temporary"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50928 "preproc.c"
+ break;
+
+ case 1717: /* OptTempTableName: GLOBAL TEMP opt_table qualified_name */
+#line 10565 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("global temp"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50936 "preproc.c"
+ break;
+
+ case 1718: /* OptTempTableName: UNLOGGED opt_table qualified_name */
+#line 10569 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("unlogged"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 50944 "preproc.c"
+ break;
+
+ case 1719: /* OptTempTableName: TABLE qualified_name */
+#line 10573 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("table"),(yyvsp[0].str));
+}
+#line 50952 "preproc.c"
+ break;
+
+ case 1720: /* OptTempTableName: qualified_name */
+#line 10577 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 50960 "preproc.c"
+ break;
+
+ case 1721: /* opt_table: TABLE */
+#line 10585 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("table");
+}
+#line 50968 "preproc.c"
+ break;
+
+ case 1722: /* opt_table: %empty */
+#line 10589 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50975 "preproc.c"
+ break;
+
+ case 1723: /* set_quantifier: ALL */
+#line 10596 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 50983 "preproc.c"
+ break;
+
+ case 1724: /* set_quantifier: DISTINCT */
+#line 10600 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("distinct");
+}
+#line 50991 "preproc.c"
+ break;
+
+ case 1725: /* set_quantifier: %empty */
+#line 10604 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 50998 "preproc.c"
+ break;
+
+ case 1726: /* distinct_clause: DISTINCT */
+#line 10611 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("distinct");
+}
+#line 51006 "preproc.c"
+ break;
+
+ case 1727: /* distinct_clause: DISTINCT ON '(' expr_list ')' */
+#line 10615 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("distinct on ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51014 "preproc.c"
+ break;
+
+ case 1728: /* opt_all_clause: ALL */
+#line 10623 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 51022 "preproc.c"
+ break;
+
+ case 1729: /* opt_all_clause: %empty */
+#line 10627 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51029 "preproc.c"
+ break;
+
+ case 1730: /* opt_sort_clause: sort_clause */
+#line 10634 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51037 "preproc.c"
+ break;
+
+ case 1731: /* opt_sort_clause: %empty */
+#line 10638 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51044 "preproc.c"
+ break;
+
+ case 1732: /* sort_clause: ORDER BY sortby_list */
+#line 10645 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("order by"),(yyvsp[0].str));
+}
+#line 51052 "preproc.c"
+ break;
+
+ case 1733: /* sortby_list: sortby */
+#line 10653 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51060 "preproc.c"
+ break;
+
+ case 1734: /* sortby_list: sortby_list ',' sortby */
+#line 10657 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 51068 "preproc.c"
+ break;
+
+ case 1735: /* sortby: a_expr USING qual_all_Op opt_nulls_order */
+#line 10665 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("using"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51076 "preproc.c"
+ break;
+
+ case 1736: /* sortby: a_expr opt_asc_desc opt_nulls_order */
+#line 10669 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51084 "preproc.c"
+ break;
+
+ case 1737: /* select_limit: limit_clause offset_clause */
+#line 10677 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51092 "preproc.c"
+ break;
+
+ case 1738: /* select_limit: offset_clause limit_clause */
+#line 10681 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51100 "preproc.c"
+ break;
+
+ case 1739: /* select_limit: limit_clause */
+#line 10685 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51108 "preproc.c"
+ break;
+
+ case 1740: /* select_limit: offset_clause */
+#line 10689 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51116 "preproc.c"
+ break;
+
+ case 1741: /* opt_select_limit: select_limit */
+#line 10697 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51124 "preproc.c"
+ break;
+
+ case 1742: /* opt_select_limit: %empty */
+#line 10701 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51131 "preproc.c"
+ break;
+
+ case 1743: /* limit_clause: LIMIT select_limit_value */
+#line 10708 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("limit"),(yyvsp[0].str));
+}
+#line 51139 "preproc.c"
+ break;
+
+ case 1744: /* limit_clause: LIMIT select_limit_value ',' select_offset_value */
+#line 10712 "preproc.y"
+ {
+ mmerror(PARSE_ERROR, ET_WARNING, "no longer supported LIMIT #,# syntax passed to server");
+ (yyval.str) = cat_str(4, mm_strdup("limit"), (yyvsp[-2].str), mm_strdup(","), (yyvsp[0].str));
+ }
+#line 51148 "preproc.c"
+ break;
+
+ case 1745: /* limit_clause: FETCH first_or_next select_fetch_first_value row_or_rows ONLY */
+#line 10717 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("fetch"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup("only"));
+}
+#line 51156 "preproc.c"
+ break;
+
+ case 1746: /* limit_clause: FETCH first_or_next select_fetch_first_value row_or_rows WITH TIES */
+#line 10721 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("fetch"),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("with ties"));
+}
+#line 51164 "preproc.c"
+ break;
+
+ case 1747: /* limit_clause: FETCH first_or_next row_or_rows ONLY */
+#line 10725 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("fetch"),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup("only"));
+}
+#line 51172 "preproc.c"
+ break;
+
+ case 1748: /* limit_clause: FETCH first_or_next row_or_rows WITH TIES */
+#line 10729 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("fetch"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("with ties"));
+}
+#line 51180 "preproc.c"
+ break;
+
+ case 1749: /* offset_clause: OFFSET select_offset_value */
+#line 10737 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("offset"),(yyvsp[0].str));
+}
+#line 51188 "preproc.c"
+ break;
+
+ case 1750: /* offset_clause: OFFSET select_fetch_first_value row_or_rows */
+#line 10741 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("offset"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51196 "preproc.c"
+ break;
+
+ case 1751: /* select_limit_value: a_expr */
+#line 10749 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51204 "preproc.c"
+ break;
+
+ case 1752: /* select_limit_value: ALL */
+#line 10753 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 51212 "preproc.c"
+ break;
+
+ case 1753: /* select_offset_value: a_expr */
+#line 10761 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51220 "preproc.c"
+ break;
+
+ case 1754: /* select_fetch_first_value: c_expr */
+#line 10769 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51228 "preproc.c"
+ break;
+
+ case 1755: /* select_fetch_first_value: '+' I_or_F_const */
+#line 10773 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("+"),(yyvsp[0].str));
+}
+#line 51236 "preproc.c"
+ break;
+
+ case 1756: /* select_fetch_first_value: '-' I_or_F_const */
+#line 10777 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("-"),(yyvsp[0].str));
+}
+#line 51244 "preproc.c"
+ break;
+
+ case 1757: /* I_or_F_const: Iconst */
+#line 10785 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51252 "preproc.c"
+ break;
+
+ case 1758: /* I_or_F_const: ecpg_fconst */
+#line 10789 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51260 "preproc.c"
+ break;
+
+ case 1759: /* row_or_rows: ROW */
+#line 10797 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("row");
+}
+#line 51268 "preproc.c"
+ break;
+
+ case 1760: /* row_or_rows: ROWS */
+#line 10801 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rows");
+}
+#line 51276 "preproc.c"
+ break;
+
+ case 1761: /* first_or_next: FIRST_P */
+#line 10809 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("first");
+}
+#line 51284 "preproc.c"
+ break;
+
+ case 1762: /* first_or_next: NEXT */
+#line 10813 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("next");
+}
+#line 51292 "preproc.c"
+ break;
+
+ case 1763: /* group_clause: GROUP_P BY set_quantifier group_by_list */
+#line 10821 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("group by"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51300 "preproc.c"
+ break;
+
+ case 1764: /* group_clause: %empty */
+#line 10825 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51307 "preproc.c"
+ break;
+
+ case 1765: /* group_by_list: group_by_item */
+#line 10832 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51315 "preproc.c"
+ break;
+
+ case 1766: /* group_by_list: group_by_list ',' group_by_item */
+#line 10836 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 51323 "preproc.c"
+ break;
+
+ case 1767: /* group_by_item: a_expr */
+#line 10844 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51331 "preproc.c"
+ break;
+
+ case 1768: /* group_by_item: empty_grouping_set */
+#line 10848 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51339 "preproc.c"
+ break;
+
+ case 1769: /* group_by_item: cube_clause */
+#line 10852 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51347 "preproc.c"
+ break;
+
+ case 1770: /* group_by_item: rollup_clause */
+#line 10856 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51355 "preproc.c"
+ break;
+
+ case 1771: /* group_by_item: grouping_sets_clause */
+#line 10860 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51363 "preproc.c"
+ break;
+
+ case 1772: /* empty_grouping_set: '(' ')' */
+#line 10868 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("( )");
+}
+#line 51371 "preproc.c"
+ break;
+
+ case 1773: /* rollup_clause: ROLLUP '(' expr_list ')' */
+#line 10876 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("rollup ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51379 "preproc.c"
+ break;
+
+ case 1774: /* cube_clause: CUBE '(' expr_list ')' */
+#line 10884 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("cube ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51387 "preproc.c"
+ break;
+
+ case 1775: /* grouping_sets_clause: GROUPING SETS '(' group_by_list ')' */
+#line 10892 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("grouping sets ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51395 "preproc.c"
+ break;
+
+ case 1776: /* having_clause: HAVING a_expr */
+#line 10900 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("having"),(yyvsp[0].str));
+}
+#line 51403 "preproc.c"
+ break;
+
+ case 1777: /* having_clause: %empty */
+#line 10904 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51410 "preproc.c"
+ break;
+
+ case 1778: /* for_locking_clause: for_locking_items */
+#line 10911 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51418 "preproc.c"
+ break;
+
+ case 1779: /* for_locking_clause: FOR READ ONLY */
+#line 10915 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("for read only");
+}
+#line 51426 "preproc.c"
+ break;
+
+ case 1780: /* opt_for_locking_clause: for_locking_clause */
+#line 10923 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51434 "preproc.c"
+ break;
+
+ case 1781: /* opt_for_locking_clause: %empty */
+#line 10927 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51441 "preproc.c"
+ break;
+
+ case 1782: /* for_locking_items: for_locking_item */
+#line 10934 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51449 "preproc.c"
+ break;
+
+ case 1783: /* for_locking_items: for_locking_items for_locking_item */
+#line 10938 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51457 "preproc.c"
+ break;
+
+ case 1784: /* for_locking_item: for_locking_strength locked_rels_list opt_nowait_or_skip */
+#line 10946 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51465 "preproc.c"
+ break;
+
+ case 1785: /* for_locking_strength: FOR UPDATE */
+#line 10954 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("for update");
+}
+#line 51473 "preproc.c"
+ break;
+
+ case 1786: /* for_locking_strength: FOR NO KEY UPDATE */
+#line 10958 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("for no key update");
+}
+#line 51481 "preproc.c"
+ break;
+
+ case 1787: /* for_locking_strength: FOR SHARE */
+#line 10962 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("for share");
+}
+#line 51489 "preproc.c"
+ break;
+
+ case 1788: /* for_locking_strength: FOR KEY SHARE */
+#line 10966 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("for key share");
+}
+#line 51497 "preproc.c"
+ break;
+
+ case 1789: /* locked_rels_list: OF qualified_name_list */
+#line 10974 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("of"),(yyvsp[0].str));
+}
+#line 51505 "preproc.c"
+ break;
+
+ case 1790: /* locked_rels_list: %empty */
+#line 10978 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51512 "preproc.c"
+ break;
+
+ case 1791: /* values_clause: VALUES '(' expr_list ')' */
+#line 10985 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("values ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51520 "preproc.c"
+ break;
+
+ case 1792: /* values_clause: values_clause ',' '(' expr_list ')' */
+#line 10989 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-4].str),mm_strdup(", ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51528 "preproc.c"
+ break;
+
+ case 1793: /* from_clause: FROM from_list */
+#line 10997 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("from"),(yyvsp[0].str));
+}
+#line 51536 "preproc.c"
+ break;
+
+ case 1794: /* from_clause: %empty */
+#line 11001 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51543 "preproc.c"
+ break;
+
+ case 1795: /* from_list: table_ref */
+#line 11008 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51551 "preproc.c"
+ break;
+
+ case 1796: /* from_list: from_list ',' table_ref */
+#line 11012 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 51559 "preproc.c"
+ break;
+
+ case 1797: /* table_ref: relation_expr opt_alias_clause */
+#line 11020 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51567 "preproc.c"
+ break;
+
+ case 1798: /* table_ref: relation_expr opt_alias_clause tablesample_clause */
+#line 11024 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51575 "preproc.c"
+ break;
+
+ case 1799: /* table_ref: func_table func_alias_clause */
+#line 11028 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51583 "preproc.c"
+ break;
+
+ case 1800: /* table_ref: LATERAL_P func_table func_alias_clause */
+#line 11032 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("lateral"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51591 "preproc.c"
+ break;
+
+ case 1801: /* table_ref: xmltable opt_alias_clause */
+#line 11036 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51599 "preproc.c"
+ break;
+
+ case 1802: /* table_ref: LATERAL_P xmltable opt_alias_clause */
+#line 11040 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("lateral"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51607 "preproc.c"
+ break;
+
+ case 1803: /* table_ref: select_with_parens opt_alias_clause */
+#line 11044 "preproc.y"
+ {
+ if ((yyvsp[0].str) == NULL)
+ mmerror(PARSE_ERROR, ET_ERROR, "subquery in FROM must have an alias");
+
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51618 "preproc.c"
+ break;
+
+ case 1804: /* table_ref: LATERAL_P select_with_parens opt_alias_clause */
+#line 11051 "preproc.y"
+ {
+ if ((yyvsp[0].str) == NULL)
+ mmerror(PARSE_ERROR, ET_ERROR, "subquery in FROM must have an alias");
+
+ (yyval.str) = cat_str(3,mm_strdup("lateral"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51629 "preproc.c"
+ break;
+
+ case 1805: /* table_ref: joined_table */
+#line 11058 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51637 "preproc.c"
+ break;
+
+ case 1806: /* table_ref: '(' joined_table ')' alias_clause */
+#line 11062 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 51645 "preproc.c"
+ break;
+
+ case 1807: /* joined_table: '(' joined_table ')' */
+#line 11070 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51653 "preproc.c"
+ break;
+
+ case 1808: /* joined_table: table_ref CROSS JOIN table_ref */
+#line 11074 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-3].str),mm_strdup("cross join"),(yyvsp[0].str));
+}
+#line 51661 "preproc.c"
+ break;
+
+ case 1809: /* joined_table: table_ref join_type JOIN table_ref join_qual */
+#line 11078 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("join"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51669 "preproc.c"
+ break;
+
+ case 1810: /* joined_table: table_ref JOIN table_ref join_qual */
+#line 11082 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("join"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51677 "preproc.c"
+ break;
+
+ case 1811: /* joined_table: table_ref NATURAL join_type JOIN table_ref */
+#line 11086 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("natural"),(yyvsp[-2].str),mm_strdup("join"),(yyvsp[0].str));
+}
+#line 51685 "preproc.c"
+ break;
+
+ case 1812: /* joined_table: table_ref NATURAL JOIN table_ref */
+#line 11090 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-3].str),mm_strdup("natural join"),(yyvsp[0].str));
+}
+#line 51693 "preproc.c"
+ break;
+
+ case 1813: /* alias_clause: AS ColId '(' name_list ')' */
+#line 11098 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("as"),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51701 "preproc.c"
+ break;
+
+ case 1814: /* alias_clause: AS ColId */
+#line 11102 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("as"),(yyvsp[0].str));
+}
+#line 51709 "preproc.c"
+ break;
+
+ case 1815: /* alias_clause: ColId '(' name_list ')' */
+#line 11106 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51717 "preproc.c"
+ break;
+
+ case 1816: /* alias_clause: ColId */
+#line 11110 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51725 "preproc.c"
+ break;
+
+ case 1817: /* opt_alias_clause: alias_clause */
+#line 11118 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51733 "preproc.c"
+ break;
+
+ case 1818: /* opt_alias_clause: %empty */
+#line 11122 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51740 "preproc.c"
+ break;
+
+ case 1819: /* opt_alias_clause_for_join_using: AS ColId */
+#line 11129 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("as"),(yyvsp[0].str));
+}
+#line 51748 "preproc.c"
+ break;
+
+ case 1820: /* opt_alias_clause_for_join_using: %empty */
+#line 11133 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51755 "preproc.c"
+ break;
+
+ case 1821: /* func_alias_clause: alias_clause */
+#line 11140 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51763 "preproc.c"
+ break;
+
+ case 1822: /* func_alias_clause: AS '(' TableFuncElementList ')' */
+#line 11144 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("as ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51771 "preproc.c"
+ break;
+
+ case 1823: /* func_alias_clause: AS ColId '(' TableFuncElementList ')' */
+#line 11148 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("as"),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51779 "preproc.c"
+ break;
+
+ case 1824: /* func_alias_clause: ColId '(' TableFuncElementList ')' */
+#line 11152 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51787 "preproc.c"
+ break;
+
+ case 1825: /* func_alias_clause: %empty */
+#line 11156 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51794 "preproc.c"
+ break;
+
+ case 1826: /* join_type: FULL opt_outer */
+#line 11163 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("full"),(yyvsp[0].str));
+}
+#line 51802 "preproc.c"
+ break;
+
+ case 1827: /* join_type: LEFT opt_outer */
+#line 11167 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("left"),(yyvsp[0].str));
+}
+#line 51810 "preproc.c"
+ break;
+
+ case 1828: /* join_type: RIGHT opt_outer */
+#line 11171 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("right"),(yyvsp[0].str));
+}
+#line 51818 "preproc.c"
+ break;
+
+ case 1829: /* join_type: INNER_P */
+#line 11175 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inner");
+}
+#line 51826 "preproc.c"
+ break;
+
+ case 1830: /* opt_outer: OUTER_P */
+#line 11183 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("outer");
+}
+#line 51834 "preproc.c"
+ break;
+
+ case 1831: /* opt_outer: %empty */
+#line 11187 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51841 "preproc.c"
+ break;
+
+ case 1832: /* join_qual: USING '(' name_list ')' opt_alias_clause_for_join_using */
+#line 11194 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("using ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 51849 "preproc.c"
+ break;
+
+ case 1833: /* join_qual: ON a_expr */
+#line 11198 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("on"),(yyvsp[0].str));
+}
+#line 51857 "preproc.c"
+ break;
+
+ case 1834: /* relation_expr: qualified_name */
+#line 11206 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51865 "preproc.c"
+ break;
+
+ case 1835: /* relation_expr: extended_relation_expr */
+#line 11210 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51873 "preproc.c"
+ break;
+
+ case 1836: /* extended_relation_expr: qualified_name '*' */
+#line 11218 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("*"));
+}
+#line 51881 "preproc.c"
+ break;
+
+ case 1837: /* extended_relation_expr: ONLY qualified_name */
+#line 11222 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("only"),(yyvsp[0].str));
+}
+#line 51889 "preproc.c"
+ break;
+
+ case 1838: /* extended_relation_expr: ONLY '(' qualified_name ')' */
+#line 11226 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("only ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51897 "preproc.c"
+ break;
+
+ case 1839: /* relation_expr_list: relation_expr */
+#line 11234 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51905 "preproc.c"
+ break;
+
+ case 1840: /* relation_expr_list: relation_expr_list ',' relation_expr */
+#line 11238 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 51913 "preproc.c"
+ break;
+
+ case 1841: /* relation_expr_opt_alias: relation_expr */
+#line 11246 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51921 "preproc.c"
+ break;
+
+ case 1842: /* relation_expr_opt_alias: relation_expr ColId */
+#line 11250 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51929 "preproc.c"
+ break;
+
+ case 1843: /* relation_expr_opt_alias: relation_expr AS ColId */
+#line 11254 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("as"),(yyvsp[0].str));
+}
+#line 51937 "preproc.c"
+ break;
+
+ case 1844: /* tablesample_clause: TABLESAMPLE func_name '(' expr_list ')' opt_repeatable_clause */
+#line 11262 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("tablesample"),(yyvsp[-4].str),mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 51945 "preproc.c"
+ break;
+
+ case 1845: /* opt_repeatable_clause: REPEATABLE '(' a_expr ')' */
+#line 11270 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("repeatable ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 51953 "preproc.c"
+ break;
+
+ case 1846: /* opt_repeatable_clause: %empty */
+#line 11274 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 51960 "preproc.c"
+ break;
+
+ case 1847: /* func_table: func_expr_windowless opt_ordinality */
+#line 11281 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51968 "preproc.c"
+ break;
+
+ case 1848: /* func_table: ROWS FROM '(' rowsfrom_list ')' opt_ordinality */
+#line 11285 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("rows from ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 51976 "preproc.c"
+ break;
+
+ case 1849: /* rowsfrom_item: func_expr_windowless opt_col_def_list */
+#line 11293 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 51984 "preproc.c"
+ break;
+
+ case 1850: /* rowsfrom_list: rowsfrom_item */
+#line 11301 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 51992 "preproc.c"
+ break;
+
+ case 1851: /* rowsfrom_list: rowsfrom_list ',' rowsfrom_item */
+#line 11305 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 52000 "preproc.c"
+ break;
+
+ case 1852: /* opt_col_def_list: AS '(' TableFuncElementList ')' */
+#line 11313 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("as ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 52008 "preproc.c"
+ break;
+
+ case 1853: /* opt_col_def_list: %empty */
+#line 11317 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52015 "preproc.c"
+ break;
+
+ case 1854: /* opt_ordinality: WITH_LA ORDINALITY */
+#line 11324 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with ordinality");
+}
+#line 52023 "preproc.c"
+ break;
+
+ case 1855: /* opt_ordinality: %empty */
+#line 11328 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52030 "preproc.c"
+ break;
+
+ case 1856: /* where_clause: WHERE a_expr */
+#line 11335 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("where"),(yyvsp[0].str));
+}
+#line 52038 "preproc.c"
+ break;
+
+ case 1857: /* where_clause: %empty */
+#line 11339 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52045 "preproc.c"
+ break;
+
+ case 1858: /* where_or_current_clause: WHERE a_expr */
+#line 11346 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("where"),(yyvsp[0].str));
+}
+#line 52053 "preproc.c"
+ break;
+
+ case 1859: /* where_or_current_clause: WHERE CURRENT_P OF cursor_name */
+#line 11350 "preproc.y"
+ {
+ char *cursor_marker = (yyvsp[0].str)[0] == ':' ? mm_strdup("$0") : (yyvsp[0].str);
+ (yyval.str) = cat_str(2,mm_strdup("where current of"), cursor_marker);
+ }
+#line 52062 "preproc.c"
+ break;
+
+ case 1860: /* where_or_current_clause: %empty */
+#line 11355 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52069 "preproc.c"
+ break;
+
+ case 1861: /* OptTableFuncElementList: TableFuncElementList */
+#line 11362 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52077 "preproc.c"
+ break;
+
+ case 1862: /* OptTableFuncElementList: %empty */
+#line 11366 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52084 "preproc.c"
+ break;
+
+ case 1863: /* TableFuncElementList: TableFuncElement */
+#line 11373 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52092 "preproc.c"
+ break;
+
+ case 1864: /* TableFuncElementList: TableFuncElementList ',' TableFuncElement */
+#line 11377 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 52100 "preproc.c"
+ break;
+
+ case 1865: /* TableFuncElement: ColId Typename opt_collate_clause */
+#line 11385 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 52108 "preproc.c"
+ break;
+
+ case 1866: /* xmltable: XMLTABLE '(' c_expr xmlexists_argument COLUMNS xmltable_column_list ')' */
+#line 11393 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("xmltable ("),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("columns"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 52116 "preproc.c"
+ break;
+
+ case 1867: /* xmltable: XMLTABLE '(' XMLNAMESPACES '(' xml_namespace_list ')' ',' c_expr xmlexists_argument COLUMNS xmltable_column_list ')' */
+#line 11397 "preproc.y"
+ {
+ (yyval.str) = cat_str(8,mm_strdup("xmltable ( xmlnamespaces ("),(yyvsp[-7].str),mm_strdup(") ,"),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("columns"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 52124 "preproc.c"
+ break;
+
+ case 1868: /* xmltable_column_list: xmltable_column_el */
+#line 11405 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52132 "preproc.c"
+ break;
+
+ case 1869: /* xmltable_column_list: xmltable_column_list ',' xmltable_column_el */
+#line 11409 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 52140 "preproc.c"
+ break;
+
+ case 1870: /* xmltable_column_el: ColId Typename */
+#line 11417 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 52148 "preproc.c"
+ break;
+
+ case 1871: /* xmltable_column_el: ColId Typename xmltable_column_option_list */
+#line 11421 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 52156 "preproc.c"
+ break;
+
+ case 1872: /* xmltable_column_el: ColId FOR ORDINALITY */
+#line 11425 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("for ordinality"));
+}
+#line 52164 "preproc.c"
+ break;
+
+ case 1873: /* xmltable_column_option_list: xmltable_column_option_el */
+#line 11433 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52172 "preproc.c"
+ break;
+
+ case 1874: /* xmltable_column_option_list: xmltable_column_option_list xmltable_column_option_el */
+#line 11437 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 52180 "preproc.c"
+ break;
+
+ case 1875: /* xmltable_column_option_el: ecpg_ident b_expr */
+#line 11445 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 52188 "preproc.c"
+ break;
+
+ case 1876: /* xmltable_column_option_el: DEFAULT b_expr */
+#line 11449 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("default"),(yyvsp[0].str));
+}
+#line 52196 "preproc.c"
+ break;
+
+ case 1877: /* xmltable_column_option_el: NOT NULL_P */
+#line 11453 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not null");
+}
+#line 52204 "preproc.c"
+ break;
+
+ case 1878: /* xmltable_column_option_el: NULL_P */
+#line 11457 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("null");
+}
+#line 52212 "preproc.c"
+ break;
+
+ case 1879: /* xml_namespace_list: xml_namespace_el */
+#line 11465 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52220 "preproc.c"
+ break;
+
+ case 1880: /* xml_namespace_list: xml_namespace_list ',' xml_namespace_el */
+#line 11469 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 52228 "preproc.c"
+ break;
+
+ case 1881: /* xml_namespace_el: b_expr AS ColLabel */
+#line 11477 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("as"),(yyvsp[0].str));
+}
+#line 52236 "preproc.c"
+ break;
+
+ case 1882: /* xml_namespace_el: DEFAULT b_expr */
+#line 11481 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("default"),(yyvsp[0].str));
+}
+#line 52244 "preproc.c"
+ break;
+
+ case 1883: /* Typename: SimpleTypename opt_array_bounds */
+#line 11489 "preproc.y"
+ { (yyval.str) = cat2_str((yyvsp[-1].str), (yyvsp[0].index).str); }
+#line 52250 "preproc.c"
+ break;
+
+ case 1884: /* Typename: SETOF SimpleTypename opt_array_bounds */
+#line 11491 "preproc.y"
+ { (yyval.str) = cat_str(3, mm_strdup("setof"), (yyvsp[-1].str), (yyvsp[0].index).str); }
+#line 52256 "preproc.c"
+ break;
+
+ case 1885: /* Typename: SimpleTypename ARRAY '[' Iconst ']' */
+#line 11493 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-4].str),mm_strdup("array ["),(yyvsp[-1].str),mm_strdup("]"));
+}
+#line 52264 "preproc.c"
+ break;
+
+ case 1886: /* Typename: SETOF SimpleTypename ARRAY '[' Iconst ']' */
+#line 11497 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("setof"),(yyvsp[-4].str),mm_strdup("array ["),(yyvsp[-1].str),mm_strdup("]"));
+}
+#line 52272 "preproc.c"
+ break;
+
+ case 1887: /* Typename: SimpleTypename ARRAY */
+#line 11501 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("array"));
+}
+#line 52280 "preproc.c"
+ break;
+
+ case 1888: /* Typename: SETOF SimpleTypename ARRAY */
+#line 11505 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("setof"),(yyvsp[-1].str),mm_strdup("array"));
+}
+#line 52288 "preproc.c"
+ break;
+
+ case 1889: /* opt_array_bounds: opt_array_bounds '[' ']' */
+#line 11513 "preproc.y"
+ {
+ (yyval.index).index1 = (yyvsp[-2].index).index1;
+ (yyval.index).index2 = (yyvsp[-2].index).index2;
+ if (strcmp((yyval.index).index1, "-1") == 0)
+ (yyval.index).index1 = mm_strdup("0");
+ else if (strcmp((yyvsp[-2].index).index2, "-1") == 0)
+ (yyval.index).index2 = mm_strdup("0");
+ (yyval.index).str = cat_str(2, (yyvsp[-2].index).str, mm_strdup("[]"));
+ }
+#line 52302 "preproc.c"
+ break;
+
+ case 1890: /* opt_array_bounds: opt_array_bounds '[' Iresult ']' */
+#line 11523 "preproc.y"
+ {
+ (yyval.index).index1 = (yyvsp[-3].index).index1;
+ (yyval.index).index2 = (yyvsp[-3].index).index2;
+ if (strcmp((yyvsp[-3].index).index1, "-1") == 0)
+ (yyval.index).index1 = mm_strdup((yyvsp[-1].str));
+ else if (strcmp((yyvsp[-3].index).index2, "-1") == 0)
+ (yyval.index).index2 = mm_strdup((yyvsp[-1].str));
+ (yyval.index).str = cat_str(4, (yyvsp[-3].index).str, mm_strdup("["), (yyvsp[-1].str), mm_strdup("]"));
+ }
+#line 52316 "preproc.c"
+ break;
+
+ case 1891: /* opt_array_bounds: %empty */
+#line 11533 "preproc.y"
+ {
+ (yyval.index).index1 = mm_strdup("-1");
+ (yyval.index).index2 = mm_strdup("-1");
+ (yyval.index).str= EMPTY;
+ }
+#line 52326 "preproc.c"
+ break;
+
+ case 1892: /* SimpleTypename: GenericType */
+#line 11543 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52334 "preproc.c"
+ break;
+
+ case 1893: /* SimpleTypename: Numeric */
+#line 11547 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52342 "preproc.c"
+ break;
+
+ case 1894: /* SimpleTypename: Bit */
+#line 11551 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52350 "preproc.c"
+ break;
+
+ case 1895: /* SimpleTypename: Character */
+#line 11555 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52358 "preproc.c"
+ break;
+
+ case 1896: /* SimpleTypename: ConstDatetime */
+#line 11559 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52366 "preproc.c"
+ break;
+
+ case 1897: /* SimpleTypename: ConstInterval opt_interval */
+#line 11563 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 52374 "preproc.c"
+ break;
+
+ case 1898: /* SimpleTypename: ConstInterval '(' Iconst ')' */
+#line 11567 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 52382 "preproc.c"
+ break;
+
+ case 1899: /* ConstTypename: Numeric */
+#line 11575 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52390 "preproc.c"
+ break;
+
+ case 1900: /* ConstTypename: ConstBit */
+#line 11579 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52398 "preproc.c"
+ break;
+
+ case 1901: /* ConstTypename: ConstCharacter */
+#line 11583 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52406 "preproc.c"
+ break;
+
+ case 1902: /* ConstTypename: ConstDatetime */
+#line 11587 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52414 "preproc.c"
+ break;
+
+ case 1903: /* GenericType: type_function_name opt_type_modifiers */
+#line 11595 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 52422 "preproc.c"
+ break;
+
+ case 1904: /* GenericType: type_function_name attrs opt_type_modifiers */
+#line 11599 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 52430 "preproc.c"
+ break;
+
+ case 1905: /* opt_type_modifiers: '(' expr_list ')' */
+#line 11607 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 52438 "preproc.c"
+ break;
+
+ case 1906: /* opt_type_modifiers: %empty */
+#line 11611 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52445 "preproc.c"
+ break;
+
+ case 1907: /* Numeric: INT_P */
+#line 11618 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("int");
+}
+#line 52453 "preproc.c"
+ break;
+
+ case 1908: /* Numeric: INTEGER */
+#line 11622 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("integer");
+}
+#line 52461 "preproc.c"
+ break;
+
+ case 1909: /* Numeric: SMALLINT */
+#line 11626 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("smallint");
+}
+#line 52469 "preproc.c"
+ break;
+
+ case 1910: /* Numeric: BIGINT */
+#line 11630 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("bigint");
+}
+#line 52477 "preproc.c"
+ break;
+
+ case 1911: /* Numeric: REAL */
+#line 11634 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("real");
+}
+#line 52485 "preproc.c"
+ break;
+
+ case 1912: /* Numeric: FLOAT_P opt_float */
+#line 11638 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("float"),(yyvsp[0].str));
+}
+#line 52493 "preproc.c"
+ break;
+
+ case 1913: /* Numeric: DOUBLE_P PRECISION */
+#line 11642 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("double precision");
+}
+#line 52501 "preproc.c"
+ break;
+
+ case 1914: /* Numeric: DECIMAL_P opt_type_modifiers */
+#line 11646 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("decimal"),(yyvsp[0].str));
+}
+#line 52509 "preproc.c"
+ break;
+
+ case 1915: /* Numeric: DEC opt_type_modifiers */
+#line 11650 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("dec"),(yyvsp[0].str));
+}
+#line 52517 "preproc.c"
+ break;
+
+ case 1916: /* Numeric: NUMERIC opt_type_modifiers */
+#line 11654 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("numeric"),(yyvsp[0].str));
+}
+#line 52525 "preproc.c"
+ break;
+
+ case 1917: /* Numeric: BOOLEAN_P */
+#line 11658 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("boolean");
+}
+#line 52533 "preproc.c"
+ break;
+
+ case 1918: /* opt_float: '(' Iconst ')' */
+#line 11666 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 52541 "preproc.c"
+ break;
+
+ case 1919: /* opt_float: %empty */
+#line 11670 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52548 "preproc.c"
+ break;
+
+ case 1920: /* Bit: BitWithLength */
+#line 11677 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52556 "preproc.c"
+ break;
+
+ case 1921: /* Bit: BitWithoutLength */
+#line 11681 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52564 "preproc.c"
+ break;
+
+ case 1922: /* ConstBit: BitWithLength */
+#line 11689 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52572 "preproc.c"
+ break;
+
+ case 1923: /* ConstBit: BitWithoutLength */
+#line 11693 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52580 "preproc.c"
+ break;
+
+ case 1924: /* BitWithLength: BIT opt_varying '(' expr_list ')' */
+#line 11701 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("bit"),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 52588 "preproc.c"
+ break;
+
+ case 1925: /* BitWithoutLength: BIT opt_varying */
+#line 11709 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("bit"),(yyvsp[0].str));
+}
+#line 52596 "preproc.c"
+ break;
+
+ case 1926: /* Character: CharacterWithLength */
+#line 11717 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52604 "preproc.c"
+ break;
+
+ case 1927: /* Character: CharacterWithoutLength */
+#line 11721 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52612 "preproc.c"
+ break;
+
+ case 1928: /* ConstCharacter: CharacterWithLength */
+#line 11729 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52620 "preproc.c"
+ break;
+
+ case 1929: /* ConstCharacter: CharacterWithoutLength */
+#line 11733 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52628 "preproc.c"
+ break;
+
+ case 1930: /* CharacterWithLength: character '(' Iconst ')' */
+#line 11741 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 52636 "preproc.c"
+ break;
+
+ case 1931: /* CharacterWithoutLength: character */
+#line 11749 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52644 "preproc.c"
+ break;
+
+ case 1932: /* character: CHARACTER opt_varying */
+#line 11757 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("character"),(yyvsp[0].str));
+}
+#line 52652 "preproc.c"
+ break;
+
+ case 1933: /* character: CHAR_P opt_varying */
+#line 11761 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("char"),(yyvsp[0].str));
+}
+#line 52660 "preproc.c"
+ break;
+
+ case 1934: /* character: VARCHAR */
+#line 11765 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("varchar");
+}
+#line 52668 "preproc.c"
+ break;
+
+ case 1935: /* character: NATIONAL CHARACTER opt_varying */
+#line 11769 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("national character"),(yyvsp[0].str));
+}
+#line 52676 "preproc.c"
+ break;
+
+ case 1936: /* character: NATIONAL CHAR_P opt_varying */
+#line 11773 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("national char"),(yyvsp[0].str));
+}
+#line 52684 "preproc.c"
+ break;
+
+ case 1937: /* character: NCHAR opt_varying */
+#line 11777 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("nchar"),(yyvsp[0].str));
+}
+#line 52692 "preproc.c"
+ break;
+
+ case 1938: /* opt_varying: VARYING */
+#line 11785 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("varying");
+}
+#line 52700 "preproc.c"
+ break;
+
+ case 1939: /* opt_varying: %empty */
+#line 11789 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52707 "preproc.c"
+ break;
+
+ case 1940: /* ConstDatetime: TIMESTAMP '(' Iconst ')' opt_timezone */
+#line 11796 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("timestamp ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 52715 "preproc.c"
+ break;
+
+ case 1941: /* ConstDatetime: TIMESTAMP opt_timezone */
+#line 11800 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("timestamp"),(yyvsp[0].str));
+}
+#line 52723 "preproc.c"
+ break;
+
+ case 1942: /* ConstDatetime: TIME '(' Iconst ')' opt_timezone */
+#line 11804 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("time ("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 52731 "preproc.c"
+ break;
+
+ case 1943: /* ConstDatetime: TIME opt_timezone */
+#line 11808 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("time"),(yyvsp[0].str));
+}
+#line 52739 "preproc.c"
+ break;
+
+ case 1944: /* ConstInterval: INTERVAL */
+#line 11816 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("interval");
+}
+#line 52747 "preproc.c"
+ break;
+
+ case 1945: /* opt_timezone: WITH_LA TIME ZONE */
+#line 11824 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with time zone");
+}
+#line 52755 "preproc.c"
+ break;
+
+ case 1946: /* opt_timezone: WITHOUT TIME ZONE */
+#line 11828 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("without time zone");
+}
+#line 52763 "preproc.c"
+ break;
+
+ case 1947: /* opt_timezone: %empty */
+#line 11832 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52770 "preproc.c"
+ break;
+
+ case 1948: /* opt_interval: YEAR_P */
+#line 11839 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("year");
+}
+#line 52778 "preproc.c"
+ break;
+
+ case 1949: /* opt_interval: MONTH_P */
+#line 11843 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("month");
+}
+#line 52786 "preproc.c"
+ break;
+
+ case 1950: /* opt_interval: DAY_P */
+#line 11847 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("day");
+}
+#line 52794 "preproc.c"
+ break;
+
+ case 1951: /* opt_interval: HOUR_P */
+#line 11851 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("hour");
+}
+#line 52802 "preproc.c"
+ break;
+
+ case 1952: /* opt_interval: MINUTE_P */
+#line 11855 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("minute");
+}
+#line 52810 "preproc.c"
+ break;
+
+ case 1953: /* opt_interval: interval_second */
+#line 11859 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52818 "preproc.c"
+ break;
+
+ case 1954: /* opt_interval: YEAR_P TO MONTH_P */
+#line 11863 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("year to month");
+}
+#line 52826 "preproc.c"
+ break;
+
+ case 1955: /* opt_interval: DAY_P TO HOUR_P */
+#line 11867 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("day to hour");
+}
+#line 52834 "preproc.c"
+ break;
+
+ case 1956: /* opt_interval: DAY_P TO MINUTE_P */
+#line 11871 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("day to minute");
+}
+#line 52842 "preproc.c"
+ break;
+
+ case 1957: /* opt_interval: DAY_P TO interval_second */
+#line 11875 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("day to"),(yyvsp[0].str));
+}
+#line 52850 "preproc.c"
+ break;
+
+ case 1958: /* opt_interval: HOUR_P TO MINUTE_P */
+#line 11879 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("hour to minute");
+}
+#line 52858 "preproc.c"
+ break;
+
+ case 1959: /* opt_interval: HOUR_P TO interval_second */
+#line 11883 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("hour to"),(yyvsp[0].str));
+}
+#line 52866 "preproc.c"
+ break;
+
+ case 1960: /* opt_interval: MINUTE_P TO interval_second */
+#line 11887 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("minute to"),(yyvsp[0].str));
+}
+#line 52874 "preproc.c"
+ break;
+
+ case 1961: /* opt_interval: %empty */
+#line 11891 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 52881 "preproc.c"
+ break;
+
+ case 1962: /* interval_second: SECOND_P */
+#line 11898 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("second");
+}
+#line 52889 "preproc.c"
+ break;
+
+ case 1963: /* interval_second: SECOND_P '(' Iconst ')' */
+#line 11902 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("second ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 52897 "preproc.c"
+ break;
+
+ case 1964: /* a_expr: c_expr */
+#line 11910 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 52905 "preproc.c"
+ break;
+
+ case 1965: /* a_expr: a_expr TYPECAST Typename */
+#line 11914 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("::"),(yyvsp[0].str));
+}
+#line 52913 "preproc.c"
+ break;
+
+ case 1966: /* a_expr: a_expr COLLATE any_name */
+#line 11918 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("collate"),(yyvsp[0].str));
+}
+#line 52921 "preproc.c"
+ break;
+
+ case 1967: /* a_expr: a_expr AT TIME ZONE a_expr */
+#line 11922 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-4].str),mm_strdup("at time zone"),(yyvsp[0].str));
+}
+#line 52929 "preproc.c"
+ break;
+
+ case 1968: /* a_expr: '+' a_expr */
+#line 11926 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("+"),(yyvsp[0].str));
+}
+#line 52937 "preproc.c"
+ break;
+
+ case 1969: /* a_expr: '-' a_expr */
+#line 11930 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("-"),(yyvsp[0].str));
+}
+#line 52945 "preproc.c"
+ break;
+
+ case 1970: /* a_expr: a_expr '+' a_expr */
+#line 11934 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("+"),(yyvsp[0].str));
+}
+#line 52953 "preproc.c"
+ break;
+
+ case 1971: /* a_expr: a_expr '-' a_expr */
+#line 11938 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("-"),(yyvsp[0].str));
+}
+#line 52961 "preproc.c"
+ break;
+
+ case 1972: /* a_expr: a_expr '*' a_expr */
+#line 11942 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("*"),(yyvsp[0].str));
+}
+#line 52969 "preproc.c"
+ break;
+
+ case 1973: /* a_expr: a_expr '/' a_expr */
+#line 11946 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("/"),(yyvsp[0].str));
+}
+#line 52977 "preproc.c"
+ break;
+
+ case 1974: /* a_expr: a_expr '%' a_expr */
+#line 11950 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("%"),(yyvsp[0].str));
+}
+#line 52985 "preproc.c"
+ break;
+
+ case 1975: /* a_expr: a_expr '^' a_expr */
+#line 11954 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("^"),(yyvsp[0].str));
+}
+#line 52993 "preproc.c"
+ break;
+
+ case 1976: /* a_expr: a_expr '<' a_expr */
+#line 11958 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("<"),(yyvsp[0].str));
+}
+#line 53001 "preproc.c"
+ break;
+
+ case 1977: /* a_expr: a_expr '>' a_expr */
+#line 11962 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(">"),(yyvsp[0].str));
+}
+#line 53009 "preproc.c"
+ break;
+
+ case 1978: /* a_expr: a_expr '=' a_expr */
+#line 11966 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 53017 "preproc.c"
+ break;
+
+ case 1979: /* a_expr: a_expr LESS_EQUALS a_expr */
+#line 11970 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("<="),(yyvsp[0].str));
+}
+#line 53025 "preproc.c"
+ break;
+
+ case 1980: /* a_expr: a_expr GREATER_EQUALS a_expr */
+#line 11974 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(">="),(yyvsp[0].str));
+}
+#line 53033 "preproc.c"
+ break;
+
+ case 1981: /* a_expr: a_expr NOT_EQUALS a_expr */
+#line 11978 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("<>"),(yyvsp[0].str));
+}
+#line 53041 "preproc.c"
+ break;
+
+ case 1982: /* a_expr: a_expr qual_Op a_expr */
+#line 11982 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 53049 "preproc.c"
+ break;
+
+ case 1983: /* a_expr: qual_Op a_expr */
+#line 11986 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 53057 "preproc.c"
+ break;
+
+ case 1984: /* a_expr: a_expr AND a_expr */
+#line 11990 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("and"),(yyvsp[0].str));
+}
+#line 53065 "preproc.c"
+ break;
+
+ case 1985: /* a_expr: a_expr OR a_expr */
+#line 11994 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("or"),(yyvsp[0].str));
+}
+#line 53073 "preproc.c"
+ break;
+
+ case 1986: /* a_expr: NOT a_expr */
+#line 11998 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("not"),(yyvsp[0].str));
+}
+#line 53081 "preproc.c"
+ break;
+
+ case 1987: /* a_expr: NOT_LA a_expr */
+#line 12002 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("not"),(yyvsp[0].str));
+}
+#line 53089 "preproc.c"
+ break;
+
+ case 1988: /* a_expr: a_expr LIKE a_expr */
+#line 12006 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("like"),(yyvsp[0].str));
+}
+#line 53097 "preproc.c"
+ break;
+
+ case 1989: /* a_expr: a_expr LIKE a_expr ESCAPE a_expr */
+#line 12010 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("like"),(yyvsp[-2].str),mm_strdup("escape"),(yyvsp[0].str));
+}
+#line 53105 "preproc.c"
+ break;
+
+ case 1990: /* a_expr: a_expr NOT_LA LIKE a_expr */
+#line 12014 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-3].str),mm_strdup("not like"),(yyvsp[0].str));
+}
+#line 53113 "preproc.c"
+ break;
+
+ case 1991: /* a_expr: a_expr NOT_LA LIKE a_expr ESCAPE a_expr */
+#line 12018 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-5].str),mm_strdup("not like"),(yyvsp[-2].str),mm_strdup("escape"),(yyvsp[0].str));
+}
+#line 53121 "preproc.c"
+ break;
+
+ case 1992: /* a_expr: a_expr ILIKE a_expr */
+#line 12022 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("ilike"),(yyvsp[0].str));
+}
+#line 53129 "preproc.c"
+ break;
+
+ case 1993: /* a_expr: a_expr ILIKE a_expr ESCAPE a_expr */
+#line 12026 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("ilike"),(yyvsp[-2].str),mm_strdup("escape"),(yyvsp[0].str));
+}
+#line 53137 "preproc.c"
+ break;
+
+ case 1994: /* a_expr: a_expr NOT_LA ILIKE a_expr */
+#line 12030 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-3].str),mm_strdup("not ilike"),(yyvsp[0].str));
+}
+#line 53145 "preproc.c"
+ break;
+
+ case 1995: /* a_expr: a_expr NOT_LA ILIKE a_expr ESCAPE a_expr */
+#line 12034 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-5].str),mm_strdup("not ilike"),(yyvsp[-2].str),mm_strdup("escape"),(yyvsp[0].str));
+}
+#line 53153 "preproc.c"
+ break;
+
+ case 1996: /* a_expr: a_expr SIMILAR TO a_expr */
+#line 12038 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-3].str),mm_strdup("similar to"),(yyvsp[0].str));
+}
+#line 53161 "preproc.c"
+ break;
+
+ case 1997: /* a_expr: a_expr SIMILAR TO a_expr ESCAPE a_expr */
+#line 12042 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-5].str),mm_strdup("similar to"),(yyvsp[-2].str),mm_strdup("escape"),(yyvsp[0].str));
+}
+#line 53169 "preproc.c"
+ break;
+
+ case 1998: /* a_expr: a_expr NOT_LA SIMILAR TO a_expr */
+#line 12046 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-4].str),mm_strdup("not similar to"),(yyvsp[0].str));
+}
+#line 53177 "preproc.c"
+ break;
+
+ case 1999: /* a_expr: a_expr NOT_LA SIMILAR TO a_expr ESCAPE a_expr */
+#line 12050 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-6].str),mm_strdup("not similar to"),(yyvsp[-2].str),mm_strdup("escape"),(yyvsp[0].str));
+}
+#line 53185 "preproc.c"
+ break;
+
+ case 2000: /* a_expr: a_expr IS NULL_P */
+#line 12054 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("is null"));
+}
+#line 53193 "preproc.c"
+ break;
+
+ case 2001: /* a_expr: a_expr ISNULL */
+#line 12058 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("isnull"));
+}
+#line 53201 "preproc.c"
+ break;
+
+ case 2002: /* a_expr: a_expr IS NOT NULL_P */
+#line 12062 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-3].str),mm_strdup("is not null"));
+}
+#line 53209 "preproc.c"
+ break;
+
+ case 2003: /* a_expr: a_expr NOTNULL */
+#line 12066 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("notnull"));
+}
+#line 53217 "preproc.c"
+ break;
+
+ case 2004: /* a_expr: row OVERLAPS row */
+#line 12070 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("overlaps"),(yyvsp[0].str));
+}
+#line 53225 "preproc.c"
+ break;
+
+ case 2005: /* a_expr: a_expr IS TRUE_P */
+#line 12074 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("is true"));
+}
+#line 53233 "preproc.c"
+ break;
+
+ case 2006: /* a_expr: a_expr IS NOT TRUE_P */
+#line 12078 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-3].str),mm_strdup("is not true"));
+}
+#line 53241 "preproc.c"
+ break;
+
+ case 2007: /* a_expr: a_expr IS FALSE_P */
+#line 12082 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("is false"));
+}
+#line 53249 "preproc.c"
+ break;
+
+ case 2008: /* a_expr: a_expr IS NOT FALSE_P */
+#line 12086 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-3].str),mm_strdup("is not false"));
+}
+#line 53257 "preproc.c"
+ break;
+
+ case 2009: /* a_expr: a_expr IS UNKNOWN */
+#line 12090 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("is unknown"));
+}
+#line 53265 "preproc.c"
+ break;
+
+ case 2010: /* a_expr: a_expr IS NOT UNKNOWN */
+#line 12094 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-3].str),mm_strdup("is not unknown"));
+}
+#line 53273 "preproc.c"
+ break;
+
+ case 2011: /* a_expr: a_expr IS DISTINCT FROM a_expr */
+#line 12098 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-4].str),mm_strdup("is distinct from"),(yyvsp[0].str));
+}
+#line 53281 "preproc.c"
+ break;
+
+ case 2012: /* a_expr: a_expr IS NOT DISTINCT FROM a_expr */
+#line 12102 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-5].str),mm_strdup("is not distinct from"),(yyvsp[0].str));
+}
+#line 53289 "preproc.c"
+ break;
+
+ case 2013: /* a_expr: a_expr BETWEEN opt_asymmetric b_expr AND a_expr */
+#line 12106 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,(yyvsp[-5].str),mm_strdup("between"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("and"),(yyvsp[0].str));
+}
+#line 53297 "preproc.c"
+ break;
+
+ case 2014: /* a_expr: a_expr NOT_LA BETWEEN opt_asymmetric b_expr AND a_expr */
+#line 12110 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,(yyvsp[-6].str),mm_strdup("not between"),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup("and"),(yyvsp[0].str));
+}
+#line 53305 "preproc.c"
+ break;
+
+ case 2015: /* a_expr: a_expr BETWEEN SYMMETRIC b_expr AND a_expr */
+#line 12114 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-5].str),mm_strdup("between symmetric"),(yyvsp[-2].str),mm_strdup("and"),(yyvsp[0].str));
+}
+#line 53313 "preproc.c"
+ break;
+
+ case 2016: /* a_expr: a_expr NOT_LA BETWEEN SYMMETRIC b_expr AND a_expr */
+#line 12118 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-6].str),mm_strdup("not between symmetric"),(yyvsp[-2].str),mm_strdup("and"),(yyvsp[0].str));
+}
+#line 53321 "preproc.c"
+ break;
+
+ case 2017: /* a_expr: a_expr IN_P in_expr */
+#line 12122 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("in"),(yyvsp[0].str));
+}
+#line 53329 "preproc.c"
+ break;
+
+ case 2018: /* a_expr: a_expr NOT_LA IN_P in_expr */
+#line 12126 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-3].str),mm_strdup("not in"),(yyvsp[0].str));
+}
+#line 53337 "preproc.c"
+ break;
+
+ case 2019: /* a_expr: a_expr subquery_Op sub_type select_with_parens */
+#line 12130 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 53345 "preproc.c"
+ break;
+
+ case 2020: /* a_expr: a_expr subquery_Op sub_type '(' a_expr ')' */
+#line 12134 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,(yyvsp[-5].str),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53353 "preproc.c"
+ break;
+
+ case 2021: /* a_expr: UNIQUE opt_unique_null_treatment select_with_parens */
+#line 12138 "preproc.y"
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ (yyval.str) = cat_str(3,mm_strdup("unique"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 53362 "preproc.c"
+ break;
+
+ case 2022: /* a_expr: a_expr IS DOCUMENT_P */
+#line 12143 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("is document"));
+}
+#line 53370 "preproc.c"
+ break;
+
+ case 2023: /* a_expr: a_expr IS NOT DOCUMENT_P */
+#line 12147 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-3].str),mm_strdup("is not document"));
+}
+#line 53378 "preproc.c"
+ break;
+
+ case 2024: /* a_expr: a_expr IS NORMALIZED */
+#line 12151 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("is normalized"));
+}
+#line 53386 "preproc.c"
+ break;
+
+ case 2025: /* a_expr: a_expr IS unicode_normal_form NORMALIZED */
+#line 12155 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),mm_strdup("is"),(yyvsp[-1].str),mm_strdup("normalized"));
+}
+#line 53394 "preproc.c"
+ break;
+
+ case 2026: /* a_expr: a_expr IS NOT NORMALIZED */
+#line 12159 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-3].str),mm_strdup("is not normalized"));
+}
+#line 53402 "preproc.c"
+ break;
+
+ case 2027: /* a_expr: a_expr IS NOT unicode_normal_form NORMALIZED */
+#line 12163 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-4].str),mm_strdup("is not"),(yyvsp[-1].str),mm_strdup("normalized"));
+}
+#line 53410 "preproc.c"
+ break;
+
+ case 2028: /* a_expr: DEFAULT */
+#line 12167 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("default");
+}
+#line 53418 "preproc.c"
+ break;
+
+ case 2029: /* b_expr: c_expr */
+#line 12175 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53426 "preproc.c"
+ break;
+
+ case 2030: /* b_expr: b_expr TYPECAST Typename */
+#line 12179 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("::"),(yyvsp[0].str));
+}
+#line 53434 "preproc.c"
+ break;
+
+ case 2031: /* b_expr: '+' b_expr */
+#line 12183 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("+"),(yyvsp[0].str));
+}
+#line 53442 "preproc.c"
+ break;
+
+ case 2032: /* b_expr: '-' b_expr */
+#line 12187 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("-"),(yyvsp[0].str));
+}
+#line 53450 "preproc.c"
+ break;
+
+ case 2033: /* b_expr: b_expr '+' b_expr */
+#line 12191 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("+"),(yyvsp[0].str));
+}
+#line 53458 "preproc.c"
+ break;
+
+ case 2034: /* b_expr: b_expr '-' b_expr */
+#line 12195 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("-"),(yyvsp[0].str));
+}
+#line 53466 "preproc.c"
+ break;
+
+ case 2035: /* b_expr: b_expr '*' b_expr */
+#line 12199 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("*"),(yyvsp[0].str));
+}
+#line 53474 "preproc.c"
+ break;
+
+ case 2036: /* b_expr: b_expr '/' b_expr */
+#line 12203 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("/"),(yyvsp[0].str));
+}
+#line 53482 "preproc.c"
+ break;
+
+ case 2037: /* b_expr: b_expr '%' b_expr */
+#line 12207 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("%"),(yyvsp[0].str));
+}
+#line 53490 "preproc.c"
+ break;
+
+ case 2038: /* b_expr: b_expr '^' b_expr */
+#line 12211 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("^"),(yyvsp[0].str));
+}
+#line 53498 "preproc.c"
+ break;
+
+ case 2039: /* b_expr: b_expr '<' b_expr */
+#line 12215 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("<"),(yyvsp[0].str));
+}
+#line 53506 "preproc.c"
+ break;
+
+ case 2040: /* b_expr: b_expr '>' b_expr */
+#line 12219 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(">"),(yyvsp[0].str));
+}
+#line 53514 "preproc.c"
+ break;
+
+ case 2041: /* b_expr: b_expr '=' b_expr */
+#line 12223 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("="),(yyvsp[0].str));
+}
+#line 53522 "preproc.c"
+ break;
+
+ case 2042: /* b_expr: b_expr LESS_EQUALS b_expr */
+#line 12227 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("<="),(yyvsp[0].str));
+}
+#line 53530 "preproc.c"
+ break;
+
+ case 2043: /* b_expr: b_expr GREATER_EQUALS b_expr */
+#line 12231 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(">="),(yyvsp[0].str));
+}
+#line 53538 "preproc.c"
+ break;
+
+ case 2044: /* b_expr: b_expr NOT_EQUALS b_expr */
+#line 12235 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("<>"),(yyvsp[0].str));
+}
+#line 53546 "preproc.c"
+ break;
+
+ case 2045: /* b_expr: b_expr qual_Op b_expr */
+#line 12239 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 53554 "preproc.c"
+ break;
+
+ case 2046: /* b_expr: qual_Op b_expr */
+#line 12243 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 53562 "preproc.c"
+ break;
+
+ case 2047: /* b_expr: b_expr IS DISTINCT FROM b_expr */
+#line 12247 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-4].str),mm_strdup("is distinct from"),(yyvsp[0].str));
+}
+#line 53570 "preproc.c"
+ break;
+
+ case 2048: /* b_expr: b_expr IS NOT DISTINCT FROM b_expr */
+#line 12251 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-5].str),mm_strdup("is not distinct from"),(yyvsp[0].str));
+}
+#line 53578 "preproc.c"
+ break;
+
+ case 2049: /* b_expr: b_expr IS DOCUMENT_P */
+#line 12255 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("is document"));
+}
+#line 53586 "preproc.c"
+ break;
+
+ case 2050: /* b_expr: b_expr IS NOT DOCUMENT_P */
+#line 12259 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-3].str),mm_strdup("is not document"));
+}
+#line 53594 "preproc.c"
+ break;
+
+ case 2051: /* c_expr: columnref */
+#line 12267 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53602 "preproc.c"
+ break;
+
+ case 2052: /* c_expr: AexprConst */
+#line 12271 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53610 "preproc.c"
+ break;
+
+ case 2053: /* c_expr: ecpg_param opt_indirection */
+#line 12275 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 53618 "preproc.c"
+ break;
+
+ case 2054: /* c_expr: '(' a_expr ')' opt_indirection */
+#line 12279 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 53626 "preproc.c"
+ break;
+
+ case 2055: /* c_expr: case_expr */
+#line 12283 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53634 "preproc.c"
+ break;
+
+ case 2056: /* c_expr: func_expr */
+#line 12287 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53642 "preproc.c"
+ break;
+
+ case 2057: /* c_expr: select_with_parens */
+#line 12291 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53650 "preproc.c"
+ break;
+
+ case 2058: /* c_expr: select_with_parens indirection */
+#line 12295 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 53658 "preproc.c"
+ break;
+
+ case 2059: /* c_expr: EXISTS select_with_parens */
+#line 12299 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("exists"),(yyvsp[0].str));
+}
+#line 53666 "preproc.c"
+ break;
+
+ case 2060: /* c_expr: ARRAY select_with_parens */
+#line 12303 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("array"),(yyvsp[0].str));
+}
+#line 53674 "preproc.c"
+ break;
+
+ case 2061: /* c_expr: ARRAY array_expr */
+#line 12307 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("array"),(yyvsp[0].str));
+}
+#line 53682 "preproc.c"
+ break;
+
+ case 2062: /* c_expr: explicit_row */
+#line 12311 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53690 "preproc.c"
+ break;
+
+ case 2063: /* c_expr: implicit_row */
+#line 12315 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53698 "preproc.c"
+ break;
+
+ case 2064: /* c_expr: GROUPING '(' expr_list ')' */
+#line 12319 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("grouping ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53706 "preproc.c"
+ break;
+
+ case 2065: /* func_application: func_name '(' ')' */
+#line 12327 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-2].str),mm_strdup("( )"));
+}
+#line 53714 "preproc.c"
+ break;
+
+ case 2066: /* func_application: func_name '(' func_arg_list opt_sort_clause ')' */
+#line 12331 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("("),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53722 "preproc.c"
+ break;
+
+ case 2067: /* func_application: func_name '(' VARIADIC func_arg_expr opt_sort_clause ')' */
+#line 12335 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-5].str),mm_strdup("( variadic"),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53730 "preproc.c"
+ break;
+
+ case 2068: /* func_application: func_name '(' func_arg_list ',' VARIADIC func_arg_expr opt_sort_clause ')' */
+#line 12339 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,(yyvsp[-7].str),mm_strdup("("),(yyvsp[-5].str),mm_strdup(", variadic"),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53738 "preproc.c"
+ break;
+
+ case 2069: /* func_application: func_name '(' ALL func_arg_list opt_sort_clause ')' */
+#line 12343 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-5].str),mm_strdup("( all"),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53746 "preproc.c"
+ break;
+
+ case 2070: /* func_application: func_name '(' DISTINCT func_arg_list opt_sort_clause ')' */
+#line 12347 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-5].str),mm_strdup("( distinct"),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53754 "preproc.c"
+ break;
+
+ case 2071: /* func_application: func_name '(' '*' ')' */
+#line 12351 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-3].str),mm_strdup("( * )"));
+}
+#line 53762 "preproc.c"
+ break;
+
+ case 2072: /* func_expr: func_application within_group_clause filter_clause over_clause */
+#line 12359 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 53770 "preproc.c"
+ break;
+
+ case 2073: /* func_expr: func_expr_common_subexpr */
+#line 12363 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53778 "preproc.c"
+ break;
+
+ case 2074: /* func_expr_windowless: func_application */
+#line 12371 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53786 "preproc.c"
+ break;
+
+ case 2075: /* func_expr_windowless: func_expr_common_subexpr */
+#line 12375 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 53794 "preproc.c"
+ break;
+
+ case 2076: /* func_expr_common_subexpr: COLLATION FOR '(' a_expr ')' */
+#line 12383 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("collation for ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53802 "preproc.c"
+ break;
+
+ case 2077: /* func_expr_common_subexpr: CURRENT_DATE */
+#line 12387 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_date");
+}
+#line 53810 "preproc.c"
+ break;
+
+ case 2078: /* func_expr_common_subexpr: CURRENT_TIME */
+#line 12391 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_time");
+}
+#line 53818 "preproc.c"
+ break;
+
+ case 2079: /* func_expr_common_subexpr: CURRENT_TIME '(' Iconst ')' */
+#line 12395 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("current_time ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53826 "preproc.c"
+ break;
+
+ case 2080: /* func_expr_common_subexpr: CURRENT_TIMESTAMP */
+#line 12399 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_timestamp");
+}
+#line 53834 "preproc.c"
+ break;
+
+ case 2081: /* func_expr_common_subexpr: CURRENT_TIMESTAMP '(' Iconst ')' */
+#line 12403 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("current_timestamp ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53842 "preproc.c"
+ break;
+
+ case 2082: /* func_expr_common_subexpr: LOCALTIME */
+#line 12407 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("localtime");
+}
+#line 53850 "preproc.c"
+ break;
+
+ case 2083: /* func_expr_common_subexpr: LOCALTIME '(' Iconst ')' */
+#line 12411 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("localtime ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53858 "preproc.c"
+ break;
+
+ case 2084: /* func_expr_common_subexpr: LOCALTIMESTAMP */
+#line 12415 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("localtimestamp");
+}
+#line 53866 "preproc.c"
+ break;
+
+ case 2085: /* func_expr_common_subexpr: LOCALTIMESTAMP '(' Iconst ')' */
+#line 12419 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("localtimestamp ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53874 "preproc.c"
+ break;
+
+ case 2086: /* func_expr_common_subexpr: CURRENT_ROLE */
+#line 12423 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_role");
+}
+#line 53882 "preproc.c"
+ break;
+
+ case 2087: /* func_expr_common_subexpr: CURRENT_USER */
+#line 12427 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_user");
+}
+#line 53890 "preproc.c"
+ break;
+
+ case 2088: /* func_expr_common_subexpr: SESSION_USER */
+#line 12431 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("session_user");
+}
+#line 53898 "preproc.c"
+ break;
+
+ case 2089: /* func_expr_common_subexpr: USER */
+#line 12435 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("user");
+}
+#line 53906 "preproc.c"
+ break;
+
+ case 2090: /* func_expr_common_subexpr: CURRENT_CATALOG */
+#line 12439 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_catalog");
+}
+#line 53914 "preproc.c"
+ break;
+
+ case 2091: /* func_expr_common_subexpr: CURRENT_SCHEMA */
+#line 12443 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_schema");
+}
+#line 53922 "preproc.c"
+ break;
+
+ case 2092: /* func_expr_common_subexpr: CAST '(' a_expr AS Typename ')' */
+#line 12447 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("cast ("),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53930 "preproc.c"
+ break;
+
+ case 2093: /* func_expr_common_subexpr: EXTRACT '(' extract_list ')' */
+#line 12451 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("extract ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53938 "preproc.c"
+ break;
+
+ case 2094: /* func_expr_common_subexpr: NORMALIZE '(' a_expr ')' */
+#line 12455 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("normalize ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53946 "preproc.c"
+ break;
+
+ case 2095: /* func_expr_common_subexpr: NORMALIZE '(' a_expr ',' unicode_normal_form ')' */
+#line 12459 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("normalize ("),(yyvsp[-3].str),mm_strdup(","),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53954 "preproc.c"
+ break;
+
+ case 2096: /* func_expr_common_subexpr: OVERLAY '(' overlay_list ')' */
+#line 12463 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("overlay ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53962 "preproc.c"
+ break;
+
+ case 2097: /* func_expr_common_subexpr: OVERLAY '(' func_arg_list_opt ')' */
+#line 12467 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("overlay ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53970 "preproc.c"
+ break;
+
+ case 2098: /* func_expr_common_subexpr: POSITION '(' position_list ')' */
+#line 12471 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("position ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53978 "preproc.c"
+ break;
+
+ case 2099: /* func_expr_common_subexpr: SUBSTRING '(' substr_list ')' */
+#line 12475 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("substring ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53986 "preproc.c"
+ break;
+
+ case 2100: /* func_expr_common_subexpr: SUBSTRING '(' func_arg_list_opt ')' */
+#line 12479 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("substring ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 53994 "preproc.c"
+ break;
+
+ case 2101: /* func_expr_common_subexpr: TREAT '(' a_expr AS Typename ')' */
+#line 12483 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("treat ("),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54002 "preproc.c"
+ break;
+
+ case 2102: /* func_expr_common_subexpr: TRIM '(' BOTH trim_list ')' */
+#line 12487 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("trim ( both"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54010 "preproc.c"
+ break;
+
+ case 2103: /* func_expr_common_subexpr: TRIM '(' LEADING trim_list ')' */
+#line 12491 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("trim ( leading"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54018 "preproc.c"
+ break;
+
+ case 2104: /* func_expr_common_subexpr: TRIM '(' TRAILING trim_list ')' */
+#line 12495 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("trim ( trailing"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54026 "preproc.c"
+ break;
+
+ case 2105: /* func_expr_common_subexpr: TRIM '(' trim_list ')' */
+#line 12499 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("trim ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54034 "preproc.c"
+ break;
+
+ case 2106: /* func_expr_common_subexpr: NULLIF '(' a_expr ',' a_expr ')' */
+#line 12503 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("nullif ("),(yyvsp[-3].str),mm_strdup(","),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54042 "preproc.c"
+ break;
+
+ case 2107: /* func_expr_common_subexpr: COALESCE '(' expr_list ')' */
+#line 12507 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("coalesce ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54050 "preproc.c"
+ break;
+
+ case 2108: /* func_expr_common_subexpr: GREATEST '(' expr_list ')' */
+#line 12511 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("greatest ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54058 "preproc.c"
+ break;
+
+ case 2109: /* func_expr_common_subexpr: LEAST '(' expr_list ')' */
+#line 12515 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("least ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54066 "preproc.c"
+ break;
+
+ case 2110: /* func_expr_common_subexpr: XMLCONCAT '(' expr_list ')' */
+#line 12519 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("xmlconcat ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54074 "preproc.c"
+ break;
+
+ case 2111: /* func_expr_common_subexpr: XMLELEMENT '(' NAME_P ColLabel ')' */
+#line 12523 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("xmlelement ( name"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54082 "preproc.c"
+ break;
+
+ case 2112: /* func_expr_common_subexpr: XMLELEMENT '(' NAME_P ColLabel ',' xml_attributes ')' */
+#line 12527 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("xmlelement ( name"),(yyvsp[-3].str),mm_strdup(","),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54090 "preproc.c"
+ break;
+
+ case 2113: /* func_expr_common_subexpr: XMLELEMENT '(' NAME_P ColLabel ',' expr_list ')' */
+#line 12531 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("xmlelement ( name"),(yyvsp[-3].str),mm_strdup(","),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54098 "preproc.c"
+ break;
+
+ case 2114: /* func_expr_common_subexpr: XMLELEMENT '(' NAME_P ColLabel ',' xml_attributes ',' expr_list ')' */
+#line 12535 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,mm_strdup("xmlelement ( name"),(yyvsp[-5].str),mm_strdup(","),(yyvsp[-3].str),mm_strdup(","),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54106 "preproc.c"
+ break;
+
+ case 2115: /* func_expr_common_subexpr: XMLEXISTS '(' c_expr xmlexists_argument ')' */
+#line 12539 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("xmlexists ("),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54114 "preproc.c"
+ break;
+
+ case 2116: /* func_expr_common_subexpr: XMLFOREST '(' xml_attribute_list ')' */
+#line 12543 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("xmlforest ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54122 "preproc.c"
+ break;
+
+ case 2117: /* func_expr_common_subexpr: XMLPARSE '(' document_or_content a_expr xml_whitespace_option ')' */
+#line 12547 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("xmlparse ("),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54130 "preproc.c"
+ break;
+
+ case 2118: /* func_expr_common_subexpr: XMLPI '(' NAME_P ColLabel ')' */
+#line 12551 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("xmlpi ( name"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54138 "preproc.c"
+ break;
+
+ case 2119: /* func_expr_common_subexpr: XMLPI '(' NAME_P ColLabel ',' a_expr ')' */
+#line 12555 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("xmlpi ( name"),(yyvsp[-3].str),mm_strdup(","),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54146 "preproc.c"
+ break;
+
+ case 2120: /* func_expr_common_subexpr: XMLROOT '(' a_expr ',' xml_root_version opt_xml_root_standalone ')' */
+#line 12559 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("xmlroot ("),(yyvsp[-4].str),mm_strdup(","),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54154 "preproc.c"
+ break;
+
+ case 2121: /* func_expr_common_subexpr: XMLSERIALIZE '(' document_or_content a_expr AS SimpleTypename ')' */
+#line 12563 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("xmlserialize ("),(yyvsp[-4].str),(yyvsp[-3].str),mm_strdup("as"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54162 "preproc.c"
+ break;
+
+ case 2122: /* xml_root_version: VERSION_P a_expr */
+#line 12571 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("version"),(yyvsp[0].str));
+}
+#line 54170 "preproc.c"
+ break;
+
+ case 2123: /* xml_root_version: VERSION_P NO VALUE_P */
+#line 12575 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("version no value");
+}
+#line 54178 "preproc.c"
+ break;
+
+ case 2124: /* opt_xml_root_standalone: ',' STANDALONE_P YES_P */
+#line 12583 "preproc.y"
+ {
+ (yyval.str) = mm_strdup(", standalone yes");
+}
+#line 54186 "preproc.c"
+ break;
+
+ case 2125: /* opt_xml_root_standalone: ',' STANDALONE_P NO */
+#line 12587 "preproc.y"
+ {
+ (yyval.str) = mm_strdup(", standalone no");
+}
+#line 54194 "preproc.c"
+ break;
+
+ case 2126: /* opt_xml_root_standalone: ',' STANDALONE_P NO VALUE_P */
+#line 12591 "preproc.y"
+ {
+ (yyval.str) = mm_strdup(", standalone no value");
+}
+#line 54202 "preproc.c"
+ break;
+
+ case 2127: /* opt_xml_root_standalone: %empty */
+#line 12595 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54209 "preproc.c"
+ break;
+
+ case 2128: /* xml_attributes: XMLATTRIBUTES '(' xml_attribute_list ')' */
+#line 12602 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("xmlattributes ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54217 "preproc.c"
+ break;
+
+ case 2129: /* xml_attribute_list: xml_attribute_el */
+#line 12610 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54225 "preproc.c"
+ break;
+
+ case 2130: /* xml_attribute_list: xml_attribute_list ',' xml_attribute_el */
+#line 12614 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 54233 "preproc.c"
+ break;
+
+ case 2131: /* xml_attribute_el: a_expr AS ColLabel */
+#line 12622 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("as"),(yyvsp[0].str));
+}
+#line 54241 "preproc.c"
+ break;
+
+ case 2132: /* xml_attribute_el: a_expr */
+#line 12626 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54249 "preproc.c"
+ break;
+
+ case 2133: /* document_or_content: DOCUMENT_P */
+#line 12634 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("document");
+}
+#line 54257 "preproc.c"
+ break;
+
+ case 2134: /* document_or_content: CONTENT_P */
+#line 12638 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("content");
+}
+#line 54265 "preproc.c"
+ break;
+
+ case 2135: /* xml_whitespace_option: PRESERVE WHITESPACE_P */
+#line 12646 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("preserve whitespace");
+}
+#line 54273 "preproc.c"
+ break;
+
+ case 2136: /* xml_whitespace_option: STRIP_P WHITESPACE_P */
+#line 12650 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("strip whitespace");
+}
+#line 54281 "preproc.c"
+ break;
+
+ case 2137: /* xml_whitespace_option: %empty */
+#line 12654 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54288 "preproc.c"
+ break;
+
+ case 2138: /* xmlexists_argument: PASSING c_expr */
+#line 12661 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("passing"),(yyvsp[0].str));
+}
+#line 54296 "preproc.c"
+ break;
+
+ case 2139: /* xmlexists_argument: PASSING c_expr xml_passing_mech */
+#line 12665 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("passing"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 54304 "preproc.c"
+ break;
+
+ case 2140: /* xmlexists_argument: PASSING xml_passing_mech c_expr */
+#line 12669 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("passing"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 54312 "preproc.c"
+ break;
+
+ case 2141: /* xmlexists_argument: PASSING xml_passing_mech c_expr xml_passing_mech */
+#line 12673 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("passing"),(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 54320 "preproc.c"
+ break;
+
+ case 2142: /* xml_passing_mech: BY REF_P */
+#line 12681 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("by ref");
+}
+#line 54328 "preproc.c"
+ break;
+
+ case 2143: /* xml_passing_mech: BY VALUE_P */
+#line 12685 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("by value");
+}
+#line 54336 "preproc.c"
+ break;
+
+ case 2144: /* within_group_clause: WITHIN GROUP_P '(' sort_clause ')' */
+#line 12693 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("within group ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54344 "preproc.c"
+ break;
+
+ case 2145: /* within_group_clause: %empty */
+#line 12697 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54351 "preproc.c"
+ break;
+
+ case 2146: /* filter_clause: FILTER '(' WHERE a_expr ')' */
+#line 12704 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("filter ( where"),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54359 "preproc.c"
+ break;
+
+ case 2147: /* filter_clause: %empty */
+#line 12708 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54366 "preproc.c"
+ break;
+
+ case 2148: /* window_clause: WINDOW window_definition_list */
+#line 12715 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("window"),(yyvsp[0].str));
+}
+#line 54374 "preproc.c"
+ break;
+
+ case 2149: /* window_clause: %empty */
+#line 12719 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54381 "preproc.c"
+ break;
+
+ case 2150: /* window_definition_list: window_definition */
+#line 12726 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54389 "preproc.c"
+ break;
+
+ case 2151: /* window_definition_list: window_definition_list ',' window_definition */
+#line 12730 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 54397 "preproc.c"
+ break;
+
+ case 2152: /* window_definition: ColId AS window_specification */
+#line 12738 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("as"),(yyvsp[0].str));
+}
+#line 54405 "preproc.c"
+ break;
+
+ case 2153: /* over_clause: OVER window_specification */
+#line 12746 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("over"),(yyvsp[0].str));
+}
+#line 54413 "preproc.c"
+ break;
+
+ case 2154: /* over_clause: OVER ColId */
+#line 12750 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("over"),(yyvsp[0].str));
+}
+#line 54421 "preproc.c"
+ break;
+
+ case 2155: /* over_clause: %empty */
+#line 12754 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54428 "preproc.c"
+ break;
+
+ case 2156: /* window_specification: '(' opt_existing_window_name opt_partition_clause opt_sort_clause opt_frame_clause ')' */
+#line 12761 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,mm_strdup("("),(yyvsp[-4].str),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54436 "preproc.c"
+ break;
+
+ case 2157: /* opt_existing_window_name: ColId */
+#line 12769 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54444 "preproc.c"
+ break;
+
+ case 2158: /* opt_existing_window_name: %empty */
+#line 12773 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54451 "preproc.c"
+ break;
+
+ case 2159: /* opt_partition_clause: PARTITION BY expr_list */
+#line 12780 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("partition by"),(yyvsp[0].str));
+}
+#line 54459 "preproc.c"
+ break;
+
+ case 2160: /* opt_partition_clause: %empty */
+#line 12784 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54466 "preproc.c"
+ break;
+
+ case 2161: /* opt_frame_clause: RANGE frame_extent opt_window_exclusion_clause */
+#line 12791 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("range"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 54474 "preproc.c"
+ break;
+
+ case 2162: /* opt_frame_clause: ROWS frame_extent opt_window_exclusion_clause */
+#line 12795 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("rows"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 54482 "preproc.c"
+ break;
+
+ case 2163: /* opt_frame_clause: GROUPS frame_extent opt_window_exclusion_clause */
+#line 12799 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("groups"),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 54490 "preproc.c"
+ break;
+
+ case 2164: /* opt_frame_clause: %empty */
+#line 12803 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54497 "preproc.c"
+ break;
+
+ case 2165: /* frame_extent: frame_bound */
+#line 12810 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54505 "preproc.c"
+ break;
+
+ case 2166: /* frame_extent: BETWEEN frame_bound AND frame_bound */
+#line 12814 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("between"),(yyvsp[-2].str),mm_strdup("and"),(yyvsp[0].str));
+}
+#line 54513 "preproc.c"
+ break;
+
+ case 2167: /* frame_bound: UNBOUNDED PRECEDING */
+#line 12822 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unbounded preceding");
+}
+#line 54521 "preproc.c"
+ break;
+
+ case 2168: /* frame_bound: UNBOUNDED FOLLOWING */
+#line 12826 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unbounded following");
+}
+#line 54529 "preproc.c"
+ break;
+
+ case 2169: /* frame_bound: CURRENT_P ROW */
+#line 12830 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current row");
+}
+#line 54537 "preproc.c"
+ break;
+
+ case 2170: /* frame_bound: a_expr PRECEDING */
+#line 12834 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("preceding"));
+}
+#line 54545 "preproc.c"
+ break;
+
+ case 2171: /* frame_bound: a_expr FOLLOWING */
+#line 12838 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),mm_strdup("following"));
+}
+#line 54553 "preproc.c"
+ break;
+
+ case 2172: /* opt_window_exclusion_clause: EXCLUDE CURRENT_P ROW */
+#line 12846 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exclude current row");
+}
+#line 54561 "preproc.c"
+ break;
+
+ case 2173: /* opt_window_exclusion_clause: EXCLUDE GROUP_P */
+#line 12850 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exclude group");
+}
+#line 54569 "preproc.c"
+ break;
+
+ case 2174: /* opt_window_exclusion_clause: EXCLUDE TIES */
+#line 12854 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exclude ties");
+}
+#line 54577 "preproc.c"
+ break;
+
+ case 2175: /* opt_window_exclusion_clause: EXCLUDE NO OTHERS */
+#line 12858 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exclude no others");
+}
+#line 54585 "preproc.c"
+ break;
+
+ case 2176: /* opt_window_exclusion_clause: %empty */
+#line 12862 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54592 "preproc.c"
+ break;
+
+ case 2177: /* row: ROW '(' expr_list ')' */
+#line 12869 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("row ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54600 "preproc.c"
+ break;
+
+ case 2178: /* row: ROW '(' ')' */
+#line 12873 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("row ( )");
+}
+#line 54608 "preproc.c"
+ break;
+
+ case 2179: /* row: '(' expr_list ',' a_expr ')' */
+#line 12877 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("("),(yyvsp[-3].str),mm_strdup(","),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54616 "preproc.c"
+ break;
+
+ case 2180: /* explicit_row: ROW '(' expr_list ')' */
+#line 12885 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("row ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54624 "preproc.c"
+ break;
+
+ case 2181: /* explicit_row: ROW '(' ')' */
+#line 12889 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("row ( )");
+}
+#line 54632 "preproc.c"
+ break;
+
+ case 2182: /* implicit_row: '(' expr_list ',' a_expr ')' */
+#line 12897 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("("),(yyvsp[-3].str),mm_strdup(","),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54640 "preproc.c"
+ break;
+
+ case 2183: /* sub_type: ANY */
+#line 12905 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("any");
+}
+#line 54648 "preproc.c"
+ break;
+
+ case 2184: /* sub_type: SOME */
+#line 12909 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("some");
+}
+#line 54656 "preproc.c"
+ break;
+
+ case 2185: /* sub_type: ALL */
+#line 12913 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 54664 "preproc.c"
+ break;
+
+ case 2186: /* all_Op: Op */
+#line 12921 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54672 "preproc.c"
+ break;
+
+ case 2187: /* all_Op: MathOp */
+#line 12925 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54680 "preproc.c"
+ break;
+
+ case 2188: /* MathOp: '+' */
+#line 12933 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("+");
+}
+#line 54688 "preproc.c"
+ break;
+
+ case 2189: /* MathOp: '-' */
+#line 12937 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("-");
+}
+#line 54696 "preproc.c"
+ break;
+
+ case 2190: /* MathOp: '*' */
+#line 12941 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("*");
+}
+#line 54704 "preproc.c"
+ break;
+
+ case 2191: /* MathOp: '/' */
+#line 12945 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("/");
+}
+#line 54712 "preproc.c"
+ break;
+
+ case 2192: /* MathOp: '%' */
+#line 12949 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("%");
+}
+#line 54720 "preproc.c"
+ break;
+
+ case 2193: /* MathOp: '^' */
+#line 12953 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("^");
+}
+#line 54728 "preproc.c"
+ break;
+
+ case 2194: /* MathOp: '<' */
+#line 12957 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("<");
+}
+#line 54736 "preproc.c"
+ break;
+
+ case 2195: /* MathOp: '>' */
+#line 12961 "preproc.y"
+ {
+ (yyval.str) = mm_strdup(">");
+}
+#line 54744 "preproc.c"
+ break;
+
+ case 2196: /* MathOp: '=' */
+#line 12965 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("=");
+}
+#line 54752 "preproc.c"
+ break;
+
+ case 2197: /* MathOp: LESS_EQUALS */
+#line 12969 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("<=");
+}
+#line 54760 "preproc.c"
+ break;
+
+ case 2198: /* MathOp: GREATER_EQUALS */
+#line 12973 "preproc.y"
+ {
+ (yyval.str) = mm_strdup(">=");
+}
+#line 54768 "preproc.c"
+ break;
+
+ case 2199: /* MathOp: NOT_EQUALS */
+#line 12977 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("<>");
+}
+#line 54776 "preproc.c"
+ break;
+
+ case 2200: /* qual_Op: Op */
+#line 12985 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54784 "preproc.c"
+ break;
+
+ case 2201: /* qual_Op: OPERATOR '(' any_operator ')' */
+#line 12989 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("operator ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54792 "preproc.c"
+ break;
+
+ case 2202: /* qual_all_Op: all_Op */
+#line 12997 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54800 "preproc.c"
+ break;
+
+ case 2203: /* qual_all_Op: OPERATOR '(' any_operator ')' */
+#line 13001 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("operator ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54808 "preproc.c"
+ break;
+
+ case 2204: /* subquery_Op: all_Op */
+#line 13009 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54816 "preproc.c"
+ break;
+
+ case 2205: /* subquery_Op: OPERATOR '(' any_operator ')' */
+#line 13013 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("operator ("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 54824 "preproc.c"
+ break;
+
+ case 2206: /* subquery_Op: LIKE */
+#line 13017 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("like");
+}
+#line 54832 "preproc.c"
+ break;
+
+ case 2207: /* subquery_Op: NOT_LA LIKE */
+#line 13021 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not like");
+}
+#line 54840 "preproc.c"
+ break;
+
+ case 2208: /* subquery_Op: ILIKE */
+#line 13025 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("ilike");
+}
+#line 54848 "preproc.c"
+ break;
+
+ case 2209: /* subquery_Op: NOT_LA ILIKE */
+#line 13029 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not ilike");
+}
+#line 54856 "preproc.c"
+ break;
+
+ case 2210: /* expr_list: a_expr */
+#line 13037 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54864 "preproc.c"
+ break;
+
+ case 2211: /* expr_list: expr_list ',' a_expr */
+#line 13041 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 54872 "preproc.c"
+ break;
+
+ case 2212: /* func_arg_list: func_arg_expr */
+#line 13049 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54880 "preproc.c"
+ break;
+
+ case 2213: /* func_arg_list: func_arg_list ',' func_arg_expr */
+#line 13053 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 54888 "preproc.c"
+ break;
+
+ case 2214: /* func_arg_expr: a_expr */
+#line 13061 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54896 "preproc.c"
+ break;
+
+ case 2215: /* func_arg_expr: param_name COLON_EQUALS a_expr */
+#line 13065 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(":="),(yyvsp[0].str));
+}
+#line 54904 "preproc.c"
+ break;
+
+ case 2216: /* func_arg_expr: param_name EQUALS_GREATER a_expr */
+#line 13069 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("=>"),(yyvsp[0].str));
+}
+#line 54912 "preproc.c"
+ break;
+
+ case 2217: /* func_arg_list_opt: func_arg_list */
+#line 13077 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54920 "preproc.c"
+ break;
+
+ case 2218: /* func_arg_list_opt: %empty */
+#line 13081 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 54927 "preproc.c"
+ break;
+
+ case 2219: /* type_list: Typename */
+#line 13088 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54935 "preproc.c"
+ break;
+
+ case 2220: /* type_list: type_list ',' Typename */
+#line 13092 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 54943 "preproc.c"
+ break;
+
+ case 2221: /* array_expr: '[' expr_list ']' */
+#line 13100 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("["),(yyvsp[-1].str),mm_strdup("]"));
+}
+#line 54951 "preproc.c"
+ break;
+
+ case 2222: /* array_expr: '[' array_expr_list ']' */
+#line 13104 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("["),(yyvsp[-1].str),mm_strdup("]"));
+}
+#line 54959 "preproc.c"
+ break;
+
+ case 2223: /* array_expr: '[' ']' */
+#line 13108 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("[ ]");
+}
+#line 54967 "preproc.c"
+ break;
+
+ case 2224: /* array_expr_list: array_expr */
+#line 13116 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54975 "preproc.c"
+ break;
+
+ case 2225: /* array_expr_list: array_expr_list ',' array_expr */
+#line 13120 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 54983 "preproc.c"
+ break;
+
+ case 2226: /* extract_list: extract_arg FROM a_expr */
+#line 13128 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 54991 "preproc.c"
+ break;
+
+ case 2227: /* extract_arg: ecpg_ident */
+#line 13136 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 54999 "preproc.c"
+ break;
+
+ case 2228: /* extract_arg: YEAR_P */
+#line 13140 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("year");
+}
+#line 55007 "preproc.c"
+ break;
+
+ case 2229: /* extract_arg: MONTH_P */
+#line 13144 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("month");
+}
+#line 55015 "preproc.c"
+ break;
+
+ case 2230: /* extract_arg: DAY_P */
+#line 13148 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("day");
+}
+#line 55023 "preproc.c"
+ break;
+
+ case 2231: /* extract_arg: HOUR_P */
+#line 13152 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("hour");
+}
+#line 55031 "preproc.c"
+ break;
+
+ case 2232: /* extract_arg: MINUTE_P */
+#line 13156 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("minute");
+}
+#line 55039 "preproc.c"
+ break;
+
+ case 2233: /* extract_arg: SECOND_P */
+#line 13160 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("second");
+}
+#line 55047 "preproc.c"
+ break;
+
+ case 2234: /* extract_arg: ecpg_sconst */
+#line 13164 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55055 "preproc.c"
+ break;
+
+ case 2235: /* unicode_normal_form: NFC */
+#line 13172 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfc");
+}
+#line 55063 "preproc.c"
+ break;
+
+ case 2236: /* unicode_normal_form: NFD */
+#line 13176 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfd");
+}
+#line 55071 "preproc.c"
+ break;
+
+ case 2237: /* unicode_normal_form: NFKC */
+#line 13180 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfkc");
+}
+#line 55079 "preproc.c"
+ break;
+
+ case 2238: /* unicode_normal_form: NFKD */
+#line 13184 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfkd");
+}
+#line 55087 "preproc.c"
+ break;
+
+ case 2239: /* overlay_list: a_expr PLACING a_expr FROM a_expr FOR a_expr */
+#line 13192 "preproc.y"
+ {
+ (yyval.str) = cat_str(7,(yyvsp[-6].str),mm_strdup("placing"),(yyvsp[-4].str),mm_strdup("from"),(yyvsp[-2].str),mm_strdup("for"),(yyvsp[0].str));
+}
+#line 55095 "preproc.c"
+ break;
+
+ case 2240: /* overlay_list: a_expr PLACING a_expr FROM a_expr */
+#line 13196 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("placing"),(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 55103 "preproc.c"
+ break;
+
+ case 2241: /* position_list: b_expr IN_P b_expr */
+#line 13204 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("in"),(yyvsp[0].str));
+}
+#line 55111 "preproc.c"
+ break;
+
+ case 2242: /* substr_list: a_expr FROM a_expr FOR a_expr */
+#line 13212 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("from"),(yyvsp[-2].str),mm_strdup("for"),(yyvsp[0].str));
+}
+#line 55119 "preproc.c"
+ break;
+
+ case 2243: /* substr_list: a_expr FOR a_expr FROM a_expr */
+#line 13216 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("for"),(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 55127 "preproc.c"
+ break;
+
+ case 2244: /* substr_list: a_expr FROM a_expr */
+#line 13220 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 55135 "preproc.c"
+ break;
+
+ case 2245: /* substr_list: a_expr FOR a_expr */
+#line 13224 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("for"),(yyvsp[0].str));
+}
+#line 55143 "preproc.c"
+ break;
+
+ case 2246: /* substr_list: a_expr SIMILAR a_expr ESCAPE a_expr */
+#line 13228 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("similar"),(yyvsp[-2].str),mm_strdup("escape"),(yyvsp[0].str));
+}
+#line 55151 "preproc.c"
+ break;
+
+ case 2247: /* trim_list: a_expr FROM expr_list */
+#line 13236 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("from"),(yyvsp[0].str));
+}
+#line 55159 "preproc.c"
+ break;
+
+ case 2248: /* trim_list: FROM expr_list */
+#line 13240 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("from"),(yyvsp[0].str));
+}
+#line 55167 "preproc.c"
+ break;
+
+ case 2249: /* trim_list: expr_list */
+#line 13244 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55175 "preproc.c"
+ break;
+
+ case 2250: /* in_expr: select_with_parens */
+#line 13252 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55183 "preproc.c"
+ break;
+
+ case 2251: /* in_expr: '(' expr_list ')' */
+#line 13256 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("("),(yyvsp[-1].str),mm_strdup(")"));
+}
+#line 55191 "preproc.c"
+ break;
+
+ case 2252: /* case_expr: CASE case_arg when_clause_list case_default END_P */
+#line 13264 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("case"),(yyvsp[-3].str),(yyvsp[-2].str),(yyvsp[-1].str),mm_strdup("end"));
+}
+#line 55199 "preproc.c"
+ break;
+
+ case 2253: /* when_clause_list: when_clause */
+#line 13272 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55207 "preproc.c"
+ break;
+
+ case 2254: /* when_clause_list: when_clause_list when_clause */
+#line 13276 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55215 "preproc.c"
+ break;
+
+ case 2255: /* when_clause: WHEN a_expr THEN a_expr */
+#line 13284 "preproc.y"
+ {
+ (yyval.str) = cat_str(4,mm_strdup("when"),(yyvsp[-2].str),mm_strdup("then"),(yyvsp[0].str));
+}
+#line 55223 "preproc.c"
+ break;
+
+ case 2256: /* case_default: ELSE a_expr */
+#line 13292 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("else"),(yyvsp[0].str));
+}
+#line 55231 "preproc.c"
+ break;
+
+ case 2257: /* case_default: %empty */
+#line 13296 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 55238 "preproc.c"
+ break;
+
+ case 2258: /* case_arg: a_expr */
+#line 13303 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55246 "preproc.c"
+ break;
+
+ case 2259: /* case_arg: %empty */
+#line 13307 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 55253 "preproc.c"
+ break;
+
+ case 2260: /* columnref: ColId */
+#line 13314 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55261 "preproc.c"
+ break;
+
+ case 2261: /* columnref: ColId indirection */
+#line 13318 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55269 "preproc.c"
+ break;
+
+ case 2262: /* indirection_el: '.' attr_name */
+#line 13326 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("."),(yyvsp[0].str));
+}
+#line 55277 "preproc.c"
+ break;
+
+ case 2263: /* indirection_el: '.' '*' */
+#line 13330 "preproc.y"
+ {
+ (yyval.str) = mm_strdup(". *");
+}
+#line 55285 "preproc.c"
+ break;
+
+ case 2264: /* indirection_el: '[' a_expr ']' */
+#line 13334 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,mm_strdup("["),(yyvsp[-1].str),mm_strdup("]"));
+}
+#line 55293 "preproc.c"
+ break;
+
+ case 2265: /* indirection_el: '[' opt_slice_bound ':' opt_slice_bound ']' */
+#line 13338 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,mm_strdup("["),(yyvsp[-3].str),mm_strdup(":"),(yyvsp[-1].str),mm_strdup("]"));
+}
+#line 55301 "preproc.c"
+ break;
+
+ case 2266: /* opt_slice_bound: a_expr */
+#line 13346 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55309 "preproc.c"
+ break;
+
+ case 2267: /* opt_slice_bound: %empty */
+#line 13350 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 55316 "preproc.c"
+ break;
+
+ case 2268: /* indirection: indirection_el */
+#line 13357 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55324 "preproc.c"
+ break;
+
+ case 2269: /* indirection: indirection indirection_el */
+#line 13361 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55332 "preproc.c"
+ break;
+
+ case 2270: /* opt_indirection: %empty */
+#line 13369 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 55339 "preproc.c"
+ break;
+
+ case 2271: /* opt_indirection: opt_indirection indirection_el */
+#line 13372 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55347 "preproc.c"
+ break;
+
+ case 2272: /* opt_asymmetric: ASYMMETRIC */
+#line 13380 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("asymmetric");
+}
+#line 55355 "preproc.c"
+ break;
+
+ case 2273: /* opt_asymmetric: %empty */
+#line 13384 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 55362 "preproc.c"
+ break;
+
+ case 2274: /* opt_target_list: target_list */
+#line 13391 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55370 "preproc.c"
+ break;
+
+ case 2275: /* opt_target_list: %empty */
+#line 13395 "preproc.y"
+ {
+ (yyval.str)=EMPTY; }
+#line 55377 "preproc.c"
+ break;
+
+ case 2276: /* target_list: target_el */
+#line 13402 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55385 "preproc.c"
+ break;
+
+ case 2277: /* target_list: target_list ',' target_el */
+#line 13406 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 55393 "preproc.c"
+ break;
+
+ case 2278: /* target_el: a_expr AS ColLabel */
+#line 13414 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup("as"),(yyvsp[0].str));
+}
+#line 55401 "preproc.c"
+ break;
+
+ case 2279: /* target_el: a_expr BareColLabel */
+#line 13418 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55409 "preproc.c"
+ break;
+
+ case 2280: /* target_el: a_expr */
+#line 13422 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55417 "preproc.c"
+ break;
+
+ case 2281: /* target_el: '*' */
+#line 13426 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("*");
+}
+#line 55425 "preproc.c"
+ break;
+
+ case 2282: /* qualified_name_list: qualified_name */
+#line 13434 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55433 "preproc.c"
+ break;
+
+ case 2283: /* qualified_name_list: qualified_name_list ',' qualified_name */
+#line 13438 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 55441 "preproc.c"
+ break;
+
+ case 2284: /* qualified_name: ColId */
+#line 13446 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55449 "preproc.c"
+ break;
+
+ case 2285: /* qualified_name: ColId indirection */
+#line 13450 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55457 "preproc.c"
+ break;
+
+ case 2286: /* name_list: name */
+#line 13458 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55465 "preproc.c"
+ break;
+
+ case 2287: /* name_list: name_list ',' name */
+#line 13462 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 55473 "preproc.c"
+ break;
+
+ case 2288: /* name: ColId */
+#line 13470 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55481 "preproc.c"
+ break;
+
+ case 2289: /* attr_name: ColLabel */
+#line 13478 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55489 "preproc.c"
+ break;
+
+ case 2290: /* file_name: ecpg_sconst */
+#line 13486 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55497 "preproc.c"
+ break;
+
+ case 2291: /* func_name: type_function_name */
+#line 13494 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55505 "preproc.c"
+ break;
+
+ case 2292: /* func_name: ColId indirection */
+#line 13498 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55513 "preproc.c"
+ break;
+
+ case 2293: /* AexprConst: Iconst */
+#line 13506 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55521 "preproc.c"
+ break;
+
+ case 2294: /* AexprConst: ecpg_fconst */
+#line 13510 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55529 "preproc.c"
+ break;
+
+ case 2295: /* AexprConst: ecpg_sconst */
+#line 13514 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55537 "preproc.c"
+ break;
+
+ case 2296: /* AexprConst: ecpg_bconst */
+#line 13518 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55545 "preproc.c"
+ break;
+
+ case 2297: /* AexprConst: ecpg_xconst */
+#line 13522 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55553 "preproc.c"
+ break;
+
+ case 2298: /* AexprConst: func_name ecpg_sconst */
+#line 13526 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55561 "preproc.c"
+ break;
+
+ case 2299: /* AexprConst: func_name '(' func_arg_list opt_sort_clause ')' ecpg_sconst */
+#line 13530 "preproc.y"
+ {
+ (yyval.str) = cat_str(6,(yyvsp[-5].str),mm_strdup("("),(yyvsp[-3].str),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 55569 "preproc.c"
+ break;
+
+ case 2300: /* AexprConst: ConstTypename ecpg_sconst */
+#line 13534 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55577 "preproc.c"
+ break;
+
+ case 2301: /* AexprConst: ConstInterval ecpg_sconst opt_interval */
+#line 13538 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),(yyvsp[-1].str),(yyvsp[0].str));
+}
+#line 55585 "preproc.c"
+ break;
+
+ case 2302: /* AexprConst: ConstInterval '(' Iconst ')' ecpg_sconst */
+#line 13542 "preproc.y"
+ {
+ (yyval.str) = cat_str(5,(yyvsp[-4].str),mm_strdup("("),(yyvsp[-2].str),mm_strdup(")"),(yyvsp[0].str));
+}
+#line 55593 "preproc.c"
+ break;
+
+ case 2303: /* AexprConst: TRUE_P */
+#line 13546 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("true");
+}
+#line 55601 "preproc.c"
+ break;
+
+ case 2304: /* AexprConst: FALSE_P */
+#line 13550 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("false");
+}
+#line 55609 "preproc.c"
+ break;
+
+ case 2305: /* AexprConst: NULL_P */
+#line 13554 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("null");
+}
+#line 55617 "preproc.c"
+ break;
+
+ case 2306: /* AexprConst: civar */
+#line 13557 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 55623 "preproc.c"
+ break;
+
+ case 2307: /* AexprConst: civarind */
+#line 13558 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 55629 "preproc.c"
+ break;
+
+ case 2308: /* Iconst: ICONST */
+#line 13564 "preproc.y"
+ { (yyval.str) = make_name(); }
+#line 55635 "preproc.c"
+ break;
+
+ case 2309: /* SignedIconst: Iconst */
+#line 13570 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55643 "preproc.c"
+ break;
+
+ case 2310: /* SignedIconst: civar */
+#line 13573 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 55649 "preproc.c"
+ break;
+
+ case 2311: /* SignedIconst: '+' Iconst */
+#line 13575 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("+"),(yyvsp[0].str));
+}
+#line 55657 "preproc.c"
+ break;
+
+ case 2312: /* SignedIconst: '-' Iconst */
+#line 13579 "preproc.y"
+ {
+ (yyval.str) = cat_str(2,mm_strdup("-"),(yyvsp[0].str));
+}
+#line 55665 "preproc.c"
+ break;
+
+ case 2313: /* RoleId: RoleSpec */
+#line 13587 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55673 "preproc.c"
+ break;
+
+ case 2314: /* RoleSpec: NonReservedWord */
+#line 13595 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55681 "preproc.c"
+ break;
+
+ case 2315: /* RoleSpec: CURRENT_ROLE */
+#line 13599 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_role");
+}
+#line 55689 "preproc.c"
+ break;
+
+ case 2316: /* RoleSpec: CURRENT_USER */
+#line 13603 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_user");
+}
+#line 55697 "preproc.c"
+ break;
+
+ case 2317: /* RoleSpec: SESSION_USER */
+#line 13607 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("session_user");
+}
+#line 55705 "preproc.c"
+ break;
+
+ case 2318: /* role_list: RoleSpec */
+#line 13615 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55713 "preproc.c"
+ break;
+
+ case 2319: /* role_list: role_list ',' RoleSpec */
+#line 13619 "preproc.y"
+ {
+ (yyval.str) = cat_str(3,(yyvsp[-2].str),mm_strdup(","),(yyvsp[0].str));
+}
+#line 55721 "preproc.c"
+ break;
+
+ case 2320: /* NonReservedWord: ecpg_ident */
+#line 13627 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55729 "preproc.c"
+ break;
+
+ case 2321: /* NonReservedWord: unreserved_keyword */
+#line 13631 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55737 "preproc.c"
+ break;
+
+ case 2322: /* NonReservedWord: col_name_keyword */
+#line 13635 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55745 "preproc.c"
+ break;
+
+ case 2323: /* NonReservedWord: type_func_name_keyword */
+#line 13639 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55753 "preproc.c"
+ break;
+
+ case 2324: /* BareColLabel: ecpg_ident */
+#line 13647 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55761 "preproc.c"
+ break;
+
+ case 2325: /* BareColLabel: bare_label_keyword */
+#line 13651 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+}
+#line 55769 "preproc.c"
+ break;
+
+ case 2326: /* unreserved_keyword: ABORT_P */
+#line 13659 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("abort");
+}
+#line 55777 "preproc.c"
+ break;
+
+ case 2327: /* unreserved_keyword: ABSOLUTE_P */
+#line 13663 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("absolute");
+}
+#line 55785 "preproc.c"
+ break;
+
+ case 2328: /* unreserved_keyword: ACCESS */
+#line 13667 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("access");
+}
+#line 55793 "preproc.c"
+ break;
+
+ case 2329: /* unreserved_keyword: ACTION */
+#line 13671 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("action");
+}
+#line 55801 "preproc.c"
+ break;
+
+ case 2330: /* unreserved_keyword: ADD_P */
+#line 13675 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("add");
+}
+#line 55809 "preproc.c"
+ break;
+
+ case 2331: /* unreserved_keyword: ADMIN */
+#line 13679 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("admin");
+}
+#line 55817 "preproc.c"
+ break;
+
+ case 2332: /* unreserved_keyword: AFTER */
+#line 13683 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("after");
+}
+#line 55825 "preproc.c"
+ break;
+
+ case 2333: /* unreserved_keyword: AGGREGATE */
+#line 13687 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("aggregate");
+}
+#line 55833 "preproc.c"
+ break;
+
+ case 2334: /* unreserved_keyword: ALSO */
+#line 13691 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("also");
+}
+#line 55841 "preproc.c"
+ break;
+
+ case 2335: /* unreserved_keyword: ALTER */
+#line 13695 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("alter");
+}
+#line 55849 "preproc.c"
+ break;
+
+ case 2336: /* unreserved_keyword: ALWAYS */
+#line 13699 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("always");
+}
+#line 55857 "preproc.c"
+ break;
+
+ case 2337: /* unreserved_keyword: ASENSITIVE */
+#line 13703 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("asensitive");
+}
+#line 55865 "preproc.c"
+ break;
+
+ case 2338: /* unreserved_keyword: ASSERTION */
+#line 13707 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("assertion");
+}
+#line 55873 "preproc.c"
+ break;
+
+ case 2339: /* unreserved_keyword: ASSIGNMENT */
+#line 13711 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("assignment");
+}
+#line 55881 "preproc.c"
+ break;
+
+ case 2340: /* unreserved_keyword: AT */
+#line 13715 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("at");
+}
+#line 55889 "preproc.c"
+ break;
+
+ case 2341: /* unreserved_keyword: ATOMIC */
+#line 13719 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("atomic");
+}
+#line 55897 "preproc.c"
+ break;
+
+ case 2342: /* unreserved_keyword: ATTACH */
+#line 13723 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("attach");
+}
+#line 55905 "preproc.c"
+ break;
+
+ case 2343: /* unreserved_keyword: ATTRIBUTE */
+#line 13727 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("attribute");
+}
+#line 55913 "preproc.c"
+ break;
+
+ case 2344: /* unreserved_keyword: BACKWARD */
+#line 13731 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("backward");
+}
+#line 55921 "preproc.c"
+ break;
+
+ case 2345: /* unreserved_keyword: BEFORE */
+#line 13735 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("before");
+}
+#line 55929 "preproc.c"
+ break;
+
+ case 2346: /* unreserved_keyword: BEGIN_P */
+#line 13739 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("begin");
+}
+#line 55937 "preproc.c"
+ break;
+
+ case 2347: /* unreserved_keyword: BREADTH */
+#line 13743 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("breadth");
+}
+#line 55945 "preproc.c"
+ break;
+
+ case 2348: /* unreserved_keyword: BY */
+#line 13747 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("by");
+}
+#line 55953 "preproc.c"
+ break;
+
+ case 2349: /* unreserved_keyword: CACHE */
+#line 13751 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cache");
+}
+#line 55961 "preproc.c"
+ break;
+
+ case 2350: /* unreserved_keyword: CALL */
+#line 13755 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("call");
+}
+#line 55969 "preproc.c"
+ break;
+
+ case 2351: /* unreserved_keyword: CALLED */
+#line 13759 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("called");
+}
+#line 55977 "preproc.c"
+ break;
+
+ case 2352: /* unreserved_keyword: CASCADE */
+#line 13763 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cascade");
+}
+#line 55985 "preproc.c"
+ break;
+
+ case 2353: /* unreserved_keyword: CASCADED */
+#line 13767 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cascaded");
+}
+#line 55993 "preproc.c"
+ break;
+
+ case 2354: /* unreserved_keyword: CATALOG_P */
+#line 13771 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("catalog");
+}
+#line 56001 "preproc.c"
+ break;
+
+ case 2355: /* unreserved_keyword: CHAIN */
+#line 13775 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("chain");
+}
+#line 56009 "preproc.c"
+ break;
+
+ case 2356: /* unreserved_keyword: CHARACTERISTICS */
+#line 13779 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("characteristics");
+}
+#line 56017 "preproc.c"
+ break;
+
+ case 2357: /* unreserved_keyword: CHECKPOINT */
+#line 13783 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("checkpoint");
+}
+#line 56025 "preproc.c"
+ break;
+
+ case 2358: /* unreserved_keyword: CLASS */
+#line 13787 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("class");
+}
+#line 56033 "preproc.c"
+ break;
+
+ case 2359: /* unreserved_keyword: CLOSE */
+#line 13791 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("close");
+}
+#line 56041 "preproc.c"
+ break;
+
+ case 2360: /* unreserved_keyword: CLUSTER */
+#line 13795 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cluster");
+}
+#line 56049 "preproc.c"
+ break;
+
+ case 2361: /* unreserved_keyword: COLUMNS */
+#line 13799 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("columns");
+}
+#line 56057 "preproc.c"
+ break;
+
+ case 2362: /* unreserved_keyword: COMMENT */
+#line 13803 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("comment");
+}
+#line 56065 "preproc.c"
+ break;
+
+ case 2363: /* unreserved_keyword: COMMENTS */
+#line 13807 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("comments");
+}
+#line 56073 "preproc.c"
+ break;
+
+ case 2364: /* unreserved_keyword: COMMIT */
+#line 13811 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("commit");
+}
+#line 56081 "preproc.c"
+ break;
+
+ case 2365: /* unreserved_keyword: COMMITTED */
+#line 13815 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("committed");
+}
+#line 56089 "preproc.c"
+ break;
+
+ case 2366: /* unreserved_keyword: COMPRESSION */
+#line 13819 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("compression");
+}
+#line 56097 "preproc.c"
+ break;
+
+ case 2367: /* unreserved_keyword: CONFIGURATION */
+#line 13823 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("configuration");
+}
+#line 56105 "preproc.c"
+ break;
+
+ case 2368: /* unreserved_keyword: CONFLICT */
+#line 13827 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("conflict");
+}
+#line 56113 "preproc.c"
+ break;
+
+ case 2369: /* unreserved_keyword: CONSTRAINTS */
+#line 13831 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("constraints");
+}
+#line 56121 "preproc.c"
+ break;
+
+ case 2370: /* unreserved_keyword: CONTENT_P */
+#line 13835 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("content");
+}
+#line 56129 "preproc.c"
+ break;
+
+ case 2371: /* unreserved_keyword: CONTINUE_P */
+#line 13839 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("continue");
+}
+#line 56137 "preproc.c"
+ break;
+
+ case 2372: /* unreserved_keyword: CONVERSION_P */
+#line 13843 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("conversion");
+}
+#line 56145 "preproc.c"
+ break;
+
+ case 2373: /* unreserved_keyword: COPY */
+#line 13847 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("copy");
+}
+#line 56153 "preproc.c"
+ break;
+
+ case 2374: /* unreserved_keyword: COST */
+#line 13851 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cost");
+}
+#line 56161 "preproc.c"
+ break;
+
+ case 2375: /* unreserved_keyword: CSV */
+#line 13855 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("csv");
+}
+#line 56169 "preproc.c"
+ break;
+
+ case 2376: /* unreserved_keyword: CUBE */
+#line 13859 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cube");
+}
+#line 56177 "preproc.c"
+ break;
+
+ case 2377: /* unreserved_keyword: CURSOR */
+#line 13863 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cursor");
+}
+#line 56185 "preproc.c"
+ break;
+
+ case 2378: /* unreserved_keyword: CYCLE */
+#line 13867 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cycle");
+}
+#line 56193 "preproc.c"
+ break;
+
+ case 2379: /* unreserved_keyword: DATA_P */
+#line 13871 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("data");
+}
+#line 56201 "preproc.c"
+ break;
+
+ case 2380: /* unreserved_keyword: DATABASE */
+#line 13875 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("database");
+}
+#line 56209 "preproc.c"
+ break;
+
+ case 2381: /* unreserved_keyword: DEALLOCATE */
+#line 13879 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deallocate");
+}
+#line 56217 "preproc.c"
+ break;
+
+ case 2382: /* unreserved_keyword: DECLARE */
+#line 13883 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("declare");
+}
+#line 56225 "preproc.c"
+ break;
+
+ case 2383: /* unreserved_keyword: DEFAULTS */
+#line 13887 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("defaults");
+}
+#line 56233 "preproc.c"
+ break;
+
+ case 2384: /* unreserved_keyword: DEFERRED */
+#line 13891 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deferred");
+}
+#line 56241 "preproc.c"
+ break;
+
+ case 2385: /* unreserved_keyword: DEFINER */
+#line 13895 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("definer");
+}
+#line 56249 "preproc.c"
+ break;
+
+ case 2386: /* unreserved_keyword: DELETE_P */
+#line 13899 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delete");
+}
+#line 56257 "preproc.c"
+ break;
+
+ case 2387: /* unreserved_keyword: DELIMITER */
+#line 13903 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delimiter");
+}
+#line 56265 "preproc.c"
+ break;
+
+ case 2388: /* unreserved_keyword: DELIMITERS */
+#line 13907 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delimiters");
+}
+#line 56273 "preproc.c"
+ break;
+
+ case 2389: /* unreserved_keyword: DEPENDS */
+#line 13911 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("depends");
+}
+#line 56281 "preproc.c"
+ break;
+
+ case 2390: /* unreserved_keyword: DEPTH */
+#line 13915 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("depth");
+}
+#line 56289 "preproc.c"
+ break;
+
+ case 2391: /* unreserved_keyword: DETACH */
+#line 13919 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("detach");
+}
+#line 56297 "preproc.c"
+ break;
+
+ case 2392: /* unreserved_keyword: DICTIONARY */
+#line 13923 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("dictionary");
+}
+#line 56305 "preproc.c"
+ break;
+
+ case 2393: /* unreserved_keyword: DISABLE_P */
+#line 13927 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("disable");
+}
+#line 56313 "preproc.c"
+ break;
+
+ case 2394: /* unreserved_keyword: DISCARD */
+#line 13931 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("discard");
+}
+#line 56321 "preproc.c"
+ break;
+
+ case 2395: /* unreserved_keyword: DOCUMENT_P */
+#line 13935 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("document");
+}
+#line 56329 "preproc.c"
+ break;
+
+ case 2396: /* unreserved_keyword: DOMAIN_P */
+#line 13939 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("domain");
+}
+#line 56337 "preproc.c"
+ break;
+
+ case 2397: /* unreserved_keyword: DOUBLE_P */
+#line 13943 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("double");
+}
+#line 56345 "preproc.c"
+ break;
+
+ case 2398: /* unreserved_keyword: DROP */
+#line 13947 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("drop");
+}
+#line 56353 "preproc.c"
+ break;
+
+ case 2399: /* unreserved_keyword: EACH */
+#line 13951 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("each");
+}
+#line 56361 "preproc.c"
+ break;
+
+ case 2400: /* unreserved_keyword: ENABLE_P */
+#line 13955 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enable");
+}
+#line 56369 "preproc.c"
+ break;
+
+ case 2401: /* unreserved_keyword: ENCODING */
+#line 13959 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("encoding");
+}
+#line 56377 "preproc.c"
+ break;
+
+ case 2402: /* unreserved_keyword: ENCRYPTED */
+#line 13963 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("encrypted");
+}
+#line 56385 "preproc.c"
+ break;
+
+ case 2403: /* unreserved_keyword: ENUM_P */
+#line 13967 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enum");
+}
+#line 56393 "preproc.c"
+ break;
+
+ case 2404: /* unreserved_keyword: ESCAPE */
+#line 13971 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("escape");
+}
+#line 56401 "preproc.c"
+ break;
+
+ case 2405: /* unreserved_keyword: EVENT */
+#line 13975 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("event");
+}
+#line 56409 "preproc.c"
+ break;
+
+ case 2406: /* unreserved_keyword: EXCLUDE */
+#line 13979 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exclude");
+}
+#line 56417 "preproc.c"
+ break;
+
+ case 2407: /* unreserved_keyword: EXCLUDING */
+#line 13983 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("excluding");
+}
+#line 56425 "preproc.c"
+ break;
+
+ case 2408: /* unreserved_keyword: EXCLUSIVE */
+#line 13987 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exclusive");
+}
+#line 56433 "preproc.c"
+ break;
+
+ case 2409: /* unreserved_keyword: EXECUTE */
+#line 13991 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("execute");
+}
+#line 56441 "preproc.c"
+ break;
+
+ case 2410: /* unreserved_keyword: EXPLAIN */
+#line 13995 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("explain");
+}
+#line 56449 "preproc.c"
+ break;
+
+ case 2411: /* unreserved_keyword: EXPRESSION */
+#line 13999 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("expression");
+}
+#line 56457 "preproc.c"
+ break;
+
+ case 2412: /* unreserved_keyword: EXTENSION */
+#line 14003 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("extension");
+}
+#line 56465 "preproc.c"
+ break;
+
+ case 2413: /* unreserved_keyword: EXTERNAL */
+#line 14007 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("external");
+}
+#line 56473 "preproc.c"
+ break;
+
+ case 2414: /* unreserved_keyword: FAMILY */
+#line 14011 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("family");
+}
+#line 56481 "preproc.c"
+ break;
+
+ case 2415: /* unreserved_keyword: FILTER */
+#line 14015 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("filter");
+}
+#line 56489 "preproc.c"
+ break;
+
+ case 2416: /* unreserved_keyword: FINALIZE */
+#line 14019 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("finalize");
+}
+#line 56497 "preproc.c"
+ break;
+
+ case 2417: /* unreserved_keyword: FIRST_P */
+#line 14023 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("first");
+}
+#line 56505 "preproc.c"
+ break;
+
+ case 2418: /* unreserved_keyword: FOLLOWING */
+#line 14027 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("following");
+}
+#line 56513 "preproc.c"
+ break;
+
+ case 2419: /* unreserved_keyword: FORCE */
+#line 14031 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("force");
+}
+#line 56521 "preproc.c"
+ break;
+
+ case 2420: /* unreserved_keyword: FORWARD */
+#line 14035 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("forward");
+}
+#line 56529 "preproc.c"
+ break;
+
+ case 2421: /* unreserved_keyword: FUNCTION */
+#line 14039 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("function");
+}
+#line 56537 "preproc.c"
+ break;
+
+ case 2422: /* unreserved_keyword: FUNCTIONS */
+#line 14043 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("functions");
+}
+#line 56545 "preproc.c"
+ break;
+
+ case 2423: /* unreserved_keyword: GENERATED */
+#line 14047 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("generated");
+}
+#line 56553 "preproc.c"
+ break;
+
+ case 2424: /* unreserved_keyword: GLOBAL */
+#line 14051 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("global");
+}
+#line 56561 "preproc.c"
+ break;
+
+ case 2425: /* unreserved_keyword: GRANTED */
+#line 14055 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("granted");
+}
+#line 56569 "preproc.c"
+ break;
+
+ case 2426: /* unreserved_keyword: GROUPS */
+#line 14059 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("groups");
+}
+#line 56577 "preproc.c"
+ break;
+
+ case 2427: /* unreserved_keyword: HANDLER */
+#line 14063 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("handler");
+}
+#line 56585 "preproc.c"
+ break;
+
+ case 2428: /* unreserved_keyword: HEADER_P */
+#line 14067 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("header");
+}
+#line 56593 "preproc.c"
+ break;
+
+ case 2429: /* unreserved_keyword: HOLD */
+#line 14071 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("hold");
+}
+#line 56601 "preproc.c"
+ break;
+
+ case 2430: /* unreserved_keyword: IDENTITY_P */
+#line 14075 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("identity");
+}
+#line 56609 "preproc.c"
+ break;
+
+ case 2431: /* unreserved_keyword: IF_P */
+#line 14079 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("if");
+}
+#line 56617 "preproc.c"
+ break;
+
+ case 2432: /* unreserved_keyword: IMMEDIATE */
+#line 14083 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("immediate");
+}
+#line 56625 "preproc.c"
+ break;
+
+ case 2433: /* unreserved_keyword: IMMUTABLE */
+#line 14087 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("immutable");
+}
+#line 56633 "preproc.c"
+ break;
+
+ case 2434: /* unreserved_keyword: IMPLICIT_P */
+#line 14091 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("implicit");
+}
+#line 56641 "preproc.c"
+ break;
+
+ case 2435: /* unreserved_keyword: IMPORT_P */
+#line 14095 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("import");
+}
+#line 56649 "preproc.c"
+ break;
+
+ case 2436: /* unreserved_keyword: INCLUDE */
+#line 14099 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("include");
+}
+#line 56657 "preproc.c"
+ break;
+
+ case 2437: /* unreserved_keyword: INCLUDING */
+#line 14103 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("including");
+}
+#line 56665 "preproc.c"
+ break;
+
+ case 2438: /* unreserved_keyword: INCREMENT */
+#line 14107 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("increment");
+}
+#line 56673 "preproc.c"
+ break;
+
+ case 2439: /* unreserved_keyword: INDEX */
+#line 14111 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("index");
+}
+#line 56681 "preproc.c"
+ break;
+
+ case 2440: /* unreserved_keyword: INDEXES */
+#line 14115 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("indexes");
+}
+#line 56689 "preproc.c"
+ break;
+
+ case 2441: /* unreserved_keyword: INHERIT */
+#line 14119 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inherit");
+}
+#line 56697 "preproc.c"
+ break;
+
+ case 2442: /* unreserved_keyword: INHERITS */
+#line 14123 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inherits");
+}
+#line 56705 "preproc.c"
+ break;
+
+ case 2443: /* unreserved_keyword: INLINE_P */
+#line 14127 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inline");
+}
+#line 56713 "preproc.c"
+ break;
+
+ case 2444: /* unreserved_keyword: INSENSITIVE */
+#line 14131 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("insensitive");
+}
+#line 56721 "preproc.c"
+ break;
+
+ case 2445: /* unreserved_keyword: INSERT */
+#line 14135 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("insert");
+}
+#line 56729 "preproc.c"
+ break;
+
+ case 2446: /* unreserved_keyword: INSTEAD */
+#line 14139 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("instead");
+}
+#line 56737 "preproc.c"
+ break;
+
+ case 2447: /* unreserved_keyword: INVOKER */
+#line 14143 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("invoker");
+}
+#line 56745 "preproc.c"
+ break;
+
+ case 2448: /* unreserved_keyword: ISOLATION */
+#line 14147 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("isolation");
+}
+#line 56753 "preproc.c"
+ break;
+
+ case 2449: /* unreserved_keyword: KEY */
+#line 14151 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("key");
+}
+#line 56761 "preproc.c"
+ break;
+
+ case 2450: /* unreserved_keyword: LABEL */
+#line 14155 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("label");
+}
+#line 56769 "preproc.c"
+ break;
+
+ case 2451: /* unreserved_keyword: LANGUAGE */
+#line 14159 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("language");
+}
+#line 56777 "preproc.c"
+ break;
+
+ case 2452: /* unreserved_keyword: LARGE_P */
+#line 14163 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("large");
+}
+#line 56785 "preproc.c"
+ break;
+
+ case 2453: /* unreserved_keyword: LAST_P */
+#line 14167 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("last");
+}
+#line 56793 "preproc.c"
+ break;
+
+ case 2454: /* unreserved_keyword: LEAKPROOF */
+#line 14171 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("leakproof");
+}
+#line 56801 "preproc.c"
+ break;
+
+ case 2455: /* unreserved_keyword: LEVEL */
+#line 14175 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("level");
+}
+#line 56809 "preproc.c"
+ break;
+
+ case 2456: /* unreserved_keyword: LISTEN */
+#line 14179 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("listen");
+}
+#line 56817 "preproc.c"
+ break;
+
+ case 2457: /* unreserved_keyword: LOAD */
+#line 14183 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("load");
+}
+#line 56825 "preproc.c"
+ break;
+
+ case 2458: /* unreserved_keyword: LOCAL */
+#line 14187 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("local");
+}
+#line 56833 "preproc.c"
+ break;
+
+ case 2459: /* unreserved_keyword: LOCATION */
+#line 14191 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("location");
+}
+#line 56841 "preproc.c"
+ break;
+
+ case 2460: /* unreserved_keyword: LOCK_P */
+#line 14195 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("lock");
+}
+#line 56849 "preproc.c"
+ break;
+
+ case 2461: /* unreserved_keyword: LOCKED */
+#line 14199 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("locked");
+}
+#line 56857 "preproc.c"
+ break;
+
+ case 2462: /* unreserved_keyword: LOGGED */
+#line 14203 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("logged");
+}
+#line 56865 "preproc.c"
+ break;
+
+ case 2463: /* unreserved_keyword: MAPPING */
+#line 14207 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("mapping");
+}
+#line 56873 "preproc.c"
+ break;
+
+ case 2464: /* unreserved_keyword: MATCH */
+#line 14211 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("match");
+}
+#line 56881 "preproc.c"
+ break;
+
+ case 2465: /* unreserved_keyword: MATCHED */
+#line 14215 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("matched");
+}
+#line 56889 "preproc.c"
+ break;
+
+ case 2466: /* unreserved_keyword: MATERIALIZED */
+#line 14219 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("materialized");
+}
+#line 56897 "preproc.c"
+ break;
+
+ case 2467: /* unreserved_keyword: MAXVALUE */
+#line 14223 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("maxvalue");
+}
+#line 56905 "preproc.c"
+ break;
+
+ case 2468: /* unreserved_keyword: MERGE */
+#line 14227 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("merge");
+}
+#line 56913 "preproc.c"
+ break;
+
+ case 2469: /* unreserved_keyword: METHOD */
+#line 14231 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("method");
+}
+#line 56921 "preproc.c"
+ break;
+
+ case 2470: /* unreserved_keyword: MINVALUE */
+#line 14235 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("minvalue");
+}
+#line 56929 "preproc.c"
+ break;
+
+ case 2471: /* unreserved_keyword: MODE */
+#line 14239 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("mode");
+}
+#line 56937 "preproc.c"
+ break;
+
+ case 2472: /* unreserved_keyword: MOVE */
+#line 14243 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("move");
+}
+#line 56945 "preproc.c"
+ break;
+
+ case 2473: /* unreserved_keyword: NAME_P */
+#line 14247 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("name");
+}
+#line 56953 "preproc.c"
+ break;
+
+ case 2474: /* unreserved_keyword: NAMES */
+#line 14251 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("names");
+}
+#line 56961 "preproc.c"
+ break;
+
+ case 2475: /* unreserved_keyword: NEW */
+#line 14255 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("new");
+}
+#line 56969 "preproc.c"
+ break;
+
+ case 2476: /* unreserved_keyword: NEXT */
+#line 14259 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("next");
+}
+#line 56977 "preproc.c"
+ break;
+
+ case 2477: /* unreserved_keyword: NFC */
+#line 14263 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfc");
+}
+#line 56985 "preproc.c"
+ break;
+
+ case 2478: /* unreserved_keyword: NFD */
+#line 14267 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfd");
+}
+#line 56993 "preproc.c"
+ break;
+
+ case 2479: /* unreserved_keyword: NFKC */
+#line 14271 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfkc");
+}
+#line 57001 "preproc.c"
+ break;
+
+ case 2480: /* unreserved_keyword: NFKD */
+#line 14275 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfkd");
+}
+#line 57009 "preproc.c"
+ break;
+
+ case 2481: /* unreserved_keyword: NO */
+#line 14279 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no");
+}
+#line 57017 "preproc.c"
+ break;
+
+ case 2482: /* unreserved_keyword: NORMALIZED */
+#line 14283 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("normalized");
+}
+#line 57025 "preproc.c"
+ break;
+
+ case 2483: /* unreserved_keyword: NOTHING */
+#line 14287 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nothing");
+}
+#line 57033 "preproc.c"
+ break;
+
+ case 2484: /* unreserved_keyword: NOTIFY */
+#line 14291 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("notify");
+}
+#line 57041 "preproc.c"
+ break;
+
+ case 2485: /* unreserved_keyword: NOWAIT */
+#line 14295 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nowait");
+}
+#line 57049 "preproc.c"
+ break;
+
+ case 2486: /* unreserved_keyword: NULLS_P */
+#line 14299 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nulls");
+}
+#line 57057 "preproc.c"
+ break;
+
+ case 2487: /* unreserved_keyword: OBJECT_P */
+#line 14303 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("object");
+}
+#line 57065 "preproc.c"
+ break;
+
+ case 2488: /* unreserved_keyword: OF */
+#line 14307 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("of");
+}
+#line 57073 "preproc.c"
+ break;
+
+ case 2489: /* unreserved_keyword: OFF */
+#line 14311 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("off");
+}
+#line 57081 "preproc.c"
+ break;
+
+ case 2490: /* unreserved_keyword: OIDS */
+#line 14315 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("oids");
+}
+#line 57089 "preproc.c"
+ break;
+
+ case 2491: /* unreserved_keyword: OLD */
+#line 14319 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("old");
+}
+#line 57097 "preproc.c"
+ break;
+
+ case 2492: /* unreserved_keyword: OPERATOR */
+#line 14323 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("operator");
+}
+#line 57105 "preproc.c"
+ break;
+
+ case 2493: /* unreserved_keyword: OPTION */
+#line 14327 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("option");
+}
+#line 57113 "preproc.c"
+ break;
+
+ case 2494: /* unreserved_keyword: OPTIONS */
+#line 14331 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("options");
+}
+#line 57121 "preproc.c"
+ break;
+
+ case 2495: /* unreserved_keyword: ORDINALITY */
+#line 14335 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("ordinality");
+}
+#line 57129 "preproc.c"
+ break;
+
+ case 2496: /* unreserved_keyword: OTHERS */
+#line 14339 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("others");
+}
+#line 57137 "preproc.c"
+ break;
+
+ case 2497: /* unreserved_keyword: OVER */
+#line 14343 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("over");
+}
+#line 57145 "preproc.c"
+ break;
+
+ case 2498: /* unreserved_keyword: OVERRIDING */
+#line 14347 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("overriding");
+}
+#line 57153 "preproc.c"
+ break;
+
+ case 2499: /* unreserved_keyword: OWNED */
+#line 14351 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("owned");
+}
+#line 57161 "preproc.c"
+ break;
+
+ case 2500: /* unreserved_keyword: OWNER */
+#line 14355 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("owner");
+}
+#line 57169 "preproc.c"
+ break;
+
+ case 2501: /* unreserved_keyword: PARALLEL */
+#line 14359 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("parallel");
+}
+#line 57177 "preproc.c"
+ break;
+
+ case 2502: /* unreserved_keyword: PARAMETER */
+#line 14363 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("parameter");
+}
+#line 57185 "preproc.c"
+ break;
+
+ case 2503: /* unreserved_keyword: PARSER */
+#line 14367 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("parser");
+}
+#line 57193 "preproc.c"
+ break;
+
+ case 2504: /* unreserved_keyword: PARTIAL */
+#line 14371 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("partial");
+}
+#line 57201 "preproc.c"
+ break;
+
+ case 2505: /* unreserved_keyword: PARTITION */
+#line 14375 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("partition");
+}
+#line 57209 "preproc.c"
+ break;
+
+ case 2506: /* unreserved_keyword: PASSING */
+#line 14379 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("passing");
+}
+#line 57217 "preproc.c"
+ break;
+
+ case 2507: /* unreserved_keyword: PASSWORD */
+#line 14383 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("password");
+}
+#line 57225 "preproc.c"
+ break;
+
+ case 2508: /* unreserved_keyword: PLANS */
+#line 14387 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("plans");
+}
+#line 57233 "preproc.c"
+ break;
+
+ case 2509: /* unreserved_keyword: POLICY */
+#line 14391 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("policy");
+}
+#line 57241 "preproc.c"
+ break;
+
+ case 2510: /* unreserved_keyword: PRECEDING */
+#line 14395 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("preceding");
+}
+#line 57249 "preproc.c"
+ break;
+
+ case 2511: /* unreserved_keyword: PREPARE */
+#line 14399 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("prepare");
+}
+#line 57257 "preproc.c"
+ break;
+
+ case 2512: /* unreserved_keyword: PREPARED */
+#line 14403 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("prepared");
+}
+#line 57265 "preproc.c"
+ break;
+
+ case 2513: /* unreserved_keyword: PRESERVE */
+#line 14407 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("preserve");
+}
+#line 57273 "preproc.c"
+ break;
+
+ case 2514: /* unreserved_keyword: PRIOR */
+#line 14411 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("prior");
+}
+#line 57281 "preproc.c"
+ break;
+
+ case 2515: /* unreserved_keyword: PRIVILEGES */
+#line 14415 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("privileges");
+}
+#line 57289 "preproc.c"
+ break;
+
+ case 2516: /* unreserved_keyword: PROCEDURAL */
+#line 14419 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("procedural");
+}
+#line 57297 "preproc.c"
+ break;
+
+ case 2517: /* unreserved_keyword: PROCEDURE */
+#line 14423 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("procedure");
+}
+#line 57305 "preproc.c"
+ break;
+
+ case 2518: /* unreserved_keyword: PROCEDURES */
+#line 14427 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("procedures");
+}
+#line 57313 "preproc.c"
+ break;
+
+ case 2519: /* unreserved_keyword: PROGRAM */
+#line 14431 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("program");
+}
+#line 57321 "preproc.c"
+ break;
+
+ case 2520: /* unreserved_keyword: PUBLICATION */
+#line 14435 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("publication");
+}
+#line 57329 "preproc.c"
+ break;
+
+ case 2521: /* unreserved_keyword: QUOTE */
+#line 14439 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("quote");
+}
+#line 57337 "preproc.c"
+ break;
+
+ case 2522: /* unreserved_keyword: RANGE */
+#line 14443 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("range");
+}
+#line 57345 "preproc.c"
+ break;
+
+ case 2523: /* unreserved_keyword: READ */
+#line 14447 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("read");
+}
+#line 57353 "preproc.c"
+ break;
+
+ case 2524: /* unreserved_keyword: REASSIGN */
+#line 14451 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("reassign");
+}
+#line 57361 "preproc.c"
+ break;
+
+ case 2525: /* unreserved_keyword: RECHECK */
+#line 14455 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("recheck");
+}
+#line 57369 "preproc.c"
+ break;
+
+ case 2526: /* unreserved_keyword: RECURSIVE */
+#line 14459 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("recursive");
+}
+#line 57377 "preproc.c"
+ break;
+
+ case 2527: /* unreserved_keyword: REF_P */
+#line 14463 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("ref");
+}
+#line 57385 "preproc.c"
+ break;
+
+ case 2528: /* unreserved_keyword: REFERENCING */
+#line 14467 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("referencing");
+}
+#line 57393 "preproc.c"
+ break;
+
+ case 2529: /* unreserved_keyword: REFRESH */
+#line 14471 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("refresh");
+}
+#line 57401 "preproc.c"
+ break;
+
+ case 2530: /* unreserved_keyword: REINDEX */
+#line 14475 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("reindex");
+}
+#line 57409 "preproc.c"
+ break;
+
+ case 2531: /* unreserved_keyword: RELATIVE_P */
+#line 14479 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("relative");
+}
+#line 57417 "preproc.c"
+ break;
+
+ case 2532: /* unreserved_keyword: RELEASE */
+#line 14483 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("release");
+}
+#line 57425 "preproc.c"
+ break;
+
+ case 2533: /* unreserved_keyword: RENAME */
+#line 14487 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rename");
+}
+#line 57433 "preproc.c"
+ break;
+
+ case 2534: /* unreserved_keyword: REPEATABLE */
+#line 14491 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("repeatable");
+}
+#line 57441 "preproc.c"
+ break;
+
+ case 2535: /* unreserved_keyword: REPLACE */
+#line 14495 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("replace");
+}
+#line 57449 "preproc.c"
+ break;
+
+ case 2536: /* unreserved_keyword: REPLICA */
+#line 14499 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("replica");
+}
+#line 57457 "preproc.c"
+ break;
+
+ case 2537: /* unreserved_keyword: RESET */
+#line 14503 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("reset");
+}
+#line 57465 "preproc.c"
+ break;
+
+ case 2538: /* unreserved_keyword: RESTART */
+#line 14507 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restart");
+}
+#line 57473 "preproc.c"
+ break;
+
+ case 2539: /* unreserved_keyword: RESTRICT */
+#line 14511 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restrict");
+}
+#line 57481 "preproc.c"
+ break;
+
+ case 2540: /* unreserved_keyword: RETURN */
+#line 14515 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("return");
+}
+#line 57489 "preproc.c"
+ break;
+
+ case 2541: /* unreserved_keyword: RETURNS */
+#line 14519 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("returns");
+}
+#line 57497 "preproc.c"
+ break;
+
+ case 2542: /* unreserved_keyword: REVOKE */
+#line 14523 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("revoke");
+}
+#line 57505 "preproc.c"
+ break;
+
+ case 2543: /* unreserved_keyword: ROLE */
+#line 14527 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("role");
+}
+#line 57513 "preproc.c"
+ break;
+
+ case 2544: /* unreserved_keyword: ROLLBACK */
+#line 14531 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rollback");
+}
+#line 57521 "preproc.c"
+ break;
+
+ case 2545: /* unreserved_keyword: ROLLUP */
+#line 14535 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rollup");
+}
+#line 57529 "preproc.c"
+ break;
+
+ case 2546: /* unreserved_keyword: ROUTINE */
+#line 14539 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("routine");
+}
+#line 57537 "preproc.c"
+ break;
+
+ case 2547: /* unreserved_keyword: ROUTINES */
+#line 14543 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("routines");
+}
+#line 57545 "preproc.c"
+ break;
+
+ case 2548: /* unreserved_keyword: ROWS */
+#line 14547 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rows");
+}
+#line 57553 "preproc.c"
+ break;
+
+ case 2549: /* unreserved_keyword: RULE */
+#line 14551 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rule");
+}
+#line 57561 "preproc.c"
+ break;
+
+ case 2550: /* unreserved_keyword: SAVEPOINT */
+#line 14555 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("savepoint");
+}
+#line 57569 "preproc.c"
+ break;
+
+ case 2551: /* unreserved_keyword: SCHEMA */
+#line 14559 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("schema");
+}
+#line 57577 "preproc.c"
+ break;
+
+ case 2552: /* unreserved_keyword: SCHEMAS */
+#line 14563 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("schemas");
+}
+#line 57585 "preproc.c"
+ break;
+
+ case 2553: /* unreserved_keyword: SCROLL */
+#line 14567 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("scroll");
+}
+#line 57593 "preproc.c"
+ break;
+
+ case 2554: /* unreserved_keyword: SEARCH */
+#line 14571 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("search");
+}
+#line 57601 "preproc.c"
+ break;
+
+ case 2555: /* unreserved_keyword: SECURITY */
+#line 14575 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("security");
+}
+#line 57609 "preproc.c"
+ break;
+
+ case 2556: /* unreserved_keyword: SEQUENCE */
+#line 14579 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sequence");
+}
+#line 57617 "preproc.c"
+ break;
+
+ case 2557: /* unreserved_keyword: SEQUENCES */
+#line 14583 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sequences");
+}
+#line 57625 "preproc.c"
+ break;
+
+ case 2558: /* unreserved_keyword: SERIALIZABLE */
+#line 14587 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("serializable");
+}
+#line 57633 "preproc.c"
+ break;
+
+ case 2559: /* unreserved_keyword: SERVER */
+#line 14591 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("server");
+}
+#line 57641 "preproc.c"
+ break;
+
+ case 2560: /* unreserved_keyword: SESSION */
+#line 14595 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("session");
+}
+#line 57649 "preproc.c"
+ break;
+
+ case 2561: /* unreserved_keyword: SET */
+#line 14599 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("set");
+}
+#line 57657 "preproc.c"
+ break;
+
+ case 2562: /* unreserved_keyword: SETS */
+#line 14603 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sets");
+}
+#line 57665 "preproc.c"
+ break;
+
+ case 2563: /* unreserved_keyword: SHARE */
+#line 14607 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("share");
+}
+#line 57673 "preproc.c"
+ break;
+
+ case 2564: /* unreserved_keyword: SHOW */
+#line 14611 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("show");
+}
+#line 57681 "preproc.c"
+ break;
+
+ case 2565: /* unreserved_keyword: SIMPLE */
+#line 14615 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("simple");
+}
+#line 57689 "preproc.c"
+ break;
+
+ case 2566: /* unreserved_keyword: SKIP */
+#line 14619 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("skip");
+}
+#line 57697 "preproc.c"
+ break;
+
+ case 2567: /* unreserved_keyword: SNAPSHOT */
+#line 14623 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("snapshot");
+}
+#line 57705 "preproc.c"
+ break;
+
+ case 2568: /* unreserved_keyword: SQL_P */
+#line 14627 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sql");
+}
+#line 57713 "preproc.c"
+ break;
+
+ case 2569: /* unreserved_keyword: STABLE */
+#line 14631 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stable");
+}
+#line 57721 "preproc.c"
+ break;
+
+ case 2570: /* unreserved_keyword: STANDALONE_P */
+#line 14635 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("standalone");
+}
+#line 57729 "preproc.c"
+ break;
+
+ case 2571: /* unreserved_keyword: START */
+#line 14639 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("start");
+}
+#line 57737 "preproc.c"
+ break;
+
+ case 2572: /* unreserved_keyword: STATEMENT */
+#line 14643 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("statement");
+}
+#line 57745 "preproc.c"
+ break;
+
+ case 2573: /* unreserved_keyword: STATISTICS */
+#line 14647 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("statistics");
+}
+#line 57753 "preproc.c"
+ break;
+
+ case 2574: /* unreserved_keyword: STDIN */
+#line 14651 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stdin");
+}
+#line 57761 "preproc.c"
+ break;
+
+ case 2575: /* unreserved_keyword: STDOUT */
+#line 14655 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stdout");
+}
+#line 57769 "preproc.c"
+ break;
+
+ case 2576: /* unreserved_keyword: STORAGE */
+#line 14659 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("storage");
+}
+#line 57777 "preproc.c"
+ break;
+
+ case 2577: /* unreserved_keyword: STORED */
+#line 14663 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stored");
+}
+#line 57785 "preproc.c"
+ break;
+
+ case 2578: /* unreserved_keyword: STRICT_P */
+#line 14667 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("strict");
+}
+#line 57793 "preproc.c"
+ break;
+
+ case 2579: /* unreserved_keyword: STRIP_P */
+#line 14671 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("strip");
+}
+#line 57801 "preproc.c"
+ break;
+
+ case 2580: /* unreserved_keyword: SUBSCRIPTION */
+#line 14675 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("subscription");
+}
+#line 57809 "preproc.c"
+ break;
+
+ case 2581: /* unreserved_keyword: SUPPORT */
+#line 14679 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("support");
+}
+#line 57817 "preproc.c"
+ break;
+
+ case 2582: /* unreserved_keyword: SYSID */
+#line 14683 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sysid");
+}
+#line 57825 "preproc.c"
+ break;
+
+ case 2583: /* unreserved_keyword: SYSTEM_P */
+#line 14687 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("system");
+}
+#line 57833 "preproc.c"
+ break;
+
+ case 2584: /* unreserved_keyword: TABLES */
+#line 14691 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tables");
+}
+#line 57841 "preproc.c"
+ break;
+
+ case 2585: /* unreserved_keyword: TABLESPACE */
+#line 14695 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tablespace");
+}
+#line 57849 "preproc.c"
+ break;
+
+ case 2586: /* unreserved_keyword: TEMP */
+#line 14699 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("temp");
+}
+#line 57857 "preproc.c"
+ break;
+
+ case 2587: /* unreserved_keyword: TEMPLATE */
+#line 14703 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("template");
+}
+#line 57865 "preproc.c"
+ break;
+
+ case 2588: /* unreserved_keyword: TEMPORARY */
+#line 14707 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("temporary");
+}
+#line 57873 "preproc.c"
+ break;
+
+ case 2589: /* unreserved_keyword: TEXT_P */
+#line 14711 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("text");
+}
+#line 57881 "preproc.c"
+ break;
+
+ case 2590: /* unreserved_keyword: TIES */
+#line 14715 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("ties");
+}
+#line 57889 "preproc.c"
+ break;
+
+ case 2591: /* unreserved_keyword: TRANSACTION */
+#line 14719 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("transaction");
+}
+#line 57897 "preproc.c"
+ break;
+
+ case 2592: /* unreserved_keyword: TRANSFORM */
+#line 14723 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("transform");
+}
+#line 57905 "preproc.c"
+ break;
+
+ case 2593: /* unreserved_keyword: TRIGGER */
+#line 14727 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trigger");
+}
+#line 57913 "preproc.c"
+ break;
+
+ case 2594: /* unreserved_keyword: TRUNCATE */
+#line 14731 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("truncate");
+}
+#line 57921 "preproc.c"
+ break;
+
+ case 2595: /* unreserved_keyword: TRUSTED */
+#line 14735 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trusted");
+}
+#line 57929 "preproc.c"
+ break;
+
+ case 2596: /* unreserved_keyword: TYPE_P */
+#line 14739 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("type");
+}
+#line 57937 "preproc.c"
+ break;
+
+ case 2597: /* unreserved_keyword: TYPES_P */
+#line 14743 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("types");
+}
+#line 57945 "preproc.c"
+ break;
+
+ case 2598: /* unreserved_keyword: UESCAPE */
+#line 14747 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("uescape");
+}
+#line 57953 "preproc.c"
+ break;
+
+ case 2599: /* unreserved_keyword: UNBOUNDED */
+#line 14751 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unbounded");
+}
+#line 57961 "preproc.c"
+ break;
+
+ case 2600: /* unreserved_keyword: UNCOMMITTED */
+#line 14755 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("uncommitted");
+}
+#line 57969 "preproc.c"
+ break;
+
+ case 2601: /* unreserved_keyword: UNENCRYPTED */
+#line 14759 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unencrypted");
+}
+#line 57977 "preproc.c"
+ break;
+
+ case 2602: /* unreserved_keyword: UNKNOWN */
+#line 14763 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unknown");
+}
+#line 57985 "preproc.c"
+ break;
+
+ case 2603: /* unreserved_keyword: UNLISTEN */
+#line 14767 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unlisten");
+}
+#line 57993 "preproc.c"
+ break;
+
+ case 2604: /* unreserved_keyword: UNLOGGED */
+#line 14771 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unlogged");
+}
+#line 58001 "preproc.c"
+ break;
+
+ case 2605: /* unreserved_keyword: UNTIL */
+#line 14775 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("until");
+}
+#line 58009 "preproc.c"
+ break;
+
+ case 2606: /* unreserved_keyword: UPDATE */
+#line 14779 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("update");
+}
+#line 58017 "preproc.c"
+ break;
+
+ case 2607: /* unreserved_keyword: VACUUM */
+#line 14783 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("vacuum");
+}
+#line 58025 "preproc.c"
+ break;
+
+ case 2608: /* unreserved_keyword: VALID */
+#line 14787 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("valid");
+}
+#line 58033 "preproc.c"
+ break;
+
+ case 2609: /* unreserved_keyword: VALIDATE */
+#line 14791 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("validate");
+}
+#line 58041 "preproc.c"
+ break;
+
+ case 2610: /* unreserved_keyword: VALIDATOR */
+#line 14795 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("validator");
+}
+#line 58049 "preproc.c"
+ break;
+
+ case 2611: /* unreserved_keyword: VALUE_P */
+#line 14799 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("value");
+}
+#line 58057 "preproc.c"
+ break;
+
+ case 2612: /* unreserved_keyword: VARYING */
+#line 14803 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("varying");
+}
+#line 58065 "preproc.c"
+ break;
+
+ case 2613: /* unreserved_keyword: VERSION_P */
+#line 14807 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("version");
+}
+#line 58073 "preproc.c"
+ break;
+
+ case 2614: /* unreserved_keyword: VIEW */
+#line 14811 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("view");
+}
+#line 58081 "preproc.c"
+ break;
+
+ case 2615: /* unreserved_keyword: VIEWS */
+#line 14815 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("views");
+}
+#line 58089 "preproc.c"
+ break;
+
+ case 2616: /* unreserved_keyword: VOLATILE */
+#line 14819 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("volatile");
+}
+#line 58097 "preproc.c"
+ break;
+
+ case 2617: /* unreserved_keyword: WHITESPACE_P */
+#line 14823 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("whitespace");
+}
+#line 58105 "preproc.c"
+ break;
+
+ case 2618: /* unreserved_keyword: WITHIN */
+#line 14827 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("within");
+}
+#line 58113 "preproc.c"
+ break;
+
+ case 2619: /* unreserved_keyword: WITHOUT */
+#line 14831 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("without");
+}
+#line 58121 "preproc.c"
+ break;
+
+ case 2620: /* unreserved_keyword: WORK */
+#line 14835 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("work");
+}
+#line 58129 "preproc.c"
+ break;
+
+ case 2621: /* unreserved_keyword: WRAPPER */
+#line 14839 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("wrapper");
+}
+#line 58137 "preproc.c"
+ break;
+
+ case 2622: /* unreserved_keyword: WRITE */
+#line 14843 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("write");
+}
+#line 58145 "preproc.c"
+ break;
+
+ case 2623: /* unreserved_keyword: XML_P */
+#line 14847 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xml");
+}
+#line 58153 "preproc.c"
+ break;
+
+ case 2624: /* unreserved_keyword: YES_P */
+#line 14851 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("yes");
+}
+#line 58161 "preproc.c"
+ break;
+
+ case 2625: /* unreserved_keyword: ZONE */
+#line 14855 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("zone");
+}
+#line 58169 "preproc.c"
+ break;
+
+ case 2626: /* col_name_keyword: BETWEEN */
+#line 14863 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("between");
+}
+#line 58177 "preproc.c"
+ break;
+
+ case 2627: /* col_name_keyword: BIGINT */
+#line 14867 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("bigint");
+}
+#line 58185 "preproc.c"
+ break;
+
+ case 2628: /* col_name_keyword: BIT */
+#line 14871 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("bit");
+}
+#line 58193 "preproc.c"
+ break;
+
+ case 2629: /* col_name_keyword: BOOLEAN_P */
+#line 14875 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("boolean");
+}
+#line 58201 "preproc.c"
+ break;
+
+ case 2630: /* col_name_keyword: CHARACTER */
+#line 14879 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("character");
+}
+#line 58209 "preproc.c"
+ break;
+
+ case 2631: /* col_name_keyword: COALESCE */
+#line 14883 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("coalesce");
+}
+#line 58217 "preproc.c"
+ break;
+
+ case 2632: /* col_name_keyword: DEC */
+#line 14887 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("dec");
+}
+#line 58225 "preproc.c"
+ break;
+
+ case 2633: /* col_name_keyword: DECIMAL_P */
+#line 14891 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("decimal");
+}
+#line 58233 "preproc.c"
+ break;
+
+ case 2634: /* col_name_keyword: EXISTS */
+#line 14895 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exists");
+}
+#line 58241 "preproc.c"
+ break;
+
+ case 2635: /* col_name_keyword: EXTRACT */
+#line 14899 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("extract");
+}
+#line 58249 "preproc.c"
+ break;
+
+ case 2636: /* col_name_keyword: FLOAT_P */
+#line 14903 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("float");
+}
+#line 58257 "preproc.c"
+ break;
+
+ case 2637: /* col_name_keyword: GREATEST */
+#line 14907 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("greatest");
+}
+#line 58265 "preproc.c"
+ break;
+
+ case 2638: /* col_name_keyword: GROUPING */
+#line 14911 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("grouping");
+}
+#line 58273 "preproc.c"
+ break;
+
+ case 2639: /* col_name_keyword: INOUT */
+#line 14915 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inout");
+}
+#line 58281 "preproc.c"
+ break;
+
+ case 2640: /* col_name_keyword: INTEGER */
+#line 14919 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("integer");
+}
+#line 58289 "preproc.c"
+ break;
+
+ case 2641: /* col_name_keyword: INTERVAL */
+#line 14923 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("interval");
+}
+#line 58297 "preproc.c"
+ break;
+
+ case 2642: /* col_name_keyword: LEAST */
+#line 14927 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("least");
+}
+#line 58305 "preproc.c"
+ break;
+
+ case 2643: /* col_name_keyword: NATIONAL */
+#line 14931 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("national");
+}
+#line 58313 "preproc.c"
+ break;
+
+ case 2644: /* col_name_keyword: NCHAR */
+#line 14935 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nchar");
+}
+#line 58321 "preproc.c"
+ break;
+
+ case 2645: /* col_name_keyword: NONE */
+#line 14939 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("none");
+}
+#line 58329 "preproc.c"
+ break;
+
+ case 2646: /* col_name_keyword: NORMALIZE */
+#line 14943 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("normalize");
+}
+#line 58337 "preproc.c"
+ break;
+
+ case 2647: /* col_name_keyword: NULLIF */
+#line 14947 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nullif");
+}
+#line 58345 "preproc.c"
+ break;
+
+ case 2648: /* col_name_keyword: NUMERIC */
+#line 14951 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("numeric");
+}
+#line 58353 "preproc.c"
+ break;
+
+ case 2649: /* col_name_keyword: OUT_P */
+#line 14955 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("out");
+}
+#line 58361 "preproc.c"
+ break;
+
+ case 2650: /* col_name_keyword: OVERLAY */
+#line 14959 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("overlay");
+}
+#line 58369 "preproc.c"
+ break;
+
+ case 2651: /* col_name_keyword: POSITION */
+#line 14963 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("position");
+}
+#line 58377 "preproc.c"
+ break;
+
+ case 2652: /* col_name_keyword: PRECISION */
+#line 14967 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("precision");
+}
+#line 58385 "preproc.c"
+ break;
+
+ case 2653: /* col_name_keyword: REAL */
+#line 14971 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("real");
+}
+#line 58393 "preproc.c"
+ break;
+
+ case 2654: /* col_name_keyword: ROW */
+#line 14975 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("row");
+}
+#line 58401 "preproc.c"
+ break;
+
+ case 2655: /* col_name_keyword: SETOF */
+#line 14979 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("setof");
+}
+#line 58409 "preproc.c"
+ break;
+
+ case 2656: /* col_name_keyword: SMALLINT */
+#line 14983 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("smallint");
+}
+#line 58417 "preproc.c"
+ break;
+
+ case 2657: /* col_name_keyword: SUBSTRING */
+#line 14987 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("substring");
+}
+#line 58425 "preproc.c"
+ break;
+
+ case 2658: /* col_name_keyword: TIME */
+#line 14991 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("time");
+}
+#line 58433 "preproc.c"
+ break;
+
+ case 2659: /* col_name_keyword: TIMESTAMP */
+#line 14995 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("timestamp");
+}
+#line 58441 "preproc.c"
+ break;
+
+ case 2660: /* col_name_keyword: TREAT */
+#line 14999 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("treat");
+}
+#line 58449 "preproc.c"
+ break;
+
+ case 2661: /* col_name_keyword: TRIM */
+#line 15003 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trim");
+}
+#line 58457 "preproc.c"
+ break;
+
+ case 2662: /* col_name_keyword: VARCHAR */
+#line 15007 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("varchar");
+}
+#line 58465 "preproc.c"
+ break;
+
+ case 2663: /* col_name_keyword: XMLATTRIBUTES */
+#line 15011 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlattributes");
+}
+#line 58473 "preproc.c"
+ break;
+
+ case 2664: /* col_name_keyword: XMLCONCAT */
+#line 15015 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlconcat");
+}
+#line 58481 "preproc.c"
+ break;
+
+ case 2665: /* col_name_keyword: XMLELEMENT */
+#line 15019 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlelement");
+}
+#line 58489 "preproc.c"
+ break;
+
+ case 2666: /* col_name_keyword: XMLEXISTS */
+#line 15023 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlexists");
+}
+#line 58497 "preproc.c"
+ break;
+
+ case 2667: /* col_name_keyword: XMLFOREST */
+#line 15027 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlforest");
+}
+#line 58505 "preproc.c"
+ break;
+
+ case 2668: /* col_name_keyword: XMLNAMESPACES */
+#line 15031 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlnamespaces");
+}
+#line 58513 "preproc.c"
+ break;
+
+ case 2669: /* col_name_keyword: XMLPARSE */
+#line 15035 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlparse");
+}
+#line 58521 "preproc.c"
+ break;
+
+ case 2670: /* col_name_keyword: XMLPI */
+#line 15039 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlpi");
+}
+#line 58529 "preproc.c"
+ break;
+
+ case 2671: /* col_name_keyword: XMLROOT */
+#line 15043 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlroot");
+}
+#line 58537 "preproc.c"
+ break;
+
+ case 2672: /* col_name_keyword: XMLSERIALIZE */
+#line 15047 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlserialize");
+}
+#line 58545 "preproc.c"
+ break;
+
+ case 2673: /* col_name_keyword: XMLTABLE */
+#line 15051 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmltable");
+}
+#line 58553 "preproc.c"
+ break;
+
+ case 2674: /* type_func_name_keyword: AUTHORIZATION */
+#line 15059 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("authorization");
+}
+#line 58561 "preproc.c"
+ break;
+
+ case 2675: /* type_func_name_keyword: BINARY */
+#line 15063 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("binary");
+}
+#line 58569 "preproc.c"
+ break;
+
+ case 2676: /* type_func_name_keyword: COLLATION */
+#line 15067 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("collation");
+}
+#line 58577 "preproc.c"
+ break;
+
+ case 2677: /* type_func_name_keyword: CONCURRENTLY */
+#line 15071 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("concurrently");
+}
+#line 58585 "preproc.c"
+ break;
+
+ case 2678: /* type_func_name_keyword: CROSS */
+#line 15075 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cross");
+}
+#line 58593 "preproc.c"
+ break;
+
+ case 2679: /* type_func_name_keyword: CURRENT_SCHEMA */
+#line 15079 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_schema");
+}
+#line 58601 "preproc.c"
+ break;
+
+ case 2680: /* type_func_name_keyword: FREEZE */
+#line 15083 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("freeze");
+}
+#line 58609 "preproc.c"
+ break;
+
+ case 2681: /* type_func_name_keyword: FULL */
+#line 15087 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("full");
+}
+#line 58617 "preproc.c"
+ break;
+
+ case 2682: /* type_func_name_keyword: ILIKE */
+#line 15091 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("ilike");
+}
+#line 58625 "preproc.c"
+ break;
+
+ case 2683: /* type_func_name_keyword: INNER_P */
+#line 15095 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inner");
+}
+#line 58633 "preproc.c"
+ break;
+
+ case 2684: /* type_func_name_keyword: IS */
+#line 15099 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("is");
+}
+#line 58641 "preproc.c"
+ break;
+
+ case 2685: /* type_func_name_keyword: ISNULL */
+#line 15103 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("isnull");
+}
+#line 58649 "preproc.c"
+ break;
+
+ case 2686: /* type_func_name_keyword: JOIN */
+#line 15107 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("join");
+}
+#line 58657 "preproc.c"
+ break;
+
+ case 2687: /* type_func_name_keyword: LEFT */
+#line 15111 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("left");
+}
+#line 58665 "preproc.c"
+ break;
+
+ case 2688: /* type_func_name_keyword: LIKE */
+#line 15115 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("like");
+}
+#line 58673 "preproc.c"
+ break;
+
+ case 2689: /* type_func_name_keyword: NATURAL */
+#line 15119 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("natural");
+}
+#line 58681 "preproc.c"
+ break;
+
+ case 2690: /* type_func_name_keyword: NOTNULL */
+#line 15123 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("notnull");
+}
+#line 58689 "preproc.c"
+ break;
+
+ case 2691: /* type_func_name_keyword: OUTER_P */
+#line 15127 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("outer");
+}
+#line 58697 "preproc.c"
+ break;
+
+ case 2692: /* type_func_name_keyword: OVERLAPS */
+#line 15131 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("overlaps");
+}
+#line 58705 "preproc.c"
+ break;
+
+ case 2693: /* type_func_name_keyword: RIGHT */
+#line 15135 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("right");
+}
+#line 58713 "preproc.c"
+ break;
+
+ case 2694: /* type_func_name_keyword: SIMILAR */
+#line 15139 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("similar");
+}
+#line 58721 "preproc.c"
+ break;
+
+ case 2695: /* type_func_name_keyword: TABLESAMPLE */
+#line 15143 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tablesample");
+}
+#line 58729 "preproc.c"
+ break;
+
+ case 2696: /* type_func_name_keyword: VERBOSE */
+#line 15147 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("verbose");
+}
+#line 58737 "preproc.c"
+ break;
+
+ case 2697: /* reserved_keyword: ALL */
+#line 15155 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 58745 "preproc.c"
+ break;
+
+ case 2698: /* reserved_keyword: ANALYSE */
+#line 15159 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("analyse");
+}
+#line 58753 "preproc.c"
+ break;
+
+ case 2699: /* reserved_keyword: ANALYZE */
+#line 15163 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("analyze");
+}
+#line 58761 "preproc.c"
+ break;
+
+ case 2700: /* reserved_keyword: AND */
+#line 15167 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("and");
+}
+#line 58769 "preproc.c"
+ break;
+
+ case 2701: /* reserved_keyword: ANY */
+#line 15171 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("any");
+}
+#line 58777 "preproc.c"
+ break;
+
+ case 2702: /* reserved_keyword: ARRAY */
+#line 15175 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("array");
+}
+#line 58785 "preproc.c"
+ break;
+
+ case 2703: /* reserved_keyword: AS */
+#line 15179 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("as");
+}
+#line 58793 "preproc.c"
+ break;
+
+ case 2704: /* reserved_keyword: ASC */
+#line 15183 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("asc");
+}
+#line 58801 "preproc.c"
+ break;
+
+ case 2705: /* reserved_keyword: ASYMMETRIC */
+#line 15187 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("asymmetric");
+}
+#line 58809 "preproc.c"
+ break;
+
+ case 2706: /* reserved_keyword: BOTH */
+#line 15191 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("both");
+}
+#line 58817 "preproc.c"
+ break;
+
+ case 2707: /* reserved_keyword: CASE */
+#line 15195 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("case");
+}
+#line 58825 "preproc.c"
+ break;
+
+ case 2708: /* reserved_keyword: CAST */
+#line 15199 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cast");
+}
+#line 58833 "preproc.c"
+ break;
+
+ case 2709: /* reserved_keyword: CHECK */
+#line 15203 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("check");
+}
+#line 58841 "preproc.c"
+ break;
+
+ case 2710: /* reserved_keyword: COLLATE */
+#line 15207 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("collate");
+}
+#line 58849 "preproc.c"
+ break;
+
+ case 2711: /* reserved_keyword: COLUMN */
+#line 15211 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("column");
+}
+#line 58857 "preproc.c"
+ break;
+
+ case 2712: /* reserved_keyword: CONSTRAINT */
+#line 15215 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("constraint");
+}
+#line 58865 "preproc.c"
+ break;
+
+ case 2713: /* reserved_keyword: CREATE */
+#line 15219 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("create");
+}
+#line 58873 "preproc.c"
+ break;
+
+ case 2714: /* reserved_keyword: CURRENT_CATALOG */
+#line 15223 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_catalog");
+}
+#line 58881 "preproc.c"
+ break;
+
+ case 2715: /* reserved_keyword: CURRENT_DATE */
+#line 15227 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_date");
+}
+#line 58889 "preproc.c"
+ break;
+
+ case 2716: /* reserved_keyword: CURRENT_ROLE */
+#line 15231 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_role");
+}
+#line 58897 "preproc.c"
+ break;
+
+ case 2717: /* reserved_keyword: CURRENT_TIME */
+#line 15235 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_time");
+}
+#line 58905 "preproc.c"
+ break;
+
+ case 2718: /* reserved_keyword: CURRENT_TIMESTAMP */
+#line 15239 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_timestamp");
+}
+#line 58913 "preproc.c"
+ break;
+
+ case 2719: /* reserved_keyword: CURRENT_USER */
+#line 15243 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_user");
+}
+#line 58921 "preproc.c"
+ break;
+
+ case 2720: /* reserved_keyword: DEFAULT */
+#line 15247 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("default");
+}
+#line 58929 "preproc.c"
+ break;
+
+ case 2721: /* reserved_keyword: DEFERRABLE */
+#line 15251 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deferrable");
+}
+#line 58937 "preproc.c"
+ break;
+
+ case 2722: /* reserved_keyword: DESC */
+#line 15255 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("desc");
+}
+#line 58945 "preproc.c"
+ break;
+
+ case 2723: /* reserved_keyword: DISTINCT */
+#line 15259 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("distinct");
+}
+#line 58953 "preproc.c"
+ break;
+
+ case 2724: /* reserved_keyword: DO */
+#line 15263 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("do");
+}
+#line 58961 "preproc.c"
+ break;
+
+ case 2725: /* reserved_keyword: ELSE */
+#line 15267 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("else");
+}
+#line 58969 "preproc.c"
+ break;
+
+ case 2726: /* reserved_keyword: END_P */
+#line 15271 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("end");
+}
+#line 58977 "preproc.c"
+ break;
+
+ case 2727: /* reserved_keyword: EXCEPT */
+#line 15275 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("except");
+}
+#line 58985 "preproc.c"
+ break;
+
+ case 2728: /* reserved_keyword: FALSE_P */
+#line 15279 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("false");
+}
+#line 58993 "preproc.c"
+ break;
+
+ case 2729: /* reserved_keyword: FETCH */
+#line 15283 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("fetch");
+}
+#line 59001 "preproc.c"
+ break;
+
+ case 2730: /* reserved_keyword: FOR */
+#line 15287 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("for");
+}
+#line 59009 "preproc.c"
+ break;
+
+ case 2731: /* reserved_keyword: FOREIGN */
+#line 15291 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("foreign");
+}
+#line 59017 "preproc.c"
+ break;
+
+ case 2732: /* reserved_keyword: FROM */
+#line 15295 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("from");
+}
+#line 59025 "preproc.c"
+ break;
+
+ case 2733: /* reserved_keyword: GRANT */
+#line 15299 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("grant");
+}
+#line 59033 "preproc.c"
+ break;
+
+ case 2734: /* reserved_keyword: GROUP_P */
+#line 15303 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("group");
+}
+#line 59041 "preproc.c"
+ break;
+
+ case 2735: /* reserved_keyword: HAVING */
+#line 15307 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("having");
+}
+#line 59049 "preproc.c"
+ break;
+
+ case 2736: /* reserved_keyword: IN_P */
+#line 15311 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("in");
+}
+#line 59057 "preproc.c"
+ break;
+
+ case 2737: /* reserved_keyword: INITIALLY */
+#line 15315 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("initially");
+}
+#line 59065 "preproc.c"
+ break;
+
+ case 2738: /* reserved_keyword: INTERSECT */
+#line 15319 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("intersect");
+}
+#line 59073 "preproc.c"
+ break;
+
+ case 2739: /* reserved_keyword: INTO */
+#line 15323 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("into");
+}
+#line 59081 "preproc.c"
+ break;
+
+ case 2740: /* reserved_keyword: LATERAL_P */
+#line 15327 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("lateral");
+}
+#line 59089 "preproc.c"
+ break;
+
+ case 2741: /* reserved_keyword: LEADING */
+#line 15331 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("leading");
+}
+#line 59097 "preproc.c"
+ break;
+
+ case 2742: /* reserved_keyword: LIMIT */
+#line 15335 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("limit");
+}
+#line 59105 "preproc.c"
+ break;
+
+ case 2743: /* reserved_keyword: LOCALTIME */
+#line 15339 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("localtime");
+}
+#line 59113 "preproc.c"
+ break;
+
+ case 2744: /* reserved_keyword: LOCALTIMESTAMP */
+#line 15343 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("localtimestamp");
+}
+#line 59121 "preproc.c"
+ break;
+
+ case 2745: /* reserved_keyword: NOT */
+#line 15347 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not");
+}
+#line 59129 "preproc.c"
+ break;
+
+ case 2746: /* reserved_keyword: NULL_P */
+#line 15351 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("null");
+}
+#line 59137 "preproc.c"
+ break;
+
+ case 2747: /* reserved_keyword: OFFSET */
+#line 15355 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("offset");
+}
+#line 59145 "preproc.c"
+ break;
+
+ case 2748: /* reserved_keyword: ON */
+#line 15359 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("on");
+}
+#line 59153 "preproc.c"
+ break;
+
+ case 2749: /* reserved_keyword: ONLY */
+#line 15363 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("only");
+}
+#line 59161 "preproc.c"
+ break;
+
+ case 2750: /* reserved_keyword: OR */
+#line 15367 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("or");
+}
+#line 59169 "preproc.c"
+ break;
+
+ case 2751: /* reserved_keyword: ORDER */
+#line 15371 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("order");
+}
+#line 59177 "preproc.c"
+ break;
+
+ case 2752: /* reserved_keyword: PLACING */
+#line 15375 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("placing");
+}
+#line 59185 "preproc.c"
+ break;
+
+ case 2753: /* reserved_keyword: PRIMARY */
+#line 15379 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("primary");
+}
+#line 59193 "preproc.c"
+ break;
+
+ case 2754: /* reserved_keyword: REFERENCES */
+#line 15383 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("references");
+}
+#line 59201 "preproc.c"
+ break;
+
+ case 2755: /* reserved_keyword: RETURNING */
+#line 15387 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("returning");
+}
+#line 59209 "preproc.c"
+ break;
+
+ case 2756: /* reserved_keyword: SELECT */
+#line 15391 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("select");
+}
+#line 59217 "preproc.c"
+ break;
+
+ case 2757: /* reserved_keyword: SESSION_USER */
+#line 15395 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("session_user");
+}
+#line 59225 "preproc.c"
+ break;
+
+ case 2758: /* reserved_keyword: SOME */
+#line 15399 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("some");
+}
+#line 59233 "preproc.c"
+ break;
+
+ case 2759: /* reserved_keyword: SYMMETRIC */
+#line 15403 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("symmetric");
+}
+#line 59241 "preproc.c"
+ break;
+
+ case 2760: /* reserved_keyword: TABLE */
+#line 15407 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("table");
+}
+#line 59249 "preproc.c"
+ break;
+
+ case 2761: /* reserved_keyword: THEN */
+#line 15411 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("then");
+}
+#line 59257 "preproc.c"
+ break;
+
+ case 2762: /* reserved_keyword: TRAILING */
+#line 15415 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trailing");
+}
+#line 59265 "preproc.c"
+ break;
+
+ case 2763: /* reserved_keyword: TRUE_P */
+#line 15419 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("true");
+}
+#line 59273 "preproc.c"
+ break;
+
+ case 2764: /* reserved_keyword: UNIQUE */
+#line 15423 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unique");
+}
+#line 59281 "preproc.c"
+ break;
+
+ case 2765: /* reserved_keyword: USER */
+#line 15427 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("user");
+}
+#line 59289 "preproc.c"
+ break;
+
+ case 2766: /* reserved_keyword: USING */
+#line 15431 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("using");
+}
+#line 59297 "preproc.c"
+ break;
+
+ case 2767: /* reserved_keyword: VARIADIC */
+#line 15435 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("variadic");
+}
+#line 59305 "preproc.c"
+ break;
+
+ case 2768: /* reserved_keyword: WHEN */
+#line 15439 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("when");
+}
+#line 59313 "preproc.c"
+ break;
+
+ case 2769: /* reserved_keyword: WHERE */
+#line 15443 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("where");
+}
+#line 59321 "preproc.c"
+ break;
+
+ case 2770: /* reserved_keyword: WINDOW */
+#line 15447 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("window");
+}
+#line 59329 "preproc.c"
+ break;
+
+ case 2771: /* reserved_keyword: WITH */
+#line 15451 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("with");
+}
+#line 59337 "preproc.c"
+ break;
+
+ case 2772: /* bare_label_keyword: ABORT_P */
+#line 15459 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("abort");
+}
+#line 59345 "preproc.c"
+ break;
+
+ case 2773: /* bare_label_keyword: ABSOLUTE_P */
+#line 15463 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("absolute");
+}
+#line 59353 "preproc.c"
+ break;
+
+ case 2774: /* bare_label_keyword: ACCESS */
+#line 15467 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("access");
+}
+#line 59361 "preproc.c"
+ break;
+
+ case 2775: /* bare_label_keyword: ACTION */
+#line 15471 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("action");
+}
+#line 59369 "preproc.c"
+ break;
+
+ case 2776: /* bare_label_keyword: ADD_P */
+#line 15475 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("add");
+}
+#line 59377 "preproc.c"
+ break;
+
+ case 2777: /* bare_label_keyword: ADMIN */
+#line 15479 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("admin");
+}
+#line 59385 "preproc.c"
+ break;
+
+ case 2778: /* bare_label_keyword: AFTER */
+#line 15483 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("after");
+}
+#line 59393 "preproc.c"
+ break;
+
+ case 2779: /* bare_label_keyword: AGGREGATE */
+#line 15487 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("aggregate");
+}
+#line 59401 "preproc.c"
+ break;
+
+ case 2780: /* bare_label_keyword: ALL */
+#line 15491 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("all");
+}
+#line 59409 "preproc.c"
+ break;
+
+ case 2781: /* bare_label_keyword: ALSO */
+#line 15495 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("also");
+}
+#line 59417 "preproc.c"
+ break;
+
+ case 2782: /* bare_label_keyword: ALTER */
+#line 15499 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("alter");
+}
+#line 59425 "preproc.c"
+ break;
+
+ case 2783: /* bare_label_keyword: ALWAYS */
+#line 15503 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("always");
+}
+#line 59433 "preproc.c"
+ break;
+
+ case 2784: /* bare_label_keyword: ANALYSE */
+#line 15507 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("analyse");
+}
+#line 59441 "preproc.c"
+ break;
+
+ case 2785: /* bare_label_keyword: ANALYZE */
+#line 15511 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("analyze");
+}
+#line 59449 "preproc.c"
+ break;
+
+ case 2786: /* bare_label_keyword: AND */
+#line 15515 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("and");
+}
+#line 59457 "preproc.c"
+ break;
+
+ case 2787: /* bare_label_keyword: ANY */
+#line 15519 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("any");
+}
+#line 59465 "preproc.c"
+ break;
+
+ case 2788: /* bare_label_keyword: ASC */
+#line 15523 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("asc");
+}
+#line 59473 "preproc.c"
+ break;
+
+ case 2789: /* bare_label_keyword: ASENSITIVE */
+#line 15527 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("asensitive");
+}
+#line 59481 "preproc.c"
+ break;
+
+ case 2790: /* bare_label_keyword: ASSERTION */
+#line 15531 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("assertion");
+}
+#line 59489 "preproc.c"
+ break;
+
+ case 2791: /* bare_label_keyword: ASSIGNMENT */
+#line 15535 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("assignment");
+}
+#line 59497 "preproc.c"
+ break;
+
+ case 2792: /* bare_label_keyword: ASYMMETRIC */
+#line 15539 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("asymmetric");
+}
+#line 59505 "preproc.c"
+ break;
+
+ case 2793: /* bare_label_keyword: AT */
+#line 15543 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("at");
+}
+#line 59513 "preproc.c"
+ break;
+
+ case 2794: /* bare_label_keyword: ATOMIC */
+#line 15547 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("atomic");
+}
+#line 59521 "preproc.c"
+ break;
+
+ case 2795: /* bare_label_keyword: ATTACH */
+#line 15551 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("attach");
+}
+#line 59529 "preproc.c"
+ break;
+
+ case 2796: /* bare_label_keyword: ATTRIBUTE */
+#line 15555 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("attribute");
+}
+#line 59537 "preproc.c"
+ break;
+
+ case 2797: /* bare_label_keyword: AUTHORIZATION */
+#line 15559 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("authorization");
+}
+#line 59545 "preproc.c"
+ break;
+
+ case 2798: /* bare_label_keyword: BACKWARD */
+#line 15563 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("backward");
+}
+#line 59553 "preproc.c"
+ break;
+
+ case 2799: /* bare_label_keyword: BEFORE */
+#line 15567 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("before");
+}
+#line 59561 "preproc.c"
+ break;
+
+ case 2800: /* bare_label_keyword: BEGIN_P */
+#line 15571 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("begin");
+}
+#line 59569 "preproc.c"
+ break;
+
+ case 2801: /* bare_label_keyword: BETWEEN */
+#line 15575 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("between");
+}
+#line 59577 "preproc.c"
+ break;
+
+ case 2802: /* bare_label_keyword: BIGINT */
+#line 15579 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("bigint");
+}
+#line 59585 "preproc.c"
+ break;
+
+ case 2803: /* bare_label_keyword: BINARY */
+#line 15583 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("binary");
+}
+#line 59593 "preproc.c"
+ break;
+
+ case 2804: /* bare_label_keyword: BIT */
+#line 15587 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("bit");
+}
+#line 59601 "preproc.c"
+ break;
+
+ case 2805: /* bare_label_keyword: BOOLEAN_P */
+#line 15591 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("boolean");
+}
+#line 59609 "preproc.c"
+ break;
+
+ case 2806: /* bare_label_keyword: BOTH */
+#line 15595 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("both");
+}
+#line 59617 "preproc.c"
+ break;
+
+ case 2807: /* bare_label_keyword: BREADTH */
+#line 15599 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("breadth");
+}
+#line 59625 "preproc.c"
+ break;
+
+ case 2808: /* bare_label_keyword: BY */
+#line 15603 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("by");
+}
+#line 59633 "preproc.c"
+ break;
+
+ case 2809: /* bare_label_keyword: CACHE */
+#line 15607 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cache");
+}
+#line 59641 "preproc.c"
+ break;
+
+ case 2810: /* bare_label_keyword: CALL */
+#line 15611 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("call");
+}
+#line 59649 "preproc.c"
+ break;
+
+ case 2811: /* bare_label_keyword: CALLED */
+#line 15615 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("called");
+}
+#line 59657 "preproc.c"
+ break;
+
+ case 2812: /* bare_label_keyword: CASCADE */
+#line 15619 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cascade");
+}
+#line 59665 "preproc.c"
+ break;
+
+ case 2813: /* bare_label_keyword: CASCADED */
+#line 15623 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cascaded");
+}
+#line 59673 "preproc.c"
+ break;
+
+ case 2814: /* bare_label_keyword: CASE */
+#line 15627 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("case");
+}
+#line 59681 "preproc.c"
+ break;
+
+ case 2815: /* bare_label_keyword: CAST */
+#line 15631 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cast");
+}
+#line 59689 "preproc.c"
+ break;
+
+ case 2816: /* bare_label_keyword: CATALOG_P */
+#line 15635 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("catalog");
+}
+#line 59697 "preproc.c"
+ break;
+
+ case 2817: /* bare_label_keyword: CHAIN */
+#line 15639 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("chain");
+}
+#line 59705 "preproc.c"
+ break;
+
+ case 2818: /* bare_label_keyword: CHARACTERISTICS */
+#line 15643 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("characteristics");
+}
+#line 59713 "preproc.c"
+ break;
+
+ case 2819: /* bare_label_keyword: CHECK */
+#line 15647 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("check");
+}
+#line 59721 "preproc.c"
+ break;
+
+ case 2820: /* bare_label_keyword: CHECKPOINT */
+#line 15651 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("checkpoint");
+}
+#line 59729 "preproc.c"
+ break;
+
+ case 2821: /* bare_label_keyword: CLASS */
+#line 15655 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("class");
+}
+#line 59737 "preproc.c"
+ break;
+
+ case 2822: /* bare_label_keyword: CLOSE */
+#line 15659 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("close");
+}
+#line 59745 "preproc.c"
+ break;
+
+ case 2823: /* bare_label_keyword: CLUSTER */
+#line 15663 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cluster");
+}
+#line 59753 "preproc.c"
+ break;
+
+ case 2824: /* bare_label_keyword: COALESCE */
+#line 15667 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("coalesce");
+}
+#line 59761 "preproc.c"
+ break;
+
+ case 2825: /* bare_label_keyword: COLLATE */
+#line 15671 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("collate");
+}
+#line 59769 "preproc.c"
+ break;
+
+ case 2826: /* bare_label_keyword: COLLATION */
+#line 15675 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("collation");
+}
+#line 59777 "preproc.c"
+ break;
+
+ case 2827: /* bare_label_keyword: COLUMN */
+#line 15679 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("column");
+}
+#line 59785 "preproc.c"
+ break;
+
+ case 2828: /* bare_label_keyword: COLUMNS */
+#line 15683 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("columns");
+}
+#line 59793 "preproc.c"
+ break;
+
+ case 2829: /* bare_label_keyword: COMMENT */
+#line 15687 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("comment");
+}
+#line 59801 "preproc.c"
+ break;
+
+ case 2830: /* bare_label_keyword: COMMENTS */
+#line 15691 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("comments");
+}
+#line 59809 "preproc.c"
+ break;
+
+ case 2831: /* bare_label_keyword: COMMIT */
+#line 15695 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("commit");
+}
+#line 59817 "preproc.c"
+ break;
+
+ case 2832: /* bare_label_keyword: COMMITTED */
+#line 15699 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("committed");
+}
+#line 59825 "preproc.c"
+ break;
+
+ case 2833: /* bare_label_keyword: COMPRESSION */
+#line 15703 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("compression");
+}
+#line 59833 "preproc.c"
+ break;
+
+ case 2834: /* bare_label_keyword: CONCURRENTLY */
+#line 15707 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("concurrently");
+}
+#line 59841 "preproc.c"
+ break;
+
+ case 2835: /* bare_label_keyword: CONFIGURATION */
+#line 15711 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("configuration");
+}
+#line 59849 "preproc.c"
+ break;
+
+ case 2836: /* bare_label_keyword: CONFLICT */
+#line 15715 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("conflict");
+}
+#line 59857 "preproc.c"
+ break;
+
+ case 2837: /* bare_label_keyword: CONNECTION */
+#line 15719 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("connection");
+}
+#line 59865 "preproc.c"
+ break;
+
+ case 2838: /* bare_label_keyword: CONSTRAINT */
+#line 15723 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("constraint");
+}
+#line 59873 "preproc.c"
+ break;
+
+ case 2839: /* bare_label_keyword: CONSTRAINTS */
+#line 15727 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("constraints");
+}
+#line 59881 "preproc.c"
+ break;
+
+ case 2840: /* bare_label_keyword: CONTENT_P */
+#line 15731 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("content");
+}
+#line 59889 "preproc.c"
+ break;
+
+ case 2841: /* bare_label_keyword: CONTINUE_P */
+#line 15735 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("continue");
+}
+#line 59897 "preproc.c"
+ break;
+
+ case 2842: /* bare_label_keyword: CONVERSION_P */
+#line 15739 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("conversion");
+}
+#line 59905 "preproc.c"
+ break;
+
+ case 2843: /* bare_label_keyword: COPY */
+#line 15743 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("copy");
+}
+#line 59913 "preproc.c"
+ break;
+
+ case 2844: /* bare_label_keyword: COST */
+#line 15747 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cost");
+}
+#line 59921 "preproc.c"
+ break;
+
+ case 2845: /* bare_label_keyword: CROSS */
+#line 15751 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cross");
+}
+#line 59929 "preproc.c"
+ break;
+
+ case 2846: /* bare_label_keyword: CSV */
+#line 15755 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("csv");
+}
+#line 59937 "preproc.c"
+ break;
+
+ case 2847: /* bare_label_keyword: CUBE */
+#line 15759 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cube");
+}
+#line 59945 "preproc.c"
+ break;
+
+ case 2848: /* bare_label_keyword: CURRENT_P */
+#line 15763 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current");
+}
+#line 59953 "preproc.c"
+ break;
+
+ case 2849: /* bare_label_keyword: CURRENT_CATALOG */
+#line 15767 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_catalog");
+}
+#line 59961 "preproc.c"
+ break;
+
+ case 2850: /* bare_label_keyword: CURRENT_DATE */
+#line 15771 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_date");
+}
+#line 59969 "preproc.c"
+ break;
+
+ case 2851: /* bare_label_keyword: CURRENT_ROLE */
+#line 15775 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_role");
+}
+#line 59977 "preproc.c"
+ break;
+
+ case 2852: /* bare_label_keyword: CURRENT_SCHEMA */
+#line 15779 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_schema");
+}
+#line 59985 "preproc.c"
+ break;
+
+ case 2853: /* bare_label_keyword: CURRENT_TIME */
+#line 15783 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_time");
+}
+#line 59993 "preproc.c"
+ break;
+
+ case 2854: /* bare_label_keyword: CURRENT_TIMESTAMP */
+#line 15787 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_timestamp");
+}
+#line 60001 "preproc.c"
+ break;
+
+ case 2855: /* bare_label_keyword: CURRENT_USER */
+#line 15791 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("current_user");
+}
+#line 60009 "preproc.c"
+ break;
+
+ case 2856: /* bare_label_keyword: CURSOR */
+#line 15795 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cursor");
+}
+#line 60017 "preproc.c"
+ break;
+
+ case 2857: /* bare_label_keyword: CYCLE */
+#line 15799 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("cycle");
+}
+#line 60025 "preproc.c"
+ break;
+
+ case 2858: /* bare_label_keyword: DATA_P */
+#line 15803 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("data");
+}
+#line 60033 "preproc.c"
+ break;
+
+ case 2859: /* bare_label_keyword: DATABASE */
+#line 15807 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("database");
+}
+#line 60041 "preproc.c"
+ break;
+
+ case 2860: /* bare_label_keyword: DEALLOCATE */
+#line 15811 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deallocate");
+}
+#line 60049 "preproc.c"
+ break;
+
+ case 2861: /* bare_label_keyword: DEC */
+#line 15815 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("dec");
+}
+#line 60057 "preproc.c"
+ break;
+
+ case 2862: /* bare_label_keyword: DECIMAL_P */
+#line 15819 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("decimal");
+}
+#line 60065 "preproc.c"
+ break;
+
+ case 2863: /* bare_label_keyword: DECLARE */
+#line 15823 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("declare");
+}
+#line 60073 "preproc.c"
+ break;
+
+ case 2864: /* bare_label_keyword: DEFAULT */
+#line 15827 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("default");
+}
+#line 60081 "preproc.c"
+ break;
+
+ case 2865: /* bare_label_keyword: DEFAULTS */
+#line 15831 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("defaults");
+}
+#line 60089 "preproc.c"
+ break;
+
+ case 2866: /* bare_label_keyword: DEFERRABLE */
+#line 15835 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deferrable");
+}
+#line 60097 "preproc.c"
+ break;
+
+ case 2867: /* bare_label_keyword: DEFERRED */
+#line 15839 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("deferred");
+}
+#line 60105 "preproc.c"
+ break;
+
+ case 2868: /* bare_label_keyword: DEFINER */
+#line 15843 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("definer");
+}
+#line 60113 "preproc.c"
+ break;
+
+ case 2869: /* bare_label_keyword: DELETE_P */
+#line 15847 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delete");
+}
+#line 60121 "preproc.c"
+ break;
+
+ case 2870: /* bare_label_keyword: DELIMITER */
+#line 15851 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delimiter");
+}
+#line 60129 "preproc.c"
+ break;
+
+ case 2871: /* bare_label_keyword: DELIMITERS */
+#line 15855 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("delimiters");
+}
+#line 60137 "preproc.c"
+ break;
+
+ case 2872: /* bare_label_keyword: DEPENDS */
+#line 15859 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("depends");
+}
+#line 60145 "preproc.c"
+ break;
+
+ case 2873: /* bare_label_keyword: DEPTH */
+#line 15863 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("depth");
+}
+#line 60153 "preproc.c"
+ break;
+
+ case 2874: /* bare_label_keyword: DESC */
+#line 15867 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("desc");
+}
+#line 60161 "preproc.c"
+ break;
+
+ case 2875: /* bare_label_keyword: DETACH */
+#line 15871 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("detach");
+}
+#line 60169 "preproc.c"
+ break;
+
+ case 2876: /* bare_label_keyword: DICTIONARY */
+#line 15875 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("dictionary");
+}
+#line 60177 "preproc.c"
+ break;
+
+ case 2877: /* bare_label_keyword: DISABLE_P */
+#line 15879 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("disable");
+}
+#line 60185 "preproc.c"
+ break;
+
+ case 2878: /* bare_label_keyword: DISCARD */
+#line 15883 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("discard");
+}
+#line 60193 "preproc.c"
+ break;
+
+ case 2879: /* bare_label_keyword: DISTINCT */
+#line 15887 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("distinct");
+}
+#line 60201 "preproc.c"
+ break;
+
+ case 2880: /* bare_label_keyword: DO */
+#line 15891 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("do");
+}
+#line 60209 "preproc.c"
+ break;
+
+ case 2881: /* bare_label_keyword: DOCUMENT_P */
+#line 15895 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("document");
+}
+#line 60217 "preproc.c"
+ break;
+
+ case 2882: /* bare_label_keyword: DOMAIN_P */
+#line 15899 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("domain");
+}
+#line 60225 "preproc.c"
+ break;
+
+ case 2883: /* bare_label_keyword: DOUBLE_P */
+#line 15903 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("double");
+}
+#line 60233 "preproc.c"
+ break;
+
+ case 2884: /* bare_label_keyword: DROP */
+#line 15907 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("drop");
+}
+#line 60241 "preproc.c"
+ break;
+
+ case 2885: /* bare_label_keyword: EACH */
+#line 15911 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("each");
+}
+#line 60249 "preproc.c"
+ break;
+
+ case 2886: /* bare_label_keyword: ELSE */
+#line 15915 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("else");
+}
+#line 60257 "preproc.c"
+ break;
+
+ case 2887: /* bare_label_keyword: ENABLE_P */
+#line 15919 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enable");
+}
+#line 60265 "preproc.c"
+ break;
+
+ case 2888: /* bare_label_keyword: ENCODING */
+#line 15923 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("encoding");
+}
+#line 60273 "preproc.c"
+ break;
+
+ case 2889: /* bare_label_keyword: ENCRYPTED */
+#line 15927 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("encrypted");
+}
+#line 60281 "preproc.c"
+ break;
+
+ case 2890: /* bare_label_keyword: END_P */
+#line 15931 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("end");
+}
+#line 60289 "preproc.c"
+ break;
+
+ case 2891: /* bare_label_keyword: ENUM_P */
+#line 15935 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("enum");
+}
+#line 60297 "preproc.c"
+ break;
+
+ case 2892: /* bare_label_keyword: ESCAPE */
+#line 15939 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("escape");
+}
+#line 60305 "preproc.c"
+ break;
+
+ case 2893: /* bare_label_keyword: EVENT */
+#line 15943 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("event");
+}
+#line 60313 "preproc.c"
+ break;
+
+ case 2894: /* bare_label_keyword: EXCLUDE */
+#line 15947 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exclude");
+}
+#line 60321 "preproc.c"
+ break;
+
+ case 2895: /* bare_label_keyword: EXCLUDING */
+#line 15951 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("excluding");
+}
+#line 60329 "preproc.c"
+ break;
+
+ case 2896: /* bare_label_keyword: EXCLUSIVE */
+#line 15955 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exclusive");
+}
+#line 60337 "preproc.c"
+ break;
+
+ case 2897: /* bare_label_keyword: EXECUTE */
+#line 15959 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("execute");
+}
+#line 60345 "preproc.c"
+ break;
+
+ case 2898: /* bare_label_keyword: EXISTS */
+#line 15963 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("exists");
+}
+#line 60353 "preproc.c"
+ break;
+
+ case 2899: /* bare_label_keyword: EXPLAIN */
+#line 15967 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("explain");
+}
+#line 60361 "preproc.c"
+ break;
+
+ case 2900: /* bare_label_keyword: EXPRESSION */
+#line 15971 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("expression");
+}
+#line 60369 "preproc.c"
+ break;
+
+ case 2901: /* bare_label_keyword: EXTENSION */
+#line 15975 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("extension");
+}
+#line 60377 "preproc.c"
+ break;
+
+ case 2902: /* bare_label_keyword: EXTERNAL */
+#line 15979 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("external");
+}
+#line 60385 "preproc.c"
+ break;
+
+ case 2903: /* bare_label_keyword: EXTRACT */
+#line 15983 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("extract");
+}
+#line 60393 "preproc.c"
+ break;
+
+ case 2904: /* bare_label_keyword: FALSE_P */
+#line 15987 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("false");
+}
+#line 60401 "preproc.c"
+ break;
+
+ case 2905: /* bare_label_keyword: FAMILY */
+#line 15991 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("family");
+}
+#line 60409 "preproc.c"
+ break;
+
+ case 2906: /* bare_label_keyword: FINALIZE */
+#line 15995 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("finalize");
+}
+#line 60417 "preproc.c"
+ break;
+
+ case 2907: /* bare_label_keyword: FIRST_P */
+#line 15999 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("first");
+}
+#line 60425 "preproc.c"
+ break;
+
+ case 2908: /* bare_label_keyword: FLOAT_P */
+#line 16003 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("float");
+}
+#line 60433 "preproc.c"
+ break;
+
+ case 2909: /* bare_label_keyword: FOLLOWING */
+#line 16007 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("following");
+}
+#line 60441 "preproc.c"
+ break;
+
+ case 2910: /* bare_label_keyword: FORCE */
+#line 16011 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("force");
+}
+#line 60449 "preproc.c"
+ break;
+
+ case 2911: /* bare_label_keyword: FOREIGN */
+#line 16015 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("foreign");
+}
+#line 60457 "preproc.c"
+ break;
+
+ case 2912: /* bare_label_keyword: FORWARD */
+#line 16019 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("forward");
+}
+#line 60465 "preproc.c"
+ break;
+
+ case 2913: /* bare_label_keyword: FREEZE */
+#line 16023 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("freeze");
+}
+#line 60473 "preproc.c"
+ break;
+
+ case 2914: /* bare_label_keyword: FULL */
+#line 16027 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("full");
+}
+#line 60481 "preproc.c"
+ break;
+
+ case 2915: /* bare_label_keyword: FUNCTION */
+#line 16031 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("function");
+}
+#line 60489 "preproc.c"
+ break;
+
+ case 2916: /* bare_label_keyword: FUNCTIONS */
+#line 16035 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("functions");
+}
+#line 60497 "preproc.c"
+ break;
+
+ case 2917: /* bare_label_keyword: GENERATED */
+#line 16039 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("generated");
+}
+#line 60505 "preproc.c"
+ break;
+
+ case 2918: /* bare_label_keyword: GLOBAL */
+#line 16043 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("global");
+}
+#line 60513 "preproc.c"
+ break;
+
+ case 2919: /* bare_label_keyword: GRANTED */
+#line 16047 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("granted");
+}
+#line 60521 "preproc.c"
+ break;
+
+ case 2920: /* bare_label_keyword: GREATEST */
+#line 16051 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("greatest");
+}
+#line 60529 "preproc.c"
+ break;
+
+ case 2921: /* bare_label_keyword: GROUPING */
+#line 16055 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("grouping");
+}
+#line 60537 "preproc.c"
+ break;
+
+ case 2922: /* bare_label_keyword: GROUPS */
+#line 16059 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("groups");
+}
+#line 60545 "preproc.c"
+ break;
+
+ case 2923: /* bare_label_keyword: HANDLER */
+#line 16063 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("handler");
+}
+#line 60553 "preproc.c"
+ break;
+
+ case 2924: /* bare_label_keyword: HEADER_P */
+#line 16067 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("header");
+}
+#line 60561 "preproc.c"
+ break;
+
+ case 2925: /* bare_label_keyword: HOLD */
+#line 16071 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("hold");
+}
+#line 60569 "preproc.c"
+ break;
+
+ case 2926: /* bare_label_keyword: IDENTITY_P */
+#line 16075 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("identity");
+}
+#line 60577 "preproc.c"
+ break;
+
+ case 2927: /* bare_label_keyword: IF_P */
+#line 16079 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("if");
+}
+#line 60585 "preproc.c"
+ break;
+
+ case 2928: /* bare_label_keyword: ILIKE */
+#line 16083 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("ilike");
+}
+#line 60593 "preproc.c"
+ break;
+
+ case 2929: /* bare_label_keyword: IMMEDIATE */
+#line 16087 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("immediate");
+}
+#line 60601 "preproc.c"
+ break;
+
+ case 2930: /* bare_label_keyword: IMMUTABLE */
+#line 16091 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("immutable");
+}
+#line 60609 "preproc.c"
+ break;
+
+ case 2931: /* bare_label_keyword: IMPLICIT_P */
+#line 16095 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("implicit");
+}
+#line 60617 "preproc.c"
+ break;
+
+ case 2932: /* bare_label_keyword: IMPORT_P */
+#line 16099 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("import");
+}
+#line 60625 "preproc.c"
+ break;
+
+ case 2933: /* bare_label_keyword: IN_P */
+#line 16103 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("in");
+}
+#line 60633 "preproc.c"
+ break;
+
+ case 2934: /* bare_label_keyword: INCLUDE */
+#line 16107 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("include");
+}
+#line 60641 "preproc.c"
+ break;
+
+ case 2935: /* bare_label_keyword: INCLUDING */
+#line 16111 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("including");
+}
+#line 60649 "preproc.c"
+ break;
+
+ case 2936: /* bare_label_keyword: INCREMENT */
+#line 16115 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("increment");
+}
+#line 60657 "preproc.c"
+ break;
+
+ case 2937: /* bare_label_keyword: INDEX */
+#line 16119 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("index");
+}
+#line 60665 "preproc.c"
+ break;
+
+ case 2938: /* bare_label_keyword: INDEXES */
+#line 16123 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("indexes");
+}
+#line 60673 "preproc.c"
+ break;
+
+ case 2939: /* bare_label_keyword: INHERIT */
+#line 16127 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inherit");
+}
+#line 60681 "preproc.c"
+ break;
+
+ case 2940: /* bare_label_keyword: INHERITS */
+#line 16131 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inherits");
+}
+#line 60689 "preproc.c"
+ break;
+
+ case 2941: /* bare_label_keyword: INITIALLY */
+#line 16135 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("initially");
+}
+#line 60697 "preproc.c"
+ break;
+
+ case 2942: /* bare_label_keyword: INLINE_P */
+#line 16139 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inline");
+}
+#line 60705 "preproc.c"
+ break;
+
+ case 2943: /* bare_label_keyword: INNER_P */
+#line 16143 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inner");
+}
+#line 60713 "preproc.c"
+ break;
+
+ case 2944: /* bare_label_keyword: INOUT */
+#line 16147 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("inout");
+}
+#line 60721 "preproc.c"
+ break;
+
+ case 2945: /* bare_label_keyword: INPUT_P */
+#line 16151 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("input");
+}
+#line 60729 "preproc.c"
+ break;
+
+ case 2946: /* bare_label_keyword: INSENSITIVE */
+#line 16155 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("insensitive");
+}
+#line 60737 "preproc.c"
+ break;
+
+ case 2947: /* bare_label_keyword: INSERT */
+#line 16159 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("insert");
+}
+#line 60745 "preproc.c"
+ break;
+
+ case 2948: /* bare_label_keyword: INSTEAD */
+#line 16163 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("instead");
+}
+#line 60753 "preproc.c"
+ break;
+
+ case 2949: /* bare_label_keyword: INT_P */
+#line 16167 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("int");
+}
+#line 60761 "preproc.c"
+ break;
+
+ case 2950: /* bare_label_keyword: INTEGER */
+#line 16171 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("integer");
+}
+#line 60769 "preproc.c"
+ break;
+
+ case 2951: /* bare_label_keyword: INTERVAL */
+#line 16175 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("interval");
+}
+#line 60777 "preproc.c"
+ break;
+
+ case 2952: /* bare_label_keyword: INVOKER */
+#line 16179 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("invoker");
+}
+#line 60785 "preproc.c"
+ break;
+
+ case 2953: /* bare_label_keyword: IS */
+#line 16183 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("is");
+}
+#line 60793 "preproc.c"
+ break;
+
+ case 2954: /* bare_label_keyword: ISOLATION */
+#line 16187 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("isolation");
+}
+#line 60801 "preproc.c"
+ break;
+
+ case 2955: /* bare_label_keyword: JOIN */
+#line 16191 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("join");
+}
+#line 60809 "preproc.c"
+ break;
+
+ case 2956: /* bare_label_keyword: KEY */
+#line 16195 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("key");
+}
+#line 60817 "preproc.c"
+ break;
+
+ case 2957: /* bare_label_keyword: LABEL */
+#line 16199 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("label");
+}
+#line 60825 "preproc.c"
+ break;
+
+ case 2958: /* bare_label_keyword: LANGUAGE */
+#line 16203 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("language");
+}
+#line 60833 "preproc.c"
+ break;
+
+ case 2959: /* bare_label_keyword: LARGE_P */
+#line 16207 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("large");
+}
+#line 60841 "preproc.c"
+ break;
+
+ case 2960: /* bare_label_keyword: LAST_P */
+#line 16211 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("last");
+}
+#line 60849 "preproc.c"
+ break;
+
+ case 2961: /* bare_label_keyword: LATERAL_P */
+#line 16215 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("lateral");
+}
+#line 60857 "preproc.c"
+ break;
+
+ case 2962: /* bare_label_keyword: LEADING */
+#line 16219 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("leading");
+}
+#line 60865 "preproc.c"
+ break;
+
+ case 2963: /* bare_label_keyword: LEAKPROOF */
+#line 16223 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("leakproof");
+}
+#line 60873 "preproc.c"
+ break;
+
+ case 2964: /* bare_label_keyword: LEAST */
+#line 16227 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("least");
+}
+#line 60881 "preproc.c"
+ break;
+
+ case 2965: /* bare_label_keyword: LEFT */
+#line 16231 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("left");
+}
+#line 60889 "preproc.c"
+ break;
+
+ case 2966: /* bare_label_keyword: LEVEL */
+#line 16235 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("level");
+}
+#line 60897 "preproc.c"
+ break;
+
+ case 2967: /* bare_label_keyword: LIKE */
+#line 16239 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("like");
+}
+#line 60905 "preproc.c"
+ break;
+
+ case 2968: /* bare_label_keyword: LISTEN */
+#line 16243 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("listen");
+}
+#line 60913 "preproc.c"
+ break;
+
+ case 2969: /* bare_label_keyword: LOAD */
+#line 16247 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("load");
+}
+#line 60921 "preproc.c"
+ break;
+
+ case 2970: /* bare_label_keyword: LOCAL */
+#line 16251 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("local");
+}
+#line 60929 "preproc.c"
+ break;
+
+ case 2971: /* bare_label_keyword: LOCALTIME */
+#line 16255 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("localtime");
+}
+#line 60937 "preproc.c"
+ break;
+
+ case 2972: /* bare_label_keyword: LOCALTIMESTAMP */
+#line 16259 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("localtimestamp");
+}
+#line 60945 "preproc.c"
+ break;
+
+ case 2973: /* bare_label_keyword: LOCATION */
+#line 16263 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("location");
+}
+#line 60953 "preproc.c"
+ break;
+
+ case 2974: /* bare_label_keyword: LOCK_P */
+#line 16267 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("lock");
+}
+#line 60961 "preproc.c"
+ break;
+
+ case 2975: /* bare_label_keyword: LOCKED */
+#line 16271 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("locked");
+}
+#line 60969 "preproc.c"
+ break;
+
+ case 2976: /* bare_label_keyword: LOGGED */
+#line 16275 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("logged");
+}
+#line 60977 "preproc.c"
+ break;
+
+ case 2977: /* bare_label_keyword: MAPPING */
+#line 16279 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("mapping");
+}
+#line 60985 "preproc.c"
+ break;
+
+ case 2978: /* bare_label_keyword: MATCH */
+#line 16283 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("match");
+}
+#line 60993 "preproc.c"
+ break;
+
+ case 2979: /* bare_label_keyword: MATCHED */
+#line 16287 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("matched");
+}
+#line 61001 "preproc.c"
+ break;
+
+ case 2980: /* bare_label_keyword: MATERIALIZED */
+#line 16291 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("materialized");
+}
+#line 61009 "preproc.c"
+ break;
+
+ case 2981: /* bare_label_keyword: MAXVALUE */
+#line 16295 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("maxvalue");
+}
+#line 61017 "preproc.c"
+ break;
+
+ case 2982: /* bare_label_keyword: MERGE */
+#line 16299 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("merge");
+}
+#line 61025 "preproc.c"
+ break;
+
+ case 2983: /* bare_label_keyword: METHOD */
+#line 16303 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("method");
+}
+#line 61033 "preproc.c"
+ break;
+
+ case 2984: /* bare_label_keyword: MINVALUE */
+#line 16307 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("minvalue");
+}
+#line 61041 "preproc.c"
+ break;
+
+ case 2985: /* bare_label_keyword: MODE */
+#line 16311 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("mode");
+}
+#line 61049 "preproc.c"
+ break;
+
+ case 2986: /* bare_label_keyword: MOVE */
+#line 16315 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("move");
+}
+#line 61057 "preproc.c"
+ break;
+
+ case 2987: /* bare_label_keyword: NAME_P */
+#line 16319 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("name");
+}
+#line 61065 "preproc.c"
+ break;
+
+ case 2988: /* bare_label_keyword: NAMES */
+#line 16323 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("names");
+}
+#line 61073 "preproc.c"
+ break;
+
+ case 2989: /* bare_label_keyword: NATIONAL */
+#line 16327 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("national");
+}
+#line 61081 "preproc.c"
+ break;
+
+ case 2990: /* bare_label_keyword: NATURAL */
+#line 16331 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("natural");
+}
+#line 61089 "preproc.c"
+ break;
+
+ case 2991: /* bare_label_keyword: NCHAR */
+#line 16335 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nchar");
+}
+#line 61097 "preproc.c"
+ break;
+
+ case 2992: /* bare_label_keyword: NEW */
+#line 16339 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("new");
+}
+#line 61105 "preproc.c"
+ break;
+
+ case 2993: /* bare_label_keyword: NEXT */
+#line 16343 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("next");
+}
+#line 61113 "preproc.c"
+ break;
+
+ case 2994: /* bare_label_keyword: NFC */
+#line 16347 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfc");
+}
+#line 61121 "preproc.c"
+ break;
+
+ case 2995: /* bare_label_keyword: NFD */
+#line 16351 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfd");
+}
+#line 61129 "preproc.c"
+ break;
+
+ case 2996: /* bare_label_keyword: NFKC */
+#line 16355 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfkc");
+}
+#line 61137 "preproc.c"
+ break;
+
+ case 2997: /* bare_label_keyword: NFKD */
+#line 16359 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nfkd");
+}
+#line 61145 "preproc.c"
+ break;
+
+ case 2998: /* bare_label_keyword: NO */
+#line 16363 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("no");
+}
+#line 61153 "preproc.c"
+ break;
+
+ case 2999: /* bare_label_keyword: NONE */
+#line 16367 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("none");
+}
+#line 61161 "preproc.c"
+ break;
+
+ case 3000: /* bare_label_keyword: NORMALIZE */
+#line 16371 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("normalize");
+}
+#line 61169 "preproc.c"
+ break;
+
+ case 3001: /* bare_label_keyword: NORMALIZED */
+#line 16375 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("normalized");
+}
+#line 61177 "preproc.c"
+ break;
+
+ case 3002: /* bare_label_keyword: NOT */
+#line 16379 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("not");
+}
+#line 61185 "preproc.c"
+ break;
+
+ case 3003: /* bare_label_keyword: NOTHING */
+#line 16383 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nothing");
+}
+#line 61193 "preproc.c"
+ break;
+
+ case 3004: /* bare_label_keyword: NOTIFY */
+#line 16387 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("notify");
+}
+#line 61201 "preproc.c"
+ break;
+
+ case 3005: /* bare_label_keyword: NOWAIT */
+#line 16391 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nowait");
+}
+#line 61209 "preproc.c"
+ break;
+
+ case 3006: /* bare_label_keyword: NULL_P */
+#line 16395 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("null");
+}
+#line 61217 "preproc.c"
+ break;
+
+ case 3007: /* bare_label_keyword: NULLIF */
+#line 16399 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nullif");
+}
+#line 61225 "preproc.c"
+ break;
+
+ case 3008: /* bare_label_keyword: NULLS_P */
+#line 16403 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("nulls");
+}
+#line 61233 "preproc.c"
+ break;
+
+ case 3009: /* bare_label_keyword: NUMERIC */
+#line 16407 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("numeric");
+}
+#line 61241 "preproc.c"
+ break;
+
+ case 3010: /* bare_label_keyword: OBJECT_P */
+#line 16411 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("object");
+}
+#line 61249 "preproc.c"
+ break;
+
+ case 3011: /* bare_label_keyword: OF */
+#line 16415 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("of");
+}
+#line 61257 "preproc.c"
+ break;
+
+ case 3012: /* bare_label_keyword: OFF */
+#line 16419 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("off");
+}
+#line 61265 "preproc.c"
+ break;
+
+ case 3013: /* bare_label_keyword: OIDS */
+#line 16423 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("oids");
+}
+#line 61273 "preproc.c"
+ break;
+
+ case 3014: /* bare_label_keyword: OLD */
+#line 16427 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("old");
+}
+#line 61281 "preproc.c"
+ break;
+
+ case 3015: /* bare_label_keyword: ONLY */
+#line 16431 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("only");
+}
+#line 61289 "preproc.c"
+ break;
+
+ case 3016: /* bare_label_keyword: OPERATOR */
+#line 16435 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("operator");
+}
+#line 61297 "preproc.c"
+ break;
+
+ case 3017: /* bare_label_keyword: OPTION */
+#line 16439 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("option");
+}
+#line 61305 "preproc.c"
+ break;
+
+ case 3018: /* bare_label_keyword: OPTIONS */
+#line 16443 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("options");
+}
+#line 61313 "preproc.c"
+ break;
+
+ case 3019: /* bare_label_keyword: OR */
+#line 16447 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("or");
+}
+#line 61321 "preproc.c"
+ break;
+
+ case 3020: /* bare_label_keyword: ORDINALITY */
+#line 16451 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("ordinality");
+}
+#line 61329 "preproc.c"
+ break;
+
+ case 3021: /* bare_label_keyword: OTHERS */
+#line 16455 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("others");
+}
+#line 61337 "preproc.c"
+ break;
+
+ case 3022: /* bare_label_keyword: OUT_P */
+#line 16459 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("out");
+}
+#line 61345 "preproc.c"
+ break;
+
+ case 3023: /* bare_label_keyword: OUTER_P */
+#line 16463 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("outer");
+}
+#line 61353 "preproc.c"
+ break;
+
+ case 3024: /* bare_label_keyword: OVERLAY */
+#line 16467 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("overlay");
+}
+#line 61361 "preproc.c"
+ break;
+
+ case 3025: /* bare_label_keyword: OVERRIDING */
+#line 16471 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("overriding");
+}
+#line 61369 "preproc.c"
+ break;
+
+ case 3026: /* bare_label_keyword: OWNED */
+#line 16475 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("owned");
+}
+#line 61377 "preproc.c"
+ break;
+
+ case 3027: /* bare_label_keyword: OWNER */
+#line 16479 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("owner");
+}
+#line 61385 "preproc.c"
+ break;
+
+ case 3028: /* bare_label_keyword: PARALLEL */
+#line 16483 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("parallel");
+}
+#line 61393 "preproc.c"
+ break;
+
+ case 3029: /* bare_label_keyword: PARAMETER */
+#line 16487 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("parameter");
+}
+#line 61401 "preproc.c"
+ break;
+
+ case 3030: /* bare_label_keyword: PARSER */
+#line 16491 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("parser");
+}
+#line 61409 "preproc.c"
+ break;
+
+ case 3031: /* bare_label_keyword: PARTIAL */
+#line 16495 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("partial");
+}
+#line 61417 "preproc.c"
+ break;
+
+ case 3032: /* bare_label_keyword: PARTITION */
+#line 16499 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("partition");
+}
+#line 61425 "preproc.c"
+ break;
+
+ case 3033: /* bare_label_keyword: PASSING */
+#line 16503 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("passing");
+}
+#line 61433 "preproc.c"
+ break;
+
+ case 3034: /* bare_label_keyword: PASSWORD */
+#line 16507 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("password");
+}
+#line 61441 "preproc.c"
+ break;
+
+ case 3035: /* bare_label_keyword: PLACING */
+#line 16511 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("placing");
+}
+#line 61449 "preproc.c"
+ break;
+
+ case 3036: /* bare_label_keyword: PLANS */
+#line 16515 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("plans");
+}
+#line 61457 "preproc.c"
+ break;
+
+ case 3037: /* bare_label_keyword: POLICY */
+#line 16519 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("policy");
+}
+#line 61465 "preproc.c"
+ break;
+
+ case 3038: /* bare_label_keyword: POSITION */
+#line 16523 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("position");
+}
+#line 61473 "preproc.c"
+ break;
+
+ case 3039: /* bare_label_keyword: PRECEDING */
+#line 16527 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("preceding");
+}
+#line 61481 "preproc.c"
+ break;
+
+ case 3040: /* bare_label_keyword: PREPARE */
+#line 16531 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("prepare");
+}
+#line 61489 "preproc.c"
+ break;
+
+ case 3041: /* bare_label_keyword: PREPARED */
+#line 16535 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("prepared");
+}
+#line 61497 "preproc.c"
+ break;
+
+ case 3042: /* bare_label_keyword: PRESERVE */
+#line 16539 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("preserve");
+}
+#line 61505 "preproc.c"
+ break;
+
+ case 3043: /* bare_label_keyword: PRIMARY */
+#line 16543 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("primary");
+}
+#line 61513 "preproc.c"
+ break;
+
+ case 3044: /* bare_label_keyword: PRIOR */
+#line 16547 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("prior");
+}
+#line 61521 "preproc.c"
+ break;
+
+ case 3045: /* bare_label_keyword: PRIVILEGES */
+#line 16551 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("privileges");
+}
+#line 61529 "preproc.c"
+ break;
+
+ case 3046: /* bare_label_keyword: PROCEDURAL */
+#line 16555 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("procedural");
+}
+#line 61537 "preproc.c"
+ break;
+
+ case 3047: /* bare_label_keyword: PROCEDURE */
+#line 16559 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("procedure");
+}
+#line 61545 "preproc.c"
+ break;
+
+ case 3048: /* bare_label_keyword: PROCEDURES */
+#line 16563 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("procedures");
+}
+#line 61553 "preproc.c"
+ break;
+
+ case 3049: /* bare_label_keyword: PROGRAM */
+#line 16567 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("program");
+}
+#line 61561 "preproc.c"
+ break;
+
+ case 3050: /* bare_label_keyword: PUBLICATION */
+#line 16571 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("publication");
+}
+#line 61569 "preproc.c"
+ break;
+
+ case 3051: /* bare_label_keyword: QUOTE */
+#line 16575 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("quote");
+}
+#line 61577 "preproc.c"
+ break;
+
+ case 3052: /* bare_label_keyword: RANGE */
+#line 16579 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("range");
+}
+#line 61585 "preproc.c"
+ break;
+
+ case 3053: /* bare_label_keyword: READ */
+#line 16583 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("read");
+}
+#line 61593 "preproc.c"
+ break;
+
+ case 3054: /* bare_label_keyword: REAL */
+#line 16587 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("real");
+}
+#line 61601 "preproc.c"
+ break;
+
+ case 3055: /* bare_label_keyword: REASSIGN */
+#line 16591 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("reassign");
+}
+#line 61609 "preproc.c"
+ break;
+
+ case 3056: /* bare_label_keyword: RECHECK */
+#line 16595 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("recheck");
+}
+#line 61617 "preproc.c"
+ break;
+
+ case 3057: /* bare_label_keyword: RECURSIVE */
+#line 16599 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("recursive");
+}
+#line 61625 "preproc.c"
+ break;
+
+ case 3058: /* bare_label_keyword: REF_P */
+#line 16603 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("ref");
+}
+#line 61633 "preproc.c"
+ break;
+
+ case 3059: /* bare_label_keyword: REFERENCES */
+#line 16607 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("references");
+}
+#line 61641 "preproc.c"
+ break;
+
+ case 3060: /* bare_label_keyword: REFERENCING */
+#line 16611 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("referencing");
+}
+#line 61649 "preproc.c"
+ break;
+
+ case 3061: /* bare_label_keyword: REFRESH */
+#line 16615 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("refresh");
+}
+#line 61657 "preproc.c"
+ break;
+
+ case 3062: /* bare_label_keyword: REINDEX */
+#line 16619 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("reindex");
+}
+#line 61665 "preproc.c"
+ break;
+
+ case 3063: /* bare_label_keyword: RELATIVE_P */
+#line 16623 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("relative");
+}
+#line 61673 "preproc.c"
+ break;
+
+ case 3064: /* bare_label_keyword: RELEASE */
+#line 16627 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("release");
+}
+#line 61681 "preproc.c"
+ break;
+
+ case 3065: /* bare_label_keyword: RENAME */
+#line 16631 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rename");
+}
+#line 61689 "preproc.c"
+ break;
+
+ case 3066: /* bare_label_keyword: REPEATABLE */
+#line 16635 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("repeatable");
+}
+#line 61697 "preproc.c"
+ break;
+
+ case 3067: /* bare_label_keyword: REPLACE */
+#line 16639 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("replace");
+}
+#line 61705 "preproc.c"
+ break;
+
+ case 3068: /* bare_label_keyword: REPLICA */
+#line 16643 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("replica");
+}
+#line 61713 "preproc.c"
+ break;
+
+ case 3069: /* bare_label_keyword: RESET */
+#line 16647 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("reset");
+}
+#line 61721 "preproc.c"
+ break;
+
+ case 3070: /* bare_label_keyword: RESTART */
+#line 16651 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restart");
+}
+#line 61729 "preproc.c"
+ break;
+
+ case 3071: /* bare_label_keyword: RESTRICT */
+#line 16655 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("restrict");
+}
+#line 61737 "preproc.c"
+ break;
+
+ case 3072: /* bare_label_keyword: RETURN */
+#line 16659 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("return");
+}
+#line 61745 "preproc.c"
+ break;
+
+ case 3073: /* bare_label_keyword: RETURNS */
+#line 16663 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("returns");
+}
+#line 61753 "preproc.c"
+ break;
+
+ case 3074: /* bare_label_keyword: REVOKE */
+#line 16667 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("revoke");
+}
+#line 61761 "preproc.c"
+ break;
+
+ case 3075: /* bare_label_keyword: RIGHT */
+#line 16671 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("right");
+}
+#line 61769 "preproc.c"
+ break;
+
+ case 3076: /* bare_label_keyword: ROLE */
+#line 16675 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("role");
+}
+#line 61777 "preproc.c"
+ break;
+
+ case 3077: /* bare_label_keyword: ROLLBACK */
+#line 16679 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rollback");
+}
+#line 61785 "preproc.c"
+ break;
+
+ case 3078: /* bare_label_keyword: ROLLUP */
+#line 16683 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rollup");
+}
+#line 61793 "preproc.c"
+ break;
+
+ case 3079: /* bare_label_keyword: ROUTINE */
+#line 16687 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("routine");
+}
+#line 61801 "preproc.c"
+ break;
+
+ case 3080: /* bare_label_keyword: ROUTINES */
+#line 16691 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("routines");
+}
+#line 61809 "preproc.c"
+ break;
+
+ case 3081: /* bare_label_keyword: ROW */
+#line 16695 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("row");
+}
+#line 61817 "preproc.c"
+ break;
+
+ case 3082: /* bare_label_keyword: ROWS */
+#line 16699 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rows");
+}
+#line 61825 "preproc.c"
+ break;
+
+ case 3083: /* bare_label_keyword: RULE */
+#line 16703 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("rule");
+}
+#line 61833 "preproc.c"
+ break;
+
+ case 3084: /* bare_label_keyword: SAVEPOINT */
+#line 16707 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("savepoint");
+}
+#line 61841 "preproc.c"
+ break;
+
+ case 3085: /* bare_label_keyword: SCHEMA */
+#line 16711 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("schema");
+}
+#line 61849 "preproc.c"
+ break;
+
+ case 3086: /* bare_label_keyword: SCHEMAS */
+#line 16715 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("schemas");
+}
+#line 61857 "preproc.c"
+ break;
+
+ case 3087: /* bare_label_keyword: SCROLL */
+#line 16719 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("scroll");
+}
+#line 61865 "preproc.c"
+ break;
+
+ case 3088: /* bare_label_keyword: SEARCH */
+#line 16723 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("search");
+}
+#line 61873 "preproc.c"
+ break;
+
+ case 3089: /* bare_label_keyword: SECURITY */
+#line 16727 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("security");
+}
+#line 61881 "preproc.c"
+ break;
+
+ case 3090: /* bare_label_keyword: SELECT */
+#line 16731 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("select");
+}
+#line 61889 "preproc.c"
+ break;
+
+ case 3091: /* bare_label_keyword: SEQUENCE */
+#line 16735 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sequence");
+}
+#line 61897 "preproc.c"
+ break;
+
+ case 3092: /* bare_label_keyword: SEQUENCES */
+#line 16739 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sequences");
+}
+#line 61905 "preproc.c"
+ break;
+
+ case 3093: /* bare_label_keyword: SERIALIZABLE */
+#line 16743 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("serializable");
+}
+#line 61913 "preproc.c"
+ break;
+
+ case 3094: /* bare_label_keyword: SERVER */
+#line 16747 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("server");
+}
+#line 61921 "preproc.c"
+ break;
+
+ case 3095: /* bare_label_keyword: SESSION */
+#line 16751 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("session");
+}
+#line 61929 "preproc.c"
+ break;
+
+ case 3096: /* bare_label_keyword: SESSION_USER */
+#line 16755 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("session_user");
+}
+#line 61937 "preproc.c"
+ break;
+
+ case 3097: /* bare_label_keyword: SET */
+#line 16759 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("set");
+}
+#line 61945 "preproc.c"
+ break;
+
+ case 3098: /* bare_label_keyword: SETOF */
+#line 16763 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("setof");
+}
+#line 61953 "preproc.c"
+ break;
+
+ case 3099: /* bare_label_keyword: SETS */
+#line 16767 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sets");
+}
+#line 61961 "preproc.c"
+ break;
+
+ case 3100: /* bare_label_keyword: SHARE */
+#line 16771 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("share");
+}
+#line 61969 "preproc.c"
+ break;
+
+ case 3101: /* bare_label_keyword: SHOW */
+#line 16775 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("show");
+}
+#line 61977 "preproc.c"
+ break;
+
+ case 3102: /* bare_label_keyword: SIMILAR */
+#line 16779 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("similar");
+}
+#line 61985 "preproc.c"
+ break;
+
+ case 3103: /* bare_label_keyword: SIMPLE */
+#line 16783 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("simple");
+}
+#line 61993 "preproc.c"
+ break;
+
+ case 3104: /* bare_label_keyword: SKIP */
+#line 16787 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("skip");
+}
+#line 62001 "preproc.c"
+ break;
+
+ case 3105: /* bare_label_keyword: SMALLINT */
+#line 16791 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("smallint");
+}
+#line 62009 "preproc.c"
+ break;
+
+ case 3106: /* bare_label_keyword: SNAPSHOT */
+#line 16795 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("snapshot");
+}
+#line 62017 "preproc.c"
+ break;
+
+ case 3107: /* bare_label_keyword: SOME */
+#line 16799 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("some");
+}
+#line 62025 "preproc.c"
+ break;
+
+ case 3108: /* bare_label_keyword: SQL_P */
+#line 16803 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sql");
+}
+#line 62033 "preproc.c"
+ break;
+
+ case 3109: /* bare_label_keyword: STABLE */
+#line 16807 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stable");
+}
+#line 62041 "preproc.c"
+ break;
+
+ case 3110: /* bare_label_keyword: STANDALONE_P */
+#line 16811 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("standalone");
+}
+#line 62049 "preproc.c"
+ break;
+
+ case 3111: /* bare_label_keyword: START */
+#line 16815 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("start");
+}
+#line 62057 "preproc.c"
+ break;
+
+ case 3112: /* bare_label_keyword: STATEMENT */
+#line 16819 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("statement");
+}
+#line 62065 "preproc.c"
+ break;
+
+ case 3113: /* bare_label_keyword: STATISTICS */
+#line 16823 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("statistics");
+}
+#line 62073 "preproc.c"
+ break;
+
+ case 3114: /* bare_label_keyword: STDIN */
+#line 16827 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stdin");
+}
+#line 62081 "preproc.c"
+ break;
+
+ case 3115: /* bare_label_keyword: STDOUT */
+#line 16831 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stdout");
+}
+#line 62089 "preproc.c"
+ break;
+
+ case 3116: /* bare_label_keyword: STORAGE */
+#line 16835 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("storage");
+}
+#line 62097 "preproc.c"
+ break;
+
+ case 3117: /* bare_label_keyword: STORED */
+#line 16839 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("stored");
+}
+#line 62105 "preproc.c"
+ break;
+
+ case 3118: /* bare_label_keyword: STRICT_P */
+#line 16843 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("strict");
+}
+#line 62113 "preproc.c"
+ break;
+
+ case 3119: /* bare_label_keyword: STRIP_P */
+#line 16847 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("strip");
+}
+#line 62121 "preproc.c"
+ break;
+
+ case 3120: /* bare_label_keyword: SUBSCRIPTION */
+#line 16851 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("subscription");
+}
+#line 62129 "preproc.c"
+ break;
+
+ case 3121: /* bare_label_keyword: SUBSTRING */
+#line 16855 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("substring");
+}
+#line 62137 "preproc.c"
+ break;
+
+ case 3122: /* bare_label_keyword: SUPPORT */
+#line 16859 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("support");
+}
+#line 62145 "preproc.c"
+ break;
+
+ case 3123: /* bare_label_keyword: SYMMETRIC */
+#line 16863 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("symmetric");
+}
+#line 62153 "preproc.c"
+ break;
+
+ case 3124: /* bare_label_keyword: SYSID */
+#line 16867 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("sysid");
+}
+#line 62161 "preproc.c"
+ break;
+
+ case 3125: /* bare_label_keyword: SYSTEM_P */
+#line 16871 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("system");
+}
+#line 62169 "preproc.c"
+ break;
+
+ case 3126: /* bare_label_keyword: TABLE */
+#line 16875 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("table");
+}
+#line 62177 "preproc.c"
+ break;
+
+ case 3127: /* bare_label_keyword: TABLES */
+#line 16879 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tables");
+}
+#line 62185 "preproc.c"
+ break;
+
+ case 3128: /* bare_label_keyword: TABLESAMPLE */
+#line 16883 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tablesample");
+}
+#line 62193 "preproc.c"
+ break;
+
+ case 3129: /* bare_label_keyword: TABLESPACE */
+#line 16887 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("tablespace");
+}
+#line 62201 "preproc.c"
+ break;
+
+ case 3130: /* bare_label_keyword: TEMP */
+#line 16891 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("temp");
+}
+#line 62209 "preproc.c"
+ break;
+
+ case 3131: /* bare_label_keyword: TEMPLATE */
+#line 16895 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("template");
+}
+#line 62217 "preproc.c"
+ break;
+
+ case 3132: /* bare_label_keyword: TEMPORARY */
+#line 16899 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("temporary");
+}
+#line 62225 "preproc.c"
+ break;
+
+ case 3133: /* bare_label_keyword: TEXT_P */
+#line 16903 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("text");
+}
+#line 62233 "preproc.c"
+ break;
+
+ case 3134: /* bare_label_keyword: THEN */
+#line 16907 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("then");
+}
+#line 62241 "preproc.c"
+ break;
+
+ case 3135: /* bare_label_keyword: TIES */
+#line 16911 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("ties");
+}
+#line 62249 "preproc.c"
+ break;
+
+ case 3136: /* bare_label_keyword: TIME */
+#line 16915 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("time");
+}
+#line 62257 "preproc.c"
+ break;
+
+ case 3137: /* bare_label_keyword: TIMESTAMP */
+#line 16919 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("timestamp");
+}
+#line 62265 "preproc.c"
+ break;
+
+ case 3138: /* bare_label_keyword: TRAILING */
+#line 16923 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trailing");
+}
+#line 62273 "preproc.c"
+ break;
+
+ case 3139: /* bare_label_keyword: TRANSACTION */
+#line 16927 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("transaction");
+}
+#line 62281 "preproc.c"
+ break;
+
+ case 3140: /* bare_label_keyword: TRANSFORM */
+#line 16931 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("transform");
+}
+#line 62289 "preproc.c"
+ break;
+
+ case 3141: /* bare_label_keyword: TREAT */
+#line 16935 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("treat");
+}
+#line 62297 "preproc.c"
+ break;
+
+ case 3142: /* bare_label_keyword: TRIGGER */
+#line 16939 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trigger");
+}
+#line 62305 "preproc.c"
+ break;
+
+ case 3143: /* bare_label_keyword: TRIM */
+#line 16943 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trim");
+}
+#line 62313 "preproc.c"
+ break;
+
+ case 3144: /* bare_label_keyword: TRUE_P */
+#line 16947 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("true");
+}
+#line 62321 "preproc.c"
+ break;
+
+ case 3145: /* bare_label_keyword: TRUNCATE */
+#line 16951 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("truncate");
+}
+#line 62329 "preproc.c"
+ break;
+
+ case 3146: /* bare_label_keyword: TRUSTED */
+#line 16955 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("trusted");
+}
+#line 62337 "preproc.c"
+ break;
+
+ case 3147: /* bare_label_keyword: TYPE_P */
+#line 16959 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("type");
+}
+#line 62345 "preproc.c"
+ break;
+
+ case 3148: /* bare_label_keyword: TYPES_P */
+#line 16963 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("types");
+}
+#line 62353 "preproc.c"
+ break;
+
+ case 3149: /* bare_label_keyword: UESCAPE */
+#line 16967 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("uescape");
+}
+#line 62361 "preproc.c"
+ break;
+
+ case 3150: /* bare_label_keyword: UNBOUNDED */
+#line 16971 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unbounded");
+}
+#line 62369 "preproc.c"
+ break;
+
+ case 3151: /* bare_label_keyword: UNCOMMITTED */
+#line 16975 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("uncommitted");
+}
+#line 62377 "preproc.c"
+ break;
+
+ case 3152: /* bare_label_keyword: UNENCRYPTED */
+#line 16979 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unencrypted");
+}
+#line 62385 "preproc.c"
+ break;
+
+ case 3153: /* bare_label_keyword: UNIQUE */
+#line 16983 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unique");
+}
+#line 62393 "preproc.c"
+ break;
+
+ case 3154: /* bare_label_keyword: UNKNOWN */
+#line 16987 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unknown");
+}
+#line 62401 "preproc.c"
+ break;
+
+ case 3155: /* bare_label_keyword: UNLISTEN */
+#line 16991 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unlisten");
+}
+#line 62409 "preproc.c"
+ break;
+
+ case 3156: /* bare_label_keyword: UNLOGGED */
+#line 16995 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("unlogged");
+}
+#line 62417 "preproc.c"
+ break;
+
+ case 3157: /* bare_label_keyword: UNTIL */
+#line 16999 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("until");
+}
+#line 62425 "preproc.c"
+ break;
+
+ case 3158: /* bare_label_keyword: UPDATE */
+#line 17003 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("update");
+}
+#line 62433 "preproc.c"
+ break;
+
+ case 3159: /* bare_label_keyword: USER */
+#line 17007 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("user");
+}
+#line 62441 "preproc.c"
+ break;
+
+ case 3160: /* bare_label_keyword: USING */
+#line 17011 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("using");
+}
+#line 62449 "preproc.c"
+ break;
+
+ case 3161: /* bare_label_keyword: VACUUM */
+#line 17015 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("vacuum");
+}
+#line 62457 "preproc.c"
+ break;
+
+ case 3162: /* bare_label_keyword: VALID */
+#line 17019 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("valid");
+}
+#line 62465 "preproc.c"
+ break;
+
+ case 3163: /* bare_label_keyword: VALIDATE */
+#line 17023 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("validate");
+}
+#line 62473 "preproc.c"
+ break;
+
+ case 3164: /* bare_label_keyword: VALIDATOR */
+#line 17027 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("validator");
+}
+#line 62481 "preproc.c"
+ break;
+
+ case 3165: /* bare_label_keyword: VALUE_P */
+#line 17031 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("value");
+}
+#line 62489 "preproc.c"
+ break;
+
+ case 3166: /* bare_label_keyword: VALUES */
+#line 17035 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("values");
+}
+#line 62497 "preproc.c"
+ break;
+
+ case 3167: /* bare_label_keyword: VARCHAR */
+#line 17039 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("varchar");
+}
+#line 62505 "preproc.c"
+ break;
+
+ case 3168: /* bare_label_keyword: VARIADIC */
+#line 17043 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("variadic");
+}
+#line 62513 "preproc.c"
+ break;
+
+ case 3169: /* bare_label_keyword: VERBOSE */
+#line 17047 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("verbose");
+}
+#line 62521 "preproc.c"
+ break;
+
+ case 3170: /* bare_label_keyword: VERSION_P */
+#line 17051 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("version");
+}
+#line 62529 "preproc.c"
+ break;
+
+ case 3171: /* bare_label_keyword: VIEW */
+#line 17055 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("view");
+}
+#line 62537 "preproc.c"
+ break;
+
+ case 3172: /* bare_label_keyword: VIEWS */
+#line 17059 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("views");
+}
+#line 62545 "preproc.c"
+ break;
+
+ case 3173: /* bare_label_keyword: VOLATILE */
+#line 17063 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("volatile");
+}
+#line 62553 "preproc.c"
+ break;
+
+ case 3174: /* bare_label_keyword: WHEN */
+#line 17067 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("when");
+}
+#line 62561 "preproc.c"
+ break;
+
+ case 3175: /* bare_label_keyword: WHITESPACE_P */
+#line 17071 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("whitespace");
+}
+#line 62569 "preproc.c"
+ break;
+
+ case 3176: /* bare_label_keyword: WORK */
+#line 17075 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("work");
+}
+#line 62577 "preproc.c"
+ break;
+
+ case 3177: /* bare_label_keyword: WRAPPER */
+#line 17079 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("wrapper");
+}
+#line 62585 "preproc.c"
+ break;
+
+ case 3178: /* bare_label_keyword: WRITE */
+#line 17083 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("write");
+}
+#line 62593 "preproc.c"
+ break;
+
+ case 3179: /* bare_label_keyword: XML_P */
+#line 17087 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xml");
+}
+#line 62601 "preproc.c"
+ break;
+
+ case 3180: /* bare_label_keyword: XMLATTRIBUTES */
+#line 17091 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlattributes");
+}
+#line 62609 "preproc.c"
+ break;
+
+ case 3181: /* bare_label_keyword: XMLCONCAT */
+#line 17095 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlconcat");
+}
+#line 62617 "preproc.c"
+ break;
+
+ case 3182: /* bare_label_keyword: XMLELEMENT */
+#line 17099 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlelement");
+}
+#line 62625 "preproc.c"
+ break;
+
+ case 3183: /* bare_label_keyword: XMLEXISTS */
+#line 17103 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlexists");
+}
+#line 62633 "preproc.c"
+ break;
+
+ case 3184: /* bare_label_keyword: XMLFOREST */
+#line 17107 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlforest");
+}
+#line 62641 "preproc.c"
+ break;
+
+ case 3185: /* bare_label_keyword: XMLNAMESPACES */
+#line 17111 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlnamespaces");
+}
+#line 62649 "preproc.c"
+ break;
+
+ case 3186: /* bare_label_keyword: XMLPARSE */
+#line 17115 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlparse");
+}
+#line 62657 "preproc.c"
+ break;
+
+ case 3187: /* bare_label_keyword: XMLPI */
+#line 17119 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlpi");
+}
+#line 62665 "preproc.c"
+ break;
+
+ case 3188: /* bare_label_keyword: XMLROOT */
+#line 17123 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlroot");
+}
+#line 62673 "preproc.c"
+ break;
+
+ case 3189: /* bare_label_keyword: XMLSERIALIZE */
+#line 17127 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmlserialize");
+}
+#line 62681 "preproc.c"
+ break;
+
+ case 3190: /* bare_label_keyword: XMLTABLE */
+#line 17131 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("xmltable");
+}
+#line 62689 "preproc.c"
+ break;
+
+ case 3191: /* bare_label_keyword: YES_P */
+#line 17135 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("yes");
+}
+#line 62697 "preproc.c"
+ break;
+
+ case 3192: /* bare_label_keyword: ZONE */
+#line 17139 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("zone");
+}
+#line 62705 "preproc.c"
+ break;
+
+ case 3195: /* statement: ecpgstart at toplevel_stmt ';' */
+#line 17153 "preproc.y"
+ {
+ if (connection)
+ free(connection);
+ connection = NULL;
+ }
+#line 62715 "preproc.c"
+ break;
+
+ case 3196: /* statement: ecpgstart toplevel_stmt ';' */
+#line 17159 "preproc.y"
+ {
+ if (connection)
+ free(connection);
+ connection = NULL;
+ }
+#line 62725 "preproc.c"
+ break;
+
+ case 3197: /* statement: ecpgstart ECPGVarDeclaration */
+#line 17165 "preproc.y"
+ {
+ fprintf(base_yyout, "%s", (yyvsp[0].str));
+ free((yyvsp[0].str));
+ output_line_number();
+ }
+#line 62735 "preproc.c"
+ break;
+
+ case 3199: /* statement: c_thing */
+#line 17171 "preproc.y"
+ { fprintf(base_yyout, "%s", (yyvsp[0].str)); free((yyvsp[0].str)); }
+#line 62741 "preproc.c"
+ break;
+
+ case 3200: /* statement: CPP_LINE */
+#line 17172 "preproc.y"
+ { fprintf(base_yyout, "%s", (yyvsp[0].str)); free((yyvsp[0].str)); }
+#line 62747 "preproc.c"
+ break;
+
+ case 3201: /* statement: '{' */
+#line 17173 "preproc.y"
+ { braces_open++; fputs("{", base_yyout); }
+#line 62753 "preproc.c"
+ break;
+
+ case 3202: /* statement: '}' */
+#line 17175 "preproc.y"
+ {
+ remove_typedefs(braces_open);
+ remove_variables(braces_open--);
+ if (braces_open == 0)
+ {
+ free(current_function);
+ current_function = NULL;
+ }
+ fputs("}", base_yyout);
+ }
+#line 62768 "preproc.c"
+ break;
+
+ case 3203: /* $@1: %empty */
+#line 17187 "preproc.y"
+ {FoundInto = 0;}
+#line 62774 "preproc.c"
+ break;
+
+ case 3204: /* CreateAsStmt: CREATE OptTemp TABLE create_as_target AS $@1 SelectStmt opt_with_data */
+#line 17188 "preproc.y"
+ {
+ if (FoundInto == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
+
+ (yyval.str) = cat_str(7, mm_strdup("create"), (yyvsp[-6].str), mm_strdup("table"), (yyvsp[-4].str), mm_strdup("as"), (yyvsp[-1].str), (yyvsp[0].str));
+ }
+#line 62785 "preproc.c"
+ break;
+
+ case 3205: /* $@2: %empty */
+#line 17194 "preproc.y"
+ {FoundInto = 0;}
+#line 62791 "preproc.c"
+ break;
+
+ case 3206: /* CreateAsStmt: CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS $@2 SelectStmt opt_with_data */
+#line 17195 "preproc.y"
+ {
+ if (FoundInto == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
+
+ (yyval.str) = cat_str(7, mm_strdup("create"), (yyvsp[-9].str), mm_strdup("table if not exists"), (yyvsp[-4].str), mm_strdup("as"), (yyvsp[-1].str), (yyvsp[0].str));
+ }
+#line 62802 "preproc.c"
+ break;
+
+ case 3207: /* at: AT connection_object */
+#line 17204 "preproc.y"
+ {
+ connection = (yyvsp[0].str);
+ /*
+ * Do we have a variable as connection target? Remove the variable
+ * from the variable list or else it will be used twice.
+ */
+ if (argsinsert != NULL)
+ argsinsert = NULL;
+ }
+#line 62816 "preproc.c"
+ break;
+
+ case 3208: /* ECPGConnect: SQL_CONNECT TO connection_target opt_connection_name opt_user */
+#line 17219 "preproc.y"
+ { (yyval.str) = cat_str(5, (yyvsp[-2].str), mm_strdup(","), (yyvsp[0].str), mm_strdup(","), (yyvsp[-1].str)); }
+#line 62822 "preproc.c"
+ break;
+
+ case 3209: /* ECPGConnect: SQL_CONNECT TO DEFAULT */
+#line 17221 "preproc.y"
+ { (yyval.str) = mm_strdup("NULL, NULL, NULL, \"DEFAULT\""); }
+#line 62828 "preproc.c"
+ break;
+
+ case 3210: /* ECPGConnect: SQL_CONNECT ora_user */
+#line 17224 "preproc.y"
+ { (yyval.str) = cat_str(3, mm_strdup("NULL,"), (yyvsp[0].str), mm_strdup(", NULL")); }
+#line 62834 "preproc.c"
+ break;
+
+ case 3211: /* ECPGConnect: DATABASE connection_target */
+#line 17226 "preproc.y"
+ { (yyval.str) = cat2_str((yyvsp[0].str), mm_strdup(", NULL, NULL, NULL")); }
+#line 62840 "preproc.c"
+ break;
+
+ case 3212: /* connection_target: opt_database_name opt_server opt_port */
+#line 17230 "preproc.y"
+ {
+ /* old style: dbname[@server][:port] */
+ if (strlen((yyvsp[-1].str)) > 0 && *((yyvsp[-1].str)) != '@')
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"@\", found \"%s\"", (yyvsp[-1].str));
+
+ /* C strings need to be handled differently */
+ if ((yyvsp[-2].str)[0] == '\"')
+ (yyval.str) = (yyvsp[-2].str);
+ else
+ (yyval.str) = make3_str(mm_strdup("\""), make3_str((yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str)), mm_strdup("\""));
+ }
+#line 62856 "preproc.c"
+ break;
+
+ case 3213: /* connection_target: db_prefix ':' server opt_port '/' opt_database_name opt_options */
+#line 17242 "preproc.y"
+ {
+ /* new style: <tcp|unix>:postgresql://server[:port][/dbname] */
+ if (strncmp((yyvsp[-6].str), "unix:postgresql", strlen("unix:postgresql")) != 0 && strncmp((yyvsp[-6].str), "tcp:postgresql", strlen("tcp:postgresql")) != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported");
+
+ if (strncmp((yyvsp[-4].str), "//", strlen("//")) != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"://\", found \"%s\"", (yyvsp[-4].str));
+
+ if (strncmp((yyvsp[-6].str), "unix", strlen("unix")) == 0 &&
+ strncmp((yyvsp[-4].str) + strlen("//"), "localhost", strlen("localhost")) != 0 &&
+ strncmp((yyvsp[-4].str) + strlen("//"), "127.0.0.1", strlen("127.0.0.1")) != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "Unix-domain sockets only work on \"localhost\" but not on \"%s\"", (yyvsp[-4].str) + strlen("//"));
+
+ (yyval.str) = make3_str(make3_str(mm_strdup("\""), (yyvsp[-6].str), mm_strdup(":")), (yyvsp[-4].str), make3_str(make3_str((yyvsp[-3].str), mm_strdup("/"), (yyvsp[-1].str)), (yyvsp[0].str), mm_strdup("\"")));
+ }
+#line 62876 "preproc.c"
+ break;
+
+ case 3214: /* connection_target: char_variable */
+#line 17258 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 62884 "preproc.c"
+ break;
+
+ case 3215: /* connection_target: ecpg_sconst */
+#line 17262 "preproc.y"
+ {
+ /* We can only process double quoted strings not single quotes ones,
+ * so we change the quotes.
+ * Note, that the rule for ecpg_sconst adds these single quotes. */
+ (yyvsp[0].str)[0] = '\"';
+ (yyvsp[0].str)[strlen((yyvsp[0].str))-1] = '\"';
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 62897 "preproc.c"
+ break;
+
+ case 3216: /* opt_database_name: name */
+#line 17272 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 62903 "preproc.c"
+ break;
+
+ case 3217: /* opt_database_name: %empty */
+#line 17273 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 62909 "preproc.c"
+ break;
+
+ case 3218: /* db_prefix: ecpg_ident cvariable */
+#line 17277 "preproc.y"
+ {
+ if (strcmp((yyvsp[0].str), "postgresql") != 0 && strcmp((yyvsp[0].str), "postgres") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"postgresql\", found \"%s\"", (yyvsp[0].str));
+
+ if (strcmp((yyvsp[-1].str), "tcp") != 0 && strcmp((yyvsp[-1].str), "unix") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid connection type: %s", (yyvsp[-1].str));
+
+ (yyval.str) = make3_str((yyvsp[-1].str), mm_strdup(":"), (yyvsp[0].str));
+ }
+#line 62923 "preproc.c"
+ break;
+
+ case 3219: /* server: Op server_name */
+#line 17289 "preproc.y"
+ {
+ if (strcmp((yyvsp[-1].str), "@") != 0 && strcmp((yyvsp[-1].str), "//") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"@\" or \"://\", found \"%s\"", (yyvsp[-1].str));
+
+ (yyval.str) = make2_str((yyvsp[-1].str), (yyvsp[0].str));
+ }
+#line 62934 "preproc.c"
+ break;
+
+ case 3220: /* opt_server: server */
+#line 17297 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 62940 "preproc.c"
+ break;
+
+ case 3221: /* opt_server: %empty */
+#line 17298 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 62946 "preproc.c"
+ break;
+
+ case 3222: /* server_name: ColId */
+#line 17301 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 62952 "preproc.c"
+ break;
+
+ case 3223: /* server_name: ColId '.' server_name */
+#line 17302 "preproc.y"
+ { (yyval.str) = make3_str((yyvsp[-2].str), mm_strdup("."), (yyvsp[0].str)); }
+#line 62958 "preproc.c"
+ break;
+
+ case 3224: /* server_name: IP */
+#line 17303 "preproc.y"
+ { (yyval.str) = make_name(); }
+#line 62964 "preproc.c"
+ break;
+
+ case 3225: /* opt_port: ':' Iconst */
+#line 17306 "preproc.y"
+ { (yyval.str) = make2_str(mm_strdup(":"), (yyvsp[0].str)); }
+#line 62970 "preproc.c"
+ break;
+
+ case 3226: /* opt_port: %empty */
+#line 17307 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 62976 "preproc.c"
+ break;
+
+ case 3227: /* opt_connection_name: AS connection_object */
+#line 17310 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 62982 "preproc.c"
+ break;
+
+ case 3228: /* opt_connection_name: %empty */
+#line 17311 "preproc.y"
+ { (yyval.str) = mm_strdup("NULL"); }
+#line 62988 "preproc.c"
+ break;
+
+ case 3229: /* opt_user: USER ora_user */
+#line 17314 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 62994 "preproc.c"
+ break;
+
+ case 3230: /* opt_user: %empty */
+#line 17315 "preproc.y"
+ { (yyval.str) = mm_strdup("NULL, NULL"); }
+#line 63000 "preproc.c"
+ break;
+
+ case 3231: /* ora_user: user_name */
+#line 17319 "preproc.y"
+ { (yyval.str) = cat2_str((yyvsp[0].str), mm_strdup(", NULL")); }
+#line 63006 "preproc.c"
+ break;
+
+ case 3232: /* ora_user: user_name '/' user_name */
+#line 17321 "preproc.y"
+ { (yyval.str) = cat_str(3, (yyvsp[-2].str), mm_strdup(","), (yyvsp[0].str)); }
+#line 63012 "preproc.c"
+ break;
+
+ case 3233: /* ora_user: user_name SQL_IDENTIFIED BY user_name */
+#line 17323 "preproc.y"
+ { (yyval.str) = cat_str(3, (yyvsp[-3].str), mm_strdup(","), (yyvsp[0].str)); }
+#line 63018 "preproc.c"
+ break;
+
+ case 3234: /* ora_user: user_name USING user_name */
+#line 17325 "preproc.y"
+ { (yyval.str) = cat_str(3, (yyvsp[-2].str), mm_strdup(","), (yyvsp[0].str)); }
+#line 63024 "preproc.c"
+ break;
+
+ case 3235: /* user_name: RoleId */
+#line 17329 "preproc.y"
+ {
+ if ((yyvsp[0].str)[0] == '\"')
+ (yyval.str) = (yyvsp[0].str);
+ else
+ (yyval.str) = make3_str(mm_strdup("\""), (yyvsp[0].str), mm_strdup("\""));
+ }
+#line 63035 "preproc.c"
+ break;
+
+ case 3236: /* user_name: ecpg_sconst */
+#line 17336 "preproc.y"
+ {
+ if ((yyvsp[0].str)[0] == '\"')
+ (yyval.str) = (yyvsp[0].str);
+ else
+ (yyval.str) = make3_str(mm_strdup("\""), (yyvsp[0].str), mm_strdup("\""));
+ }
+#line 63046 "preproc.c"
+ break;
+
+ case 3237: /* user_name: civar */
+#line 17343 "preproc.y"
+ {
+ enum ECPGttype type = argsinsert->variable->type->type;
+
+ /* if array see what's inside */
+ if (type == ECPGt_array)
+ type = argsinsert->variable->type->u.element->type;
+
+ /* handle varchars */
+ if (type == ECPGt_varchar)
+ (yyval.str) = make2_str(mm_strdup(argsinsert->variable->name), mm_strdup(".arr"));
+ else
+ (yyval.str) = mm_strdup(argsinsert->variable->name);
+ }
+#line 63064 "preproc.c"
+ break;
+
+ case 3238: /* char_variable: cvariable */
+#line 17359 "preproc.y"
+ {
+ /* check if we have a string variable */
+ struct variable *p = find_variable((yyvsp[0].str));
+ enum ECPGttype type = p->type->type;
+
+ /* If we have just one character this is not a string */
+ if (atol(p->type->size) == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid data type");
+ else
+ {
+ /* if array see what's inside */
+ if (type == ECPGt_array)
+ type = p->type->u.element->type;
+
+ switch (type)
+ {
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ (yyval.str) = (yyvsp[0].str);
+ break;
+ case ECPGt_varchar:
+ (yyval.str) = make2_str((yyvsp[0].str), mm_strdup(".arr"));
+ break;
+ default:
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid data type");
+ (yyval.str) = (yyvsp[0].str);
+ break;
+ }
+ }
+ }
+#line 63100 "preproc.c"
+ break;
+
+ case 3239: /* opt_options: Op connect_options */
+#line 17393 "preproc.y"
+ {
+ if (strlen((yyvsp[-1].str)) == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "incomplete statement");
+
+ if (strcmp((yyvsp[-1].str), "?") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "unrecognized token \"%s\"", (yyvsp[-1].str));
+
+ (yyval.str) = make2_str(mm_strdup("?"), (yyvsp[0].str));
+ }
+#line 63114 "preproc.c"
+ break;
+
+ case 3240: /* opt_options: %empty */
+#line 17402 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 63120 "preproc.c"
+ break;
+
+ case 3241: /* connect_options: ColId opt_opt_value */
+#line 17406 "preproc.y"
+ {
+ (yyval.str) = make2_str((yyvsp[-1].str), (yyvsp[0].str));
+ }
+#line 63128 "preproc.c"
+ break;
+
+ case 3242: /* connect_options: ColId opt_opt_value Op connect_options */
+#line 17410 "preproc.y"
+ {
+ if (strlen((yyvsp[-1].str)) == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "incomplete statement");
+
+ if (strcmp((yyvsp[-1].str), "&") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "unrecognized token \"%s\"", (yyvsp[-1].str));
+
+ (yyval.str) = cat_str(3, make2_str((yyvsp[-3].str), (yyvsp[-2].str)), (yyvsp[-1].str), (yyvsp[0].str));
+ }
+#line 63142 "preproc.c"
+ break;
+
+ case 3243: /* opt_opt_value: %empty */
+#line 17422 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 63148 "preproc.c"
+ break;
+
+ case 3244: /* opt_opt_value: '=' Iconst */
+#line 17424 "preproc.y"
+ { (yyval.str) = make2_str(mm_strdup("="), (yyvsp[0].str)); }
+#line 63154 "preproc.c"
+ break;
+
+ case 3245: /* opt_opt_value: '=' ecpg_ident */
+#line 17426 "preproc.y"
+ { (yyval.str) = make2_str(mm_strdup("="), (yyvsp[0].str)); }
+#line 63160 "preproc.c"
+ break;
+
+ case 3246: /* opt_opt_value: '=' civar */
+#line 17428 "preproc.y"
+ { (yyval.str) = make2_str(mm_strdup("="), (yyvsp[0].str)); }
+#line 63166 "preproc.c"
+ break;
+
+ case 3247: /* prepared_name: name */
+#line 17432 "preproc.y"
+ {
+ if ((yyvsp[0].str)[0] == '\"' && (yyvsp[0].str)[strlen((yyvsp[0].str))-1] == '\"') /* already quoted? */
+ (yyval.str) = (yyvsp[0].str);
+ else /* not quoted => convert to lowercase */
+ {
+ size_t i;
+
+ for (i = 0; i< strlen((yyvsp[0].str)); i++)
+ (yyvsp[0].str)[i] = tolower((unsigned char) (yyvsp[0].str)[i]);
+
+ (yyval.str) = make3_str(mm_strdup("\""), (yyvsp[0].str), mm_strdup("\""));
+ }
+ }
+#line 63184 "preproc.c"
+ break;
+
+ case 3248: /* prepared_name: char_variable */
+#line 17445 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63190 "preproc.c"
+ break;
+
+ case 3249: /* ECPGDeclareStmt: DECLARE prepared_name STATEMENT */
+#line 17452 "preproc.y"
+ {
+ struct declared_list *ptr = NULL;
+ /* Check whether the declared name has been defined or not */
+ for (ptr = g_declared_list; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp((yyvsp[-1].str), ptr->name) == 0)
+ {
+ /* re-definition is not allowed */
+ mmerror(PARSE_ERROR, ET_ERROR, "name \"%s\" is already declared", ptr->name);
+ }
+ }
+
+ /* Add a new declared name into the g_declared_list */
+ ptr = NULL;
+ ptr = (struct declared_list *)mm_alloc(sizeof(struct declared_list));
+ if (ptr)
+ {
+ /* initial definition */
+ ptr -> name = (yyvsp[-1].str);
+ if (connection)
+ ptr -> connection = mm_strdup(connection);
+ else
+ ptr -> connection = NULL;
+
+ ptr -> next = g_declared_list;
+ g_declared_list = ptr;
+ }
+
+ (yyval.str) = cat_str(3 , mm_strdup("/* declare "), mm_strdup((yyvsp[-1].str)), mm_strdup(" as an SQL identifier */"));
+ }
+#line 63225 "preproc.c"
+ break;
+
+ case 3250: /* ECPGCursorStmt: DECLARE cursor_name cursor_options CURSOR opt_hold FOR prepared_name */
+#line 17489 "preproc.y"
+ {
+ struct cursor *ptr, *this;
+ char *cursor_marker = (yyvsp[-5].str)[0] == ':' ? mm_strdup("$0") : mm_strdup((yyvsp[-5].str));
+ int (* strcmp_fn)(const char *, const char *) = (((yyvsp[-5].str)[0] == ':' || (yyvsp[-5].str)[0] == '"') ? strcmp : pg_strcasecmp);
+ struct variable *thisquery = (struct variable *)mm_alloc(sizeof(struct variable));
+ char *comment;
+ char *con;
+
+ if (INFORMIX_MODE && pg_strcasecmp((yyvsp[-5].str), "database") == 0)
+ mmfatal(PARSE_ERROR, "\"database\" cannot be used as cursor name in INFORMIX mode");
+
+ check_declared_list((yyvsp[0].str));
+ con = connection ? connection : "NULL";
+ for (ptr = cur; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp_fn((yyvsp[-5].str), ptr->name) == 0)
+ {
+ /* re-definition is a bug */
+ if ((yyvsp[-5].str)[0] == ':')
+ mmerror(PARSE_ERROR, ET_ERROR, "using variable \"%s\" in different declare statements is not supported", (yyvsp[-5].str)+1);
+ else
+ mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" is already defined", (yyvsp[-5].str));
+ }
+ }
+
+ this = (struct cursor *) mm_alloc(sizeof(struct cursor));
+
+ /* initial definition */
+ this->next = cur;
+ this->name = (yyvsp[-5].str);
+ this->function = (current_function ? mm_strdup(current_function) : NULL);
+ this->connection = connection ? mm_strdup(connection) : NULL;
+ this->command = cat_str(6, mm_strdup("declare"), cursor_marker, (yyvsp[-4].str), mm_strdup("cursor"), (yyvsp[-2].str), mm_strdup("for $1"));
+ this->argsresult = NULL;
+ this->argsresult_oos = NULL;
+
+ thisquery->type = &ecpg_query;
+ thisquery->brace_level = 0;
+ thisquery->next = NULL;
+ thisquery->name = (char *) mm_alloc(sizeof("ECPGprepared_statement(, , __LINE__)") + strlen(con) + strlen((yyvsp[0].str)));
+ sprintf(thisquery->name, "ECPGprepared_statement(%s, %s, __LINE__)", con, (yyvsp[0].str));
+
+ this->argsinsert = NULL;
+ this->argsinsert_oos = NULL;
+ if ((yyvsp[-5].str)[0] == ':')
+ {
+ struct variable *var = find_variable((yyvsp[-5].str) + 1);
+ remove_variable_from_list(&argsinsert, var);
+ add_variable_to_head(&(this->argsinsert), var, &no_indicator);
+ }
+ add_variable_to_head(&(this->argsinsert), thisquery, &no_indicator);
+
+ cur = this;
+
+ comment = cat_str(3, mm_strdup("/*"), mm_strdup(this->command), mm_strdup("*/"));
+
+ (yyval.str) = cat_str(2, adjust_outofscope_cursor_vars(this),
+ comment);
+ }
+#line 63289 "preproc.c"
+ break;
+
+ case 3251: /* ECPGExecuteImmediateStmt: EXECUTE IMMEDIATE execstring */
+#line 17551 "preproc.y"
+ {
+ /* execute immediate means prepare the statement and
+ * immediately execute it */
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 63299 "preproc.c"
+ break;
+
+ case 3253: /* single_vt_declaration: type_declaration */
+#line 17561 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63305 "preproc.c"
+ break;
+
+ case 3254: /* single_vt_declaration: var_declaration */
+#line 17562 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63311 "preproc.c"
+ break;
+
+ case 3255: /* precision: NumericOnly */
+#line 17565 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63317 "preproc.c"
+ break;
+
+ case 3256: /* opt_scale: ',' NumericOnly */
+#line 17567 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63323 "preproc.c"
+ break;
+
+ case 3257: /* opt_scale: %empty */
+#line 17568 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 63329 "preproc.c"
+ break;
+
+ case 3258: /* ecpg_interval: opt_interval */
+#line 17571 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63335 "preproc.c"
+ break;
+
+ case 3259: /* ecpg_interval: YEAR_P TO MINUTE_P */
+#line 17572 "preproc.y"
+ { (yyval.str) = mm_strdup("year to minute"); }
+#line 63341 "preproc.c"
+ break;
+
+ case 3260: /* ecpg_interval: YEAR_P TO SECOND_P */
+#line 17573 "preproc.y"
+ { (yyval.str) = mm_strdup("year to second"); }
+#line 63347 "preproc.c"
+ break;
+
+ case 3261: /* ecpg_interval: DAY_P TO DAY_P */
+#line 17574 "preproc.y"
+ { (yyval.str) = mm_strdup("day to day"); }
+#line 63353 "preproc.c"
+ break;
+
+ case 3262: /* ecpg_interval: MONTH_P TO MONTH_P */
+#line 17575 "preproc.y"
+ { (yyval.str) = mm_strdup("month to month"); }
+#line 63359 "preproc.c"
+ break;
+
+ case 3263: /* $@3: %empty */
+#line 17582 "preproc.y"
+ { fputs("/* exec sql begin declare section */", base_yyout); }
+#line 63365 "preproc.c"
+ break;
+
+ case 3264: /* ECPGDeclaration: sql_startdeclare $@3 var_type_declarations sql_enddeclare */
+#line 17584 "preproc.y"
+ {
+ fprintf(base_yyout, "%s/* exec sql end declare section */", (yyvsp[-1].str));
+ free((yyvsp[-1].str));
+ output_line_number();
+ }
+#line 63375 "preproc.c"
+ break;
+
+ case 3265: /* sql_startdeclare: ecpgstart BEGIN_P DECLARE SQL_SECTION ';' */
+#line 17591 "preproc.y"
+ {}
+#line 63381 "preproc.c"
+ break;
+
+ case 3266: /* sql_enddeclare: ecpgstart END_P DECLARE SQL_SECTION ';' */
+#line 17593 "preproc.y"
+ {}
+#line 63387 "preproc.c"
+ break;
+
+ case 3267: /* var_type_declarations: %empty */
+#line 17595 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 63393 "preproc.c"
+ break;
+
+ case 3268: /* var_type_declarations: vt_declarations */
+#line 17596 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63399 "preproc.c"
+ break;
+
+ case 3269: /* vt_declarations: single_vt_declaration */
+#line 17599 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63405 "preproc.c"
+ break;
+
+ case 3270: /* vt_declarations: CPP_LINE */
+#line 17600 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63411 "preproc.c"
+ break;
+
+ case 3271: /* vt_declarations: vt_declarations single_vt_declaration */
+#line 17601 "preproc.y"
+ { (yyval.str) = cat2_str((yyvsp[-1].str), (yyvsp[0].str)); }
+#line 63417 "preproc.c"
+ break;
+
+ case 3272: /* vt_declarations: vt_declarations CPP_LINE */
+#line 17602 "preproc.y"
+ { (yyval.str) = cat2_str((yyvsp[-1].str), (yyvsp[0].str)); }
+#line 63423 "preproc.c"
+ break;
+
+ case 3273: /* variable_declarations: var_declaration */
+#line 17605 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63429 "preproc.c"
+ break;
+
+ case 3274: /* variable_declarations: variable_declarations var_declaration */
+#line 17606 "preproc.y"
+ { (yyval.str) = cat2_str((yyvsp[-1].str), (yyvsp[0].str)); }
+#line 63435 "preproc.c"
+ break;
+
+ case 3275: /* $@4: %empty */
+#line 17610 "preproc.y"
+ {
+ /* reset this variable so we see if there was */
+ /* an initializer specified */
+ initializer = 0;
+ }
+#line 63445 "preproc.c"
+ break;
+
+ case 3276: /* type_declaration: S_TYPEDEF $@4 var_type opt_pointer ECPGColLabelCommon opt_array_bounds ';' */
+#line 17616 "preproc.y"
+ {
+ add_typedef((yyvsp[-2].str), (yyvsp[-1].index).index1, (yyvsp[-1].index).index2, (yyvsp[-4].type).type_enum, (yyvsp[-4].type).type_dimension, (yyvsp[-4].type).type_index, initializer, *(yyvsp[-3].str) ? 1 : 0);
+
+ fprintf(base_yyout, "typedef %s %s %s %s;\n", (yyvsp[-4].type).type_str, *(yyvsp[-3].str) ? "*" : "", (yyvsp[-2].str), (yyvsp[-1].index).str);
+ output_line_number();
+ (yyval.str) = mm_strdup("");
+ }
+#line 63457 "preproc.c"
+ break;
+
+ case 3277: /* $@5: %empty */
+#line 17626 "preproc.y"
+ {
+ actual_type[struct_level].type_storage = (yyvsp[-1].str);
+ actual_type[struct_level].type_enum = (yyvsp[0].type).type_enum;
+ actual_type[struct_level].type_str = (yyvsp[0].type).type_str;
+ actual_type[struct_level].type_dimension = (yyvsp[0].type).type_dimension;
+ actual_type[struct_level].type_index = (yyvsp[0].type).type_index;
+ actual_type[struct_level].type_sizeof = (yyvsp[0].type).type_sizeof;
+
+ actual_startline[struct_level] = hashline_number();
+ }
+#line 63472 "preproc.c"
+ break;
+
+ case 3278: /* var_declaration: storage_declaration var_type $@5 variable_list ';' */
+#line 17637 "preproc.y"
+ {
+ (yyval.str) = cat_str(5, actual_startline[struct_level], (yyvsp[-4].str), (yyvsp[-3].type).type_str, (yyvsp[-1].str), mm_strdup(";\n"));
+ }
+#line 63480 "preproc.c"
+ break;
+
+ case 3279: /* $@6: %empty */
+#line 17641 "preproc.y"
+ {
+ actual_type[struct_level].type_storage = EMPTY;
+ actual_type[struct_level].type_enum = (yyvsp[0].type).type_enum;
+ actual_type[struct_level].type_str = (yyvsp[0].type).type_str;
+ actual_type[struct_level].type_dimension = (yyvsp[0].type).type_dimension;
+ actual_type[struct_level].type_index = (yyvsp[0].type).type_index;
+ actual_type[struct_level].type_sizeof = (yyvsp[0].type).type_sizeof;
+
+ actual_startline[struct_level] = hashline_number();
+ }
+#line 63495 "preproc.c"
+ break;
+
+ case 3280: /* var_declaration: var_type $@6 variable_list ';' */
+#line 17652 "preproc.y"
+ {
+ (yyval.str) = cat_str(4, actual_startline[struct_level], (yyvsp[-3].type).type_str, (yyvsp[-1].str), mm_strdup(";\n"));
+ }
+#line 63503 "preproc.c"
+ break;
+
+ case 3281: /* var_declaration: struct_union_type_with_symbol ';' */
+#line 17656 "preproc.y"
+ {
+ (yyval.str) = cat2_str((yyvsp[-1].str), mm_strdup(";"));
+ }
+#line 63511 "preproc.c"
+ break;
+
+ case 3282: /* opt_bit_field: ':' Iconst */
+#line 17661 "preproc.y"
+ { (yyval.str) =cat2_str(mm_strdup(":"), (yyvsp[0].str)); }
+#line 63517 "preproc.c"
+ break;
+
+ case 3283: /* opt_bit_field: %empty */
+#line 17662 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 63523 "preproc.c"
+ break;
+
+ case 3284: /* storage_declaration: storage_clause storage_modifier */
+#line 17666 "preproc.y"
+ {(yyval.str) = cat2_str ((yyvsp[-1].str), (yyvsp[0].str)); }
+#line 63529 "preproc.c"
+ break;
+
+ case 3285: /* storage_declaration: storage_clause */
+#line 17667 "preproc.y"
+ {(yyval.str) = (yyvsp[0].str); }
+#line 63535 "preproc.c"
+ break;
+
+ case 3286: /* storage_declaration: storage_modifier */
+#line 17668 "preproc.y"
+ {(yyval.str) = (yyvsp[0].str); }
+#line 63541 "preproc.c"
+ break;
+
+ case 3287: /* storage_clause: S_EXTERN */
+#line 17671 "preproc.y"
+ { (yyval.str) = mm_strdup("extern"); }
+#line 63547 "preproc.c"
+ break;
+
+ case 3288: /* storage_clause: S_STATIC */
+#line 17672 "preproc.y"
+ { (yyval.str) = mm_strdup("static"); }
+#line 63553 "preproc.c"
+ break;
+
+ case 3289: /* storage_clause: S_REGISTER */
+#line 17673 "preproc.y"
+ { (yyval.str) = mm_strdup("register"); }
+#line 63559 "preproc.c"
+ break;
+
+ case 3290: /* storage_clause: S_AUTO */
+#line 17674 "preproc.y"
+ { (yyval.str) = mm_strdup("auto"); }
+#line 63565 "preproc.c"
+ break;
+
+ case 3291: /* storage_modifier: S_CONST */
+#line 17677 "preproc.y"
+ { (yyval.str) = mm_strdup("const"); }
+#line 63571 "preproc.c"
+ break;
+
+ case 3292: /* storage_modifier: S_VOLATILE */
+#line 17678 "preproc.y"
+ { (yyval.str) = mm_strdup("volatile"); }
+#line 63577 "preproc.c"
+ break;
+
+ case 3293: /* var_type: simple_type */
+#line 17682 "preproc.y"
+ {
+ (yyval.type).type_enum = (yyvsp[0].type_enum);
+ (yyval.type).type_str = mm_strdup(ecpg_type_name((yyvsp[0].type_enum)));
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+#line 63589 "preproc.c"
+ break;
+
+ case 3294: /* var_type: struct_union_type */
+#line 17690 "preproc.y"
+ {
+ (yyval.type).type_str = (yyvsp[0].str);
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+
+ if (strncmp((yyvsp[0].str), "struct", sizeof("struct")-1) == 0)
+ {
+ (yyval.type).type_enum = ECPGt_struct;
+ (yyval.type).type_sizeof = ECPGstruct_sizeof;
+ }
+ else
+ {
+ (yyval.type).type_enum = ECPGt_union;
+ (yyval.type).type_sizeof = NULL;
+ }
+ }
+#line 63610 "preproc.c"
+ break;
+
+ case 3295: /* var_type: enum_type */
+#line 17707 "preproc.y"
+ {
+ (yyval.type).type_str = (yyvsp[0].str);
+ (yyval.type).type_enum = ECPGt_int;
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+#line 63622 "preproc.c"
+ break;
+
+ case 3296: /* var_type: ECPGColLabelCommon '(' precision opt_scale ')' */
+#line 17715 "preproc.y"
+ {
+ if (strcmp((yyvsp[-4].str), "numeric") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_numeric;
+ (yyval.type).type_str = mm_strdup("numeric");
+ }
+ else if (strcmp((yyvsp[-4].str), "decimal") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_decimal;
+ (yyval.type).type_str = mm_strdup("decimal");
+ }
+ else
+ {
+ mmerror(PARSE_ERROR, ET_ERROR, "only data types numeric and decimal have precision/scale argument");
+ (yyval.type).type_enum = ECPGt_numeric;
+ (yyval.type).type_str = mm_strdup("numeric");
+ }
+
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+#line 63649 "preproc.c"
+ break;
+
+ case 3297: /* var_type: ECPGColLabelCommon ecpg_interval */
+#line 17738 "preproc.y"
+ {
+ if (strlen((yyvsp[0].str)) != 0 && strcmp ((yyvsp[-1].str), "datetime") != 0 && strcmp ((yyvsp[-1].str), "interval") != 0)
+ mmerror (PARSE_ERROR, ET_ERROR, "interval specification not allowed here");
+
+ /*
+ * Check for type names that the SQL grammar treats as
+ * unreserved keywords
+ */
+ if (strcmp((yyvsp[-1].str), "varchar") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_varchar;
+ (yyval.type).type_str = EMPTY; /*mm_strdup("varchar");*/
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if (strcmp((yyvsp[-1].str), "bytea") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_bytea;
+ (yyval.type).type_str = EMPTY;
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if (strcmp((yyvsp[-1].str), "float") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_float;
+ (yyval.type).type_str = mm_strdup("float");
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if (strcmp((yyvsp[-1].str), "double") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_double;
+ (yyval.type).type_str = mm_strdup("double");
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if (strcmp((yyvsp[-1].str), "numeric") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_numeric;
+ (yyval.type).type_str = mm_strdup("numeric");
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if (strcmp((yyvsp[-1].str), "decimal") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_decimal;
+ (yyval.type).type_str = mm_strdup("decimal");
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if (strcmp((yyvsp[-1].str), "date") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_date;
+ (yyval.type).type_str = mm_strdup("date");
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if (strcmp((yyvsp[-1].str), "timestamp") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_timestamp;
+ (yyval.type).type_str = mm_strdup("timestamp");
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if (strcmp((yyvsp[-1].str), "interval") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_interval;
+ (yyval.type).type_str = mm_strdup("interval");
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if (strcmp((yyvsp[-1].str), "datetime") == 0)
+ {
+ (yyval.type).type_enum = ECPGt_timestamp;
+ (yyval.type).type_str = mm_strdup("timestamp");
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else if ((strcmp((yyvsp[-1].str), "string") == 0) && INFORMIX_MODE)
+ {
+ (yyval.type).type_enum = ECPGt_string;
+ (yyval.type).type_str = mm_strdup("char");
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = NULL;
+ }
+ else
+ {
+ /* this is for typedef'ed types */
+ struct typedefs *this = get_typedef((yyvsp[-1].str));
+
+ (yyval.type).type_str = (this->type->type_enum == ECPGt_varchar || this->type->type_enum == ECPGt_bytea) ? EMPTY : mm_strdup(this->name);
+ (yyval.type).type_enum = this->type->type_enum;
+ (yyval.type).type_dimension = this->type->type_dimension;
+ (yyval.type).type_index = this->type->type_index;
+ if (this->type->type_sizeof && strlen(this->type->type_sizeof) != 0)
+ (yyval.type).type_sizeof = this->type->type_sizeof;
+ else
+ (yyval.type).type_sizeof = cat_str(3, mm_strdup("sizeof("), mm_strdup(this->name), mm_strdup(")"));
+
+ struct_member_list[struct_level] = ECPGstruct_member_dup(this->struct_member_list);
+ }
+ }
+#line 63767 "preproc.c"
+ break;
+
+ case 3298: /* var_type: s_struct_union_symbol */
+#line 17852 "preproc.y"
+ {
+ /* this is for named structs/unions */
+ char *name;
+ struct typedefs *this;
+ bool forward = (forward_name != NULL && strcmp((yyvsp[0].struct_union).symbol, forward_name) == 0 && strcmp((yyvsp[0].struct_union).su, "struct") == 0);
+
+ name = cat2_str((yyvsp[0].struct_union).su, (yyvsp[0].struct_union).symbol);
+ /* Do we have a forward definition? */
+ if (!forward)
+ {
+ /* No */
+
+ this = get_typedef(name);
+ (yyval.type).type_str = mm_strdup(this->name);
+ (yyval.type).type_enum = this->type->type_enum;
+ (yyval.type).type_dimension = this->type->type_dimension;
+ (yyval.type).type_index = this->type->type_index;
+ (yyval.type).type_sizeof = this->type->type_sizeof;
+ struct_member_list[struct_level] = ECPGstruct_member_dup(this->struct_member_list);
+ free(name);
+ }
+ else
+ {
+ (yyval.type).type_str = name;
+ (yyval.type).type_enum = ECPGt_long;
+ (yyval.type).type_dimension = mm_strdup("-1");
+ (yyval.type).type_index = mm_strdup("-1");
+ (yyval.type).type_sizeof = mm_strdup("");
+ struct_member_list[struct_level] = NULL;
+ }
+ }
+#line 63803 "preproc.c"
+ break;
+
+ case 3299: /* enum_type: ENUM_P symbol enum_definition */
+#line 17886 "preproc.y"
+ { (yyval.str) = cat_str(3, mm_strdup("enum"), (yyvsp[-1].str), (yyvsp[0].str)); }
+#line 63809 "preproc.c"
+ break;
+
+ case 3300: /* enum_type: ENUM_P enum_definition */
+#line 17888 "preproc.y"
+ { (yyval.str) = cat2_str(mm_strdup("enum"), (yyvsp[0].str)); }
+#line 63815 "preproc.c"
+ break;
+
+ case 3301: /* enum_type: ENUM_P symbol */
+#line 17890 "preproc.y"
+ { (yyval.str) = cat2_str(mm_strdup("enum"), (yyvsp[0].str)); }
+#line 63821 "preproc.c"
+ break;
+
+ case 3302: /* enum_definition: '{' c_list '}' */
+#line 17894 "preproc.y"
+ { (yyval.str) = cat_str(3, mm_strdup("{"), (yyvsp[-1].str), mm_strdup("}")); }
+#line 63827 "preproc.c"
+ break;
+
+ case 3303: /* $@7: %empty */
+#line 17897 "preproc.y"
+ {
+ struct_member_list[struct_level++] = NULL;
+ if (struct_level >= STRUCT_DEPTH)
+ mmerror(PARSE_ERROR, ET_ERROR, "too many levels in nested structure/union definition");
+ forward_name = mm_strdup((yyvsp[0].struct_union).symbol);
+ }
+#line 63838 "preproc.c"
+ break;
+
+ case 3304: /* struct_union_type_with_symbol: s_struct_union_symbol $@7 '{' variable_declarations '}' */
+#line 17904 "preproc.y"
+ {
+ struct typedefs *ptr, *this;
+ struct this_type su_type;
+
+ ECPGfree_struct_member(struct_member_list[struct_level]);
+ struct_member_list[struct_level] = NULL;
+ struct_level--;
+ if (strncmp((yyvsp[-4].struct_union).su, "struct", sizeof("struct")-1) == 0)
+ su_type.type_enum = ECPGt_struct;
+ else
+ su_type.type_enum = ECPGt_union;
+ su_type.type_str = cat2_str((yyvsp[-4].struct_union).su, (yyvsp[-4].struct_union).symbol);
+ free(forward_name);
+ forward_name = NULL;
+
+ /* This is essentially a typedef but needs the keyword struct/union as well.
+ * So we create the typedef for each struct definition with symbol */
+ for (ptr = types; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp(su_type.type_str, ptr->name) == 0)
+ /* re-definition is a bug */
+ mmerror(PARSE_ERROR, ET_ERROR, "type \"%s\" is already defined", su_type.type_str);
+ }
+
+ this = (struct typedefs *) mm_alloc(sizeof(struct typedefs));
+
+ /* initial definition */
+ this->next = types;
+ this->name = mm_strdup(su_type.type_str);
+ this->brace_level = braces_open;
+ this->type = (struct this_type *) mm_alloc(sizeof(struct this_type));
+ this->type->type_enum = su_type.type_enum;
+ this->type->type_str = mm_strdup(su_type.type_str);
+ this->type->type_dimension = mm_strdup("-1"); /* dimension of array */
+ this->type->type_index = mm_strdup("-1"); /* length of string */
+ this->type->type_sizeof = ECPGstruct_sizeof;
+ this->struct_member_list = struct_member_list[struct_level];
+
+ types = this;
+ (yyval.str) = cat_str(4, su_type.type_str, mm_strdup("{"), (yyvsp[-1].str), mm_strdup("}"));
+ }
+#line 63884 "preproc.c"
+ break;
+
+ case 3305: /* struct_union_type: struct_union_type_with_symbol */
+#line 17947 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 63890 "preproc.c"
+ break;
+
+ case 3306: /* $@8: %empty */
+#line 17949 "preproc.y"
+ {
+ struct_member_list[struct_level++] = NULL;
+ if (struct_level >= STRUCT_DEPTH)
+ mmerror(PARSE_ERROR, ET_ERROR, "too many levels in nested structure/union definition");
+ }
+#line 63900 "preproc.c"
+ break;
+
+ case 3307: /* struct_union_type: s_struct_union $@8 '{' variable_declarations '}' */
+#line 17955 "preproc.y"
+ {
+ ECPGfree_struct_member(struct_member_list[struct_level]);
+ struct_member_list[struct_level] = NULL;
+ struct_level--;
+ (yyval.str) = cat_str(4, (yyvsp[-4].str), mm_strdup("{"), (yyvsp[-1].str), mm_strdup("}"));
+ }
+#line 63911 "preproc.c"
+ break;
+
+ case 3308: /* s_struct_union_symbol: SQL_STRUCT symbol */
+#line 17964 "preproc.y"
+ {
+ (yyval.struct_union).su = mm_strdup("struct");
+ (yyval.struct_union).symbol = (yyvsp[0].str);
+ ECPGstruct_sizeof = cat_str(3, mm_strdup("sizeof("), cat2_str(mm_strdup((yyval.struct_union).su), mm_strdup((yyval.struct_union).symbol)), mm_strdup(")"));
+ }
+#line 63921 "preproc.c"
+ break;
+
+ case 3309: /* s_struct_union_symbol: UNION symbol */
+#line 17970 "preproc.y"
+ {
+ (yyval.struct_union).su = mm_strdup("union");
+ (yyval.struct_union).symbol = (yyvsp[0].str);
+ }
+#line 63930 "preproc.c"
+ break;
+
+ case 3310: /* s_struct_union: SQL_STRUCT */
+#line 17977 "preproc.y"
+ {
+ ECPGstruct_sizeof = mm_strdup(""); /* This must not be NULL to distinguish from simple types. */
+ (yyval.str) = mm_strdup("struct");
+ }
+#line 63939 "preproc.c"
+ break;
+
+ case 3311: /* s_struct_union: UNION */
+#line 17982 "preproc.y"
+ {
+ (yyval.str) = mm_strdup("union");
+ }
+#line 63947 "preproc.c"
+ break;
+
+ case 3312: /* simple_type: unsigned_type */
+#line 17987 "preproc.y"
+ { (yyval.type_enum)=(yyvsp[0].type_enum); }
+#line 63953 "preproc.c"
+ break;
+
+ case 3313: /* simple_type: opt_signed signed_type */
+#line 17988 "preproc.y"
+ { (yyval.type_enum)=(yyvsp[0].type_enum); }
+#line 63959 "preproc.c"
+ break;
+
+ case 3314: /* unsigned_type: SQL_UNSIGNED SQL_SHORT */
+#line 17991 "preproc.y"
+ { (yyval.type_enum) = ECPGt_unsigned_short; }
+#line 63965 "preproc.c"
+ break;
+
+ case 3315: /* unsigned_type: SQL_UNSIGNED SQL_SHORT INT_P */
+#line 17992 "preproc.y"
+ { (yyval.type_enum) = ECPGt_unsigned_short; }
+#line 63971 "preproc.c"
+ break;
+
+ case 3316: /* unsigned_type: SQL_UNSIGNED */
+#line 17993 "preproc.y"
+ { (yyval.type_enum) = ECPGt_unsigned_int; }
+#line 63977 "preproc.c"
+ break;
+
+ case 3317: /* unsigned_type: SQL_UNSIGNED INT_P */
+#line 17994 "preproc.y"
+ { (yyval.type_enum) = ECPGt_unsigned_int; }
+#line 63983 "preproc.c"
+ break;
+
+ case 3318: /* unsigned_type: SQL_UNSIGNED SQL_LONG */
+#line 17995 "preproc.y"
+ { (yyval.type_enum) = ECPGt_unsigned_long; }
+#line 63989 "preproc.c"
+ break;
+
+ case 3319: /* unsigned_type: SQL_UNSIGNED SQL_LONG INT_P */
+#line 17996 "preproc.y"
+ { (yyval.type_enum) = ECPGt_unsigned_long; }
+#line 63995 "preproc.c"
+ break;
+
+ case 3320: /* unsigned_type: SQL_UNSIGNED SQL_LONG SQL_LONG */
+#line 17997 "preproc.y"
+ { (yyval.type_enum) = ECPGt_unsigned_long_long; }
+#line 64001 "preproc.c"
+ break;
+
+ case 3321: /* unsigned_type: SQL_UNSIGNED SQL_LONG SQL_LONG INT_P */
+#line 17998 "preproc.y"
+ { (yyval.type_enum) = ECPGt_unsigned_long_long; }
+#line 64007 "preproc.c"
+ break;
+
+ case 3322: /* unsigned_type: SQL_UNSIGNED CHAR_P */
+#line 17999 "preproc.y"
+ { (yyval.type_enum) = ECPGt_unsigned_char; }
+#line 64013 "preproc.c"
+ break;
+
+ case 3323: /* signed_type: SQL_SHORT */
+#line 18002 "preproc.y"
+ { (yyval.type_enum) = ECPGt_short; }
+#line 64019 "preproc.c"
+ break;
+
+ case 3324: /* signed_type: SQL_SHORT INT_P */
+#line 18003 "preproc.y"
+ { (yyval.type_enum) = ECPGt_short; }
+#line 64025 "preproc.c"
+ break;
+
+ case 3325: /* signed_type: INT_P */
+#line 18004 "preproc.y"
+ { (yyval.type_enum) = ECPGt_int; }
+#line 64031 "preproc.c"
+ break;
+
+ case 3326: /* signed_type: SQL_LONG */
+#line 18005 "preproc.y"
+ { (yyval.type_enum) = ECPGt_long; }
+#line 64037 "preproc.c"
+ break;
+
+ case 3327: /* signed_type: SQL_LONG INT_P */
+#line 18006 "preproc.y"
+ { (yyval.type_enum) = ECPGt_long; }
+#line 64043 "preproc.c"
+ break;
+
+ case 3328: /* signed_type: SQL_LONG SQL_LONG */
+#line 18007 "preproc.y"
+ { (yyval.type_enum) = ECPGt_long_long; }
+#line 64049 "preproc.c"
+ break;
+
+ case 3329: /* signed_type: SQL_LONG SQL_LONG INT_P */
+#line 18008 "preproc.y"
+ { (yyval.type_enum) = ECPGt_long_long; }
+#line 64055 "preproc.c"
+ break;
+
+ case 3330: /* signed_type: SQL_BOOL */
+#line 18009 "preproc.y"
+ { (yyval.type_enum) = ECPGt_bool; }
+#line 64061 "preproc.c"
+ break;
+
+ case 3331: /* signed_type: CHAR_P */
+#line 18010 "preproc.y"
+ { (yyval.type_enum) = ECPGt_char; }
+#line 64067 "preproc.c"
+ break;
+
+ case 3332: /* signed_type: DOUBLE_P */
+#line 18011 "preproc.y"
+ { (yyval.type_enum) = ECPGt_double; }
+#line 64073 "preproc.c"
+ break;
+
+ case 3335: /* variable_list: variable */
+#line 18019 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64079 "preproc.c"
+ break;
+
+ case 3336: /* variable_list: variable_list ',' variable */
+#line 18021 "preproc.y"
+ {
+ if (actual_type[struct_level].type_enum == ECPGt_varchar || actual_type[struct_level].type_enum == ECPGt_bytea)
+ (yyval.str) = cat_str(4, (yyvsp[-2].str), mm_strdup(";"), mm_strdup(actual_type[struct_level].type_storage), (yyvsp[0].str));
+ else
+ (yyval.str) = cat_str(3, (yyvsp[-2].str), mm_strdup(","), (yyvsp[0].str));
+ }
+#line 64090 "preproc.c"
+ break;
+
+ case 3337: /* variable: opt_pointer ECPGColLabel opt_array_bounds opt_bit_field opt_initializer */
+#line 18030 "preproc.y"
+ {
+ struct ECPGtype * type;
+ char *dimension = (yyvsp[-2].index).index1; /* dimension of array */
+ char *length = (yyvsp[-2].index).index2; /* length of string */
+ char *dim_str;
+ char *vcn;
+ int *varlen_type_counter;
+ char *struct_name;
+
+ adjust_array(actual_type[struct_level].type_enum, &dimension, &length, actual_type[struct_level].type_dimension, actual_type[struct_level].type_index, strlen((yyvsp[-4].str)), false);
+ switch (actual_type[struct_level].type_enum)
+ {
+ case ECPGt_struct:
+ case ECPGt_union:
+ if (atoi(dimension) < 0)
+ type = ECPGmake_struct_type(struct_member_list[struct_level], actual_type[struct_level].type_enum, actual_type[struct_level].type_str, actual_type[struct_level].type_sizeof);
+ else
+ type = ECPGmake_array_type(ECPGmake_struct_type(struct_member_list[struct_level], actual_type[struct_level].type_enum, actual_type[struct_level].type_str, actual_type[struct_level].type_sizeof), dimension);
+
+ (yyval.str) = cat_str(5, (yyvsp[-4].str), mm_strdup((yyvsp[-3].str)), (yyvsp[-2].index).str, (yyvsp[-1].str), (yyvsp[0].str));
+ break;
+
+ case ECPGt_varchar:
+ case ECPGt_bytea:
+ if (actual_type[struct_level].type_enum == ECPGt_varchar)
+ {
+ varlen_type_counter = &varchar_counter;
+ struct_name = " struct varchar_";
+ }
+ else
+ {
+ varlen_type_counter = &bytea_counter;
+ struct_name = " struct bytea_";
+ }
+ if (atoi(dimension) < 0)
+ type = ECPGmake_simple_type(actual_type[struct_level].type_enum, length, *varlen_type_counter);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(actual_type[struct_level].type_enum, length, *varlen_type_counter), dimension);
+
+ if (strcmp(dimension, "0") == 0 || abs(atoi(dimension)) == 1)
+ dim_str=mm_strdup("");
+ else
+ dim_str=cat_str(3, mm_strdup("["), mm_strdup(dimension), mm_strdup("]"));
+ /* cannot check for atoi <= 0 because a defined constant will yield 0 here as well */
+ if (atoi(length) < 0 || strcmp(length, "0") == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "pointers to varchar are not implemented");
+
+ /* make sure varchar struct name is unique by adding a unique counter to its definition */
+ vcn = (char *) mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ sprintf(vcn, "%d", *varlen_type_counter);
+ if (strcmp(dimension, "0") == 0)
+ (yyval.str) = cat_str(7, make2_str(mm_strdup(struct_name), vcn), mm_strdup(" { int len; char arr["), mm_strdup(length), mm_strdup("]; } *"), mm_strdup((yyvsp[-3].str)), (yyvsp[-1].str), (yyvsp[0].str));
+ else
+ (yyval.str) = cat_str(8, make2_str(mm_strdup(struct_name), vcn), mm_strdup(" { int len; char arr["), mm_strdup(length), mm_strdup("]; } "), mm_strdup((yyvsp[-3].str)), dim_str, (yyvsp[-1].str), (yyvsp[0].str));
+ (*varlen_type_counter)++;
+ break;
+
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ if (atoi(dimension) == -1)
+ {
+ int i = strlen((yyvsp[0].str));
+
+ if (atoi(length) == -1 && i > 0) /* char <var>[] = "string" */
+ {
+ /* if we have an initializer but no string size set, let's use the initializer's length */
+ free(length);
+ length = mm_alloc(i+sizeof("sizeof()"));
+ sprintf(length, "sizeof(%s)", (yyvsp[0].str)+2);
+ }
+ type = ECPGmake_simple_type(actual_type[struct_level].type_enum, length, 0);
+ }
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(actual_type[struct_level].type_enum, length, 0), dimension);
+
+ (yyval.str) = cat_str(5, (yyvsp[-4].str), mm_strdup((yyvsp[-3].str)), (yyvsp[-2].index).str, (yyvsp[-1].str), (yyvsp[0].str));
+ break;
+
+ default:
+ if (atoi(dimension) < 0)
+ type = ECPGmake_simple_type(actual_type[struct_level].type_enum, mm_strdup("1"), 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(actual_type[struct_level].type_enum, mm_strdup("1"), 0), dimension);
+
+ (yyval.str) = cat_str(5, (yyvsp[-4].str), mm_strdup((yyvsp[-3].str)), (yyvsp[-2].index).str, (yyvsp[-1].str), (yyvsp[0].str));
+ break;
+ }
+
+ if (struct_level == 0)
+ new_variable((yyvsp[-3].str), type, braces_open);
+ else
+ ECPGmake_struct_member((yyvsp[-3].str), type, &(struct_member_list[struct_level - 1]));
+
+ free((yyvsp[-3].str));
+ }
+#line 64191 "preproc.c"
+ break;
+
+ case 3338: /* opt_initializer: %empty */
+#line 18129 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 64197 "preproc.c"
+ break;
+
+ case 3339: /* opt_initializer: '=' c_term */
+#line 18131 "preproc.y"
+ {
+ initializer = 1;
+ (yyval.str) = cat2_str(mm_strdup("="), (yyvsp[0].str));
+ }
+#line 64206 "preproc.c"
+ break;
+
+ case 3340: /* opt_pointer: %empty */
+#line 18137 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 64212 "preproc.c"
+ break;
+
+ case 3341: /* opt_pointer: '*' */
+#line 18138 "preproc.y"
+ { (yyval.str) = mm_strdup("*"); }
+#line 64218 "preproc.c"
+ break;
+
+ case 3342: /* opt_pointer: '*' '*' */
+#line 18139 "preproc.y"
+ { (yyval.str) = mm_strdup("**"); }
+#line 64224 "preproc.c"
+ break;
+
+ case 3343: /* ECPGDeclare: DECLARE STATEMENT ecpg_ident */
+#line 18146 "preproc.y"
+ {
+ /* this is only supported for compatibility */
+ (yyval.str) = cat_str(3, mm_strdup("/* declare statement"), (yyvsp[0].str), mm_strdup("*/"));
+ }
+#line 64233 "preproc.c"
+ break;
+
+ case 3344: /* ECPGDisconnect: SQL_DISCONNECT dis_name */
+#line 18154 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64239 "preproc.c"
+ break;
+
+ case 3345: /* dis_name: connection_object */
+#line 18157 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64245 "preproc.c"
+ break;
+
+ case 3346: /* dis_name: CURRENT_P */
+#line 18158 "preproc.y"
+ { (yyval.str) = mm_strdup("\"CURRENT\""); }
+#line 64251 "preproc.c"
+ break;
+
+ case 3347: /* dis_name: ALL */
+#line 18159 "preproc.y"
+ { (yyval.str) = mm_strdup("\"ALL\""); }
+#line 64257 "preproc.c"
+ break;
+
+ case 3348: /* dis_name: %empty */
+#line 18160 "preproc.y"
+ { (yyval.str) = mm_strdup("\"CURRENT\""); }
+#line 64263 "preproc.c"
+ break;
+
+ case 3349: /* connection_object: name */
+#line 18163 "preproc.y"
+ { (yyval.str) = make3_str(mm_strdup("\""), (yyvsp[0].str), mm_strdup("\"")); }
+#line 64269 "preproc.c"
+ break;
+
+ case 3350: /* connection_object: DEFAULT */
+#line 18164 "preproc.y"
+ { (yyval.str) = mm_strdup("\"DEFAULT\""); }
+#line 64275 "preproc.c"
+ break;
+
+ case 3351: /* connection_object: char_variable */
+#line 18165 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64281 "preproc.c"
+ break;
+
+ case 3352: /* execstring: char_variable */
+#line 18169 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64287 "preproc.c"
+ break;
+
+ case 3353: /* execstring: CSTRING */
+#line 18171 "preproc.y"
+ { (yyval.str) = make3_str(mm_strdup("\""), (yyvsp[0].str), mm_strdup("\"")); }
+#line 64293 "preproc.c"
+ break;
+
+ case 3354: /* ECPGFree: SQL_FREE cursor_name */
+#line 18178 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64299 "preproc.c"
+ break;
+
+ case 3355: /* ECPGFree: SQL_FREE ALL */
+#line 18179 "preproc.y"
+ { (yyval.str) = mm_strdup("all"); }
+#line 64305 "preproc.c"
+ break;
+
+ case 3356: /* ECPGOpen: SQL_OPEN cursor_name opt_ecpg_using */
+#line 18186 "preproc.y"
+ {
+ if ((yyvsp[-1].str)[0] == ':')
+ remove_variable_from_list(&argsinsert, find_variable((yyvsp[-1].str) + 1));
+ (yyval.str) = (yyvsp[-1].str);
+ }
+#line 64315 "preproc.c"
+ break;
+
+ case 3357: /* opt_ecpg_using: %empty */
+#line 18193 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 64321 "preproc.c"
+ break;
+
+ case 3358: /* opt_ecpg_using: ecpg_using */
+#line 18194 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64327 "preproc.c"
+ break;
+
+ case 3359: /* ecpg_using: USING using_list */
+#line 18197 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 64333 "preproc.c"
+ break;
+
+ case 3360: /* ecpg_using: using_descriptor */
+#line 18198 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64339 "preproc.c"
+ break;
+
+ case 3361: /* using_descriptor: USING SQL_P SQL_DESCRIPTOR quoted_ident_stringvar */
+#line 18202 "preproc.y"
+ {
+ add_variable_to_head(&argsinsert, descriptor_variable((yyvsp[0].str),0), &no_indicator);
+ (yyval.str) = EMPTY;
+ }
+#line 64348 "preproc.c"
+ break;
+
+ case 3362: /* using_descriptor: USING SQL_DESCRIPTOR name */
+#line 18207 "preproc.y"
+ {
+ add_variable_to_head(&argsinsert, sqlda_variable((yyvsp[0].str)), &no_indicator);
+ (yyval.str) = EMPTY;
+ }
+#line 64357 "preproc.c"
+ break;
+
+ case 3363: /* into_descriptor: INTO SQL_P SQL_DESCRIPTOR quoted_ident_stringvar */
+#line 18214 "preproc.y"
+ {
+ add_variable_to_head(&argsresult, descriptor_variable((yyvsp[0].str),1), &no_indicator);
+ (yyval.str) = EMPTY;
+ }
+#line 64366 "preproc.c"
+ break;
+
+ case 3364: /* into_descriptor: INTO SQL_DESCRIPTOR name */
+#line 18219 "preproc.y"
+ {
+ add_variable_to_head(&argsresult, sqlda_variable((yyvsp[0].str)), &no_indicator);
+ (yyval.str) = EMPTY;
+ }
+#line 64375 "preproc.c"
+ break;
+
+ case 3365: /* into_sqlda: INTO name */
+#line 18226 "preproc.y"
+ {
+ add_variable_to_head(&argsresult, sqlda_variable((yyvsp[0].str)), &no_indicator);
+ (yyval.str) = EMPTY;
+ }
+#line 64384 "preproc.c"
+ break;
+
+ case 3368: /* UsingValue: UsingConst */
+#line 18235 "preproc.y"
+ {
+ char *length = mm_alloc(32);
+
+ sprintf(length, "%zu", strlen((yyvsp[0].str)));
+ add_variable_to_head(&argsinsert, new_variable((yyvsp[0].str), ECPGmake_simple_type(ECPGt_const, length, 0), 0), &no_indicator);
+ }
+#line 64395 "preproc.c"
+ break;
+
+ case 3369: /* UsingValue: civar */
+#line 18241 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 64401 "preproc.c"
+ break;
+
+ case 3370: /* UsingValue: civarind */
+#line 18242 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 64407 "preproc.c"
+ break;
+
+ case 3371: /* UsingConst: Iconst */
+#line 18245 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64413 "preproc.c"
+ break;
+
+ case 3372: /* UsingConst: '+' Iconst */
+#line 18246 "preproc.y"
+ { (yyval.str) = cat_str(2, mm_strdup("+"), (yyvsp[0].str)); }
+#line 64419 "preproc.c"
+ break;
+
+ case 3373: /* UsingConst: '-' Iconst */
+#line 18247 "preproc.y"
+ { (yyval.str) = cat_str(2, mm_strdup("-"), (yyvsp[0].str)); }
+#line 64425 "preproc.c"
+ break;
+
+ case 3374: /* UsingConst: ecpg_fconst */
+#line 18248 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64431 "preproc.c"
+ break;
+
+ case 3375: /* UsingConst: '+' ecpg_fconst */
+#line 18249 "preproc.y"
+ { (yyval.str) = cat_str(2, mm_strdup("+"), (yyvsp[0].str)); }
+#line 64437 "preproc.c"
+ break;
+
+ case 3376: /* UsingConst: '-' ecpg_fconst */
+#line 18250 "preproc.y"
+ { (yyval.str) = cat_str(2, mm_strdup("-"), (yyvsp[0].str)); }
+#line 64443 "preproc.c"
+ break;
+
+ case 3377: /* UsingConst: ecpg_sconst */
+#line 18251 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64449 "preproc.c"
+ break;
+
+ case 3378: /* UsingConst: ecpg_bconst */
+#line 18252 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64455 "preproc.c"
+ break;
+
+ case 3379: /* UsingConst: ecpg_xconst */
+#line 18253 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64461 "preproc.c"
+ break;
+
+ case 3380: /* ECPGDescribe: SQL_DESCRIBE INPUT_P prepared_name using_descriptor */
+#line 18260 "preproc.y"
+ {
+ (yyval.describe).input = 1;
+ (yyval.describe).stmt_name = (yyvsp[-1].str);
+ }
+#line 64470 "preproc.c"
+ break;
+
+ case 3381: /* ECPGDescribe: SQL_DESCRIBE opt_output prepared_name using_descriptor */
+#line 18265 "preproc.y"
+ {
+ struct variable *var;
+ var = argsinsert->variable;
+ remove_variable_from_list(&argsinsert, var);
+ add_variable_to_head(&argsresult, var, &no_indicator);
+
+ (yyval.describe).input = 0;
+ (yyval.describe).stmt_name = (yyvsp[-1].str);
+ }
+#line 64484 "preproc.c"
+ break;
+
+ case 3382: /* ECPGDescribe: SQL_DESCRIBE opt_output prepared_name into_descriptor */
+#line 18275 "preproc.y"
+ {
+ (yyval.describe).input = 0;
+ (yyval.describe).stmt_name = (yyvsp[-1].str);
+ }
+#line 64493 "preproc.c"
+ break;
+
+ case 3383: /* ECPGDescribe: SQL_DESCRIBE INPUT_P prepared_name into_sqlda */
+#line 18280 "preproc.y"
+ {
+ (yyval.describe).input = 1;
+ (yyval.describe).stmt_name = (yyvsp[-1].str);
+ }
+#line 64502 "preproc.c"
+ break;
+
+ case 3384: /* ECPGDescribe: SQL_DESCRIBE opt_output prepared_name into_sqlda */
+#line 18285 "preproc.y"
+ {
+ (yyval.describe).input = 0;
+ (yyval.describe).stmt_name = (yyvsp[-1].str);
+ }
+#line 64511 "preproc.c"
+ break;
+
+ case 3385: /* opt_output: SQL_OUTPUT */
+#line 18291 "preproc.y"
+ { (yyval.str) = mm_strdup("output"); }
+#line 64517 "preproc.c"
+ break;
+
+ case 3386: /* opt_output: %empty */
+#line 18292 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 64523 "preproc.c"
+ break;
+
+ case 3387: /* ECPGAllocateDescr: SQL_ALLOCATE SQL_DESCRIPTOR quoted_ident_stringvar */
+#line 18305 "preproc.y"
+ {
+ add_descriptor((yyvsp[0].str),connection);
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 64532 "preproc.c"
+ break;
+
+ case 3388: /* ECPGDeallocateDescr: DEALLOCATE SQL_DESCRIPTOR quoted_ident_stringvar */
+#line 18316 "preproc.y"
+ {
+ drop_descriptor((yyvsp[0].str),connection);
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 64541 "preproc.c"
+ break;
+
+ case 3389: /* ECPGGetDescriptorHeader: SQL_GET SQL_DESCRIPTOR quoted_ident_stringvar ECPGGetDescHeaderItems */
+#line 18327 "preproc.y"
+ { (yyval.str) = (yyvsp[-1].str); }
+#line 64547 "preproc.c"
+ break;
+
+ case 3392: /* ECPGGetDescHeaderItem: cvariable '=' desc_header_item */
+#line 18335 "preproc.y"
+ { push_assignment((yyvsp[-2].str), (yyvsp[0].dtype_enum)); }
+#line 64553 "preproc.c"
+ break;
+
+ case 3393: /* ECPGSetDescriptorHeader: SET SQL_DESCRIPTOR quoted_ident_stringvar ECPGSetDescHeaderItems */
+#line 18340 "preproc.y"
+ { (yyval.str) = (yyvsp[-1].str); }
+#line 64559 "preproc.c"
+ break;
+
+ case 3396: /* ECPGSetDescHeaderItem: desc_header_item '=' IntConstVar */
+#line 18348 "preproc.y"
+ {
+ push_assignment((yyvsp[0].str), (yyvsp[-2].dtype_enum));
+ }
+#line 64567 "preproc.c"
+ break;
+
+ case 3397: /* IntConstVar: Iconst */
+#line 18354 "preproc.y"
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+
+ sprintf(length, "%zu", strlen((yyvsp[0].str)));
+ new_variable((yyvsp[0].str), ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 64579 "preproc.c"
+ break;
+
+ case 3398: /* IntConstVar: cvariable */
+#line 18362 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 64587 "preproc.c"
+ break;
+
+ case 3399: /* desc_header_item: SQL_COUNT */
+#line 18367 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_count; }
+#line 64593 "preproc.c"
+ break;
+
+ case 3400: /* ECPGGetDescriptor: SQL_GET SQL_DESCRIPTOR quoted_ident_stringvar VALUE_P IntConstVar ECPGGetDescItems */
+#line 18375 "preproc.y"
+ { (yyval.descriptor).str = (yyvsp[-1].str); (yyval.descriptor).name = (yyvsp[-3].str); }
+#line 64599 "preproc.c"
+ break;
+
+ case 3403: /* ECPGGetDescItem: cvariable '=' descriptor_item */
+#line 18382 "preproc.y"
+ { push_assignment((yyvsp[-2].str), (yyvsp[0].dtype_enum)); }
+#line 64605 "preproc.c"
+ break;
+
+ case 3404: /* ECPGSetDescriptor: SET SQL_DESCRIPTOR quoted_ident_stringvar VALUE_P IntConstVar ECPGSetDescItems */
+#line 18386 "preproc.y"
+ { (yyval.descriptor).str = (yyvsp[-1].str); (yyval.descriptor).name = (yyvsp[-3].str); }
+#line 64611 "preproc.c"
+ break;
+
+ case 3407: /* ECPGSetDescItem: descriptor_item '=' AllConstVar */
+#line 18394 "preproc.y"
+ {
+ push_assignment((yyvsp[0].str), (yyvsp[-2].dtype_enum));
+ }
+#line 64619 "preproc.c"
+ break;
+
+ case 3408: /* AllConstVar: ecpg_fconst */
+#line 18400 "preproc.y"
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+
+ sprintf(length, "%zu", strlen((yyvsp[0].str)));
+ new_variable((yyvsp[0].str), ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 64631 "preproc.c"
+ break;
+
+ case 3409: /* AllConstVar: IntConstVar */
+#line 18409 "preproc.y"
+ {
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 64639 "preproc.c"
+ break;
+
+ case 3410: /* AllConstVar: '-' ecpg_fconst */
+#line 18414 "preproc.y"
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *var = cat2_str(mm_strdup("-"), (yyvsp[0].str));
+
+ sprintf(length, "%zu", strlen(var));
+ new_variable(var, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ (yyval.str) = var;
+ }
+#line 64652 "preproc.c"
+ break;
+
+ case 3411: /* AllConstVar: '-' Iconst */
+#line 18424 "preproc.y"
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *var = cat2_str(mm_strdup("-"), (yyvsp[0].str));
+
+ sprintf(length, "%zu", strlen(var));
+ new_variable(var, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ (yyval.str) = var;
+ }
+#line 64665 "preproc.c"
+ break;
+
+ case 3412: /* AllConstVar: ecpg_sconst */
+#line 18434 "preproc.y"
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *var = (yyvsp[0].str) + 1;
+
+ var[strlen(var) - 1] = '\0';
+ sprintf(length, "%zu", strlen(var));
+ new_variable(var, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ (yyval.str) = var;
+ }
+#line 64679 "preproc.c"
+ break;
+
+ case 3413: /* descriptor_item: SQL_CARDINALITY */
+#line 18445 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_cardinality; }
+#line 64685 "preproc.c"
+ break;
+
+ case 3414: /* descriptor_item: DATA_P */
+#line 18446 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_data; }
+#line 64691 "preproc.c"
+ break;
+
+ case 3415: /* descriptor_item: SQL_DATETIME_INTERVAL_CODE */
+#line 18447 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_di_code; }
+#line 64697 "preproc.c"
+ break;
+
+ case 3416: /* descriptor_item: SQL_DATETIME_INTERVAL_PRECISION */
+#line 18448 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_di_precision; }
+#line 64703 "preproc.c"
+ break;
+
+ case 3417: /* descriptor_item: SQL_INDICATOR */
+#line 18449 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_indicator; }
+#line 64709 "preproc.c"
+ break;
+
+ case 3418: /* descriptor_item: SQL_KEY_MEMBER */
+#line 18450 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_key_member; }
+#line 64715 "preproc.c"
+ break;
+
+ case 3419: /* descriptor_item: SQL_LENGTH */
+#line 18451 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_length; }
+#line 64721 "preproc.c"
+ break;
+
+ case 3420: /* descriptor_item: NAME_P */
+#line 18452 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_name; }
+#line 64727 "preproc.c"
+ break;
+
+ case 3421: /* descriptor_item: SQL_NULLABLE */
+#line 18453 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_nullable; }
+#line 64733 "preproc.c"
+ break;
+
+ case 3422: /* descriptor_item: SQL_OCTET_LENGTH */
+#line 18454 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_octet; }
+#line 64739 "preproc.c"
+ break;
+
+ case 3423: /* descriptor_item: PRECISION */
+#line 18455 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_precision; }
+#line 64745 "preproc.c"
+ break;
+
+ case 3424: /* descriptor_item: SQL_RETURNED_LENGTH */
+#line 18456 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_length; }
+#line 64751 "preproc.c"
+ break;
+
+ case 3425: /* descriptor_item: SQL_RETURNED_OCTET_LENGTH */
+#line 18457 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_ret_octet; }
+#line 64757 "preproc.c"
+ break;
+
+ case 3426: /* descriptor_item: SQL_SCALE */
+#line 18458 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_scale; }
+#line 64763 "preproc.c"
+ break;
+
+ case 3427: /* descriptor_item: TYPE_P */
+#line 18459 "preproc.y"
+ { (yyval.dtype_enum) = ECPGd_type; }
+#line 64769 "preproc.c"
+ break;
+
+ case 3428: /* ECPGSetAutocommit: SET SQL_AUTOCOMMIT '=' on_off */
+#line 18466 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64775 "preproc.c"
+ break;
+
+ case 3429: /* ECPGSetAutocommit: SET SQL_AUTOCOMMIT TO on_off */
+#line 18467 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64781 "preproc.c"
+ break;
+
+ case 3430: /* on_off: ON */
+#line 18470 "preproc.y"
+ { (yyval.str) = mm_strdup("on"); }
+#line 64787 "preproc.c"
+ break;
+
+ case 3431: /* on_off: OFF */
+#line 18471 "preproc.y"
+ { (yyval.str) = mm_strdup("off"); }
+#line 64793 "preproc.c"
+ break;
+
+ case 3432: /* ECPGSetConnection: SET CONNECTION TO connection_object */
+#line 18478 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64799 "preproc.c"
+ break;
+
+ case 3433: /* ECPGSetConnection: SET CONNECTION '=' connection_object */
+#line 18479 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64805 "preproc.c"
+ break;
+
+ case 3434: /* ECPGSetConnection: SET CONNECTION connection_object */
+#line 18480 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 64811 "preproc.c"
+ break;
+
+ case 3435: /* $@9: %empty */
+#line 18487 "preproc.y"
+ {
+ /* reset this variable so we see if there was */
+ /* an initializer specified */
+ initializer = 0;
+ }
+#line 64821 "preproc.c"
+ break;
+
+ case 3436: /* ECPGTypedef: TYPE_P $@9 ECPGColLabelCommon IS var_type opt_array_bounds opt_reference */
+#line 18493 "preproc.y"
+ {
+ add_typedef((yyvsp[-4].str), (yyvsp[-1].index).index1, (yyvsp[-1].index).index2, (yyvsp[-2].type).type_enum, (yyvsp[-2].type).type_dimension, (yyvsp[-2].type).type_index, initializer, *(yyvsp[0].str) ? 1 : 0);
+
+ if (auto_create_c == false)
+ (yyval.str) = cat_str(7, mm_strdup("/* exec sql type"), mm_strdup((yyvsp[-4].str)), mm_strdup("is"), mm_strdup((yyvsp[-2].type).type_str), mm_strdup((yyvsp[-1].index).str), (yyvsp[0].str), mm_strdup("*/"));
+ else
+ (yyval.str) = cat_str(6, mm_strdup("typedef "), mm_strdup((yyvsp[-2].type).type_str), *(yyvsp[0].str)?mm_strdup("*"):mm_strdup(""), mm_strdup((yyvsp[-4].str)), mm_strdup((yyvsp[-1].index).str), mm_strdup(";"));
+ }
+#line 64834 "preproc.c"
+ break;
+
+ case 3437: /* opt_reference: SQL_REFERENCE */
+#line 18503 "preproc.y"
+ { (yyval.str) = mm_strdup("reference"); }
+#line 64840 "preproc.c"
+ break;
+
+ case 3438: /* opt_reference: %empty */
+#line 18504 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 64846 "preproc.c"
+ break;
+
+ case 3439: /* $@10: %empty */
+#line 18511 "preproc.y"
+ {
+ /* reset this variable so we see if there was */
+ /* an initializer specified */
+ initializer = 0;
+ }
+#line 64856 "preproc.c"
+ break;
+
+ case 3440: /* ECPGVar: SQL_VAR $@10 ColLabel IS var_type opt_array_bounds opt_reference */
+#line 18517 "preproc.y"
+ {
+ struct variable *p = find_variable((yyvsp[-4].str));
+ char *dimension = (yyvsp[-1].index).index1;
+ char *length = (yyvsp[-1].index).index2;
+ struct ECPGtype * type;
+
+ if (((yyvsp[-2].type).type_enum == ECPGt_struct ||
+ (yyvsp[-2].type).type_enum == ECPGt_union) &&
+ initializer == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "initializer not allowed in EXEC SQL VAR command");
+ else
+ {
+ adjust_array((yyvsp[-2].type).type_enum, &dimension, &length, (yyvsp[-2].type).type_dimension, (yyvsp[-2].type).type_index, *(yyvsp[0].str)?1:0, false);
+
+ switch ((yyvsp[-2].type).type_enum)
+ {
+ case ECPGt_struct:
+ case ECPGt_union:
+ if (atoi(dimension) < 0)
+ type = ECPGmake_struct_type(struct_member_list[struct_level], (yyvsp[-2].type).type_enum, (yyvsp[-2].type).type_str, (yyvsp[-2].type).type_sizeof);
+ else
+ type = ECPGmake_array_type(ECPGmake_struct_type(struct_member_list[struct_level], (yyvsp[-2].type).type_enum, (yyvsp[-2].type).type_str, (yyvsp[-2].type).type_sizeof), dimension);
+ break;
+
+ case ECPGt_varchar:
+ case ECPGt_bytea:
+ if (atoi(dimension) == -1)
+ type = ECPGmake_simple_type((yyvsp[-2].type).type_enum, length, 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type((yyvsp[-2].type).type_enum, length, 0), dimension);
+ break;
+
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ if (atoi(dimension) == -1)
+ type = ECPGmake_simple_type((yyvsp[-2].type).type_enum, length, 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type((yyvsp[-2].type).type_enum, length, 0), dimension);
+ break;
+
+ default:
+ if (atoi(length) >= 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "multidimensional arrays for simple data types are not supported");
+
+ if (atoi(dimension) < 0)
+ type = ECPGmake_simple_type((yyvsp[-2].type).type_enum, mm_strdup("1"), 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type((yyvsp[-2].type).type_enum, mm_strdup("1"), 0), dimension);
+ break;
+ }
+
+ ECPGfree_type(p->type);
+ p->type = type;
+ }
+
+ (yyval.str) = cat_str(7, mm_strdup("/* exec sql var"), mm_strdup((yyvsp[-4].str)), mm_strdup("is"), mm_strdup((yyvsp[-2].type).type_str), mm_strdup((yyvsp[-1].index).str), (yyvsp[0].str), mm_strdup("*/"));
+ }
+#line 64919 "preproc.c"
+ break;
+
+ case 3441: /* ECPGWhenever: SQL_WHENEVER SQL_SQLERROR action */
+#line 18582 "preproc.y"
+ {
+ when_error.code = (yyvsp[0].action).code;
+ when_error.command = (yyvsp[0].action).command;
+ (yyval.str) = cat_str(3, mm_strdup("/* exec sql whenever sqlerror "), (yyvsp[0].action).str, mm_strdup("; */"));
+ }
+#line 64929 "preproc.c"
+ break;
+
+ case 3442: /* ECPGWhenever: SQL_WHENEVER NOT SQL_FOUND action */
+#line 18588 "preproc.y"
+ {
+ when_nf.code = (yyvsp[0].action).code;
+ when_nf.command = (yyvsp[0].action).command;
+ (yyval.str) = cat_str(3, mm_strdup("/* exec sql whenever not found "), (yyvsp[0].action).str, mm_strdup("; */"));
+ }
+#line 64939 "preproc.c"
+ break;
+
+ case 3443: /* ECPGWhenever: SQL_WHENEVER SQL_SQLWARNING action */
+#line 18594 "preproc.y"
+ {
+ when_warn.code = (yyvsp[0].action).code;
+ when_warn.command = (yyvsp[0].action).command;
+ (yyval.str) = cat_str(3, mm_strdup("/* exec sql whenever sql_warning "), (yyvsp[0].action).str, mm_strdup("; */"));
+ }
+#line 64949 "preproc.c"
+ break;
+
+ case 3444: /* action: CONTINUE_P */
+#line 18602 "preproc.y"
+ {
+ (yyval.action).code = W_NOTHING;
+ (yyval.action).command = NULL;
+ (yyval.action).str = mm_strdup("continue");
+ }
+#line 64959 "preproc.c"
+ break;
+
+ case 3445: /* action: SQL_SQLPRINT */
+#line 18608 "preproc.y"
+ {
+ (yyval.action).code = W_SQLPRINT;
+ (yyval.action).command = NULL;
+ (yyval.action).str = mm_strdup("sqlprint");
+ }
+#line 64969 "preproc.c"
+ break;
+
+ case 3446: /* action: SQL_STOP */
+#line 18614 "preproc.y"
+ {
+ (yyval.action).code = W_STOP;
+ (yyval.action).command = NULL;
+ (yyval.action).str = mm_strdup("stop");
+ }
+#line 64979 "preproc.c"
+ break;
+
+ case 3447: /* action: SQL_GOTO name */
+#line 18620 "preproc.y"
+ {
+ (yyval.action).code = W_GOTO;
+ (yyval.action).command = mm_strdup((yyvsp[0].str));
+ (yyval.action).str = cat2_str(mm_strdup("goto "), (yyvsp[0].str));
+ }
+#line 64989 "preproc.c"
+ break;
+
+ case 3448: /* action: SQL_GO TO name */
+#line 18626 "preproc.y"
+ {
+ (yyval.action).code = W_GOTO;
+ (yyval.action).command = mm_strdup((yyvsp[0].str));
+ (yyval.action).str = cat2_str(mm_strdup("goto "), (yyvsp[0].str));
+ }
+#line 64999 "preproc.c"
+ break;
+
+ case 3449: /* action: DO name '(' c_args ')' */
+#line 18632 "preproc.y"
+ {
+ (yyval.action).code = W_DO;
+ (yyval.action).command = cat_str(4, (yyvsp[-3].str), mm_strdup("("), (yyvsp[-1].str), mm_strdup(")"));
+ (yyval.action).str = cat2_str(mm_strdup("do"), mm_strdup((yyval.action).command));
+ }
+#line 65009 "preproc.c"
+ break;
+
+ case 3450: /* action: DO SQL_BREAK */
+#line 18638 "preproc.y"
+ {
+ (yyval.action).code = W_BREAK;
+ (yyval.action).command = NULL;
+ (yyval.action).str = mm_strdup("break");
+ }
+#line 65019 "preproc.c"
+ break;
+
+ case 3451: /* action: DO CONTINUE_P */
+#line 18644 "preproc.y"
+ {
+ (yyval.action).code = W_CONTINUE;
+ (yyval.action).command = NULL;
+ (yyval.action).str = mm_strdup("continue");
+ }
+#line 65029 "preproc.c"
+ break;
+
+ case 3452: /* action: CALL name '(' c_args ')' */
+#line 18650 "preproc.y"
+ {
+ (yyval.action).code = W_DO;
+ (yyval.action).command = cat_str(4, (yyvsp[-3].str), mm_strdup("("), (yyvsp[-1].str), mm_strdup(")"));
+ (yyval.action).str = cat2_str(mm_strdup("call"), mm_strdup((yyval.action).command));
+ }
+#line 65039 "preproc.c"
+ break;
+
+ case 3453: /* action: CALL name */
+#line 18656 "preproc.y"
+ {
+ (yyval.action).code = W_DO;
+ (yyval.action).command = cat2_str((yyvsp[0].str), mm_strdup("()"));
+ (yyval.action).str = cat2_str(mm_strdup("call"), mm_strdup((yyval.action).command));
+ }
+#line 65049 "preproc.c"
+ break;
+
+ case 3454: /* ECPGKeywords: ECPGKeywords_vanames */
+#line 18666 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65055 "preproc.c"
+ break;
+
+ case 3455: /* ECPGKeywords: ECPGKeywords_rest */
+#line 18667 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65061 "preproc.c"
+ break;
+
+ case 3456: /* ECPGKeywords_vanames: SQL_BREAK */
+#line 18670 "preproc.y"
+ { (yyval.str) = mm_strdup("break"); }
+#line 65067 "preproc.c"
+ break;
+
+ case 3457: /* ECPGKeywords_vanames: SQL_CARDINALITY */
+#line 18671 "preproc.y"
+ { (yyval.str) = mm_strdup("cardinality"); }
+#line 65073 "preproc.c"
+ break;
+
+ case 3458: /* ECPGKeywords_vanames: SQL_COUNT */
+#line 18672 "preproc.y"
+ { (yyval.str) = mm_strdup("count"); }
+#line 65079 "preproc.c"
+ break;
+
+ case 3459: /* ECPGKeywords_vanames: SQL_DATETIME_INTERVAL_CODE */
+#line 18673 "preproc.y"
+ { (yyval.str) = mm_strdup("datetime_interval_code"); }
+#line 65085 "preproc.c"
+ break;
+
+ case 3460: /* ECPGKeywords_vanames: SQL_DATETIME_INTERVAL_PRECISION */
+#line 18674 "preproc.y"
+ { (yyval.str) = mm_strdup("datetime_interval_precision"); }
+#line 65091 "preproc.c"
+ break;
+
+ case 3461: /* ECPGKeywords_vanames: SQL_FOUND */
+#line 18675 "preproc.y"
+ { (yyval.str) = mm_strdup("found"); }
+#line 65097 "preproc.c"
+ break;
+
+ case 3462: /* ECPGKeywords_vanames: SQL_GO */
+#line 18676 "preproc.y"
+ { (yyval.str) = mm_strdup("go"); }
+#line 65103 "preproc.c"
+ break;
+
+ case 3463: /* ECPGKeywords_vanames: SQL_GOTO */
+#line 18677 "preproc.y"
+ { (yyval.str) = mm_strdup("goto"); }
+#line 65109 "preproc.c"
+ break;
+
+ case 3464: /* ECPGKeywords_vanames: SQL_IDENTIFIED */
+#line 18678 "preproc.y"
+ { (yyval.str) = mm_strdup("identified"); }
+#line 65115 "preproc.c"
+ break;
+
+ case 3465: /* ECPGKeywords_vanames: SQL_INDICATOR */
+#line 18679 "preproc.y"
+ { (yyval.str) = mm_strdup("indicator"); }
+#line 65121 "preproc.c"
+ break;
+
+ case 3466: /* ECPGKeywords_vanames: SQL_KEY_MEMBER */
+#line 18680 "preproc.y"
+ { (yyval.str) = mm_strdup("key_member"); }
+#line 65127 "preproc.c"
+ break;
+
+ case 3467: /* ECPGKeywords_vanames: SQL_LENGTH */
+#line 18681 "preproc.y"
+ { (yyval.str) = mm_strdup("length"); }
+#line 65133 "preproc.c"
+ break;
+
+ case 3468: /* ECPGKeywords_vanames: SQL_NULLABLE */
+#line 18682 "preproc.y"
+ { (yyval.str) = mm_strdup("nullable"); }
+#line 65139 "preproc.c"
+ break;
+
+ case 3469: /* ECPGKeywords_vanames: SQL_OCTET_LENGTH */
+#line 18683 "preproc.y"
+ { (yyval.str) = mm_strdup("octet_length"); }
+#line 65145 "preproc.c"
+ break;
+
+ case 3470: /* ECPGKeywords_vanames: SQL_RETURNED_LENGTH */
+#line 18684 "preproc.y"
+ { (yyval.str) = mm_strdup("returned_length"); }
+#line 65151 "preproc.c"
+ break;
+
+ case 3471: /* ECPGKeywords_vanames: SQL_RETURNED_OCTET_LENGTH */
+#line 18685 "preproc.y"
+ { (yyval.str) = mm_strdup("returned_octet_length"); }
+#line 65157 "preproc.c"
+ break;
+
+ case 3472: /* ECPGKeywords_vanames: SQL_SCALE */
+#line 18686 "preproc.y"
+ { (yyval.str) = mm_strdup("scale"); }
+#line 65163 "preproc.c"
+ break;
+
+ case 3473: /* ECPGKeywords_vanames: SQL_SECTION */
+#line 18687 "preproc.y"
+ { (yyval.str) = mm_strdup("section"); }
+#line 65169 "preproc.c"
+ break;
+
+ case 3474: /* ECPGKeywords_vanames: SQL_SQLERROR */
+#line 18688 "preproc.y"
+ { (yyval.str) = mm_strdup("sqlerror"); }
+#line 65175 "preproc.c"
+ break;
+
+ case 3475: /* ECPGKeywords_vanames: SQL_SQLPRINT */
+#line 18689 "preproc.y"
+ { (yyval.str) = mm_strdup("sqlprint"); }
+#line 65181 "preproc.c"
+ break;
+
+ case 3476: /* ECPGKeywords_vanames: SQL_SQLWARNING */
+#line 18690 "preproc.y"
+ { (yyval.str) = mm_strdup("sqlwarning"); }
+#line 65187 "preproc.c"
+ break;
+
+ case 3477: /* ECPGKeywords_vanames: SQL_STOP */
+#line 18691 "preproc.y"
+ { (yyval.str) = mm_strdup("stop"); }
+#line 65193 "preproc.c"
+ break;
+
+ case 3478: /* ECPGKeywords_rest: SQL_CONNECT */
+#line 18694 "preproc.y"
+ { (yyval.str) = mm_strdup("connect"); }
+#line 65199 "preproc.c"
+ break;
+
+ case 3479: /* ECPGKeywords_rest: SQL_DESCRIBE */
+#line 18695 "preproc.y"
+ { (yyval.str) = mm_strdup("describe"); }
+#line 65205 "preproc.c"
+ break;
+
+ case 3480: /* ECPGKeywords_rest: SQL_DISCONNECT */
+#line 18696 "preproc.y"
+ { (yyval.str) = mm_strdup("disconnect"); }
+#line 65211 "preproc.c"
+ break;
+
+ case 3481: /* ECPGKeywords_rest: SQL_OPEN */
+#line 18697 "preproc.y"
+ { (yyval.str) = mm_strdup("open"); }
+#line 65217 "preproc.c"
+ break;
+
+ case 3482: /* ECPGKeywords_rest: SQL_VAR */
+#line 18698 "preproc.y"
+ { (yyval.str) = mm_strdup("var"); }
+#line 65223 "preproc.c"
+ break;
+
+ case 3483: /* ECPGKeywords_rest: SQL_WHENEVER */
+#line 18699 "preproc.y"
+ { (yyval.str) = mm_strdup("whenever"); }
+#line 65229 "preproc.c"
+ break;
+
+ case 3484: /* ECPGTypeName: SQL_BOOL */
+#line 18703 "preproc.y"
+ { (yyval.str) = mm_strdup("bool"); }
+#line 65235 "preproc.c"
+ break;
+
+ case 3485: /* ECPGTypeName: SQL_LONG */
+#line 18704 "preproc.y"
+ { (yyval.str) = mm_strdup("long"); }
+#line 65241 "preproc.c"
+ break;
+
+ case 3486: /* ECPGTypeName: SQL_OUTPUT */
+#line 18705 "preproc.y"
+ { (yyval.str) = mm_strdup("output"); }
+#line 65247 "preproc.c"
+ break;
+
+ case 3487: /* ECPGTypeName: SQL_SHORT */
+#line 18706 "preproc.y"
+ { (yyval.str) = mm_strdup("short"); }
+#line 65253 "preproc.c"
+ break;
+
+ case 3488: /* ECPGTypeName: SQL_STRUCT */
+#line 18707 "preproc.y"
+ { (yyval.str) = mm_strdup("struct"); }
+#line 65259 "preproc.c"
+ break;
+
+ case 3489: /* ECPGTypeName: SQL_SIGNED */
+#line 18708 "preproc.y"
+ { (yyval.str) = mm_strdup("signed"); }
+#line 65265 "preproc.c"
+ break;
+
+ case 3490: /* ECPGTypeName: SQL_UNSIGNED */
+#line 18709 "preproc.y"
+ { (yyval.str) = mm_strdup("unsigned"); }
+#line 65271 "preproc.c"
+ break;
+
+ case 3491: /* symbol: ColLabel */
+#line 18712 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65277 "preproc.c"
+ break;
+
+ case 3492: /* ECPGColId: ecpg_ident */
+#line 18715 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65283 "preproc.c"
+ break;
+
+ case 3493: /* ECPGColId: unreserved_keyword */
+#line 18716 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65289 "preproc.c"
+ break;
+
+ case 3494: /* ECPGColId: col_name_keyword */
+#line 18717 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65295 "preproc.c"
+ break;
+
+ case 3495: /* ECPGColId: ECPGunreserved_interval */
+#line 18718 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65301 "preproc.c"
+ break;
+
+ case 3496: /* ECPGColId: ECPGKeywords */
+#line 18719 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65307 "preproc.c"
+ break;
+
+ case 3497: /* ECPGColId: ECPGCKeywords */
+#line 18720 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65313 "preproc.c"
+ break;
+
+ case 3498: /* ECPGColId: CHAR_P */
+#line 18721 "preproc.y"
+ { (yyval.str) = mm_strdup("char"); }
+#line 65319 "preproc.c"
+ break;
+
+ case 3499: /* ECPGColId: VALUES */
+#line 18722 "preproc.y"
+ { (yyval.str) = mm_strdup("values"); }
+#line 65325 "preproc.c"
+ break;
+
+ case 3500: /* ColId: ecpg_ident */
+#line 18735 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65331 "preproc.c"
+ break;
+
+ case 3501: /* ColId: all_unreserved_keyword */
+#line 18736 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65337 "preproc.c"
+ break;
+
+ case 3502: /* ColId: col_name_keyword */
+#line 18737 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65343 "preproc.c"
+ break;
+
+ case 3503: /* ColId: ECPGKeywords */
+#line 18738 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65349 "preproc.c"
+ break;
+
+ case 3504: /* ColId: ECPGCKeywords */
+#line 18739 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65355 "preproc.c"
+ break;
+
+ case 3505: /* ColId: CHAR_P */
+#line 18740 "preproc.y"
+ { (yyval.str) = mm_strdup("char"); }
+#line 65361 "preproc.c"
+ break;
+
+ case 3506: /* ColId: VALUES */
+#line 18741 "preproc.y"
+ { (yyval.str) = mm_strdup("values"); }
+#line 65367 "preproc.c"
+ break;
+
+ case 3507: /* type_function_name: ecpg_ident */
+#line 18746 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65373 "preproc.c"
+ break;
+
+ case 3508: /* type_function_name: all_unreserved_keyword */
+#line 18747 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65379 "preproc.c"
+ break;
+
+ case 3509: /* type_function_name: type_func_name_keyword */
+#line 18748 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65385 "preproc.c"
+ break;
+
+ case 3510: /* type_function_name: ECPGKeywords */
+#line 18749 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65391 "preproc.c"
+ break;
+
+ case 3511: /* type_function_name: ECPGCKeywords */
+#line 18750 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65397 "preproc.c"
+ break;
+
+ case 3512: /* type_function_name: ECPGTypeName */
+#line 18751 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65403 "preproc.c"
+ break;
+
+ case 3513: /* ColLabel: ECPGColLabel */
+#line 18757 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65409 "preproc.c"
+ break;
+
+ case 3514: /* ColLabel: ECPGTypeName */
+#line 18758 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65415 "preproc.c"
+ break;
+
+ case 3515: /* ColLabel: CHAR_P */
+#line 18759 "preproc.y"
+ { (yyval.str) = mm_strdup("char"); }
+#line 65421 "preproc.c"
+ break;
+
+ case 3516: /* ColLabel: CURRENT_P */
+#line 18760 "preproc.y"
+ { (yyval.str) = mm_strdup("current"); }
+#line 65427 "preproc.c"
+ break;
+
+ case 3517: /* ColLabel: INPUT_P */
+#line 18761 "preproc.y"
+ { (yyval.str) = mm_strdup("input"); }
+#line 65433 "preproc.c"
+ break;
+
+ case 3518: /* ColLabel: INT_P */
+#line 18762 "preproc.y"
+ { (yyval.str) = mm_strdup("int"); }
+#line 65439 "preproc.c"
+ break;
+
+ case 3519: /* ColLabel: TO */
+#line 18763 "preproc.y"
+ { (yyval.str) = mm_strdup("to"); }
+#line 65445 "preproc.c"
+ break;
+
+ case 3520: /* ColLabel: UNION */
+#line 18764 "preproc.y"
+ { (yyval.str) = mm_strdup("union"); }
+#line 65451 "preproc.c"
+ break;
+
+ case 3521: /* ColLabel: VALUES */
+#line 18765 "preproc.y"
+ { (yyval.str) = mm_strdup("values"); }
+#line 65457 "preproc.c"
+ break;
+
+ case 3522: /* ColLabel: ECPGCKeywords */
+#line 18766 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65463 "preproc.c"
+ break;
+
+ case 3523: /* ColLabel: ECPGunreserved_interval */
+#line 18767 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65469 "preproc.c"
+ break;
+
+ case 3524: /* ECPGColLabel: ECPGColLabelCommon */
+#line 18770 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65475 "preproc.c"
+ break;
+
+ case 3525: /* ECPGColLabel: unreserved_keyword */
+#line 18771 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65481 "preproc.c"
+ break;
+
+ case 3526: /* ECPGColLabel: reserved_keyword */
+#line 18772 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65487 "preproc.c"
+ break;
+
+ case 3527: /* ECPGColLabel: ECPGKeywords_rest */
+#line 18773 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65493 "preproc.c"
+ break;
+
+ case 3528: /* ECPGColLabel: CONNECTION */
+#line 18774 "preproc.y"
+ { (yyval.str) = mm_strdup("connection"); }
+#line 65499 "preproc.c"
+ break;
+
+ case 3529: /* ECPGColLabelCommon: ecpg_ident */
+#line 18777 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65505 "preproc.c"
+ break;
+
+ case 3530: /* ECPGColLabelCommon: col_name_keyword */
+#line 18778 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65511 "preproc.c"
+ break;
+
+ case 3531: /* ECPGColLabelCommon: type_func_name_keyword */
+#line 18779 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65517 "preproc.c"
+ break;
+
+ case 3532: /* ECPGColLabelCommon: ECPGKeywords_vanames */
+#line 18780 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65523 "preproc.c"
+ break;
+
+ case 3533: /* ECPGCKeywords: S_AUTO */
+#line 18783 "preproc.y"
+ { (yyval.str) = mm_strdup("auto"); }
+#line 65529 "preproc.c"
+ break;
+
+ case 3534: /* ECPGCKeywords: S_CONST */
+#line 18784 "preproc.y"
+ { (yyval.str) = mm_strdup("const"); }
+#line 65535 "preproc.c"
+ break;
+
+ case 3535: /* ECPGCKeywords: S_EXTERN */
+#line 18785 "preproc.y"
+ { (yyval.str) = mm_strdup("extern"); }
+#line 65541 "preproc.c"
+ break;
+
+ case 3536: /* ECPGCKeywords: S_REGISTER */
+#line 18786 "preproc.y"
+ { (yyval.str) = mm_strdup("register"); }
+#line 65547 "preproc.c"
+ break;
+
+ case 3537: /* ECPGCKeywords: S_STATIC */
+#line 18787 "preproc.y"
+ { (yyval.str) = mm_strdup("static"); }
+#line 65553 "preproc.c"
+ break;
+
+ case 3538: /* ECPGCKeywords: S_TYPEDEF */
+#line 18788 "preproc.y"
+ { (yyval.str) = mm_strdup("typedef"); }
+#line 65559 "preproc.c"
+ break;
+
+ case 3539: /* ECPGCKeywords: S_VOLATILE */
+#line 18789 "preproc.y"
+ { (yyval.str) = mm_strdup("volatile"); }
+#line 65565 "preproc.c"
+ break;
+
+ case 3540: /* all_unreserved_keyword: unreserved_keyword */
+#line 18806 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65571 "preproc.c"
+ break;
+
+ case 3541: /* all_unreserved_keyword: ECPGunreserved_interval */
+#line 18807 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65577 "preproc.c"
+ break;
+
+ case 3542: /* all_unreserved_keyword: CONNECTION */
+#line 18808 "preproc.y"
+ { (yyval.str) = mm_strdup("connection"); }
+#line 65583 "preproc.c"
+ break;
+
+ case 3543: /* ECPGunreserved_interval: DAY_P */
+#line 18811 "preproc.y"
+ { (yyval.str) = mm_strdup("day"); }
+#line 65589 "preproc.c"
+ break;
+
+ case 3544: /* ECPGunreserved_interval: HOUR_P */
+#line 18812 "preproc.y"
+ { (yyval.str) = mm_strdup("hour"); }
+#line 65595 "preproc.c"
+ break;
+
+ case 3545: /* ECPGunreserved_interval: MINUTE_P */
+#line 18813 "preproc.y"
+ { (yyval.str) = mm_strdup("minute"); }
+#line 65601 "preproc.c"
+ break;
+
+ case 3546: /* ECPGunreserved_interval: MONTH_P */
+#line 18814 "preproc.y"
+ { (yyval.str) = mm_strdup("month"); }
+#line 65607 "preproc.c"
+ break;
+
+ case 3547: /* ECPGunreserved_interval: SECOND_P */
+#line 18815 "preproc.y"
+ { (yyval.str) = mm_strdup("second"); }
+#line 65613 "preproc.c"
+ break;
+
+ case 3548: /* ECPGunreserved_interval: YEAR_P */
+#line 18816 "preproc.y"
+ { (yyval.str) = mm_strdup("year"); }
+#line 65619 "preproc.c"
+ break;
+
+ case 3551: /* ecpgstart: SQL_START */
+#line 18823 "preproc.y"
+ {
+ reset_variables();
+ pacounter = 1;
+ }
+#line 65628 "preproc.c"
+ break;
+
+ case 3552: /* c_args: %empty */
+#line 18829 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 65634 "preproc.c"
+ break;
+
+ case 3553: /* c_args: c_list */
+#line 18830 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65640 "preproc.c"
+ break;
+
+ case 3554: /* coutputvariable: cvariable indicator */
+#line 18834 "preproc.y"
+ { add_variable_to_head(&argsresult, find_variable((yyvsp[-1].str)), find_variable((yyvsp[0].str))); }
+#line 65646 "preproc.c"
+ break;
+
+ case 3555: /* coutputvariable: cvariable */
+#line 18836 "preproc.y"
+ { add_variable_to_head(&argsresult, find_variable((yyvsp[0].str)), &no_indicator); }
+#line 65652 "preproc.c"
+ break;
+
+ case 3556: /* civarind: cvariable indicator */
+#line 18841 "preproc.y"
+ {
+ if (find_variable((yyvsp[0].str))->type->type == ECPGt_array)
+ mmerror(PARSE_ERROR, ET_ERROR, "arrays of indicators are not allowed on input");
+
+ add_variable_to_head(&argsinsert, find_variable((yyvsp[-1].str)), find_variable((yyvsp[0].str)));
+ (yyval.str) = create_questionmarks((yyvsp[-1].str), false);
+ }
+#line 65664 "preproc.c"
+ break;
+
+ case 3557: /* char_civar: char_variable */
+#line 18851 "preproc.y"
+ {
+ char *ptr = strstr((yyvsp[0].str), ".arr");
+
+ if (ptr) /* varchar, we need the struct name here, not the struct element */
+ *ptr = '\0';
+ add_variable_to_head(&argsinsert, find_variable((yyvsp[0].str)), &no_indicator);
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 65677 "preproc.c"
+ break;
+
+ case 3558: /* civar: cvariable */
+#line 18862 "preproc.y"
+ {
+ add_variable_to_head(&argsinsert, find_variable((yyvsp[0].str)), &no_indicator);
+ (yyval.str) = create_questionmarks((yyvsp[0].str), false);
+ }
+#line 65686 "preproc.c"
+ break;
+
+ case 3559: /* indicator: cvariable */
+#line 18868 "preproc.y"
+ { check_indicator((find_variable((yyvsp[0].str)))->type); (yyval.str) = (yyvsp[0].str); }
+#line 65692 "preproc.c"
+ break;
+
+ case 3560: /* indicator: SQL_INDICATOR cvariable */
+#line 18869 "preproc.y"
+ { check_indicator((find_variable((yyvsp[0].str)))->type); (yyval.str) = (yyvsp[0].str); }
+#line 65698 "preproc.c"
+ break;
+
+ case 3561: /* indicator: SQL_INDICATOR name */
+#line 18870 "preproc.y"
+ { check_indicator((find_variable((yyvsp[0].str)))->type); (yyval.str) = (yyvsp[0].str); }
+#line 65704 "preproc.c"
+ break;
+
+ case 3562: /* cvariable: CVARIABLE */
+#line 18874 "preproc.y"
+ {
+ /* As long as multidimensional arrays are not implemented we have to check for those here */
+ char *ptr = (yyvsp[0].str);
+ int brace_open=0, brace = false;
+
+ for (; *ptr; ptr++)
+ {
+ switch (*ptr)
+ {
+ case '[':
+ if (brace)
+ mmfatal(PARSE_ERROR, "multidimensional arrays for simple data types are not supported");
+ brace_open++;
+ break;
+ case ']':
+ brace_open--;
+ if (brace_open == 0)
+ brace = true;
+ break;
+ case '\t':
+ case ' ':
+ break;
+ default:
+ if (brace_open == 0)
+ brace = false;
+ break;
+ }
+ }
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 65739 "preproc.c"
+ break;
+
+ case 3563: /* ecpg_param: PARAM */
+#line 18906 "preproc.y"
+ { (yyval.str) = make_name(); }
+#line 65745 "preproc.c"
+ break;
+
+ case 3564: /* ecpg_bconst: BCONST */
+#line 18908 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65751 "preproc.c"
+ break;
+
+ case 3565: /* ecpg_fconst: FCONST */
+#line 18910 "preproc.y"
+ { (yyval.str) = make_name(); }
+#line 65757 "preproc.c"
+ break;
+
+ case 3566: /* ecpg_sconst: SCONST */
+#line 18912 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65763 "preproc.c"
+ break;
+
+ case 3567: /* ecpg_xconst: XCONST */
+#line 18914 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65769 "preproc.c"
+ break;
+
+ case 3568: /* ecpg_ident: IDENT */
+#line 18916 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65775 "preproc.c"
+ break;
+
+ case 3569: /* ecpg_ident: CSTRING */
+#line 18917 "preproc.y"
+ { (yyval.str) = make3_str(mm_strdup("\""), (yyvsp[0].str), mm_strdup("\"")); }
+#line 65781 "preproc.c"
+ break;
+
+ case 3570: /* quoted_ident_stringvar: name */
+#line 18921 "preproc.y"
+ { (yyval.str) = make3_str(mm_strdup("\""), (yyvsp[0].str), mm_strdup("\"")); }
+#line 65787 "preproc.c"
+ break;
+
+ case 3571: /* quoted_ident_stringvar: char_variable */
+#line 18923 "preproc.y"
+ { (yyval.str) = make3_str(mm_strdup("("), (yyvsp[0].str), mm_strdup(")")); }
+#line 65793 "preproc.c"
+ break;
+
+ case 3572: /* c_stuff_item: c_anything */
+#line 18930 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65799 "preproc.c"
+ break;
+
+ case 3573: /* c_stuff_item: '(' ')' */
+#line 18931 "preproc.y"
+ { (yyval.str) = mm_strdup("()"); }
+#line 65805 "preproc.c"
+ break;
+
+ case 3574: /* c_stuff_item: '(' c_stuff ')' */
+#line 18933 "preproc.y"
+ { (yyval.str) = cat_str(3, mm_strdup("("), (yyvsp[-1].str), mm_strdup(")")); }
+#line 65811 "preproc.c"
+ break;
+
+ case 3575: /* c_stuff: c_stuff_item */
+#line 18936 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65817 "preproc.c"
+ break;
+
+ case 3576: /* c_stuff: c_stuff c_stuff_item */
+#line 18938 "preproc.y"
+ { (yyval.str) = cat2_str((yyvsp[-1].str), (yyvsp[0].str)); }
+#line 65823 "preproc.c"
+ break;
+
+ case 3577: /* c_list: c_term */
+#line 18941 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65829 "preproc.c"
+ break;
+
+ case 3578: /* c_list: c_list ',' c_term */
+#line 18942 "preproc.y"
+ { (yyval.str) = cat_str(3, (yyvsp[-2].str), mm_strdup(","), (yyvsp[0].str)); }
+#line 65835 "preproc.c"
+ break;
+
+ case 3579: /* c_term: c_stuff */
+#line 18945 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65841 "preproc.c"
+ break;
+
+ case 3580: /* c_term: '{' c_list '}' */
+#line 18946 "preproc.y"
+ { (yyval.str) = cat_str(3, mm_strdup("{"), (yyvsp[-1].str), mm_strdup("}")); }
+#line 65847 "preproc.c"
+ break;
+
+ case 3581: /* c_thing: c_anything */
+#line 18949 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65853 "preproc.c"
+ break;
+
+ case 3582: /* c_thing: '(' */
+#line 18950 "preproc.y"
+ { (yyval.str) = mm_strdup("("); }
+#line 65859 "preproc.c"
+ break;
+
+ case 3583: /* c_thing: ')' */
+#line 18951 "preproc.y"
+ { (yyval.str) = mm_strdup(")"); }
+#line 65865 "preproc.c"
+ break;
+
+ case 3584: /* c_thing: ',' */
+#line 18952 "preproc.y"
+ { (yyval.str) = mm_strdup(","); }
+#line 65871 "preproc.c"
+ break;
+
+ case 3585: /* c_thing: ';' */
+#line 18953 "preproc.y"
+ { (yyval.str) = mm_strdup(";"); }
+#line 65877 "preproc.c"
+ break;
+
+ case 3586: /* c_anything: ecpg_ident */
+#line 18956 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65883 "preproc.c"
+ break;
+
+ case 3587: /* c_anything: Iconst */
+#line 18957 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65889 "preproc.c"
+ break;
+
+ case 3588: /* c_anything: ecpg_fconst */
+#line 18958 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65895 "preproc.c"
+ break;
+
+ case 3589: /* c_anything: ecpg_sconst */
+#line 18959 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 65901 "preproc.c"
+ break;
+
+ case 3590: /* c_anything: '*' */
+#line 18960 "preproc.y"
+ { (yyval.str) = mm_strdup("*"); }
+#line 65907 "preproc.c"
+ break;
+
+ case 3591: /* c_anything: '+' */
+#line 18961 "preproc.y"
+ { (yyval.str) = mm_strdup("+"); }
+#line 65913 "preproc.c"
+ break;
+
+ case 3592: /* c_anything: '-' */
+#line 18962 "preproc.y"
+ { (yyval.str) = mm_strdup("-"); }
+#line 65919 "preproc.c"
+ break;
+
+ case 3593: /* c_anything: '/' */
+#line 18963 "preproc.y"
+ { (yyval.str) = mm_strdup("/"); }
+#line 65925 "preproc.c"
+ break;
+
+ case 3594: /* c_anything: '%' */
+#line 18964 "preproc.y"
+ { (yyval.str) = mm_strdup("%"); }
+#line 65931 "preproc.c"
+ break;
+
+ case 3595: /* c_anything: NULL_P */
+#line 18965 "preproc.y"
+ { (yyval.str) = mm_strdup("NULL"); }
+#line 65937 "preproc.c"
+ break;
+
+ case 3596: /* c_anything: S_ADD */
+#line 18966 "preproc.y"
+ { (yyval.str) = mm_strdup("+="); }
+#line 65943 "preproc.c"
+ break;
+
+ case 3597: /* c_anything: S_AND */
+#line 18967 "preproc.y"
+ { (yyval.str) = mm_strdup("&&"); }
+#line 65949 "preproc.c"
+ break;
+
+ case 3598: /* c_anything: S_ANYTHING */
+#line 18968 "preproc.y"
+ { (yyval.str) = make_name(); }
+#line 65955 "preproc.c"
+ break;
+
+ case 3599: /* c_anything: S_AUTO */
+#line 18969 "preproc.y"
+ { (yyval.str) = mm_strdup("auto"); }
+#line 65961 "preproc.c"
+ break;
+
+ case 3600: /* c_anything: S_CONST */
+#line 18970 "preproc.y"
+ { (yyval.str) = mm_strdup("const"); }
+#line 65967 "preproc.c"
+ break;
+
+ case 3601: /* c_anything: S_DEC */
+#line 18971 "preproc.y"
+ { (yyval.str) = mm_strdup("--"); }
+#line 65973 "preproc.c"
+ break;
+
+ case 3602: /* c_anything: S_DIV */
+#line 18972 "preproc.y"
+ { (yyval.str) = mm_strdup("/="); }
+#line 65979 "preproc.c"
+ break;
+
+ case 3603: /* c_anything: S_DOTPOINT */
+#line 18973 "preproc.y"
+ { (yyval.str) = mm_strdup(".*"); }
+#line 65985 "preproc.c"
+ break;
+
+ case 3604: /* c_anything: S_EQUAL */
+#line 18974 "preproc.y"
+ { (yyval.str) = mm_strdup("=="); }
+#line 65991 "preproc.c"
+ break;
+
+ case 3605: /* c_anything: S_EXTERN */
+#line 18975 "preproc.y"
+ { (yyval.str) = mm_strdup("extern"); }
+#line 65997 "preproc.c"
+ break;
+
+ case 3606: /* c_anything: S_INC */
+#line 18976 "preproc.y"
+ { (yyval.str) = mm_strdup("++"); }
+#line 66003 "preproc.c"
+ break;
+
+ case 3607: /* c_anything: S_LSHIFT */
+#line 18977 "preproc.y"
+ { (yyval.str) = mm_strdup("<<"); }
+#line 66009 "preproc.c"
+ break;
+
+ case 3608: /* c_anything: S_MEMBER */
+#line 18978 "preproc.y"
+ { (yyval.str) = mm_strdup("->"); }
+#line 66015 "preproc.c"
+ break;
+
+ case 3609: /* c_anything: S_MEMPOINT */
+#line 18979 "preproc.y"
+ { (yyval.str) = mm_strdup("->*"); }
+#line 66021 "preproc.c"
+ break;
+
+ case 3610: /* c_anything: S_MOD */
+#line 18980 "preproc.y"
+ { (yyval.str) = mm_strdup("%="); }
+#line 66027 "preproc.c"
+ break;
+
+ case 3611: /* c_anything: S_MUL */
+#line 18981 "preproc.y"
+ { (yyval.str) = mm_strdup("*="); }
+#line 66033 "preproc.c"
+ break;
+
+ case 3612: /* c_anything: S_NEQUAL */
+#line 18982 "preproc.y"
+ { (yyval.str) = mm_strdup("!="); }
+#line 66039 "preproc.c"
+ break;
+
+ case 3613: /* c_anything: S_OR */
+#line 18983 "preproc.y"
+ { (yyval.str) = mm_strdup("||"); }
+#line 66045 "preproc.c"
+ break;
+
+ case 3614: /* c_anything: S_REGISTER */
+#line 18984 "preproc.y"
+ { (yyval.str) = mm_strdup("register"); }
+#line 66051 "preproc.c"
+ break;
+
+ case 3615: /* c_anything: S_RSHIFT */
+#line 18985 "preproc.y"
+ { (yyval.str) = mm_strdup(">>"); }
+#line 66057 "preproc.c"
+ break;
+
+ case 3616: /* c_anything: S_STATIC */
+#line 18986 "preproc.y"
+ { (yyval.str) = mm_strdup("static"); }
+#line 66063 "preproc.c"
+ break;
+
+ case 3617: /* c_anything: S_SUB */
+#line 18987 "preproc.y"
+ { (yyval.str) = mm_strdup("-="); }
+#line 66069 "preproc.c"
+ break;
+
+ case 3618: /* c_anything: S_TYPEDEF */
+#line 18988 "preproc.y"
+ { (yyval.str) = mm_strdup("typedef"); }
+#line 66075 "preproc.c"
+ break;
+
+ case 3619: /* c_anything: S_VOLATILE */
+#line 18989 "preproc.y"
+ { (yyval.str) = mm_strdup("volatile"); }
+#line 66081 "preproc.c"
+ break;
+
+ case 3620: /* c_anything: SQL_BOOL */
+#line 18990 "preproc.y"
+ { (yyval.str) = mm_strdup("bool"); }
+#line 66087 "preproc.c"
+ break;
+
+ case 3621: /* c_anything: ENUM_P */
+#line 18991 "preproc.y"
+ { (yyval.str) = mm_strdup("enum"); }
+#line 66093 "preproc.c"
+ break;
+
+ case 3622: /* c_anything: HOUR_P */
+#line 18992 "preproc.y"
+ { (yyval.str) = mm_strdup("hour"); }
+#line 66099 "preproc.c"
+ break;
+
+ case 3623: /* c_anything: INT_P */
+#line 18993 "preproc.y"
+ { (yyval.str) = mm_strdup("int"); }
+#line 66105 "preproc.c"
+ break;
+
+ case 3624: /* c_anything: SQL_LONG */
+#line 18994 "preproc.y"
+ { (yyval.str) = mm_strdup("long"); }
+#line 66111 "preproc.c"
+ break;
+
+ case 3625: /* c_anything: MINUTE_P */
+#line 18995 "preproc.y"
+ { (yyval.str) = mm_strdup("minute"); }
+#line 66117 "preproc.c"
+ break;
+
+ case 3626: /* c_anything: MONTH_P */
+#line 18996 "preproc.y"
+ { (yyval.str) = mm_strdup("month"); }
+#line 66123 "preproc.c"
+ break;
+
+ case 3627: /* c_anything: SECOND_P */
+#line 18997 "preproc.y"
+ { (yyval.str) = mm_strdup("second"); }
+#line 66129 "preproc.c"
+ break;
+
+ case 3628: /* c_anything: SQL_SHORT */
+#line 18998 "preproc.y"
+ { (yyval.str) = mm_strdup("short"); }
+#line 66135 "preproc.c"
+ break;
+
+ case 3629: /* c_anything: SQL_SIGNED */
+#line 18999 "preproc.y"
+ { (yyval.str) = mm_strdup("signed"); }
+#line 66141 "preproc.c"
+ break;
+
+ case 3630: /* c_anything: SQL_STRUCT */
+#line 19000 "preproc.y"
+ { (yyval.str) = mm_strdup("struct"); }
+#line 66147 "preproc.c"
+ break;
+
+ case 3631: /* c_anything: SQL_UNSIGNED */
+#line 19001 "preproc.y"
+ { (yyval.str) = mm_strdup("unsigned"); }
+#line 66153 "preproc.c"
+ break;
+
+ case 3632: /* c_anything: YEAR_P */
+#line 19002 "preproc.y"
+ { (yyval.str) = mm_strdup("year"); }
+#line 66159 "preproc.c"
+ break;
+
+ case 3633: /* c_anything: CHAR_P */
+#line 19003 "preproc.y"
+ { (yyval.str) = mm_strdup("char"); }
+#line 66165 "preproc.c"
+ break;
+
+ case 3634: /* c_anything: FLOAT_P */
+#line 19004 "preproc.y"
+ { (yyval.str) = mm_strdup("float"); }
+#line 66171 "preproc.c"
+ break;
+
+ case 3635: /* c_anything: TO */
+#line 19005 "preproc.y"
+ { (yyval.str) = mm_strdup("to"); }
+#line 66177 "preproc.c"
+ break;
+
+ case 3636: /* c_anything: UNION */
+#line 19006 "preproc.y"
+ { (yyval.str) = mm_strdup("union"); }
+#line 66183 "preproc.c"
+ break;
+
+ case 3637: /* c_anything: VARCHAR */
+#line 19007 "preproc.y"
+ { (yyval.str) = mm_strdup("varchar"); }
+#line 66189 "preproc.c"
+ break;
+
+ case 3638: /* c_anything: '[' */
+#line 19008 "preproc.y"
+ { (yyval.str) = mm_strdup("["); }
+#line 66195 "preproc.c"
+ break;
+
+ case 3639: /* c_anything: ']' */
+#line 19009 "preproc.y"
+ { (yyval.str) = mm_strdup("]"); }
+#line 66201 "preproc.c"
+ break;
+
+ case 3640: /* c_anything: '=' */
+#line 19010 "preproc.y"
+ { (yyval.str) = mm_strdup("="); }
+#line 66207 "preproc.c"
+ break;
+
+ case 3641: /* c_anything: ':' */
+#line 19011 "preproc.y"
+ { (yyval.str) = mm_strdup(":"); }
+#line 66213 "preproc.c"
+ break;
+
+ case 3642: /* DeallocateStmt: DEALLOCATE prepared_name */
+#line 19014 "preproc.y"
+ { check_declared_list((yyvsp[0].str)); (yyval.str) = (yyvsp[0].str); }
+#line 66219 "preproc.c"
+ break;
+
+ case 3643: /* DeallocateStmt: DEALLOCATE PREPARE prepared_name */
+#line 19015 "preproc.y"
+ { check_declared_list((yyvsp[0].str)); (yyval.str) = (yyvsp[0].str); }
+#line 66225 "preproc.c"
+ break;
+
+ case 3644: /* DeallocateStmt: DEALLOCATE ALL */
+#line 19016 "preproc.y"
+ { (yyval.str) = mm_strdup("all"); }
+#line 66231 "preproc.c"
+ break;
+
+ case 3645: /* DeallocateStmt: DEALLOCATE PREPARE ALL */
+#line 19017 "preproc.y"
+ { (yyval.str) = mm_strdup("all"); }
+#line 66237 "preproc.c"
+ break;
+
+ case 3646: /* Iresult: Iconst */
+#line 19020 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 66243 "preproc.c"
+ break;
+
+ case 3647: /* Iresult: '(' Iresult ')' */
+#line 19021 "preproc.y"
+ { (yyval.str) = cat_str(3, mm_strdup("("), (yyvsp[-1].str), mm_strdup(")")); }
+#line 66249 "preproc.c"
+ break;
+
+ case 3648: /* Iresult: Iresult '+' Iresult */
+#line 19022 "preproc.y"
+ { (yyval.str) = cat_str(3, (yyvsp[-2].str), mm_strdup("+"), (yyvsp[0].str)); }
+#line 66255 "preproc.c"
+ break;
+
+ case 3649: /* Iresult: Iresult '-' Iresult */
+#line 19023 "preproc.y"
+ { (yyval.str) = cat_str(3, (yyvsp[-2].str), mm_strdup("-"), (yyvsp[0].str)); }
+#line 66261 "preproc.c"
+ break;
+
+ case 3650: /* Iresult: Iresult '*' Iresult */
+#line 19024 "preproc.y"
+ { (yyval.str) = cat_str(3, (yyvsp[-2].str), mm_strdup("*"), (yyvsp[0].str)); }
+#line 66267 "preproc.c"
+ break;
+
+ case 3651: /* Iresult: Iresult '/' Iresult */
+#line 19025 "preproc.y"
+ { (yyval.str) = cat_str(3, (yyvsp[-2].str), mm_strdup("/"), (yyvsp[0].str)); }
+#line 66273 "preproc.c"
+ break;
+
+ case 3652: /* Iresult: Iresult '%' Iresult */
+#line 19026 "preproc.y"
+ { (yyval.str) = cat_str(3, (yyvsp[-2].str), mm_strdup("%"), (yyvsp[0].str)); }
+#line 66279 "preproc.c"
+ break;
+
+ case 3653: /* Iresult: ecpg_sconst */
+#line 19027 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 66285 "preproc.c"
+ break;
+
+ case 3654: /* Iresult: ColId */
+#line 19028 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 66291 "preproc.c"
+ break;
+
+ case 3655: /* Iresult: ColId '(' var_type ')' */
+#line 19029 "preproc.y"
+ { if (pg_strcasecmp((yyvsp[-3].str), "sizeof") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "operator not allowed in variable definition");
+ else
+ (yyval.str) = cat_str(4, (yyvsp[-3].str), mm_strdup("("), (yyvsp[-1].type).type_str, mm_strdup(")"));
+ }
+#line 66301 "preproc.c"
+ break;
+
+ case 3656: /* execute_rest: %empty */
+#line 19036 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 66307 "preproc.c"
+ break;
+
+ case 3657: /* execute_rest: ecpg_using opt_ecpg_into */
+#line 19037 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 66313 "preproc.c"
+ break;
+
+ case 3658: /* execute_rest: ecpg_into ecpg_using */
+#line 19038 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 66319 "preproc.c"
+ break;
+
+ case 3659: /* execute_rest: ecpg_into */
+#line 19039 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 66325 "preproc.c"
+ break;
+
+ case 3660: /* ecpg_into: INTO into_list */
+#line 19042 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 66331 "preproc.c"
+ break;
+
+ case 3661: /* ecpg_into: into_descriptor */
+#line 19043 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 66337 "preproc.c"
+ break;
+
+ case 3662: /* opt_ecpg_into: %empty */
+#line 19046 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 66343 "preproc.c"
+ break;
+
+ case 3663: /* opt_ecpg_into: ecpg_into */
+#line 19047 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 66349 "preproc.c"
+ break;
+
+ case 3664: /* ecpg_fetch_into: ecpg_into */
+#line 19050 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 66355 "preproc.c"
+ break;
+
+ case 3665: /* ecpg_fetch_into: using_descriptor */
+#line 19052 "preproc.y"
+ {
+ struct variable *var;
+
+ var = argsinsert->variable;
+ remove_variable_from_list(&argsinsert, var);
+ add_variable_to_head(&argsresult, var, &no_indicator);
+ (yyval.str) = (yyvsp[0].str);
+ }
+#line 66368 "preproc.c"
+ break;
+
+ case 3666: /* opt_ecpg_fetch_into: %empty */
+#line 19062 "preproc.y"
+ { (yyval.str) = EMPTY; }
+#line 66374 "preproc.c"
+ break;
+
+ case 3667: /* opt_ecpg_fetch_into: ecpg_fetch_into */
+#line 19063 "preproc.y"
+ { (yyval.str) = (yyvsp[0].str); }
+#line 66380 "preproc.c"
+ break;
+
+
+#line 66384 "preproc.c"
+
+ default: break;
+ }
+ /* User semantic actions sometimes alter yychar, and that requires
+ that yytoken be updated with the new translation. We take the
+ approach of translating immediately before every use of yytoken.
+ One alternative is translating here after every semantic action,
+ but that translation would be missed if the semantic action invokes
+ YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
+ if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
+ incorrect destructor might then be invoked immediately. In the
+ case of YYERROR or YYBACKUP, subsequent parser actions might lead
+ to an incorrect destructor call or verbose syntax error message
+ before the lookahead is translated. */
+ YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
+
+ YYPOPSTACK (yylen);
+ yylen = 0;
+
+ *++yyvsp = yyval;
+ *++yylsp = yyloc;
+
+ /* Now 'shift' the result of the reduction. Determine what state
+ that goes to, based on the state we popped back to and the rule
+ number reduced by. */
+ {
+ const int yylhs = yyr1[yyn] - YYNTOKENS;
+ const int yyi = yypgoto[yylhs] + *yyssp;
+ yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
+ ? yytable[yyi]
+ : yydefgoto[yylhs]);
+ }
+
+ goto yynewstate;
+
+
+/*--------------------------------------.
+| yyerrlab -- here on detecting error. |
+`--------------------------------------*/
+yyerrlab:
+ /* Make sure we have latest lookahead translation. See comments at
+ user semantic actions for why this is necessary. */
+ yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
+ /* If not already recovering from an error, report this error. */
+ if (!yyerrstatus)
+ {
+ ++yynerrs;
+ yyerror (YY_("syntax error"));
+ }
+
+ yyerror_range[1] = yylloc;
+ if (yyerrstatus == 3)
+ {
+ /* If just tried and failed to reuse lookahead token after an
+ error, discard it. */
+
+ if (yychar <= YYEOF)
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
+ else
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval, &yylloc);
+ yychar = YYEMPTY;
+ }
+ }
+
+ /* Else will try to reuse lookahead token after shifting the error
+ token. */
+ goto yyerrlab1;
+
+
+/*---------------------------------------------------.
+| yyerrorlab -- error raised explicitly by YYERROR. |
+`---------------------------------------------------*/
+yyerrorlab:
+ /* Pacify compilers when the user code never invokes YYERROR and the
+ label yyerrorlab therefore never appears in user code. */
+ if (0)
+ YYERROR;
+
+ /* Do not reclaim the symbols of the rule whose action triggered
+ this YYERROR. */
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+ yystate = *yyssp;
+ goto yyerrlab1;
+
+
+/*-------------------------------------------------------------.
+| yyerrlab1 -- common code for both syntax error and YYERROR. |
+`-------------------------------------------------------------*/
+yyerrlab1:
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
+
+ /* Pop stack until we find a state that shifts the error token. */
+ for (;;)
+ {
+ yyn = yypact[yystate];
+ if (!yypact_value_is_default (yyn))
+ {
+ yyn += YYSYMBOL_YYerror;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ /* Pop the current state because it cannot handle the error token. */
+ if (yyssp == yyss)
+ YYABORT;
+
+ yyerror_range[1] = *yylsp;
+ yydestruct ("Error: popping",
+ YY_ACCESSING_SYMBOL (yystate), yyvsp, yylsp);
+ YYPOPSTACK (1);
+ yystate = *yyssp;
+ YY_STACK_PRINT (yyss, yyssp);
+ }
+
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+ *++yyvsp = yylval;
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
+
+ yyerror_range[2] = yylloc;
+ ++yylsp;
+ YYLLOC_DEFAULT (*yylsp, yyerror_range, 2);
+
+ /* Shift the error token. */
+ YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
+
+ yystate = yyn;
+ goto yynewstate;
+
+
+/*-------------------------------------.
+| yyacceptlab -- YYACCEPT comes here. |
+`-------------------------------------*/
+yyacceptlab:
+ yyresult = 0;
+ goto yyreturn;
+
+
+/*-----------------------------------.
+| yyabortlab -- YYABORT comes here. |
+`-----------------------------------*/
+yyabortlab:
+ yyresult = 1;
+ goto yyreturn;
+
+
+#if !defined yyoverflow
+/*-------------------------------------------------.
+| yyexhaustedlab -- memory exhaustion comes here. |
+`-------------------------------------------------*/
+yyexhaustedlab:
+ yyerror (YY_("memory exhausted"));
+ yyresult = 2;
+ goto yyreturn;
+#endif
+
+
+/*-------------------------------------------------------.
+| yyreturn -- parsing is finished, clean up and return. |
+`-------------------------------------------------------*/
+yyreturn:
+ if (yychar != YYEMPTY)
+ {
+ /* Make sure we have latest lookahead translation. See comments at
+ user semantic actions for why this is necessary. */
+ yytoken = YYTRANSLATE (yychar);
+ yydestruct ("Cleanup: discarding lookahead",
+ yytoken, &yylval, &yylloc);
+ }
+ /* Do not reclaim the symbols of the rule whose action triggered
+ this YYABORT or YYACCEPT. */
+ YYPOPSTACK (yylen);
+ YY_STACK_PRINT (yyss, yyssp);
+ while (yyssp != yyss)
+ {
+ yydestruct ("Cleanup: popping",
+ YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yylsp);
+ YYPOPSTACK (1);
+ }
+#ifndef yyoverflow
+ if (yyss != yyssa)
+ YYSTACK_FREE (yyss);
+#endif
+
+ return yyresult;
+}
+
+#line 19066 "preproc.y"
+
+
+void base_yyerror(const char *error)
+{
+ /* translator: %s is typically the translation of "syntax error" */
+ mmerror(PARSE_ERROR, ET_ERROR, "%s at or near \"%s\"",
+ _(error), token_start ? token_start : base_yytext);
+}
+
+void parser_init(void)
+{
+ /* This function is empty. It only exists for compatibility with the backend parser right now. */
+}
diff --git a/src/interfaces/ecpg/preproc/preproc.h b/src/interfaces/ecpg/preproc/preproc.h
new file mode 100644
index 0000000..4419786
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/preproc.h
@@ -0,0 +1,665 @@
+/* A Bison parser, made by GNU Bison 3.7.5. */
+
+/* Bison interface for Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
+ Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof
+ as a parser skeleton. Alternatively, if you modify or redistribute
+ the parser skeleton itself, you may (at your option) remove this
+ special exception, which will cause the skeleton and the resulting
+ Bison output files to be licensed under the GNU General Public
+ License without this special exception.
+
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison. */
+
+/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
+ especially those whose name start with YY_ or yy_. They are
+ private implementation details that can be changed or removed. */
+
+#ifndef YY_BASE_YY_PREPROC_H_INCLUDED
+# define YY_BASE_YY_PREPROC_H_INCLUDED
+/* Debug traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 0
+#endif
+#if YYDEBUG
+extern int base_yydebug;
+#endif
+
+/* Token kinds. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ enum yytokentype
+ {
+ YYEMPTY = -2,
+ YYEOF = 0, /* "end of file" */
+ YYerror = 256, /* error */
+ YYUNDEF = 257, /* "invalid token" */
+ SQL_ALLOCATE = 258, /* SQL_ALLOCATE */
+ SQL_AUTOCOMMIT = 259, /* SQL_AUTOCOMMIT */
+ SQL_BOOL = 260, /* SQL_BOOL */
+ SQL_BREAK = 261, /* SQL_BREAK */
+ SQL_CARDINALITY = 262, /* SQL_CARDINALITY */
+ SQL_CONNECT = 263, /* SQL_CONNECT */
+ SQL_COUNT = 264, /* SQL_COUNT */
+ SQL_DATETIME_INTERVAL_CODE = 265, /* SQL_DATETIME_INTERVAL_CODE */
+ SQL_DATETIME_INTERVAL_PRECISION = 266, /* SQL_DATETIME_INTERVAL_PRECISION */
+ SQL_DESCRIBE = 267, /* SQL_DESCRIBE */
+ SQL_DESCRIPTOR = 268, /* SQL_DESCRIPTOR */
+ SQL_DISCONNECT = 269, /* SQL_DISCONNECT */
+ SQL_FOUND = 270, /* SQL_FOUND */
+ SQL_FREE = 271, /* SQL_FREE */
+ SQL_GET = 272, /* SQL_GET */
+ SQL_GO = 273, /* SQL_GO */
+ SQL_GOTO = 274, /* SQL_GOTO */
+ SQL_IDENTIFIED = 275, /* SQL_IDENTIFIED */
+ SQL_INDICATOR = 276, /* SQL_INDICATOR */
+ SQL_KEY_MEMBER = 277, /* SQL_KEY_MEMBER */
+ SQL_LENGTH = 278, /* SQL_LENGTH */
+ SQL_LONG = 279, /* SQL_LONG */
+ SQL_NULLABLE = 280, /* SQL_NULLABLE */
+ SQL_OCTET_LENGTH = 281, /* SQL_OCTET_LENGTH */
+ SQL_OPEN = 282, /* SQL_OPEN */
+ SQL_OUTPUT = 283, /* SQL_OUTPUT */
+ SQL_REFERENCE = 284, /* SQL_REFERENCE */
+ SQL_RETURNED_LENGTH = 285, /* SQL_RETURNED_LENGTH */
+ SQL_RETURNED_OCTET_LENGTH = 286, /* SQL_RETURNED_OCTET_LENGTH */
+ SQL_SCALE = 287, /* SQL_SCALE */
+ SQL_SECTION = 288, /* SQL_SECTION */
+ SQL_SHORT = 289, /* SQL_SHORT */
+ SQL_SIGNED = 290, /* SQL_SIGNED */
+ SQL_SQLERROR = 291, /* SQL_SQLERROR */
+ SQL_SQLPRINT = 292, /* SQL_SQLPRINT */
+ SQL_SQLWARNING = 293, /* SQL_SQLWARNING */
+ SQL_START = 294, /* SQL_START */
+ SQL_STOP = 295, /* SQL_STOP */
+ SQL_STRUCT = 296, /* SQL_STRUCT */
+ SQL_UNSIGNED = 297, /* SQL_UNSIGNED */
+ SQL_VAR = 298, /* SQL_VAR */
+ SQL_WHENEVER = 299, /* SQL_WHENEVER */
+ S_ADD = 300, /* S_ADD */
+ S_AND = 301, /* S_AND */
+ S_ANYTHING = 302, /* S_ANYTHING */
+ S_AUTO = 303, /* S_AUTO */
+ S_CONST = 304, /* S_CONST */
+ S_DEC = 305, /* S_DEC */
+ S_DIV = 306, /* S_DIV */
+ S_DOTPOINT = 307, /* S_DOTPOINT */
+ S_EQUAL = 308, /* S_EQUAL */
+ S_EXTERN = 309, /* S_EXTERN */
+ S_INC = 310, /* S_INC */
+ S_LSHIFT = 311, /* S_LSHIFT */
+ S_MEMPOINT = 312, /* S_MEMPOINT */
+ S_MEMBER = 313, /* S_MEMBER */
+ S_MOD = 314, /* S_MOD */
+ S_MUL = 315, /* S_MUL */
+ S_NEQUAL = 316, /* S_NEQUAL */
+ S_OR = 317, /* S_OR */
+ S_REGISTER = 318, /* S_REGISTER */
+ S_RSHIFT = 319, /* S_RSHIFT */
+ S_STATIC = 320, /* S_STATIC */
+ S_SUB = 321, /* S_SUB */
+ S_VOLATILE = 322, /* S_VOLATILE */
+ S_TYPEDEF = 323, /* S_TYPEDEF */
+ CSTRING = 324, /* CSTRING */
+ CVARIABLE = 325, /* CVARIABLE */
+ CPP_LINE = 326, /* CPP_LINE */
+ IP = 327, /* IP */
+ IDENT = 328, /* IDENT */
+ UIDENT = 329, /* UIDENT */
+ FCONST = 330, /* FCONST */
+ SCONST = 331, /* SCONST */
+ USCONST = 332, /* USCONST */
+ BCONST = 333, /* BCONST */
+ XCONST = 334, /* XCONST */
+ Op = 335, /* Op */
+ ICONST = 336, /* ICONST */
+ PARAM = 337, /* PARAM */
+ TYPECAST = 338, /* TYPECAST */
+ DOT_DOT = 339, /* DOT_DOT */
+ COLON_EQUALS = 340, /* COLON_EQUALS */
+ EQUALS_GREATER = 341, /* EQUALS_GREATER */
+ LESS_EQUALS = 342, /* LESS_EQUALS */
+ GREATER_EQUALS = 343, /* GREATER_EQUALS */
+ NOT_EQUALS = 344, /* NOT_EQUALS */
+ ABORT_P = 345, /* ABORT_P */
+ ABSOLUTE_P = 346, /* ABSOLUTE_P */
+ ACCESS = 347, /* ACCESS */
+ ACTION = 348, /* ACTION */
+ ADD_P = 349, /* ADD_P */
+ ADMIN = 350, /* ADMIN */
+ AFTER = 351, /* AFTER */
+ AGGREGATE = 352, /* AGGREGATE */
+ ALL = 353, /* ALL */
+ ALSO = 354, /* ALSO */
+ ALTER = 355, /* ALTER */
+ ALWAYS = 356, /* ALWAYS */
+ ANALYSE = 357, /* ANALYSE */
+ ANALYZE = 358, /* ANALYZE */
+ AND = 359, /* AND */
+ ANY = 360, /* ANY */
+ ARRAY = 361, /* ARRAY */
+ AS = 362, /* AS */
+ ASC = 363, /* ASC */
+ ASENSITIVE = 364, /* ASENSITIVE */
+ ASSERTION = 365, /* ASSERTION */
+ ASSIGNMENT = 366, /* ASSIGNMENT */
+ ASYMMETRIC = 367, /* ASYMMETRIC */
+ ATOMIC = 368, /* ATOMIC */
+ AT = 369, /* AT */
+ ATTACH = 370, /* ATTACH */
+ ATTRIBUTE = 371, /* ATTRIBUTE */
+ AUTHORIZATION = 372, /* AUTHORIZATION */
+ BACKWARD = 373, /* BACKWARD */
+ BEFORE = 374, /* BEFORE */
+ BEGIN_P = 375, /* BEGIN_P */
+ BETWEEN = 376, /* BETWEEN */
+ BIGINT = 377, /* BIGINT */
+ BINARY = 378, /* BINARY */
+ BIT = 379, /* BIT */
+ BOOLEAN_P = 380, /* BOOLEAN_P */
+ BOTH = 381, /* BOTH */
+ BREADTH = 382, /* BREADTH */
+ BY = 383, /* BY */
+ CACHE = 384, /* CACHE */
+ CALL = 385, /* CALL */
+ CALLED = 386, /* CALLED */
+ CASCADE = 387, /* CASCADE */
+ CASCADED = 388, /* CASCADED */
+ CASE = 389, /* CASE */
+ CAST = 390, /* CAST */
+ CATALOG_P = 391, /* CATALOG_P */
+ CHAIN = 392, /* CHAIN */
+ CHAR_P = 393, /* CHAR_P */
+ CHARACTER = 394, /* CHARACTER */
+ CHARACTERISTICS = 395, /* CHARACTERISTICS */
+ CHECK = 396, /* CHECK */
+ CHECKPOINT = 397, /* CHECKPOINT */
+ CLASS = 398, /* CLASS */
+ CLOSE = 399, /* CLOSE */
+ CLUSTER = 400, /* CLUSTER */
+ COALESCE = 401, /* COALESCE */
+ COLLATE = 402, /* COLLATE */
+ COLLATION = 403, /* COLLATION */
+ COLUMN = 404, /* COLUMN */
+ COLUMNS = 405, /* COLUMNS */
+ COMMENT = 406, /* COMMENT */
+ COMMENTS = 407, /* COMMENTS */
+ COMMIT = 408, /* COMMIT */
+ COMMITTED = 409, /* COMMITTED */
+ COMPRESSION = 410, /* COMPRESSION */
+ CONCURRENTLY = 411, /* CONCURRENTLY */
+ CONFIGURATION = 412, /* CONFIGURATION */
+ CONFLICT = 413, /* CONFLICT */
+ CONNECTION = 414, /* CONNECTION */
+ CONSTRAINT = 415, /* CONSTRAINT */
+ CONSTRAINTS = 416, /* CONSTRAINTS */
+ CONTENT_P = 417, /* CONTENT_P */
+ CONTINUE_P = 418, /* CONTINUE_P */
+ CONVERSION_P = 419, /* CONVERSION_P */
+ COPY = 420, /* COPY */
+ COST = 421, /* COST */
+ CREATE = 422, /* CREATE */
+ CROSS = 423, /* CROSS */
+ CSV = 424, /* CSV */
+ CUBE = 425, /* CUBE */
+ CURRENT_P = 426, /* CURRENT_P */
+ CURRENT_CATALOG = 427, /* CURRENT_CATALOG */
+ CURRENT_DATE = 428, /* CURRENT_DATE */
+ CURRENT_ROLE = 429, /* CURRENT_ROLE */
+ CURRENT_SCHEMA = 430, /* CURRENT_SCHEMA */
+ CURRENT_TIME = 431, /* CURRENT_TIME */
+ CURRENT_TIMESTAMP = 432, /* CURRENT_TIMESTAMP */
+ CURRENT_USER = 433, /* CURRENT_USER */
+ CURSOR = 434, /* CURSOR */
+ CYCLE = 435, /* CYCLE */
+ DATA_P = 436, /* DATA_P */
+ DATABASE = 437, /* DATABASE */
+ DAY_P = 438, /* DAY_P */
+ DEALLOCATE = 439, /* DEALLOCATE */
+ DEC = 440, /* DEC */
+ DECIMAL_P = 441, /* DECIMAL_P */
+ DECLARE = 442, /* DECLARE */
+ DEFAULT = 443, /* DEFAULT */
+ DEFAULTS = 444, /* DEFAULTS */
+ DEFERRABLE = 445, /* DEFERRABLE */
+ DEFERRED = 446, /* DEFERRED */
+ DEFINER = 447, /* DEFINER */
+ DELETE_P = 448, /* DELETE_P */
+ DELIMITER = 449, /* DELIMITER */
+ DELIMITERS = 450, /* DELIMITERS */
+ DEPENDS = 451, /* DEPENDS */
+ DEPTH = 452, /* DEPTH */
+ DESC = 453, /* DESC */
+ DETACH = 454, /* DETACH */
+ DICTIONARY = 455, /* DICTIONARY */
+ DISABLE_P = 456, /* DISABLE_P */
+ DISCARD = 457, /* DISCARD */
+ DISTINCT = 458, /* DISTINCT */
+ DO = 459, /* DO */
+ DOCUMENT_P = 460, /* DOCUMENT_P */
+ DOMAIN_P = 461, /* DOMAIN_P */
+ DOUBLE_P = 462, /* DOUBLE_P */
+ DROP = 463, /* DROP */
+ EACH = 464, /* EACH */
+ ELSE = 465, /* ELSE */
+ ENABLE_P = 466, /* ENABLE_P */
+ ENCODING = 467, /* ENCODING */
+ ENCRYPTED = 468, /* ENCRYPTED */
+ END_P = 469, /* END_P */
+ ENUM_P = 470, /* ENUM_P */
+ ESCAPE = 471, /* ESCAPE */
+ EVENT = 472, /* EVENT */
+ EXCEPT = 473, /* EXCEPT */
+ EXCLUDE = 474, /* EXCLUDE */
+ EXCLUDING = 475, /* EXCLUDING */
+ EXCLUSIVE = 476, /* EXCLUSIVE */
+ EXECUTE = 477, /* EXECUTE */
+ EXISTS = 478, /* EXISTS */
+ EXPLAIN = 479, /* EXPLAIN */
+ EXPRESSION = 480, /* EXPRESSION */
+ EXTENSION = 481, /* EXTENSION */
+ EXTERNAL = 482, /* EXTERNAL */
+ EXTRACT = 483, /* EXTRACT */
+ FALSE_P = 484, /* FALSE_P */
+ FAMILY = 485, /* FAMILY */
+ FETCH = 486, /* FETCH */
+ FILTER = 487, /* FILTER */
+ FINALIZE = 488, /* FINALIZE */
+ FIRST_P = 489, /* FIRST_P */
+ FLOAT_P = 490, /* FLOAT_P */
+ FOLLOWING = 491, /* FOLLOWING */
+ FOR = 492, /* FOR */
+ FORCE = 493, /* FORCE */
+ FOREIGN = 494, /* FOREIGN */
+ FORWARD = 495, /* FORWARD */
+ FREEZE = 496, /* FREEZE */
+ FROM = 497, /* FROM */
+ FULL = 498, /* FULL */
+ FUNCTION = 499, /* FUNCTION */
+ FUNCTIONS = 500, /* FUNCTIONS */
+ GENERATED = 501, /* GENERATED */
+ GLOBAL = 502, /* GLOBAL */
+ GRANT = 503, /* GRANT */
+ GRANTED = 504, /* GRANTED */
+ GREATEST = 505, /* GREATEST */
+ GROUP_P = 506, /* GROUP_P */
+ GROUPING = 507, /* GROUPING */
+ GROUPS = 508, /* GROUPS */
+ HANDLER = 509, /* HANDLER */
+ HAVING = 510, /* HAVING */
+ HEADER_P = 511, /* HEADER_P */
+ HOLD = 512, /* HOLD */
+ HOUR_P = 513, /* HOUR_P */
+ IDENTITY_P = 514, /* IDENTITY_P */
+ IF_P = 515, /* IF_P */
+ ILIKE = 516, /* ILIKE */
+ IMMEDIATE = 517, /* IMMEDIATE */
+ IMMUTABLE = 518, /* IMMUTABLE */
+ IMPLICIT_P = 519, /* IMPLICIT_P */
+ IMPORT_P = 520, /* IMPORT_P */
+ IN_P = 521, /* IN_P */
+ INCLUDE = 522, /* INCLUDE */
+ INCLUDING = 523, /* INCLUDING */
+ INCREMENT = 524, /* INCREMENT */
+ INDEX = 525, /* INDEX */
+ INDEXES = 526, /* INDEXES */
+ INHERIT = 527, /* INHERIT */
+ INHERITS = 528, /* INHERITS */
+ INITIALLY = 529, /* INITIALLY */
+ INLINE_P = 530, /* INLINE_P */
+ INNER_P = 531, /* INNER_P */
+ INOUT = 532, /* INOUT */
+ INPUT_P = 533, /* INPUT_P */
+ INSENSITIVE = 534, /* INSENSITIVE */
+ INSERT = 535, /* INSERT */
+ INSTEAD = 536, /* INSTEAD */
+ INT_P = 537, /* INT_P */
+ INTEGER = 538, /* INTEGER */
+ INTERSECT = 539, /* INTERSECT */
+ INTERVAL = 540, /* INTERVAL */
+ INTO = 541, /* INTO */
+ INVOKER = 542, /* INVOKER */
+ IS = 543, /* IS */
+ ISNULL = 544, /* ISNULL */
+ ISOLATION = 545, /* ISOLATION */
+ JOIN = 546, /* JOIN */
+ KEY = 547, /* KEY */
+ LABEL = 548, /* LABEL */
+ LANGUAGE = 549, /* LANGUAGE */
+ LARGE_P = 550, /* LARGE_P */
+ LAST_P = 551, /* LAST_P */
+ LATERAL_P = 552, /* LATERAL_P */
+ LEADING = 553, /* LEADING */
+ LEAKPROOF = 554, /* LEAKPROOF */
+ LEAST = 555, /* LEAST */
+ LEFT = 556, /* LEFT */
+ LEVEL = 557, /* LEVEL */
+ LIKE = 558, /* LIKE */
+ LIMIT = 559, /* LIMIT */
+ LISTEN = 560, /* LISTEN */
+ LOAD = 561, /* LOAD */
+ LOCAL = 562, /* LOCAL */
+ LOCALTIME = 563, /* LOCALTIME */
+ LOCALTIMESTAMP = 564, /* LOCALTIMESTAMP */
+ LOCATION = 565, /* LOCATION */
+ LOCK_P = 566, /* LOCK_P */
+ LOCKED = 567, /* LOCKED */
+ LOGGED = 568, /* LOGGED */
+ MAPPING = 569, /* MAPPING */
+ MATCH = 570, /* MATCH */
+ MATCHED = 571, /* MATCHED */
+ MATERIALIZED = 572, /* MATERIALIZED */
+ MAXVALUE = 573, /* MAXVALUE */
+ MERGE = 574, /* MERGE */
+ METHOD = 575, /* METHOD */
+ MINUTE_P = 576, /* MINUTE_P */
+ MINVALUE = 577, /* MINVALUE */
+ MODE = 578, /* MODE */
+ MONTH_P = 579, /* MONTH_P */
+ MOVE = 580, /* MOVE */
+ NAME_P = 581, /* NAME_P */
+ NAMES = 582, /* NAMES */
+ NATIONAL = 583, /* NATIONAL */
+ NATURAL = 584, /* NATURAL */
+ NCHAR = 585, /* NCHAR */
+ NEW = 586, /* NEW */
+ NEXT = 587, /* NEXT */
+ NFC = 588, /* NFC */
+ NFD = 589, /* NFD */
+ NFKC = 590, /* NFKC */
+ NFKD = 591, /* NFKD */
+ NO = 592, /* NO */
+ NONE = 593, /* NONE */
+ NORMALIZE = 594, /* NORMALIZE */
+ NORMALIZED = 595, /* NORMALIZED */
+ NOT = 596, /* NOT */
+ NOTHING = 597, /* NOTHING */
+ NOTIFY = 598, /* NOTIFY */
+ NOTNULL = 599, /* NOTNULL */
+ NOWAIT = 600, /* NOWAIT */
+ NULL_P = 601, /* NULL_P */
+ NULLIF = 602, /* NULLIF */
+ NULLS_P = 603, /* NULLS_P */
+ NUMERIC = 604, /* NUMERIC */
+ OBJECT_P = 605, /* OBJECT_P */
+ OF = 606, /* OF */
+ OFF = 607, /* OFF */
+ OFFSET = 608, /* OFFSET */
+ OIDS = 609, /* OIDS */
+ OLD = 610, /* OLD */
+ ON = 611, /* ON */
+ ONLY = 612, /* ONLY */
+ OPERATOR = 613, /* OPERATOR */
+ OPTION = 614, /* OPTION */
+ OPTIONS = 615, /* OPTIONS */
+ OR = 616, /* OR */
+ ORDER = 617, /* ORDER */
+ ORDINALITY = 618, /* ORDINALITY */
+ OTHERS = 619, /* OTHERS */
+ OUT_P = 620, /* OUT_P */
+ OUTER_P = 621, /* OUTER_P */
+ OVER = 622, /* OVER */
+ OVERLAPS = 623, /* OVERLAPS */
+ OVERLAY = 624, /* OVERLAY */
+ OVERRIDING = 625, /* OVERRIDING */
+ OWNED = 626, /* OWNED */
+ OWNER = 627, /* OWNER */
+ PARALLEL = 628, /* PARALLEL */
+ PARAMETER = 629, /* PARAMETER */
+ PARSER = 630, /* PARSER */
+ PARTIAL = 631, /* PARTIAL */
+ PARTITION = 632, /* PARTITION */
+ PASSING = 633, /* PASSING */
+ PASSWORD = 634, /* PASSWORD */
+ PLACING = 635, /* PLACING */
+ PLANS = 636, /* PLANS */
+ POLICY = 637, /* POLICY */
+ POSITION = 638, /* POSITION */
+ PRECEDING = 639, /* PRECEDING */
+ PRECISION = 640, /* PRECISION */
+ PRESERVE = 641, /* PRESERVE */
+ PREPARE = 642, /* PREPARE */
+ PREPARED = 643, /* PREPARED */
+ PRIMARY = 644, /* PRIMARY */
+ PRIOR = 645, /* PRIOR */
+ PRIVILEGES = 646, /* PRIVILEGES */
+ PROCEDURAL = 647, /* PROCEDURAL */
+ PROCEDURE = 648, /* PROCEDURE */
+ PROCEDURES = 649, /* PROCEDURES */
+ PROGRAM = 650, /* PROGRAM */
+ PUBLICATION = 651, /* PUBLICATION */
+ QUOTE = 652, /* QUOTE */
+ RANGE = 653, /* RANGE */
+ READ = 654, /* READ */
+ REAL = 655, /* REAL */
+ REASSIGN = 656, /* REASSIGN */
+ RECHECK = 657, /* RECHECK */
+ RECURSIVE = 658, /* RECURSIVE */
+ REF_P = 659, /* REF_P */
+ REFERENCES = 660, /* REFERENCES */
+ REFERENCING = 661, /* REFERENCING */
+ REFRESH = 662, /* REFRESH */
+ REINDEX = 663, /* REINDEX */
+ RELATIVE_P = 664, /* RELATIVE_P */
+ RELEASE = 665, /* RELEASE */
+ RENAME = 666, /* RENAME */
+ REPEATABLE = 667, /* REPEATABLE */
+ REPLACE = 668, /* REPLACE */
+ REPLICA = 669, /* REPLICA */
+ RESET = 670, /* RESET */
+ RESTART = 671, /* RESTART */
+ RESTRICT = 672, /* RESTRICT */
+ RETURN = 673, /* RETURN */
+ RETURNING = 674, /* RETURNING */
+ RETURNS = 675, /* RETURNS */
+ REVOKE = 676, /* REVOKE */
+ RIGHT = 677, /* RIGHT */
+ ROLE = 678, /* ROLE */
+ ROLLBACK = 679, /* ROLLBACK */
+ ROLLUP = 680, /* ROLLUP */
+ ROUTINE = 681, /* ROUTINE */
+ ROUTINES = 682, /* ROUTINES */
+ ROW = 683, /* ROW */
+ ROWS = 684, /* ROWS */
+ RULE = 685, /* RULE */
+ SAVEPOINT = 686, /* SAVEPOINT */
+ SCHEMA = 687, /* SCHEMA */
+ SCHEMAS = 688, /* SCHEMAS */
+ SCROLL = 689, /* SCROLL */
+ SEARCH = 690, /* SEARCH */
+ SECOND_P = 691, /* SECOND_P */
+ SECURITY = 692, /* SECURITY */
+ SELECT = 693, /* SELECT */
+ SEQUENCE = 694, /* SEQUENCE */
+ SEQUENCES = 695, /* SEQUENCES */
+ SERIALIZABLE = 696, /* SERIALIZABLE */
+ SERVER = 697, /* SERVER */
+ SESSION = 698, /* SESSION */
+ SESSION_USER = 699, /* SESSION_USER */
+ SET = 700, /* SET */
+ SETS = 701, /* SETS */
+ SETOF = 702, /* SETOF */
+ SHARE = 703, /* SHARE */
+ SHOW = 704, /* SHOW */
+ SIMILAR = 705, /* SIMILAR */
+ SIMPLE = 706, /* SIMPLE */
+ SKIP = 707, /* SKIP */
+ SMALLINT = 708, /* SMALLINT */
+ SNAPSHOT = 709, /* SNAPSHOT */
+ SOME = 710, /* SOME */
+ SQL_P = 711, /* SQL_P */
+ STABLE = 712, /* STABLE */
+ STANDALONE_P = 713, /* STANDALONE_P */
+ START = 714, /* START */
+ STATEMENT = 715, /* STATEMENT */
+ STATISTICS = 716, /* STATISTICS */
+ STDIN = 717, /* STDIN */
+ STDOUT = 718, /* STDOUT */
+ STORAGE = 719, /* STORAGE */
+ STORED = 720, /* STORED */
+ STRICT_P = 721, /* STRICT_P */
+ STRIP_P = 722, /* STRIP_P */
+ SUBSCRIPTION = 723, /* SUBSCRIPTION */
+ SUBSTRING = 724, /* SUBSTRING */
+ SUPPORT = 725, /* SUPPORT */
+ SYMMETRIC = 726, /* SYMMETRIC */
+ SYSID = 727, /* SYSID */
+ SYSTEM_P = 728, /* SYSTEM_P */
+ TABLE = 729, /* TABLE */
+ TABLES = 730, /* TABLES */
+ TABLESAMPLE = 731, /* TABLESAMPLE */
+ TABLESPACE = 732, /* TABLESPACE */
+ TEMP = 733, /* TEMP */
+ TEMPLATE = 734, /* TEMPLATE */
+ TEMPORARY = 735, /* TEMPORARY */
+ TEXT_P = 736, /* TEXT_P */
+ THEN = 737, /* THEN */
+ TIES = 738, /* TIES */
+ TIME = 739, /* TIME */
+ TIMESTAMP = 740, /* TIMESTAMP */
+ TO = 741, /* TO */
+ TRAILING = 742, /* TRAILING */
+ TRANSACTION = 743, /* TRANSACTION */
+ TRANSFORM = 744, /* TRANSFORM */
+ TREAT = 745, /* TREAT */
+ TRIGGER = 746, /* TRIGGER */
+ TRIM = 747, /* TRIM */
+ TRUE_P = 748, /* TRUE_P */
+ TRUNCATE = 749, /* TRUNCATE */
+ TRUSTED = 750, /* TRUSTED */
+ TYPE_P = 751, /* TYPE_P */
+ TYPES_P = 752, /* TYPES_P */
+ UESCAPE = 753, /* UESCAPE */
+ UNBOUNDED = 754, /* UNBOUNDED */
+ UNCOMMITTED = 755, /* UNCOMMITTED */
+ UNENCRYPTED = 756, /* UNENCRYPTED */
+ UNION = 757, /* UNION */
+ UNIQUE = 758, /* UNIQUE */
+ UNKNOWN = 759, /* UNKNOWN */
+ UNLISTEN = 760, /* UNLISTEN */
+ UNLOGGED = 761, /* UNLOGGED */
+ UNTIL = 762, /* UNTIL */
+ UPDATE = 763, /* UPDATE */
+ USER = 764, /* USER */
+ USING = 765, /* USING */
+ VACUUM = 766, /* VACUUM */
+ VALID = 767, /* VALID */
+ VALIDATE = 768, /* VALIDATE */
+ VALIDATOR = 769, /* VALIDATOR */
+ VALUE_P = 770, /* VALUE_P */
+ VALUES = 771, /* VALUES */
+ VARCHAR = 772, /* VARCHAR */
+ VARIADIC = 773, /* VARIADIC */
+ VARYING = 774, /* VARYING */
+ VERBOSE = 775, /* VERBOSE */
+ VERSION_P = 776, /* VERSION_P */
+ VIEW = 777, /* VIEW */
+ VIEWS = 778, /* VIEWS */
+ VOLATILE = 779, /* VOLATILE */
+ WHEN = 780, /* WHEN */
+ WHERE = 781, /* WHERE */
+ WHITESPACE_P = 782, /* WHITESPACE_P */
+ WINDOW = 783, /* WINDOW */
+ WITH = 784, /* WITH */
+ WITHIN = 785, /* WITHIN */
+ WITHOUT = 786, /* WITHOUT */
+ WORK = 787, /* WORK */
+ WRAPPER = 788, /* WRAPPER */
+ WRITE = 789, /* WRITE */
+ XML_P = 790, /* XML_P */
+ XMLATTRIBUTES = 791, /* XMLATTRIBUTES */
+ XMLCONCAT = 792, /* XMLCONCAT */
+ XMLELEMENT = 793, /* XMLELEMENT */
+ XMLEXISTS = 794, /* XMLEXISTS */
+ XMLFOREST = 795, /* XMLFOREST */
+ XMLNAMESPACES = 796, /* XMLNAMESPACES */
+ XMLPARSE = 797, /* XMLPARSE */
+ XMLPI = 798, /* XMLPI */
+ XMLROOT = 799, /* XMLROOT */
+ XMLSERIALIZE = 800, /* XMLSERIALIZE */
+ XMLTABLE = 801, /* XMLTABLE */
+ YEAR_P = 802, /* YEAR_P */
+ YES_P = 803, /* YES_P */
+ ZONE = 804, /* ZONE */
+ NOT_LA = 805, /* NOT_LA */
+ NULLS_LA = 806, /* NULLS_LA */
+ WITH_LA = 807, /* WITH_LA */
+ MODE_TYPE_NAME = 808, /* MODE_TYPE_NAME */
+ MODE_PLPGSQL_EXPR = 809, /* MODE_PLPGSQL_EXPR */
+ MODE_PLPGSQL_ASSIGN1 = 810, /* MODE_PLPGSQL_ASSIGN1 */
+ MODE_PLPGSQL_ASSIGN2 = 811, /* MODE_PLPGSQL_ASSIGN2 */
+ MODE_PLPGSQL_ASSIGN3 = 812, /* MODE_PLPGSQL_ASSIGN3 */
+ UMINUS = 813 /* UMINUS */
+ };
+ typedef enum yytokentype yytoken_kind_t;
+#endif
+
+/* Value type. */
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
+union YYSTYPE
+{
+#line 612 "preproc.y"
+
+ double dval;
+ char *str;
+ int ival;
+ struct when action;
+ struct index index;
+ int tagname;
+ struct this_type type;
+ enum ECPGttype type_enum;
+ enum ECPGdtype dtype_enum;
+ struct fetch_desc descriptor;
+ struct su_symbol struct_union;
+ struct prep prep;
+ struct exec exec;
+ struct describe describe;
+
+#line 639 "preproc.h"
+
+};
+typedef union YYSTYPE YYSTYPE;
+# define YYSTYPE_IS_TRIVIAL 1
+# define YYSTYPE_IS_DECLARED 1
+#endif
+
+/* Location type. */
+#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
+typedef struct YYLTYPE YYLTYPE;
+struct YYLTYPE
+{
+ int first_line;
+ int first_column;
+ int last_line;
+ int last_column;
+};
+# define YYLTYPE_IS_DECLARED 1
+# define YYLTYPE_IS_TRIVIAL 1
+#endif
+
+
+extern YYSTYPE base_yylval;
+extern YYLTYPE base_yylloc;
+int base_yyparse (void);
+
+#endif /* !YY_BASE_YY_PREPROC_H_INCLUDED */
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y
new file mode 100644
index 0000000..50a0dc3
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/preproc.y
@@ -0,0 +1,19078 @@
+/* header */
+/* src/interfaces/ecpg/preproc/ecpg.header */
+
+/* Copyright comment */
+%{
+#include "postgres_fe.h"
+
+#include "preproc_extern.h"
+#include "ecpg_config.h"
+#include <unistd.h>
+
+/* Location tracking support --- simpler than bison's default */
+#define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do { \
+ if (N) \
+ (Current) = (Rhs)[1]; \
+ else \
+ (Current) = (Rhs)[0]; \
+ } while (0)
+
+/*
+ * The %name-prefix option below will make bison call base_yylex, but we
+ * really want it to call filtered_base_yylex (see parser.c).
+ */
+#define base_yylex filtered_base_yylex
+
+/*
+ * This is only here so the string gets into the POT. Bison uses it
+ * internally.
+ */
+#define bison_gettext_dummy gettext_noop("syntax error")
+
+/*
+ * Variables containing simple states.
+ */
+int struct_level = 0;
+int braces_open; /* brace level counter */
+char *current_function;
+int ecpg_internal_var = 0;
+char *connection = NULL;
+char *input_filename = NULL;
+
+static int FoundInto = 0;
+static int initializer = 0;
+static int pacounter = 1;
+static char pacounter_buffer[sizeof(int) * CHAR_BIT * 10 / 3]; /* a rough guess at the size we need */
+static struct this_type actual_type[STRUCT_DEPTH];
+static char *actual_startline[STRUCT_DEPTH];
+static int varchar_counter = 1;
+static int bytea_counter = 1;
+
+/* temporarily store struct members while creating the data structure */
+struct ECPGstruct_member *struct_member_list[STRUCT_DEPTH] = { NULL };
+
+/* also store struct type so we can do a sizeof() later */
+static char *ECPGstruct_sizeof = NULL;
+
+/* for forward declarations we have to store some data as well */
+static char *forward_name = NULL;
+
+struct ECPGtype ecpg_no_indicator = {ECPGt_NO_INDICATOR, NULL, NULL, NULL, {NULL}, 0};
+struct variable no_indicator = {"no_indicator", &ecpg_no_indicator, 0, NULL};
+
+static struct ECPGtype ecpg_query = {ECPGt_char_variable, NULL, NULL, NULL, {NULL}, 0};
+
+static void vmmerror(int error_code, enum errortype type, const char *error, va_list ap) pg_attribute_printf(3, 0);
+
+static bool check_declared_list(const char*);
+
+/*
+ * Handle parsing errors and warnings
+ */
+static void
+vmmerror(int error_code, enum errortype type, const char *error, va_list ap)
+{
+ /* localize the error message string */
+ error = _(error);
+
+ fprintf(stderr, "%s:%d: ", input_filename, base_yylineno);
+
+ switch(type)
+ {
+ case ET_WARNING:
+ fprintf(stderr, _("WARNING: "));
+ break;
+ case ET_ERROR:
+ fprintf(stderr, _("ERROR: "));
+ break;
+ }
+
+ vfprintf(stderr, error, ap);
+
+ fprintf(stderr, "\n");
+
+ switch(type)
+ {
+ case ET_WARNING:
+ break;
+ case ET_ERROR:
+ ret_value = error_code;
+ break;
+ }
+}
+
+void
+mmerror(int error_code, enum errortype type, const char *error, ...)
+{
+ va_list ap;
+
+ va_start(ap, error);
+ vmmerror(error_code, type, error, ap);
+ va_end(ap);
+}
+
+void
+mmfatal(int error_code, const char *error, ...)
+{
+ va_list ap;
+
+ va_start(ap, error);
+ vmmerror(error_code, ET_ERROR, error, ap);
+ va_end(ap);
+
+ if (base_yyin)
+ fclose(base_yyin);
+ if (base_yyout)
+ fclose(base_yyout);
+
+ if (strcmp(output_filename, "-") != 0 && unlink(output_filename) != 0)
+ fprintf(stderr, _("could not remove output file \"%s\"\n"), output_filename);
+ exit(error_code);
+}
+
+/*
+ * string concatenation
+ */
+
+static char *
+cat2_str(char *str1, char *str2)
+{
+ char * res_str = (char *)mm_alloc(strlen(str1) + strlen(str2) + 2);
+
+ strcpy(res_str, str1);
+ if (strlen(str1) != 0 && strlen(str2) != 0)
+ strcat(res_str, " ");
+ strcat(res_str, str2);
+ free(str1);
+ free(str2);
+ return res_str;
+}
+
+static char *
+cat_str(int count, ...)
+{
+ va_list args;
+ int i;
+ char *res_str;
+
+ va_start(args, count);
+
+ res_str = va_arg(args, char *);
+
+ /* now add all other strings */
+ for (i = 1; i < count; i++)
+ res_str = cat2_str(res_str, va_arg(args, char *));
+
+ va_end(args);
+
+ return res_str;
+}
+
+static char *
+make2_str(char *str1, char *str2)
+{
+ char * res_str = (char *)mm_alloc(strlen(str1) + strlen(str2) + 1);
+
+ strcpy(res_str, str1);
+ strcat(res_str, str2);
+ free(str1);
+ free(str2);
+ return res_str;
+}
+
+static char *
+make3_str(char *str1, char *str2, char *str3)
+{
+ char * res_str = (char *)mm_alloc(strlen(str1) + strlen(str2) +strlen(str3) + 1);
+
+ strcpy(res_str, str1);
+ strcat(res_str, str2);
+ strcat(res_str, str3);
+ free(str1);
+ free(str2);
+ free(str3);
+ return res_str;
+}
+
+/* and the rest */
+static char *
+make_name(void)
+{
+ return mm_strdup(base_yytext);
+}
+
+static char *
+create_questionmarks(char *name, bool array)
+{
+ struct variable *p = find_variable(name);
+ int count;
+ char *result = EMPTY;
+
+ /* In case we have a struct, we have to print as many "?" as there are attributes in the struct
+ * An array is only allowed together with an element argument
+ * This is essentially only used for inserts, but using a struct as input parameter is an error anywhere else
+ * so we don't have to worry here. */
+
+ if (p->type->type == ECPGt_struct || (array && p->type->type == ECPGt_array && p->type->u.element->type == ECPGt_struct))
+ {
+ struct ECPGstruct_member *m;
+
+ if (p->type->type == ECPGt_struct)
+ m = p->type->u.members;
+ else
+ m = p->type->u.element->u.members;
+
+ for (count = 0; m != NULL; m=m->next, count++);
+ }
+ else
+ count = 1;
+
+ for (; count > 0; count --)
+ {
+ sprintf(pacounter_buffer, "$%d", pacounter++);
+ result = cat_str(3, result, mm_strdup(pacounter_buffer), mm_strdup(" , "));
+ }
+
+ /* removed the trailing " ," */
+
+ result[strlen(result)-3] = '\0';
+ return result;
+}
+
+static char *
+adjust_outofscope_cursor_vars(struct cursor *cur)
+{
+ /* Informix accepts DECLARE with variables that are out of scope when OPEN is called.
+ * For instance you can DECLARE a cursor in one function, and OPEN/FETCH/CLOSE
+ * it in another functions. This is very useful for e.g. event-driver programming,
+ * but may also lead to dangerous programming. The limitation when this is allowed
+ * and doesn't cause problems have to be documented, like the allocated variables
+ * must not be realloc()'ed.
+ *
+ * We have to change the variables to our own struct and just store the pointer
+ * instead of the variable. Do it only for local variables, not for globals.
+ */
+
+ char *result = EMPTY;
+ int insert;
+
+ for (insert = 1; insert >= 0; insert--)
+ {
+ struct arguments *list;
+ struct arguments *ptr;
+ struct arguments *newlist = NULL;
+ struct variable *newvar, *newind;
+
+ list = (insert ? cur->argsinsert : cur->argsresult);
+
+ for (ptr = list; ptr != NULL; ptr = ptr->next)
+ {
+ char var_text[20];
+ char *original_var;
+ bool skip_set_var = false;
+ bool var_ptr = false;
+
+ /* change variable name to "ECPGget_var(<counter>)" */
+ original_var = ptr->variable->name;
+ sprintf(var_text, "%d))", ecpg_internal_var);
+
+ /* Don't emit ECPGset_var() calls for global variables */
+ if (ptr->variable->brace_level == 0)
+ {
+ newvar = ptr->variable;
+ skip_set_var = true;
+ }
+ else if ((ptr->variable->type->type == ECPGt_char_variable)
+ && (strncmp(ptr->variable->name, "ECPGprepared_statement", strlen("ECPGprepared_statement")) == 0))
+ {
+ newvar = ptr->variable;
+ skip_set_var = true;
+ }
+ else if ((ptr->variable->type->type != ECPGt_varchar
+ && ptr->variable->type->type != ECPGt_char
+ && ptr->variable->type->type != ECPGt_unsigned_char
+ && ptr->variable->type->type != ECPGt_string
+ && ptr->variable->type->type != ECPGt_bytea)
+ && atoi(ptr->variable->type->size) > 1)
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,
+ mm_strdup("1"),
+ ptr->variable->type->u.element->counter),
+ ptr->variable->type->size),
+ 0);
+ }
+ else if ((ptr->variable->type->type == ECPGt_varchar
+ || ptr->variable->type->type == ECPGt_char
+ || ptr->variable->type->type == ECPGt_unsigned_char
+ || ptr->variable->type->type == ECPGt_string
+ || ptr->variable->type->type == ECPGt_bytea)
+ && atoi(ptr->variable->type->size) > 1)
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->variable->type->type,
+ ptr->variable->type->size,
+ ptr->variable->type->counter),
+ 0);
+ if (ptr->variable->type->type == ECPGt_varchar ||
+ ptr->variable->type->type == ECPGt_bytea)
+ var_ptr = true;
+ }
+ else if (ptr->variable->type->type == ECPGt_struct
+ || ptr->variable->type->type == ECPGt_union)
+ {
+ newvar = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->variable->type->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->variable->type->u.members,
+ ptr->variable->type->type,
+ ptr->variable->type->type_name,
+ ptr->variable->type->struct_sizeof),
+ 0);
+ var_ptr = true;
+ }
+ else if (ptr->variable->type->type == ECPGt_array)
+ {
+ if (ptr->variable->type->u.element->type == ECPGt_struct
+ || ptr->variable->type->u.element->type == ECPGt_union)
+ {
+ newvar = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->variable->type->u.element->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->variable->type->u.element->u.members,
+ ptr->variable->type->u.element->type,
+ ptr->variable->type->u.element->type_name,
+ ptr->variable->type->u.element->struct_sizeof),
+ 0);
+ }
+ else
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,
+ ptr->variable->type->u.element->size,
+ ptr->variable->type->u.element->counter),
+ ptr->variable->type->size),
+ 0);
+ var_ptr = true;
+ }
+ }
+ else
+ {
+ newvar = new_variable(cat_str(4, mm_strdup("*("),
+ mm_strdup(ecpg_type_name(ptr->variable->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->variable->type->type,
+ ptr->variable->type->size,
+ ptr->variable->type->counter),
+ 0);
+ var_ptr = true;
+ }
+
+ /* create call to "ECPGset_var(<counter>, <connection>, <pointer>. <line number>)" */
+ if (!skip_set_var)
+ {
+ sprintf(var_text, "%d, %s", ecpg_internal_var++, var_ptr ? "&(" : "(");
+ result = cat_str(5, result, mm_strdup("ECPGset_var("),
+ mm_strdup(var_text), mm_strdup(original_var),
+ mm_strdup("), __LINE__);\n"));
+ }
+
+ /* now the indicator if there is one and it's not a global variable */
+ if ((ptr->indicator->type->type == ECPGt_NO_INDICATOR) || (ptr->indicator->brace_level == 0))
+ {
+ newind = ptr->indicator;
+ }
+ else
+ {
+ /* change variable name to "ECPGget_var(<counter>)" */
+ original_var = ptr->indicator->name;
+ sprintf(var_text, "%d))", ecpg_internal_var);
+ var_ptr = false;
+
+ if (ptr->indicator->type->type == ECPGt_struct
+ || ptr->indicator->type->type == ECPGt_union)
+ {
+ newind = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->indicator->type->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->indicator->type->u.members,
+ ptr->indicator->type->type,
+ ptr->indicator->type->type_name,
+ ptr->indicator->type->struct_sizeof),
+ 0);
+ var_ptr = true;
+ }
+ else if (ptr->indicator->type->type == ECPGt_array)
+ {
+ if (ptr->indicator->type->u.element->type == ECPGt_struct
+ || ptr->indicator->type->u.element->type == ECPGt_union)
+ {
+ newind = new_variable(cat_str(5, mm_strdup("(*("),
+ mm_strdup(ptr->indicator->type->u.element->type_name),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text),
+ mm_strdup(")")),
+ ECPGmake_struct_type(ptr->indicator->type->u.element->u.members,
+ ptr->indicator->type->u.element->type,
+ ptr->indicator->type->u.element->type_name,
+ ptr->indicator->type->u.element->struct_sizeof),
+ 0);
+ }
+ else
+ {
+ newind = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->indicator->type->u.element->type)),
+ mm_strdup(" *)(ECPGget_var("), mm_strdup(var_text)),
+ ECPGmake_array_type(ECPGmake_simple_type(ptr->indicator->type->u.element->type,
+ ptr->indicator->type->u.element->size,
+ ptr->indicator->type->u.element->counter),
+ ptr->indicator->type->size),
+ 0);
+ var_ptr = true;
+ }
+ }
+ else if (atoi(ptr->indicator->type->size) > 1)
+ {
+ newind = new_variable(cat_str(4, mm_strdup("("),
+ mm_strdup(ecpg_type_name(ptr->indicator->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->indicator->type->type,
+ ptr->indicator->type->size,
+ ptr->variable->type->counter),
+ 0);
+ }
+ else
+ {
+ newind = new_variable(cat_str(4, mm_strdup("*("),
+ mm_strdup(ecpg_type_name(ptr->indicator->type->type)),
+ mm_strdup(" *)(ECPGget_var("),
+ mm_strdup(var_text)),
+ ECPGmake_simple_type(ptr->indicator->type->type,
+ ptr->indicator->type->size,
+ ptr->variable->type->counter),
+ 0);
+ var_ptr = true;
+ }
+
+ /* create call to "ECPGset_var(<counter>, <pointer>. <line number>)" */
+ sprintf(var_text, "%d, %s", ecpg_internal_var++, var_ptr ? "&(" : "(");
+ result = cat_str(5, result, mm_strdup("ECPGset_var("),
+ mm_strdup(var_text), mm_strdup(original_var),
+ mm_strdup("), __LINE__);\n"));
+ }
+
+ add_variable_to_tail(&newlist, newvar, newind);
+ }
+
+ if (insert)
+ cur->argsinsert_oos = newlist;
+ else
+ cur->argsresult_oos = newlist;
+ }
+
+ return result;
+}
+
+/* This tests whether the cursor was declared and opened in the same function. */
+#define SAMEFUNC(cur) \
+ ((cur->function == NULL) || \
+ (cur->function != NULL && strcmp(cur->function, current_function) == 0))
+
+static struct cursor *
+add_additional_variables(char *name, bool insert)
+{
+ struct cursor *ptr;
+ struct arguments *p;
+ int (* strcmp_fn)(const char *, const char *) = ((name[0] == ':' || name[0] == '"') ? strcmp : pg_strcasecmp);
+
+ for (ptr = cur; ptr != NULL; ptr=ptr->next)
+ {
+ if (strcmp_fn(ptr->name, name) == 0)
+ break;
+ }
+
+ if (ptr == NULL)
+ {
+ mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" does not exist", name);
+ return NULL;
+ }
+
+ if (insert)
+ {
+ /* add all those input variables that were given earlier
+ * note that we have to append here but have to keep the existing order */
+ for (p = (SAMEFUNC(ptr) ? ptr->argsinsert : ptr->argsinsert_oos); p; p = p->next)
+ add_variable_to_tail(&argsinsert, p->variable, p->indicator);
+ }
+
+ /* add all those output variables that were given earlier */
+ for (p = (SAMEFUNC(ptr) ? ptr->argsresult : ptr->argsresult_oos); p; p = p->next)
+ add_variable_to_tail(&argsresult, p->variable, p->indicator);
+
+ return ptr;
+}
+
+static void
+add_typedef(char *name, char *dimension, char *length, enum ECPGttype type_enum,
+ char *type_dimension, char *type_index, int initializer, int array)
+{
+ /* add entry to list */
+ struct typedefs *ptr, *this;
+
+ if ((type_enum == ECPGt_struct ||
+ type_enum == ECPGt_union) &&
+ initializer == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "initializer not allowed in type definition");
+ else if (INFORMIX_MODE && strcmp(name, "string") == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "type name \"string\" is reserved in Informix mode");
+ else
+ {
+ for (ptr = types; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp(name, ptr->name) == 0)
+ /* re-definition is a bug */
+ mmerror(PARSE_ERROR, ET_ERROR, "type \"%s\" is already defined", name);
+ }
+ adjust_array(type_enum, &dimension, &length, type_dimension, type_index, array, true);
+
+ this = (struct typedefs *) mm_alloc(sizeof(struct typedefs));
+
+ /* initial definition */
+ this->next = types;
+ this->name = name;
+ this->brace_level = braces_open;
+ this->type = (struct this_type *) mm_alloc(sizeof(struct this_type));
+ this->type->type_enum = type_enum;
+ this->type->type_str = mm_strdup(name);
+ this->type->type_dimension = dimension; /* dimension of array */
+ this->type->type_index = length; /* length of string */
+ this->type->type_sizeof = ECPGstruct_sizeof;
+ this->struct_member_list = (type_enum == ECPGt_struct || type_enum == ECPGt_union) ?
+ ECPGstruct_member_dup(struct_member_list[struct_level]) : NULL;
+
+ if (type_enum != ECPGt_varchar &&
+ type_enum != ECPGt_bytea &&
+ type_enum != ECPGt_char &&
+ type_enum != ECPGt_unsigned_char &&
+ type_enum != ECPGt_string &&
+ atoi(this->type->type_index) >= 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "multidimensional arrays for simple data types are not supported");
+
+ types = this;
+ }
+}
+
+/*
+ * check an SQL identifier is declared or not.
+ * If it is already declared, the global variable
+ * connection will be changed to the related connection.
+ */
+static bool
+check_declared_list(const char *name)
+{
+ struct declared_list *ptr = NULL;
+ for (ptr = g_declared_list; ptr != NULL; ptr = ptr -> next)
+ {
+ if (!ptr->connection)
+ continue;
+ if (strcmp(name, ptr -> name) == 0)
+ {
+ if (connection && strcmp(ptr->connection, connection) != 0)
+ mmerror(PARSE_ERROR, ET_WARNING, "connection %s is overwritten with %s by DECLARE statement %s", connection, ptr->connection, name);
+ connection = mm_strdup(ptr -> connection);
+ return true;
+ }
+ }
+ return false;
+}
+%}
+
+%expect 0
+%name-prefix="base_yy"
+%locations
+
+%union {
+ double dval;
+ char *str;
+ int ival;
+ struct when action;
+ struct index index;
+ int tagname;
+ struct this_type type;
+ enum ECPGttype type_enum;
+ enum ECPGdtype dtype_enum;
+ struct fetch_desc descriptor;
+ struct su_symbol struct_union;
+ struct prep prep;
+ struct exec exec;
+ struct describe describe;
+}
+/* tokens */
+/* src/interfaces/ecpg/preproc/ecpg.tokens */
+
+/* special embedded SQL tokens */
+%token SQL_ALLOCATE SQL_AUTOCOMMIT SQL_BOOL SQL_BREAK
+ SQL_CARDINALITY SQL_CONNECT
+ SQL_COUNT
+ SQL_DATETIME_INTERVAL_CODE
+ SQL_DATETIME_INTERVAL_PRECISION SQL_DESCRIBE
+ SQL_DESCRIPTOR SQL_DISCONNECT SQL_FOUND
+ SQL_FREE SQL_GET SQL_GO SQL_GOTO SQL_IDENTIFIED
+ SQL_INDICATOR SQL_KEY_MEMBER SQL_LENGTH
+ SQL_LONG SQL_NULLABLE SQL_OCTET_LENGTH
+ SQL_OPEN SQL_OUTPUT SQL_REFERENCE
+ SQL_RETURNED_LENGTH SQL_RETURNED_OCTET_LENGTH SQL_SCALE
+ SQL_SECTION SQL_SHORT SQL_SIGNED SQL_SQLERROR
+ SQL_SQLPRINT SQL_SQLWARNING SQL_START SQL_STOP
+ SQL_STRUCT SQL_UNSIGNED SQL_VAR SQL_WHENEVER
+
+/* C tokens */
+%token S_ADD S_AND S_ANYTHING S_AUTO S_CONST S_DEC S_DIV
+ S_DOTPOINT S_EQUAL S_EXTERN S_INC S_LSHIFT S_MEMPOINT
+ S_MEMBER S_MOD S_MUL S_NEQUAL S_OR S_REGISTER S_RSHIFT
+ S_STATIC S_SUB S_VOLATILE
+ S_TYPEDEF
+
+%token CSTRING CVARIABLE CPP_LINE IP
+/* types */
+%type <str> toplevel_stmt
+%type <str> stmt
+%type <str> CallStmt
+%type <str> CreateRoleStmt
+%type <str> opt_with
+%type <str> OptRoleList
+%type <str> AlterOptRoleList
+%type <str> AlterOptRoleElem
+%type <str> CreateOptRoleElem
+%type <str> CreateUserStmt
+%type <str> AlterRoleStmt
+%type <str> opt_in_database
+%type <str> AlterRoleSetStmt
+%type <str> DropRoleStmt
+%type <str> CreateGroupStmt
+%type <str> AlterGroupStmt
+%type <str> add_drop
+%type <str> CreateSchemaStmt
+%type <str> OptSchemaName
+%type <str> OptSchemaEltList
+%type <str> schema_stmt
+%type <str> VariableSetStmt
+%type <str> set_rest
+%type <str> generic_set
+%type <str> set_rest_more
+%type <str> var_name
+%type <str> var_list
+%type <str> var_value
+%type <str> iso_level
+%type <str> opt_boolean_or_string
+%type <str> zone_value
+%type <str> opt_encoding
+%type <str> NonReservedWord_or_Sconst
+%type <str> VariableResetStmt
+%type <str> reset_rest
+%type <str> generic_reset
+%type <str> SetResetClause
+%type <str> FunctionSetResetClause
+%type <str> VariableShowStmt
+%type <str> ConstraintsSetStmt
+%type <str> constraints_set_list
+%type <str> constraints_set_mode
+%type <str> CheckPointStmt
+%type <str> DiscardStmt
+%type <str> AlterTableStmt
+%type <str> alter_table_cmds
+%type <str> partition_cmd
+%type <str> index_partition_cmd
+%type <str> alter_table_cmd
+%type <str> alter_column_default
+%type <str> opt_drop_behavior
+%type <str> opt_collate_clause
+%type <str> alter_using
+%type <str> replica_identity
+%type <str> reloptions
+%type <str> opt_reloptions
+%type <str> reloption_list
+%type <str> reloption_elem
+%type <str> alter_identity_column_option_list
+%type <str> alter_identity_column_option
+%type <str> PartitionBoundSpec
+%type <str> hash_partbound_elem
+%type <str> hash_partbound
+%type <str> AlterCompositeTypeStmt
+%type <str> alter_type_cmds
+%type <str> alter_type_cmd
+%type <str> ClosePortalStmt
+%type <str> CopyStmt
+%type <str> copy_from
+%type <str> opt_program
+%type <str> copy_file_name
+%type <str> copy_options
+%type <str> copy_opt_list
+%type <str> copy_opt_item
+%type <str> opt_binary
+%type <str> copy_delimiter
+%type <str> opt_using
+%type <str> copy_generic_opt_list
+%type <str> copy_generic_opt_elem
+%type <str> copy_generic_opt_arg
+%type <str> copy_generic_opt_arg_list
+%type <str> copy_generic_opt_arg_list_item
+%type <str> CreateStmt
+%type <str> OptTemp
+%type <str> OptTableElementList
+%type <str> OptTypedTableElementList
+%type <str> TableElementList
+%type <str> TypedTableElementList
+%type <str> TableElement
+%type <str> TypedTableElement
+%type <str> columnDef
+%type <str> columnOptions
+%type <str> column_compression
+%type <str> opt_column_compression
+%type <str> ColQualList
+%type <str> ColConstraint
+%type <str> ColConstraintElem
+%type <str> opt_unique_null_treatment
+%type <str> generated_when
+%type <str> ConstraintAttr
+%type <str> TableLikeClause
+%type <str> TableLikeOptionList
+%type <str> TableLikeOption
+%type <str> TableConstraint
+%type <str> ConstraintElem
+%type <str> opt_no_inherit
+%type <str> opt_column_list
+%type <str> columnList
+%type <str> columnElem
+%type <str> opt_c_include
+%type <str> key_match
+%type <str> ExclusionConstraintList
+%type <str> ExclusionConstraintElem
+%type <str> OptWhereClause
+%type <str> key_actions
+%type <str> key_update
+%type <str> key_delete
+%type <str> key_action
+%type <str> OptInherit
+%type <str> OptPartitionSpec
+%type <str> PartitionSpec
+%type <str> part_params
+%type <str> part_elem
+%type <str> table_access_method_clause
+%type <str> OptWith
+%type <str> OnCommitOption
+%type <str> OptTableSpace
+%type <str> OptConsTableSpace
+%type <str> ExistingIndex
+%type <str> CreateStatsStmt
+%type <str> stats_params
+%type <str> stats_param
+%type <str> AlterStatsStmt
+%type <str> create_as_target
+%type <str> opt_with_data
+%type <str> CreateMatViewStmt
+%type <str> create_mv_target
+%type <str> OptNoLog
+%type <str> RefreshMatViewStmt
+%type <str> CreateSeqStmt
+%type <str> AlterSeqStmt
+%type <str> OptSeqOptList
+%type <str> OptParenthesizedSeqOptList
+%type <str> SeqOptList
+%type <str> SeqOptElem
+%type <str> opt_by
+%type <str> NumericOnly
+%type <str> NumericOnly_list
+%type <str> CreatePLangStmt
+%type <str> opt_trusted
+%type <str> handler_name
+%type <str> opt_inline_handler
+%type <str> validator_clause
+%type <str> opt_validator
+%type <str> opt_procedural
+%type <str> CreateTableSpaceStmt
+%type <str> OptTableSpaceOwner
+%type <str> DropTableSpaceStmt
+%type <str> CreateExtensionStmt
+%type <str> create_extension_opt_list
+%type <str> create_extension_opt_item
+%type <str> AlterExtensionStmt
+%type <str> alter_extension_opt_list
+%type <str> alter_extension_opt_item
+%type <str> AlterExtensionContentsStmt
+%type <str> CreateFdwStmt
+%type <str> fdw_option
+%type <str> fdw_options
+%type <str> opt_fdw_options
+%type <str> AlterFdwStmt
+%type <str> create_generic_options
+%type <str> generic_option_list
+%type <str> alter_generic_options
+%type <str> alter_generic_option_list
+%type <str> alter_generic_option_elem
+%type <str> generic_option_elem
+%type <str> generic_option_name
+%type <str> generic_option_arg
+%type <str> CreateForeignServerStmt
+%type <str> opt_type
+%type <str> foreign_server_version
+%type <str> opt_foreign_server_version
+%type <str> AlterForeignServerStmt
+%type <str> CreateForeignTableStmt
+%type <str> ImportForeignSchemaStmt
+%type <str> import_qualification_type
+%type <str> import_qualification
+%type <str> CreateUserMappingStmt
+%type <str> auth_ident
+%type <str> DropUserMappingStmt
+%type <str> AlterUserMappingStmt
+%type <str> CreatePolicyStmt
+%type <str> AlterPolicyStmt
+%type <str> RowSecurityOptionalExpr
+%type <str> RowSecurityOptionalWithCheck
+%type <str> RowSecurityDefaultToRole
+%type <str> RowSecurityOptionalToRole
+%type <str> RowSecurityDefaultPermissive
+%type <str> RowSecurityDefaultForCmd
+%type <str> row_security_cmd
+%type <str> CreateAmStmt
+%type <str> am_type
+%type <str> CreateTrigStmt
+%type <str> TriggerActionTime
+%type <str> TriggerEvents
+%type <str> TriggerOneEvent
+%type <str> TriggerReferencing
+%type <str> TriggerTransitions
+%type <str> TriggerTransition
+%type <str> TransitionOldOrNew
+%type <str> TransitionRowOrTable
+%type <str> TransitionRelName
+%type <str> TriggerForSpec
+%type <str> TriggerForOptEach
+%type <str> TriggerForType
+%type <str> TriggerWhen
+%type <str> FUNCTION_or_PROCEDURE
+%type <str> TriggerFuncArgs
+%type <str> TriggerFuncArg
+%type <str> OptConstrFromTable
+%type <str> ConstraintAttributeSpec
+%type <str> ConstraintAttributeElem
+%type <str> CreateEventTrigStmt
+%type <str> event_trigger_when_list
+%type <str> event_trigger_when_item
+%type <str> event_trigger_value_list
+%type <str> AlterEventTrigStmt
+%type <str> enable_trigger
+%type <str> CreateAssertionStmt
+%type <str> DefineStmt
+%type <str> definition
+%type <str> def_list
+%type <str> def_elem
+%type <str> def_arg
+%type <str> old_aggr_definition
+%type <str> old_aggr_list
+%type <str> old_aggr_elem
+%type <str> opt_enum_val_list
+%type <str> enum_val_list
+%type <str> AlterEnumStmt
+%type <str> opt_if_not_exists
+%type <str> CreateOpClassStmt
+%type <str> opclass_item_list
+%type <str> opclass_item
+%type <str> opt_default
+%type <str> opt_opfamily
+%type <str> opclass_purpose
+%type <str> opt_recheck
+%type <str> CreateOpFamilyStmt
+%type <str> AlterOpFamilyStmt
+%type <str> opclass_drop_list
+%type <str> opclass_drop
+%type <str> DropOpClassStmt
+%type <str> DropOpFamilyStmt
+%type <str> DropOwnedStmt
+%type <str> ReassignOwnedStmt
+%type <str> DropStmt
+%type <str> object_type_any_name
+%type <str> object_type_name
+%type <str> drop_type_name
+%type <str> object_type_name_on_any_name
+%type <str> any_name_list
+%type <str> any_name
+%type <str> attrs
+%type <str> type_name_list
+%type <str> TruncateStmt
+%type <str> opt_restart_seqs
+%type <str> CommentStmt
+%type <str> comment_text
+%type <str> SecLabelStmt
+%type <str> opt_provider
+%type <str> security_label
+%type <str> FetchStmt
+%type <str> fetch_args
+%type <str> from_in
+%type <str> opt_from_in
+%type <str> GrantStmt
+%type <str> RevokeStmt
+%type <str> privileges
+%type <str> privilege_list
+%type <str> privilege
+%type <str> parameter_name_list
+%type <str> parameter_name
+%type <str> privilege_target
+%type <str> grantee_list
+%type <str> grantee
+%type <str> opt_grant_grant_option
+%type <str> GrantRoleStmt
+%type <str> RevokeRoleStmt
+%type <str> opt_grant_admin_option
+%type <str> opt_granted_by
+%type <str> AlterDefaultPrivilegesStmt
+%type <str> DefACLOptionList
+%type <str> DefACLOption
+%type <str> DefACLAction
+%type <str> defacl_privilege_target
+%type <str> IndexStmt
+%type <str> opt_unique
+%type <str> opt_concurrently
+%type <str> opt_index_name
+%type <str> access_method_clause
+%type <str> index_params
+%type <str> index_elem_options
+%type <str> index_elem
+%type <str> opt_include
+%type <str> index_including_params
+%type <str> opt_collate
+%type <str> opt_class
+%type <str> opt_asc_desc
+%type <str> opt_nulls_order
+%type <str> CreateFunctionStmt
+%type <str> opt_or_replace
+%type <str> func_args
+%type <str> func_args_list
+%type <str> function_with_argtypes_list
+%type <str> function_with_argtypes
+%type <str> func_args_with_defaults
+%type <str> func_args_with_defaults_list
+%type <str> func_arg
+%type <str> arg_class
+%type <str> param_name
+%type <str> func_return
+%type <str> func_type
+%type <str> func_arg_with_default
+%type <str> aggr_arg
+%type <str> aggr_args
+%type <str> aggr_args_list
+%type <str> aggregate_with_argtypes
+%type <str> aggregate_with_argtypes_list
+%type <str> opt_createfunc_opt_list
+%type <str> createfunc_opt_list
+%type <str> common_func_opt_item
+%type <str> createfunc_opt_item
+%type <str> func_as
+%type <str> ReturnStmt
+%type <str> opt_routine_body
+%type <str> routine_body_stmt_list
+%type <str> routine_body_stmt
+%type <str> transform_type_list
+%type <str> opt_definition
+%type <str> table_func_column
+%type <str> table_func_column_list
+%type <str> AlterFunctionStmt
+%type <str> alterfunc_opt_list
+%type <str> opt_restrict
+%type <str> RemoveFuncStmt
+%type <str> RemoveAggrStmt
+%type <str> RemoveOperStmt
+%type <str> oper_argtypes
+%type <str> any_operator
+%type <str> operator_with_argtypes_list
+%type <str> operator_with_argtypes
+%type <str> DoStmt
+%type <str> dostmt_opt_list
+%type <str> dostmt_opt_item
+%type <str> CreateCastStmt
+%type <str> cast_context
+%type <str> DropCastStmt
+%type <str> opt_if_exists
+%type <str> CreateTransformStmt
+%type <str> transform_element_list
+%type <str> DropTransformStmt
+%type <str> ReindexStmt
+%type <str> reindex_target_type
+%type <str> reindex_target_multitable
+%type <str> AlterTblSpcStmt
+%type <str> RenameStmt
+%type <str> opt_column
+%type <str> opt_set_data
+%type <str> AlterObjectDependsStmt
+%type <str> opt_no
+%type <str> AlterObjectSchemaStmt
+%type <str> AlterOperatorStmt
+%type <str> operator_def_list
+%type <str> operator_def_elem
+%type <str> operator_def_arg
+%type <str> AlterTypeStmt
+%type <str> AlterOwnerStmt
+%type <str> CreatePublicationStmt
+%type <str> PublicationObjSpec
+%type <str> pub_obj_list
+%type <str> AlterPublicationStmt
+%type <str> CreateSubscriptionStmt
+%type <str> AlterSubscriptionStmt
+%type <str> DropSubscriptionStmt
+%type <str> RuleStmt
+%type <str> RuleActionList
+%type <str> RuleActionMulti
+%type <str> RuleActionStmt
+%type <str> RuleActionStmtOrEmpty
+%type <str> event
+%type <str> opt_instead
+%type <str> NotifyStmt
+%type <str> notify_payload
+%type <str> ListenStmt
+%type <str> UnlistenStmt
+%type <str> TransactionStmt
+%type <str> TransactionStmtLegacy
+%type <str> opt_transaction
+%type <str> transaction_mode_item
+%type <str> transaction_mode_list
+%type <str> transaction_mode_list_or_empty
+%type <str> opt_transaction_chain
+%type <str> ViewStmt
+%type <str> opt_check_option
+%type <str> LoadStmt
+%type <str> CreatedbStmt
+%type <str> createdb_opt_list
+%type <str> createdb_opt_items
+%type <str> createdb_opt_item
+%type <str> createdb_opt_name
+%type <str> opt_equal
+%type <str> AlterDatabaseStmt
+%type <str> AlterDatabaseSetStmt
+%type <str> DropdbStmt
+%type <str> drop_option_list
+%type <str> drop_option
+%type <str> AlterCollationStmt
+%type <str> AlterSystemStmt
+%type <str> CreateDomainStmt
+%type <str> AlterDomainStmt
+%type <str> opt_as
+%type <str> AlterTSDictionaryStmt
+%type <str> AlterTSConfigurationStmt
+%type <str> any_with
+%type <str> CreateConversionStmt
+%type <str> ClusterStmt
+%type <str> cluster_index_specification
+%type <str> VacuumStmt
+%type <str> AnalyzeStmt
+%type <str> utility_option_list
+%type <str> analyze_keyword
+%type <str> utility_option_elem
+%type <str> utility_option_name
+%type <str> utility_option_arg
+%type <str> opt_analyze
+%type <str> opt_verbose
+%type <str> opt_full
+%type <str> opt_freeze
+%type <str> opt_name_list
+%type <str> vacuum_relation
+%type <str> vacuum_relation_list
+%type <str> opt_vacuum_relation_list
+%type <str> ExplainStmt
+%type <str> ExplainableStmt
+%type <prep> PrepareStmt
+%type <str> prep_type_clause
+%type <str> PreparableStmt
+%type <exec> ExecuteStmt
+%type <str> execute_param_clause
+%type <str> InsertStmt
+%type <str> insert_target
+%type <str> insert_rest
+%type <str> override_kind
+%type <str> insert_column_list
+%type <str> insert_column_item
+%type <str> opt_on_conflict
+%type <str> opt_conf_expr
+%type <str> returning_clause
+%type <str> DeleteStmt
+%type <str> using_clause
+%type <str> LockStmt
+%type <str> opt_lock
+%type <str> lock_type
+%type <str> opt_nowait
+%type <str> opt_nowait_or_skip
+%type <str> UpdateStmt
+%type <str> set_clause_list
+%type <str> set_clause
+%type <str> set_target
+%type <str> set_target_list
+%type <str> MergeStmt
+%type <str> merge_when_list
+%type <str> merge_when_clause
+%type <str> opt_merge_when_condition
+%type <str> merge_update
+%type <str> merge_delete
+%type <str> merge_insert
+%type <str> merge_values_clause
+%type <str> DeclareCursorStmt
+%type <str> cursor_name
+%type <str> cursor_options
+%type <str> opt_hold
+%type <str> SelectStmt
+%type <str> select_with_parens
+%type <str> select_no_parens
+%type <str> select_clause
+%type <str> simple_select
+%type <str> with_clause
+%type <str> cte_list
+%type <str> common_table_expr
+%type <str> opt_materialized
+%type <str> opt_search_clause
+%type <str> opt_cycle_clause
+%type <str> opt_with_clause
+%type <str> into_clause
+%type <str> OptTempTableName
+%type <str> opt_table
+%type <str> set_quantifier
+%type <str> distinct_clause
+%type <str> opt_all_clause
+%type <str> opt_sort_clause
+%type <str> sort_clause
+%type <str> sortby_list
+%type <str> sortby
+%type <str> select_limit
+%type <str> opt_select_limit
+%type <str> limit_clause
+%type <str> offset_clause
+%type <str> select_limit_value
+%type <str> select_offset_value
+%type <str> select_fetch_first_value
+%type <str> I_or_F_const
+%type <str> row_or_rows
+%type <str> first_or_next
+%type <str> group_clause
+%type <str> group_by_list
+%type <str> group_by_item
+%type <str> empty_grouping_set
+%type <str> rollup_clause
+%type <str> cube_clause
+%type <str> grouping_sets_clause
+%type <str> having_clause
+%type <str> for_locking_clause
+%type <str> opt_for_locking_clause
+%type <str> for_locking_items
+%type <str> for_locking_item
+%type <str> for_locking_strength
+%type <str> locked_rels_list
+%type <str> values_clause
+%type <str> from_clause
+%type <str> from_list
+%type <str> table_ref
+%type <str> joined_table
+%type <str> alias_clause
+%type <str> opt_alias_clause
+%type <str> opt_alias_clause_for_join_using
+%type <str> func_alias_clause
+%type <str> join_type
+%type <str> opt_outer
+%type <str> join_qual
+%type <str> relation_expr
+%type <str> extended_relation_expr
+%type <str> relation_expr_list
+%type <str> relation_expr_opt_alias
+%type <str> tablesample_clause
+%type <str> opt_repeatable_clause
+%type <str> func_table
+%type <str> rowsfrom_item
+%type <str> rowsfrom_list
+%type <str> opt_col_def_list
+%type <str> opt_ordinality
+%type <str> where_clause
+%type <str> where_or_current_clause
+%type <str> OptTableFuncElementList
+%type <str> TableFuncElementList
+%type <str> TableFuncElement
+%type <str> xmltable
+%type <str> xmltable_column_list
+%type <str> xmltable_column_el
+%type <str> xmltable_column_option_list
+%type <str> xmltable_column_option_el
+%type <str> xml_namespace_list
+%type <str> xml_namespace_el
+%type <str> Typename
+%type <index> opt_array_bounds
+%type <str> SimpleTypename
+%type <str> ConstTypename
+%type <str> GenericType
+%type <str> opt_type_modifiers
+%type <str> Numeric
+%type <str> opt_float
+%type <str> Bit
+%type <str> ConstBit
+%type <str> BitWithLength
+%type <str> BitWithoutLength
+%type <str> Character
+%type <str> ConstCharacter
+%type <str> CharacterWithLength
+%type <str> CharacterWithoutLength
+%type <str> character
+%type <str> opt_varying
+%type <str> ConstDatetime
+%type <str> ConstInterval
+%type <str> opt_timezone
+%type <str> opt_interval
+%type <str> interval_second
+%type <str> a_expr
+%type <str> b_expr
+%type <str> c_expr
+%type <str> func_application
+%type <str> func_expr
+%type <str> func_expr_windowless
+%type <str> func_expr_common_subexpr
+%type <str> xml_root_version
+%type <str> opt_xml_root_standalone
+%type <str> xml_attributes
+%type <str> xml_attribute_list
+%type <str> xml_attribute_el
+%type <str> document_or_content
+%type <str> xml_whitespace_option
+%type <str> xmlexists_argument
+%type <str> xml_passing_mech
+%type <str> within_group_clause
+%type <str> filter_clause
+%type <str> window_clause
+%type <str> window_definition_list
+%type <str> window_definition
+%type <str> over_clause
+%type <str> window_specification
+%type <str> opt_existing_window_name
+%type <str> opt_partition_clause
+%type <str> opt_frame_clause
+%type <str> frame_extent
+%type <str> frame_bound
+%type <str> opt_window_exclusion_clause
+%type <str> row
+%type <str> explicit_row
+%type <str> implicit_row
+%type <str> sub_type
+%type <str> all_Op
+%type <str> MathOp
+%type <str> qual_Op
+%type <str> qual_all_Op
+%type <str> subquery_Op
+%type <str> expr_list
+%type <str> func_arg_list
+%type <str> func_arg_expr
+%type <str> func_arg_list_opt
+%type <str> type_list
+%type <str> array_expr
+%type <str> array_expr_list
+%type <str> extract_list
+%type <str> extract_arg
+%type <str> unicode_normal_form
+%type <str> overlay_list
+%type <str> position_list
+%type <str> substr_list
+%type <str> trim_list
+%type <str> in_expr
+%type <str> case_expr
+%type <str> when_clause_list
+%type <str> when_clause
+%type <str> case_default
+%type <str> case_arg
+%type <str> columnref
+%type <str> indirection_el
+%type <str> opt_slice_bound
+%type <str> indirection
+%type <str> opt_indirection
+%type <str> opt_asymmetric
+%type <str> opt_target_list
+%type <str> target_list
+%type <str> target_el
+%type <str> qualified_name_list
+%type <str> qualified_name
+%type <str> name_list
+%type <str> name
+%type <str> attr_name
+%type <str> file_name
+%type <str> func_name
+%type <str> AexprConst
+%type <str> Iconst
+%type <str> SignedIconst
+%type <str> RoleId
+%type <str> RoleSpec
+%type <str> role_list
+%type <str> NonReservedWord
+%type <str> BareColLabel
+%type <str> unreserved_keyword
+%type <str> col_name_keyword
+%type <str> type_func_name_keyword
+%type <str> reserved_keyword
+%type <str> bare_label_keyword
+/* ecpgtype */
+/* src/interfaces/ecpg/preproc/ecpg.type */
+%type <str> ECPGAllocateDescr
+%type <str> ECPGCKeywords
+%type <str> ECPGColId
+%type <str> ECPGColLabel
+%type <str> ECPGColLabelCommon
+%type <str> ECPGConnect
+%type <str> ECPGCursorStmt
+%type <str> ECPGDeallocateDescr
+%type <str> ECPGDeclaration
+%type <str> ECPGDeclare
+%type <str> ECPGDeclareStmt
+%type <str> ECPGDisconnect
+%type <str> ECPGExecuteImmediateStmt
+%type <str> ECPGFree
+%type <str> ECPGGetDescHeaderItem
+%type <str> ECPGGetDescItem
+%type <str> ECPGGetDescriptorHeader
+%type <str> ECPGKeywords
+%type <str> ECPGKeywords_rest
+%type <str> ECPGKeywords_vanames
+%type <str> ECPGOpen
+%type <str> ECPGSetAutocommit
+%type <str> ECPGSetConnection
+%type <str> ECPGSetDescHeaderItem
+%type <str> ECPGSetDescItem
+%type <str> ECPGSetDescriptorHeader
+%type <str> ECPGTypeName
+%type <str> ECPGTypedef
+%type <str> ECPGVar
+%type <str> ECPGVarDeclaration
+%type <str> ECPGWhenever
+%type <str> ECPGunreserved_interval
+%type <str> UsingConst
+%type <str> UsingValue
+%type <str> all_unreserved_keyword
+%type <str> c_anything
+%type <str> c_args
+%type <str> c_list
+%type <str> c_stuff
+%type <str> c_stuff_item
+%type <str> c_term
+%type <str> c_thing
+%type <str> char_variable
+%type <str> char_civar
+%type <str> civar
+%type <str> civarind
+%type <str> ColId
+%type <str> ColLabel
+%type <str> connect_options
+%type <str> connection_object
+%type <str> connection_target
+%type <str> coutputvariable
+%type <str> cvariable
+%type <str> db_prefix
+%type <str> CreateAsStmt
+%type <str> DeallocateStmt
+%type <str> dis_name
+%type <str> ecpg_bconst
+%type <str> ecpg_fconst
+%type <str> ecpg_ident
+%type <str> ecpg_interval
+%type <str> ecpg_into
+%type <str> ecpg_fetch_into
+%type <str> ecpg_param
+%type <str> ecpg_sconst
+%type <str> ecpg_using
+%type <str> ecpg_xconst
+%type <str> enum_definition
+%type <str> enum_type
+%type <str> execstring
+%type <str> execute_rest
+%type <str> indicator
+%type <str> into_descriptor
+%type <str> into_sqlda
+%type <str> Iresult
+%type <str> on_off
+%type <str> opt_bit_field
+%type <str> opt_connection_name
+%type <str> opt_database_name
+%type <str> opt_ecpg_into
+%type <str> opt_ecpg_fetch_into
+%type <str> opt_ecpg_using
+%type <str> opt_initializer
+%type <str> opt_options
+%type <str> opt_output
+%type <str> opt_pointer
+%type <str> opt_port
+%type <str> opt_reference
+%type <str> opt_scale
+%type <str> opt_server
+%type <str> opt_user
+%type <str> opt_opt_value
+%type <str> ora_user
+%type <str> precision
+%type <str> prepared_name
+%type <str> quoted_ident_stringvar
+%type <str> s_struct_union
+%type <str> server
+%type <str> server_name
+%type <str> single_vt_declaration
+%type <str> storage_clause
+%type <str> storage_declaration
+%type <str> storage_modifier
+%type <str> struct_union_type
+%type <str> struct_union_type_with_symbol
+%type <str> symbol
+%type <str> type_declaration
+%type <str> type_function_name
+%type <str> user_name
+%type <str> using_descriptor
+%type <str> var_declaration
+%type <str> var_type_declarations
+%type <str> variable
+%type <str> variable_declarations
+%type <str> variable_list
+%type <str> vt_declarations
+
+%type <str> Op
+%type <str> IntConstVar
+%type <str> AllConstVar
+%type <str> CSTRING
+%type <str> CPP_LINE
+%type <str> CVARIABLE
+%type <str> BCONST
+%type <str> SCONST
+%type <str> XCONST
+%type <str> IDENT
+
+%type <struct_union> s_struct_union_symbol
+
+%type <descriptor> ECPGGetDescriptor
+%type <descriptor> ECPGSetDescriptor
+
+%type <type_enum> simple_type
+%type <type_enum> signed_type
+%type <type_enum> unsigned_type
+
+%type <dtype_enum> descriptor_item
+%type <dtype_enum> desc_header_item
+
+%type <type> var_type
+
+%type <action> action
+
+%type <describe> ECPGDescribe
+/* orig_tokens */
+ %token IDENT UIDENT FCONST SCONST USCONST BCONST XCONST Op
+ %token ICONST PARAM
+ %token TYPECAST DOT_DOT COLON_EQUALS EQUALS_GREATER
+ %token LESS_EQUALS GREATER_EQUALS NOT_EQUALS
+
+
+
+
+
+
+
+
+
+ %token ABORT_P ABSOLUTE_P ACCESS ACTION ADD_P ADMIN AFTER
+ AGGREGATE ALL ALSO ALTER ALWAYS ANALYSE ANALYZE AND ANY ARRAY AS ASC
+ ASENSITIVE ASSERTION ASSIGNMENT ASYMMETRIC ATOMIC AT ATTACH ATTRIBUTE AUTHORIZATION
+
+ BACKWARD BEFORE BEGIN_P BETWEEN BIGINT BINARY BIT
+ BOOLEAN_P BOTH BREADTH BY
+
+ CACHE CALL CALLED CASCADE CASCADED CASE CAST CATALOG_P CHAIN CHAR_P
+ CHARACTER CHARACTERISTICS CHECK CHECKPOINT CLASS CLOSE
+ CLUSTER COALESCE COLLATE COLLATION COLUMN COLUMNS COMMENT COMMENTS COMMIT
+ COMMITTED COMPRESSION CONCURRENTLY CONFIGURATION CONFLICT
+ CONNECTION CONSTRAINT CONSTRAINTS CONTENT_P CONTINUE_P CONVERSION_P COPY
+ COST CREATE CROSS CSV CUBE CURRENT_P
+ CURRENT_CATALOG CURRENT_DATE CURRENT_ROLE CURRENT_SCHEMA
+ CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURSOR CYCLE
+
+ DATA_P DATABASE DAY_P DEALLOCATE DEC DECIMAL_P DECLARE DEFAULT DEFAULTS
+ DEFERRABLE DEFERRED DEFINER DELETE_P DELIMITER DELIMITERS DEPENDS DEPTH DESC
+ DETACH DICTIONARY DISABLE_P DISCARD DISTINCT DO DOCUMENT_P DOMAIN_P
+ DOUBLE_P DROP
+
+ EACH ELSE ENABLE_P ENCODING ENCRYPTED END_P ENUM_P ESCAPE EVENT EXCEPT
+ EXCLUDE EXCLUDING EXCLUSIVE EXECUTE EXISTS EXPLAIN EXPRESSION
+ EXTENSION EXTERNAL EXTRACT
+
+ FALSE_P FAMILY FETCH FILTER FINALIZE FIRST_P FLOAT_P FOLLOWING FOR
+ FORCE FOREIGN FORWARD FREEZE FROM FULL FUNCTION FUNCTIONS
+
+ GENERATED GLOBAL GRANT GRANTED GREATEST GROUP_P GROUPING GROUPS
+
+ HANDLER HAVING HEADER_P HOLD HOUR_P
+
+ IDENTITY_P IF_P ILIKE IMMEDIATE IMMUTABLE IMPLICIT_P IMPORT_P IN_P INCLUDE
+ INCLUDING INCREMENT INDEX INDEXES INHERIT INHERITS INITIALLY INLINE_P
+ INNER_P INOUT INPUT_P INSENSITIVE INSERT INSTEAD INT_P INTEGER
+ INTERSECT INTERVAL INTO INVOKER IS ISNULL ISOLATION
+
+ JOIN
+
+ KEY
+
+ LABEL LANGUAGE LARGE_P LAST_P LATERAL_P
+ LEADING LEAKPROOF LEAST LEFT LEVEL LIKE LIMIT LISTEN LOAD LOCAL
+ LOCALTIME LOCALTIMESTAMP LOCATION LOCK_P LOCKED LOGGED
+
+ MAPPING MATCH MATCHED MATERIALIZED MAXVALUE MERGE METHOD
+ MINUTE_P MINVALUE MODE MONTH_P MOVE
+
+ NAME_P NAMES NATIONAL NATURAL NCHAR NEW NEXT NFC NFD NFKC NFKD NO NONE
+ NORMALIZE NORMALIZED
+ NOT NOTHING NOTIFY NOTNULL NOWAIT NULL_P NULLIF
+ NULLS_P NUMERIC
+
+ OBJECT_P OF OFF OFFSET OIDS OLD ON ONLY OPERATOR OPTION OPTIONS OR
+ ORDER ORDINALITY OTHERS OUT_P OUTER_P
+ OVER OVERLAPS OVERLAY OVERRIDING OWNED OWNER
+
+ PARALLEL PARAMETER PARSER PARTIAL PARTITION PASSING PASSWORD
+ PLACING PLANS POLICY
+ POSITION PRECEDING PRECISION PRESERVE PREPARE PREPARED PRIMARY
+ PRIOR PRIVILEGES PROCEDURAL PROCEDURE PROCEDURES PROGRAM PUBLICATION
+
+ QUOTE
+
+ RANGE READ REAL REASSIGN RECHECK RECURSIVE REF_P REFERENCES REFERENCING
+ REFRESH REINDEX RELATIVE_P RELEASE RENAME REPEATABLE REPLACE REPLICA
+ RESET RESTART RESTRICT RETURN RETURNING RETURNS REVOKE RIGHT ROLE ROLLBACK ROLLUP
+ ROUTINE ROUTINES ROW ROWS RULE
+
+ SAVEPOINT SCHEMA SCHEMAS SCROLL SEARCH SECOND_P SECURITY SELECT SEQUENCE SEQUENCES
+ SERIALIZABLE SERVER SESSION SESSION_USER SET SETS SETOF SHARE SHOW
+ SIMILAR SIMPLE SKIP SMALLINT SNAPSHOT SOME SQL_P STABLE STANDALONE_P
+ START STATEMENT STATISTICS STDIN STDOUT STORAGE STORED STRICT_P STRIP_P
+ SUBSCRIPTION SUBSTRING SUPPORT SYMMETRIC SYSID SYSTEM_P
+
+ TABLE TABLES TABLESAMPLE TABLESPACE TEMP TEMPLATE TEMPORARY TEXT_P THEN
+ TIES TIME TIMESTAMP TO TRAILING TRANSACTION TRANSFORM
+ TREAT TRIGGER TRIM TRUE_P
+ TRUNCATE TRUSTED TYPE_P TYPES_P
+
+ UESCAPE UNBOUNDED UNCOMMITTED UNENCRYPTED UNION UNIQUE UNKNOWN
+ UNLISTEN UNLOGGED UNTIL UPDATE USER USING
+
+ VACUUM VALID VALIDATE VALIDATOR VALUE_P VALUES VARCHAR VARIADIC VARYING
+ VERBOSE VERSION_P VIEW VIEWS VOLATILE
+
+ WHEN WHERE WHITESPACE_P WINDOW WITH WITHIN WITHOUT WORK WRAPPER WRITE
+
+ XML_P XMLATTRIBUTES XMLCONCAT XMLELEMENT XMLEXISTS XMLFOREST XMLNAMESPACES
+ XMLPARSE XMLPI XMLROOT XMLSERIALIZE XMLTABLE
+
+ YEAR_P YES_P
+
+ ZONE
+
+
+
+
+
+
+
+
+
+
+
+ %token NOT_LA NULLS_LA WITH_LA
+
+
+
+
+
+
+
+
+ %token MODE_TYPE_NAME
+ %token MODE_PLPGSQL_EXPR
+ %token MODE_PLPGSQL_ASSIGN1
+ %token MODE_PLPGSQL_ASSIGN2
+ %token MODE_PLPGSQL_ASSIGN3
+
+
+
+ %nonassoc SET
+ %left UNION EXCEPT
+ %left INTERSECT
+ %left OR
+ %left AND
+ %right NOT
+ %nonassoc IS ISNULL NOTNULL
+ %nonassoc '<' '>' '=' LESS_EQUALS GREATER_EQUALS NOT_EQUALS
+ %nonassoc BETWEEN IN_P LIKE ILIKE SIMILAR NOT_LA
+ %nonassoc ESCAPE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %nonassoc UNBOUNDED
+ %nonassoc IDENT
+%nonassoc CSTRING PARTITION RANGE ROWS GROUPS PRECEDING FOLLOWING CUBE ROLLUP
+ %left Op OPERATOR
+ %left '+' '-'
+ %left '*' '/' '%'
+ %left '^'
+
+ %left AT
+ %left COLLATE
+ %right UMINUS
+ %left '[' ']'
+ %left '(' ')'
+ %left TYPECAST
+ %left '.'
+
+
+
+
+
+
+
+ %left JOIN CROSS LEFT FULL RIGHT INNER_P NATURAL
+
+%%
+prog: statements;
+/* rules */
+ toplevel_stmt:
+ stmt
+ {
+ $$ = $1;
+}
+| TransactionStmtLegacy
+ {
+ fprintf(base_yyout, "{ ECPGtrans(__LINE__, %s, \"%s\");", connection ? connection : "NULL", $1);
+ whenever_action(2);
+ free($1);
+ }
+;
+
+
+ stmt:
+ AlterEventTrigStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterCollationStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterDatabaseStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterDatabaseSetStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterDefaultPrivilegesStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterDomainStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterEnumStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterExtensionStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterExtensionContentsStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterFdwStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterForeignServerStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterFunctionStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterGroupStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterObjectDependsStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterObjectSchemaStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterOwnerStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterOperatorStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterTypeStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterPolicyStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterSeqStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterSystemStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterTableStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterTblSpcStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterCompositeTypeStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterPublicationStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterRoleSetStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterRoleStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterSubscriptionStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterStatsStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterTSConfigurationStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterTSDictionaryStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterUserMappingStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AnalyzeStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CallStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CheckPointStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| ClosePortalStmt
+ {
+ if (INFORMIX_MODE)
+ {
+ if (pg_strcasecmp($1+strlen("close "), "database") == 0)
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in CLOSE DATABASE statement");
+
+ fprintf(base_yyout, "{ ECPGdisconnect(__LINE__, \"CURRENT\");");
+ whenever_action(2);
+ free($1);
+ break;
+ }
+ }
+
+ output_statement($1, 0, ECPGst_normal);
+ }
+| ClusterStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CommentStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| ConstraintsSetStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CopyStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateAmStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateAsStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateAssertionStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateCastStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateConversionStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateDomainStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateExtensionStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateFdwStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateForeignServerStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateForeignTableStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateFunctionStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateGroupStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateMatViewStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateOpClassStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateOpFamilyStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreatePublicationStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| AlterOpFamilyStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreatePolicyStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreatePLangStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateSchemaStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateSeqStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateSubscriptionStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateStatsStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateTableSpaceStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateTransformStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateTrigStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateEventTrigStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateRoleStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateUserStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreateUserMappingStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| CreatedbStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DeallocateStmt
+ {
+ output_deallocate_prepare_statement($1);
+ }
+| DeclareCursorStmt
+ { output_simple_statement($1, (strncmp($1, "ECPGset_var", strlen("ECPGset_var")) == 0) ? 4 : 0); }
+| DefineStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DeleteStmt
+ { output_statement($1, 1, ECPGst_prepnormal); }
+| DiscardStmt
+ { output_statement($1, 1, ECPGst_normal); }
+| DoStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropCastStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropOpClassStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropOpFamilyStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropOwnedStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropSubscriptionStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropTableSpaceStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropTransformStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropRoleStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropUserMappingStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| DropdbStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| ExecuteStmt
+ {
+ check_declared_list($1.name);
+ if ($1.type == NULL || strlen($1.type) == 0)
+ output_statement($1.name, 1, ECPGst_execute);
+ else
+ {
+ if ($1.name[0] != '"')
+ /* case of char_variable */
+ add_variable_to_tail(&argsinsert, find_variable($1.name), &no_indicator);
+ else
+ {
+ /* case of ecpg_ident or CSTRING */
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *str = mm_strdup($1.name + 1);
+
+ /* It must be cut off double quotation because new_variable() double-quotes. */
+ str[strlen(str) - 1] = '\0';
+ sprintf(length, "%zu", strlen(str));
+ add_variable_to_tail(&argsinsert, new_variable(str, ECPGmake_simple_type(ECPGt_const, length, 0), 0), &no_indicator);
+ }
+ output_statement(cat_str(3, mm_strdup("execute"), mm_strdup("$0"), $1.type), 0, ECPGst_exec_with_exprlist);
+ }
+ }
+| ExplainStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| FetchStmt
+ { output_statement($1, 1, ECPGst_normal); }
+| GrantStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| GrantRoleStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| ImportForeignSchemaStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| IndexStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| InsertStmt
+ { output_statement($1, 1, ECPGst_prepnormal); }
+| ListenStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| RefreshMatViewStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| LoadStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| LockStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| MergeStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| NotifyStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| PrepareStmt
+ {
+ check_declared_list($1.name);
+ if ($1.type == NULL)
+ output_prepare_statement($1.name, $1.stmt);
+ else if (strlen($1.type) == 0)
+ {
+ char *stmt = cat_str(3, mm_strdup("\""), $1.stmt, mm_strdup("\""));
+ output_prepare_statement($1.name, stmt);
+ }
+ else
+ {
+ if ($1.name[0] != '"')
+ /* case of char_variable */
+ add_variable_to_tail(&argsinsert, find_variable($1.name), &no_indicator);
+ else
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *str = mm_strdup($1.name + 1);
+
+ /* It must be cut off double quotation because new_variable() double-quotes. */
+ str[strlen(str) - 1] = '\0';
+ sprintf(length, "%zu", strlen(str));
+ add_variable_to_tail(&argsinsert, new_variable(str, ECPGmake_simple_type(ECPGt_const, length, 0), 0), &no_indicator);
+ }
+ output_statement(cat_str(5, mm_strdup("prepare"), mm_strdup("$0"), $1.type, mm_strdup("as"), $1.stmt), 0, ECPGst_prepare);
+ }
+ }
+| ReassignOwnedStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| ReindexStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| RemoveAggrStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| RemoveFuncStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| RemoveOperStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| RenameStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| RevokeStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| RevokeRoleStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| RuleStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| SecLabelStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| SelectStmt
+ { output_statement($1, 1, ECPGst_prepnormal); }
+| TransactionStmt
+ {
+ fprintf(base_yyout, "{ ECPGtrans(__LINE__, %s, \"%s\");", connection ? connection : "NULL", $1);
+ whenever_action(2);
+ free($1);
+ }
+| TruncateStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| UnlistenStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| UpdateStmt
+ { output_statement($1, 1, ECPGst_prepnormal); }
+| VacuumStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| VariableResetStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| VariableSetStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| VariableShowStmt
+ { output_statement($1, 0, ECPGst_normal); }
+| ViewStmt
+ { output_statement($1, 0, ECPGst_normal); }
+ | ECPGAllocateDescr
+ {
+ fprintf(base_yyout,"ECPGallocate_desc(__LINE__, %s);",$1);
+ whenever_action(0);
+ free($1);
+ }
+ | ECPGConnect
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in CONNECT statement");
+
+ fprintf(base_yyout, "{ ECPGconnect(__LINE__, %d, %s, %d); ", compat, $1, autocommit);
+ reset_variables();
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGDeclareStmt
+ {
+ output_simple_statement($1, 0);
+ }
+ | ECPGCursorStmt
+ {
+ output_simple_statement($1, (strncmp($1, "ECPGset_var", strlen("ECPGset_var")) == 0) ? 4 : 0);
+ }
+ | ECPGDeallocateDescr
+ {
+ fprintf(base_yyout,"ECPGdeallocate_desc(__LINE__, %s);",$1);
+ whenever_action(0);
+ free($1);
+ }
+ | ECPGDeclare
+ {
+ output_simple_statement($1, 0);
+ }
+ | ECPGDescribe
+ {
+ check_declared_list($1.stmt_name);
+
+ fprintf(base_yyout, "{ ECPGdescribe(__LINE__, %d, %d, %s, %s,", compat, $1.input, connection ? connection : "NULL", $1.stmt_name);
+ dump_variables(argsresult, 1);
+ fputs("ECPGt_EORT);", base_yyout);
+ fprintf(base_yyout, "}");
+ output_line_number();
+
+ free($1.stmt_name);
+ }
+ | ECPGDisconnect
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in DISCONNECT statement");
+
+ fprintf(base_yyout, "{ ECPGdisconnect(__LINE__, %s);",
+ $1 ? $1 : "\"CURRENT\"");
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGExecuteImmediateStmt { output_statement($1, 0, ECPGst_exec_immediate); }
+ | ECPGFree
+ {
+ const char *con = connection ? connection : "NULL";
+
+ if (strcmp($1, "all") == 0)
+ fprintf(base_yyout, "{ ECPGdeallocate_all(__LINE__, %d, %s);", compat, con);
+ else if ($1[0] == ':')
+ fprintf(base_yyout, "{ ECPGdeallocate(__LINE__, %d, %s, %s);", compat, con, $1+1);
+ else
+ fprintf(base_yyout, "{ ECPGdeallocate(__LINE__, %d, %s, \"%s\");", compat, con, $1);
+
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGGetDescriptor
+ {
+ lookup_descriptor($1.name, connection);
+ output_get_descr($1.name, $1.str);
+ free($1.name);
+ free($1.str);
+ }
+ | ECPGGetDescriptorHeader
+ {
+ lookup_descriptor($1, connection);
+ output_get_descr_header($1);
+ free($1);
+ }
+ | ECPGOpen
+ {
+ struct cursor *ptr;
+
+ if ((ptr = add_additional_variables($1, true)) != NULL)
+ {
+ connection = ptr->connection ? mm_strdup(ptr->connection) : NULL;
+ output_statement(mm_strdup(ptr->command), 0, ECPGst_normal);
+ ptr->opened = true;
+ }
+ }
+ | ECPGSetAutocommit
+ {
+ fprintf(base_yyout, "{ ECPGsetcommit(__LINE__, \"%s\", %s);", $1, connection ? connection : "NULL");
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGSetConnection
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in SET CONNECTION statement");
+
+ fprintf(base_yyout, "{ ECPGsetconn(__LINE__, %s);", $1);
+ whenever_action(2);
+ free($1);
+ }
+ | ECPGSetDescriptor
+ {
+ lookup_descriptor($1.name, connection);
+ output_set_descr($1.name, $1.str);
+ free($1.name);
+ free($1.str);
+ }
+ | ECPGSetDescriptorHeader
+ {
+ lookup_descriptor($1, connection);
+ output_set_descr_header($1);
+ free($1);
+ }
+ | ECPGTypedef
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in TYPE statement");
+
+ fprintf(base_yyout, "%s", $1);
+ free($1);
+ output_line_number();
+ }
+ | ECPGVar
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in VAR statement");
+
+ output_simple_statement($1, 0);
+ }
+ | ECPGWhenever
+ {
+ if (connection)
+ mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in WHENEVER statement");
+
+ output_simple_statement($1, 0);
+ }
+|
+ { $$ = NULL; }
+;
+
+
+ CallStmt:
+ CALL func_application
+ {
+ $$ = cat_str(2,mm_strdup("call"),$2);
+}
+;
+
+
+ CreateRoleStmt:
+ CREATE ROLE RoleId opt_with OptRoleList
+ {
+ $$ = cat_str(4,mm_strdup("create role"),$3,$4,$5);
+}
+;
+
+
+ opt_with:
+ WITH
+ {
+ $$ = mm_strdup("with");
+}
+| WITH_LA
+ {
+ $$ = mm_strdup("with");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptRoleList:
+ OptRoleList CreateOptRoleElem
+ {
+ $$ = cat_str(2,$1,$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ AlterOptRoleList:
+ AlterOptRoleList AlterOptRoleElem
+ {
+ $$ = cat_str(2,$1,$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ AlterOptRoleElem:
+ PASSWORD ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("password"),$2);
+}
+| PASSWORD NULL_P
+ {
+ $$ = mm_strdup("password null");
+}
+| ENCRYPTED PASSWORD ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("encrypted password"),$3);
+}
+| UNENCRYPTED PASSWORD ecpg_sconst
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(2,mm_strdup("unencrypted password"),$3);
+}
+| INHERIT
+ {
+ $$ = mm_strdup("inherit");
+}
+| CONNECTION LIMIT SignedIconst
+ {
+ $$ = cat_str(2,mm_strdup("connection limit"),$3);
+}
+| VALID UNTIL ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("valid until"),$3);
+}
+| USER role_list
+ {
+ $$ = cat_str(2,mm_strdup("user"),$2);
+}
+| ecpg_ident
+ {
+ $$ = $1;
+}
+;
+
+
+ CreateOptRoleElem:
+ AlterOptRoleElem
+ {
+ $$ = $1;
+}
+| SYSID Iconst
+ {
+ $$ = cat_str(2,mm_strdup("sysid"),$2);
+}
+| ADMIN role_list
+ {
+ $$ = cat_str(2,mm_strdup("admin"),$2);
+}
+| ROLE role_list
+ {
+ $$ = cat_str(2,mm_strdup("role"),$2);
+}
+| IN_P ROLE role_list
+ {
+ $$ = cat_str(2,mm_strdup("in role"),$3);
+}
+| IN_P GROUP_P role_list
+ {
+ $$ = cat_str(2,mm_strdup("in group"),$3);
+}
+;
+
+
+ CreateUserStmt:
+ CREATE USER RoleId opt_with OptRoleList
+ {
+ $$ = cat_str(4,mm_strdup("create user"),$3,$4,$5);
+}
+;
+
+
+ AlterRoleStmt:
+ ALTER ROLE RoleSpec opt_with AlterOptRoleList
+ {
+ $$ = cat_str(4,mm_strdup("alter role"),$3,$4,$5);
+}
+| ALTER USER RoleSpec opt_with AlterOptRoleList
+ {
+ $$ = cat_str(4,mm_strdup("alter user"),$3,$4,$5);
+}
+;
+
+
+ opt_in_database:
+
+ {
+ $$=EMPTY; }
+| IN_P DATABASE name
+ {
+ $$ = cat_str(2,mm_strdup("in database"),$3);
+}
+;
+
+
+ AlterRoleSetStmt:
+ ALTER ROLE RoleSpec opt_in_database SetResetClause
+ {
+ $$ = cat_str(4,mm_strdup("alter role"),$3,$4,$5);
+}
+| ALTER ROLE ALL opt_in_database SetResetClause
+ {
+ $$ = cat_str(3,mm_strdup("alter role all"),$4,$5);
+}
+| ALTER USER RoleSpec opt_in_database SetResetClause
+ {
+ $$ = cat_str(4,mm_strdup("alter user"),$3,$4,$5);
+}
+| ALTER USER ALL opt_in_database SetResetClause
+ {
+ $$ = cat_str(3,mm_strdup("alter user all"),$4,$5);
+}
+;
+
+
+ DropRoleStmt:
+ DROP ROLE role_list
+ {
+ $$ = cat_str(2,mm_strdup("drop role"),$3);
+}
+| DROP ROLE IF_P EXISTS role_list
+ {
+ $$ = cat_str(2,mm_strdup("drop role if exists"),$5);
+}
+| DROP USER role_list
+ {
+ $$ = cat_str(2,mm_strdup("drop user"),$3);
+}
+| DROP USER IF_P EXISTS role_list
+ {
+ $$ = cat_str(2,mm_strdup("drop user if exists"),$5);
+}
+| DROP GROUP_P role_list
+ {
+ $$ = cat_str(2,mm_strdup("drop group"),$3);
+}
+| DROP GROUP_P IF_P EXISTS role_list
+ {
+ $$ = cat_str(2,mm_strdup("drop group if exists"),$5);
+}
+;
+
+
+ CreateGroupStmt:
+ CREATE GROUP_P RoleId opt_with OptRoleList
+ {
+ $$ = cat_str(4,mm_strdup("create group"),$3,$4,$5);
+}
+;
+
+
+ AlterGroupStmt:
+ ALTER GROUP_P RoleSpec add_drop USER role_list
+ {
+ $$ = cat_str(5,mm_strdup("alter group"),$3,$4,mm_strdup("user"),$6);
+}
+;
+
+
+ add_drop:
+ ADD_P
+ {
+ $$ = mm_strdup("add");
+}
+| DROP
+ {
+ $$ = mm_strdup("drop");
+}
+;
+
+
+ CreateSchemaStmt:
+ CREATE SCHEMA OptSchemaName AUTHORIZATION RoleSpec OptSchemaEltList
+ {
+ $$ = cat_str(5,mm_strdup("create schema"),$3,mm_strdup("authorization"),$5,$6);
+}
+| CREATE SCHEMA ColId OptSchemaEltList
+ {
+ $$ = cat_str(3,mm_strdup("create schema"),$3,$4);
+}
+| CREATE SCHEMA IF_P NOT EXISTS OptSchemaName AUTHORIZATION RoleSpec OptSchemaEltList
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(5,mm_strdup("create schema if not exists"),$6,mm_strdup("authorization"),$8,$9);
+}
+| CREATE SCHEMA IF_P NOT EXISTS ColId OptSchemaEltList
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(3,mm_strdup("create schema if not exists"),$6,$7);
+}
+;
+
+
+ OptSchemaName:
+ ColId
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptSchemaEltList:
+ OptSchemaEltList schema_stmt
+ {
+ $$ = cat_str(2,$1,$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ schema_stmt:
+ CreateStmt
+ {
+ $$ = $1;
+}
+| IndexStmt
+ {
+ $$ = $1;
+}
+| CreateSeqStmt
+ {
+ $$ = $1;
+}
+| CreateTrigStmt
+ {
+ $$ = $1;
+}
+| GrantStmt
+ {
+ $$ = $1;
+}
+| ViewStmt
+ {
+ $$ = $1;
+}
+;
+
+
+ VariableSetStmt:
+ SET set_rest
+ {
+ $$ = cat_str(2,mm_strdup("set"),$2);
+}
+| SET LOCAL set_rest
+ {
+ $$ = cat_str(2,mm_strdup("set local"),$3);
+}
+| SET SESSION set_rest
+ {
+ $$ = cat_str(2,mm_strdup("set session"),$3);
+}
+;
+
+
+ set_rest:
+ TRANSACTION transaction_mode_list
+ {
+ $$ = cat_str(2,mm_strdup("transaction"),$2);
+}
+| SESSION CHARACTERISTICS AS TRANSACTION transaction_mode_list
+ {
+ $$ = cat_str(2,mm_strdup("session characteristics as transaction"),$5);
+}
+| set_rest_more
+ {
+ $$ = $1;
+}
+;
+
+
+ generic_set:
+ var_name TO var_list
+ {
+ $$ = cat_str(3,$1,mm_strdup("to"),$3);
+}
+| var_name '=' var_list
+ {
+ $$ = cat_str(3,$1,mm_strdup("="),$3);
+}
+| var_name TO DEFAULT
+ {
+ $$ = cat_str(2,$1,mm_strdup("to default"));
+}
+| var_name '=' DEFAULT
+ {
+ $$ = cat_str(2,$1,mm_strdup("= default"));
+}
+;
+
+
+ set_rest_more:
+ generic_set
+ {
+ $$ = $1;
+}
+| var_name FROM CURRENT_P
+ {
+ $$ = cat_str(2,$1,mm_strdup("from current"));
+}
+| TIME ZONE zone_value
+ {
+ $$ = cat_str(2,mm_strdup("time zone"),$3);
+}
+| CATALOG_P ecpg_sconst
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(2,mm_strdup("catalog"),$2);
+}
+| SCHEMA ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("schema"),$2);
+}
+| NAMES opt_encoding
+ {
+ $$ = cat_str(2,mm_strdup("names"),$2);
+}
+| ROLE NonReservedWord_or_Sconst
+ {
+ $$ = cat_str(2,mm_strdup("role"),$2);
+}
+| SESSION AUTHORIZATION NonReservedWord_or_Sconst
+ {
+ $$ = cat_str(2,mm_strdup("session authorization"),$3);
+}
+| SESSION AUTHORIZATION DEFAULT
+ {
+ $$ = mm_strdup("session authorization default");
+}
+| XML_P OPTION document_or_content
+ {
+ $$ = cat_str(2,mm_strdup("xml option"),$3);
+}
+| TRANSACTION SNAPSHOT ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("transaction snapshot"),$3);
+}
+;
+
+
+ var_name:
+ECPGColId
+ {
+ $$ = $1;
+}
+| var_name '.' ColId
+ {
+ $$ = cat_str(3,$1,mm_strdup("."),$3);
+}
+;
+
+
+ var_list:
+ var_value
+ {
+ $$ = $1;
+}
+| var_list ',' var_value
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ var_value:
+ opt_boolean_or_string
+ {
+ $$ = $1;
+}
+| NumericOnly
+ {
+ if ($1[0] == '$')
+ {
+ free($1);
+ $1 = mm_strdup("$0");
+ }
+
+ $$ = $1;
+}
+;
+
+
+ iso_level:
+ READ UNCOMMITTED
+ {
+ $$ = mm_strdup("read uncommitted");
+}
+| READ COMMITTED
+ {
+ $$ = mm_strdup("read committed");
+}
+| REPEATABLE READ
+ {
+ $$ = mm_strdup("repeatable read");
+}
+| SERIALIZABLE
+ {
+ $$ = mm_strdup("serializable");
+}
+;
+
+
+ opt_boolean_or_string:
+ TRUE_P
+ {
+ $$ = mm_strdup("true");
+}
+| FALSE_P
+ {
+ $$ = mm_strdup("false");
+}
+| ON
+ {
+ $$ = mm_strdup("on");
+}
+| NonReservedWord_or_Sconst
+ {
+ $$ = $1;
+}
+;
+
+
+ zone_value:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+| ecpg_ident
+ {
+ $$ = $1;
+}
+| ConstInterval ecpg_sconst opt_interval
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| ConstInterval '(' Iconst ')' ecpg_sconst
+ {
+ $$ = cat_str(5,$1,mm_strdup("("),$3,mm_strdup(")"),$5);
+}
+| NumericOnly
+ {
+ $$ = $1;
+}
+| DEFAULT
+ {
+ $$ = mm_strdup("default");
+}
+| LOCAL
+ {
+ $$ = mm_strdup("local");
+}
+;
+
+
+ opt_encoding:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+| DEFAULT
+ {
+ $$ = mm_strdup("default");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ NonReservedWord_or_Sconst:
+ NonReservedWord
+ {
+ $$ = $1;
+}
+| ecpg_sconst
+ {
+ $$ = $1;
+}
+;
+
+
+ VariableResetStmt:
+ RESET reset_rest
+ {
+ $$ = cat_str(2,mm_strdup("reset"),$2);
+}
+;
+
+
+ reset_rest:
+ generic_reset
+ {
+ $$ = $1;
+}
+| TIME ZONE
+ {
+ $$ = mm_strdup("time zone");
+}
+| TRANSACTION ISOLATION LEVEL
+ {
+ $$ = mm_strdup("transaction isolation level");
+}
+| SESSION AUTHORIZATION
+ {
+ $$ = mm_strdup("session authorization");
+}
+;
+
+
+ generic_reset:
+ var_name
+ {
+ $$ = $1;
+}
+| ALL
+ {
+ $$ = mm_strdup("all");
+}
+;
+
+
+ SetResetClause:
+ SET set_rest
+ {
+ $$ = cat_str(2,mm_strdup("set"),$2);
+}
+| VariableResetStmt
+ {
+ $$ = $1;
+}
+;
+
+
+ FunctionSetResetClause:
+ SET set_rest_more
+ {
+ $$ = cat_str(2,mm_strdup("set"),$2);
+}
+| VariableResetStmt
+ {
+ $$ = $1;
+}
+;
+
+
+ VariableShowStmt:
+SHOW var_name ecpg_into
+ {
+ $$ = cat_str(2,mm_strdup("show"),$2);
+}
+| SHOW TIME ZONE ecpg_into
+ {
+ $$ = mm_strdup("show time zone");
+}
+| SHOW TRANSACTION ISOLATION LEVEL ecpg_into
+ {
+ $$ = mm_strdup("show transaction isolation level");
+}
+| SHOW SESSION AUTHORIZATION ecpg_into
+ {
+ $$ = mm_strdup("show session authorization");
+}
+| SHOW ALL
+ {
+ mmerror(PARSE_ERROR, ET_ERROR, "SHOW ALL is not implemented");
+ $$ = EMPTY;
+ }
+;
+
+
+ ConstraintsSetStmt:
+ SET CONSTRAINTS constraints_set_list constraints_set_mode
+ {
+ $$ = cat_str(3,mm_strdup("set constraints"),$3,$4);
+}
+;
+
+
+ constraints_set_list:
+ ALL
+ {
+ $$ = mm_strdup("all");
+}
+| qualified_name_list
+ {
+ $$ = $1;
+}
+;
+
+
+ constraints_set_mode:
+ DEFERRED
+ {
+ $$ = mm_strdup("deferred");
+}
+| IMMEDIATE
+ {
+ $$ = mm_strdup("immediate");
+}
+;
+
+
+ CheckPointStmt:
+ CHECKPOINT
+ {
+ $$ = mm_strdup("checkpoint");
+}
+;
+
+
+ DiscardStmt:
+ DISCARD ALL
+ {
+ $$ = mm_strdup("discard all");
+}
+| DISCARD TEMP
+ {
+ $$ = mm_strdup("discard temp");
+}
+| DISCARD TEMPORARY
+ {
+ $$ = mm_strdup("discard temporary");
+}
+| DISCARD PLANS
+ {
+ $$ = mm_strdup("discard plans");
+}
+| DISCARD SEQUENCES
+ {
+ $$ = mm_strdup("discard sequences");
+}
+;
+
+
+ AlterTableStmt:
+ ALTER TABLE relation_expr alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter table"),$3,$4);
+}
+| ALTER TABLE IF_P EXISTS relation_expr alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter table if exists"),$5,$6);
+}
+| ALTER TABLE relation_expr partition_cmd
+ {
+ $$ = cat_str(3,mm_strdup("alter table"),$3,$4);
+}
+| ALTER TABLE IF_P EXISTS relation_expr partition_cmd
+ {
+ $$ = cat_str(3,mm_strdup("alter table if exists"),$5,$6);
+}
+| ALTER TABLE ALL IN_P TABLESPACE name SET TABLESPACE name opt_nowait
+ {
+ $$ = cat_str(5,mm_strdup("alter table all in tablespace"),$6,mm_strdup("set tablespace"),$9,$10);
+}
+| ALTER TABLE ALL IN_P TABLESPACE name OWNED BY role_list SET TABLESPACE name opt_nowait
+ {
+ $$ = cat_str(7,mm_strdup("alter table all in tablespace"),$6,mm_strdup("owned by"),$9,mm_strdup("set tablespace"),$12,$13);
+}
+| ALTER INDEX qualified_name alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter index"),$3,$4);
+}
+| ALTER INDEX IF_P EXISTS qualified_name alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter index if exists"),$5,$6);
+}
+| ALTER INDEX qualified_name index_partition_cmd
+ {
+ $$ = cat_str(3,mm_strdup("alter index"),$3,$4);
+}
+| ALTER INDEX ALL IN_P TABLESPACE name SET TABLESPACE name opt_nowait
+ {
+ $$ = cat_str(5,mm_strdup("alter index all in tablespace"),$6,mm_strdup("set tablespace"),$9,$10);
+}
+| ALTER INDEX ALL IN_P TABLESPACE name OWNED BY role_list SET TABLESPACE name opt_nowait
+ {
+ $$ = cat_str(7,mm_strdup("alter index all in tablespace"),$6,mm_strdup("owned by"),$9,mm_strdup("set tablespace"),$12,$13);
+}
+| ALTER SEQUENCE qualified_name alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter sequence"),$3,$4);
+}
+| ALTER SEQUENCE IF_P EXISTS qualified_name alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter sequence if exists"),$5,$6);
+}
+| ALTER VIEW qualified_name alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter view"),$3,$4);
+}
+| ALTER VIEW IF_P EXISTS qualified_name alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter view if exists"),$5,$6);
+}
+| ALTER MATERIALIZED VIEW qualified_name alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter materialized view"),$4,$5);
+}
+| ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter materialized view if exists"),$6,$7);
+}
+| ALTER MATERIALIZED VIEW ALL IN_P TABLESPACE name SET TABLESPACE name opt_nowait
+ {
+ $$ = cat_str(5,mm_strdup("alter materialized view all in tablespace"),$7,mm_strdup("set tablespace"),$10,$11);
+}
+| ALTER MATERIALIZED VIEW ALL IN_P TABLESPACE name OWNED BY role_list SET TABLESPACE name opt_nowait
+ {
+ $$ = cat_str(7,mm_strdup("alter materialized view all in tablespace"),$7,mm_strdup("owned by"),$10,mm_strdup("set tablespace"),$13,$14);
+}
+| ALTER FOREIGN TABLE relation_expr alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter foreign table"),$4,$5);
+}
+| ALTER FOREIGN TABLE IF_P EXISTS relation_expr alter_table_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter foreign table if exists"),$6,$7);
+}
+;
+
+
+ alter_table_cmds:
+ alter_table_cmd
+ {
+ $$ = $1;
+}
+| alter_table_cmds ',' alter_table_cmd
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ partition_cmd:
+ ATTACH PARTITION qualified_name PartitionBoundSpec
+ {
+ $$ = cat_str(3,mm_strdup("attach partition"),$3,$4);
+}
+| DETACH PARTITION qualified_name opt_concurrently
+ {
+ $$ = cat_str(3,mm_strdup("detach partition"),$3,$4);
+}
+| DETACH PARTITION qualified_name FINALIZE
+ {
+ $$ = cat_str(3,mm_strdup("detach partition"),$3,mm_strdup("finalize"));
+}
+;
+
+
+ index_partition_cmd:
+ ATTACH PARTITION qualified_name
+ {
+ $$ = cat_str(2,mm_strdup("attach partition"),$3);
+}
+;
+
+
+ alter_table_cmd:
+ ADD_P columnDef
+ {
+ $$ = cat_str(2,mm_strdup("add"),$2);
+}
+| ADD_P IF_P NOT EXISTS columnDef
+ {
+ $$ = cat_str(2,mm_strdup("add if not exists"),$5);
+}
+| ADD_P COLUMN columnDef
+ {
+ $$ = cat_str(2,mm_strdup("add column"),$3);
+}
+| ADD_P COLUMN IF_P NOT EXISTS columnDef
+ {
+ $$ = cat_str(2,mm_strdup("add column if not exists"),$6);
+}
+| ALTER opt_column ColId alter_column_default
+ {
+ $$ = cat_str(4,mm_strdup("alter"),$2,$3,$4);
+}
+| ALTER opt_column ColId DROP NOT NULL_P
+ {
+ $$ = cat_str(4,mm_strdup("alter"),$2,$3,mm_strdup("drop not null"));
+}
+| ALTER opt_column ColId SET NOT NULL_P
+ {
+ $$ = cat_str(4,mm_strdup("alter"),$2,$3,mm_strdup("set not null"));
+}
+| ALTER opt_column ColId DROP EXPRESSION
+ {
+ $$ = cat_str(4,mm_strdup("alter"),$2,$3,mm_strdup("drop expression"));
+}
+| ALTER opt_column ColId DROP EXPRESSION IF_P EXISTS
+ {
+ $$ = cat_str(4,mm_strdup("alter"),$2,$3,mm_strdup("drop expression if exists"));
+}
+| ALTER opt_column ColId SET STATISTICS SignedIconst
+ {
+ $$ = cat_str(5,mm_strdup("alter"),$2,$3,mm_strdup("set statistics"),$6);
+}
+| ALTER opt_column Iconst SET STATISTICS SignedIconst
+ {
+ $$ = cat_str(5,mm_strdup("alter"),$2,$3,mm_strdup("set statistics"),$6);
+}
+| ALTER opt_column ColId SET reloptions
+ {
+ $$ = cat_str(5,mm_strdup("alter"),$2,$3,mm_strdup("set"),$5);
+}
+| ALTER opt_column ColId RESET reloptions
+ {
+ $$ = cat_str(5,mm_strdup("alter"),$2,$3,mm_strdup("reset"),$5);
+}
+| ALTER opt_column ColId SET STORAGE ColId
+ {
+ $$ = cat_str(5,mm_strdup("alter"),$2,$3,mm_strdup("set storage"),$6);
+}
+| ALTER opt_column ColId SET column_compression
+ {
+ $$ = cat_str(5,mm_strdup("alter"),$2,$3,mm_strdup("set"),$5);
+}
+| ALTER opt_column ColId ADD_P GENERATED generated_when AS IDENTITY_P OptParenthesizedSeqOptList
+ {
+ $$ = cat_str(7,mm_strdup("alter"),$2,$3,mm_strdup("add generated"),$6,mm_strdup("as identity"),$9);
+}
+| ALTER opt_column ColId alter_identity_column_option_list
+ {
+ $$ = cat_str(4,mm_strdup("alter"),$2,$3,$4);
+}
+| ALTER opt_column ColId DROP IDENTITY_P
+ {
+ $$ = cat_str(4,mm_strdup("alter"),$2,$3,mm_strdup("drop identity"));
+}
+| ALTER opt_column ColId DROP IDENTITY_P IF_P EXISTS
+ {
+ $$ = cat_str(4,mm_strdup("alter"),$2,$3,mm_strdup("drop identity if exists"));
+}
+| DROP opt_column IF_P EXISTS ColId opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("drop"),$2,mm_strdup("if exists"),$5,$6);
+}
+| DROP opt_column ColId opt_drop_behavior
+ {
+ $$ = cat_str(4,mm_strdup("drop"),$2,$3,$4);
+}
+| ALTER opt_column ColId opt_set_data TYPE_P Typename opt_collate_clause alter_using
+ {
+ $$ = cat_str(8,mm_strdup("alter"),$2,$3,$4,mm_strdup("type"),$6,$7,$8);
+}
+| ALTER opt_column ColId alter_generic_options
+ {
+ $$ = cat_str(4,mm_strdup("alter"),$2,$3,$4);
+}
+| ADD_P TableConstraint
+ {
+ $$ = cat_str(2,mm_strdup("add"),$2);
+}
+| ALTER CONSTRAINT name ConstraintAttributeSpec
+ {
+ $$ = cat_str(3,mm_strdup("alter constraint"),$3,$4);
+}
+| VALIDATE CONSTRAINT name
+ {
+ $$ = cat_str(2,mm_strdup("validate constraint"),$3);
+}
+| DROP CONSTRAINT IF_P EXISTS name opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop constraint if exists"),$5,$6);
+}
+| DROP CONSTRAINT name opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop constraint"),$3,$4);
+}
+| SET WITHOUT OIDS
+ {
+ $$ = mm_strdup("set without oids");
+}
+| CLUSTER ON name
+ {
+ $$ = cat_str(2,mm_strdup("cluster on"),$3);
+}
+| SET WITHOUT CLUSTER
+ {
+ $$ = mm_strdup("set without cluster");
+}
+| SET LOGGED
+ {
+ $$ = mm_strdup("set logged");
+}
+| SET UNLOGGED
+ {
+ $$ = mm_strdup("set unlogged");
+}
+| ENABLE_P TRIGGER name
+ {
+ $$ = cat_str(2,mm_strdup("enable trigger"),$3);
+}
+| ENABLE_P ALWAYS TRIGGER name
+ {
+ $$ = cat_str(2,mm_strdup("enable always trigger"),$4);
+}
+| ENABLE_P REPLICA TRIGGER name
+ {
+ $$ = cat_str(2,mm_strdup("enable replica trigger"),$4);
+}
+| ENABLE_P TRIGGER ALL
+ {
+ $$ = mm_strdup("enable trigger all");
+}
+| ENABLE_P TRIGGER USER
+ {
+ $$ = mm_strdup("enable trigger user");
+}
+| DISABLE_P TRIGGER name
+ {
+ $$ = cat_str(2,mm_strdup("disable trigger"),$3);
+}
+| DISABLE_P TRIGGER ALL
+ {
+ $$ = mm_strdup("disable trigger all");
+}
+| DISABLE_P TRIGGER USER
+ {
+ $$ = mm_strdup("disable trigger user");
+}
+| ENABLE_P RULE name
+ {
+ $$ = cat_str(2,mm_strdup("enable rule"),$3);
+}
+| ENABLE_P ALWAYS RULE name
+ {
+ $$ = cat_str(2,mm_strdup("enable always rule"),$4);
+}
+| ENABLE_P REPLICA RULE name
+ {
+ $$ = cat_str(2,mm_strdup("enable replica rule"),$4);
+}
+| DISABLE_P RULE name
+ {
+ $$ = cat_str(2,mm_strdup("disable rule"),$3);
+}
+| INHERIT qualified_name
+ {
+ $$ = cat_str(2,mm_strdup("inherit"),$2);
+}
+| NO INHERIT qualified_name
+ {
+ $$ = cat_str(2,mm_strdup("no inherit"),$3);
+}
+| OF any_name
+ {
+ $$ = cat_str(2,mm_strdup("of"),$2);
+}
+| NOT OF
+ {
+ $$ = mm_strdup("not of");
+}
+| OWNER TO RoleSpec
+ {
+ $$ = cat_str(2,mm_strdup("owner to"),$3);
+}
+| SET ACCESS METHOD name
+ {
+ $$ = cat_str(2,mm_strdup("set access method"),$4);
+}
+| SET TABLESPACE name
+ {
+ $$ = cat_str(2,mm_strdup("set tablespace"),$3);
+}
+| SET reloptions
+ {
+ $$ = cat_str(2,mm_strdup("set"),$2);
+}
+| RESET reloptions
+ {
+ $$ = cat_str(2,mm_strdup("reset"),$2);
+}
+| REPLICA IDENTITY_P replica_identity
+ {
+ $$ = cat_str(2,mm_strdup("replica identity"),$3);
+}
+| ENABLE_P ROW LEVEL SECURITY
+ {
+ $$ = mm_strdup("enable row level security");
+}
+| DISABLE_P ROW LEVEL SECURITY
+ {
+ $$ = mm_strdup("disable row level security");
+}
+| FORCE ROW LEVEL SECURITY
+ {
+ $$ = mm_strdup("force row level security");
+}
+| NO FORCE ROW LEVEL SECURITY
+ {
+ $$ = mm_strdup("no force row level security");
+}
+| alter_generic_options
+ {
+ $$ = $1;
+}
+;
+
+
+ alter_column_default:
+ SET DEFAULT a_expr
+ {
+ $$ = cat_str(2,mm_strdup("set default"),$3);
+}
+| DROP DEFAULT
+ {
+ $$ = mm_strdup("drop default");
+}
+;
+
+
+ opt_drop_behavior:
+ CASCADE
+ {
+ $$ = mm_strdup("cascade");
+}
+| RESTRICT
+ {
+ $$ = mm_strdup("restrict");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_collate_clause:
+ COLLATE any_name
+ {
+ $$ = cat_str(2,mm_strdup("collate"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ alter_using:
+ USING a_expr
+ {
+ $$ = cat_str(2,mm_strdup("using"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ replica_identity:
+ NOTHING
+ {
+ $$ = mm_strdup("nothing");
+}
+| FULL
+ {
+ $$ = mm_strdup("full");
+}
+| DEFAULT
+ {
+ $$ = mm_strdup("default");
+}
+| USING INDEX name
+ {
+ $$ = cat_str(2,mm_strdup("using index"),$3);
+}
+;
+
+
+ reloptions:
+ '(' reloption_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+;
+
+
+ opt_reloptions:
+ WITH reloptions
+ {
+ $$ = cat_str(2,mm_strdup("with"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ reloption_list:
+ reloption_elem
+ {
+ $$ = $1;
+}
+| reloption_list ',' reloption_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ reloption_elem:
+ ColLabel '=' def_arg
+ {
+ $$ = cat_str(3,$1,mm_strdup("="),$3);
+}
+| ColLabel
+ {
+ $$ = $1;
+}
+| ColLabel '.' ColLabel '=' def_arg
+ {
+ $$ = cat_str(5,$1,mm_strdup("."),$3,mm_strdup("="),$5);
+}
+| ColLabel '.' ColLabel
+ {
+ $$ = cat_str(3,$1,mm_strdup("."),$3);
+}
+;
+
+
+ alter_identity_column_option_list:
+ alter_identity_column_option
+ {
+ $$ = $1;
+}
+| alter_identity_column_option_list alter_identity_column_option
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ alter_identity_column_option:
+ RESTART
+ {
+ $$ = mm_strdup("restart");
+}
+| RESTART opt_with NumericOnly
+ {
+ $$ = cat_str(3,mm_strdup("restart"),$2,$3);
+}
+| SET SeqOptElem
+ {
+ $$ = cat_str(2,mm_strdup("set"),$2);
+}
+| SET GENERATED generated_when
+ {
+ $$ = cat_str(2,mm_strdup("set generated"),$3);
+}
+;
+
+
+ PartitionBoundSpec:
+ FOR VALUES WITH '(' hash_partbound ')'
+ {
+ $$ = cat_str(3,mm_strdup("for values with ("),$5,mm_strdup(")"));
+}
+| FOR VALUES IN_P '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("for values in ("),$5,mm_strdup(")"));
+}
+| FOR VALUES FROM '(' expr_list ')' TO '(' expr_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("for values from ("),$5,mm_strdup(") to ("),$9,mm_strdup(")"));
+}
+| DEFAULT
+ {
+ $$ = mm_strdup("default");
+}
+;
+
+
+ hash_partbound_elem:
+ NonReservedWord Iconst
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ hash_partbound:
+ hash_partbound_elem
+ {
+ $$ = $1;
+}
+| hash_partbound ',' hash_partbound_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ AlterCompositeTypeStmt:
+ ALTER TYPE_P any_name alter_type_cmds
+ {
+ $$ = cat_str(3,mm_strdup("alter type"),$3,$4);
+}
+;
+
+
+ alter_type_cmds:
+ alter_type_cmd
+ {
+ $$ = $1;
+}
+| alter_type_cmds ',' alter_type_cmd
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ alter_type_cmd:
+ ADD_P ATTRIBUTE TableFuncElement opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("add attribute"),$3,$4);
+}
+| DROP ATTRIBUTE IF_P EXISTS ColId opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop attribute if exists"),$5,$6);
+}
+| DROP ATTRIBUTE ColId opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop attribute"),$3,$4);
+}
+| ALTER ATTRIBUTE ColId opt_set_data TYPE_P Typename opt_collate_clause opt_drop_behavior
+ {
+ $$ = cat_str(7,mm_strdup("alter attribute"),$3,$4,mm_strdup("type"),$6,$7,$8);
+}
+;
+
+
+ ClosePortalStmt:
+ CLOSE cursor_name
+ {
+ char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : $2;
+ struct cursor *ptr = NULL;
+ for (ptr = cur; ptr != NULL; ptr = ptr -> next)
+ {
+ if (strcmp($2, ptr -> name) == 0)
+ {
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ break;
+ }
+ }
+ $$ = cat2_str(mm_strdup("close"), cursor_marker);
+ }
+| CLOSE ALL
+ {
+ $$ = mm_strdup("close all");
+}
+;
+
+
+ CopyStmt:
+ COPY opt_binary qualified_name opt_column_list copy_from opt_program copy_file_name copy_delimiter opt_with copy_options where_clause
+ {
+ if (strcmp($6, "from") == 0 &&
+ (strcmp($7, "stdin") == 0 || strcmp($7, "stdout") == 0))
+ mmerror(PARSE_ERROR, ET_WARNING, "COPY FROM STDIN is not implemented");
+
+ $$ = cat_str(11,mm_strdup("copy"),$2,$3,$4,$5,$6,$7,$8,$9,$10,$11);
+}
+| COPY '(' PreparableStmt ')' TO opt_program copy_file_name opt_with copy_options
+ {
+ $$ = cat_str(7,mm_strdup("copy ("),$3,mm_strdup(") to"),$6,$7,$8,$9);
+}
+;
+
+
+ copy_from:
+ FROM
+ {
+ $$ = mm_strdup("from");
+}
+| TO
+ {
+ $$ = mm_strdup("to");
+}
+;
+
+
+ opt_program:
+ PROGRAM
+ {
+ $$ = mm_strdup("program");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ copy_file_name:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+| STDIN
+ {
+ $$ = mm_strdup("stdin");
+}
+| STDOUT
+ {
+ $$ = mm_strdup("stdout");
+}
+;
+
+
+ copy_options:
+ copy_opt_list
+ {
+ $$ = $1;
+}
+| '(' copy_generic_opt_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+;
+
+
+ copy_opt_list:
+ copy_opt_list copy_opt_item
+ {
+ $$ = cat_str(2,$1,$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ copy_opt_item:
+ BINARY
+ {
+ $$ = mm_strdup("binary");
+}
+| FREEZE
+ {
+ $$ = mm_strdup("freeze");
+}
+| DELIMITER opt_as ecpg_sconst
+ {
+ $$ = cat_str(3,mm_strdup("delimiter"),$2,$3);
+}
+| NULL_P opt_as ecpg_sconst
+ {
+ $$ = cat_str(3,mm_strdup("null"),$2,$3);
+}
+| CSV
+ {
+ $$ = mm_strdup("csv");
+}
+| HEADER_P
+ {
+ $$ = mm_strdup("header");
+}
+| QUOTE opt_as ecpg_sconst
+ {
+ $$ = cat_str(3,mm_strdup("quote"),$2,$3);
+}
+| ESCAPE opt_as ecpg_sconst
+ {
+ $$ = cat_str(3,mm_strdup("escape"),$2,$3);
+}
+| FORCE QUOTE columnList
+ {
+ $$ = cat_str(2,mm_strdup("force quote"),$3);
+}
+| FORCE QUOTE '*'
+ {
+ $$ = mm_strdup("force quote *");
+}
+| FORCE NOT NULL_P columnList
+ {
+ $$ = cat_str(2,mm_strdup("force not null"),$4);
+}
+| FORCE NULL_P columnList
+ {
+ $$ = cat_str(2,mm_strdup("force null"),$3);
+}
+| ENCODING ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("encoding"),$2);
+}
+;
+
+
+ opt_binary:
+ BINARY
+ {
+ $$ = mm_strdup("binary");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ copy_delimiter:
+ opt_using DELIMITERS ecpg_sconst
+ {
+ $$ = cat_str(3,$1,mm_strdup("delimiters"),$3);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_using:
+ USING
+ {
+ $$ = mm_strdup("using");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ copy_generic_opt_list:
+ copy_generic_opt_elem
+ {
+ $$ = $1;
+}
+| copy_generic_opt_list ',' copy_generic_opt_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ copy_generic_opt_elem:
+ ColLabel copy_generic_opt_arg
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ copy_generic_opt_arg:
+ opt_boolean_or_string
+ {
+ $$ = $1;
+}
+| NumericOnly
+ {
+ $$ = $1;
+}
+| '*'
+ {
+ $$ = mm_strdup("*");
+}
+| '(' copy_generic_opt_arg_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ copy_generic_opt_arg_list:
+ copy_generic_opt_arg_list_item
+ {
+ $$ = $1;
+}
+| copy_generic_opt_arg_list ',' copy_generic_opt_arg_list_item
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ copy_generic_opt_arg_list_item:
+ opt_boolean_or_string
+ {
+ $$ = $1;
+}
+;
+
+
+ CreateStmt:
+ CREATE OptTemp TABLE qualified_name '(' OptTableElementList ')' OptInherit OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
+ {
+ $$ = cat_str(13,mm_strdup("create"),$2,mm_strdup("table"),$4,mm_strdup("("),$6,mm_strdup(")"),$8,$9,$10,$11,$12,$13);
+}
+| CREATE OptTemp TABLE IF_P NOT EXISTS qualified_name '(' OptTableElementList ')' OptInherit OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
+ {
+ $$ = cat_str(13,mm_strdup("create"),$2,mm_strdup("table if not exists"),$7,mm_strdup("("),$9,mm_strdup(")"),$11,$12,$13,$14,$15,$16);
+}
+| CREATE OptTemp TABLE qualified_name OF any_name OptTypedTableElementList OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
+ {
+ $$ = cat_str(12,mm_strdup("create"),$2,mm_strdup("table"),$4,mm_strdup("of"),$6,$7,$8,$9,$10,$11,$12);
+}
+| CREATE OptTemp TABLE IF_P NOT EXISTS qualified_name OF any_name OptTypedTableElementList OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
+ {
+ $$ = cat_str(12,mm_strdup("create"),$2,mm_strdup("table if not exists"),$7,mm_strdup("of"),$9,$10,$11,$12,$13,$14,$15);
+}
+| CREATE OptTemp TABLE qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
+ {
+ $$ = cat_str(13,mm_strdup("create"),$2,mm_strdup("table"),$4,mm_strdup("partition of"),$7,$8,$9,$10,$11,$12,$13,$14);
+}
+| CREATE OptTemp TABLE IF_P NOT EXISTS qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
+ {
+ $$ = cat_str(13,mm_strdup("create"),$2,mm_strdup("table if not exists"),$7,mm_strdup("partition of"),$10,$11,$12,$13,$14,$15,$16,$17);
+}
+;
+
+
+ OptTemp:
+ TEMPORARY
+ {
+ $$ = mm_strdup("temporary");
+}
+| TEMP
+ {
+ $$ = mm_strdup("temp");
+}
+| LOCAL TEMPORARY
+ {
+ $$ = mm_strdup("local temporary");
+}
+| LOCAL TEMP
+ {
+ $$ = mm_strdup("local temp");
+}
+| GLOBAL TEMPORARY
+ {
+ $$ = mm_strdup("global temporary");
+}
+| GLOBAL TEMP
+ {
+ $$ = mm_strdup("global temp");
+}
+| UNLOGGED
+ {
+ $$ = mm_strdup("unlogged");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptTableElementList:
+ TableElementList
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptTypedTableElementList:
+ '(' TypedTableElementList ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ TableElementList:
+ TableElement
+ {
+ $$ = $1;
+}
+| TableElementList ',' TableElement
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ TypedTableElementList:
+ TypedTableElement
+ {
+ $$ = $1;
+}
+| TypedTableElementList ',' TypedTableElement
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ TableElement:
+ columnDef
+ {
+ $$ = $1;
+}
+| TableLikeClause
+ {
+ $$ = $1;
+}
+| TableConstraint
+ {
+ $$ = $1;
+}
+;
+
+
+ TypedTableElement:
+ columnOptions
+ {
+ $$ = $1;
+}
+| TableConstraint
+ {
+ $$ = $1;
+}
+;
+
+
+ columnDef:
+ ColId Typename opt_column_compression create_generic_options ColQualList
+ {
+ $$ = cat_str(5,$1,$2,$3,$4,$5);
+}
+;
+
+
+ columnOptions:
+ ColId ColQualList
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| ColId WITH OPTIONS ColQualList
+ {
+ $$ = cat_str(3,$1,mm_strdup("with options"),$4);
+}
+;
+
+
+ column_compression:
+ COMPRESSION ColId
+ {
+ $$ = cat_str(2,mm_strdup("compression"),$2);
+}
+| COMPRESSION DEFAULT
+ {
+ $$ = mm_strdup("compression default");
+}
+;
+
+
+ opt_column_compression:
+ column_compression
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ ColQualList:
+ ColQualList ColConstraint
+ {
+ $$ = cat_str(2,$1,$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ ColConstraint:
+ CONSTRAINT name ColConstraintElem
+ {
+ $$ = cat_str(3,mm_strdup("constraint"),$2,$3);
+}
+| ColConstraintElem
+ {
+ $$ = $1;
+}
+| ConstraintAttr
+ {
+ $$ = $1;
+}
+| COLLATE any_name
+ {
+ $$ = cat_str(2,mm_strdup("collate"),$2);
+}
+;
+
+
+ ColConstraintElem:
+ NOT NULL_P
+ {
+ $$ = mm_strdup("not null");
+}
+| NULL_P
+ {
+ $$ = mm_strdup("null");
+}
+| UNIQUE opt_unique_null_treatment opt_definition OptConsTableSpace
+ {
+ $$ = cat_str(4,mm_strdup("unique"),$2,$3,$4);
+}
+| PRIMARY KEY opt_definition OptConsTableSpace
+ {
+ $$ = cat_str(3,mm_strdup("primary key"),$3,$4);
+}
+| CHECK '(' a_expr ')' opt_no_inherit
+ {
+ $$ = cat_str(4,mm_strdup("check ("),$3,mm_strdup(")"),$5);
+}
+| DEFAULT b_expr
+ {
+ $$ = cat_str(2,mm_strdup("default"),$2);
+}
+| GENERATED generated_when AS IDENTITY_P OptParenthesizedSeqOptList
+ {
+ $$ = cat_str(4,mm_strdup("generated"),$2,mm_strdup("as identity"),$5);
+}
+| GENERATED generated_when AS '(' a_expr ')' STORED
+ {
+ $$ = cat_str(5,mm_strdup("generated"),$2,mm_strdup("as ("),$5,mm_strdup(") stored"));
+}
+| REFERENCES qualified_name opt_column_list key_match key_actions
+ {
+ $$ = cat_str(5,mm_strdup("references"),$2,$3,$4,$5);
+}
+;
+
+
+ opt_unique_null_treatment:
+ NULLS_P DISTINCT
+ {
+ $$ = mm_strdup("nulls distinct");
+}
+| NULLS_P NOT DISTINCT
+ {
+ $$ = mm_strdup("nulls not distinct");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ generated_when:
+ ALWAYS
+ {
+ $$ = mm_strdup("always");
+}
+| BY DEFAULT
+ {
+ $$ = mm_strdup("by default");
+}
+;
+
+
+ ConstraintAttr:
+ DEFERRABLE
+ {
+ $$ = mm_strdup("deferrable");
+}
+| NOT DEFERRABLE
+ {
+ $$ = mm_strdup("not deferrable");
+}
+| INITIALLY DEFERRED
+ {
+ $$ = mm_strdup("initially deferred");
+}
+| INITIALLY IMMEDIATE
+ {
+ $$ = mm_strdup("initially immediate");
+}
+;
+
+
+ TableLikeClause:
+ LIKE qualified_name TableLikeOptionList
+ {
+ $$ = cat_str(3,mm_strdup("like"),$2,$3);
+}
+;
+
+
+ TableLikeOptionList:
+ TableLikeOptionList INCLUDING TableLikeOption
+ {
+ $$ = cat_str(3,$1,mm_strdup("including"),$3);
+}
+| TableLikeOptionList EXCLUDING TableLikeOption
+ {
+ $$ = cat_str(3,$1,mm_strdup("excluding"),$3);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ TableLikeOption:
+ COMMENTS
+ {
+ $$ = mm_strdup("comments");
+}
+| COMPRESSION
+ {
+ $$ = mm_strdup("compression");
+}
+| CONSTRAINTS
+ {
+ $$ = mm_strdup("constraints");
+}
+| DEFAULTS
+ {
+ $$ = mm_strdup("defaults");
+}
+| IDENTITY_P
+ {
+ $$ = mm_strdup("identity");
+}
+| GENERATED
+ {
+ $$ = mm_strdup("generated");
+}
+| INDEXES
+ {
+ $$ = mm_strdup("indexes");
+}
+| STATISTICS
+ {
+ $$ = mm_strdup("statistics");
+}
+| STORAGE
+ {
+ $$ = mm_strdup("storage");
+}
+| ALL
+ {
+ $$ = mm_strdup("all");
+}
+;
+
+
+ TableConstraint:
+ CONSTRAINT name ConstraintElem
+ {
+ $$ = cat_str(3,mm_strdup("constraint"),$2,$3);
+}
+| ConstraintElem
+ {
+ $$ = $1;
+}
+;
+
+
+ ConstraintElem:
+ CHECK '(' a_expr ')' ConstraintAttributeSpec
+ {
+ $$ = cat_str(4,mm_strdup("check ("),$3,mm_strdup(")"),$5);
+}
+| UNIQUE opt_unique_null_treatment '(' columnList ')' opt_c_include opt_definition OptConsTableSpace ConstraintAttributeSpec
+ {
+ $$ = cat_str(9,mm_strdup("unique"),$2,mm_strdup("("),$4,mm_strdup(")"),$6,$7,$8,$9);
+}
+| UNIQUE ExistingIndex ConstraintAttributeSpec
+ {
+ $$ = cat_str(3,mm_strdup("unique"),$2,$3);
+}
+| PRIMARY KEY '(' columnList ')' opt_c_include opt_definition OptConsTableSpace ConstraintAttributeSpec
+ {
+ $$ = cat_str(7,mm_strdup("primary key ("),$4,mm_strdup(")"),$6,$7,$8,$9);
+}
+| PRIMARY KEY ExistingIndex ConstraintAttributeSpec
+ {
+ $$ = cat_str(3,mm_strdup("primary key"),$3,$4);
+}
+| EXCLUDE access_method_clause '(' ExclusionConstraintList ')' opt_c_include opt_definition OptConsTableSpace OptWhereClause ConstraintAttributeSpec
+ {
+ $$ = cat_str(10,mm_strdup("exclude"),$2,mm_strdup("("),$4,mm_strdup(")"),$6,$7,$8,$9,$10);
+}
+| FOREIGN KEY '(' columnList ')' REFERENCES qualified_name opt_column_list key_match key_actions ConstraintAttributeSpec
+ {
+ $$ = cat_str(8,mm_strdup("foreign key ("),$4,mm_strdup(") references"),$7,$8,$9,$10,$11);
+}
+;
+
+
+ opt_no_inherit:
+ NO INHERIT
+ {
+ $$ = mm_strdup("no inherit");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_column_list:
+ '(' columnList ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ columnList:
+ columnElem
+ {
+ $$ = $1;
+}
+| columnList ',' columnElem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ columnElem:
+ ColId
+ {
+ $$ = $1;
+}
+;
+
+
+ opt_c_include:
+ INCLUDE '(' columnList ')'
+ {
+ $$ = cat_str(3,mm_strdup("include ("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ key_match:
+ MATCH FULL
+ {
+ $$ = mm_strdup("match full");
+}
+| MATCH PARTIAL
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = mm_strdup("match partial");
+}
+| MATCH SIMPLE
+ {
+ $$ = mm_strdup("match simple");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ ExclusionConstraintList:
+ ExclusionConstraintElem
+ {
+ $$ = $1;
+}
+| ExclusionConstraintList ',' ExclusionConstraintElem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ ExclusionConstraintElem:
+ index_elem WITH any_operator
+ {
+ $$ = cat_str(3,$1,mm_strdup("with"),$3);
+}
+| index_elem WITH OPERATOR '(' any_operator ')'
+ {
+ $$ = cat_str(4,$1,mm_strdup("with operator ("),$5,mm_strdup(")"));
+}
+;
+
+
+ OptWhereClause:
+ WHERE '(' a_expr ')'
+ {
+ $$ = cat_str(3,mm_strdup("where ("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ key_actions:
+ key_update
+ {
+ $$ = $1;
+}
+| key_delete
+ {
+ $$ = $1;
+}
+| key_update key_delete
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| key_delete key_update
+ {
+ $$ = cat_str(2,$1,$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ key_update:
+ ON UPDATE key_action
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(2,mm_strdup("on update"),$3);
+}
+;
+
+
+ key_delete:
+ ON DELETE_P key_action
+ {
+ $$ = cat_str(2,mm_strdup("on delete"),$3);
+}
+;
+
+
+ key_action:
+ NO ACTION
+ {
+ $$ = mm_strdup("no action");
+}
+| RESTRICT
+ {
+ $$ = mm_strdup("restrict");
+}
+| CASCADE
+ {
+ $$ = mm_strdup("cascade");
+}
+| SET NULL_P opt_column_list
+ {
+ $$ = cat_str(2,mm_strdup("set null"),$3);
+}
+| SET DEFAULT opt_column_list
+ {
+ $$ = cat_str(2,mm_strdup("set default"),$3);
+}
+;
+
+
+ OptInherit:
+ INHERITS '(' qualified_name_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("inherits ("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptPartitionSpec:
+ PartitionSpec
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ PartitionSpec:
+ PARTITION BY ColId '(' part_params ')'
+ {
+ $$ = cat_str(5,mm_strdup("partition by"),$3,mm_strdup("("),$5,mm_strdup(")"));
+}
+;
+
+
+ part_params:
+ part_elem
+ {
+ $$ = $1;
+}
+| part_params ',' part_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ part_elem:
+ ColId opt_collate opt_class
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| func_expr_windowless opt_collate opt_class
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| '(' a_expr ')' opt_collate opt_class
+ {
+ $$ = cat_str(5,mm_strdup("("),$2,mm_strdup(")"),$4,$5);
+}
+;
+
+
+ table_access_method_clause:
+ USING name
+ {
+ $$ = cat_str(2,mm_strdup("using"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptWith:
+ WITH reloptions
+ {
+ $$ = cat_str(2,mm_strdup("with"),$2);
+}
+| WITHOUT OIDS
+ {
+ $$ = mm_strdup("without oids");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OnCommitOption:
+ ON COMMIT DROP
+ {
+ $$ = mm_strdup("on commit drop");
+}
+| ON COMMIT DELETE_P ROWS
+ {
+ $$ = mm_strdup("on commit delete rows");
+}
+| ON COMMIT PRESERVE ROWS
+ {
+ $$ = mm_strdup("on commit preserve rows");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptTableSpace:
+ TABLESPACE name
+ {
+ $$ = cat_str(2,mm_strdup("tablespace"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptConsTableSpace:
+ USING INDEX TABLESPACE name
+ {
+ $$ = cat_str(2,mm_strdup("using index tablespace"),$4);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ ExistingIndex:
+ USING INDEX name
+ {
+ $$ = cat_str(2,mm_strdup("using index"),$3);
+}
+;
+
+
+ CreateStatsStmt:
+ CREATE STATISTICS any_name opt_name_list ON stats_params FROM from_list
+ {
+ $$ = cat_str(7,mm_strdup("create statistics"),$3,$4,mm_strdup("on"),$6,mm_strdup("from"),$8);
+}
+| CREATE STATISTICS IF_P NOT EXISTS any_name opt_name_list ON stats_params FROM from_list
+ {
+ $$ = cat_str(7,mm_strdup("create statistics if not exists"),$6,$7,mm_strdup("on"),$9,mm_strdup("from"),$11);
+}
+;
+
+
+ stats_params:
+ stats_param
+ {
+ $$ = $1;
+}
+| stats_params ',' stats_param
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ stats_param:
+ ColId
+ {
+ $$ = $1;
+}
+| func_expr_windowless
+ {
+ $$ = $1;
+}
+| '(' a_expr ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+;
+
+
+ AlterStatsStmt:
+ ALTER STATISTICS any_name SET STATISTICS SignedIconst
+ {
+ $$ = cat_str(4,mm_strdup("alter statistics"),$3,mm_strdup("set statistics"),$6);
+}
+| ALTER STATISTICS IF_P EXISTS any_name SET STATISTICS SignedIconst
+ {
+ $$ = cat_str(4,mm_strdup("alter statistics if exists"),$5,mm_strdup("set statistics"),$8);
+}
+;
+
+
+ create_as_target:
+ qualified_name opt_column_list table_access_method_clause OptWith OnCommitOption OptTableSpace
+ {
+ $$ = cat_str(6,$1,$2,$3,$4,$5,$6);
+}
+;
+
+
+ opt_with_data:
+ WITH DATA_P
+ {
+ $$ = mm_strdup("with data");
+}
+| WITH NO DATA_P
+ {
+ $$ = mm_strdup("with no data");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ CreateMatViewStmt:
+ CREATE OptNoLog MATERIALIZED VIEW create_mv_target AS SelectStmt opt_with_data
+ {
+ $$ = cat_str(7,mm_strdup("create"),$2,mm_strdup("materialized view"),$5,mm_strdup("as"),$7,$8);
+}
+| CREATE OptNoLog MATERIALIZED VIEW IF_P NOT EXISTS create_mv_target AS SelectStmt opt_with_data
+ {
+ $$ = cat_str(7,mm_strdup("create"),$2,mm_strdup("materialized view if not exists"),$8,mm_strdup("as"),$10,$11);
+}
+;
+
+
+ create_mv_target:
+ qualified_name opt_column_list table_access_method_clause opt_reloptions OptTableSpace
+ {
+ $$ = cat_str(5,$1,$2,$3,$4,$5);
+}
+;
+
+
+ OptNoLog:
+ UNLOGGED
+ {
+ $$ = mm_strdup("unlogged");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ RefreshMatViewStmt:
+ REFRESH MATERIALIZED VIEW opt_concurrently qualified_name opt_with_data
+ {
+ $$ = cat_str(4,mm_strdup("refresh materialized view"),$4,$5,$6);
+}
+;
+
+
+ CreateSeqStmt:
+ CREATE OptTemp SEQUENCE qualified_name OptSeqOptList
+ {
+ $$ = cat_str(5,mm_strdup("create"),$2,mm_strdup("sequence"),$4,$5);
+}
+| CREATE OptTemp SEQUENCE IF_P NOT EXISTS qualified_name OptSeqOptList
+ {
+ $$ = cat_str(5,mm_strdup("create"),$2,mm_strdup("sequence if not exists"),$7,$8);
+}
+;
+
+
+ AlterSeqStmt:
+ ALTER SEQUENCE qualified_name SeqOptList
+ {
+ $$ = cat_str(3,mm_strdup("alter sequence"),$3,$4);
+}
+| ALTER SEQUENCE IF_P EXISTS qualified_name SeqOptList
+ {
+ $$ = cat_str(3,mm_strdup("alter sequence if exists"),$5,$6);
+}
+;
+
+
+ OptSeqOptList:
+ SeqOptList
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptParenthesizedSeqOptList:
+ '(' SeqOptList ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ SeqOptList:
+ SeqOptElem
+ {
+ $$ = $1;
+}
+| SeqOptList SeqOptElem
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ SeqOptElem:
+ AS SimpleTypename
+ {
+ $$ = cat_str(2,mm_strdup("as"),$2);
+}
+| CACHE NumericOnly
+ {
+ $$ = cat_str(2,mm_strdup("cache"),$2);
+}
+| CYCLE
+ {
+ $$ = mm_strdup("cycle");
+}
+| NO CYCLE
+ {
+ $$ = mm_strdup("no cycle");
+}
+| INCREMENT opt_by NumericOnly
+ {
+ $$ = cat_str(3,mm_strdup("increment"),$2,$3);
+}
+| MAXVALUE NumericOnly
+ {
+ $$ = cat_str(2,mm_strdup("maxvalue"),$2);
+}
+| MINVALUE NumericOnly
+ {
+ $$ = cat_str(2,mm_strdup("minvalue"),$2);
+}
+| NO MAXVALUE
+ {
+ $$ = mm_strdup("no maxvalue");
+}
+| NO MINVALUE
+ {
+ $$ = mm_strdup("no minvalue");
+}
+| OWNED BY any_name
+ {
+ $$ = cat_str(2,mm_strdup("owned by"),$3);
+}
+| SEQUENCE NAME_P any_name
+ {
+ $$ = cat_str(2,mm_strdup("sequence name"),$3);
+}
+| START opt_with NumericOnly
+ {
+ $$ = cat_str(3,mm_strdup("start"),$2,$3);
+}
+| RESTART
+ {
+ $$ = mm_strdup("restart");
+}
+| RESTART opt_with NumericOnly
+ {
+ $$ = cat_str(3,mm_strdup("restart"),$2,$3);
+}
+;
+
+
+ opt_by:
+ BY
+ {
+ $$ = mm_strdup("by");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ NumericOnly:
+ ecpg_fconst
+ {
+ $$ = $1;
+}
+| '+' ecpg_fconst
+ {
+ $$ = cat_str(2,mm_strdup("+"),$2);
+}
+| '-' ecpg_fconst
+ {
+ $$ = cat_str(2,mm_strdup("-"),$2);
+}
+| SignedIconst
+ {
+ $$ = $1;
+}
+;
+
+
+ NumericOnly_list:
+ NumericOnly
+ {
+ $$ = $1;
+}
+| NumericOnly_list ',' NumericOnly
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ CreatePLangStmt:
+ CREATE opt_or_replace opt_trusted opt_procedural LANGUAGE name
+ {
+ $$ = cat_str(6,mm_strdup("create"),$2,$3,$4,mm_strdup("language"),$6);
+}
+| CREATE opt_or_replace opt_trusted opt_procedural LANGUAGE name HANDLER handler_name opt_inline_handler opt_validator
+ {
+ $$ = cat_str(10,mm_strdup("create"),$2,$3,$4,mm_strdup("language"),$6,mm_strdup("handler"),$8,$9,$10);
+}
+;
+
+
+ opt_trusted:
+ TRUSTED
+ {
+ $$ = mm_strdup("trusted");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ handler_name:
+ name
+ {
+ $$ = $1;
+}
+| name attrs
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ opt_inline_handler:
+ INLINE_P handler_name
+ {
+ $$ = cat_str(2,mm_strdup("inline"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ validator_clause:
+ VALIDATOR handler_name
+ {
+ $$ = cat_str(2,mm_strdup("validator"),$2);
+}
+| NO VALIDATOR
+ {
+ $$ = mm_strdup("no validator");
+}
+;
+
+
+ opt_validator:
+ validator_clause
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_procedural:
+ PROCEDURAL
+ {
+ $$ = mm_strdup("procedural");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ CreateTableSpaceStmt:
+ CREATE TABLESPACE name OptTableSpaceOwner LOCATION ecpg_sconst opt_reloptions
+ {
+ $$ = cat_str(6,mm_strdup("create tablespace"),$3,$4,mm_strdup("location"),$6,$7);
+}
+;
+
+
+ OptTableSpaceOwner:
+ OWNER RoleSpec
+ {
+ $$ = cat_str(2,mm_strdup("owner"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ DropTableSpaceStmt:
+ DROP TABLESPACE name
+ {
+ $$ = cat_str(2,mm_strdup("drop tablespace"),$3);
+}
+| DROP TABLESPACE IF_P EXISTS name
+ {
+ $$ = cat_str(2,mm_strdup("drop tablespace if exists"),$5);
+}
+;
+
+
+ CreateExtensionStmt:
+ CREATE EXTENSION name opt_with create_extension_opt_list
+ {
+ $$ = cat_str(4,mm_strdup("create extension"),$3,$4,$5);
+}
+| CREATE EXTENSION IF_P NOT EXISTS name opt_with create_extension_opt_list
+ {
+ $$ = cat_str(4,mm_strdup("create extension if not exists"),$6,$7,$8);
+}
+;
+
+
+ create_extension_opt_list:
+ create_extension_opt_list create_extension_opt_item
+ {
+ $$ = cat_str(2,$1,$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ create_extension_opt_item:
+ SCHEMA name
+ {
+ $$ = cat_str(2,mm_strdup("schema"),$2);
+}
+| VERSION_P NonReservedWord_or_Sconst
+ {
+ $$ = cat_str(2,mm_strdup("version"),$2);
+}
+| FROM NonReservedWord_or_Sconst
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(2,mm_strdup("from"),$2);
+}
+| CASCADE
+ {
+ $$ = mm_strdup("cascade");
+}
+;
+
+
+ AlterExtensionStmt:
+ ALTER EXTENSION name UPDATE alter_extension_opt_list
+ {
+ $$ = cat_str(4,mm_strdup("alter extension"),$3,mm_strdup("update"),$5);
+}
+;
+
+
+ alter_extension_opt_list:
+ alter_extension_opt_list alter_extension_opt_item
+ {
+ $$ = cat_str(2,$1,$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ alter_extension_opt_item:
+ TO NonReservedWord_or_Sconst
+ {
+ $$ = cat_str(2,mm_strdup("to"),$2);
+}
+;
+
+
+ AlterExtensionContentsStmt:
+ ALTER EXTENSION name add_drop object_type_name name
+ {
+ $$ = cat_str(5,mm_strdup("alter extension"),$3,$4,$5,$6);
+}
+| ALTER EXTENSION name add_drop object_type_any_name any_name
+ {
+ $$ = cat_str(5,mm_strdup("alter extension"),$3,$4,$5,$6);
+}
+| ALTER EXTENSION name add_drop AGGREGATE aggregate_with_argtypes
+ {
+ $$ = cat_str(5,mm_strdup("alter extension"),$3,$4,mm_strdup("aggregate"),$6);
+}
+| ALTER EXTENSION name add_drop CAST '(' Typename AS Typename ')'
+ {
+ $$ = cat_str(8,mm_strdup("alter extension"),$3,$4,mm_strdup("cast ("),$7,mm_strdup("as"),$9,mm_strdup(")"));
+}
+| ALTER EXTENSION name add_drop DOMAIN_P Typename
+ {
+ $$ = cat_str(5,mm_strdup("alter extension"),$3,$4,mm_strdup("domain"),$6);
+}
+| ALTER EXTENSION name add_drop FUNCTION function_with_argtypes
+ {
+ $$ = cat_str(5,mm_strdup("alter extension"),$3,$4,mm_strdup("function"),$6);
+}
+| ALTER EXTENSION name add_drop OPERATOR operator_with_argtypes
+ {
+ $$ = cat_str(5,mm_strdup("alter extension"),$3,$4,mm_strdup("operator"),$6);
+}
+| ALTER EXTENSION name add_drop OPERATOR CLASS any_name USING name
+ {
+ $$ = cat_str(7,mm_strdup("alter extension"),$3,$4,mm_strdup("operator class"),$7,mm_strdup("using"),$9);
+}
+| ALTER EXTENSION name add_drop OPERATOR FAMILY any_name USING name
+ {
+ $$ = cat_str(7,mm_strdup("alter extension"),$3,$4,mm_strdup("operator family"),$7,mm_strdup("using"),$9);
+}
+| ALTER EXTENSION name add_drop PROCEDURE function_with_argtypes
+ {
+ $$ = cat_str(5,mm_strdup("alter extension"),$3,$4,mm_strdup("procedure"),$6);
+}
+| ALTER EXTENSION name add_drop ROUTINE function_with_argtypes
+ {
+ $$ = cat_str(5,mm_strdup("alter extension"),$3,$4,mm_strdup("routine"),$6);
+}
+| ALTER EXTENSION name add_drop TRANSFORM FOR Typename LANGUAGE name
+ {
+ $$ = cat_str(7,mm_strdup("alter extension"),$3,$4,mm_strdup("transform for"),$7,mm_strdup("language"),$9);
+}
+| ALTER EXTENSION name add_drop TYPE_P Typename
+ {
+ $$ = cat_str(5,mm_strdup("alter extension"),$3,$4,mm_strdup("type"),$6);
+}
+;
+
+
+ CreateFdwStmt:
+ CREATE FOREIGN DATA_P WRAPPER name opt_fdw_options create_generic_options
+ {
+ $$ = cat_str(4,mm_strdup("create foreign data wrapper"),$5,$6,$7);
+}
+;
+
+
+ fdw_option:
+ HANDLER handler_name
+ {
+ $$ = cat_str(2,mm_strdup("handler"),$2);
+}
+| NO HANDLER
+ {
+ $$ = mm_strdup("no handler");
+}
+| VALIDATOR handler_name
+ {
+ $$ = cat_str(2,mm_strdup("validator"),$2);
+}
+| NO VALIDATOR
+ {
+ $$ = mm_strdup("no validator");
+}
+;
+
+
+ fdw_options:
+ fdw_option
+ {
+ $$ = $1;
+}
+| fdw_options fdw_option
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ opt_fdw_options:
+ fdw_options
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ AlterFdwStmt:
+ ALTER FOREIGN DATA_P WRAPPER name opt_fdw_options alter_generic_options
+ {
+ $$ = cat_str(4,mm_strdup("alter foreign data wrapper"),$5,$6,$7);
+}
+| ALTER FOREIGN DATA_P WRAPPER name fdw_options
+ {
+ $$ = cat_str(3,mm_strdup("alter foreign data wrapper"),$5,$6);
+}
+;
+
+
+ create_generic_options:
+ OPTIONS '(' generic_option_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("options ("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ generic_option_list:
+ generic_option_elem
+ {
+ $$ = $1;
+}
+| generic_option_list ',' generic_option_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ alter_generic_options:
+ OPTIONS '(' alter_generic_option_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("options ("),$3,mm_strdup(")"));
+}
+;
+
+
+ alter_generic_option_list:
+ alter_generic_option_elem
+ {
+ $$ = $1;
+}
+| alter_generic_option_list ',' alter_generic_option_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ alter_generic_option_elem:
+ generic_option_elem
+ {
+ $$ = $1;
+}
+| SET generic_option_elem
+ {
+ $$ = cat_str(2,mm_strdup("set"),$2);
+}
+| ADD_P generic_option_elem
+ {
+ $$ = cat_str(2,mm_strdup("add"),$2);
+}
+| DROP generic_option_name
+ {
+ $$ = cat_str(2,mm_strdup("drop"),$2);
+}
+;
+
+
+ generic_option_elem:
+ generic_option_name generic_option_arg
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ generic_option_name:
+ ColLabel
+ {
+ $$ = $1;
+}
+;
+
+
+ generic_option_arg:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+;
+
+
+ CreateForeignServerStmt:
+ CREATE SERVER name opt_type opt_foreign_server_version FOREIGN DATA_P WRAPPER name create_generic_options
+ {
+ $$ = cat_str(7,mm_strdup("create server"),$3,$4,$5,mm_strdup("foreign data wrapper"),$9,$10);
+}
+| CREATE SERVER IF_P NOT EXISTS name opt_type opt_foreign_server_version FOREIGN DATA_P WRAPPER name create_generic_options
+ {
+ $$ = cat_str(7,mm_strdup("create server if not exists"),$6,$7,$8,mm_strdup("foreign data wrapper"),$12,$13);
+}
+;
+
+
+ opt_type:
+ TYPE_P ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("type"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ foreign_server_version:
+ VERSION_P ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("version"),$2);
+}
+| VERSION_P NULL_P
+ {
+ $$ = mm_strdup("version null");
+}
+;
+
+
+ opt_foreign_server_version:
+ foreign_server_version
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ AlterForeignServerStmt:
+ ALTER SERVER name foreign_server_version alter_generic_options
+ {
+ $$ = cat_str(4,mm_strdup("alter server"),$3,$4,$5);
+}
+| ALTER SERVER name foreign_server_version
+ {
+ $$ = cat_str(3,mm_strdup("alter server"),$3,$4);
+}
+| ALTER SERVER name alter_generic_options
+ {
+ $$ = cat_str(3,mm_strdup("alter server"),$3,$4);
+}
+;
+
+
+ CreateForeignTableStmt:
+ CREATE FOREIGN TABLE qualified_name '(' OptTableElementList ')' OptInherit SERVER name create_generic_options
+ {
+ $$ = cat_str(9,mm_strdup("create foreign table"),$4,mm_strdup("("),$6,mm_strdup(")"),$8,mm_strdup("server"),$10,$11);
+}
+| CREATE FOREIGN TABLE IF_P NOT EXISTS qualified_name '(' OptTableElementList ')' OptInherit SERVER name create_generic_options
+ {
+ $$ = cat_str(9,mm_strdup("create foreign table if not exists"),$7,mm_strdup("("),$9,mm_strdup(")"),$11,mm_strdup("server"),$13,$14);
+}
+| CREATE FOREIGN TABLE qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec SERVER name create_generic_options
+ {
+ $$ = cat_str(9,mm_strdup("create foreign table"),$4,mm_strdup("partition of"),$7,$8,$9,mm_strdup("server"),$11,$12);
+}
+| CREATE FOREIGN TABLE IF_P NOT EXISTS qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec SERVER name create_generic_options
+ {
+ $$ = cat_str(9,mm_strdup("create foreign table if not exists"),$7,mm_strdup("partition of"),$10,$11,$12,mm_strdup("server"),$14,$15);
+}
+;
+
+
+ ImportForeignSchemaStmt:
+ IMPORT_P FOREIGN SCHEMA name import_qualification FROM SERVER name INTO name create_generic_options
+ {
+ $$ = cat_str(8,mm_strdup("import foreign schema"),$4,$5,mm_strdup("from server"),$8,mm_strdup("into"),$10,$11);
+}
+;
+
+
+ import_qualification_type:
+ LIMIT TO
+ {
+ $$ = mm_strdup("limit to");
+}
+| EXCEPT
+ {
+ $$ = mm_strdup("except");
+}
+;
+
+
+ import_qualification:
+ import_qualification_type '(' relation_expr_list ')'
+ {
+ $$ = cat_str(4,$1,mm_strdup("("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ CreateUserMappingStmt:
+ CREATE USER MAPPING FOR auth_ident SERVER name create_generic_options
+ {
+ $$ = cat_str(5,mm_strdup("create user mapping for"),$5,mm_strdup("server"),$7,$8);
+}
+| CREATE USER MAPPING IF_P NOT EXISTS FOR auth_ident SERVER name create_generic_options
+ {
+ $$ = cat_str(5,mm_strdup("create user mapping if not exists for"),$8,mm_strdup("server"),$10,$11);
+}
+;
+
+
+ auth_ident:
+ RoleSpec
+ {
+ $$ = $1;
+}
+| USER
+ {
+ $$ = mm_strdup("user");
+}
+;
+
+
+ DropUserMappingStmt:
+ DROP USER MAPPING FOR auth_ident SERVER name
+ {
+ $$ = cat_str(4,mm_strdup("drop user mapping for"),$5,mm_strdup("server"),$7);
+}
+| DROP USER MAPPING IF_P EXISTS FOR auth_ident SERVER name
+ {
+ $$ = cat_str(4,mm_strdup("drop user mapping if exists for"),$7,mm_strdup("server"),$9);
+}
+;
+
+
+ AlterUserMappingStmt:
+ ALTER USER MAPPING FOR auth_ident SERVER name alter_generic_options
+ {
+ $$ = cat_str(5,mm_strdup("alter user mapping for"),$5,mm_strdup("server"),$7,$8);
+}
+;
+
+
+ CreatePolicyStmt:
+ CREATE POLICY name ON qualified_name RowSecurityDefaultPermissive RowSecurityDefaultForCmd RowSecurityDefaultToRole RowSecurityOptionalExpr RowSecurityOptionalWithCheck
+ {
+ $$ = cat_str(9,mm_strdup("create policy"),$3,mm_strdup("on"),$5,$6,$7,$8,$9,$10);
+}
+;
+
+
+ AlterPolicyStmt:
+ ALTER POLICY name ON qualified_name RowSecurityOptionalToRole RowSecurityOptionalExpr RowSecurityOptionalWithCheck
+ {
+ $$ = cat_str(7,mm_strdup("alter policy"),$3,mm_strdup("on"),$5,$6,$7,$8);
+}
+;
+
+
+ RowSecurityOptionalExpr:
+ USING '(' a_expr ')'
+ {
+ $$ = cat_str(3,mm_strdup("using ("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ RowSecurityOptionalWithCheck:
+ WITH CHECK '(' a_expr ')'
+ {
+ $$ = cat_str(3,mm_strdup("with check ("),$4,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ RowSecurityDefaultToRole:
+ TO role_list
+ {
+ $$ = cat_str(2,mm_strdup("to"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ RowSecurityOptionalToRole:
+ TO role_list
+ {
+ $$ = cat_str(2,mm_strdup("to"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ RowSecurityDefaultPermissive:
+ AS ecpg_ident
+ {
+ $$ = cat_str(2,mm_strdup("as"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ RowSecurityDefaultForCmd:
+ FOR row_security_cmd
+ {
+ $$ = cat_str(2,mm_strdup("for"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ row_security_cmd:
+ ALL
+ {
+ $$ = mm_strdup("all");
+}
+| SELECT
+ {
+ $$ = mm_strdup("select");
+}
+| INSERT
+ {
+ $$ = mm_strdup("insert");
+}
+| UPDATE
+ {
+ $$ = mm_strdup("update");
+}
+| DELETE_P
+ {
+ $$ = mm_strdup("delete");
+}
+;
+
+
+ CreateAmStmt:
+ CREATE ACCESS METHOD name TYPE_P am_type HANDLER handler_name
+ {
+ $$ = cat_str(6,mm_strdup("create access method"),$4,mm_strdup("type"),$6,mm_strdup("handler"),$8);
+}
+;
+
+
+ am_type:
+ INDEX
+ {
+ $$ = mm_strdup("index");
+}
+| TABLE
+ {
+ $$ = mm_strdup("table");
+}
+;
+
+
+ CreateTrigStmt:
+ CREATE opt_or_replace TRIGGER name TriggerActionTime TriggerEvents ON qualified_name TriggerReferencing TriggerForSpec TriggerWhen EXECUTE FUNCTION_or_PROCEDURE func_name '(' TriggerFuncArgs ')'
+ {
+ $$ = cat_str(17,mm_strdup("create"),$2,mm_strdup("trigger"),$4,$5,$6,mm_strdup("on"),$8,$9,$10,$11,mm_strdup("execute"),$13,$14,mm_strdup("("),$16,mm_strdup(")"));
+}
+| CREATE opt_or_replace CONSTRAINT TRIGGER name AFTER TriggerEvents ON qualified_name OptConstrFromTable ConstraintAttributeSpec FOR EACH ROW TriggerWhen EXECUTE FUNCTION_or_PROCEDURE func_name '(' TriggerFuncArgs ')'
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(18,mm_strdup("create"),$2,mm_strdup("constraint trigger"),$5,mm_strdup("after"),$7,mm_strdup("on"),$9,$10,$11,mm_strdup("for each row"),$15,mm_strdup("execute"),$17,$18,mm_strdup("("),$20,mm_strdup(")"));
+}
+;
+
+
+ TriggerActionTime:
+ BEFORE
+ {
+ $$ = mm_strdup("before");
+}
+| AFTER
+ {
+ $$ = mm_strdup("after");
+}
+| INSTEAD OF
+ {
+ $$ = mm_strdup("instead of");
+}
+;
+
+
+ TriggerEvents:
+ TriggerOneEvent
+ {
+ $$ = $1;
+}
+| TriggerEvents OR TriggerOneEvent
+ {
+ $$ = cat_str(3,$1,mm_strdup("or"),$3);
+}
+;
+
+
+ TriggerOneEvent:
+ INSERT
+ {
+ $$ = mm_strdup("insert");
+}
+| DELETE_P
+ {
+ $$ = mm_strdup("delete");
+}
+| UPDATE
+ {
+ $$ = mm_strdup("update");
+}
+| UPDATE OF columnList
+ {
+ $$ = cat_str(2,mm_strdup("update of"),$3);
+}
+| TRUNCATE
+ {
+ $$ = mm_strdup("truncate");
+}
+;
+
+
+ TriggerReferencing:
+ REFERENCING TriggerTransitions
+ {
+ $$ = cat_str(2,mm_strdup("referencing"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ TriggerTransitions:
+ TriggerTransition
+ {
+ $$ = $1;
+}
+| TriggerTransitions TriggerTransition
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ TriggerTransition:
+ TransitionOldOrNew TransitionRowOrTable opt_as TransitionRelName
+ {
+ $$ = cat_str(4,$1,$2,$3,$4);
+}
+;
+
+
+ TransitionOldOrNew:
+ NEW
+ {
+ $$ = mm_strdup("new");
+}
+| OLD
+ {
+ $$ = mm_strdup("old");
+}
+;
+
+
+ TransitionRowOrTable:
+ TABLE
+ {
+ $$ = mm_strdup("table");
+}
+| ROW
+ {
+ $$ = mm_strdup("row");
+}
+;
+
+
+ TransitionRelName:
+ ColId
+ {
+ $$ = $1;
+}
+;
+
+
+ TriggerForSpec:
+ FOR TriggerForOptEach TriggerForType
+ {
+ $$ = cat_str(3,mm_strdup("for"),$2,$3);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ TriggerForOptEach:
+ EACH
+ {
+ $$ = mm_strdup("each");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ TriggerForType:
+ ROW
+ {
+ $$ = mm_strdup("row");
+}
+| STATEMENT
+ {
+ $$ = mm_strdup("statement");
+}
+;
+
+
+ TriggerWhen:
+ WHEN '(' a_expr ')'
+ {
+ $$ = cat_str(3,mm_strdup("when ("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ FUNCTION_or_PROCEDURE:
+ FUNCTION
+ {
+ $$ = mm_strdup("function");
+}
+| PROCEDURE
+ {
+ $$ = mm_strdup("procedure");
+}
+;
+
+
+ TriggerFuncArgs:
+ TriggerFuncArg
+ {
+ $$ = $1;
+}
+| TriggerFuncArgs ',' TriggerFuncArg
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ TriggerFuncArg:
+ Iconst
+ {
+ $$ = $1;
+}
+| ecpg_fconst
+ {
+ $$ = $1;
+}
+| ecpg_sconst
+ {
+ $$ = $1;
+}
+| ColLabel
+ {
+ $$ = $1;
+}
+;
+
+
+ OptConstrFromTable:
+ FROM qualified_name
+ {
+ $$ = cat_str(2,mm_strdup("from"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ ConstraintAttributeSpec:
+
+ {
+ $$=EMPTY; }
+| ConstraintAttributeSpec ConstraintAttributeElem
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ ConstraintAttributeElem:
+ NOT DEFERRABLE
+ {
+ $$ = mm_strdup("not deferrable");
+}
+| DEFERRABLE
+ {
+ $$ = mm_strdup("deferrable");
+}
+| INITIALLY IMMEDIATE
+ {
+ $$ = mm_strdup("initially immediate");
+}
+| INITIALLY DEFERRED
+ {
+ $$ = mm_strdup("initially deferred");
+}
+| NOT VALID
+ {
+ $$ = mm_strdup("not valid");
+}
+| NO INHERIT
+ {
+ $$ = mm_strdup("no inherit");
+}
+;
+
+
+ CreateEventTrigStmt:
+ CREATE EVENT TRIGGER name ON ColLabel EXECUTE FUNCTION_or_PROCEDURE func_name '(' ')'
+ {
+ $$ = cat_str(8,mm_strdup("create event trigger"),$4,mm_strdup("on"),$6,mm_strdup("execute"),$8,$9,mm_strdup("( )"));
+}
+| CREATE EVENT TRIGGER name ON ColLabel WHEN event_trigger_when_list EXECUTE FUNCTION_or_PROCEDURE func_name '(' ')'
+ {
+ $$ = cat_str(10,mm_strdup("create event trigger"),$4,mm_strdup("on"),$6,mm_strdup("when"),$8,mm_strdup("execute"),$10,$11,mm_strdup("( )"));
+}
+;
+
+
+ event_trigger_when_list:
+ event_trigger_when_item
+ {
+ $$ = $1;
+}
+| event_trigger_when_list AND event_trigger_when_item
+ {
+ $$ = cat_str(3,$1,mm_strdup("and"),$3);
+}
+;
+
+
+ event_trigger_when_item:
+ ColId IN_P '(' event_trigger_value_list ')'
+ {
+ $$ = cat_str(4,$1,mm_strdup("in ("),$4,mm_strdup(")"));
+}
+;
+
+
+ event_trigger_value_list:
+ SCONST
+ {
+ $$ = mm_strdup("sconst");
+}
+| event_trigger_value_list ',' SCONST
+ {
+ $$ = cat_str(2,$1,mm_strdup(", sconst"));
+}
+;
+
+
+ AlterEventTrigStmt:
+ ALTER EVENT TRIGGER name enable_trigger
+ {
+ $$ = cat_str(3,mm_strdup("alter event trigger"),$4,$5);
+}
+;
+
+
+ enable_trigger:
+ ENABLE_P
+ {
+ $$ = mm_strdup("enable");
+}
+| ENABLE_P REPLICA
+ {
+ $$ = mm_strdup("enable replica");
+}
+| ENABLE_P ALWAYS
+ {
+ $$ = mm_strdup("enable always");
+}
+| DISABLE_P
+ {
+ $$ = mm_strdup("disable");
+}
+;
+
+
+ CreateAssertionStmt:
+ CREATE ASSERTION any_name CHECK '(' a_expr ')' ConstraintAttributeSpec
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(6,mm_strdup("create assertion"),$3,mm_strdup("check ("),$6,mm_strdup(")"),$8);
+}
+;
+
+
+ DefineStmt:
+ CREATE opt_or_replace AGGREGATE func_name aggr_args definition
+ {
+ $$ = cat_str(6,mm_strdup("create"),$2,mm_strdup("aggregate"),$4,$5,$6);
+}
+| CREATE opt_or_replace AGGREGATE func_name old_aggr_definition
+ {
+ $$ = cat_str(5,mm_strdup("create"),$2,mm_strdup("aggregate"),$4,$5);
+}
+| CREATE OPERATOR any_operator definition
+ {
+ $$ = cat_str(3,mm_strdup("create operator"),$3,$4);
+}
+| CREATE TYPE_P any_name definition
+ {
+ $$ = cat_str(3,mm_strdup("create type"),$3,$4);
+}
+| CREATE TYPE_P any_name
+ {
+ $$ = cat_str(2,mm_strdup("create type"),$3);
+}
+| CREATE TYPE_P any_name AS '(' OptTableFuncElementList ')'
+ {
+ $$ = cat_str(5,mm_strdup("create type"),$3,mm_strdup("as ("),$6,mm_strdup(")"));
+}
+| CREATE TYPE_P any_name AS ENUM_P '(' opt_enum_val_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("create type"),$3,mm_strdup("as enum ("),$7,mm_strdup(")"));
+}
+| CREATE TYPE_P any_name AS RANGE definition
+ {
+ $$ = cat_str(4,mm_strdup("create type"),$3,mm_strdup("as range"),$6);
+}
+| CREATE TEXT_P SEARCH PARSER any_name definition
+ {
+ $$ = cat_str(3,mm_strdup("create text search parser"),$5,$6);
+}
+| CREATE TEXT_P SEARCH DICTIONARY any_name definition
+ {
+ $$ = cat_str(3,mm_strdup("create text search dictionary"),$5,$6);
+}
+| CREATE TEXT_P SEARCH TEMPLATE any_name definition
+ {
+ $$ = cat_str(3,mm_strdup("create text search template"),$5,$6);
+}
+| CREATE TEXT_P SEARCH CONFIGURATION any_name definition
+ {
+ $$ = cat_str(3,mm_strdup("create text search configuration"),$5,$6);
+}
+| CREATE COLLATION any_name definition
+ {
+ $$ = cat_str(3,mm_strdup("create collation"),$3,$4);
+}
+| CREATE COLLATION IF_P NOT EXISTS any_name definition
+ {
+ $$ = cat_str(3,mm_strdup("create collation if not exists"),$6,$7);
+}
+| CREATE COLLATION any_name FROM any_name
+ {
+ $$ = cat_str(4,mm_strdup("create collation"),$3,mm_strdup("from"),$5);
+}
+| CREATE COLLATION IF_P NOT EXISTS any_name FROM any_name
+ {
+ $$ = cat_str(4,mm_strdup("create collation if not exists"),$6,mm_strdup("from"),$8);
+}
+;
+
+
+ definition:
+ '(' def_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+;
+
+
+ def_list:
+ def_elem
+ {
+ $$ = $1;
+}
+| def_list ',' def_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ def_elem:
+ ColLabel '=' def_arg
+ {
+ $$ = cat_str(3,$1,mm_strdup("="),$3);
+}
+| ColLabel
+ {
+ $$ = $1;
+}
+;
+
+
+ def_arg:
+ func_type
+ {
+ $$ = $1;
+}
+| reserved_keyword
+ {
+ $$ = $1;
+}
+| qual_all_Op
+ {
+ $$ = $1;
+}
+| NumericOnly
+ {
+ $$ = $1;
+}
+| ecpg_sconst
+ {
+ $$ = $1;
+}
+| NONE
+ {
+ $$ = mm_strdup("none");
+}
+;
+
+
+ old_aggr_definition:
+ '(' old_aggr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+;
+
+
+ old_aggr_list:
+ old_aggr_elem
+ {
+ $$ = $1;
+}
+| old_aggr_list ',' old_aggr_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ old_aggr_elem:
+ ecpg_ident '=' def_arg
+ {
+ $$ = cat_str(3,$1,mm_strdup("="),$3);
+}
+;
+
+
+ opt_enum_val_list:
+ enum_val_list
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ enum_val_list:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+| enum_val_list ',' ecpg_sconst
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ AlterEnumStmt:
+ ALTER TYPE_P any_name ADD_P VALUE_P opt_if_not_exists ecpg_sconst
+ {
+ $$ = cat_str(5,mm_strdup("alter type"),$3,mm_strdup("add value"),$6,$7);
+}
+| ALTER TYPE_P any_name ADD_P VALUE_P opt_if_not_exists ecpg_sconst BEFORE ecpg_sconst
+ {
+ $$ = cat_str(7,mm_strdup("alter type"),$3,mm_strdup("add value"),$6,$7,mm_strdup("before"),$9);
+}
+| ALTER TYPE_P any_name ADD_P VALUE_P opt_if_not_exists ecpg_sconst AFTER ecpg_sconst
+ {
+ $$ = cat_str(7,mm_strdup("alter type"),$3,mm_strdup("add value"),$6,$7,mm_strdup("after"),$9);
+}
+| ALTER TYPE_P any_name RENAME VALUE_P ecpg_sconst TO ecpg_sconst
+ {
+ $$ = cat_str(6,mm_strdup("alter type"),$3,mm_strdup("rename value"),$6,mm_strdup("to"),$8);
+}
+;
+
+
+ opt_if_not_exists:
+ IF_P NOT EXISTS
+ {
+ $$ = mm_strdup("if not exists");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ CreateOpClassStmt:
+ CREATE OPERATOR CLASS any_name opt_default FOR TYPE_P Typename USING name opt_opfamily AS opclass_item_list
+ {
+ $$ = cat_str(10,mm_strdup("create operator class"),$4,$5,mm_strdup("for type"),$8,mm_strdup("using"),$10,$11,mm_strdup("as"),$13);
+}
+;
+
+
+ opclass_item_list:
+ opclass_item
+ {
+ $$ = $1;
+}
+| opclass_item_list ',' opclass_item
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ opclass_item:
+ OPERATOR Iconst any_operator opclass_purpose opt_recheck
+ {
+ $$ = cat_str(5,mm_strdup("operator"),$2,$3,$4,$5);
+}
+| OPERATOR Iconst operator_with_argtypes opclass_purpose opt_recheck
+ {
+ $$ = cat_str(5,mm_strdup("operator"),$2,$3,$4,$5);
+}
+| FUNCTION Iconst function_with_argtypes
+ {
+ $$ = cat_str(3,mm_strdup("function"),$2,$3);
+}
+| FUNCTION Iconst '(' type_list ')' function_with_argtypes
+ {
+ $$ = cat_str(6,mm_strdup("function"),$2,mm_strdup("("),$4,mm_strdup(")"),$6);
+}
+| STORAGE Typename
+ {
+ $$ = cat_str(2,mm_strdup("storage"),$2);
+}
+;
+
+
+ opt_default:
+ DEFAULT
+ {
+ $$ = mm_strdup("default");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_opfamily:
+ FAMILY any_name
+ {
+ $$ = cat_str(2,mm_strdup("family"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opclass_purpose:
+ FOR SEARCH
+ {
+ $$ = mm_strdup("for search");
+}
+| FOR ORDER BY any_name
+ {
+ $$ = cat_str(2,mm_strdup("for order by"),$4);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_recheck:
+ RECHECK
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = mm_strdup("recheck");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ CreateOpFamilyStmt:
+ CREATE OPERATOR FAMILY any_name USING name
+ {
+ $$ = cat_str(4,mm_strdup("create operator family"),$4,mm_strdup("using"),$6);
+}
+;
+
+
+ AlterOpFamilyStmt:
+ ALTER OPERATOR FAMILY any_name USING name ADD_P opclass_item_list
+ {
+ $$ = cat_str(6,mm_strdup("alter operator family"),$4,mm_strdup("using"),$6,mm_strdup("add"),$8);
+}
+| ALTER OPERATOR FAMILY any_name USING name DROP opclass_drop_list
+ {
+ $$ = cat_str(6,mm_strdup("alter operator family"),$4,mm_strdup("using"),$6,mm_strdup("drop"),$8);
+}
+;
+
+
+ opclass_drop_list:
+ opclass_drop
+ {
+ $$ = $1;
+}
+| opclass_drop_list ',' opclass_drop
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ opclass_drop:
+ OPERATOR Iconst '(' type_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("operator"),$2,mm_strdup("("),$4,mm_strdup(")"));
+}
+| FUNCTION Iconst '(' type_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("function"),$2,mm_strdup("("),$4,mm_strdup(")"));
+}
+;
+
+
+ DropOpClassStmt:
+ DROP OPERATOR CLASS any_name USING name opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("drop operator class"),$4,mm_strdup("using"),$6,$7);
+}
+| DROP OPERATOR CLASS IF_P EXISTS any_name USING name opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("drop operator class if exists"),$6,mm_strdup("using"),$8,$9);
+}
+;
+
+
+ DropOpFamilyStmt:
+ DROP OPERATOR FAMILY any_name USING name opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("drop operator family"),$4,mm_strdup("using"),$6,$7);
+}
+| DROP OPERATOR FAMILY IF_P EXISTS any_name USING name opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("drop operator family if exists"),$6,mm_strdup("using"),$8,$9);
+}
+;
+
+
+ DropOwnedStmt:
+ DROP OWNED BY role_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop owned by"),$4,$5);
+}
+;
+
+
+ ReassignOwnedStmt:
+ REASSIGN OWNED BY role_list TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("reassign owned by"),$4,mm_strdup("to"),$6);
+}
+;
+
+
+ DropStmt:
+ DROP object_type_any_name IF_P EXISTS any_name_list opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("drop"),$2,mm_strdup("if exists"),$5,$6);
+}
+| DROP object_type_any_name any_name_list opt_drop_behavior
+ {
+ $$ = cat_str(4,mm_strdup("drop"),$2,$3,$4);
+}
+| DROP drop_type_name IF_P EXISTS name_list opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("drop"),$2,mm_strdup("if exists"),$5,$6);
+}
+| DROP drop_type_name name_list opt_drop_behavior
+ {
+ $$ = cat_str(4,mm_strdup("drop"),$2,$3,$4);
+}
+| DROP object_type_name_on_any_name name ON any_name opt_drop_behavior
+ {
+ $$ = cat_str(6,mm_strdup("drop"),$2,$3,mm_strdup("on"),$5,$6);
+}
+| DROP object_type_name_on_any_name IF_P EXISTS name ON any_name opt_drop_behavior
+ {
+ $$ = cat_str(7,mm_strdup("drop"),$2,mm_strdup("if exists"),$5,mm_strdup("on"),$7,$8);
+}
+| DROP TYPE_P type_name_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop type"),$3,$4);
+}
+| DROP TYPE_P IF_P EXISTS type_name_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop type if exists"),$5,$6);
+}
+| DROP DOMAIN_P type_name_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop domain"),$3,$4);
+}
+| DROP DOMAIN_P IF_P EXISTS type_name_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop domain if exists"),$5,$6);
+}
+| DROP INDEX CONCURRENTLY any_name_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop index concurrently"),$4,$5);
+}
+| DROP INDEX CONCURRENTLY IF_P EXISTS any_name_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop index concurrently if exists"),$6,$7);
+}
+;
+
+
+ object_type_any_name:
+ TABLE
+ {
+ $$ = mm_strdup("table");
+}
+| SEQUENCE
+ {
+ $$ = mm_strdup("sequence");
+}
+| VIEW
+ {
+ $$ = mm_strdup("view");
+}
+| MATERIALIZED VIEW
+ {
+ $$ = mm_strdup("materialized view");
+}
+| INDEX
+ {
+ $$ = mm_strdup("index");
+}
+| FOREIGN TABLE
+ {
+ $$ = mm_strdup("foreign table");
+}
+| COLLATION
+ {
+ $$ = mm_strdup("collation");
+}
+| CONVERSION_P
+ {
+ $$ = mm_strdup("conversion");
+}
+| STATISTICS
+ {
+ $$ = mm_strdup("statistics");
+}
+| TEXT_P SEARCH PARSER
+ {
+ $$ = mm_strdup("text search parser");
+}
+| TEXT_P SEARCH DICTIONARY
+ {
+ $$ = mm_strdup("text search dictionary");
+}
+| TEXT_P SEARCH TEMPLATE
+ {
+ $$ = mm_strdup("text search template");
+}
+| TEXT_P SEARCH CONFIGURATION
+ {
+ $$ = mm_strdup("text search configuration");
+}
+;
+
+
+ object_type_name:
+ drop_type_name
+ {
+ $$ = $1;
+}
+| DATABASE
+ {
+ $$ = mm_strdup("database");
+}
+| ROLE
+ {
+ $$ = mm_strdup("role");
+}
+| SUBSCRIPTION
+ {
+ $$ = mm_strdup("subscription");
+}
+| TABLESPACE
+ {
+ $$ = mm_strdup("tablespace");
+}
+;
+
+
+ drop_type_name:
+ ACCESS METHOD
+ {
+ $$ = mm_strdup("access method");
+}
+| EVENT TRIGGER
+ {
+ $$ = mm_strdup("event trigger");
+}
+| EXTENSION
+ {
+ $$ = mm_strdup("extension");
+}
+| FOREIGN DATA_P WRAPPER
+ {
+ $$ = mm_strdup("foreign data wrapper");
+}
+| opt_procedural LANGUAGE
+ {
+ $$ = cat_str(2,$1,mm_strdup("language"));
+}
+| PUBLICATION
+ {
+ $$ = mm_strdup("publication");
+}
+| SCHEMA
+ {
+ $$ = mm_strdup("schema");
+}
+| SERVER
+ {
+ $$ = mm_strdup("server");
+}
+;
+
+
+ object_type_name_on_any_name:
+ POLICY
+ {
+ $$ = mm_strdup("policy");
+}
+| RULE
+ {
+ $$ = mm_strdup("rule");
+}
+| TRIGGER
+ {
+ $$ = mm_strdup("trigger");
+}
+;
+
+
+ any_name_list:
+ any_name
+ {
+ $$ = $1;
+}
+| any_name_list ',' any_name
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ any_name:
+ ColId
+ {
+ $$ = $1;
+}
+| ColId attrs
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ attrs:
+ '.' attr_name
+ {
+ $$ = cat_str(2,mm_strdup("."),$2);
+}
+| attrs '.' attr_name
+ {
+ $$ = cat_str(3,$1,mm_strdup("."),$3);
+}
+;
+
+
+ type_name_list:
+ Typename
+ {
+ $$ = $1;
+}
+| type_name_list ',' Typename
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ TruncateStmt:
+ TRUNCATE opt_table relation_expr_list opt_restart_seqs opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("truncate"),$2,$3,$4,$5);
+}
+;
+
+
+ opt_restart_seqs:
+ CONTINUE_P IDENTITY_P
+ {
+ $$ = mm_strdup("continue identity");
+}
+| RESTART IDENTITY_P
+ {
+ $$ = mm_strdup("restart identity");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ CommentStmt:
+ COMMENT ON object_type_any_name any_name IS comment_text
+ {
+ $$ = cat_str(5,mm_strdup("comment on"),$3,$4,mm_strdup("is"),$6);
+}
+| COMMENT ON COLUMN any_name IS comment_text
+ {
+ $$ = cat_str(4,mm_strdup("comment on column"),$4,mm_strdup("is"),$6);
+}
+| COMMENT ON object_type_name name IS comment_text
+ {
+ $$ = cat_str(5,mm_strdup("comment on"),$3,$4,mm_strdup("is"),$6);
+}
+| COMMENT ON TYPE_P Typename IS comment_text
+ {
+ $$ = cat_str(4,mm_strdup("comment on type"),$4,mm_strdup("is"),$6);
+}
+| COMMENT ON DOMAIN_P Typename IS comment_text
+ {
+ $$ = cat_str(4,mm_strdup("comment on domain"),$4,mm_strdup("is"),$6);
+}
+| COMMENT ON AGGREGATE aggregate_with_argtypes IS comment_text
+ {
+ $$ = cat_str(4,mm_strdup("comment on aggregate"),$4,mm_strdup("is"),$6);
+}
+| COMMENT ON FUNCTION function_with_argtypes IS comment_text
+ {
+ $$ = cat_str(4,mm_strdup("comment on function"),$4,mm_strdup("is"),$6);
+}
+| COMMENT ON OPERATOR operator_with_argtypes IS comment_text
+ {
+ $$ = cat_str(4,mm_strdup("comment on operator"),$4,mm_strdup("is"),$6);
+}
+| COMMENT ON CONSTRAINT name ON any_name IS comment_text
+ {
+ $$ = cat_str(6,mm_strdup("comment on constraint"),$4,mm_strdup("on"),$6,mm_strdup("is"),$8);
+}
+| COMMENT ON CONSTRAINT name ON DOMAIN_P any_name IS comment_text
+ {
+ $$ = cat_str(6,mm_strdup("comment on constraint"),$4,mm_strdup("on domain"),$7,mm_strdup("is"),$9);
+}
+| COMMENT ON object_type_name_on_any_name name ON any_name IS comment_text
+ {
+ $$ = cat_str(7,mm_strdup("comment on"),$3,$4,mm_strdup("on"),$6,mm_strdup("is"),$8);
+}
+| COMMENT ON PROCEDURE function_with_argtypes IS comment_text
+ {
+ $$ = cat_str(4,mm_strdup("comment on procedure"),$4,mm_strdup("is"),$6);
+}
+| COMMENT ON ROUTINE function_with_argtypes IS comment_text
+ {
+ $$ = cat_str(4,mm_strdup("comment on routine"),$4,mm_strdup("is"),$6);
+}
+| COMMENT ON TRANSFORM FOR Typename LANGUAGE name IS comment_text
+ {
+ $$ = cat_str(6,mm_strdup("comment on transform for"),$5,mm_strdup("language"),$7,mm_strdup("is"),$9);
+}
+| COMMENT ON OPERATOR CLASS any_name USING name IS comment_text
+ {
+ $$ = cat_str(6,mm_strdup("comment on operator class"),$5,mm_strdup("using"),$7,mm_strdup("is"),$9);
+}
+| COMMENT ON OPERATOR FAMILY any_name USING name IS comment_text
+ {
+ $$ = cat_str(6,mm_strdup("comment on operator family"),$5,mm_strdup("using"),$7,mm_strdup("is"),$9);
+}
+| COMMENT ON LARGE_P OBJECT_P NumericOnly IS comment_text
+ {
+ $$ = cat_str(4,mm_strdup("comment on large object"),$5,mm_strdup("is"),$7);
+}
+| COMMENT ON CAST '(' Typename AS Typename ')' IS comment_text
+ {
+ $$ = cat_str(6,mm_strdup("comment on cast ("),$5,mm_strdup("as"),$7,mm_strdup(") is"),$10);
+}
+;
+
+
+ comment_text:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+| NULL_P
+ {
+ $$ = mm_strdup("null");
+}
+;
+
+
+ SecLabelStmt:
+ SECURITY LABEL opt_provider ON object_type_any_name any_name IS security_label
+ {
+ $$ = cat_str(7,mm_strdup("security label"),$3,mm_strdup("on"),$5,$6,mm_strdup("is"),$8);
+}
+| SECURITY LABEL opt_provider ON COLUMN any_name IS security_label
+ {
+ $$ = cat_str(6,mm_strdup("security label"),$3,mm_strdup("on column"),$6,mm_strdup("is"),$8);
+}
+| SECURITY LABEL opt_provider ON object_type_name name IS security_label
+ {
+ $$ = cat_str(7,mm_strdup("security label"),$3,mm_strdup("on"),$5,$6,mm_strdup("is"),$8);
+}
+| SECURITY LABEL opt_provider ON TYPE_P Typename IS security_label
+ {
+ $$ = cat_str(6,mm_strdup("security label"),$3,mm_strdup("on type"),$6,mm_strdup("is"),$8);
+}
+| SECURITY LABEL opt_provider ON DOMAIN_P Typename IS security_label
+ {
+ $$ = cat_str(6,mm_strdup("security label"),$3,mm_strdup("on domain"),$6,mm_strdup("is"),$8);
+}
+| SECURITY LABEL opt_provider ON AGGREGATE aggregate_with_argtypes IS security_label
+ {
+ $$ = cat_str(6,mm_strdup("security label"),$3,mm_strdup("on aggregate"),$6,mm_strdup("is"),$8);
+}
+| SECURITY LABEL opt_provider ON FUNCTION function_with_argtypes IS security_label
+ {
+ $$ = cat_str(6,mm_strdup("security label"),$3,mm_strdup("on function"),$6,mm_strdup("is"),$8);
+}
+| SECURITY LABEL opt_provider ON LARGE_P OBJECT_P NumericOnly IS security_label
+ {
+ $$ = cat_str(6,mm_strdup("security label"),$3,mm_strdup("on large object"),$7,mm_strdup("is"),$9);
+}
+| SECURITY LABEL opt_provider ON PROCEDURE function_with_argtypes IS security_label
+ {
+ $$ = cat_str(6,mm_strdup("security label"),$3,mm_strdup("on procedure"),$6,mm_strdup("is"),$8);
+}
+| SECURITY LABEL opt_provider ON ROUTINE function_with_argtypes IS security_label
+ {
+ $$ = cat_str(6,mm_strdup("security label"),$3,mm_strdup("on routine"),$6,mm_strdup("is"),$8);
+}
+;
+
+
+ opt_provider:
+ FOR NonReservedWord_or_Sconst
+ {
+ $$ = cat_str(2,mm_strdup("for"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ security_label:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+| NULL_P
+ {
+ $$ = mm_strdup("null");
+}
+;
+
+
+ FetchStmt:
+ FETCH fetch_args
+ {
+ $$ = cat_str(2,mm_strdup("fetch"),$2);
+}
+| MOVE fetch_args
+ {
+ $$ = cat_str(2,mm_strdup("move"),$2);
+}
+ | FETCH fetch_args ecpg_fetch_into
+ {
+ $$ = cat2_str(mm_strdup("fetch"), $2);
+ }
+ | FETCH FORWARD cursor_name opt_ecpg_fetch_into
+ {
+ char *cursor_marker = $3[0] == ':' ? mm_strdup("$0") : $3;
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("fetch forward"), cursor_marker);
+ }
+ | FETCH FORWARD from_in cursor_name opt_ecpg_fetch_into
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("fetch forward from"), cursor_marker);
+ }
+ | FETCH BACKWARD cursor_name opt_ecpg_fetch_into
+ {
+ char *cursor_marker = $3[0] == ':' ? mm_strdup("$0") : $3;
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("fetch backward"), cursor_marker);
+ }
+ | FETCH BACKWARD from_in cursor_name opt_ecpg_fetch_into
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("fetch backward from"), cursor_marker);
+ }
+ | MOVE FORWARD cursor_name
+ {
+ char *cursor_marker = $3[0] == ':' ? mm_strdup("$0") : $3;
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("move forward"), cursor_marker);
+ }
+ | MOVE FORWARD from_in cursor_name
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("move forward from"), cursor_marker);
+ }
+ | MOVE BACKWARD cursor_name
+ {
+ char *cursor_marker = $3[0] == ':' ? mm_strdup("$0") : $3;
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("move backward"), cursor_marker);
+ }
+ | MOVE BACKWARD from_in cursor_name
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ $$ = cat_str(2, mm_strdup("move backward from"), cursor_marker);
+ }
+;
+
+
+ fetch_args:
+ cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($1, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($1[0] == ':')
+ {
+ free($1);
+ $1 = mm_strdup("$0");
+ }
+
+ $$ = $1;
+}
+| from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($2, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($2[0] == ':')
+ {
+ free($2);
+ $2 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(2,$1,$2);
+}
+| NEXT opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($3[0] == ':')
+ {
+ free($3);
+ $3 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(3,mm_strdup("next"),$2,$3);
+}
+| PRIOR opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($3[0] == ':')
+ {
+ free($3);
+ $3 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(3,mm_strdup("prior"),$2,$3);
+}
+| FIRST_P opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($3[0] == ':')
+ {
+ free($3);
+ $3 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(3,mm_strdup("first"),$2,$3);
+}
+| LAST_P opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($3[0] == ':')
+ {
+ free($3);
+ $3 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(3,mm_strdup("last"),$2,$3);
+}
+| ABSOLUTE_P SignedIconst opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($4[0] == ':')
+ {
+ free($4);
+ $4 = mm_strdup("$0");
+ }
+ if ($2[0] == '$')
+ {
+ free($2);
+ $2 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(4,mm_strdup("absolute"),$2,$3,$4);
+}
+| RELATIVE_P SignedIconst opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($4[0] == ':')
+ {
+ free($4);
+ $4 = mm_strdup("$0");
+ }
+ if ($2[0] == '$')
+ {
+ free($2);
+ $2 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(4,mm_strdup("relative"),$2,$3,$4);
+}
+| SignedIconst opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($3[0] == ':')
+ {
+ free($3);
+ $3 = mm_strdup("$0");
+ }
+ if ($1[0] == '$')
+ {
+ free($1);
+ $1 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(3,$1,$2,$3);
+}
+| ALL opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($3, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($3[0] == ':')
+ {
+ free($3);
+ $3 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(3,mm_strdup("all"),$2,$3);
+}
+| FORWARD SignedIconst opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($4[0] == ':')
+ {
+ free($4);
+ $4 = mm_strdup("$0");
+ }
+ if ($2[0] == '$')
+ {
+ free($2);
+ $2 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(4,mm_strdup("forward"),$2,$3,$4);
+}
+| FORWARD ALL opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($4[0] == ':')
+ {
+ free($4);
+ $4 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(3,mm_strdup("forward all"),$3,$4);
+}
+| BACKWARD SignedIconst opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($4[0] == ':')
+ {
+ free($4);
+ $4 = mm_strdup("$0");
+ }
+ if ($2[0] == '$')
+ {
+ free($2);
+ $2 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(4,mm_strdup("backward"),$2,$3,$4);
+}
+| BACKWARD ALL opt_from_in cursor_name
+ {
+ struct cursor *ptr = add_additional_variables($4, false);
+ if (ptr -> connection)
+ connection = mm_strdup(ptr -> connection);
+
+ if ($4[0] == ':')
+ {
+ free($4);
+ $4 = mm_strdup("$0");
+ }
+
+ $$ = cat_str(3,mm_strdup("backward all"),$3,$4);
+}
+;
+
+
+ from_in:
+ FROM
+ {
+ $$ = mm_strdup("from");
+}
+| IN_P
+ {
+ $$ = mm_strdup("in");
+}
+;
+
+
+ opt_from_in:
+ from_in
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ GrantStmt:
+ GRANT privileges ON privilege_target TO grantee_list opt_grant_grant_option opt_granted_by
+ {
+ $$ = cat_str(8,mm_strdup("grant"),$2,mm_strdup("on"),$4,mm_strdup("to"),$6,$7,$8);
+}
+;
+
+
+ RevokeStmt:
+ REVOKE privileges ON privilege_target FROM grantee_list opt_granted_by opt_drop_behavior
+ {
+ $$ = cat_str(8,mm_strdup("revoke"),$2,mm_strdup("on"),$4,mm_strdup("from"),$6,$7,$8);
+}
+| REVOKE GRANT OPTION FOR privileges ON privilege_target FROM grantee_list opt_granted_by opt_drop_behavior
+ {
+ $$ = cat_str(8,mm_strdup("revoke grant option for"),$5,mm_strdup("on"),$7,mm_strdup("from"),$9,$10,$11);
+}
+;
+
+
+ privileges:
+ privilege_list
+ {
+ $$ = $1;
+}
+| ALL
+ {
+ $$ = mm_strdup("all");
+}
+| ALL PRIVILEGES
+ {
+ $$ = mm_strdup("all privileges");
+}
+| ALL '(' columnList ')'
+ {
+ $$ = cat_str(3,mm_strdup("all ("),$3,mm_strdup(")"));
+}
+| ALL PRIVILEGES '(' columnList ')'
+ {
+ $$ = cat_str(3,mm_strdup("all privileges ("),$4,mm_strdup(")"));
+}
+;
+
+
+ privilege_list:
+ privilege
+ {
+ $$ = $1;
+}
+| privilege_list ',' privilege
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ privilege:
+ SELECT opt_column_list
+ {
+ $$ = cat_str(2,mm_strdup("select"),$2);
+}
+| REFERENCES opt_column_list
+ {
+ $$ = cat_str(2,mm_strdup("references"),$2);
+}
+| CREATE opt_column_list
+ {
+ $$ = cat_str(2,mm_strdup("create"),$2);
+}
+| ALTER SYSTEM_P
+ {
+ $$ = mm_strdup("alter system");
+}
+| ColId opt_column_list
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ parameter_name_list:
+ parameter_name
+ {
+ $$ = $1;
+}
+| parameter_name_list ',' parameter_name
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ parameter_name:
+ ColId
+ {
+ $$ = $1;
+}
+| parameter_name '.' ColId
+ {
+ $$ = cat_str(3,$1,mm_strdup("."),$3);
+}
+;
+
+
+ privilege_target:
+ qualified_name_list
+ {
+ $$ = $1;
+}
+| TABLE qualified_name_list
+ {
+ $$ = cat_str(2,mm_strdup("table"),$2);
+}
+| SEQUENCE qualified_name_list
+ {
+ $$ = cat_str(2,mm_strdup("sequence"),$2);
+}
+| FOREIGN DATA_P WRAPPER name_list
+ {
+ $$ = cat_str(2,mm_strdup("foreign data wrapper"),$4);
+}
+| FOREIGN SERVER name_list
+ {
+ $$ = cat_str(2,mm_strdup("foreign server"),$3);
+}
+| FUNCTION function_with_argtypes_list
+ {
+ $$ = cat_str(2,mm_strdup("function"),$2);
+}
+| PROCEDURE function_with_argtypes_list
+ {
+ $$ = cat_str(2,mm_strdup("procedure"),$2);
+}
+| ROUTINE function_with_argtypes_list
+ {
+ $$ = cat_str(2,mm_strdup("routine"),$2);
+}
+| DATABASE name_list
+ {
+ $$ = cat_str(2,mm_strdup("database"),$2);
+}
+| DOMAIN_P any_name_list
+ {
+ $$ = cat_str(2,mm_strdup("domain"),$2);
+}
+| LANGUAGE name_list
+ {
+ $$ = cat_str(2,mm_strdup("language"),$2);
+}
+| LARGE_P OBJECT_P NumericOnly_list
+ {
+ $$ = cat_str(2,mm_strdup("large object"),$3);
+}
+| PARAMETER parameter_name_list
+ {
+ $$ = cat_str(2,mm_strdup("parameter"),$2);
+}
+| SCHEMA name_list
+ {
+ $$ = cat_str(2,mm_strdup("schema"),$2);
+}
+| TABLESPACE name_list
+ {
+ $$ = cat_str(2,mm_strdup("tablespace"),$2);
+}
+| TYPE_P any_name_list
+ {
+ $$ = cat_str(2,mm_strdup("type"),$2);
+}
+| ALL TABLES IN_P SCHEMA name_list
+ {
+ $$ = cat_str(2,mm_strdup("all tables in schema"),$5);
+}
+| ALL SEQUENCES IN_P SCHEMA name_list
+ {
+ $$ = cat_str(2,mm_strdup("all sequences in schema"),$5);
+}
+| ALL FUNCTIONS IN_P SCHEMA name_list
+ {
+ $$ = cat_str(2,mm_strdup("all functions in schema"),$5);
+}
+| ALL PROCEDURES IN_P SCHEMA name_list
+ {
+ $$ = cat_str(2,mm_strdup("all procedures in schema"),$5);
+}
+| ALL ROUTINES IN_P SCHEMA name_list
+ {
+ $$ = cat_str(2,mm_strdup("all routines in schema"),$5);
+}
+;
+
+
+ grantee_list:
+ grantee
+ {
+ $$ = $1;
+}
+| grantee_list ',' grantee
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ grantee:
+ RoleSpec
+ {
+ $$ = $1;
+}
+| GROUP_P RoleSpec
+ {
+ $$ = cat_str(2,mm_strdup("group"),$2);
+}
+;
+
+
+ opt_grant_grant_option:
+ WITH GRANT OPTION
+ {
+ $$ = mm_strdup("with grant option");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ GrantRoleStmt:
+ GRANT privilege_list TO role_list opt_grant_admin_option opt_granted_by
+ {
+ $$ = cat_str(6,mm_strdup("grant"),$2,mm_strdup("to"),$4,$5,$6);
+}
+;
+
+
+ RevokeRoleStmt:
+ REVOKE privilege_list FROM role_list opt_granted_by opt_drop_behavior
+ {
+ $$ = cat_str(6,mm_strdup("revoke"),$2,mm_strdup("from"),$4,$5,$6);
+}
+| REVOKE ADMIN OPTION FOR privilege_list FROM role_list opt_granted_by opt_drop_behavior
+ {
+ $$ = cat_str(6,mm_strdup("revoke admin option for"),$5,mm_strdup("from"),$7,$8,$9);
+}
+;
+
+
+ opt_grant_admin_option:
+ WITH ADMIN OPTION
+ {
+ $$ = mm_strdup("with admin option");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_granted_by:
+ GRANTED BY RoleSpec
+ {
+ $$ = cat_str(2,mm_strdup("granted by"),$3);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ AlterDefaultPrivilegesStmt:
+ ALTER DEFAULT PRIVILEGES DefACLOptionList DefACLAction
+ {
+ $$ = cat_str(3,mm_strdup("alter default privileges"),$4,$5);
+}
+;
+
+
+ DefACLOptionList:
+ DefACLOptionList DefACLOption
+ {
+ $$ = cat_str(2,$1,$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ DefACLOption:
+ IN_P SCHEMA name_list
+ {
+ $$ = cat_str(2,mm_strdup("in schema"),$3);
+}
+| FOR ROLE role_list
+ {
+ $$ = cat_str(2,mm_strdup("for role"),$3);
+}
+| FOR USER role_list
+ {
+ $$ = cat_str(2,mm_strdup("for user"),$3);
+}
+;
+
+
+ DefACLAction:
+ GRANT privileges ON defacl_privilege_target TO grantee_list opt_grant_grant_option
+ {
+ $$ = cat_str(7,mm_strdup("grant"),$2,mm_strdup("on"),$4,mm_strdup("to"),$6,$7);
+}
+| REVOKE privileges ON defacl_privilege_target FROM grantee_list opt_drop_behavior
+ {
+ $$ = cat_str(7,mm_strdup("revoke"),$2,mm_strdup("on"),$4,mm_strdup("from"),$6,$7);
+}
+| REVOKE GRANT OPTION FOR privileges ON defacl_privilege_target FROM grantee_list opt_drop_behavior
+ {
+ $$ = cat_str(7,mm_strdup("revoke grant option for"),$5,mm_strdup("on"),$7,mm_strdup("from"),$9,$10);
+}
+;
+
+
+ defacl_privilege_target:
+ TABLES
+ {
+ $$ = mm_strdup("tables");
+}
+| FUNCTIONS
+ {
+ $$ = mm_strdup("functions");
+}
+| ROUTINES
+ {
+ $$ = mm_strdup("routines");
+}
+| SEQUENCES
+ {
+ $$ = mm_strdup("sequences");
+}
+| TYPES_P
+ {
+ $$ = mm_strdup("types");
+}
+| SCHEMAS
+ {
+ $$ = mm_strdup("schemas");
+}
+;
+
+
+ IndexStmt:
+ CREATE opt_unique INDEX opt_concurrently opt_index_name ON relation_expr access_method_clause '(' index_params ')' opt_include opt_unique_null_treatment opt_reloptions OptTableSpace where_clause
+ {
+ $$ = cat_str(16,mm_strdup("create"),$2,mm_strdup("index"),$4,$5,mm_strdup("on"),$7,$8,mm_strdup("("),$10,mm_strdup(")"),$12,$13,$14,$15,$16);
+}
+| CREATE opt_unique INDEX opt_concurrently IF_P NOT EXISTS name ON relation_expr access_method_clause '(' index_params ')' opt_include opt_unique_null_treatment opt_reloptions OptTableSpace where_clause
+ {
+ $$ = cat_str(17,mm_strdup("create"),$2,mm_strdup("index"),$4,mm_strdup("if not exists"),$8,mm_strdup("on"),$10,$11,mm_strdup("("),$13,mm_strdup(")"),$15,$16,$17,$18,$19);
+}
+;
+
+
+ opt_unique:
+ UNIQUE
+ {
+ $$ = mm_strdup("unique");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_concurrently:
+ CONCURRENTLY
+ {
+ $$ = mm_strdup("concurrently");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_index_name:
+ name
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ access_method_clause:
+ USING name
+ {
+ $$ = cat_str(2,mm_strdup("using"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ index_params:
+ index_elem
+ {
+ $$ = $1;
+}
+| index_params ',' index_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ index_elem_options:
+ opt_collate opt_class opt_asc_desc opt_nulls_order
+ {
+ $$ = cat_str(4,$1,$2,$3,$4);
+}
+| opt_collate any_name reloptions opt_asc_desc opt_nulls_order
+ {
+ $$ = cat_str(5,$1,$2,$3,$4,$5);
+}
+;
+
+
+ index_elem:
+ ColId index_elem_options
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| func_expr_windowless index_elem_options
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| '(' a_expr ')' index_elem_options
+ {
+ $$ = cat_str(4,mm_strdup("("),$2,mm_strdup(")"),$4);
+}
+;
+
+
+ opt_include:
+ INCLUDE '(' index_including_params ')'
+ {
+ $$ = cat_str(3,mm_strdup("include ("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ index_including_params:
+ index_elem
+ {
+ $$ = $1;
+}
+| index_including_params ',' index_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ opt_collate:
+ COLLATE any_name
+ {
+ $$ = cat_str(2,mm_strdup("collate"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_class:
+ any_name
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_asc_desc:
+ ASC
+ {
+ $$ = mm_strdup("asc");
+}
+| DESC
+ {
+ $$ = mm_strdup("desc");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_nulls_order:
+ NULLS_LA FIRST_P
+ {
+ $$ = mm_strdup("nulls first");
+}
+| NULLS_LA LAST_P
+ {
+ $$ = mm_strdup("nulls last");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ CreateFunctionStmt:
+ CREATE opt_or_replace FUNCTION func_name func_args_with_defaults RETURNS func_return opt_createfunc_opt_list opt_routine_body
+ {
+ $$ = cat_str(9,mm_strdup("create"),$2,mm_strdup("function"),$4,$5,mm_strdup("returns"),$7,$8,$9);
+}
+| CREATE opt_or_replace FUNCTION func_name func_args_with_defaults RETURNS TABLE '(' table_func_column_list ')' opt_createfunc_opt_list opt_routine_body
+ {
+ $$ = cat_str(10,mm_strdup("create"),$2,mm_strdup("function"),$4,$5,mm_strdup("returns table ("),$9,mm_strdup(")"),$11,$12);
+}
+| CREATE opt_or_replace FUNCTION func_name func_args_with_defaults opt_createfunc_opt_list opt_routine_body
+ {
+ $$ = cat_str(7,mm_strdup("create"),$2,mm_strdup("function"),$4,$5,$6,$7);
+}
+| CREATE opt_or_replace PROCEDURE func_name func_args_with_defaults opt_createfunc_opt_list opt_routine_body
+ {
+ $$ = cat_str(7,mm_strdup("create"),$2,mm_strdup("procedure"),$4,$5,$6,$7);
+}
+;
+
+
+ opt_or_replace:
+ OR REPLACE
+ {
+ $$ = mm_strdup("or replace");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ func_args:
+ '(' func_args_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+| '(' ')'
+ {
+ $$ = mm_strdup("( )");
+}
+;
+
+
+ func_args_list:
+ func_arg
+ {
+ $$ = $1;
+}
+| func_args_list ',' func_arg
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ function_with_argtypes_list:
+ function_with_argtypes
+ {
+ $$ = $1;
+}
+| function_with_argtypes_list ',' function_with_argtypes
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ function_with_argtypes:
+ func_name func_args
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| type_func_name_keyword
+ {
+ $$ = $1;
+}
+| ColId
+ {
+ $$ = $1;
+}
+| ColId indirection
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ func_args_with_defaults:
+ '(' func_args_with_defaults_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+| '(' ')'
+ {
+ $$ = mm_strdup("( )");
+}
+;
+
+
+ func_args_with_defaults_list:
+ func_arg_with_default
+ {
+ $$ = $1;
+}
+| func_args_with_defaults_list ',' func_arg_with_default
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ func_arg:
+ arg_class param_name func_type
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| param_name arg_class func_type
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| param_name func_type
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| arg_class func_type
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| func_type
+ {
+ $$ = $1;
+}
+;
+
+
+ arg_class:
+ IN_P
+ {
+ $$ = mm_strdup("in");
+}
+| OUT_P
+ {
+ $$ = mm_strdup("out");
+}
+| INOUT
+ {
+ $$ = mm_strdup("inout");
+}
+| IN_P OUT_P
+ {
+ $$ = mm_strdup("in out");
+}
+| VARIADIC
+ {
+ $$ = mm_strdup("variadic");
+}
+;
+
+
+ param_name:
+ type_function_name
+ {
+ $$ = $1;
+}
+;
+
+
+ func_return:
+ func_type
+ {
+ $$ = $1;
+}
+;
+
+
+ func_type:
+ Typename
+ {
+ $$ = $1;
+}
+| type_function_name attrs '%' TYPE_P
+ {
+ $$ = cat_str(3,$1,$2,mm_strdup("% type"));
+}
+| SETOF type_function_name attrs '%' TYPE_P
+ {
+ $$ = cat_str(4,mm_strdup("setof"),$2,$3,mm_strdup("% type"));
+}
+;
+
+
+ func_arg_with_default:
+ func_arg
+ {
+ $$ = $1;
+}
+| func_arg DEFAULT a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("default"),$3);
+}
+| func_arg '=' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("="),$3);
+}
+;
+
+
+ aggr_arg:
+ func_arg
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = $1;
+}
+;
+
+
+ aggr_args:
+ '(' '*' ')'
+ {
+ $$ = mm_strdup("( * )");
+}
+| '(' aggr_args_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+| '(' ORDER BY aggr_args_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("( order by"),$4,mm_strdup(")"));
+}
+| '(' aggr_args_list ORDER BY aggr_args_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("("),$2,mm_strdup("order by"),$5,mm_strdup(")"));
+}
+;
+
+
+ aggr_args_list:
+ aggr_arg
+ {
+ $$ = $1;
+}
+| aggr_args_list ',' aggr_arg
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ aggregate_with_argtypes:
+ func_name aggr_args
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ aggregate_with_argtypes_list:
+ aggregate_with_argtypes
+ {
+ $$ = $1;
+}
+| aggregate_with_argtypes_list ',' aggregate_with_argtypes
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ opt_createfunc_opt_list:
+ createfunc_opt_list
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ createfunc_opt_list:
+ createfunc_opt_item
+ {
+ $$ = $1;
+}
+| createfunc_opt_list createfunc_opt_item
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ common_func_opt_item:
+ CALLED ON NULL_P INPUT_P
+ {
+ $$ = mm_strdup("called on null input");
+}
+| RETURNS NULL_P ON NULL_P INPUT_P
+ {
+ $$ = mm_strdup("returns null on null input");
+}
+| STRICT_P
+ {
+ $$ = mm_strdup("strict");
+}
+| IMMUTABLE
+ {
+ $$ = mm_strdup("immutable");
+}
+| STABLE
+ {
+ $$ = mm_strdup("stable");
+}
+| VOLATILE
+ {
+ $$ = mm_strdup("volatile");
+}
+| EXTERNAL SECURITY DEFINER
+ {
+ $$ = mm_strdup("external security definer");
+}
+| EXTERNAL SECURITY INVOKER
+ {
+ $$ = mm_strdup("external security invoker");
+}
+| SECURITY DEFINER
+ {
+ $$ = mm_strdup("security definer");
+}
+| SECURITY INVOKER
+ {
+ $$ = mm_strdup("security invoker");
+}
+| LEAKPROOF
+ {
+ $$ = mm_strdup("leakproof");
+}
+| NOT LEAKPROOF
+ {
+ $$ = mm_strdup("not leakproof");
+}
+| COST NumericOnly
+ {
+ $$ = cat_str(2,mm_strdup("cost"),$2);
+}
+| ROWS NumericOnly
+ {
+ $$ = cat_str(2,mm_strdup("rows"),$2);
+}
+| SUPPORT any_name
+ {
+ $$ = cat_str(2,mm_strdup("support"),$2);
+}
+| FunctionSetResetClause
+ {
+ $$ = $1;
+}
+| PARALLEL ColId
+ {
+ $$ = cat_str(2,mm_strdup("parallel"),$2);
+}
+;
+
+
+ createfunc_opt_item:
+ AS func_as
+ {
+ $$ = cat_str(2,mm_strdup("as"),$2);
+}
+| LANGUAGE NonReservedWord_or_Sconst
+ {
+ $$ = cat_str(2,mm_strdup("language"),$2);
+}
+| TRANSFORM transform_type_list
+ {
+ $$ = cat_str(2,mm_strdup("transform"),$2);
+}
+| WINDOW
+ {
+ $$ = mm_strdup("window");
+}
+| common_func_opt_item
+ {
+ $$ = $1;
+}
+;
+
+
+ func_as:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+| ecpg_sconst ',' ecpg_sconst
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ ReturnStmt:
+ RETURN a_expr
+ {
+ $$ = cat_str(2,mm_strdup("return"),$2);
+}
+;
+
+
+ opt_routine_body:
+ ReturnStmt
+ {
+ $$ = $1;
+}
+| BEGIN_P ATOMIC routine_body_stmt_list END_P
+ {
+ $$ = cat_str(3,mm_strdup("begin atomic"),$3,mm_strdup("end"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ routine_body_stmt_list:
+ routine_body_stmt_list routine_body_stmt ';'
+ {
+ $$ = cat_str(3,$1,$2,mm_strdup(";"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ routine_body_stmt:
+ stmt
+ {
+ $$ = $1;
+}
+| ReturnStmt
+ {
+ $$ = $1;
+}
+;
+
+
+ transform_type_list:
+ FOR TYPE_P Typename
+ {
+ $$ = cat_str(2,mm_strdup("for type"),$3);
+}
+| transform_type_list ',' FOR TYPE_P Typename
+ {
+ $$ = cat_str(3,$1,mm_strdup(", for type"),$5);
+}
+;
+
+
+ opt_definition:
+ WITH definition
+ {
+ $$ = cat_str(2,mm_strdup("with"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ table_func_column:
+ param_name func_type
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ table_func_column_list:
+ table_func_column
+ {
+ $$ = $1;
+}
+| table_func_column_list ',' table_func_column
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ AlterFunctionStmt:
+ ALTER FUNCTION function_with_argtypes alterfunc_opt_list opt_restrict
+ {
+ $$ = cat_str(4,mm_strdup("alter function"),$3,$4,$5);
+}
+| ALTER PROCEDURE function_with_argtypes alterfunc_opt_list opt_restrict
+ {
+ $$ = cat_str(4,mm_strdup("alter procedure"),$3,$4,$5);
+}
+| ALTER ROUTINE function_with_argtypes alterfunc_opt_list opt_restrict
+ {
+ $$ = cat_str(4,mm_strdup("alter routine"),$3,$4,$5);
+}
+;
+
+
+ alterfunc_opt_list:
+ common_func_opt_item
+ {
+ $$ = $1;
+}
+| alterfunc_opt_list common_func_opt_item
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ opt_restrict:
+ RESTRICT
+ {
+ $$ = mm_strdup("restrict");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ RemoveFuncStmt:
+ DROP FUNCTION function_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop function"),$3,$4);
+}
+| DROP FUNCTION IF_P EXISTS function_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop function if exists"),$5,$6);
+}
+| DROP PROCEDURE function_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop procedure"),$3,$4);
+}
+| DROP PROCEDURE IF_P EXISTS function_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop procedure if exists"),$5,$6);
+}
+| DROP ROUTINE function_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop routine"),$3,$4);
+}
+| DROP ROUTINE IF_P EXISTS function_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop routine if exists"),$5,$6);
+}
+;
+
+
+ RemoveAggrStmt:
+ DROP AGGREGATE aggregate_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop aggregate"),$3,$4);
+}
+| DROP AGGREGATE IF_P EXISTS aggregate_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop aggregate if exists"),$5,$6);
+}
+;
+
+
+ RemoveOperStmt:
+ DROP OPERATOR operator_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop operator"),$3,$4);
+}
+| DROP OPERATOR IF_P EXISTS operator_with_argtypes_list opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop operator if exists"),$5,$6);
+}
+;
+
+
+ oper_argtypes:
+ '(' Typename ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+| '(' Typename ',' Typename ')'
+ {
+ $$ = cat_str(5,mm_strdup("("),$2,mm_strdup(","),$4,mm_strdup(")"));
+}
+| '(' NONE ',' Typename ')'
+ {
+ $$ = cat_str(3,mm_strdup("( none ,"),$4,mm_strdup(")"));
+}
+| '(' Typename ',' NONE ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(", none )"));
+}
+;
+
+
+ any_operator:
+ all_Op
+ {
+ $$ = $1;
+}
+| ColId '.' any_operator
+ {
+ $$ = cat_str(3,$1,mm_strdup("."),$3);
+}
+;
+
+
+ operator_with_argtypes_list:
+ operator_with_argtypes
+ {
+ $$ = $1;
+}
+| operator_with_argtypes_list ',' operator_with_argtypes
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ operator_with_argtypes:
+ any_operator oper_argtypes
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ DoStmt:
+ DO dostmt_opt_list
+ {
+ $$ = cat_str(2,mm_strdup("do"),$2);
+}
+;
+
+
+ dostmt_opt_list:
+ dostmt_opt_item
+ {
+ $$ = $1;
+}
+| dostmt_opt_list dostmt_opt_item
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ dostmt_opt_item:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+| LANGUAGE NonReservedWord_or_Sconst
+ {
+ $$ = cat_str(2,mm_strdup("language"),$2);
+}
+;
+
+
+ CreateCastStmt:
+ CREATE CAST '(' Typename AS Typename ')' WITH FUNCTION function_with_argtypes cast_context
+ {
+ $$ = cat_str(7,mm_strdup("create cast ("),$4,mm_strdup("as"),$6,mm_strdup(") with function"),$10,$11);
+}
+| CREATE CAST '(' Typename AS Typename ')' WITHOUT FUNCTION cast_context
+ {
+ $$ = cat_str(6,mm_strdup("create cast ("),$4,mm_strdup("as"),$6,mm_strdup(") without function"),$10);
+}
+| CREATE CAST '(' Typename AS Typename ')' WITH INOUT cast_context
+ {
+ $$ = cat_str(6,mm_strdup("create cast ("),$4,mm_strdup("as"),$6,mm_strdup(") with inout"),$10);
+}
+;
+
+
+ cast_context:
+ AS IMPLICIT_P
+ {
+ $$ = mm_strdup("as implicit");
+}
+| AS ASSIGNMENT
+ {
+ $$ = mm_strdup("as assignment");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ DropCastStmt:
+ DROP CAST opt_if_exists '(' Typename AS Typename ')' opt_drop_behavior
+ {
+ $$ = cat_str(8,mm_strdup("drop cast"),$3,mm_strdup("("),$5,mm_strdup("as"),$7,mm_strdup(")"),$9);
+}
+;
+
+
+ opt_if_exists:
+ IF_P EXISTS
+ {
+ $$ = mm_strdup("if exists");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ CreateTransformStmt:
+ CREATE opt_or_replace TRANSFORM FOR Typename LANGUAGE name '(' transform_element_list ')'
+ {
+ $$ = cat_str(9,mm_strdup("create"),$2,mm_strdup("transform for"),$5,mm_strdup("language"),$7,mm_strdup("("),$9,mm_strdup(")"));
+}
+;
+
+
+ transform_element_list:
+ FROM SQL_P WITH FUNCTION function_with_argtypes ',' TO SQL_P WITH FUNCTION function_with_argtypes
+ {
+ $$ = cat_str(4,mm_strdup("from sql with function"),$5,mm_strdup(", to sql with function"),$11);
+}
+| TO SQL_P WITH FUNCTION function_with_argtypes ',' FROM SQL_P WITH FUNCTION function_with_argtypes
+ {
+ $$ = cat_str(4,mm_strdup("to sql with function"),$5,mm_strdup(", from sql with function"),$11);
+}
+| FROM SQL_P WITH FUNCTION function_with_argtypes
+ {
+ $$ = cat_str(2,mm_strdup("from sql with function"),$5);
+}
+| TO SQL_P WITH FUNCTION function_with_argtypes
+ {
+ $$ = cat_str(2,mm_strdup("to sql with function"),$5);
+}
+;
+
+
+ DropTransformStmt:
+ DROP TRANSFORM opt_if_exists FOR Typename LANGUAGE name opt_drop_behavior
+ {
+ $$ = cat_str(7,mm_strdup("drop transform"),$3,mm_strdup("for"),$5,mm_strdup("language"),$7,$8);
+}
+;
+
+
+ ReindexStmt:
+ REINDEX reindex_target_type opt_concurrently qualified_name
+ {
+ $$ = cat_str(4,mm_strdup("reindex"),$2,$3,$4);
+}
+| REINDEX reindex_target_multitable opt_concurrently name
+ {
+ $$ = cat_str(4,mm_strdup("reindex"),$2,$3,$4);
+}
+| REINDEX '(' utility_option_list ')' reindex_target_type opt_concurrently qualified_name
+ {
+ $$ = cat_str(6,mm_strdup("reindex ("),$3,mm_strdup(")"),$5,$6,$7);
+}
+| REINDEX '(' utility_option_list ')' reindex_target_multitable opt_concurrently name
+ {
+ $$ = cat_str(6,mm_strdup("reindex ("),$3,mm_strdup(")"),$5,$6,$7);
+}
+;
+
+
+ reindex_target_type:
+ INDEX
+ {
+ $$ = mm_strdup("index");
+}
+| TABLE
+ {
+ $$ = mm_strdup("table");
+}
+;
+
+
+ reindex_target_multitable:
+ SCHEMA
+ {
+ $$ = mm_strdup("schema");
+}
+| SYSTEM_P
+ {
+ $$ = mm_strdup("system");
+}
+| DATABASE
+ {
+ $$ = mm_strdup("database");
+}
+;
+
+
+ AlterTblSpcStmt:
+ ALTER TABLESPACE name SET reloptions
+ {
+ $$ = cat_str(4,mm_strdup("alter tablespace"),$3,mm_strdup("set"),$5);
+}
+| ALTER TABLESPACE name RESET reloptions
+ {
+ $$ = cat_str(4,mm_strdup("alter tablespace"),$3,mm_strdup("reset"),$5);
+}
+;
+
+
+ RenameStmt:
+ ALTER AGGREGATE aggregate_with_argtypes RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter aggregate"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER COLLATION any_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter collation"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER CONVERSION_P any_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter conversion"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER DATABASE name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter database"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER DOMAIN_P any_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter domain"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER DOMAIN_P any_name RENAME CONSTRAINT name TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter domain"),$3,mm_strdup("rename constraint"),$6,mm_strdup("to"),$8);
+}
+| ALTER FOREIGN DATA_P WRAPPER name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter foreign data wrapper"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER FUNCTION function_with_argtypes RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter function"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER GROUP_P RoleId RENAME TO RoleId
+ {
+ $$ = cat_str(4,mm_strdup("alter group"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER opt_procedural LANGUAGE name RENAME TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter"),$2,mm_strdup("language"),$4,mm_strdup("rename to"),$7);
+}
+| ALTER OPERATOR CLASS any_name USING name RENAME TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter operator class"),$4,mm_strdup("using"),$6,mm_strdup("rename to"),$9);
+}
+| ALTER OPERATOR FAMILY any_name USING name RENAME TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter operator family"),$4,mm_strdup("using"),$6,mm_strdup("rename to"),$9);
+}
+| ALTER POLICY name ON qualified_name RENAME TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter policy"),$3,mm_strdup("on"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER POLICY IF_P EXISTS name ON qualified_name RENAME TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter policy if exists"),$5,mm_strdup("on"),$7,mm_strdup("rename to"),$10);
+}
+| ALTER PROCEDURE function_with_argtypes RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter procedure"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER PUBLICATION name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter publication"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER ROUTINE function_with_argtypes RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter routine"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER SCHEMA name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter schema"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER SERVER name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter server"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER SUBSCRIPTION name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter subscription"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER TABLE relation_expr RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter table"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER TABLE IF_P EXISTS relation_expr RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter table if exists"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER SEQUENCE qualified_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter sequence"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER SEQUENCE IF_P EXISTS qualified_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter sequence if exists"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER VIEW qualified_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter view"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER VIEW IF_P EXISTS qualified_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter view if exists"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER MATERIALIZED VIEW qualified_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter materialized view"),$4,mm_strdup("rename to"),$7);
+}
+| ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter materialized view if exists"),$6,mm_strdup("rename to"),$9);
+}
+| ALTER INDEX qualified_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter index"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER INDEX IF_P EXISTS qualified_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter index if exists"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER FOREIGN TABLE relation_expr RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter foreign table"),$4,mm_strdup("rename to"),$7);
+}
+| ALTER FOREIGN TABLE IF_P EXISTS relation_expr RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter foreign table if exists"),$6,mm_strdup("rename to"),$9);
+}
+| ALTER TABLE relation_expr RENAME opt_column name TO name
+ {
+ $$ = cat_str(7,mm_strdup("alter table"),$3,mm_strdup("rename"),$5,$6,mm_strdup("to"),$8);
+}
+| ALTER TABLE IF_P EXISTS relation_expr RENAME opt_column name TO name
+ {
+ $$ = cat_str(7,mm_strdup("alter table if exists"),$5,mm_strdup("rename"),$7,$8,mm_strdup("to"),$10);
+}
+| ALTER VIEW qualified_name RENAME opt_column name TO name
+ {
+ $$ = cat_str(7,mm_strdup("alter view"),$3,mm_strdup("rename"),$5,$6,mm_strdup("to"),$8);
+}
+| ALTER VIEW IF_P EXISTS qualified_name RENAME opt_column name TO name
+ {
+ $$ = cat_str(7,mm_strdup("alter view if exists"),$5,mm_strdup("rename"),$7,$8,mm_strdup("to"),$10);
+}
+| ALTER MATERIALIZED VIEW qualified_name RENAME opt_column name TO name
+ {
+ $$ = cat_str(7,mm_strdup("alter materialized view"),$4,mm_strdup("rename"),$6,$7,mm_strdup("to"),$9);
+}
+| ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name RENAME opt_column name TO name
+ {
+ $$ = cat_str(7,mm_strdup("alter materialized view if exists"),$6,mm_strdup("rename"),$8,$9,mm_strdup("to"),$11);
+}
+| ALTER TABLE relation_expr RENAME CONSTRAINT name TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter table"),$3,mm_strdup("rename constraint"),$6,mm_strdup("to"),$8);
+}
+| ALTER TABLE IF_P EXISTS relation_expr RENAME CONSTRAINT name TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter table if exists"),$5,mm_strdup("rename constraint"),$8,mm_strdup("to"),$10);
+}
+| ALTER FOREIGN TABLE relation_expr RENAME opt_column name TO name
+ {
+ $$ = cat_str(7,mm_strdup("alter foreign table"),$4,mm_strdup("rename"),$6,$7,mm_strdup("to"),$9);
+}
+| ALTER FOREIGN TABLE IF_P EXISTS relation_expr RENAME opt_column name TO name
+ {
+ $$ = cat_str(7,mm_strdup("alter foreign table if exists"),$6,mm_strdup("rename"),$8,$9,mm_strdup("to"),$11);
+}
+| ALTER RULE name ON qualified_name RENAME TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter rule"),$3,mm_strdup("on"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER TRIGGER name ON qualified_name RENAME TO name
+ {
+ $$ = cat_str(6,mm_strdup("alter trigger"),$3,mm_strdup("on"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER EVENT TRIGGER name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter event trigger"),$4,mm_strdup("rename to"),$7);
+}
+| ALTER ROLE RoleId RENAME TO RoleId
+ {
+ $$ = cat_str(4,mm_strdup("alter role"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER USER RoleId RENAME TO RoleId
+ {
+ $$ = cat_str(4,mm_strdup("alter user"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER TABLESPACE name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter tablespace"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER STATISTICS any_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter statistics"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER TEXT_P SEARCH PARSER any_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter text search parser"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER TEXT_P SEARCH DICTIONARY any_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter text search dictionary"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER TEXT_P SEARCH TEMPLATE any_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter text search template"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER TEXT_P SEARCH CONFIGURATION any_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter text search configuration"),$5,mm_strdup("rename to"),$8);
+}
+| ALTER TYPE_P any_name RENAME TO name
+ {
+ $$ = cat_str(4,mm_strdup("alter type"),$3,mm_strdup("rename to"),$6);
+}
+| ALTER TYPE_P any_name RENAME ATTRIBUTE name TO name opt_drop_behavior
+ {
+ $$ = cat_str(7,mm_strdup("alter type"),$3,mm_strdup("rename attribute"),$6,mm_strdup("to"),$8,$9);
+}
+;
+
+
+ opt_column:
+ COLUMN
+ {
+ $$ = mm_strdup("column");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_set_data:
+ SET DATA_P
+ {
+ $$ = mm_strdup("set data");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ AlterObjectDependsStmt:
+ ALTER FUNCTION function_with_argtypes opt_no DEPENDS ON EXTENSION name
+ {
+ $$ = cat_str(5,mm_strdup("alter function"),$3,$4,mm_strdup("depends on extension"),$8);
+}
+| ALTER PROCEDURE function_with_argtypes opt_no DEPENDS ON EXTENSION name
+ {
+ $$ = cat_str(5,mm_strdup("alter procedure"),$3,$4,mm_strdup("depends on extension"),$8);
+}
+| ALTER ROUTINE function_with_argtypes opt_no DEPENDS ON EXTENSION name
+ {
+ $$ = cat_str(5,mm_strdup("alter routine"),$3,$4,mm_strdup("depends on extension"),$8);
+}
+| ALTER TRIGGER name ON qualified_name opt_no DEPENDS ON EXTENSION name
+ {
+ $$ = cat_str(7,mm_strdup("alter trigger"),$3,mm_strdup("on"),$5,$6,mm_strdup("depends on extension"),$10);
+}
+| ALTER MATERIALIZED VIEW qualified_name opt_no DEPENDS ON EXTENSION name
+ {
+ $$ = cat_str(5,mm_strdup("alter materialized view"),$4,$5,mm_strdup("depends on extension"),$9);
+}
+| ALTER INDEX qualified_name opt_no DEPENDS ON EXTENSION name
+ {
+ $$ = cat_str(5,mm_strdup("alter index"),$3,$4,mm_strdup("depends on extension"),$8);
+}
+;
+
+
+ opt_no:
+ NO
+ {
+ $$ = mm_strdup("no");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ AlterObjectSchemaStmt:
+ ALTER AGGREGATE aggregate_with_argtypes SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter aggregate"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER COLLATION any_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter collation"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER CONVERSION_P any_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter conversion"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER DOMAIN_P any_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter domain"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER EXTENSION name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter extension"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER FUNCTION function_with_argtypes SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter function"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER OPERATOR operator_with_argtypes SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter operator"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER OPERATOR CLASS any_name USING name SET SCHEMA name
+ {
+ $$ = cat_str(6,mm_strdup("alter operator class"),$4,mm_strdup("using"),$6,mm_strdup("set schema"),$9);
+}
+| ALTER OPERATOR FAMILY any_name USING name SET SCHEMA name
+ {
+ $$ = cat_str(6,mm_strdup("alter operator family"),$4,mm_strdup("using"),$6,mm_strdup("set schema"),$9);
+}
+| ALTER PROCEDURE function_with_argtypes SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter procedure"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER ROUTINE function_with_argtypes SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter routine"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER TABLE relation_expr SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter table"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER TABLE IF_P EXISTS relation_expr SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter table if exists"),$5,mm_strdup("set schema"),$8);
+}
+| ALTER STATISTICS any_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter statistics"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER TEXT_P SEARCH PARSER any_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter text search parser"),$5,mm_strdup("set schema"),$8);
+}
+| ALTER TEXT_P SEARCH DICTIONARY any_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter text search dictionary"),$5,mm_strdup("set schema"),$8);
+}
+| ALTER TEXT_P SEARCH TEMPLATE any_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter text search template"),$5,mm_strdup("set schema"),$8);
+}
+| ALTER TEXT_P SEARCH CONFIGURATION any_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter text search configuration"),$5,mm_strdup("set schema"),$8);
+}
+| ALTER SEQUENCE qualified_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter sequence"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER SEQUENCE IF_P EXISTS qualified_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter sequence if exists"),$5,mm_strdup("set schema"),$8);
+}
+| ALTER VIEW qualified_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter view"),$3,mm_strdup("set schema"),$6);
+}
+| ALTER VIEW IF_P EXISTS qualified_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter view if exists"),$5,mm_strdup("set schema"),$8);
+}
+| ALTER MATERIALIZED VIEW qualified_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter materialized view"),$4,mm_strdup("set schema"),$7);
+}
+| ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter materialized view if exists"),$6,mm_strdup("set schema"),$9);
+}
+| ALTER FOREIGN TABLE relation_expr SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter foreign table"),$4,mm_strdup("set schema"),$7);
+}
+| ALTER FOREIGN TABLE IF_P EXISTS relation_expr SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter foreign table if exists"),$6,mm_strdup("set schema"),$9);
+}
+| ALTER TYPE_P any_name SET SCHEMA name
+ {
+ $$ = cat_str(4,mm_strdup("alter type"),$3,mm_strdup("set schema"),$6);
+}
+;
+
+
+ AlterOperatorStmt:
+ ALTER OPERATOR operator_with_argtypes SET '(' operator_def_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("alter operator"),$3,mm_strdup("set ("),$6,mm_strdup(")"));
+}
+;
+
+
+ operator_def_list:
+ operator_def_elem
+ {
+ $$ = $1;
+}
+| operator_def_list ',' operator_def_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ operator_def_elem:
+ ColLabel '=' NONE
+ {
+ $$ = cat_str(2,$1,mm_strdup("= none"));
+}
+| ColLabel '=' operator_def_arg
+ {
+ $$ = cat_str(3,$1,mm_strdup("="),$3);
+}
+;
+
+
+ operator_def_arg:
+ func_type
+ {
+ $$ = $1;
+}
+| reserved_keyword
+ {
+ $$ = $1;
+}
+| qual_all_Op
+ {
+ $$ = $1;
+}
+| NumericOnly
+ {
+ $$ = $1;
+}
+| ecpg_sconst
+ {
+ $$ = $1;
+}
+;
+
+
+ AlterTypeStmt:
+ ALTER TYPE_P any_name SET '(' operator_def_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("alter type"),$3,mm_strdup("set ("),$6,mm_strdup(")"));
+}
+;
+
+
+ AlterOwnerStmt:
+ ALTER AGGREGATE aggregate_with_argtypes OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter aggregate"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER COLLATION any_name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter collation"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER CONVERSION_P any_name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter conversion"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER DATABASE name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter database"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER DOMAIN_P any_name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter domain"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER FUNCTION function_with_argtypes OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter function"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER opt_procedural LANGUAGE name OWNER TO RoleSpec
+ {
+ $$ = cat_str(6,mm_strdup("alter"),$2,mm_strdup("language"),$4,mm_strdup("owner to"),$7);
+}
+| ALTER LARGE_P OBJECT_P NumericOnly OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter large object"),$4,mm_strdup("owner to"),$7);
+}
+| ALTER OPERATOR operator_with_argtypes OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter operator"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER OPERATOR CLASS any_name USING name OWNER TO RoleSpec
+ {
+ $$ = cat_str(6,mm_strdup("alter operator class"),$4,mm_strdup("using"),$6,mm_strdup("owner to"),$9);
+}
+| ALTER OPERATOR FAMILY any_name USING name OWNER TO RoleSpec
+ {
+ $$ = cat_str(6,mm_strdup("alter operator family"),$4,mm_strdup("using"),$6,mm_strdup("owner to"),$9);
+}
+| ALTER PROCEDURE function_with_argtypes OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter procedure"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER ROUTINE function_with_argtypes OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter routine"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER SCHEMA name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter schema"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER TYPE_P any_name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter type"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER TABLESPACE name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter tablespace"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER STATISTICS any_name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter statistics"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER TEXT_P SEARCH DICTIONARY any_name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter text search dictionary"),$5,mm_strdup("owner to"),$8);
+}
+| ALTER TEXT_P SEARCH CONFIGURATION any_name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter text search configuration"),$5,mm_strdup("owner to"),$8);
+}
+| ALTER FOREIGN DATA_P WRAPPER name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter foreign data wrapper"),$5,mm_strdup("owner to"),$8);
+}
+| ALTER SERVER name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter server"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER EVENT TRIGGER name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter event trigger"),$4,mm_strdup("owner to"),$7);
+}
+| ALTER PUBLICATION name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter publication"),$3,mm_strdup("owner to"),$6);
+}
+| ALTER SUBSCRIPTION name OWNER TO RoleSpec
+ {
+ $$ = cat_str(4,mm_strdup("alter subscription"),$3,mm_strdup("owner to"),$6);
+}
+;
+
+
+ CreatePublicationStmt:
+ CREATE PUBLICATION name opt_definition
+ {
+ $$ = cat_str(3,mm_strdup("create publication"),$3,$4);
+}
+| CREATE PUBLICATION name FOR ALL TABLES opt_definition
+ {
+ $$ = cat_str(4,mm_strdup("create publication"),$3,mm_strdup("for all tables"),$7);
+}
+| CREATE PUBLICATION name FOR pub_obj_list opt_definition
+ {
+ $$ = cat_str(5,mm_strdup("create publication"),$3,mm_strdup("for"),$5,$6);
+}
+;
+
+
+ PublicationObjSpec:
+ TABLE relation_expr opt_column_list OptWhereClause
+ {
+ $$ = cat_str(4,mm_strdup("table"),$2,$3,$4);
+}
+| TABLES IN_P SCHEMA ColId
+ {
+ $$ = cat_str(2,mm_strdup("tables in schema"),$4);
+}
+| TABLES IN_P SCHEMA CURRENT_SCHEMA
+ {
+ $$ = mm_strdup("tables in schema current_schema");
+}
+| ColId opt_column_list OptWhereClause
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| ColId indirection opt_column_list OptWhereClause
+ {
+ $$ = cat_str(4,$1,$2,$3,$4);
+}
+| extended_relation_expr opt_column_list OptWhereClause
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| CURRENT_SCHEMA
+ {
+ $$ = mm_strdup("current_schema");
+}
+;
+
+
+ pub_obj_list:
+ PublicationObjSpec
+ {
+ $$ = $1;
+}
+| pub_obj_list ',' PublicationObjSpec
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ AlterPublicationStmt:
+ ALTER PUBLICATION name SET definition
+ {
+ $$ = cat_str(4,mm_strdup("alter publication"),$3,mm_strdup("set"),$5);
+}
+| ALTER PUBLICATION name ADD_P pub_obj_list
+ {
+ $$ = cat_str(4,mm_strdup("alter publication"),$3,mm_strdup("add"),$5);
+}
+| ALTER PUBLICATION name SET pub_obj_list
+ {
+ $$ = cat_str(4,mm_strdup("alter publication"),$3,mm_strdup("set"),$5);
+}
+| ALTER PUBLICATION name DROP pub_obj_list
+ {
+ $$ = cat_str(4,mm_strdup("alter publication"),$3,mm_strdup("drop"),$5);
+}
+;
+
+
+ CreateSubscriptionStmt:
+ CREATE SUBSCRIPTION name CONNECTION ecpg_sconst PUBLICATION name_list opt_definition
+ {
+ $$ = cat_str(7,mm_strdup("create subscription"),$3,mm_strdup("connection"),$5,mm_strdup("publication"),$7,$8);
+}
+;
+
+
+ AlterSubscriptionStmt:
+ ALTER SUBSCRIPTION name SET definition
+ {
+ $$ = cat_str(4,mm_strdup("alter subscription"),$3,mm_strdup("set"),$5);
+}
+| ALTER SUBSCRIPTION name CONNECTION ecpg_sconst
+ {
+ $$ = cat_str(4,mm_strdup("alter subscription"),$3,mm_strdup("connection"),$5);
+}
+| ALTER SUBSCRIPTION name REFRESH PUBLICATION opt_definition
+ {
+ $$ = cat_str(4,mm_strdup("alter subscription"),$3,mm_strdup("refresh publication"),$6);
+}
+| ALTER SUBSCRIPTION name ADD_P PUBLICATION name_list opt_definition
+ {
+ $$ = cat_str(5,mm_strdup("alter subscription"),$3,mm_strdup("add publication"),$6,$7);
+}
+| ALTER SUBSCRIPTION name DROP PUBLICATION name_list opt_definition
+ {
+ $$ = cat_str(5,mm_strdup("alter subscription"),$3,mm_strdup("drop publication"),$6,$7);
+}
+| ALTER SUBSCRIPTION name SET PUBLICATION name_list opt_definition
+ {
+ $$ = cat_str(5,mm_strdup("alter subscription"),$3,mm_strdup("set publication"),$6,$7);
+}
+| ALTER SUBSCRIPTION name ENABLE_P
+ {
+ $$ = cat_str(3,mm_strdup("alter subscription"),$3,mm_strdup("enable"));
+}
+| ALTER SUBSCRIPTION name DISABLE_P
+ {
+ $$ = cat_str(3,mm_strdup("alter subscription"),$3,mm_strdup("disable"));
+}
+| ALTER SUBSCRIPTION name SKIP definition
+ {
+ $$ = cat_str(4,mm_strdup("alter subscription"),$3,mm_strdup("skip"),$5);
+}
+;
+
+
+ DropSubscriptionStmt:
+ DROP SUBSCRIPTION name opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop subscription"),$3,$4);
+}
+| DROP SUBSCRIPTION IF_P EXISTS name opt_drop_behavior
+ {
+ $$ = cat_str(3,mm_strdup("drop subscription if exists"),$5,$6);
+}
+;
+
+
+ RuleStmt:
+ CREATE opt_or_replace RULE name AS ON event TO qualified_name where_clause DO opt_instead RuleActionList
+ {
+ $$ = cat_str(12,mm_strdup("create"),$2,mm_strdup("rule"),$4,mm_strdup("as on"),$7,mm_strdup("to"),$9,$10,mm_strdup("do"),$12,$13);
+}
+;
+
+
+ RuleActionList:
+ NOTHING
+ {
+ $$ = mm_strdup("nothing");
+}
+| RuleActionStmt
+ {
+ $$ = $1;
+}
+| '(' RuleActionMulti ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+;
+
+
+ RuleActionMulti:
+ RuleActionMulti ';' RuleActionStmtOrEmpty
+ {
+ $$ = cat_str(3,$1,mm_strdup(";"),$3);
+}
+| RuleActionStmtOrEmpty
+ {
+ $$ = $1;
+}
+;
+
+
+ RuleActionStmt:
+ SelectStmt
+ {
+ $$ = $1;
+}
+| InsertStmt
+ {
+ $$ = $1;
+}
+| UpdateStmt
+ {
+ $$ = $1;
+}
+| DeleteStmt
+ {
+ $$ = $1;
+}
+| NotifyStmt
+ {
+ $$ = $1;
+}
+;
+
+
+ RuleActionStmtOrEmpty:
+ RuleActionStmt
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ event:
+ SELECT
+ {
+ $$ = mm_strdup("select");
+}
+| UPDATE
+ {
+ $$ = mm_strdup("update");
+}
+| DELETE_P
+ {
+ $$ = mm_strdup("delete");
+}
+| INSERT
+ {
+ $$ = mm_strdup("insert");
+}
+;
+
+
+ opt_instead:
+ INSTEAD
+ {
+ $$ = mm_strdup("instead");
+}
+| ALSO
+ {
+ $$ = mm_strdup("also");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ NotifyStmt:
+ NOTIFY ColId notify_payload
+ {
+ $$ = cat_str(3,mm_strdup("notify"),$2,$3);
+}
+;
+
+
+ notify_payload:
+ ',' ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup(","),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ ListenStmt:
+ LISTEN ColId
+ {
+ $$ = cat_str(2,mm_strdup("listen"),$2);
+}
+;
+
+
+ UnlistenStmt:
+ UNLISTEN ColId
+ {
+ $$ = cat_str(2,mm_strdup("unlisten"),$2);
+}
+| UNLISTEN '*'
+ {
+ $$ = mm_strdup("unlisten *");
+}
+;
+
+
+ TransactionStmt:
+ ABORT_P opt_transaction opt_transaction_chain
+ {
+ $$ = cat_str(3,mm_strdup("abort"),$2,$3);
+}
+| START TRANSACTION transaction_mode_list_or_empty
+ {
+ $$ = cat_str(2,mm_strdup("start transaction"),$3);
+}
+| COMMIT opt_transaction opt_transaction_chain
+ {
+ $$ = cat_str(3,mm_strdup("commit"),$2,$3);
+}
+| ROLLBACK opt_transaction opt_transaction_chain
+ {
+ $$ = cat_str(3,mm_strdup("rollback"),$2,$3);
+}
+| SAVEPOINT ColId
+ {
+ $$ = cat_str(2,mm_strdup("savepoint"),$2);
+}
+| RELEASE SAVEPOINT ColId
+ {
+ $$ = cat_str(2,mm_strdup("release savepoint"),$3);
+}
+| RELEASE ColId
+ {
+ $$ = cat_str(2,mm_strdup("release"),$2);
+}
+| ROLLBACK opt_transaction TO SAVEPOINT ColId
+ {
+ $$ = cat_str(4,mm_strdup("rollback"),$2,mm_strdup("to savepoint"),$5);
+}
+| ROLLBACK opt_transaction TO ColId
+ {
+ $$ = cat_str(4,mm_strdup("rollback"),$2,mm_strdup("to"),$4);
+}
+| PREPARE TRANSACTION ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("prepare transaction"),$3);
+}
+| COMMIT PREPARED ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("commit prepared"),$3);
+}
+| ROLLBACK PREPARED ecpg_sconst
+ {
+ $$ = cat_str(2,mm_strdup("rollback prepared"),$3);
+}
+;
+
+
+ TransactionStmtLegacy:
+ BEGIN_P opt_transaction transaction_mode_list_or_empty
+ {
+ $$ = cat_str(3,mm_strdup("begin"),$2,$3);
+}
+| END_P opt_transaction opt_transaction_chain
+ {
+ $$ = cat_str(3,mm_strdup("end"),$2,$3);
+}
+;
+
+
+ opt_transaction:
+ WORK
+ {
+ $$ = mm_strdup("work");
+}
+| TRANSACTION
+ {
+ $$ = mm_strdup("transaction");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ transaction_mode_item:
+ ISOLATION LEVEL iso_level
+ {
+ $$ = cat_str(2,mm_strdup("isolation level"),$3);
+}
+| READ ONLY
+ {
+ $$ = mm_strdup("read only");
+}
+| READ WRITE
+ {
+ $$ = mm_strdup("read write");
+}
+| DEFERRABLE
+ {
+ $$ = mm_strdup("deferrable");
+}
+| NOT DEFERRABLE
+ {
+ $$ = mm_strdup("not deferrable");
+}
+;
+
+
+ transaction_mode_list:
+ transaction_mode_item
+ {
+ $$ = $1;
+}
+| transaction_mode_list ',' transaction_mode_item
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+| transaction_mode_list transaction_mode_item
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ transaction_mode_list_or_empty:
+ transaction_mode_list
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_transaction_chain:
+ AND CHAIN
+ {
+ $$ = mm_strdup("and chain");
+}
+| AND NO CHAIN
+ {
+ $$ = mm_strdup("and no chain");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ ViewStmt:
+ CREATE OptTemp VIEW qualified_name opt_column_list opt_reloptions AS SelectStmt opt_check_option
+ {
+ $$ = cat_str(9,mm_strdup("create"),$2,mm_strdup("view"),$4,$5,$6,mm_strdup("as"),$8,$9);
+}
+| CREATE OR REPLACE OptTemp VIEW qualified_name opt_column_list opt_reloptions AS SelectStmt opt_check_option
+ {
+ $$ = cat_str(9,mm_strdup("create or replace"),$4,mm_strdup("view"),$6,$7,$8,mm_strdup("as"),$10,$11);
+}
+| CREATE OptTemp RECURSIVE VIEW qualified_name '(' columnList ')' opt_reloptions AS SelectStmt opt_check_option
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(11,mm_strdup("create"),$2,mm_strdup("recursive view"),$5,mm_strdup("("),$7,mm_strdup(")"),$9,mm_strdup("as"),$11,$12);
+}
+| CREATE OR REPLACE OptTemp RECURSIVE VIEW qualified_name '(' columnList ')' opt_reloptions AS SelectStmt opt_check_option
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(11,mm_strdup("create or replace"),$4,mm_strdup("recursive view"),$7,mm_strdup("("),$9,mm_strdup(")"),$11,mm_strdup("as"),$13,$14);
+}
+;
+
+
+ opt_check_option:
+ WITH CHECK OPTION
+ {
+ $$ = mm_strdup("with check option");
+}
+| WITH CASCADED CHECK OPTION
+ {
+ $$ = mm_strdup("with cascaded check option");
+}
+| WITH LOCAL CHECK OPTION
+ {
+ $$ = mm_strdup("with local check option");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ LoadStmt:
+ LOAD file_name
+ {
+ $$ = cat_str(2,mm_strdup("load"),$2);
+}
+;
+
+
+ CreatedbStmt:
+ CREATE DATABASE name opt_with createdb_opt_list
+ {
+ $$ = cat_str(4,mm_strdup("create database"),$3,$4,$5);
+}
+;
+
+
+ createdb_opt_list:
+ createdb_opt_items
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ createdb_opt_items:
+ createdb_opt_item
+ {
+ $$ = $1;
+}
+| createdb_opt_items createdb_opt_item
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ createdb_opt_item:
+ createdb_opt_name opt_equal NumericOnly
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| createdb_opt_name opt_equal opt_boolean_or_string
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| createdb_opt_name opt_equal DEFAULT
+ {
+ $$ = cat_str(3,$1,$2,mm_strdup("default"));
+}
+;
+
+
+ createdb_opt_name:
+ ecpg_ident
+ {
+ $$ = $1;
+}
+| CONNECTION LIMIT
+ {
+ $$ = mm_strdup("connection limit");
+}
+| ENCODING
+ {
+ $$ = mm_strdup("encoding");
+}
+| LOCATION
+ {
+ $$ = mm_strdup("location");
+}
+| OWNER
+ {
+ $$ = mm_strdup("owner");
+}
+| TABLESPACE
+ {
+ $$ = mm_strdup("tablespace");
+}
+| TEMPLATE
+ {
+ $$ = mm_strdup("template");
+}
+;
+
+
+ opt_equal:
+ '='
+ {
+ $$ = mm_strdup("=");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ AlterDatabaseStmt:
+ ALTER DATABASE name WITH createdb_opt_list
+ {
+ $$ = cat_str(4,mm_strdup("alter database"),$3,mm_strdup("with"),$5);
+}
+| ALTER DATABASE name createdb_opt_list
+ {
+ $$ = cat_str(3,mm_strdup("alter database"),$3,$4);
+}
+| ALTER DATABASE name SET TABLESPACE name
+ {
+ $$ = cat_str(4,mm_strdup("alter database"),$3,mm_strdup("set tablespace"),$6);
+}
+| ALTER DATABASE name REFRESH COLLATION VERSION_P
+ {
+ $$ = cat_str(3,mm_strdup("alter database"),$3,mm_strdup("refresh collation version"));
+}
+;
+
+
+ AlterDatabaseSetStmt:
+ ALTER DATABASE name SetResetClause
+ {
+ $$ = cat_str(3,mm_strdup("alter database"),$3,$4);
+}
+;
+
+
+ DropdbStmt:
+ DROP DATABASE name
+ {
+ $$ = cat_str(2,mm_strdup("drop database"),$3);
+}
+| DROP DATABASE IF_P EXISTS name
+ {
+ $$ = cat_str(2,mm_strdup("drop database if exists"),$5);
+}
+| DROP DATABASE name opt_with '(' drop_option_list ')'
+ {
+ $$ = cat_str(6,mm_strdup("drop database"),$3,$4,mm_strdup("("),$6,mm_strdup(")"));
+}
+| DROP DATABASE IF_P EXISTS name opt_with '(' drop_option_list ')'
+ {
+ $$ = cat_str(6,mm_strdup("drop database if exists"),$5,$6,mm_strdup("("),$8,mm_strdup(")"));
+}
+;
+
+
+ drop_option_list:
+ drop_option
+ {
+ $$ = $1;
+}
+| drop_option_list ',' drop_option
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ drop_option:
+ FORCE
+ {
+ $$ = mm_strdup("force");
+}
+;
+
+
+ AlterCollationStmt:
+ ALTER COLLATION any_name REFRESH VERSION_P
+ {
+ $$ = cat_str(3,mm_strdup("alter collation"),$3,mm_strdup("refresh version"));
+}
+;
+
+
+ AlterSystemStmt:
+ ALTER SYSTEM_P SET generic_set
+ {
+ $$ = cat_str(2,mm_strdup("alter system set"),$4);
+}
+| ALTER SYSTEM_P RESET generic_reset
+ {
+ $$ = cat_str(2,mm_strdup("alter system reset"),$4);
+}
+;
+
+
+ CreateDomainStmt:
+ CREATE DOMAIN_P any_name opt_as Typename ColQualList
+ {
+ $$ = cat_str(5,mm_strdup("create domain"),$3,$4,$5,$6);
+}
+;
+
+
+ AlterDomainStmt:
+ ALTER DOMAIN_P any_name alter_column_default
+ {
+ $$ = cat_str(3,mm_strdup("alter domain"),$3,$4);
+}
+| ALTER DOMAIN_P any_name DROP NOT NULL_P
+ {
+ $$ = cat_str(3,mm_strdup("alter domain"),$3,mm_strdup("drop not null"));
+}
+| ALTER DOMAIN_P any_name SET NOT NULL_P
+ {
+ $$ = cat_str(3,mm_strdup("alter domain"),$3,mm_strdup("set not null"));
+}
+| ALTER DOMAIN_P any_name ADD_P TableConstraint
+ {
+ $$ = cat_str(4,mm_strdup("alter domain"),$3,mm_strdup("add"),$5);
+}
+| ALTER DOMAIN_P any_name DROP CONSTRAINT name opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("alter domain"),$3,mm_strdup("drop constraint"),$6,$7);
+}
+| ALTER DOMAIN_P any_name DROP CONSTRAINT IF_P EXISTS name opt_drop_behavior
+ {
+ $$ = cat_str(5,mm_strdup("alter domain"),$3,mm_strdup("drop constraint if exists"),$8,$9);
+}
+| ALTER DOMAIN_P any_name VALIDATE CONSTRAINT name
+ {
+ $$ = cat_str(4,mm_strdup("alter domain"),$3,mm_strdup("validate constraint"),$6);
+}
+;
+
+
+ opt_as:
+ AS
+ {
+ $$ = mm_strdup("as");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ AlterTSDictionaryStmt:
+ ALTER TEXT_P SEARCH DICTIONARY any_name definition
+ {
+ $$ = cat_str(3,mm_strdup("alter text search dictionary"),$5,$6);
+}
+;
+
+
+ AlterTSConfigurationStmt:
+ ALTER TEXT_P SEARCH CONFIGURATION any_name ADD_P MAPPING FOR name_list any_with any_name_list
+ {
+ $$ = cat_str(6,mm_strdup("alter text search configuration"),$5,mm_strdup("add mapping for"),$9,$10,$11);
+}
+| ALTER TEXT_P SEARCH CONFIGURATION any_name ALTER MAPPING FOR name_list any_with any_name_list
+ {
+ $$ = cat_str(6,mm_strdup("alter text search configuration"),$5,mm_strdup("alter mapping for"),$9,$10,$11);
+}
+| ALTER TEXT_P SEARCH CONFIGURATION any_name ALTER MAPPING REPLACE any_name any_with any_name
+ {
+ $$ = cat_str(6,mm_strdup("alter text search configuration"),$5,mm_strdup("alter mapping replace"),$9,$10,$11);
+}
+| ALTER TEXT_P SEARCH CONFIGURATION any_name ALTER MAPPING FOR name_list REPLACE any_name any_with any_name
+ {
+ $$ = cat_str(8,mm_strdup("alter text search configuration"),$5,mm_strdup("alter mapping for"),$9,mm_strdup("replace"),$11,$12,$13);
+}
+| ALTER TEXT_P SEARCH CONFIGURATION any_name DROP MAPPING FOR name_list
+ {
+ $$ = cat_str(4,mm_strdup("alter text search configuration"),$5,mm_strdup("drop mapping for"),$9);
+}
+| ALTER TEXT_P SEARCH CONFIGURATION any_name DROP MAPPING IF_P EXISTS FOR name_list
+ {
+ $$ = cat_str(4,mm_strdup("alter text search configuration"),$5,mm_strdup("drop mapping if exists for"),$11);
+}
+;
+
+
+ any_with:
+ WITH
+ {
+ $$ = mm_strdup("with");
+}
+| WITH_LA
+ {
+ $$ = mm_strdup("with");
+}
+;
+
+
+ CreateConversionStmt:
+ CREATE opt_default CONVERSION_P any_name FOR ecpg_sconst TO ecpg_sconst FROM any_name
+ {
+ $$ = cat_str(10,mm_strdup("create"),$2,mm_strdup("conversion"),$4,mm_strdup("for"),$6,mm_strdup("to"),$8,mm_strdup("from"),$10);
+}
+;
+
+
+ ClusterStmt:
+ CLUSTER opt_verbose qualified_name cluster_index_specification
+ {
+ $$ = cat_str(4,mm_strdup("cluster"),$2,$3,$4);
+}
+| CLUSTER '(' utility_option_list ')' qualified_name cluster_index_specification
+ {
+ $$ = cat_str(5,mm_strdup("cluster ("),$3,mm_strdup(")"),$5,$6);
+}
+| CLUSTER opt_verbose
+ {
+ $$ = cat_str(2,mm_strdup("cluster"),$2);
+}
+| CLUSTER opt_verbose name ON qualified_name
+ {
+ $$ = cat_str(5,mm_strdup("cluster"),$2,$3,mm_strdup("on"),$5);
+}
+;
+
+
+ cluster_index_specification:
+ USING name
+ {
+ $$ = cat_str(2,mm_strdup("using"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ VacuumStmt:
+ VACUUM opt_full opt_freeze opt_verbose opt_analyze opt_vacuum_relation_list
+ {
+ $$ = cat_str(6,mm_strdup("vacuum"),$2,$3,$4,$5,$6);
+}
+| VACUUM '(' utility_option_list ')' opt_vacuum_relation_list
+ {
+ $$ = cat_str(4,mm_strdup("vacuum ("),$3,mm_strdup(")"),$5);
+}
+;
+
+
+ AnalyzeStmt:
+ analyze_keyword opt_verbose opt_vacuum_relation_list
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| analyze_keyword '(' utility_option_list ')' opt_vacuum_relation_list
+ {
+ $$ = cat_str(5,$1,mm_strdup("("),$3,mm_strdup(")"),$5);
+}
+;
+
+
+ utility_option_list:
+ utility_option_elem
+ {
+ $$ = $1;
+}
+| utility_option_list ',' utility_option_elem
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ analyze_keyword:
+ ANALYZE
+ {
+ $$ = mm_strdup("analyze");
+}
+| ANALYSE
+ {
+ $$ = mm_strdup("analyse");
+}
+;
+
+
+ utility_option_elem:
+ utility_option_name utility_option_arg
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ utility_option_name:
+ NonReservedWord
+ {
+ $$ = $1;
+}
+| analyze_keyword
+ {
+ $$ = $1;
+}
+;
+
+
+ utility_option_arg:
+ opt_boolean_or_string
+ {
+ $$ = $1;
+}
+| NumericOnly
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_analyze:
+ analyze_keyword
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_verbose:
+ VERBOSE
+ {
+ $$ = mm_strdup("verbose");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_full:
+ FULL
+ {
+ $$ = mm_strdup("full");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_freeze:
+ FREEZE
+ {
+ $$ = mm_strdup("freeze");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_name_list:
+ '(' name_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ vacuum_relation:
+ qualified_name opt_name_list
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ vacuum_relation_list:
+ vacuum_relation
+ {
+ $$ = $1;
+}
+| vacuum_relation_list ',' vacuum_relation
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ opt_vacuum_relation_list:
+ vacuum_relation_list
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ ExplainStmt:
+ EXPLAIN ExplainableStmt
+ {
+ $$ = cat_str(2,mm_strdup("explain"),$2);
+}
+| EXPLAIN analyze_keyword opt_verbose ExplainableStmt
+ {
+ $$ = cat_str(4,mm_strdup("explain"),$2,$3,$4);
+}
+| EXPLAIN VERBOSE ExplainableStmt
+ {
+ $$ = cat_str(2,mm_strdup("explain verbose"),$3);
+}
+| EXPLAIN '(' utility_option_list ')' ExplainableStmt
+ {
+ $$ = cat_str(4,mm_strdup("explain ("),$3,mm_strdup(")"),$5);
+}
+;
+
+
+ ExplainableStmt:
+ SelectStmt
+ {
+ $$ = $1;
+}
+| InsertStmt
+ {
+ $$ = $1;
+}
+| UpdateStmt
+ {
+ $$ = $1;
+}
+| DeleteStmt
+ {
+ $$ = $1;
+}
+| MergeStmt
+ {
+ $$ = $1;
+}
+| DeclareCursorStmt
+ {
+ $$ = $1;
+}
+| CreateAsStmt
+ {
+ $$ = $1;
+}
+| CreateMatViewStmt
+ {
+ $$ = $1;
+}
+| RefreshMatViewStmt
+ {
+ $$ = $1;
+}
+| ExecuteStmt
+ {
+ $$ = $1.name;
+ }
+;
+
+
+ PrepareStmt:
+PREPARE prepared_name prep_type_clause AS PreparableStmt
+ {
+ $$.name = $2;
+ $$.type = $3;
+ $$.stmt = $5;
+ }
+ | PREPARE prepared_name FROM execstring
+ {
+ $$.name = $2;
+ $$.type = NULL;
+ $$.stmt = $4;
+ }
+;
+
+
+ prep_type_clause:
+ '(' type_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ PreparableStmt:
+ SelectStmt
+ {
+ $$ = $1;
+}
+| InsertStmt
+ {
+ $$ = $1;
+}
+| UpdateStmt
+ {
+ $$ = $1;
+}
+| DeleteStmt
+ {
+ $$ = $1;
+}
+| MergeStmt
+ {
+ $$ = $1;
+}
+;
+
+
+ ExecuteStmt:
+EXECUTE prepared_name execute_param_clause execute_rest
+ {
+ $$.name = $2;
+ $$.type = $3;
+ }
+| CREATE OptTemp TABLE create_as_target AS EXECUTE prepared_name execute_param_clause opt_with_data execute_rest
+ {
+ $$.name = cat_str(8,mm_strdup("create"),$2,mm_strdup("table"),$4,mm_strdup("as execute"),$7,$8,$9);
+ }
+| CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS EXECUTE prepared_name execute_param_clause opt_with_data execute_rest
+ {
+ $$.name = cat_str(8,mm_strdup("create"),$2,mm_strdup("table if not exists"),$7,mm_strdup("as execute"),$10,$11,$12);
+ }
+;
+
+
+ execute_param_clause:
+ '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ InsertStmt:
+ opt_with_clause INSERT INTO insert_target insert_rest opt_on_conflict returning_clause
+ {
+ $$ = cat_str(6,$1,mm_strdup("insert into"),$4,$5,$6,$7);
+}
+;
+
+
+ insert_target:
+ qualified_name
+ {
+ $$ = $1;
+}
+| qualified_name AS ColId
+ {
+ $$ = cat_str(3,$1,mm_strdup("as"),$3);
+}
+;
+
+
+ insert_rest:
+ SelectStmt
+ {
+ $$ = $1;
+}
+| OVERRIDING override_kind VALUE_P SelectStmt
+ {
+ $$ = cat_str(4,mm_strdup("overriding"),$2,mm_strdup("value"),$4);
+}
+| '(' insert_column_list ')' SelectStmt
+ {
+ $$ = cat_str(4,mm_strdup("("),$2,mm_strdup(")"),$4);
+}
+| '(' insert_column_list ')' OVERRIDING override_kind VALUE_P SelectStmt
+ {
+ $$ = cat_str(6,mm_strdup("("),$2,mm_strdup(") overriding"),$5,mm_strdup("value"),$7);
+}
+| DEFAULT VALUES
+ {
+ $$ = mm_strdup("default values");
+}
+;
+
+
+ override_kind:
+ USER
+ {
+ $$ = mm_strdup("user");
+}
+| SYSTEM_P
+ {
+ $$ = mm_strdup("system");
+}
+;
+
+
+ insert_column_list:
+ insert_column_item
+ {
+ $$ = $1;
+}
+| insert_column_list ',' insert_column_item
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ insert_column_item:
+ ColId opt_indirection
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ opt_on_conflict:
+ ON CONFLICT opt_conf_expr DO UPDATE SET set_clause_list where_clause
+ {
+ $$ = cat_str(5,mm_strdup("on conflict"),$3,mm_strdup("do update set"),$7,$8);
+}
+| ON CONFLICT opt_conf_expr DO NOTHING
+ {
+ $$ = cat_str(3,mm_strdup("on conflict"),$3,mm_strdup("do nothing"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_conf_expr:
+ '(' index_params ')' where_clause
+ {
+ $$ = cat_str(4,mm_strdup("("),$2,mm_strdup(")"),$4);
+}
+| ON CONSTRAINT name
+ {
+ $$ = cat_str(2,mm_strdup("on constraint"),$3);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ returning_clause:
+RETURNING target_list opt_ecpg_into
+ {
+ $$ = cat_str(2,mm_strdup("returning"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ DeleteStmt:
+ opt_with_clause DELETE_P FROM relation_expr_opt_alias using_clause where_or_current_clause returning_clause
+ {
+ $$ = cat_str(6,$1,mm_strdup("delete from"),$4,$5,$6,$7);
+}
+;
+
+
+ using_clause:
+ USING from_list
+ {
+ $$ = cat_str(2,mm_strdup("using"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ LockStmt:
+ LOCK_P opt_table relation_expr_list opt_lock opt_nowait
+ {
+ $$ = cat_str(5,mm_strdup("lock"),$2,$3,$4,$5);
+}
+;
+
+
+ opt_lock:
+ IN_P lock_type MODE
+ {
+ $$ = cat_str(3,mm_strdup("in"),$2,mm_strdup("mode"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ lock_type:
+ ACCESS SHARE
+ {
+ $$ = mm_strdup("access share");
+}
+| ROW SHARE
+ {
+ $$ = mm_strdup("row share");
+}
+| ROW EXCLUSIVE
+ {
+ $$ = mm_strdup("row exclusive");
+}
+| SHARE UPDATE EXCLUSIVE
+ {
+ $$ = mm_strdup("share update exclusive");
+}
+| SHARE
+ {
+ $$ = mm_strdup("share");
+}
+| SHARE ROW EXCLUSIVE
+ {
+ $$ = mm_strdup("share row exclusive");
+}
+| EXCLUSIVE
+ {
+ $$ = mm_strdup("exclusive");
+}
+| ACCESS EXCLUSIVE
+ {
+ $$ = mm_strdup("access exclusive");
+}
+;
+
+
+ opt_nowait:
+ NOWAIT
+ {
+ $$ = mm_strdup("nowait");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_nowait_or_skip:
+ NOWAIT
+ {
+ $$ = mm_strdup("nowait");
+}
+| SKIP LOCKED
+ {
+ $$ = mm_strdup("skip locked");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ UpdateStmt:
+ opt_with_clause UPDATE relation_expr_opt_alias SET set_clause_list from_clause where_or_current_clause returning_clause
+ {
+ $$ = cat_str(8,$1,mm_strdup("update"),$3,mm_strdup("set"),$5,$6,$7,$8);
+}
+;
+
+
+ set_clause_list:
+ set_clause
+ {
+ $$ = $1;
+}
+| set_clause_list ',' set_clause
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ set_clause:
+ set_target '=' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("="),$3);
+}
+| '(' set_target_list ')' '=' a_expr
+ {
+ $$ = cat_str(4,mm_strdup("("),$2,mm_strdup(") ="),$5);
+}
+;
+
+
+ set_target:
+ ColId opt_indirection
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ set_target_list:
+ set_target
+ {
+ $$ = $1;
+}
+| set_target_list ',' set_target
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ MergeStmt:
+ opt_with_clause MERGE INTO relation_expr_opt_alias USING table_ref ON a_expr merge_when_list
+ {
+ $$ = cat_str(8,$1,mm_strdup("merge into"),$4,mm_strdup("using"),$6,mm_strdup("on"),$8,$9);
+}
+;
+
+
+ merge_when_list:
+ merge_when_clause
+ {
+ $$ = $1;
+}
+| merge_when_list merge_when_clause
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ merge_when_clause:
+ WHEN MATCHED opt_merge_when_condition THEN merge_update
+ {
+ $$ = cat_str(4,mm_strdup("when matched"),$3,mm_strdup("then"),$5);
+}
+| WHEN MATCHED opt_merge_when_condition THEN merge_delete
+ {
+ $$ = cat_str(4,mm_strdup("when matched"),$3,mm_strdup("then"),$5);
+}
+| WHEN NOT MATCHED opt_merge_when_condition THEN merge_insert
+ {
+ $$ = cat_str(4,mm_strdup("when not matched"),$4,mm_strdup("then"),$6);
+}
+| WHEN MATCHED opt_merge_when_condition THEN DO NOTHING
+ {
+ $$ = cat_str(3,mm_strdup("when matched"),$3,mm_strdup("then do nothing"));
+}
+| WHEN NOT MATCHED opt_merge_when_condition THEN DO NOTHING
+ {
+ $$ = cat_str(3,mm_strdup("when not matched"),$4,mm_strdup("then do nothing"));
+}
+;
+
+
+ opt_merge_when_condition:
+ AND a_expr
+ {
+ $$ = cat_str(2,mm_strdup("and"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ merge_update:
+ UPDATE SET set_clause_list
+ {
+ $$ = cat_str(2,mm_strdup("update set"),$3);
+}
+;
+
+
+ merge_delete:
+ DELETE_P
+ {
+ $$ = mm_strdup("delete");
+}
+;
+
+
+ merge_insert:
+ INSERT merge_values_clause
+ {
+ $$ = cat_str(2,mm_strdup("insert"),$2);
+}
+| INSERT OVERRIDING override_kind VALUE_P merge_values_clause
+ {
+ $$ = cat_str(4,mm_strdup("insert overriding"),$3,mm_strdup("value"),$5);
+}
+| INSERT '(' insert_column_list ')' merge_values_clause
+ {
+ $$ = cat_str(4,mm_strdup("insert ("),$3,mm_strdup(")"),$5);
+}
+| INSERT '(' insert_column_list ')' OVERRIDING override_kind VALUE_P merge_values_clause
+ {
+ $$ = cat_str(6,mm_strdup("insert ("),$3,mm_strdup(") overriding"),$6,mm_strdup("value"),$8);
+}
+| INSERT DEFAULT VALUES
+ {
+ $$ = mm_strdup("insert default values");
+}
+;
+
+
+ merge_values_clause:
+ VALUES '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("values ("),$3,mm_strdup(")"));
+}
+;
+
+
+ DeclareCursorStmt:
+ DECLARE cursor_name cursor_options CURSOR opt_hold FOR SelectStmt
+ {
+ struct cursor *ptr, *this;
+ char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
+ char *comment, *c1, *c2;
+ int (* strcmp_fn)(const char *, const char *) = (($2[0] == ':' || $2[0] == '"') ? strcmp : pg_strcasecmp);
+
+ if (INFORMIX_MODE && pg_strcasecmp($2, "database") == 0)
+ mmfatal(PARSE_ERROR, "\"database\" cannot be used as cursor name in INFORMIX mode");
+
+ for (ptr = cur; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp_fn($2, ptr->name) == 0)
+ {
+ if ($2[0] == ':')
+ mmerror(PARSE_ERROR, ET_ERROR, "using variable \"%s\" in different declare statements is not supported", $2+1);
+ else
+ mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" is already defined", $2);
+ }
+ }
+
+ this = (struct cursor *) mm_alloc(sizeof(struct cursor));
+
+ this->next = cur;
+ this->name = $2;
+ this->function = (current_function ? mm_strdup(current_function) : NULL);
+ this->connection = connection ? mm_strdup(connection) : NULL;
+ this->opened = false;
+ this->command = cat_str(7, mm_strdup("declare"), cursor_marker, $3, mm_strdup("cursor"), $5, mm_strdup("for"), $7);
+ this->argsinsert = argsinsert;
+ this->argsinsert_oos = NULL;
+ this->argsresult = argsresult;
+ this->argsresult_oos = NULL;
+ argsinsert = argsresult = NULL;
+ cur = this;
+
+ c1 = mm_strdup(this->command);
+ if ((c2 = strstr(c1, "*/")) != NULL)
+ {
+ /* We put this text into a comment, so we better remove [*][/]. */
+ c2[0] = '.';
+ c2[1] = '.';
+ }
+ comment = cat_str(3, mm_strdup("/*"), c1, mm_strdup("*/"));
+
+ $$ = cat2_str(adjust_outofscope_cursor_vars(this), comment);
+ }
+;
+
+
+ cursor_name:
+ name
+ {
+ $$ = $1;
+}
+ | char_civar
+ {
+ char *curname = mm_alloc(strlen($1) + 2);
+ sprintf(curname, ":%s", $1);
+ free($1);
+ $1 = curname;
+ $$ = $1;
+ }
+;
+
+
+ cursor_options:
+
+ {
+ $$=EMPTY; }
+| cursor_options NO SCROLL
+ {
+ $$ = cat_str(2,$1,mm_strdup("no scroll"));
+}
+| cursor_options SCROLL
+ {
+ $$ = cat_str(2,$1,mm_strdup("scroll"));
+}
+| cursor_options BINARY
+ {
+ $$ = cat_str(2,$1,mm_strdup("binary"));
+}
+| cursor_options ASENSITIVE
+ {
+ $$ = cat_str(2,$1,mm_strdup("asensitive"));
+}
+| cursor_options INSENSITIVE
+ {
+ $$ = cat_str(2,$1,mm_strdup("insensitive"));
+}
+;
+
+
+ opt_hold:
+
+ {
+ if (compat == ECPG_COMPAT_INFORMIX_SE && autocommit)
+ $$ = mm_strdup("with hold");
+ else
+ $$ = EMPTY;
+ }
+| WITH HOLD
+ {
+ $$ = mm_strdup("with hold");
+}
+| WITHOUT HOLD
+ {
+ $$ = mm_strdup("without hold");
+}
+;
+
+
+ SelectStmt:
+ select_no_parens %prec UMINUS
+ {
+ $$ = $1;
+}
+| select_with_parens %prec UMINUS
+ {
+ $$ = $1;
+}
+;
+
+
+ select_with_parens:
+ '(' select_no_parens ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+| '(' select_with_parens ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+;
+
+
+ select_no_parens:
+ simple_select
+ {
+ $$ = $1;
+}
+| select_clause sort_clause
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| select_clause opt_sort_clause for_locking_clause opt_select_limit
+ {
+ $$ = cat_str(4,$1,$2,$3,$4);
+}
+| select_clause opt_sort_clause select_limit opt_for_locking_clause
+ {
+ $$ = cat_str(4,$1,$2,$3,$4);
+}
+| with_clause select_clause
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| with_clause select_clause sort_clause
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| with_clause select_clause opt_sort_clause for_locking_clause opt_select_limit
+ {
+ $$ = cat_str(5,$1,$2,$3,$4,$5);
+}
+| with_clause select_clause opt_sort_clause select_limit opt_for_locking_clause
+ {
+ $$ = cat_str(5,$1,$2,$3,$4,$5);
+}
+;
+
+
+ select_clause:
+ simple_select
+ {
+ $$ = $1;
+}
+| select_with_parens
+ {
+ $$ = $1;
+}
+;
+
+
+ simple_select:
+ SELECT opt_all_clause opt_target_list into_clause from_clause where_clause group_clause having_clause window_clause
+ {
+ $$ = cat_str(9,mm_strdup("select"),$2,$3,$4,$5,$6,$7,$8,$9);
+}
+| SELECT distinct_clause target_list into_clause from_clause where_clause group_clause having_clause window_clause
+ {
+ $$ = cat_str(9,mm_strdup("select"),$2,$3,$4,$5,$6,$7,$8,$9);
+}
+| values_clause
+ {
+ $$ = $1;
+}
+| TABLE relation_expr
+ {
+ $$ = cat_str(2,mm_strdup("table"),$2);
+}
+| select_clause UNION set_quantifier select_clause
+ {
+ $$ = cat_str(4,$1,mm_strdup("union"),$3,$4);
+}
+| select_clause INTERSECT set_quantifier select_clause
+ {
+ $$ = cat_str(4,$1,mm_strdup("intersect"),$3,$4);
+}
+| select_clause EXCEPT set_quantifier select_clause
+ {
+ $$ = cat_str(4,$1,mm_strdup("except"),$3,$4);
+}
+;
+
+
+ with_clause:
+ WITH cte_list
+ {
+ $$ = cat_str(2,mm_strdup("with"),$2);
+}
+| WITH_LA cte_list
+ {
+ $$ = cat_str(2,mm_strdup("with"),$2);
+}
+| WITH RECURSIVE cte_list
+ {
+ $$ = cat_str(2,mm_strdup("with recursive"),$3);
+}
+;
+
+
+ cte_list:
+ common_table_expr
+ {
+ $$ = $1;
+}
+| cte_list ',' common_table_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ common_table_expr:
+ name opt_name_list AS opt_materialized '(' PreparableStmt ')' opt_search_clause opt_cycle_clause
+ {
+ $$ = cat_str(9,$1,$2,mm_strdup("as"),$4,mm_strdup("("),$6,mm_strdup(")"),$8,$9);
+}
+;
+
+
+ opt_materialized:
+ MATERIALIZED
+ {
+ $$ = mm_strdup("materialized");
+}
+| NOT MATERIALIZED
+ {
+ $$ = mm_strdup("not materialized");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_search_clause:
+ SEARCH DEPTH FIRST_P BY columnList SET ColId
+ {
+ $$ = cat_str(4,mm_strdup("search depth first by"),$5,mm_strdup("set"),$7);
+}
+| SEARCH BREADTH FIRST_P BY columnList SET ColId
+ {
+ $$ = cat_str(4,mm_strdup("search breadth first by"),$5,mm_strdup("set"),$7);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_cycle_clause:
+ CYCLE columnList SET ColId TO AexprConst DEFAULT AexprConst USING ColId
+ {
+ $$ = cat_str(10,mm_strdup("cycle"),$2,mm_strdup("set"),$4,mm_strdup("to"),$6,mm_strdup("default"),$8,mm_strdup("using"),$10);
+}
+| CYCLE columnList SET ColId USING ColId
+ {
+ $$ = cat_str(6,mm_strdup("cycle"),$2,mm_strdup("set"),$4,mm_strdup("using"),$6);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_with_clause:
+ with_clause
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ into_clause:
+ INTO OptTempTableName
+ {
+ FoundInto = 1;
+ $$= cat2_str(mm_strdup("into"), $2);
+ }
+ | ecpg_into { $$ = EMPTY; }
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptTempTableName:
+ TEMPORARY opt_table qualified_name
+ {
+ $$ = cat_str(3,mm_strdup("temporary"),$2,$3);
+}
+| TEMP opt_table qualified_name
+ {
+ $$ = cat_str(3,mm_strdup("temp"),$2,$3);
+}
+| LOCAL TEMPORARY opt_table qualified_name
+ {
+ $$ = cat_str(3,mm_strdup("local temporary"),$3,$4);
+}
+| LOCAL TEMP opt_table qualified_name
+ {
+ $$ = cat_str(3,mm_strdup("local temp"),$3,$4);
+}
+| GLOBAL TEMPORARY opt_table qualified_name
+ {
+ $$ = cat_str(3,mm_strdup("global temporary"),$3,$4);
+}
+| GLOBAL TEMP opt_table qualified_name
+ {
+ $$ = cat_str(3,mm_strdup("global temp"),$3,$4);
+}
+| UNLOGGED opt_table qualified_name
+ {
+ $$ = cat_str(3,mm_strdup("unlogged"),$2,$3);
+}
+| TABLE qualified_name
+ {
+ $$ = cat_str(2,mm_strdup("table"),$2);
+}
+| qualified_name
+ {
+ $$ = $1;
+}
+;
+
+
+ opt_table:
+ TABLE
+ {
+ $$ = mm_strdup("table");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ set_quantifier:
+ ALL
+ {
+ $$ = mm_strdup("all");
+}
+| DISTINCT
+ {
+ $$ = mm_strdup("distinct");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ distinct_clause:
+ DISTINCT
+ {
+ $$ = mm_strdup("distinct");
+}
+| DISTINCT ON '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("distinct on ("),$4,mm_strdup(")"));
+}
+;
+
+
+ opt_all_clause:
+ ALL
+ {
+ $$ = mm_strdup("all");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_sort_clause:
+ sort_clause
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ sort_clause:
+ ORDER BY sortby_list
+ {
+ $$ = cat_str(2,mm_strdup("order by"),$3);
+}
+;
+
+
+ sortby_list:
+ sortby
+ {
+ $$ = $1;
+}
+| sortby_list ',' sortby
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ sortby:
+ a_expr USING qual_all_Op opt_nulls_order
+ {
+ $$ = cat_str(4,$1,mm_strdup("using"),$3,$4);
+}
+| a_expr opt_asc_desc opt_nulls_order
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+;
+
+
+ select_limit:
+ limit_clause offset_clause
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| offset_clause limit_clause
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| limit_clause
+ {
+ $$ = $1;
+}
+| offset_clause
+ {
+ $$ = $1;
+}
+;
+
+
+ opt_select_limit:
+ select_limit
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ limit_clause:
+ LIMIT select_limit_value
+ {
+ $$ = cat_str(2,mm_strdup("limit"),$2);
+}
+| LIMIT select_limit_value ',' select_offset_value
+ {
+ mmerror(PARSE_ERROR, ET_WARNING, "no longer supported LIMIT #,# syntax passed to server");
+ $$ = cat_str(4, mm_strdup("limit"), $2, mm_strdup(","), $4);
+ }
+| FETCH first_or_next select_fetch_first_value row_or_rows ONLY
+ {
+ $$ = cat_str(5,mm_strdup("fetch"),$2,$3,$4,mm_strdup("only"));
+}
+| FETCH first_or_next select_fetch_first_value row_or_rows WITH TIES
+ {
+ $$ = cat_str(5,mm_strdup("fetch"),$2,$3,$4,mm_strdup("with ties"));
+}
+| FETCH first_or_next row_or_rows ONLY
+ {
+ $$ = cat_str(4,mm_strdup("fetch"),$2,$3,mm_strdup("only"));
+}
+| FETCH first_or_next row_or_rows WITH TIES
+ {
+ $$ = cat_str(4,mm_strdup("fetch"),$2,$3,mm_strdup("with ties"));
+}
+;
+
+
+ offset_clause:
+ OFFSET select_offset_value
+ {
+ $$ = cat_str(2,mm_strdup("offset"),$2);
+}
+| OFFSET select_fetch_first_value row_or_rows
+ {
+ $$ = cat_str(3,mm_strdup("offset"),$2,$3);
+}
+;
+
+
+ select_limit_value:
+ a_expr
+ {
+ $$ = $1;
+}
+| ALL
+ {
+ $$ = mm_strdup("all");
+}
+;
+
+
+ select_offset_value:
+ a_expr
+ {
+ $$ = $1;
+}
+;
+
+
+ select_fetch_first_value:
+ c_expr
+ {
+ $$ = $1;
+}
+| '+' I_or_F_const
+ {
+ $$ = cat_str(2,mm_strdup("+"),$2);
+}
+| '-' I_or_F_const
+ {
+ $$ = cat_str(2,mm_strdup("-"),$2);
+}
+;
+
+
+ I_or_F_const:
+ Iconst
+ {
+ $$ = $1;
+}
+| ecpg_fconst
+ {
+ $$ = $1;
+}
+;
+
+
+ row_or_rows:
+ ROW
+ {
+ $$ = mm_strdup("row");
+}
+| ROWS
+ {
+ $$ = mm_strdup("rows");
+}
+;
+
+
+ first_or_next:
+ FIRST_P
+ {
+ $$ = mm_strdup("first");
+}
+| NEXT
+ {
+ $$ = mm_strdup("next");
+}
+;
+
+
+ group_clause:
+ GROUP_P BY set_quantifier group_by_list
+ {
+ $$ = cat_str(3,mm_strdup("group by"),$3,$4);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ group_by_list:
+ group_by_item
+ {
+ $$ = $1;
+}
+| group_by_list ',' group_by_item
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ group_by_item:
+ a_expr
+ {
+ $$ = $1;
+}
+| empty_grouping_set
+ {
+ $$ = $1;
+}
+| cube_clause
+ {
+ $$ = $1;
+}
+| rollup_clause
+ {
+ $$ = $1;
+}
+| grouping_sets_clause
+ {
+ $$ = $1;
+}
+;
+
+
+ empty_grouping_set:
+ '(' ')'
+ {
+ $$ = mm_strdup("( )");
+}
+;
+
+
+ rollup_clause:
+ ROLLUP '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("rollup ("),$3,mm_strdup(")"));
+}
+;
+
+
+ cube_clause:
+ CUBE '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("cube ("),$3,mm_strdup(")"));
+}
+;
+
+
+ grouping_sets_clause:
+ GROUPING SETS '(' group_by_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("grouping sets ("),$4,mm_strdup(")"));
+}
+;
+
+
+ having_clause:
+ HAVING a_expr
+ {
+ $$ = cat_str(2,mm_strdup("having"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ for_locking_clause:
+ for_locking_items
+ {
+ $$ = $1;
+}
+| FOR READ ONLY
+ {
+ $$ = mm_strdup("for read only");
+}
+;
+
+
+ opt_for_locking_clause:
+ for_locking_clause
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ for_locking_items:
+ for_locking_item
+ {
+ $$ = $1;
+}
+| for_locking_items for_locking_item
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ for_locking_item:
+ for_locking_strength locked_rels_list opt_nowait_or_skip
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+;
+
+
+ for_locking_strength:
+ FOR UPDATE
+ {
+ $$ = mm_strdup("for update");
+}
+| FOR NO KEY UPDATE
+ {
+ $$ = mm_strdup("for no key update");
+}
+| FOR SHARE
+ {
+ $$ = mm_strdup("for share");
+}
+| FOR KEY SHARE
+ {
+ $$ = mm_strdup("for key share");
+}
+;
+
+
+ locked_rels_list:
+ OF qualified_name_list
+ {
+ $$ = cat_str(2,mm_strdup("of"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ values_clause:
+ VALUES '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("values ("),$3,mm_strdup(")"));
+}
+| values_clause ',' '(' expr_list ')'
+ {
+ $$ = cat_str(4,$1,mm_strdup(", ("),$4,mm_strdup(")"));
+}
+;
+
+
+ from_clause:
+ FROM from_list
+ {
+ $$ = cat_str(2,mm_strdup("from"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ from_list:
+ table_ref
+ {
+ $$ = $1;
+}
+| from_list ',' table_ref
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ table_ref:
+ relation_expr opt_alias_clause
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| relation_expr opt_alias_clause tablesample_clause
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| func_table func_alias_clause
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| LATERAL_P func_table func_alias_clause
+ {
+ $$ = cat_str(3,mm_strdup("lateral"),$2,$3);
+}
+| xmltable opt_alias_clause
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| LATERAL_P xmltable opt_alias_clause
+ {
+ $$ = cat_str(3,mm_strdup("lateral"),$2,$3);
+}
+| select_with_parens opt_alias_clause
+ {
+ if ($2 == NULL)
+ mmerror(PARSE_ERROR, ET_ERROR, "subquery in FROM must have an alias");
+
+ $$ = cat_str(2,$1,$2);
+}
+| LATERAL_P select_with_parens opt_alias_clause
+ {
+ if ($3 == NULL)
+ mmerror(PARSE_ERROR, ET_ERROR, "subquery in FROM must have an alias");
+
+ $$ = cat_str(3,mm_strdup("lateral"),$2,$3);
+}
+| joined_table
+ {
+ $$ = $1;
+}
+| '(' joined_table ')' alias_clause
+ {
+ $$ = cat_str(4,mm_strdup("("),$2,mm_strdup(")"),$4);
+}
+;
+
+
+ joined_table:
+ '(' joined_table ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+| table_ref CROSS JOIN table_ref
+ {
+ $$ = cat_str(3,$1,mm_strdup("cross join"),$4);
+}
+| table_ref join_type JOIN table_ref join_qual
+ {
+ $$ = cat_str(5,$1,$2,mm_strdup("join"),$4,$5);
+}
+| table_ref JOIN table_ref join_qual
+ {
+ $$ = cat_str(4,$1,mm_strdup("join"),$3,$4);
+}
+| table_ref NATURAL join_type JOIN table_ref
+ {
+ $$ = cat_str(5,$1,mm_strdup("natural"),$3,mm_strdup("join"),$5);
+}
+| table_ref NATURAL JOIN table_ref
+ {
+ $$ = cat_str(3,$1,mm_strdup("natural join"),$4);
+}
+;
+
+
+ alias_clause:
+ AS ColId '(' name_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("as"),$2,mm_strdup("("),$4,mm_strdup(")"));
+}
+| AS ColId
+ {
+ $$ = cat_str(2,mm_strdup("as"),$2);
+}
+| ColId '(' name_list ')'
+ {
+ $$ = cat_str(4,$1,mm_strdup("("),$3,mm_strdup(")"));
+}
+| ColId
+ {
+ $$ = $1;
+}
+;
+
+
+ opt_alias_clause:
+ alias_clause
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_alias_clause_for_join_using:
+ AS ColId
+ {
+ $$ = cat_str(2,mm_strdup("as"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ func_alias_clause:
+ alias_clause
+ {
+ $$ = $1;
+}
+| AS '(' TableFuncElementList ')'
+ {
+ $$ = cat_str(3,mm_strdup("as ("),$3,mm_strdup(")"));
+}
+| AS ColId '(' TableFuncElementList ')'
+ {
+ $$ = cat_str(5,mm_strdup("as"),$2,mm_strdup("("),$4,mm_strdup(")"));
+}
+| ColId '(' TableFuncElementList ')'
+ {
+ $$ = cat_str(4,$1,mm_strdup("("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ join_type:
+ FULL opt_outer
+ {
+ $$ = cat_str(2,mm_strdup("full"),$2);
+}
+| LEFT opt_outer
+ {
+ $$ = cat_str(2,mm_strdup("left"),$2);
+}
+| RIGHT opt_outer
+ {
+ $$ = cat_str(2,mm_strdup("right"),$2);
+}
+| INNER_P
+ {
+ $$ = mm_strdup("inner");
+}
+;
+
+
+ opt_outer:
+ OUTER_P
+ {
+ $$ = mm_strdup("outer");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ join_qual:
+ USING '(' name_list ')' opt_alias_clause_for_join_using
+ {
+ $$ = cat_str(4,mm_strdup("using ("),$3,mm_strdup(")"),$5);
+}
+| ON a_expr
+ {
+ $$ = cat_str(2,mm_strdup("on"),$2);
+}
+;
+
+
+ relation_expr:
+ qualified_name
+ {
+ $$ = $1;
+}
+| extended_relation_expr
+ {
+ $$ = $1;
+}
+;
+
+
+ extended_relation_expr:
+ qualified_name '*'
+ {
+ $$ = cat_str(2,$1,mm_strdup("*"));
+}
+| ONLY qualified_name
+ {
+ $$ = cat_str(2,mm_strdup("only"),$2);
+}
+| ONLY '(' qualified_name ')'
+ {
+ $$ = cat_str(3,mm_strdup("only ("),$3,mm_strdup(")"));
+}
+;
+
+
+ relation_expr_list:
+ relation_expr
+ {
+ $$ = $1;
+}
+| relation_expr_list ',' relation_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ relation_expr_opt_alias:
+ relation_expr %prec UMINUS
+ {
+ $$ = $1;
+}
+| relation_expr ColId
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| relation_expr AS ColId
+ {
+ $$ = cat_str(3,$1,mm_strdup("as"),$3);
+}
+;
+
+
+ tablesample_clause:
+ TABLESAMPLE func_name '(' expr_list ')' opt_repeatable_clause
+ {
+ $$ = cat_str(6,mm_strdup("tablesample"),$2,mm_strdup("("),$4,mm_strdup(")"),$6);
+}
+;
+
+
+ opt_repeatable_clause:
+ REPEATABLE '(' a_expr ')'
+ {
+ $$ = cat_str(3,mm_strdup("repeatable ("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ func_table:
+ func_expr_windowless opt_ordinality
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| ROWS FROM '(' rowsfrom_list ')' opt_ordinality
+ {
+ $$ = cat_str(4,mm_strdup("rows from ("),$4,mm_strdup(")"),$6);
+}
+;
+
+
+ rowsfrom_item:
+ func_expr_windowless opt_col_def_list
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ rowsfrom_list:
+ rowsfrom_item
+ {
+ $$ = $1;
+}
+| rowsfrom_list ',' rowsfrom_item
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ opt_col_def_list:
+ AS '(' TableFuncElementList ')'
+ {
+ $$ = cat_str(3,mm_strdup("as ("),$3,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_ordinality:
+ WITH_LA ORDINALITY
+ {
+ $$ = mm_strdup("with ordinality");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ where_clause:
+ WHERE a_expr
+ {
+ $$ = cat_str(2,mm_strdup("where"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ where_or_current_clause:
+ WHERE a_expr
+ {
+ $$ = cat_str(2,mm_strdup("where"),$2);
+}
+| WHERE CURRENT_P OF cursor_name
+ {
+ char *cursor_marker = $4[0] == ':' ? mm_strdup("$0") : $4;
+ $$ = cat_str(2,mm_strdup("where current of"), cursor_marker);
+ }
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ OptTableFuncElementList:
+ TableFuncElementList
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ TableFuncElementList:
+ TableFuncElement
+ {
+ $$ = $1;
+}
+| TableFuncElementList ',' TableFuncElement
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ TableFuncElement:
+ ColId Typename opt_collate_clause
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+;
+
+
+ xmltable:
+ XMLTABLE '(' c_expr xmlexists_argument COLUMNS xmltable_column_list ')'
+ {
+ $$ = cat_str(6,mm_strdup("xmltable ("),$3,$4,mm_strdup("columns"),$6,mm_strdup(")"));
+}
+| XMLTABLE '(' XMLNAMESPACES '(' xml_namespace_list ')' ',' c_expr xmlexists_argument COLUMNS xmltable_column_list ')'
+ {
+ $$ = cat_str(8,mm_strdup("xmltable ( xmlnamespaces ("),$5,mm_strdup(") ,"),$8,$9,mm_strdup("columns"),$11,mm_strdup(")"));
+}
+;
+
+
+ xmltable_column_list:
+ xmltable_column_el
+ {
+ $$ = $1;
+}
+| xmltable_column_list ',' xmltable_column_el
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ xmltable_column_el:
+ ColId Typename
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| ColId Typename xmltable_column_option_list
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| ColId FOR ORDINALITY
+ {
+ $$ = cat_str(2,$1,mm_strdup("for ordinality"));
+}
+;
+
+
+ xmltable_column_option_list:
+ xmltable_column_option_el
+ {
+ $$ = $1;
+}
+| xmltable_column_option_list xmltable_column_option_el
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ xmltable_column_option_el:
+ ecpg_ident b_expr
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| DEFAULT b_expr
+ {
+ $$ = cat_str(2,mm_strdup("default"),$2);
+}
+| NOT NULL_P
+ {
+ $$ = mm_strdup("not null");
+}
+| NULL_P
+ {
+ $$ = mm_strdup("null");
+}
+;
+
+
+ xml_namespace_list:
+ xml_namespace_el
+ {
+ $$ = $1;
+}
+| xml_namespace_list ',' xml_namespace_el
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ xml_namespace_el:
+ b_expr AS ColLabel
+ {
+ $$ = cat_str(3,$1,mm_strdup("as"),$3);
+}
+| DEFAULT b_expr
+ {
+ $$ = cat_str(2,mm_strdup("default"),$2);
+}
+;
+
+
+ Typename:
+ SimpleTypename opt_array_bounds
+ { $$ = cat2_str($1, $2.str); }
+| SETOF SimpleTypename opt_array_bounds
+ { $$ = cat_str(3, mm_strdup("setof"), $2, $3.str); }
+| SimpleTypename ARRAY '[' Iconst ']'
+ {
+ $$ = cat_str(4,$1,mm_strdup("array ["),$4,mm_strdup("]"));
+}
+| SETOF SimpleTypename ARRAY '[' Iconst ']'
+ {
+ $$ = cat_str(5,mm_strdup("setof"),$2,mm_strdup("array ["),$5,mm_strdup("]"));
+}
+| SimpleTypename ARRAY
+ {
+ $$ = cat_str(2,$1,mm_strdup("array"));
+}
+| SETOF SimpleTypename ARRAY
+ {
+ $$ = cat_str(3,mm_strdup("setof"),$2,mm_strdup("array"));
+}
+;
+
+
+ opt_array_bounds:
+ opt_array_bounds '[' ']'
+ {
+ $$.index1 = $1.index1;
+ $$.index2 = $1.index2;
+ if (strcmp($$.index1, "-1") == 0)
+ $$.index1 = mm_strdup("0");
+ else if (strcmp($1.index2, "-1") == 0)
+ $$.index2 = mm_strdup("0");
+ $$.str = cat_str(2, $1.str, mm_strdup("[]"));
+ }
+ | opt_array_bounds '[' Iresult ']'
+ {
+ $$.index1 = $1.index1;
+ $$.index2 = $1.index2;
+ if (strcmp($1.index1, "-1") == 0)
+ $$.index1 = mm_strdup($3);
+ else if (strcmp($1.index2, "-1") == 0)
+ $$.index2 = mm_strdup($3);
+ $$.str = cat_str(4, $1.str, mm_strdup("["), $3, mm_strdup("]"));
+ }
+|
+ {
+ $$.index1 = mm_strdup("-1");
+ $$.index2 = mm_strdup("-1");
+ $$.str= EMPTY;
+ }
+;
+
+
+ SimpleTypename:
+ GenericType
+ {
+ $$ = $1;
+}
+| Numeric
+ {
+ $$ = $1;
+}
+| Bit
+ {
+ $$ = $1;
+}
+| Character
+ {
+ $$ = $1;
+}
+| ConstDatetime
+ {
+ $$ = $1;
+}
+| ConstInterval opt_interval
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| ConstInterval '(' Iconst ')'
+ {
+ $$ = cat_str(4,$1,mm_strdup("("),$3,mm_strdup(")"));
+}
+;
+
+
+ ConstTypename:
+ Numeric
+ {
+ $$ = $1;
+}
+| ConstBit
+ {
+ $$ = $1;
+}
+| ConstCharacter
+ {
+ $$ = $1;
+}
+| ConstDatetime
+ {
+ $$ = $1;
+}
+;
+
+
+ GenericType:
+ type_function_name opt_type_modifiers
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| type_function_name attrs opt_type_modifiers
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+;
+
+
+ opt_type_modifiers:
+ '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ Numeric:
+ INT_P
+ {
+ $$ = mm_strdup("int");
+}
+| INTEGER
+ {
+ $$ = mm_strdup("integer");
+}
+| SMALLINT
+ {
+ $$ = mm_strdup("smallint");
+}
+| BIGINT
+ {
+ $$ = mm_strdup("bigint");
+}
+| REAL
+ {
+ $$ = mm_strdup("real");
+}
+| FLOAT_P opt_float
+ {
+ $$ = cat_str(2,mm_strdup("float"),$2);
+}
+| DOUBLE_P PRECISION
+ {
+ $$ = mm_strdup("double precision");
+}
+| DECIMAL_P opt_type_modifiers
+ {
+ $$ = cat_str(2,mm_strdup("decimal"),$2);
+}
+| DEC opt_type_modifiers
+ {
+ $$ = cat_str(2,mm_strdup("dec"),$2);
+}
+| NUMERIC opt_type_modifiers
+ {
+ $$ = cat_str(2,mm_strdup("numeric"),$2);
+}
+| BOOLEAN_P
+ {
+ $$ = mm_strdup("boolean");
+}
+;
+
+
+ opt_float:
+ '(' Iconst ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ Bit:
+ BitWithLength
+ {
+ $$ = $1;
+}
+| BitWithoutLength
+ {
+ $$ = $1;
+}
+;
+
+
+ ConstBit:
+ BitWithLength
+ {
+ $$ = $1;
+}
+| BitWithoutLength
+ {
+ $$ = $1;
+}
+;
+
+
+ BitWithLength:
+ BIT opt_varying '(' expr_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("bit"),$2,mm_strdup("("),$4,mm_strdup(")"));
+}
+;
+
+
+ BitWithoutLength:
+ BIT opt_varying
+ {
+ $$ = cat_str(2,mm_strdup("bit"),$2);
+}
+;
+
+
+ Character:
+ CharacterWithLength
+ {
+ $$ = $1;
+}
+| CharacterWithoutLength
+ {
+ $$ = $1;
+}
+;
+
+
+ ConstCharacter:
+ CharacterWithLength
+ {
+ $$ = $1;
+}
+| CharacterWithoutLength
+ {
+ $$ = $1;
+}
+;
+
+
+ CharacterWithLength:
+ character '(' Iconst ')'
+ {
+ $$ = cat_str(4,$1,mm_strdup("("),$3,mm_strdup(")"));
+}
+;
+
+
+ CharacterWithoutLength:
+ character
+ {
+ $$ = $1;
+}
+;
+
+
+ character:
+ CHARACTER opt_varying
+ {
+ $$ = cat_str(2,mm_strdup("character"),$2);
+}
+| CHAR_P opt_varying
+ {
+ $$ = cat_str(2,mm_strdup("char"),$2);
+}
+| VARCHAR
+ {
+ $$ = mm_strdup("varchar");
+}
+| NATIONAL CHARACTER opt_varying
+ {
+ $$ = cat_str(2,mm_strdup("national character"),$3);
+}
+| NATIONAL CHAR_P opt_varying
+ {
+ $$ = cat_str(2,mm_strdup("national char"),$3);
+}
+| NCHAR opt_varying
+ {
+ $$ = cat_str(2,mm_strdup("nchar"),$2);
+}
+;
+
+
+ opt_varying:
+ VARYING
+ {
+ $$ = mm_strdup("varying");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ ConstDatetime:
+ TIMESTAMP '(' Iconst ')' opt_timezone
+ {
+ $$ = cat_str(4,mm_strdup("timestamp ("),$3,mm_strdup(")"),$5);
+}
+| TIMESTAMP opt_timezone
+ {
+ $$ = cat_str(2,mm_strdup("timestamp"),$2);
+}
+| TIME '(' Iconst ')' opt_timezone
+ {
+ $$ = cat_str(4,mm_strdup("time ("),$3,mm_strdup(")"),$5);
+}
+| TIME opt_timezone
+ {
+ $$ = cat_str(2,mm_strdup("time"),$2);
+}
+;
+
+
+ ConstInterval:
+ INTERVAL
+ {
+ $$ = mm_strdup("interval");
+}
+;
+
+
+ opt_timezone:
+ WITH_LA TIME ZONE
+ {
+ $$ = mm_strdup("with time zone");
+}
+| WITHOUT TIME ZONE
+ {
+ $$ = mm_strdup("without time zone");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_interval:
+ YEAR_P
+ {
+ $$ = mm_strdup("year");
+}
+| MONTH_P
+ {
+ $$ = mm_strdup("month");
+}
+| DAY_P
+ {
+ $$ = mm_strdup("day");
+}
+| HOUR_P
+ {
+ $$ = mm_strdup("hour");
+}
+| MINUTE_P
+ {
+ $$ = mm_strdup("minute");
+}
+| interval_second
+ {
+ $$ = $1;
+}
+| YEAR_P TO MONTH_P
+ {
+ $$ = mm_strdup("year to month");
+}
+| DAY_P TO HOUR_P
+ {
+ $$ = mm_strdup("day to hour");
+}
+| DAY_P TO MINUTE_P
+ {
+ $$ = mm_strdup("day to minute");
+}
+| DAY_P TO interval_second
+ {
+ $$ = cat_str(2,mm_strdup("day to"),$3);
+}
+| HOUR_P TO MINUTE_P
+ {
+ $$ = mm_strdup("hour to minute");
+}
+| HOUR_P TO interval_second
+ {
+ $$ = cat_str(2,mm_strdup("hour to"),$3);
+}
+| MINUTE_P TO interval_second
+ {
+ $$ = cat_str(2,mm_strdup("minute to"),$3);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ interval_second:
+ SECOND_P
+ {
+ $$ = mm_strdup("second");
+}
+| SECOND_P '(' Iconst ')'
+ {
+ $$ = cat_str(3,mm_strdup("second ("),$3,mm_strdup(")"));
+}
+;
+
+
+ a_expr:
+ c_expr
+ {
+ $$ = $1;
+}
+| a_expr TYPECAST Typename
+ {
+ $$ = cat_str(3,$1,mm_strdup("::"),$3);
+}
+| a_expr COLLATE any_name
+ {
+ $$ = cat_str(3,$1,mm_strdup("collate"),$3);
+}
+| a_expr AT TIME ZONE a_expr %prec AT
+ {
+ $$ = cat_str(3,$1,mm_strdup("at time zone"),$5);
+}
+| '+' a_expr %prec UMINUS
+ {
+ $$ = cat_str(2,mm_strdup("+"),$2);
+}
+| '-' a_expr %prec UMINUS
+ {
+ $$ = cat_str(2,mm_strdup("-"),$2);
+}
+| a_expr '+' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("+"),$3);
+}
+| a_expr '-' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("-"),$3);
+}
+| a_expr '*' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("*"),$3);
+}
+| a_expr '/' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("/"),$3);
+}
+| a_expr '%' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("%"),$3);
+}
+| a_expr '^' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("^"),$3);
+}
+| a_expr '<' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("<"),$3);
+}
+| a_expr '>' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(">"),$3);
+}
+| a_expr '=' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("="),$3);
+}
+| a_expr LESS_EQUALS a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("<="),$3);
+}
+| a_expr GREATER_EQUALS a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(">="),$3);
+}
+| a_expr NOT_EQUALS a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("<>"),$3);
+}
+| a_expr qual_Op a_expr %prec Op
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| qual_Op a_expr %prec Op
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| a_expr AND a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("and"),$3);
+}
+| a_expr OR a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("or"),$3);
+}
+| NOT a_expr
+ {
+ $$ = cat_str(2,mm_strdup("not"),$2);
+}
+| NOT_LA a_expr %prec NOT
+ {
+ $$ = cat_str(2,mm_strdup("not"),$2);
+}
+| a_expr LIKE a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("like"),$3);
+}
+| a_expr LIKE a_expr ESCAPE a_expr %prec LIKE
+ {
+ $$ = cat_str(5,$1,mm_strdup("like"),$3,mm_strdup("escape"),$5);
+}
+| a_expr NOT_LA LIKE a_expr %prec NOT_LA
+ {
+ $$ = cat_str(3,$1,mm_strdup("not like"),$4);
+}
+| a_expr NOT_LA LIKE a_expr ESCAPE a_expr %prec NOT_LA
+ {
+ $$ = cat_str(5,$1,mm_strdup("not like"),$4,mm_strdup("escape"),$6);
+}
+| a_expr ILIKE a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("ilike"),$3);
+}
+| a_expr ILIKE a_expr ESCAPE a_expr %prec ILIKE
+ {
+ $$ = cat_str(5,$1,mm_strdup("ilike"),$3,mm_strdup("escape"),$5);
+}
+| a_expr NOT_LA ILIKE a_expr %prec NOT_LA
+ {
+ $$ = cat_str(3,$1,mm_strdup("not ilike"),$4);
+}
+| a_expr NOT_LA ILIKE a_expr ESCAPE a_expr %prec NOT_LA
+ {
+ $$ = cat_str(5,$1,mm_strdup("not ilike"),$4,mm_strdup("escape"),$6);
+}
+| a_expr SIMILAR TO a_expr %prec SIMILAR
+ {
+ $$ = cat_str(3,$1,mm_strdup("similar to"),$4);
+}
+| a_expr SIMILAR TO a_expr ESCAPE a_expr %prec SIMILAR
+ {
+ $$ = cat_str(5,$1,mm_strdup("similar to"),$4,mm_strdup("escape"),$6);
+}
+| a_expr NOT_LA SIMILAR TO a_expr %prec NOT_LA
+ {
+ $$ = cat_str(3,$1,mm_strdup("not similar to"),$5);
+}
+| a_expr NOT_LA SIMILAR TO a_expr ESCAPE a_expr %prec NOT_LA
+ {
+ $$ = cat_str(5,$1,mm_strdup("not similar to"),$5,mm_strdup("escape"),$7);
+}
+| a_expr IS NULL_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is null"));
+}
+| a_expr ISNULL
+ {
+ $$ = cat_str(2,$1,mm_strdup("isnull"));
+}
+| a_expr IS NOT NULL_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is not null"));
+}
+| a_expr NOTNULL
+ {
+ $$ = cat_str(2,$1,mm_strdup("notnull"));
+}
+| row OVERLAPS row
+ {
+ $$ = cat_str(3,$1,mm_strdup("overlaps"),$3);
+}
+| a_expr IS TRUE_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is true"));
+}
+| a_expr IS NOT TRUE_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is not true"));
+}
+| a_expr IS FALSE_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is false"));
+}
+| a_expr IS NOT FALSE_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is not false"));
+}
+| a_expr IS UNKNOWN %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is unknown"));
+}
+| a_expr IS NOT UNKNOWN %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is not unknown"));
+}
+| a_expr IS DISTINCT FROM a_expr %prec IS
+ {
+ $$ = cat_str(3,$1,mm_strdup("is distinct from"),$5);
+}
+| a_expr IS NOT DISTINCT FROM a_expr %prec IS
+ {
+ $$ = cat_str(3,$1,mm_strdup("is not distinct from"),$6);
+}
+| a_expr BETWEEN opt_asymmetric b_expr AND a_expr %prec BETWEEN
+ {
+ $$ = cat_str(6,$1,mm_strdup("between"),$3,$4,mm_strdup("and"),$6);
+}
+| a_expr NOT_LA BETWEEN opt_asymmetric b_expr AND a_expr %prec NOT_LA
+ {
+ $$ = cat_str(6,$1,mm_strdup("not between"),$4,$5,mm_strdup("and"),$7);
+}
+| a_expr BETWEEN SYMMETRIC b_expr AND a_expr %prec BETWEEN
+ {
+ $$ = cat_str(5,$1,mm_strdup("between symmetric"),$4,mm_strdup("and"),$6);
+}
+| a_expr NOT_LA BETWEEN SYMMETRIC b_expr AND a_expr %prec NOT_LA
+ {
+ $$ = cat_str(5,$1,mm_strdup("not between symmetric"),$5,mm_strdup("and"),$7);
+}
+| a_expr IN_P in_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("in"),$3);
+}
+| a_expr NOT_LA IN_P in_expr %prec NOT_LA
+ {
+ $$ = cat_str(3,$1,mm_strdup("not in"),$4);
+}
+| a_expr subquery_Op sub_type select_with_parens %prec Op
+ {
+ $$ = cat_str(4,$1,$2,$3,$4);
+}
+| a_expr subquery_Op sub_type '(' a_expr ')' %prec Op
+ {
+ $$ = cat_str(6,$1,$2,$3,mm_strdup("("),$5,mm_strdup(")"));
+}
+| UNIQUE opt_unique_null_treatment select_with_parens
+ {
+mmerror(PARSE_ERROR, ET_WARNING, "unsupported feature will be passed to server");
+ $$ = cat_str(3,mm_strdup("unique"),$2,$3);
+}
+| a_expr IS DOCUMENT_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is document"));
+}
+| a_expr IS NOT DOCUMENT_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is not document"));
+}
+| a_expr IS NORMALIZED %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is normalized"));
+}
+| a_expr IS unicode_normal_form NORMALIZED %prec IS
+ {
+ $$ = cat_str(4,$1,mm_strdup("is"),$3,mm_strdup("normalized"));
+}
+| a_expr IS NOT NORMALIZED %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is not normalized"));
+}
+| a_expr IS NOT unicode_normal_form NORMALIZED %prec IS
+ {
+ $$ = cat_str(4,$1,mm_strdup("is not"),$4,mm_strdup("normalized"));
+}
+| DEFAULT
+ {
+ $$ = mm_strdup("default");
+}
+;
+
+
+ b_expr:
+ c_expr
+ {
+ $$ = $1;
+}
+| b_expr TYPECAST Typename
+ {
+ $$ = cat_str(3,$1,mm_strdup("::"),$3);
+}
+| '+' b_expr %prec UMINUS
+ {
+ $$ = cat_str(2,mm_strdup("+"),$2);
+}
+| '-' b_expr %prec UMINUS
+ {
+ $$ = cat_str(2,mm_strdup("-"),$2);
+}
+| b_expr '+' b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("+"),$3);
+}
+| b_expr '-' b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("-"),$3);
+}
+| b_expr '*' b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("*"),$3);
+}
+| b_expr '/' b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("/"),$3);
+}
+| b_expr '%' b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("%"),$3);
+}
+| b_expr '^' b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("^"),$3);
+}
+| b_expr '<' b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("<"),$3);
+}
+| b_expr '>' b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(">"),$3);
+}
+| b_expr '=' b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("="),$3);
+}
+| b_expr LESS_EQUALS b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("<="),$3);
+}
+| b_expr GREATER_EQUALS b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(">="),$3);
+}
+| b_expr NOT_EQUALS b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("<>"),$3);
+}
+| b_expr qual_Op b_expr %prec Op
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| qual_Op b_expr %prec Op
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| b_expr IS DISTINCT FROM b_expr %prec IS
+ {
+ $$ = cat_str(3,$1,mm_strdup("is distinct from"),$5);
+}
+| b_expr IS NOT DISTINCT FROM b_expr %prec IS
+ {
+ $$ = cat_str(3,$1,mm_strdup("is not distinct from"),$6);
+}
+| b_expr IS DOCUMENT_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is document"));
+}
+| b_expr IS NOT DOCUMENT_P %prec IS
+ {
+ $$ = cat_str(2,$1,mm_strdup("is not document"));
+}
+;
+
+
+ c_expr:
+ columnref
+ {
+ $$ = $1;
+}
+| AexprConst
+ {
+ $$ = $1;
+}
+| ecpg_param opt_indirection
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| '(' a_expr ')' opt_indirection
+ {
+ $$ = cat_str(4,mm_strdup("("),$2,mm_strdup(")"),$4);
+}
+| case_expr
+ {
+ $$ = $1;
+}
+| func_expr
+ {
+ $$ = $1;
+}
+| select_with_parens %prec UMINUS
+ {
+ $$ = $1;
+}
+| select_with_parens indirection
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| EXISTS select_with_parens
+ {
+ $$ = cat_str(2,mm_strdup("exists"),$2);
+}
+| ARRAY select_with_parens
+ {
+ $$ = cat_str(2,mm_strdup("array"),$2);
+}
+| ARRAY array_expr
+ {
+ $$ = cat_str(2,mm_strdup("array"),$2);
+}
+| explicit_row
+ {
+ $$ = $1;
+}
+| implicit_row
+ {
+ $$ = $1;
+}
+| GROUPING '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("grouping ("),$3,mm_strdup(")"));
+}
+;
+
+
+ func_application:
+ func_name '(' ')'
+ {
+ $$ = cat_str(2,$1,mm_strdup("( )"));
+}
+| func_name '(' func_arg_list opt_sort_clause ')'
+ {
+ $$ = cat_str(5,$1,mm_strdup("("),$3,$4,mm_strdup(")"));
+}
+| func_name '(' VARIADIC func_arg_expr opt_sort_clause ')'
+ {
+ $$ = cat_str(5,$1,mm_strdup("( variadic"),$4,$5,mm_strdup(")"));
+}
+| func_name '(' func_arg_list ',' VARIADIC func_arg_expr opt_sort_clause ')'
+ {
+ $$ = cat_str(7,$1,mm_strdup("("),$3,mm_strdup(", variadic"),$6,$7,mm_strdup(")"));
+}
+| func_name '(' ALL func_arg_list opt_sort_clause ')'
+ {
+ $$ = cat_str(5,$1,mm_strdup("( all"),$4,$5,mm_strdup(")"));
+}
+| func_name '(' DISTINCT func_arg_list opt_sort_clause ')'
+ {
+ $$ = cat_str(5,$1,mm_strdup("( distinct"),$4,$5,mm_strdup(")"));
+}
+| func_name '(' '*' ')'
+ {
+ $$ = cat_str(2,$1,mm_strdup("( * )"));
+}
+;
+
+
+ func_expr:
+ func_application within_group_clause filter_clause over_clause
+ {
+ $$ = cat_str(4,$1,$2,$3,$4);
+}
+| func_expr_common_subexpr
+ {
+ $$ = $1;
+}
+;
+
+
+ func_expr_windowless:
+ func_application
+ {
+ $$ = $1;
+}
+| func_expr_common_subexpr
+ {
+ $$ = $1;
+}
+;
+
+
+ func_expr_common_subexpr:
+ COLLATION FOR '(' a_expr ')'
+ {
+ $$ = cat_str(3,mm_strdup("collation for ("),$4,mm_strdup(")"));
+}
+| CURRENT_DATE
+ {
+ $$ = mm_strdup("current_date");
+}
+| CURRENT_TIME
+ {
+ $$ = mm_strdup("current_time");
+}
+| CURRENT_TIME '(' Iconst ')'
+ {
+ $$ = cat_str(3,mm_strdup("current_time ("),$3,mm_strdup(")"));
+}
+| CURRENT_TIMESTAMP
+ {
+ $$ = mm_strdup("current_timestamp");
+}
+| CURRENT_TIMESTAMP '(' Iconst ')'
+ {
+ $$ = cat_str(3,mm_strdup("current_timestamp ("),$3,mm_strdup(")"));
+}
+| LOCALTIME
+ {
+ $$ = mm_strdup("localtime");
+}
+| LOCALTIME '(' Iconst ')'
+ {
+ $$ = cat_str(3,mm_strdup("localtime ("),$3,mm_strdup(")"));
+}
+| LOCALTIMESTAMP
+ {
+ $$ = mm_strdup("localtimestamp");
+}
+| LOCALTIMESTAMP '(' Iconst ')'
+ {
+ $$ = cat_str(3,mm_strdup("localtimestamp ("),$3,mm_strdup(")"));
+}
+| CURRENT_ROLE
+ {
+ $$ = mm_strdup("current_role");
+}
+| CURRENT_USER
+ {
+ $$ = mm_strdup("current_user");
+}
+| SESSION_USER
+ {
+ $$ = mm_strdup("session_user");
+}
+| USER
+ {
+ $$ = mm_strdup("user");
+}
+| CURRENT_CATALOG
+ {
+ $$ = mm_strdup("current_catalog");
+}
+| CURRENT_SCHEMA
+ {
+ $$ = mm_strdup("current_schema");
+}
+| CAST '(' a_expr AS Typename ')'
+ {
+ $$ = cat_str(5,mm_strdup("cast ("),$3,mm_strdup("as"),$5,mm_strdup(")"));
+}
+| EXTRACT '(' extract_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("extract ("),$3,mm_strdup(")"));
+}
+| NORMALIZE '(' a_expr ')'
+ {
+ $$ = cat_str(3,mm_strdup("normalize ("),$3,mm_strdup(")"));
+}
+| NORMALIZE '(' a_expr ',' unicode_normal_form ')'
+ {
+ $$ = cat_str(5,mm_strdup("normalize ("),$3,mm_strdup(","),$5,mm_strdup(")"));
+}
+| OVERLAY '(' overlay_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("overlay ("),$3,mm_strdup(")"));
+}
+| OVERLAY '(' func_arg_list_opt ')'
+ {
+ $$ = cat_str(3,mm_strdup("overlay ("),$3,mm_strdup(")"));
+}
+| POSITION '(' position_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("position ("),$3,mm_strdup(")"));
+}
+| SUBSTRING '(' substr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("substring ("),$3,mm_strdup(")"));
+}
+| SUBSTRING '(' func_arg_list_opt ')'
+ {
+ $$ = cat_str(3,mm_strdup("substring ("),$3,mm_strdup(")"));
+}
+| TREAT '(' a_expr AS Typename ')'
+ {
+ $$ = cat_str(5,mm_strdup("treat ("),$3,mm_strdup("as"),$5,mm_strdup(")"));
+}
+| TRIM '(' BOTH trim_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("trim ( both"),$4,mm_strdup(")"));
+}
+| TRIM '(' LEADING trim_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("trim ( leading"),$4,mm_strdup(")"));
+}
+| TRIM '(' TRAILING trim_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("trim ( trailing"),$4,mm_strdup(")"));
+}
+| TRIM '(' trim_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("trim ("),$3,mm_strdup(")"));
+}
+| NULLIF '(' a_expr ',' a_expr ')'
+ {
+ $$ = cat_str(5,mm_strdup("nullif ("),$3,mm_strdup(","),$5,mm_strdup(")"));
+}
+| COALESCE '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("coalesce ("),$3,mm_strdup(")"));
+}
+| GREATEST '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("greatest ("),$3,mm_strdup(")"));
+}
+| LEAST '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("least ("),$3,mm_strdup(")"));
+}
+| XMLCONCAT '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("xmlconcat ("),$3,mm_strdup(")"));
+}
+| XMLELEMENT '(' NAME_P ColLabel ')'
+ {
+ $$ = cat_str(3,mm_strdup("xmlelement ( name"),$4,mm_strdup(")"));
+}
+| XMLELEMENT '(' NAME_P ColLabel ',' xml_attributes ')'
+ {
+ $$ = cat_str(5,mm_strdup("xmlelement ( name"),$4,mm_strdup(","),$6,mm_strdup(")"));
+}
+| XMLELEMENT '(' NAME_P ColLabel ',' expr_list ')'
+ {
+ $$ = cat_str(5,mm_strdup("xmlelement ( name"),$4,mm_strdup(","),$6,mm_strdup(")"));
+}
+| XMLELEMENT '(' NAME_P ColLabel ',' xml_attributes ',' expr_list ')'
+ {
+ $$ = cat_str(7,mm_strdup("xmlelement ( name"),$4,mm_strdup(","),$6,mm_strdup(","),$8,mm_strdup(")"));
+}
+| XMLEXISTS '(' c_expr xmlexists_argument ')'
+ {
+ $$ = cat_str(4,mm_strdup("xmlexists ("),$3,$4,mm_strdup(")"));
+}
+| XMLFOREST '(' xml_attribute_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("xmlforest ("),$3,mm_strdup(")"));
+}
+| XMLPARSE '(' document_or_content a_expr xml_whitespace_option ')'
+ {
+ $$ = cat_str(5,mm_strdup("xmlparse ("),$3,$4,$5,mm_strdup(")"));
+}
+| XMLPI '(' NAME_P ColLabel ')'
+ {
+ $$ = cat_str(3,mm_strdup("xmlpi ( name"),$4,mm_strdup(")"));
+}
+| XMLPI '(' NAME_P ColLabel ',' a_expr ')'
+ {
+ $$ = cat_str(5,mm_strdup("xmlpi ( name"),$4,mm_strdup(","),$6,mm_strdup(")"));
+}
+| XMLROOT '(' a_expr ',' xml_root_version opt_xml_root_standalone ')'
+ {
+ $$ = cat_str(6,mm_strdup("xmlroot ("),$3,mm_strdup(","),$5,$6,mm_strdup(")"));
+}
+| XMLSERIALIZE '(' document_or_content a_expr AS SimpleTypename ')'
+ {
+ $$ = cat_str(6,mm_strdup("xmlserialize ("),$3,$4,mm_strdup("as"),$6,mm_strdup(")"));
+}
+;
+
+
+ xml_root_version:
+ VERSION_P a_expr
+ {
+ $$ = cat_str(2,mm_strdup("version"),$2);
+}
+| VERSION_P NO VALUE_P
+ {
+ $$ = mm_strdup("version no value");
+}
+;
+
+
+ opt_xml_root_standalone:
+ ',' STANDALONE_P YES_P
+ {
+ $$ = mm_strdup(", standalone yes");
+}
+| ',' STANDALONE_P NO
+ {
+ $$ = mm_strdup(", standalone no");
+}
+| ',' STANDALONE_P NO VALUE_P
+ {
+ $$ = mm_strdup(", standalone no value");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ xml_attributes:
+ XMLATTRIBUTES '(' xml_attribute_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("xmlattributes ("),$3,mm_strdup(")"));
+}
+;
+
+
+ xml_attribute_list:
+ xml_attribute_el
+ {
+ $$ = $1;
+}
+| xml_attribute_list ',' xml_attribute_el
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ xml_attribute_el:
+ a_expr AS ColLabel
+ {
+ $$ = cat_str(3,$1,mm_strdup("as"),$3);
+}
+| a_expr
+ {
+ $$ = $1;
+}
+;
+
+
+ document_or_content:
+ DOCUMENT_P
+ {
+ $$ = mm_strdup("document");
+}
+| CONTENT_P
+ {
+ $$ = mm_strdup("content");
+}
+;
+
+
+ xml_whitespace_option:
+ PRESERVE WHITESPACE_P
+ {
+ $$ = mm_strdup("preserve whitespace");
+}
+| STRIP_P WHITESPACE_P
+ {
+ $$ = mm_strdup("strip whitespace");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ xmlexists_argument:
+ PASSING c_expr
+ {
+ $$ = cat_str(2,mm_strdup("passing"),$2);
+}
+| PASSING c_expr xml_passing_mech
+ {
+ $$ = cat_str(3,mm_strdup("passing"),$2,$3);
+}
+| PASSING xml_passing_mech c_expr
+ {
+ $$ = cat_str(3,mm_strdup("passing"),$2,$3);
+}
+| PASSING xml_passing_mech c_expr xml_passing_mech
+ {
+ $$ = cat_str(4,mm_strdup("passing"),$2,$3,$4);
+}
+;
+
+
+ xml_passing_mech:
+ BY REF_P
+ {
+ $$ = mm_strdup("by ref");
+}
+| BY VALUE_P
+ {
+ $$ = mm_strdup("by value");
+}
+;
+
+
+ within_group_clause:
+ WITHIN GROUP_P '(' sort_clause ')'
+ {
+ $$ = cat_str(3,mm_strdup("within group ("),$4,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ filter_clause:
+ FILTER '(' WHERE a_expr ')'
+ {
+ $$ = cat_str(3,mm_strdup("filter ( where"),$4,mm_strdup(")"));
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ window_clause:
+ WINDOW window_definition_list
+ {
+ $$ = cat_str(2,mm_strdup("window"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ window_definition_list:
+ window_definition
+ {
+ $$ = $1;
+}
+| window_definition_list ',' window_definition
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ window_definition:
+ ColId AS window_specification
+ {
+ $$ = cat_str(3,$1,mm_strdup("as"),$3);
+}
+;
+
+
+ over_clause:
+ OVER window_specification
+ {
+ $$ = cat_str(2,mm_strdup("over"),$2);
+}
+| OVER ColId
+ {
+ $$ = cat_str(2,mm_strdup("over"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ window_specification:
+ '(' opt_existing_window_name opt_partition_clause opt_sort_clause opt_frame_clause ')'
+ {
+ $$ = cat_str(6,mm_strdup("("),$2,$3,$4,$5,mm_strdup(")"));
+}
+;
+
+
+ opt_existing_window_name:
+ ColId
+ {
+ $$ = $1;
+}
+| %prec Op
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_partition_clause:
+ PARTITION BY expr_list
+ {
+ $$ = cat_str(2,mm_strdup("partition by"),$3);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_frame_clause:
+ RANGE frame_extent opt_window_exclusion_clause
+ {
+ $$ = cat_str(3,mm_strdup("range"),$2,$3);
+}
+| ROWS frame_extent opt_window_exclusion_clause
+ {
+ $$ = cat_str(3,mm_strdup("rows"),$2,$3);
+}
+| GROUPS frame_extent opt_window_exclusion_clause
+ {
+ $$ = cat_str(3,mm_strdup("groups"),$2,$3);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ frame_extent:
+ frame_bound
+ {
+ $$ = $1;
+}
+| BETWEEN frame_bound AND frame_bound
+ {
+ $$ = cat_str(4,mm_strdup("between"),$2,mm_strdup("and"),$4);
+}
+;
+
+
+ frame_bound:
+ UNBOUNDED PRECEDING
+ {
+ $$ = mm_strdup("unbounded preceding");
+}
+| UNBOUNDED FOLLOWING
+ {
+ $$ = mm_strdup("unbounded following");
+}
+| CURRENT_P ROW
+ {
+ $$ = mm_strdup("current row");
+}
+| a_expr PRECEDING
+ {
+ $$ = cat_str(2,$1,mm_strdup("preceding"));
+}
+| a_expr FOLLOWING
+ {
+ $$ = cat_str(2,$1,mm_strdup("following"));
+}
+;
+
+
+ opt_window_exclusion_clause:
+ EXCLUDE CURRENT_P ROW
+ {
+ $$ = mm_strdup("exclude current row");
+}
+| EXCLUDE GROUP_P
+ {
+ $$ = mm_strdup("exclude group");
+}
+| EXCLUDE TIES
+ {
+ $$ = mm_strdup("exclude ties");
+}
+| EXCLUDE NO OTHERS
+ {
+ $$ = mm_strdup("exclude no others");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ row:
+ ROW '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("row ("),$3,mm_strdup(")"));
+}
+| ROW '(' ')'
+ {
+ $$ = mm_strdup("row ( )");
+}
+| '(' expr_list ',' a_expr ')'
+ {
+ $$ = cat_str(5,mm_strdup("("),$2,mm_strdup(","),$4,mm_strdup(")"));
+}
+;
+
+
+ explicit_row:
+ ROW '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("row ("),$3,mm_strdup(")"));
+}
+| ROW '(' ')'
+ {
+ $$ = mm_strdup("row ( )");
+}
+;
+
+
+ implicit_row:
+ '(' expr_list ',' a_expr ')'
+ {
+ $$ = cat_str(5,mm_strdup("("),$2,mm_strdup(","),$4,mm_strdup(")"));
+}
+;
+
+
+ sub_type:
+ ANY
+ {
+ $$ = mm_strdup("any");
+}
+| SOME
+ {
+ $$ = mm_strdup("some");
+}
+| ALL
+ {
+ $$ = mm_strdup("all");
+}
+;
+
+
+ all_Op:
+ Op
+ {
+ $$ = $1;
+}
+| MathOp
+ {
+ $$ = $1;
+}
+;
+
+
+ MathOp:
+ '+'
+ {
+ $$ = mm_strdup("+");
+}
+| '-'
+ {
+ $$ = mm_strdup("-");
+}
+| '*'
+ {
+ $$ = mm_strdup("*");
+}
+| '/'
+ {
+ $$ = mm_strdup("/");
+}
+| '%'
+ {
+ $$ = mm_strdup("%");
+}
+| '^'
+ {
+ $$ = mm_strdup("^");
+}
+| '<'
+ {
+ $$ = mm_strdup("<");
+}
+| '>'
+ {
+ $$ = mm_strdup(">");
+}
+| '='
+ {
+ $$ = mm_strdup("=");
+}
+| LESS_EQUALS
+ {
+ $$ = mm_strdup("<=");
+}
+| GREATER_EQUALS
+ {
+ $$ = mm_strdup(">=");
+}
+| NOT_EQUALS
+ {
+ $$ = mm_strdup("<>");
+}
+;
+
+
+ qual_Op:
+ Op
+ {
+ $$ = $1;
+}
+| OPERATOR '(' any_operator ')'
+ {
+ $$ = cat_str(3,mm_strdup("operator ("),$3,mm_strdup(")"));
+}
+;
+
+
+ qual_all_Op:
+ all_Op
+ {
+ $$ = $1;
+}
+| OPERATOR '(' any_operator ')'
+ {
+ $$ = cat_str(3,mm_strdup("operator ("),$3,mm_strdup(")"));
+}
+;
+
+
+ subquery_Op:
+ all_Op
+ {
+ $$ = $1;
+}
+| OPERATOR '(' any_operator ')'
+ {
+ $$ = cat_str(3,mm_strdup("operator ("),$3,mm_strdup(")"));
+}
+| LIKE
+ {
+ $$ = mm_strdup("like");
+}
+| NOT_LA LIKE
+ {
+ $$ = mm_strdup("not like");
+}
+| ILIKE
+ {
+ $$ = mm_strdup("ilike");
+}
+| NOT_LA ILIKE
+ {
+ $$ = mm_strdup("not ilike");
+}
+;
+
+
+ expr_list:
+ a_expr
+ {
+ $$ = $1;
+}
+| expr_list ',' a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ func_arg_list:
+ func_arg_expr
+ {
+ $$ = $1;
+}
+| func_arg_list ',' func_arg_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ func_arg_expr:
+ a_expr
+ {
+ $$ = $1;
+}
+| param_name COLON_EQUALS a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(":="),$3);
+}
+| param_name EQUALS_GREATER a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("=>"),$3);
+}
+;
+
+
+ func_arg_list_opt:
+ func_arg_list
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ type_list:
+ Typename
+ {
+ $$ = $1;
+}
+| type_list ',' Typename
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ array_expr:
+ '[' expr_list ']'
+ {
+ $$ = cat_str(3,mm_strdup("["),$2,mm_strdup("]"));
+}
+| '[' array_expr_list ']'
+ {
+ $$ = cat_str(3,mm_strdup("["),$2,mm_strdup("]"));
+}
+| '[' ']'
+ {
+ $$ = mm_strdup("[ ]");
+}
+;
+
+
+ array_expr_list:
+ array_expr
+ {
+ $$ = $1;
+}
+| array_expr_list ',' array_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ extract_list:
+ extract_arg FROM a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("from"),$3);
+}
+;
+
+
+ extract_arg:
+ ecpg_ident
+ {
+ $$ = $1;
+}
+| YEAR_P
+ {
+ $$ = mm_strdup("year");
+}
+| MONTH_P
+ {
+ $$ = mm_strdup("month");
+}
+| DAY_P
+ {
+ $$ = mm_strdup("day");
+}
+| HOUR_P
+ {
+ $$ = mm_strdup("hour");
+}
+| MINUTE_P
+ {
+ $$ = mm_strdup("minute");
+}
+| SECOND_P
+ {
+ $$ = mm_strdup("second");
+}
+| ecpg_sconst
+ {
+ $$ = $1;
+}
+;
+
+
+ unicode_normal_form:
+ NFC
+ {
+ $$ = mm_strdup("nfc");
+}
+| NFD
+ {
+ $$ = mm_strdup("nfd");
+}
+| NFKC
+ {
+ $$ = mm_strdup("nfkc");
+}
+| NFKD
+ {
+ $$ = mm_strdup("nfkd");
+}
+;
+
+
+ overlay_list:
+ a_expr PLACING a_expr FROM a_expr FOR a_expr
+ {
+ $$ = cat_str(7,$1,mm_strdup("placing"),$3,mm_strdup("from"),$5,mm_strdup("for"),$7);
+}
+| a_expr PLACING a_expr FROM a_expr
+ {
+ $$ = cat_str(5,$1,mm_strdup("placing"),$3,mm_strdup("from"),$5);
+}
+;
+
+
+ position_list:
+ b_expr IN_P b_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("in"),$3);
+}
+;
+
+
+ substr_list:
+ a_expr FROM a_expr FOR a_expr
+ {
+ $$ = cat_str(5,$1,mm_strdup("from"),$3,mm_strdup("for"),$5);
+}
+| a_expr FOR a_expr FROM a_expr
+ {
+ $$ = cat_str(5,$1,mm_strdup("for"),$3,mm_strdup("from"),$5);
+}
+| a_expr FROM a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("from"),$3);
+}
+| a_expr FOR a_expr
+ {
+ $$ = cat_str(3,$1,mm_strdup("for"),$3);
+}
+| a_expr SIMILAR a_expr ESCAPE a_expr
+ {
+ $$ = cat_str(5,$1,mm_strdup("similar"),$3,mm_strdup("escape"),$5);
+}
+;
+
+
+ trim_list:
+ a_expr FROM expr_list
+ {
+ $$ = cat_str(3,$1,mm_strdup("from"),$3);
+}
+| FROM expr_list
+ {
+ $$ = cat_str(2,mm_strdup("from"),$2);
+}
+| expr_list
+ {
+ $$ = $1;
+}
+;
+
+
+ in_expr:
+ select_with_parens
+ {
+ $$ = $1;
+}
+| '(' expr_list ')'
+ {
+ $$ = cat_str(3,mm_strdup("("),$2,mm_strdup(")"));
+}
+;
+
+
+ case_expr:
+ CASE case_arg when_clause_list case_default END_P
+ {
+ $$ = cat_str(5,mm_strdup("case"),$2,$3,$4,mm_strdup("end"));
+}
+;
+
+
+ when_clause_list:
+ when_clause
+ {
+ $$ = $1;
+}
+| when_clause_list when_clause
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ when_clause:
+ WHEN a_expr THEN a_expr
+ {
+ $$ = cat_str(4,mm_strdup("when"),$2,mm_strdup("then"),$4);
+}
+;
+
+
+ case_default:
+ ELSE a_expr
+ {
+ $$ = cat_str(2,mm_strdup("else"),$2);
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ case_arg:
+ a_expr
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ columnref:
+ ColId
+ {
+ $$ = $1;
+}
+| ColId indirection
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ indirection_el:
+ '.' attr_name
+ {
+ $$ = cat_str(2,mm_strdup("."),$2);
+}
+| '.' '*'
+ {
+ $$ = mm_strdup(". *");
+}
+| '[' a_expr ']'
+ {
+ $$ = cat_str(3,mm_strdup("["),$2,mm_strdup("]"));
+}
+| '[' opt_slice_bound ':' opt_slice_bound ']'
+ {
+ $$ = cat_str(5,mm_strdup("["),$2,mm_strdup(":"),$4,mm_strdup("]"));
+}
+;
+
+
+ opt_slice_bound:
+ a_expr
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ indirection:
+ indirection_el
+ {
+ $$ = $1;
+}
+| indirection indirection_el
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ opt_indirection:
+
+ {
+ $$=EMPTY; }
+| opt_indirection indirection_el
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ opt_asymmetric:
+ ASYMMETRIC
+ {
+ $$ = mm_strdup("asymmetric");
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ opt_target_list:
+ target_list
+ {
+ $$ = $1;
+}
+|
+ {
+ $$=EMPTY; }
+;
+
+
+ target_list:
+ target_el
+ {
+ $$ = $1;
+}
+| target_list ',' target_el
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ target_el:
+ a_expr AS ColLabel
+ {
+ $$ = cat_str(3,$1,mm_strdup("as"),$3);
+}
+| a_expr BareColLabel
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| a_expr
+ {
+ $$ = $1;
+}
+| '*'
+ {
+ $$ = mm_strdup("*");
+}
+;
+
+
+ qualified_name_list:
+ qualified_name
+ {
+ $$ = $1;
+}
+| qualified_name_list ',' qualified_name
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ qualified_name:
+ ColId
+ {
+ $$ = $1;
+}
+| ColId indirection
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ name_list:
+ name
+ {
+ $$ = $1;
+}
+| name_list ',' name
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ name:
+ ColId
+ {
+ $$ = $1;
+}
+;
+
+
+ attr_name:
+ ColLabel
+ {
+ $$ = $1;
+}
+;
+
+
+ file_name:
+ ecpg_sconst
+ {
+ $$ = $1;
+}
+;
+
+
+ func_name:
+ type_function_name
+ {
+ $$ = $1;
+}
+| ColId indirection
+ {
+ $$ = cat_str(2,$1,$2);
+}
+;
+
+
+ AexprConst:
+ Iconst
+ {
+ $$ = $1;
+}
+| ecpg_fconst
+ {
+ $$ = $1;
+}
+| ecpg_sconst
+ {
+ $$ = $1;
+}
+| ecpg_bconst
+ {
+ $$ = $1;
+}
+| ecpg_xconst
+ {
+ $$ = $1;
+}
+| func_name ecpg_sconst
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| func_name '(' func_arg_list opt_sort_clause ')' ecpg_sconst
+ {
+ $$ = cat_str(6,$1,mm_strdup("("),$3,$4,mm_strdup(")"),$6);
+}
+| ConstTypename ecpg_sconst
+ {
+ $$ = cat_str(2,$1,$2);
+}
+| ConstInterval ecpg_sconst opt_interval
+ {
+ $$ = cat_str(3,$1,$2,$3);
+}
+| ConstInterval '(' Iconst ')' ecpg_sconst
+ {
+ $$ = cat_str(5,$1,mm_strdup("("),$3,mm_strdup(")"),$5);
+}
+| TRUE_P
+ {
+ $$ = mm_strdup("true");
+}
+| FALSE_P
+ {
+ $$ = mm_strdup("false");
+}
+| NULL_P
+ {
+ $$ = mm_strdup("null");
+}
+ | civar { $$ = $1; }
+ | civarind { $$ = $1; }
+;
+
+
+ Iconst:
+ ICONST
+ { $$ = make_name(); }
+;
+
+
+ SignedIconst:
+ Iconst
+ {
+ $$ = $1;
+}
+ | civar { $$ = $1; }
+| '+' Iconst
+ {
+ $$ = cat_str(2,mm_strdup("+"),$2);
+}
+| '-' Iconst
+ {
+ $$ = cat_str(2,mm_strdup("-"),$2);
+}
+;
+
+
+ RoleId:
+ RoleSpec
+ {
+ $$ = $1;
+}
+;
+
+
+ RoleSpec:
+ NonReservedWord
+ {
+ $$ = $1;
+}
+| CURRENT_ROLE
+ {
+ $$ = mm_strdup("current_role");
+}
+| CURRENT_USER
+ {
+ $$ = mm_strdup("current_user");
+}
+| SESSION_USER
+ {
+ $$ = mm_strdup("session_user");
+}
+;
+
+
+ role_list:
+ RoleSpec
+ {
+ $$ = $1;
+}
+| role_list ',' RoleSpec
+ {
+ $$ = cat_str(3,$1,mm_strdup(","),$3);
+}
+;
+
+
+ NonReservedWord:
+ ecpg_ident
+ {
+ $$ = $1;
+}
+| unreserved_keyword
+ {
+ $$ = $1;
+}
+| col_name_keyword
+ {
+ $$ = $1;
+}
+| type_func_name_keyword
+ {
+ $$ = $1;
+}
+;
+
+
+ BareColLabel:
+ ecpg_ident
+ {
+ $$ = $1;
+}
+| bare_label_keyword
+ {
+ $$ = $1;
+}
+;
+
+
+ unreserved_keyword:
+ ABORT_P
+ {
+ $$ = mm_strdup("abort");
+}
+| ABSOLUTE_P
+ {
+ $$ = mm_strdup("absolute");
+}
+| ACCESS
+ {
+ $$ = mm_strdup("access");
+}
+| ACTION
+ {
+ $$ = mm_strdup("action");
+}
+| ADD_P
+ {
+ $$ = mm_strdup("add");
+}
+| ADMIN
+ {
+ $$ = mm_strdup("admin");
+}
+| AFTER
+ {
+ $$ = mm_strdup("after");
+}
+| AGGREGATE
+ {
+ $$ = mm_strdup("aggregate");
+}
+| ALSO
+ {
+ $$ = mm_strdup("also");
+}
+| ALTER
+ {
+ $$ = mm_strdup("alter");
+}
+| ALWAYS
+ {
+ $$ = mm_strdup("always");
+}
+| ASENSITIVE
+ {
+ $$ = mm_strdup("asensitive");
+}
+| ASSERTION
+ {
+ $$ = mm_strdup("assertion");
+}
+| ASSIGNMENT
+ {
+ $$ = mm_strdup("assignment");
+}
+| AT
+ {
+ $$ = mm_strdup("at");
+}
+| ATOMIC
+ {
+ $$ = mm_strdup("atomic");
+}
+| ATTACH
+ {
+ $$ = mm_strdup("attach");
+}
+| ATTRIBUTE
+ {
+ $$ = mm_strdup("attribute");
+}
+| BACKWARD
+ {
+ $$ = mm_strdup("backward");
+}
+| BEFORE
+ {
+ $$ = mm_strdup("before");
+}
+| BEGIN_P
+ {
+ $$ = mm_strdup("begin");
+}
+| BREADTH
+ {
+ $$ = mm_strdup("breadth");
+}
+| BY
+ {
+ $$ = mm_strdup("by");
+}
+| CACHE
+ {
+ $$ = mm_strdup("cache");
+}
+| CALL
+ {
+ $$ = mm_strdup("call");
+}
+| CALLED
+ {
+ $$ = mm_strdup("called");
+}
+| CASCADE
+ {
+ $$ = mm_strdup("cascade");
+}
+| CASCADED
+ {
+ $$ = mm_strdup("cascaded");
+}
+| CATALOG_P
+ {
+ $$ = mm_strdup("catalog");
+}
+| CHAIN
+ {
+ $$ = mm_strdup("chain");
+}
+| CHARACTERISTICS
+ {
+ $$ = mm_strdup("characteristics");
+}
+| CHECKPOINT
+ {
+ $$ = mm_strdup("checkpoint");
+}
+| CLASS
+ {
+ $$ = mm_strdup("class");
+}
+| CLOSE
+ {
+ $$ = mm_strdup("close");
+}
+| CLUSTER
+ {
+ $$ = mm_strdup("cluster");
+}
+| COLUMNS
+ {
+ $$ = mm_strdup("columns");
+}
+| COMMENT
+ {
+ $$ = mm_strdup("comment");
+}
+| COMMENTS
+ {
+ $$ = mm_strdup("comments");
+}
+| COMMIT
+ {
+ $$ = mm_strdup("commit");
+}
+| COMMITTED
+ {
+ $$ = mm_strdup("committed");
+}
+| COMPRESSION
+ {
+ $$ = mm_strdup("compression");
+}
+| CONFIGURATION
+ {
+ $$ = mm_strdup("configuration");
+}
+| CONFLICT
+ {
+ $$ = mm_strdup("conflict");
+}
+| CONSTRAINTS
+ {
+ $$ = mm_strdup("constraints");
+}
+| CONTENT_P
+ {
+ $$ = mm_strdup("content");
+}
+| CONTINUE_P
+ {
+ $$ = mm_strdup("continue");
+}
+| CONVERSION_P
+ {
+ $$ = mm_strdup("conversion");
+}
+| COPY
+ {
+ $$ = mm_strdup("copy");
+}
+| COST
+ {
+ $$ = mm_strdup("cost");
+}
+| CSV
+ {
+ $$ = mm_strdup("csv");
+}
+| CUBE
+ {
+ $$ = mm_strdup("cube");
+}
+| CURSOR
+ {
+ $$ = mm_strdup("cursor");
+}
+| CYCLE
+ {
+ $$ = mm_strdup("cycle");
+}
+| DATA_P
+ {
+ $$ = mm_strdup("data");
+}
+| DATABASE
+ {
+ $$ = mm_strdup("database");
+}
+| DEALLOCATE
+ {
+ $$ = mm_strdup("deallocate");
+}
+| DECLARE
+ {
+ $$ = mm_strdup("declare");
+}
+| DEFAULTS
+ {
+ $$ = mm_strdup("defaults");
+}
+| DEFERRED
+ {
+ $$ = mm_strdup("deferred");
+}
+| DEFINER
+ {
+ $$ = mm_strdup("definer");
+}
+| DELETE_P
+ {
+ $$ = mm_strdup("delete");
+}
+| DELIMITER
+ {
+ $$ = mm_strdup("delimiter");
+}
+| DELIMITERS
+ {
+ $$ = mm_strdup("delimiters");
+}
+| DEPENDS
+ {
+ $$ = mm_strdup("depends");
+}
+| DEPTH
+ {
+ $$ = mm_strdup("depth");
+}
+| DETACH
+ {
+ $$ = mm_strdup("detach");
+}
+| DICTIONARY
+ {
+ $$ = mm_strdup("dictionary");
+}
+| DISABLE_P
+ {
+ $$ = mm_strdup("disable");
+}
+| DISCARD
+ {
+ $$ = mm_strdup("discard");
+}
+| DOCUMENT_P
+ {
+ $$ = mm_strdup("document");
+}
+| DOMAIN_P
+ {
+ $$ = mm_strdup("domain");
+}
+| DOUBLE_P
+ {
+ $$ = mm_strdup("double");
+}
+| DROP
+ {
+ $$ = mm_strdup("drop");
+}
+| EACH
+ {
+ $$ = mm_strdup("each");
+}
+| ENABLE_P
+ {
+ $$ = mm_strdup("enable");
+}
+| ENCODING
+ {
+ $$ = mm_strdup("encoding");
+}
+| ENCRYPTED
+ {
+ $$ = mm_strdup("encrypted");
+}
+| ENUM_P
+ {
+ $$ = mm_strdup("enum");
+}
+| ESCAPE
+ {
+ $$ = mm_strdup("escape");
+}
+| EVENT
+ {
+ $$ = mm_strdup("event");
+}
+| EXCLUDE
+ {
+ $$ = mm_strdup("exclude");
+}
+| EXCLUDING
+ {
+ $$ = mm_strdup("excluding");
+}
+| EXCLUSIVE
+ {
+ $$ = mm_strdup("exclusive");
+}
+| EXECUTE
+ {
+ $$ = mm_strdup("execute");
+}
+| EXPLAIN
+ {
+ $$ = mm_strdup("explain");
+}
+| EXPRESSION
+ {
+ $$ = mm_strdup("expression");
+}
+| EXTENSION
+ {
+ $$ = mm_strdup("extension");
+}
+| EXTERNAL
+ {
+ $$ = mm_strdup("external");
+}
+| FAMILY
+ {
+ $$ = mm_strdup("family");
+}
+| FILTER
+ {
+ $$ = mm_strdup("filter");
+}
+| FINALIZE
+ {
+ $$ = mm_strdup("finalize");
+}
+| FIRST_P
+ {
+ $$ = mm_strdup("first");
+}
+| FOLLOWING
+ {
+ $$ = mm_strdup("following");
+}
+| FORCE
+ {
+ $$ = mm_strdup("force");
+}
+| FORWARD
+ {
+ $$ = mm_strdup("forward");
+}
+| FUNCTION
+ {
+ $$ = mm_strdup("function");
+}
+| FUNCTIONS
+ {
+ $$ = mm_strdup("functions");
+}
+| GENERATED
+ {
+ $$ = mm_strdup("generated");
+}
+| GLOBAL
+ {
+ $$ = mm_strdup("global");
+}
+| GRANTED
+ {
+ $$ = mm_strdup("granted");
+}
+| GROUPS
+ {
+ $$ = mm_strdup("groups");
+}
+| HANDLER
+ {
+ $$ = mm_strdup("handler");
+}
+| HEADER_P
+ {
+ $$ = mm_strdup("header");
+}
+| HOLD
+ {
+ $$ = mm_strdup("hold");
+}
+| IDENTITY_P
+ {
+ $$ = mm_strdup("identity");
+}
+| IF_P
+ {
+ $$ = mm_strdup("if");
+}
+| IMMEDIATE
+ {
+ $$ = mm_strdup("immediate");
+}
+| IMMUTABLE
+ {
+ $$ = mm_strdup("immutable");
+}
+| IMPLICIT_P
+ {
+ $$ = mm_strdup("implicit");
+}
+| IMPORT_P
+ {
+ $$ = mm_strdup("import");
+}
+| INCLUDE
+ {
+ $$ = mm_strdup("include");
+}
+| INCLUDING
+ {
+ $$ = mm_strdup("including");
+}
+| INCREMENT
+ {
+ $$ = mm_strdup("increment");
+}
+| INDEX
+ {
+ $$ = mm_strdup("index");
+}
+| INDEXES
+ {
+ $$ = mm_strdup("indexes");
+}
+| INHERIT
+ {
+ $$ = mm_strdup("inherit");
+}
+| INHERITS
+ {
+ $$ = mm_strdup("inherits");
+}
+| INLINE_P
+ {
+ $$ = mm_strdup("inline");
+}
+| INSENSITIVE
+ {
+ $$ = mm_strdup("insensitive");
+}
+| INSERT
+ {
+ $$ = mm_strdup("insert");
+}
+| INSTEAD
+ {
+ $$ = mm_strdup("instead");
+}
+| INVOKER
+ {
+ $$ = mm_strdup("invoker");
+}
+| ISOLATION
+ {
+ $$ = mm_strdup("isolation");
+}
+| KEY
+ {
+ $$ = mm_strdup("key");
+}
+| LABEL
+ {
+ $$ = mm_strdup("label");
+}
+| LANGUAGE
+ {
+ $$ = mm_strdup("language");
+}
+| LARGE_P
+ {
+ $$ = mm_strdup("large");
+}
+| LAST_P
+ {
+ $$ = mm_strdup("last");
+}
+| LEAKPROOF
+ {
+ $$ = mm_strdup("leakproof");
+}
+| LEVEL
+ {
+ $$ = mm_strdup("level");
+}
+| LISTEN
+ {
+ $$ = mm_strdup("listen");
+}
+| LOAD
+ {
+ $$ = mm_strdup("load");
+}
+| LOCAL
+ {
+ $$ = mm_strdup("local");
+}
+| LOCATION
+ {
+ $$ = mm_strdup("location");
+}
+| LOCK_P
+ {
+ $$ = mm_strdup("lock");
+}
+| LOCKED
+ {
+ $$ = mm_strdup("locked");
+}
+| LOGGED
+ {
+ $$ = mm_strdup("logged");
+}
+| MAPPING
+ {
+ $$ = mm_strdup("mapping");
+}
+| MATCH
+ {
+ $$ = mm_strdup("match");
+}
+| MATCHED
+ {
+ $$ = mm_strdup("matched");
+}
+| MATERIALIZED
+ {
+ $$ = mm_strdup("materialized");
+}
+| MAXVALUE
+ {
+ $$ = mm_strdup("maxvalue");
+}
+| MERGE
+ {
+ $$ = mm_strdup("merge");
+}
+| METHOD
+ {
+ $$ = mm_strdup("method");
+}
+| MINVALUE
+ {
+ $$ = mm_strdup("minvalue");
+}
+| MODE
+ {
+ $$ = mm_strdup("mode");
+}
+| MOVE
+ {
+ $$ = mm_strdup("move");
+}
+| NAME_P
+ {
+ $$ = mm_strdup("name");
+}
+| NAMES
+ {
+ $$ = mm_strdup("names");
+}
+| NEW
+ {
+ $$ = mm_strdup("new");
+}
+| NEXT
+ {
+ $$ = mm_strdup("next");
+}
+| NFC
+ {
+ $$ = mm_strdup("nfc");
+}
+| NFD
+ {
+ $$ = mm_strdup("nfd");
+}
+| NFKC
+ {
+ $$ = mm_strdup("nfkc");
+}
+| NFKD
+ {
+ $$ = mm_strdup("nfkd");
+}
+| NO
+ {
+ $$ = mm_strdup("no");
+}
+| NORMALIZED
+ {
+ $$ = mm_strdup("normalized");
+}
+| NOTHING
+ {
+ $$ = mm_strdup("nothing");
+}
+| NOTIFY
+ {
+ $$ = mm_strdup("notify");
+}
+| NOWAIT
+ {
+ $$ = mm_strdup("nowait");
+}
+| NULLS_P
+ {
+ $$ = mm_strdup("nulls");
+}
+| OBJECT_P
+ {
+ $$ = mm_strdup("object");
+}
+| OF
+ {
+ $$ = mm_strdup("of");
+}
+| OFF
+ {
+ $$ = mm_strdup("off");
+}
+| OIDS
+ {
+ $$ = mm_strdup("oids");
+}
+| OLD
+ {
+ $$ = mm_strdup("old");
+}
+| OPERATOR
+ {
+ $$ = mm_strdup("operator");
+}
+| OPTION
+ {
+ $$ = mm_strdup("option");
+}
+| OPTIONS
+ {
+ $$ = mm_strdup("options");
+}
+| ORDINALITY
+ {
+ $$ = mm_strdup("ordinality");
+}
+| OTHERS
+ {
+ $$ = mm_strdup("others");
+}
+| OVER
+ {
+ $$ = mm_strdup("over");
+}
+| OVERRIDING
+ {
+ $$ = mm_strdup("overriding");
+}
+| OWNED
+ {
+ $$ = mm_strdup("owned");
+}
+| OWNER
+ {
+ $$ = mm_strdup("owner");
+}
+| PARALLEL
+ {
+ $$ = mm_strdup("parallel");
+}
+| PARAMETER
+ {
+ $$ = mm_strdup("parameter");
+}
+| PARSER
+ {
+ $$ = mm_strdup("parser");
+}
+| PARTIAL
+ {
+ $$ = mm_strdup("partial");
+}
+| PARTITION
+ {
+ $$ = mm_strdup("partition");
+}
+| PASSING
+ {
+ $$ = mm_strdup("passing");
+}
+| PASSWORD
+ {
+ $$ = mm_strdup("password");
+}
+| PLANS
+ {
+ $$ = mm_strdup("plans");
+}
+| POLICY
+ {
+ $$ = mm_strdup("policy");
+}
+| PRECEDING
+ {
+ $$ = mm_strdup("preceding");
+}
+| PREPARE
+ {
+ $$ = mm_strdup("prepare");
+}
+| PREPARED
+ {
+ $$ = mm_strdup("prepared");
+}
+| PRESERVE
+ {
+ $$ = mm_strdup("preserve");
+}
+| PRIOR
+ {
+ $$ = mm_strdup("prior");
+}
+| PRIVILEGES
+ {
+ $$ = mm_strdup("privileges");
+}
+| PROCEDURAL
+ {
+ $$ = mm_strdup("procedural");
+}
+| PROCEDURE
+ {
+ $$ = mm_strdup("procedure");
+}
+| PROCEDURES
+ {
+ $$ = mm_strdup("procedures");
+}
+| PROGRAM
+ {
+ $$ = mm_strdup("program");
+}
+| PUBLICATION
+ {
+ $$ = mm_strdup("publication");
+}
+| QUOTE
+ {
+ $$ = mm_strdup("quote");
+}
+| RANGE
+ {
+ $$ = mm_strdup("range");
+}
+| READ
+ {
+ $$ = mm_strdup("read");
+}
+| REASSIGN
+ {
+ $$ = mm_strdup("reassign");
+}
+| RECHECK
+ {
+ $$ = mm_strdup("recheck");
+}
+| RECURSIVE
+ {
+ $$ = mm_strdup("recursive");
+}
+| REF_P
+ {
+ $$ = mm_strdup("ref");
+}
+| REFERENCING
+ {
+ $$ = mm_strdup("referencing");
+}
+| REFRESH
+ {
+ $$ = mm_strdup("refresh");
+}
+| REINDEX
+ {
+ $$ = mm_strdup("reindex");
+}
+| RELATIVE_P
+ {
+ $$ = mm_strdup("relative");
+}
+| RELEASE
+ {
+ $$ = mm_strdup("release");
+}
+| RENAME
+ {
+ $$ = mm_strdup("rename");
+}
+| REPEATABLE
+ {
+ $$ = mm_strdup("repeatable");
+}
+| REPLACE
+ {
+ $$ = mm_strdup("replace");
+}
+| REPLICA
+ {
+ $$ = mm_strdup("replica");
+}
+| RESET
+ {
+ $$ = mm_strdup("reset");
+}
+| RESTART
+ {
+ $$ = mm_strdup("restart");
+}
+| RESTRICT
+ {
+ $$ = mm_strdup("restrict");
+}
+| RETURN
+ {
+ $$ = mm_strdup("return");
+}
+| RETURNS
+ {
+ $$ = mm_strdup("returns");
+}
+| REVOKE
+ {
+ $$ = mm_strdup("revoke");
+}
+| ROLE
+ {
+ $$ = mm_strdup("role");
+}
+| ROLLBACK
+ {
+ $$ = mm_strdup("rollback");
+}
+| ROLLUP
+ {
+ $$ = mm_strdup("rollup");
+}
+| ROUTINE
+ {
+ $$ = mm_strdup("routine");
+}
+| ROUTINES
+ {
+ $$ = mm_strdup("routines");
+}
+| ROWS
+ {
+ $$ = mm_strdup("rows");
+}
+| RULE
+ {
+ $$ = mm_strdup("rule");
+}
+| SAVEPOINT
+ {
+ $$ = mm_strdup("savepoint");
+}
+| SCHEMA
+ {
+ $$ = mm_strdup("schema");
+}
+| SCHEMAS
+ {
+ $$ = mm_strdup("schemas");
+}
+| SCROLL
+ {
+ $$ = mm_strdup("scroll");
+}
+| SEARCH
+ {
+ $$ = mm_strdup("search");
+}
+| SECURITY
+ {
+ $$ = mm_strdup("security");
+}
+| SEQUENCE
+ {
+ $$ = mm_strdup("sequence");
+}
+| SEQUENCES
+ {
+ $$ = mm_strdup("sequences");
+}
+| SERIALIZABLE
+ {
+ $$ = mm_strdup("serializable");
+}
+| SERVER
+ {
+ $$ = mm_strdup("server");
+}
+| SESSION
+ {
+ $$ = mm_strdup("session");
+}
+| SET
+ {
+ $$ = mm_strdup("set");
+}
+| SETS
+ {
+ $$ = mm_strdup("sets");
+}
+| SHARE
+ {
+ $$ = mm_strdup("share");
+}
+| SHOW
+ {
+ $$ = mm_strdup("show");
+}
+| SIMPLE
+ {
+ $$ = mm_strdup("simple");
+}
+| SKIP
+ {
+ $$ = mm_strdup("skip");
+}
+| SNAPSHOT
+ {
+ $$ = mm_strdup("snapshot");
+}
+| SQL_P
+ {
+ $$ = mm_strdup("sql");
+}
+| STABLE
+ {
+ $$ = mm_strdup("stable");
+}
+| STANDALONE_P
+ {
+ $$ = mm_strdup("standalone");
+}
+| START
+ {
+ $$ = mm_strdup("start");
+}
+| STATEMENT
+ {
+ $$ = mm_strdup("statement");
+}
+| STATISTICS
+ {
+ $$ = mm_strdup("statistics");
+}
+| STDIN
+ {
+ $$ = mm_strdup("stdin");
+}
+| STDOUT
+ {
+ $$ = mm_strdup("stdout");
+}
+| STORAGE
+ {
+ $$ = mm_strdup("storage");
+}
+| STORED
+ {
+ $$ = mm_strdup("stored");
+}
+| STRICT_P
+ {
+ $$ = mm_strdup("strict");
+}
+| STRIP_P
+ {
+ $$ = mm_strdup("strip");
+}
+| SUBSCRIPTION
+ {
+ $$ = mm_strdup("subscription");
+}
+| SUPPORT
+ {
+ $$ = mm_strdup("support");
+}
+| SYSID
+ {
+ $$ = mm_strdup("sysid");
+}
+| SYSTEM_P
+ {
+ $$ = mm_strdup("system");
+}
+| TABLES
+ {
+ $$ = mm_strdup("tables");
+}
+| TABLESPACE
+ {
+ $$ = mm_strdup("tablespace");
+}
+| TEMP
+ {
+ $$ = mm_strdup("temp");
+}
+| TEMPLATE
+ {
+ $$ = mm_strdup("template");
+}
+| TEMPORARY
+ {
+ $$ = mm_strdup("temporary");
+}
+| TEXT_P
+ {
+ $$ = mm_strdup("text");
+}
+| TIES
+ {
+ $$ = mm_strdup("ties");
+}
+| TRANSACTION
+ {
+ $$ = mm_strdup("transaction");
+}
+| TRANSFORM
+ {
+ $$ = mm_strdup("transform");
+}
+| TRIGGER
+ {
+ $$ = mm_strdup("trigger");
+}
+| TRUNCATE
+ {
+ $$ = mm_strdup("truncate");
+}
+| TRUSTED
+ {
+ $$ = mm_strdup("trusted");
+}
+| TYPE_P
+ {
+ $$ = mm_strdup("type");
+}
+| TYPES_P
+ {
+ $$ = mm_strdup("types");
+}
+| UESCAPE
+ {
+ $$ = mm_strdup("uescape");
+}
+| UNBOUNDED
+ {
+ $$ = mm_strdup("unbounded");
+}
+| UNCOMMITTED
+ {
+ $$ = mm_strdup("uncommitted");
+}
+| UNENCRYPTED
+ {
+ $$ = mm_strdup("unencrypted");
+}
+| UNKNOWN
+ {
+ $$ = mm_strdup("unknown");
+}
+| UNLISTEN
+ {
+ $$ = mm_strdup("unlisten");
+}
+| UNLOGGED
+ {
+ $$ = mm_strdup("unlogged");
+}
+| UNTIL
+ {
+ $$ = mm_strdup("until");
+}
+| UPDATE
+ {
+ $$ = mm_strdup("update");
+}
+| VACUUM
+ {
+ $$ = mm_strdup("vacuum");
+}
+| VALID
+ {
+ $$ = mm_strdup("valid");
+}
+| VALIDATE
+ {
+ $$ = mm_strdup("validate");
+}
+| VALIDATOR
+ {
+ $$ = mm_strdup("validator");
+}
+| VALUE_P
+ {
+ $$ = mm_strdup("value");
+}
+| VARYING
+ {
+ $$ = mm_strdup("varying");
+}
+| VERSION_P
+ {
+ $$ = mm_strdup("version");
+}
+| VIEW
+ {
+ $$ = mm_strdup("view");
+}
+| VIEWS
+ {
+ $$ = mm_strdup("views");
+}
+| VOLATILE
+ {
+ $$ = mm_strdup("volatile");
+}
+| WHITESPACE_P
+ {
+ $$ = mm_strdup("whitespace");
+}
+| WITHIN
+ {
+ $$ = mm_strdup("within");
+}
+| WITHOUT
+ {
+ $$ = mm_strdup("without");
+}
+| WORK
+ {
+ $$ = mm_strdup("work");
+}
+| WRAPPER
+ {
+ $$ = mm_strdup("wrapper");
+}
+| WRITE
+ {
+ $$ = mm_strdup("write");
+}
+| XML_P
+ {
+ $$ = mm_strdup("xml");
+}
+| YES_P
+ {
+ $$ = mm_strdup("yes");
+}
+| ZONE
+ {
+ $$ = mm_strdup("zone");
+}
+;
+
+
+ col_name_keyword:
+ BETWEEN
+ {
+ $$ = mm_strdup("between");
+}
+| BIGINT
+ {
+ $$ = mm_strdup("bigint");
+}
+| BIT
+ {
+ $$ = mm_strdup("bit");
+}
+| BOOLEAN_P
+ {
+ $$ = mm_strdup("boolean");
+}
+| CHARACTER
+ {
+ $$ = mm_strdup("character");
+}
+| COALESCE
+ {
+ $$ = mm_strdup("coalesce");
+}
+| DEC
+ {
+ $$ = mm_strdup("dec");
+}
+| DECIMAL_P
+ {
+ $$ = mm_strdup("decimal");
+}
+| EXISTS
+ {
+ $$ = mm_strdup("exists");
+}
+| EXTRACT
+ {
+ $$ = mm_strdup("extract");
+}
+| FLOAT_P
+ {
+ $$ = mm_strdup("float");
+}
+| GREATEST
+ {
+ $$ = mm_strdup("greatest");
+}
+| GROUPING
+ {
+ $$ = mm_strdup("grouping");
+}
+| INOUT
+ {
+ $$ = mm_strdup("inout");
+}
+| INTEGER
+ {
+ $$ = mm_strdup("integer");
+}
+| INTERVAL
+ {
+ $$ = mm_strdup("interval");
+}
+| LEAST
+ {
+ $$ = mm_strdup("least");
+}
+| NATIONAL
+ {
+ $$ = mm_strdup("national");
+}
+| NCHAR
+ {
+ $$ = mm_strdup("nchar");
+}
+| NONE
+ {
+ $$ = mm_strdup("none");
+}
+| NORMALIZE
+ {
+ $$ = mm_strdup("normalize");
+}
+| NULLIF
+ {
+ $$ = mm_strdup("nullif");
+}
+| NUMERIC
+ {
+ $$ = mm_strdup("numeric");
+}
+| OUT_P
+ {
+ $$ = mm_strdup("out");
+}
+| OVERLAY
+ {
+ $$ = mm_strdup("overlay");
+}
+| POSITION
+ {
+ $$ = mm_strdup("position");
+}
+| PRECISION
+ {
+ $$ = mm_strdup("precision");
+}
+| REAL
+ {
+ $$ = mm_strdup("real");
+}
+| ROW
+ {
+ $$ = mm_strdup("row");
+}
+| SETOF
+ {
+ $$ = mm_strdup("setof");
+}
+| SMALLINT
+ {
+ $$ = mm_strdup("smallint");
+}
+| SUBSTRING
+ {
+ $$ = mm_strdup("substring");
+}
+| TIME
+ {
+ $$ = mm_strdup("time");
+}
+| TIMESTAMP
+ {
+ $$ = mm_strdup("timestamp");
+}
+| TREAT
+ {
+ $$ = mm_strdup("treat");
+}
+| TRIM
+ {
+ $$ = mm_strdup("trim");
+}
+| VARCHAR
+ {
+ $$ = mm_strdup("varchar");
+}
+| XMLATTRIBUTES
+ {
+ $$ = mm_strdup("xmlattributes");
+}
+| XMLCONCAT
+ {
+ $$ = mm_strdup("xmlconcat");
+}
+| XMLELEMENT
+ {
+ $$ = mm_strdup("xmlelement");
+}
+| XMLEXISTS
+ {
+ $$ = mm_strdup("xmlexists");
+}
+| XMLFOREST
+ {
+ $$ = mm_strdup("xmlforest");
+}
+| XMLNAMESPACES
+ {
+ $$ = mm_strdup("xmlnamespaces");
+}
+| XMLPARSE
+ {
+ $$ = mm_strdup("xmlparse");
+}
+| XMLPI
+ {
+ $$ = mm_strdup("xmlpi");
+}
+| XMLROOT
+ {
+ $$ = mm_strdup("xmlroot");
+}
+| XMLSERIALIZE
+ {
+ $$ = mm_strdup("xmlserialize");
+}
+| XMLTABLE
+ {
+ $$ = mm_strdup("xmltable");
+}
+;
+
+
+ type_func_name_keyword:
+ AUTHORIZATION
+ {
+ $$ = mm_strdup("authorization");
+}
+| BINARY
+ {
+ $$ = mm_strdup("binary");
+}
+| COLLATION
+ {
+ $$ = mm_strdup("collation");
+}
+| CONCURRENTLY
+ {
+ $$ = mm_strdup("concurrently");
+}
+| CROSS
+ {
+ $$ = mm_strdup("cross");
+}
+| CURRENT_SCHEMA
+ {
+ $$ = mm_strdup("current_schema");
+}
+| FREEZE
+ {
+ $$ = mm_strdup("freeze");
+}
+| FULL
+ {
+ $$ = mm_strdup("full");
+}
+| ILIKE
+ {
+ $$ = mm_strdup("ilike");
+}
+| INNER_P
+ {
+ $$ = mm_strdup("inner");
+}
+| IS
+ {
+ $$ = mm_strdup("is");
+}
+| ISNULL
+ {
+ $$ = mm_strdup("isnull");
+}
+| JOIN
+ {
+ $$ = mm_strdup("join");
+}
+| LEFT
+ {
+ $$ = mm_strdup("left");
+}
+| LIKE
+ {
+ $$ = mm_strdup("like");
+}
+| NATURAL
+ {
+ $$ = mm_strdup("natural");
+}
+| NOTNULL
+ {
+ $$ = mm_strdup("notnull");
+}
+| OUTER_P
+ {
+ $$ = mm_strdup("outer");
+}
+| OVERLAPS
+ {
+ $$ = mm_strdup("overlaps");
+}
+| RIGHT
+ {
+ $$ = mm_strdup("right");
+}
+| SIMILAR
+ {
+ $$ = mm_strdup("similar");
+}
+| TABLESAMPLE
+ {
+ $$ = mm_strdup("tablesample");
+}
+| VERBOSE
+ {
+ $$ = mm_strdup("verbose");
+}
+;
+
+
+ reserved_keyword:
+ ALL
+ {
+ $$ = mm_strdup("all");
+}
+| ANALYSE
+ {
+ $$ = mm_strdup("analyse");
+}
+| ANALYZE
+ {
+ $$ = mm_strdup("analyze");
+}
+| AND
+ {
+ $$ = mm_strdup("and");
+}
+| ANY
+ {
+ $$ = mm_strdup("any");
+}
+| ARRAY
+ {
+ $$ = mm_strdup("array");
+}
+| AS
+ {
+ $$ = mm_strdup("as");
+}
+| ASC
+ {
+ $$ = mm_strdup("asc");
+}
+| ASYMMETRIC
+ {
+ $$ = mm_strdup("asymmetric");
+}
+| BOTH
+ {
+ $$ = mm_strdup("both");
+}
+| CASE
+ {
+ $$ = mm_strdup("case");
+}
+| CAST
+ {
+ $$ = mm_strdup("cast");
+}
+| CHECK
+ {
+ $$ = mm_strdup("check");
+}
+| COLLATE
+ {
+ $$ = mm_strdup("collate");
+}
+| COLUMN
+ {
+ $$ = mm_strdup("column");
+}
+| CONSTRAINT
+ {
+ $$ = mm_strdup("constraint");
+}
+| CREATE
+ {
+ $$ = mm_strdup("create");
+}
+| CURRENT_CATALOG
+ {
+ $$ = mm_strdup("current_catalog");
+}
+| CURRENT_DATE
+ {
+ $$ = mm_strdup("current_date");
+}
+| CURRENT_ROLE
+ {
+ $$ = mm_strdup("current_role");
+}
+| CURRENT_TIME
+ {
+ $$ = mm_strdup("current_time");
+}
+| CURRENT_TIMESTAMP
+ {
+ $$ = mm_strdup("current_timestamp");
+}
+| CURRENT_USER
+ {
+ $$ = mm_strdup("current_user");
+}
+| DEFAULT
+ {
+ $$ = mm_strdup("default");
+}
+| DEFERRABLE
+ {
+ $$ = mm_strdup("deferrable");
+}
+| DESC
+ {
+ $$ = mm_strdup("desc");
+}
+| DISTINCT
+ {
+ $$ = mm_strdup("distinct");
+}
+| DO
+ {
+ $$ = mm_strdup("do");
+}
+| ELSE
+ {
+ $$ = mm_strdup("else");
+}
+| END_P
+ {
+ $$ = mm_strdup("end");
+}
+| EXCEPT
+ {
+ $$ = mm_strdup("except");
+}
+| FALSE_P
+ {
+ $$ = mm_strdup("false");
+}
+| FETCH
+ {
+ $$ = mm_strdup("fetch");
+}
+| FOR
+ {
+ $$ = mm_strdup("for");
+}
+| FOREIGN
+ {
+ $$ = mm_strdup("foreign");
+}
+| FROM
+ {
+ $$ = mm_strdup("from");
+}
+| GRANT
+ {
+ $$ = mm_strdup("grant");
+}
+| GROUP_P
+ {
+ $$ = mm_strdup("group");
+}
+| HAVING
+ {
+ $$ = mm_strdup("having");
+}
+| IN_P
+ {
+ $$ = mm_strdup("in");
+}
+| INITIALLY
+ {
+ $$ = mm_strdup("initially");
+}
+| INTERSECT
+ {
+ $$ = mm_strdup("intersect");
+}
+| INTO
+ {
+ $$ = mm_strdup("into");
+}
+| LATERAL_P
+ {
+ $$ = mm_strdup("lateral");
+}
+| LEADING
+ {
+ $$ = mm_strdup("leading");
+}
+| LIMIT
+ {
+ $$ = mm_strdup("limit");
+}
+| LOCALTIME
+ {
+ $$ = mm_strdup("localtime");
+}
+| LOCALTIMESTAMP
+ {
+ $$ = mm_strdup("localtimestamp");
+}
+| NOT
+ {
+ $$ = mm_strdup("not");
+}
+| NULL_P
+ {
+ $$ = mm_strdup("null");
+}
+| OFFSET
+ {
+ $$ = mm_strdup("offset");
+}
+| ON
+ {
+ $$ = mm_strdup("on");
+}
+| ONLY
+ {
+ $$ = mm_strdup("only");
+}
+| OR
+ {
+ $$ = mm_strdup("or");
+}
+| ORDER
+ {
+ $$ = mm_strdup("order");
+}
+| PLACING
+ {
+ $$ = mm_strdup("placing");
+}
+| PRIMARY
+ {
+ $$ = mm_strdup("primary");
+}
+| REFERENCES
+ {
+ $$ = mm_strdup("references");
+}
+| RETURNING
+ {
+ $$ = mm_strdup("returning");
+}
+| SELECT
+ {
+ $$ = mm_strdup("select");
+}
+| SESSION_USER
+ {
+ $$ = mm_strdup("session_user");
+}
+| SOME
+ {
+ $$ = mm_strdup("some");
+}
+| SYMMETRIC
+ {
+ $$ = mm_strdup("symmetric");
+}
+| TABLE
+ {
+ $$ = mm_strdup("table");
+}
+| THEN
+ {
+ $$ = mm_strdup("then");
+}
+| TRAILING
+ {
+ $$ = mm_strdup("trailing");
+}
+| TRUE_P
+ {
+ $$ = mm_strdup("true");
+}
+| UNIQUE
+ {
+ $$ = mm_strdup("unique");
+}
+| USER
+ {
+ $$ = mm_strdup("user");
+}
+| USING
+ {
+ $$ = mm_strdup("using");
+}
+| VARIADIC
+ {
+ $$ = mm_strdup("variadic");
+}
+| WHEN
+ {
+ $$ = mm_strdup("when");
+}
+| WHERE
+ {
+ $$ = mm_strdup("where");
+}
+| WINDOW
+ {
+ $$ = mm_strdup("window");
+}
+| WITH
+ {
+ $$ = mm_strdup("with");
+}
+;
+
+
+ bare_label_keyword:
+ ABORT_P
+ {
+ $$ = mm_strdup("abort");
+}
+| ABSOLUTE_P
+ {
+ $$ = mm_strdup("absolute");
+}
+| ACCESS
+ {
+ $$ = mm_strdup("access");
+}
+| ACTION
+ {
+ $$ = mm_strdup("action");
+}
+| ADD_P
+ {
+ $$ = mm_strdup("add");
+}
+| ADMIN
+ {
+ $$ = mm_strdup("admin");
+}
+| AFTER
+ {
+ $$ = mm_strdup("after");
+}
+| AGGREGATE
+ {
+ $$ = mm_strdup("aggregate");
+}
+| ALL
+ {
+ $$ = mm_strdup("all");
+}
+| ALSO
+ {
+ $$ = mm_strdup("also");
+}
+| ALTER
+ {
+ $$ = mm_strdup("alter");
+}
+| ALWAYS
+ {
+ $$ = mm_strdup("always");
+}
+| ANALYSE
+ {
+ $$ = mm_strdup("analyse");
+}
+| ANALYZE
+ {
+ $$ = mm_strdup("analyze");
+}
+| AND
+ {
+ $$ = mm_strdup("and");
+}
+| ANY
+ {
+ $$ = mm_strdup("any");
+}
+| ASC
+ {
+ $$ = mm_strdup("asc");
+}
+| ASENSITIVE
+ {
+ $$ = mm_strdup("asensitive");
+}
+| ASSERTION
+ {
+ $$ = mm_strdup("assertion");
+}
+| ASSIGNMENT
+ {
+ $$ = mm_strdup("assignment");
+}
+| ASYMMETRIC
+ {
+ $$ = mm_strdup("asymmetric");
+}
+| AT
+ {
+ $$ = mm_strdup("at");
+}
+| ATOMIC
+ {
+ $$ = mm_strdup("atomic");
+}
+| ATTACH
+ {
+ $$ = mm_strdup("attach");
+}
+| ATTRIBUTE
+ {
+ $$ = mm_strdup("attribute");
+}
+| AUTHORIZATION
+ {
+ $$ = mm_strdup("authorization");
+}
+| BACKWARD
+ {
+ $$ = mm_strdup("backward");
+}
+| BEFORE
+ {
+ $$ = mm_strdup("before");
+}
+| BEGIN_P
+ {
+ $$ = mm_strdup("begin");
+}
+| BETWEEN
+ {
+ $$ = mm_strdup("between");
+}
+| BIGINT
+ {
+ $$ = mm_strdup("bigint");
+}
+| BINARY
+ {
+ $$ = mm_strdup("binary");
+}
+| BIT
+ {
+ $$ = mm_strdup("bit");
+}
+| BOOLEAN_P
+ {
+ $$ = mm_strdup("boolean");
+}
+| BOTH
+ {
+ $$ = mm_strdup("both");
+}
+| BREADTH
+ {
+ $$ = mm_strdup("breadth");
+}
+| BY
+ {
+ $$ = mm_strdup("by");
+}
+| CACHE
+ {
+ $$ = mm_strdup("cache");
+}
+| CALL
+ {
+ $$ = mm_strdup("call");
+}
+| CALLED
+ {
+ $$ = mm_strdup("called");
+}
+| CASCADE
+ {
+ $$ = mm_strdup("cascade");
+}
+| CASCADED
+ {
+ $$ = mm_strdup("cascaded");
+}
+| CASE
+ {
+ $$ = mm_strdup("case");
+}
+| CAST
+ {
+ $$ = mm_strdup("cast");
+}
+| CATALOG_P
+ {
+ $$ = mm_strdup("catalog");
+}
+| CHAIN
+ {
+ $$ = mm_strdup("chain");
+}
+| CHARACTERISTICS
+ {
+ $$ = mm_strdup("characteristics");
+}
+| CHECK
+ {
+ $$ = mm_strdup("check");
+}
+| CHECKPOINT
+ {
+ $$ = mm_strdup("checkpoint");
+}
+| CLASS
+ {
+ $$ = mm_strdup("class");
+}
+| CLOSE
+ {
+ $$ = mm_strdup("close");
+}
+| CLUSTER
+ {
+ $$ = mm_strdup("cluster");
+}
+| COALESCE
+ {
+ $$ = mm_strdup("coalesce");
+}
+| COLLATE
+ {
+ $$ = mm_strdup("collate");
+}
+| COLLATION
+ {
+ $$ = mm_strdup("collation");
+}
+| COLUMN
+ {
+ $$ = mm_strdup("column");
+}
+| COLUMNS
+ {
+ $$ = mm_strdup("columns");
+}
+| COMMENT
+ {
+ $$ = mm_strdup("comment");
+}
+| COMMENTS
+ {
+ $$ = mm_strdup("comments");
+}
+| COMMIT
+ {
+ $$ = mm_strdup("commit");
+}
+| COMMITTED
+ {
+ $$ = mm_strdup("committed");
+}
+| COMPRESSION
+ {
+ $$ = mm_strdup("compression");
+}
+| CONCURRENTLY
+ {
+ $$ = mm_strdup("concurrently");
+}
+| CONFIGURATION
+ {
+ $$ = mm_strdup("configuration");
+}
+| CONFLICT
+ {
+ $$ = mm_strdup("conflict");
+}
+| CONNECTION
+ {
+ $$ = mm_strdup("connection");
+}
+| CONSTRAINT
+ {
+ $$ = mm_strdup("constraint");
+}
+| CONSTRAINTS
+ {
+ $$ = mm_strdup("constraints");
+}
+| CONTENT_P
+ {
+ $$ = mm_strdup("content");
+}
+| CONTINUE_P
+ {
+ $$ = mm_strdup("continue");
+}
+| CONVERSION_P
+ {
+ $$ = mm_strdup("conversion");
+}
+| COPY
+ {
+ $$ = mm_strdup("copy");
+}
+| COST
+ {
+ $$ = mm_strdup("cost");
+}
+| CROSS
+ {
+ $$ = mm_strdup("cross");
+}
+| CSV
+ {
+ $$ = mm_strdup("csv");
+}
+| CUBE
+ {
+ $$ = mm_strdup("cube");
+}
+| CURRENT_P
+ {
+ $$ = mm_strdup("current");
+}
+| CURRENT_CATALOG
+ {
+ $$ = mm_strdup("current_catalog");
+}
+| CURRENT_DATE
+ {
+ $$ = mm_strdup("current_date");
+}
+| CURRENT_ROLE
+ {
+ $$ = mm_strdup("current_role");
+}
+| CURRENT_SCHEMA
+ {
+ $$ = mm_strdup("current_schema");
+}
+| CURRENT_TIME
+ {
+ $$ = mm_strdup("current_time");
+}
+| CURRENT_TIMESTAMP
+ {
+ $$ = mm_strdup("current_timestamp");
+}
+| CURRENT_USER
+ {
+ $$ = mm_strdup("current_user");
+}
+| CURSOR
+ {
+ $$ = mm_strdup("cursor");
+}
+| CYCLE
+ {
+ $$ = mm_strdup("cycle");
+}
+| DATA_P
+ {
+ $$ = mm_strdup("data");
+}
+| DATABASE
+ {
+ $$ = mm_strdup("database");
+}
+| DEALLOCATE
+ {
+ $$ = mm_strdup("deallocate");
+}
+| DEC
+ {
+ $$ = mm_strdup("dec");
+}
+| DECIMAL_P
+ {
+ $$ = mm_strdup("decimal");
+}
+| DECLARE
+ {
+ $$ = mm_strdup("declare");
+}
+| DEFAULT
+ {
+ $$ = mm_strdup("default");
+}
+| DEFAULTS
+ {
+ $$ = mm_strdup("defaults");
+}
+| DEFERRABLE
+ {
+ $$ = mm_strdup("deferrable");
+}
+| DEFERRED
+ {
+ $$ = mm_strdup("deferred");
+}
+| DEFINER
+ {
+ $$ = mm_strdup("definer");
+}
+| DELETE_P
+ {
+ $$ = mm_strdup("delete");
+}
+| DELIMITER
+ {
+ $$ = mm_strdup("delimiter");
+}
+| DELIMITERS
+ {
+ $$ = mm_strdup("delimiters");
+}
+| DEPENDS
+ {
+ $$ = mm_strdup("depends");
+}
+| DEPTH
+ {
+ $$ = mm_strdup("depth");
+}
+| DESC
+ {
+ $$ = mm_strdup("desc");
+}
+| DETACH
+ {
+ $$ = mm_strdup("detach");
+}
+| DICTIONARY
+ {
+ $$ = mm_strdup("dictionary");
+}
+| DISABLE_P
+ {
+ $$ = mm_strdup("disable");
+}
+| DISCARD
+ {
+ $$ = mm_strdup("discard");
+}
+| DISTINCT
+ {
+ $$ = mm_strdup("distinct");
+}
+| DO
+ {
+ $$ = mm_strdup("do");
+}
+| DOCUMENT_P
+ {
+ $$ = mm_strdup("document");
+}
+| DOMAIN_P
+ {
+ $$ = mm_strdup("domain");
+}
+| DOUBLE_P
+ {
+ $$ = mm_strdup("double");
+}
+| DROP
+ {
+ $$ = mm_strdup("drop");
+}
+| EACH
+ {
+ $$ = mm_strdup("each");
+}
+| ELSE
+ {
+ $$ = mm_strdup("else");
+}
+| ENABLE_P
+ {
+ $$ = mm_strdup("enable");
+}
+| ENCODING
+ {
+ $$ = mm_strdup("encoding");
+}
+| ENCRYPTED
+ {
+ $$ = mm_strdup("encrypted");
+}
+| END_P
+ {
+ $$ = mm_strdup("end");
+}
+| ENUM_P
+ {
+ $$ = mm_strdup("enum");
+}
+| ESCAPE
+ {
+ $$ = mm_strdup("escape");
+}
+| EVENT
+ {
+ $$ = mm_strdup("event");
+}
+| EXCLUDE
+ {
+ $$ = mm_strdup("exclude");
+}
+| EXCLUDING
+ {
+ $$ = mm_strdup("excluding");
+}
+| EXCLUSIVE
+ {
+ $$ = mm_strdup("exclusive");
+}
+| EXECUTE
+ {
+ $$ = mm_strdup("execute");
+}
+| EXISTS
+ {
+ $$ = mm_strdup("exists");
+}
+| EXPLAIN
+ {
+ $$ = mm_strdup("explain");
+}
+| EXPRESSION
+ {
+ $$ = mm_strdup("expression");
+}
+| EXTENSION
+ {
+ $$ = mm_strdup("extension");
+}
+| EXTERNAL
+ {
+ $$ = mm_strdup("external");
+}
+| EXTRACT
+ {
+ $$ = mm_strdup("extract");
+}
+| FALSE_P
+ {
+ $$ = mm_strdup("false");
+}
+| FAMILY
+ {
+ $$ = mm_strdup("family");
+}
+| FINALIZE
+ {
+ $$ = mm_strdup("finalize");
+}
+| FIRST_P
+ {
+ $$ = mm_strdup("first");
+}
+| FLOAT_P
+ {
+ $$ = mm_strdup("float");
+}
+| FOLLOWING
+ {
+ $$ = mm_strdup("following");
+}
+| FORCE
+ {
+ $$ = mm_strdup("force");
+}
+| FOREIGN
+ {
+ $$ = mm_strdup("foreign");
+}
+| FORWARD
+ {
+ $$ = mm_strdup("forward");
+}
+| FREEZE
+ {
+ $$ = mm_strdup("freeze");
+}
+| FULL
+ {
+ $$ = mm_strdup("full");
+}
+| FUNCTION
+ {
+ $$ = mm_strdup("function");
+}
+| FUNCTIONS
+ {
+ $$ = mm_strdup("functions");
+}
+| GENERATED
+ {
+ $$ = mm_strdup("generated");
+}
+| GLOBAL
+ {
+ $$ = mm_strdup("global");
+}
+| GRANTED
+ {
+ $$ = mm_strdup("granted");
+}
+| GREATEST
+ {
+ $$ = mm_strdup("greatest");
+}
+| GROUPING
+ {
+ $$ = mm_strdup("grouping");
+}
+| GROUPS
+ {
+ $$ = mm_strdup("groups");
+}
+| HANDLER
+ {
+ $$ = mm_strdup("handler");
+}
+| HEADER_P
+ {
+ $$ = mm_strdup("header");
+}
+| HOLD
+ {
+ $$ = mm_strdup("hold");
+}
+| IDENTITY_P
+ {
+ $$ = mm_strdup("identity");
+}
+| IF_P
+ {
+ $$ = mm_strdup("if");
+}
+| ILIKE
+ {
+ $$ = mm_strdup("ilike");
+}
+| IMMEDIATE
+ {
+ $$ = mm_strdup("immediate");
+}
+| IMMUTABLE
+ {
+ $$ = mm_strdup("immutable");
+}
+| IMPLICIT_P
+ {
+ $$ = mm_strdup("implicit");
+}
+| IMPORT_P
+ {
+ $$ = mm_strdup("import");
+}
+| IN_P
+ {
+ $$ = mm_strdup("in");
+}
+| INCLUDE
+ {
+ $$ = mm_strdup("include");
+}
+| INCLUDING
+ {
+ $$ = mm_strdup("including");
+}
+| INCREMENT
+ {
+ $$ = mm_strdup("increment");
+}
+| INDEX
+ {
+ $$ = mm_strdup("index");
+}
+| INDEXES
+ {
+ $$ = mm_strdup("indexes");
+}
+| INHERIT
+ {
+ $$ = mm_strdup("inherit");
+}
+| INHERITS
+ {
+ $$ = mm_strdup("inherits");
+}
+| INITIALLY
+ {
+ $$ = mm_strdup("initially");
+}
+| INLINE_P
+ {
+ $$ = mm_strdup("inline");
+}
+| INNER_P
+ {
+ $$ = mm_strdup("inner");
+}
+| INOUT
+ {
+ $$ = mm_strdup("inout");
+}
+| INPUT_P
+ {
+ $$ = mm_strdup("input");
+}
+| INSENSITIVE
+ {
+ $$ = mm_strdup("insensitive");
+}
+| INSERT
+ {
+ $$ = mm_strdup("insert");
+}
+| INSTEAD
+ {
+ $$ = mm_strdup("instead");
+}
+| INT_P
+ {
+ $$ = mm_strdup("int");
+}
+| INTEGER
+ {
+ $$ = mm_strdup("integer");
+}
+| INTERVAL
+ {
+ $$ = mm_strdup("interval");
+}
+| INVOKER
+ {
+ $$ = mm_strdup("invoker");
+}
+| IS
+ {
+ $$ = mm_strdup("is");
+}
+| ISOLATION
+ {
+ $$ = mm_strdup("isolation");
+}
+| JOIN
+ {
+ $$ = mm_strdup("join");
+}
+| KEY
+ {
+ $$ = mm_strdup("key");
+}
+| LABEL
+ {
+ $$ = mm_strdup("label");
+}
+| LANGUAGE
+ {
+ $$ = mm_strdup("language");
+}
+| LARGE_P
+ {
+ $$ = mm_strdup("large");
+}
+| LAST_P
+ {
+ $$ = mm_strdup("last");
+}
+| LATERAL_P
+ {
+ $$ = mm_strdup("lateral");
+}
+| LEADING
+ {
+ $$ = mm_strdup("leading");
+}
+| LEAKPROOF
+ {
+ $$ = mm_strdup("leakproof");
+}
+| LEAST
+ {
+ $$ = mm_strdup("least");
+}
+| LEFT
+ {
+ $$ = mm_strdup("left");
+}
+| LEVEL
+ {
+ $$ = mm_strdup("level");
+}
+| LIKE
+ {
+ $$ = mm_strdup("like");
+}
+| LISTEN
+ {
+ $$ = mm_strdup("listen");
+}
+| LOAD
+ {
+ $$ = mm_strdup("load");
+}
+| LOCAL
+ {
+ $$ = mm_strdup("local");
+}
+| LOCALTIME
+ {
+ $$ = mm_strdup("localtime");
+}
+| LOCALTIMESTAMP
+ {
+ $$ = mm_strdup("localtimestamp");
+}
+| LOCATION
+ {
+ $$ = mm_strdup("location");
+}
+| LOCK_P
+ {
+ $$ = mm_strdup("lock");
+}
+| LOCKED
+ {
+ $$ = mm_strdup("locked");
+}
+| LOGGED
+ {
+ $$ = mm_strdup("logged");
+}
+| MAPPING
+ {
+ $$ = mm_strdup("mapping");
+}
+| MATCH
+ {
+ $$ = mm_strdup("match");
+}
+| MATCHED
+ {
+ $$ = mm_strdup("matched");
+}
+| MATERIALIZED
+ {
+ $$ = mm_strdup("materialized");
+}
+| MAXVALUE
+ {
+ $$ = mm_strdup("maxvalue");
+}
+| MERGE
+ {
+ $$ = mm_strdup("merge");
+}
+| METHOD
+ {
+ $$ = mm_strdup("method");
+}
+| MINVALUE
+ {
+ $$ = mm_strdup("minvalue");
+}
+| MODE
+ {
+ $$ = mm_strdup("mode");
+}
+| MOVE
+ {
+ $$ = mm_strdup("move");
+}
+| NAME_P
+ {
+ $$ = mm_strdup("name");
+}
+| NAMES
+ {
+ $$ = mm_strdup("names");
+}
+| NATIONAL
+ {
+ $$ = mm_strdup("national");
+}
+| NATURAL
+ {
+ $$ = mm_strdup("natural");
+}
+| NCHAR
+ {
+ $$ = mm_strdup("nchar");
+}
+| NEW
+ {
+ $$ = mm_strdup("new");
+}
+| NEXT
+ {
+ $$ = mm_strdup("next");
+}
+| NFC
+ {
+ $$ = mm_strdup("nfc");
+}
+| NFD
+ {
+ $$ = mm_strdup("nfd");
+}
+| NFKC
+ {
+ $$ = mm_strdup("nfkc");
+}
+| NFKD
+ {
+ $$ = mm_strdup("nfkd");
+}
+| NO
+ {
+ $$ = mm_strdup("no");
+}
+| NONE
+ {
+ $$ = mm_strdup("none");
+}
+| NORMALIZE
+ {
+ $$ = mm_strdup("normalize");
+}
+| NORMALIZED
+ {
+ $$ = mm_strdup("normalized");
+}
+| NOT
+ {
+ $$ = mm_strdup("not");
+}
+| NOTHING
+ {
+ $$ = mm_strdup("nothing");
+}
+| NOTIFY
+ {
+ $$ = mm_strdup("notify");
+}
+| NOWAIT
+ {
+ $$ = mm_strdup("nowait");
+}
+| NULL_P
+ {
+ $$ = mm_strdup("null");
+}
+| NULLIF
+ {
+ $$ = mm_strdup("nullif");
+}
+| NULLS_P
+ {
+ $$ = mm_strdup("nulls");
+}
+| NUMERIC
+ {
+ $$ = mm_strdup("numeric");
+}
+| OBJECT_P
+ {
+ $$ = mm_strdup("object");
+}
+| OF
+ {
+ $$ = mm_strdup("of");
+}
+| OFF
+ {
+ $$ = mm_strdup("off");
+}
+| OIDS
+ {
+ $$ = mm_strdup("oids");
+}
+| OLD
+ {
+ $$ = mm_strdup("old");
+}
+| ONLY
+ {
+ $$ = mm_strdup("only");
+}
+| OPERATOR
+ {
+ $$ = mm_strdup("operator");
+}
+| OPTION
+ {
+ $$ = mm_strdup("option");
+}
+| OPTIONS
+ {
+ $$ = mm_strdup("options");
+}
+| OR
+ {
+ $$ = mm_strdup("or");
+}
+| ORDINALITY
+ {
+ $$ = mm_strdup("ordinality");
+}
+| OTHERS
+ {
+ $$ = mm_strdup("others");
+}
+| OUT_P
+ {
+ $$ = mm_strdup("out");
+}
+| OUTER_P
+ {
+ $$ = mm_strdup("outer");
+}
+| OVERLAY
+ {
+ $$ = mm_strdup("overlay");
+}
+| OVERRIDING
+ {
+ $$ = mm_strdup("overriding");
+}
+| OWNED
+ {
+ $$ = mm_strdup("owned");
+}
+| OWNER
+ {
+ $$ = mm_strdup("owner");
+}
+| PARALLEL
+ {
+ $$ = mm_strdup("parallel");
+}
+| PARAMETER
+ {
+ $$ = mm_strdup("parameter");
+}
+| PARSER
+ {
+ $$ = mm_strdup("parser");
+}
+| PARTIAL
+ {
+ $$ = mm_strdup("partial");
+}
+| PARTITION
+ {
+ $$ = mm_strdup("partition");
+}
+| PASSING
+ {
+ $$ = mm_strdup("passing");
+}
+| PASSWORD
+ {
+ $$ = mm_strdup("password");
+}
+| PLACING
+ {
+ $$ = mm_strdup("placing");
+}
+| PLANS
+ {
+ $$ = mm_strdup("plans");
+}
+| POLICY
+ {
+ $$ = mm_strdup("policy");
+}
+| POSITION
+ {
+ $$ = mm_strdup("position");
+}
+| PRECEDING
+ {
+ $$ = mm_strdup("preceding");
+}
+| PREPARE
+ {
+ $$ = mm_strdup("prepare");
+}
+| PREPARED
+ {
+ $$ = mm_strdup("prepared");
+}
+| PRESERVE
+ {
+ $$ = mm_strdup("preserve");
+}
+| PRIMARY
+ {
+ $$ = mm_strdup("primary");
+}
+| PRIOR
+ {
+ $$ = mm_strdup("prior");
+}
+| PRIVILEGES
+ {
+ $$ = mm_strdup("privileges");
+}
+| PROCEDURAL
+ {
+ $$ = mm_strdup("procedural");
+}
+| PROCEDURE
+ {
+ $$ = mm_strdup("procedure");
+}
+| PROCEDURES
+ {
+ $$ = mm_strdup("procedures");
+}
+| PROGRAM
+ {
+ $$ = mm_strdup("program");
+}
+| PUBLICATION
+ {
+ $$ = mm_strdup("publication");
+}
+| QUOTE
+ {
+ $$ = mm_strdup("quote");
+}
+| RANGE
+ {
+ $$ = mm_strdup("range");
+}
+| READ
+ {
+ $$ = mm_strdup("read");
+}
+| REAL
+ {
+ $$ = mm_strdup("real");
+}
+| REASSIGN
+ {
+ $$ = mm_strdup("reassign");
+}
+| RECHECK
+ {
+ $$ = mm_strdup("recheck");
+}
+| RECURSIVE
+ {
+ $$ = mm_strdup("recursive");
+}
+| REF_P
+ {
+ $$ = mm_strdup("ref");
+}
+| REFERENCES
+ {
+ $$ = mm_strdup("references");
+}
+| REFERENCING
+ {
+ $$ = mm_strdup("referencing");
+}
+| REFRESH
+ {
+ $$ = mm_strdup("refresh");
+}
+| REINDEX
+ {
+ $$ = mm_strdup("reindex");
+}
+| RELATIVE_P
+ {
+ $$ = mm_strdup("relative");
+}
+| RELEASE
+ {
+ $$ = mm_strdup("release");
+}
+| RENAME
+ {
+ $$ = mm_strdup("rename");
+}
+| REPEATABLE
+ {
+ $$ = mm_strdup("repeatable");
+}
+| REPLACE
+ {
+ $$ = mm_strdup("replace");
+}
+| REPLICA
+ {
+ $$ = mm_strdup("replica");
+}
+| RESET
+ {
+ $$ = mm_strdup("reset");
+}
+| RESTART
+ {
+ $$ = mm_strdup("restart");
+}
+| RESTRICT
+ {
+ $$ = mm_strdup("restrict");
+}
+| RETURN
+ {
+ $$ = mm_strdup("return");
+}
+| RETURNS
+ {
+ $$ = mm_strdup("returns");
+}
+| REVOKE
+ {
+ $$ = mm_strdup("revoke");
+}
+| RIGHT
+ {
+ $$ = mm_strdup("right");
+}
+| ROLE
+ {
+ $$ = mm_strdup("role");
+}
+| ROLLBACK
+ {
+ $$ = mm_strdup("rollback");
+}
+| ROLLUP
+ {
+ $$ = mm_strdup("rollup");
+}
+| ROUTINE
+ {
+ $$ = mm_strdup("routine");
+}
+| ROUTINES
+ {
+ $$ = mm_strdup("routines");
+}
+| ROW
+ {
+ $$ = mm_strdup("row");
+}
+| ROWS
+ {
+ $$ = mm_strdup("rows");
+}
+| RULE
+ {
+ $$ = mm_strdup("rule");
+}
+| SAVEPOINT
+ {
+ $$ = mm_strdup("savepoint");
+}
+| SCHEMA
+ {
+ $$ = mm_strdup("schema");
+}
+| SCHEMAS
+ {
+ $$ = mm_strdup("schemas");
+}
+| SCROLL
+ {
+ $$ = mm_strdup("scroll");
+}
+| SEARCH
+ {
+ $$ = mm_strdup("search");
+}
+| SECURITY
+ {
+ $$ = mm_strdup("security");
+}
+| SELECT
+ {
+ $$ = mm_strdup("select");
+}
+| SEQUENCE
+ {
+ $$ = mm_strdup("sequence");
+}
+| SEQUENCES
+ {
+ $$ = mm_strdup("sequences");
+}
+| SERIALIZABLE
+ {
+ $$ = mm_strdup("serializable");
+}
+| SERVER
+ {
+ $$ = mm_strdup("server");
+}
+| SESSION
+ {
+ $$ = mm_strdup("session");
+}
+| SESSION_USER
+ {
+ $$ = mm_strdup("session_user");
+}
+| SET
+ {
+ $$ = mm_strdup("set");
+}
+| SETOF
+ {
+ $$ = mm_strdup("setof");
+}
+| SETS
+ {
+ $$ = mm_strdup("sets");
+}
+| SHARE
+ {
+ $$ = mm_strdup("share");
+}
+| SHOW
+ {
+ $$ = mm_strdup("show");
+}
+| SIMILAR
+ {
+ $$ = mm_strdup("similar");
+}
+| SIMPLE
+ {
+ $$ = mm_strdup("simple");
+}
+| SKIP
+ {
+ $$ = mm_strdup("skip");
+}
+| SMALLINT
+ {
+ $$ = mm_strdup("smallint");
+}
+| SNAPSHOT
+ {
+ $$ = mm_strdup("snapshot");
+}
+| SOME
+ {
+ $$ = mm_strdup("some");
+}
+| SQL_P
+ {
+ $$ = mm_strdup("sql");
+}
+| STABLE
+ {
+ $$ = mm_strdup("stable");
+}
+| STANDALONE_P
+ {
+ $$ = mm_strdup("standalone");
+}
+| START
+ {
+ $$ = mm_strdup("start");
+}
+| STATEMENT
+ {
+ $$ = mm_strdup("statement");
+}
+| STATISTICS
+ {
+ $$ = mm_strdup("statistics");
+}
+| STDIN
+ {
+ $$ = mm_strdup("stdin");
+}
+| STDOUT
+ {
+ $$ = mm_strdup("stdout");
+}
+| STORAGE
+ {
+ $$ = mm_strdup("storage");
+}
+| STORED
+ {
+ $$ = mm_strdup("stored");
+}
+| STRICT_P
+ {
+ $$ = mm_strdup("strict");
+}
+| STRIP_P
+ {
+ $$ = mm_strdup("strip");
+}
+| SUBSCRIPTION
+ {
+ $$ = mm_strdup("subscription");
+}
+| SUBSTRING
+ {
+ $$ = mm_strdup("substring");
+}
+| SUPPORT
+ {
+ $$ = mm_strdup("support");
+}
+| SYMMETRIC
+ {
+ $$ = mm_strdup("symmetric");
+}
+| SYSID
+ {
+ $$ = mm_strdup("sysid");
+}
+| SYSTEM_P
+ {
+ $$ = mm_strdup("system");
+}
+| TABLE
+ {
+ $$ = mm_strdup("table");
+}
+| TABLES
+ {
+ $$ = mm_strdup("tables");
+}
+| TABLESAMPLE
+ {
+ $$ = mm_strdup("tablesample");
+}
+| TABLESPACE
+ {
+ $$ = mm_strdup("tablespace");
+}
+| TEMP
+ {
+ $$ = mm_strdup("temp");
+}
+| TEMPLATE
+ {
+ $$ = mm_strdup("template");
+}
+| TEMPORARY
+ {
+ $$ = mm_strdup("temporary");
+}
+| TEXT_P
+ {
+ $$ = mm_strdup("text");
+}
+| THEN
+ {
+ $$ = mm_strdup("then");
+}
+| TIES
+ {
+ $$ = mm_strdup("ties");
+}
+| TIME
+ {
+ $$ = mm_strdup("time");
+}
+| TIMESTAMP
+ {
+ $$ = mm_strdup("timestamp");
+}
+| TRAILING
+ {
+ $$ = mm_strdup("trailing");
+}
+| TRANSACTION
+ {
+ $$ = mm_strdup("transaction");
+}
+| TRANSFORM
+ {
+ $$ = mm_strdup("transform");
+}
+| TREAT
+ {
+ $$ = mm_strdup("treat");
+}
+| TRIGGER
+ {
+ $$ = mm_strdup("trigger");
+}
+| TRIM
+ {
+ $$ = mm_strdup("trim");
+}
+| TRUE_P
+ {
+ $$ = mm_strdup("true");
+}
+| TRUNCATE
+ {
+ $$ = mm_strdup("truncate");
+}
+| TRUSTED
+ {
+ $$ = mm_strdup("trusted");
+}
+| TYPE_P
+ {
+ $$ = mm_strdup("type");
+}
+| TYPES_P
+ {
+ $$ = mm_strdup("types");
+}
+| UESCAPE
+ {
+ $$ = mm_strdup("uescape");
+}
+| UNBOUNDED
+ {
+ $$ = mm_strdup("unbounded");
+}
+| UNCOMMITTED
+ {
+ $$ = mm_strdup("uncommitted");
+}
+| UNENCRYPTED
+ {
+ $$ = mm_strdup("unencrypted");
+}
+| UNIQUE
+ {
+ $$ = mm_strdup("unique");
+}
+| UNKNOWN
+ {
+ $$ = mm_strdup("unknown");
+}
+| UNLISTEN
+ {
+ $$ = mm_strdup("unlisten");
+}
+| UNLOGGED
+ {
+ $$ = mm_strdup("unlogged");
+}
+| UNTIL
+ {
+ $$ = mm_strdup("until");
+}
+| UPDATE
+ {
+ $$ = mm_strdup("update");
+}
+| USER
+ {
+ $$ = mm_strdup("user");
+}
+| USING
+ {
+ $$ = mm_strdup("using");
+}
+| VACUUM
+ {
+ $$ = mm_strdup("vacuum");
+}
+| VALID
+ {
+ $$ = mm_strdup("valid");
+}
+| VALIDATE
+ {
+ $$ = mm_strdup("validate");
+}
+| VALIDATOR
+ {
+ $$ = mm_strdup("validator");
+}
+| VALUE_P
+ {
+ $$ = mm_strdup("value");
+}
+| VALUES
+ {
+ $$ = mm_strdup("values");
+}
+| VARCHAR
+ {
+ $$ = mm_strdup("varchar");
+}
+| VARIADIC
+ {
+ $$ = mm_strdup("variadic");
+}
+| VERBOSE
+ {
+ $$ = mm_strdup("verbose");
+}
+| VERSION_P
+ {
+ $$ = mm_strdup("version");
+}
+| VIEW
+ {
+ $$ = mm_strdup("view");
+}
+| VIEWS
+ {
+ $$ = mm_strdup("views");
+}
+| VOLATILE
+ {
+ $$ = mm_strdup("volatile");
+}
+| WHEN
+ {
+ $$ = mm_strdup("when");
+}
+| WHITESPACE_P
+ {
+ $$ = mm_strdup("whitespace");
+}
+| WORK
+ {
+ $$ = mm_strdup("work");
+}
+| WRAPPER
+ {
+ $$ = mm_strdup("wrapper");
+}
+| WRITE
+ {
+ $$ = mm_strdup("write");
+}
+| XML_P
+ {
+ $$ = mm_strdup("xml");
+}
+| XMLATTRIBUTES
+ {
+ $$ = mm_strdup("xmlattributes");
+}
+| XMLCONCAT
+ {
+ $$ = mm_strdup("xmlconcat");
+}
+| XMLELEMENT
+ {
+ $$ = mm_strdup("xmlelement");
+}
+| XMLEXISTS
+ {
+ $$ = mm_strdup("xmlexists");
+}
+| XMLFOREST
+ {
+ $$ = mm_strdup("xmlforest");
+}
+| XMLNAMESPACES
+ {
+ $$ = mm_strdup("xmlnamespaces");
+}
+| XMLPARSE
+ {
+ $$ = mm_strdup("xmlparse");
+}
+| XMLPI
+ {
+ $$ = mm_strdup("xmlpi");
+}
+| XMLROOT
+ {
+ $$ = mm_strdup("xmlroot");
+}
+| XMLSERIALIZE
+ {
+ $$ = mm_strdup("xmlserialize");
+}
+| XMLTABLE
+ {
+ $$ = mm_strdup("xmltable");
+}
+| YES_P
+ {
+ $$ = mm_strdup("yes");
+}
+| ZONE
+ {
+ $$ = mm_strdup("zone");
+}
+;
+
+
+/* trailer */
+/* src/interfaces/ecpg/preproc/ecpg.trailer */
+
+statements: /*EMPTY*/
+ | statements statement
+ ;
+
+statement: ecpgstart at toplevel_stmt ';'
+ {
+ if (connection)
+ free(connection);
+ connection = NULL;
+ }
+ | ecpgstart toplevel_stmt ';'
+ {
+ if (connection)
+ free(connection);
+ connection = NULL;
+ }
+ | ecpgstart ECPGVarDeclaration
+ {
+ fprintf(base_yyout, "%s", $2);
+ free($2);
+ output_line_number();
+ }
+ | ECPGDeclaration
+ | c_thing { fprintf(base_yyout, "%s", $1); free($1); }
+ | CPP_LINE { fprintf(base_yyout, "%s", $1); free($1); }
+ | '{' { braces_open++; fputs("{", base_yyout); }
+ | '}'
+ {
+ remove_typedefs(braces_open);
+ remove_variables(braces_open--);
+ if (braces_open == 0)
+ {
+ free(current_function);
+ current_function = NULL;
+ }
+ fputs("}", base_yyout);
+ }
+ ;
+
+CreateAsStmt: CREATE OptTemp TABLE create_as_target AS {FoundInto = 0;} SelectStmt opt_with_data
+ {
+ if (FoundInto == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
+
+ $$ = cat_str(7, mm_strdup("create"), $2, mm_strdup("table"), $4, mm_strdup("as"), $7, $8);
+ }
+ | CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS {FoundInto = 0;} SelectStmt opt_with_data
+ {
+ if (FoundInto == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
+
+ $$ = cat_str(7, mm_strdup("create"), $2, mm_strdup("table if not exists"), $7, mm_strdup("as"), $10, $11);
+ }
+ ;
+
+at: AT connection_object
+ {
+ connection = $2;
+ /*
+ * Do we have a variable as connection target? Remove the variable
+ * from the variable list or else it will be used twice.
+ */
+ if (argsinsert != NULL)
+ argsinsert = NULL;
+ }
+ ;
+
+/*
+ * the exec sql connect statement: connect to the given database
+ */
+ECPGConnect: SQL_CONNECT TO connection_target opt_connection_name opt_user
+ { $$ = cat_str(5, $3, mm_strdup(","), $5, mm_strdup(","), $4); }
+ | SQL_CONNECT TO DEFAULT
+ { $$ = mm_strdup("NULL, NULL, NULL, \"DEFAULT\""); }
+ /* also allow ORACLE syntax */
+ | SQL_CONNECT ora_user
+ { $$ = cat_str(3, mm_strdup("NULL,"), $2, mm_strdup(", NULL")); }
+ | DATABASE connection_target
+ { $$ = cat2_str($2, mm_strdup(", NULL, NULL, NULL")); }
+ ;
+
+connection_target: opt_database_name opt_server opt_port
+ {
+ /* old style: dbname[@server][:port] */
+ if (strlen($2) > 0 && *($2) != '@')
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"@\", found \"%s\"", $2);
+
+ /* C strings need to be handled differently */
+ if ($1[0] == '\"')
+ $$ = $1;
+ else
+ $$ = make3_str(mm_strdup("\""), make3_str($1, $2, $3), mm_strdup("\""));
+ }
+ | db_prefix ':' server opt_port '/' opt_database_name opt_options
+ {
+ /* new style: <tcp|unix>:postgresql://server[:port][/dbname] */
+ if (strncmp($1, "unix:postgresql", strlen("unix:postgresql")) != 0 && strncmp($1, "tcp:postgresql", strlen("tcp:postgresql")) != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are supported");
+
+ if (strncmp($3, "//", strlen("//")) != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"://\", found \"%s\"", $3);
+
+ if (strncmp($1, "unix", strlen("unix")) == 0 &&
+ strncmp($3 + strlen("//"), "localhost", strlen("localhost")) != 0 &&
+ strncmp($3 + strlen("//"), "127.0.0.1", strlen("127.0.0.1")) != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "Unix-domain sockets only work on \"localhost\" but not on \"%s\"", $3 + strlen("//"));
+
+ $$ = make3_str(make3_str(mm_strdup("\""), $1, mm_strdup(":")), $3, make3_str(make3_str($4, mm_strdup("/"), $6), $7, mm_strdup("\"")));
+ }
+ | char_variable
+ {
+ $$ = $1;
+ }
+ | ecpg_sconst
+ {
+ /* We can only process double quoted strings not single quotes ones,
+ * so we change the quotes.
+ * Note, that the rule for ecpg_sconst adds these single quotes. */
+ $1[0] = '\"';
+ $1[strlen($1)-1] = '\"';
+ $$ = $1;
+ }
+ ;
+
+opt_database_name: name { $$ = $1; }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+db_prefix: ecpg_ident cvariable
+ {
+ if (strcmp($2, "postgresql") != 0 && strcmp($2, "postgres") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"postgresql\", found \"%s\"", $2);
+
+ if (strcmp($1, "tcp") != 0 && strcmp($1, "unix") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid connection type: %s", $1);
+
+ $$ = make3_str($1, mm_strdup(":"), $2);
+ }
+ ;
+
+server: Op server_name
+ {
+ if (strcmp($1, "@") != 0 && strcmp($1, "//") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "expected \"@\" or \"://\", found \"%s\"", $1);
+
+ $$ = make2_str($1, $2);
+ }
+ ;
+
+opt_server: server { $$ = $1; }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+server_name: ColId { $$ = $1; }
+ | ColId '.' server_name { $$ = make3_str($1, mm_strdup("."), $3); }
+ | IP { $$ = make_name(); }
+ ;
+
+opt_port: ':' Iconst { $$ = make2_str(mm_strdup(":"), $2); }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+opt_connection_name: AS connection_object { $$ = $2; }
+ | /*EMPTY*/ { $$ = mm_strdup("NULL"); }
+ ;
+
+opt_user: USER ora_user { $$ = $2; }
+ | /*EMPTY*/ { $$ = mm_strdup("NULL, NULL"); }
+ ;
+
+ora_user: user_name
+ { $$ = cat2_str($1, mm_strdup(", NULL")); }
+ | user_name '/' user_name
+ { $$ = cat_str(3, $1, mm_strdup(","), $3); }
+ | user_name SQL_IDENTIFIED BY user_name
+ { $$ = cat_str(3, $1, mm_strdup(","), $4); }
+ | user_name USING user_name
+ { $$ = cat_str(3, $1, mm_strdup(","), $3); }
+ ;
+
+user_name: RoleId
+ {
+ if ($1[0] == '\"')
+ $$ = $1;
+ else
+ $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\""));
+ }
+ | ecpg_sconst
+ {
+ if ($1[0] == '\"')
+ $$ = $1;
+ else
+ $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\""));
+ }
+ | civar
+ {
+ enum ECPGttype type = argsinsert->variable->type->type;
+
+ /* if array see what's inside */
+ if (type == ECPGt_array)
+ type = argsinsert->variable->type->u.element->type;
+
+ /* handle varchars */
+ if (type == ECPGt_varchar)
+ $$ = make2_str(mm_strdup(argsinsert->variable->name), mm_strdup(".arr"));
+ else
+ $$ = mm_strdup(argsinsert->variable->name);
+ }
+ ;
+
+char_variable: cvariable
+ {
+ /* check if we have a string variable */
+ struct variable *p = find_variable($1);
+ enum ECPGttype type = p->type->type;
+
+ /* If we have just one character this is not a string */
+ if (atol(p->type->size) == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid data type");
+ else
+ {
+ /* if array see what's inside */
+ if (type == ECPGt_array)
+ type = p->type->u.element->type;
+
+ switch (type)
+ {
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ $$ = $1;
+ break;
+ case ECPGt_varchar:
+ $$ = make2_str($1, mm_strdup(".arr"));
+ break;
+ default:
+ mmerror(PARSE_ERROR, ET_ERROR, "invalid data type");
+ $$ = $1;
+ break;
+ }
+ }
+ }
+ ;
+
+opt_options: Op connect_options
+ {
+ if (strlen($1) == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "incomplete statement");
+
+ if (strcmp($1, "?") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "unrecognized token \"%s\"", $1);
+
+ $$ = make2_str(mm_strdup("?"), $2);
+ }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+connect_options: ColId opt_opt_value
+ {
+ $$ = make2_str($1, $2);
+ }
+ | ColId opt_opt_value Op connect_options
+ {
+ if (strlen($3) == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "incomplete statement");
+
+ if (strcmp($3, "&") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "unrecognized token \"%s\"", $3);
+
+ $$ = cat_str(3, make2_str($1, $2), $3, $4);
+ }
+ ;
+
+opt_opt_value: /*EMPTY*/
+ { $$ = EMPTY; }
+ | '=' Iconst
+ { $$ = make2_str(mm_strdup("="), $2); }
+ | '=' ecpg_ident
+ { $$ = make2_str(mm_strdup("="), $2); }
+ | '=' civar
+ { $$ = make2_str(mm_strdup("="), $2); }
+ ;
+
+prepared_name: name
+ {
+ if ($1[0] == '\"' && $1[strlen($1)-1] == '\"') /* already quoted? */
+ $$ = $1;
+ else /* not quoted => convert to lowercase */
+ {
+ size_t i;
+
+ for (i = 0; i< strlen($1); i++)
+ $1[i] = tolower((unsigned char) $1[i]);
+
+ $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\""));
+ }
+ }
+ | char_variable { $$ = $1; }
+ ;
+
+/*
+ * Declare Statement
+ */
+ECPGDeclareStmt: DECLARE prepared_name STATEMENT
+ {
+ struct declared_list *ptr = NULL;
+ /* Check whether the declared name has been defined or not */
+ for (ptr = g_declared_list; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp($2, ptr->name) == 0)
+ {
+ /* re-definition is not allowed */
+ mmerror(PARSE_ERROR, ET_ERROR, "name \"%s\" is already declared", ptr->name);
+ }
+ }
+
+ /* Add a new declared name into the g_declared_list */
+ ptr = NULL;
+ ptr = (struct declared_list *)mm_alloc(sizeof(struct declared_list));
+ if (ptr)
+ {
+ /* initial definition */
+ ptr -> name = $2;
+ if (connection)
+ ptr -> connection = mm_strdup(connection);
+ else
+ ptr -> connection = NULL;
+
+ ptr -> next = g_declared_list;
+ g_declared_list = ptr;
+ }
+
+ $$ = cat_str(3 , mm_strdup("/* declare "), mm_strdup($2), mm_strdup(" as an SQL identifier */"));
+ }
+;
+
+/*
+ * Declare a prepared cursor. The syntax is different from the standard
+ * declare statement, so we create a new rule.
+ */
+ECPGCursorStmt: DECLARE cursor_name cursor_options CURSOR opt_hold FOR prepared_name
+ {
+ struct cursor *ptr, *this;
+ char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
+ int (* strcmp_fn)(const char *, const char *) = (($2[0] == ':' || $2[0] == '"') ? strcmp : pg_strcasecmp);
+ struct variable *thisquery = (struct variable *)mm_alloc(sizeof(struct variable));
+ char *comment;
+ char *con;
+
+ if (INFORMIX_MODE && pg_strcasecmp($2, "database") == 0)
+ mmfatal(PARSE_ERROR, "\"database\" cannot be used as cursor name in INFORMIX mode");
+
+ check_declared_list($7);
+ con = connection ? connection : "NULL";
+ for (ptr = cur; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp_fn($2, ptr->name) == 0)
+ {
+ /* re-definition is a bug */
+ if ($2[0] == ':')
+ mmerror(PARSE_ERROR, ET_ERROR, "using variable \"%s\" in different declare statements is not supported", $2+1);
+ else
+ mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" is already defined", $2);
+ }
+ }
+
+ this = (struct cursor *) mm_alloc(sizeof(struct cursor));
+
+ /* initial definition */
+ this->next = cur;
+ this->name = $2;
+ this->function = (current_function ? mm_strdup(current_function) : NULL);
+ this->connection = connection ? mm_strdup(connection) : NULL;
+ this->command = cat_str(6, mm_strdup("declare"), cursor_marker, $3, mm_strdup("cursor"), $5, mm_strdup("for $1"));
+ this->argsresult = NULL;
+ this->argsresult_oos = NULL;
+
+ thisquery->type = &ecpg_query;
+ thisquery->brace_level = 0;
+ thisquery->next = NULL;
+ thisquery->name = (char *) mm_alloc(sizeof("ECPGprepared_statement(, , __LINE__)") + strlen(con) + strlen($7));
+ sprintf(thisquery->name, "ECPGprepared_statement(%s, %s, __LINE__)", con, $7);
+
+ this->argsinsert = NULL;
+ this->argsinsert_oos = NULL;
+ if ($2[0] == ':')
+ {
+ struct variable *var = find_variable($2 + 1);
+ remove_variable_from_list(&argsinsert, var);
+ add_variable_to_head(&(this->argsinsert), var, &no_indicator);
+ }
+ add_variable_to_head(&(this->argsinsert), thisquery, &no_indicator);
+
+ cur = this;
+
+ comment = cat_str(3, mm_strdup("/*"), mm_strdup(this->command), mm_strdup("*/"));
+
+ $$ = cat_str(2, adjust_outofscope_cursor_vars(this),
+ comment);
+ }
+ ;
+
+ECPGExecuteImmediateStmt: EXECUTE IMMEDIATE execstring
+ {
+ /* execute immediate means prepare the statement and
+ * immediately execute it */
+ $$ = $3;
+ };
+/*
+ * variable declaration outside exec sql declare block
+ */
+ECPGVarDeclaration: single_vt_declaration;
+
+single_vt_declaration: type_declaration { $$ = $1; }
+ | var_declaration { $$ = $1; }
+ ;
+
+precision: NumericOnly { $$ = $1; };
+
+opt_scale: ',' NumericOnly { $$ = $2; }
+ | /* EMPTY */ { $$ = EMPTY; }
+ ;
+
+ecpg_interval: opt_interval { $$ = $1; }
+ | YEAR_P TO MINUTE_P { $$ = mm_strdup("year to minute"); }
+ | YEAR_P TO SECOND_P { $$ = mm_strdup("year to second"); }
+ | DAY_P TO DAY_P { $$ = mm_strdup("day to day"); }
+ | MONTH_P TO MONTH_P { $$ = mm_strdup("month to month"); }
+ ;
+
+/*
+ * variable declaration inside exec sql declare block
+ */
+ECPGDeclaration: sql_startdeclare
+ { fputs("/* exec sql begin declare section */", base_yyout); }
+ var_type_declarations sql_enddeclare
+ {
+ fprintf(base_yyout, "%s/* exec sql end declare section */", $3);
+ free($3);
+ output_line_number();
+ }
+ ;
+
+sql_startdeclare: ecpgstart BEGIN_P DECLARE SQL_SECTION ';' {};
+
+sql_enddeclare: ecpgstart END_P DECLARE SQL_SECTION ';' {};
+
+var_type_declarations: /*EMPTY*/ { $$ = EMPTY; }
+ | vt_declarations { $$ = $1; }
+ ;
+
+vt_declarations: single_vt_declaration { $$ = $1; }
+ | CPP_LINE { $$ = $1; }
+ | vt_declarations single_vt_declaration { $$ = cat2_str($1, $2); }
+ | vt_declarations CPP_LINE { $$ = cat2_str($1, $2); }
+ ;
+
+variable_declarations: var_declaration { $$ = $1; }
+ | variable_declarations var_declaration { $$ = cat2_str($1, $2); }
+ ;
+
+type_declaration: S_TYPEDEF
+ {
+ /* reset this variable so we see if there was */
+ /* an initializer specified */
+ initializer = 0;
+ }
+ var_type opt_pointer ECPGColLabelCommon opt_array_bounds ';'
+ {
+ add_typedef($5, $6.index1, $6.index2, $3.type_enum, $3.type_dimension, $3.type_index, initializer, *$4 ? 1 : 0);
+
+ fprintf(base_yyout, "typedef %s %s %s %s;\n", $3.type_str, *$4 ? "*" : "", $5, $6.str);
+ output_line_number();
+ $$ = mm_strdup("");
+ };
+
+var_declaration:
+ storage_declaration var_type
+ {
+ actual_type[struct_level].type_storage = $1;
+ actual_type[struct_level].type_enum = $2.type_enum;
+ actual_type[struct_level].type_str = $2.type_str;
+ actual_type[struct_level].type_dimension = $2.type_dimension;
+ actual_type[struct_level].type_index = $2.type_index;
+ actual_type[struct_level].type_sizeof = $2.type_sizeof;
+
+ actual_startline[struct_level] = hashline_number();
+ }
+ variable_list ';'
+ {
+ $$ = cat_str(5, actual_startline[struct_level], $1, $2.type_str, $4, mm_strdup(";\n"));
+ }
+ | var_type
+ {
+ actual_type[struct_level].type_storage = EMPTY;
+ actual_type[struct_level].type_enum = $1.type_enum;
+ actual_type[struct_level].type_str = $1.type_str;
+ actual_type[struct_level].type_dimension = $1.type_dimension;
+ actual_type[struct_level].type_index = $1.type_index;
+ actual_type[struct_level].type_sizeof = $1.type_sizeof;
+
+ actual_startline[struct_level] = hashline_number();
+ }
+ variable_list ';'
+ {
+ $$ = cat_str(4, actual_startline[struct_level], $1.type_str, $3, mm_strdup(";\n"));
+ }
+ | struct_union_type_with_symbol ';'
+ {
+ $$ = cat2_str($1, mm_strdup(";"));
+ }
+ ;
+
+opt_bit_field: ':' Iconst { $$ =cat2_str(mm_strdup(":"), $2); }
+ | /* EMPTY */ { $$ = EMPTY; }
+ ;
+
+storage_declaration: storage_clause storage_modifier
+ {$$ = cat2_str ($1, $2); }
+ | storage_clause {$$ = $1; }
+ | storage_modifier {$$ = $1; }
+ ;
+
+storage_clause : S_EXTERN { $$ = mm_strdup("extern"); }
+ | S_STATIC { $$ = mm_strdup("static"); }
+ | S_REGISTER { $$ = mm_strdup("register"); }
+ | S_AUTO { $$ = mm_strdup("auto"); }
+ ;
+
+storage_modifier : S_CONST { $$ = mm_strdup("const"); }
+ | S_VOLATILE { $$ = mm_strdup("volatile"); }
+ ;
+
+var_type: simple_type
+ {
+ $$.type_enum = $1;
+ $$.type_str = mm_strdup(ecpg_type_name($1));
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ | struct_union_type
+ {
+ $$.type_str = $1;
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+
+ if (strncmp($1, "struct", sizeof("struct")-1) == 0)
+ {
+ $$.type_enum = ECPGt_struct;
+ $$.type_sizeof = ECPGstruct_sizeof;
+ }
+ else
+ {
+ $$.type_enum = ECPGt_union;
+ $$.type_sizeof = NULL;
+ }
+ }
+ | enum_type
+ {
+ $$.type_str = $1;
+ $$.type_enum = ECPGt_int;
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ | ECPGColLabelCommon '(' precision opt_scale ')'
+ {
+ if (strcmp($1, "numeric") == 0)
+ {
+ $$.type_enum = ECPGt_numeric;
+ $$.type_str = mm_strdup("numeric");
+ }
+ else if (strcmp($1, "decimal") == 0)
+ {
+ $$.type_enum = ECPGt_decimal;
+ $$.type_str = mm_strdup("decimal");
+ }
+ else
+ {
+ mmerror(PARSE_ERROR, ET_ERROR, "only data types numeric and decimal have precision/scale argument");
+ $$.type_enum = ECPGt_numeric;
+ $$.type_str = mm_strdup("numeric");
+ }
+
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ | ECPGColLabelCommon ecpg_interval
+ {
+ if (strlen($2) != 0 && strcmp ($1, "datetime") != 0 && strcmp ($1, "interval") != 0)
+ mmerror (PARSE_ERROR, ET_ERROR, "interval specification not allowed here");
+
+ /*
+ * Check for type names that the SQL grammar treats as
+ * unreserved keywords
+ */
+ if (strcmp($1, "varchar") == 0)
+ {
+ $$.type_enum = ECPGt_varchar;
+ $$.type_str = EMPTY; /*mm_strdup("varchar");*/
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "bytea") == 0)
+ {
+ $$.type_enum = ECPGt_bytea;
+ $$.type_str = EMPTY;
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "float") == 0)
+ {
+ $$.type_enum = ECPGt_float;
+ $$.type_str = mm_strdup("float");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "double") == 0)
+ {
+ $$.type_enum = ECPGt_double;
+ $$.type_str = mm_strdup("double");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "numeric") == 0)
+ {
+ $$.type_enum = ECPGt_numeric;
+ $$.type_str = mm_strdup("numeric");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "decimal") == 0)
+ {
+ $$.type_enum = ECPGt_decimal;
+ $$.type_str = mm_strdup("decimal");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "date") == 0)
+ {
+ $$.type_enum = ECPGt_date;
+ $$.type_str = mm_strdup("date");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "timestamp") == 0)
+ {
+ $$.type_enum = ECPGt_timestamp;
+ $$.type_str = mm_strdup("timestamp");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "interval") == 0)
+ {
+ $$.type_enum = ECPGt_interval;
+ $$.type_str = mm_strdup("interval");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if (strcmp($1, "datetime") == 0)
+ {
+ $$.type_enum = ECPGt_timestamp;
+ $$.type_str = mm_strdup("timestamp");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else if ((strcmp($1, "string") == 0) && INFORMIX_MODE)
+ {
+ $$.type_enum = ECPGt_string;
+ $$.type_str = mm_strdup("char");
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = NULL;
+ }
+ else
+ {
+ /* this is for typedef'ed types */
+ struct typedefs *this = get_typedef($1);
+
+ $$.type_str = (this->type->type_enum == ECPGt_varchar || this->type->type_enum == ECPGt_bytea) ? EMPTY : mm_strdup(this->name);
+ $$.type_enum = this->type->type_enum;
+ $$.type_dimension = this->type->type_dimension;
+ $$.type_index = this->type->type_index;
+ if (this->type->type_sizeof && strlen(this->type->type_sizeof) != 0)
+ $$.type_sizeof = this->type->type_sizeof;
+ else
+ $$.type_sizeof = cat_str(3, mm_strdup("sizeof("), mm_strdup(this->name), mm_strdup(")"));
+
+ struct_member_list[struct_level] = ECPGstruct_member_dup(this->struct_member_list);
+ }
+ }
+ | s_struct_union_symbol
+ {
+ /* this is for named structs/unions */
+ char *name;
+ struct typedefs *this;
+ bool forward = (forward_name != NULL && strcmp($1.symbol, forward_name) == 0 && strcmp($1.su, "struct") == 0);
+
+ name = cat2_str($1.su, $1.symbol);
+ /* Do we have a forward definition? */
+ if (!forward)
+ {
+ /* No */
+
+ this = get_typedef(name);
+ $$.type_str = mm_strdup(this->name);
+ $$.type_enum = this->type->type_enum;
+ $$.type_dimension = this->type->type_dimension;
+ $$.type_index = this->type->type_index;
+ $$.type_sizeof = this->type->type_sizeof;
+ struct_member_list[struct_level] = ECPGstruct_member_dup(this->struct_member_list);
+ free(name);
+ }
+ else
+ {
+ $$.type_str = name;
+ $$.type_enum = ECPGt_long;
+ $$.type_dimension = mm_strdup("-1");
+ $$.type_index = mm_strdup("-1");
+ $$.type_sizeof = mm_strdup("");
+ struct_member_list[struct_level] = NULL;
+ }
+ }
+ ;
+
+enum_type: ENUM_P symbol enum_definition
+ { $$ = cat_str(3, mm_strdup("enum"), $2, $3); }
+ | ENUM_P enum_definition
+ { $$ = cat2_str(mm_strdup("enum"), $2); }
+ | ENUM_P symbol
+ { $$ = cat2_str(mm_strdup("enum"), $2); }
+ ;
+
+enum_definition: '{' c_list '}'
+ { $$ = cat_str(3, mm_strdup("{"), $2, mm_strdup("}")); };
+
+struct_union_type_with_symbol: s_struct_union_symbol
+ {
+ struct_member_list[struct_level++] = NULL;
+ if (struct_level >= STRUCT_DEPTH)
+ mmerror(PARSE_ERROR, ET_ERROR, "too many levels in nested structure/union definition");
+ forward_name = mm_strdup($1.symbol);
+ }
+ '{' variable_declarations '}'
+ {
+ struct typedefs *ptr, *this;
+ struct this_type su_type;
+
+ ECPGfree_struct_member(struct_member_list[struct_level]);
+ struct_member_list[struct_level] = NULL;
+ struct_level--;
+ if (strncmp($1.su, "struct", sizeof("struct")-1) == 0)
+ su_type.type_enum = ECPGt_struct;
+ else
+ su_type.type_enum = ECPGt_union;
+ su_type.type_str = cat2_str($1.su, $1.symbol);
+ free(forward_name);
+ forward_name = NULL;
+
+ /* This is essentially a typedef but needs the keyword struct/union as well.
+ * So we create the typedef for each struct definition with symbol */
+ for (ptr = types; ptr != NULL; ptr = ptr->next)
+ {
+ if (strcmp(su_type.type_str, ptr->name) == 0)
+ /* re-definition is a bug */
+ mmerror(PARSE_ERROR, ET_ERROR, "type \"%s\" is already defined", su_type.type_str);
+ }
+
+ this = (struct typedefs *) mm_alloc(sizeof(struct typedefs));
+
+ /* initial definition */
+ this->next = types;
+ this->name = mm_strdup(su_type.type_str);
+ this->brace_level = braces_open;
+ this->type = (struct this_type *) mm_alloc(sizeof(struct this_type));
+ this->type->type_enum = su_type.type_enum;
+ this->type->type_str = mm_strdup(su_type.type_str);
+ this->type->type_dimension = mm_strdup("-1"); /* dimension of array */
+ this->type->type_index = mm_strdup("-1"); /* length of string */
+ this->type->type_sizeof = ECPGstruct_sizeof;
+ this->struct_member_list = struct_member_list[struct_level];
+
+ types = this;
+ $$ = cat_str(4, su_type.type_str, mm_strdup("{"), $4, mm_strdup("}"));
+ }
+ ;
+
+struct_union_type: struct_union_type_with_symbol { $$ = $1; }
+ | s_struct_union
+ {
+ struct_member_list[struct_level++] = NULL;
+ if (struct_level >= STRUCT_DEPTH)
+ mmerror(PARSE_ERROR, ET_ERROR, "too many levels in nested structure/union definition");
+ }
+ '{' variable_declarations '}'
+ {
+ ECPGfree_struct_member(struct_member_list[struct_level]);
+ struct_member_list[struct_level] = NULL;
+ struct_level--;
+ $$ = cat_str(4, $1, mm_strdup("{"), $4, mm_strdup("}"));
+ }
+ ;
+
+s_struct_union_symbol: SQL_STRUCT symbol
+ {
+ $$.su = mm_strdup("struct");
+ $$.symbol = $2;
+ ECPGstruct_sizeof = cat_str(3, mm_strdup("sizeof("), cat2_str(mm_strdup($$.su), mm_strdup($$.symbol)), mm_strdup(")"));
+ }
+ | UNION symbol
+ {
+ $$.su = mm_strdup("union");
+ $$.symbol = $2;
+ }
+ ;
+
+s_struct_union: SQL_STRUCT
+ {
+ ECPGstruct_sizeof = mm_strdup(""); /* This must not be NULL to distinguish from simple types. */
+ $$ = mm_strdup("struct");
+ }
+ | UNION
+ {
+ $$ = mm_strdup("union");
+ }
+ ;
+
+simple_type: unsigned_type { $$=$1; }
+ | opt_signed signed_type { $$=$2; }
+ ;
+
+unsigned_type: SQL_UNSIGNED SQL_SHORT { $$ = ECPGt_unsigned_short; }
+ | SQL_UNSIGNED SQL_SHORT INT_P { $$ = ECPGt_unsigned_short; }
+ | SQL_UNSIGNED { $$ = ECPGt_unsigned_int; }
+ | SQL_UNSIGNED INT_P { $$ = ECPGt_unsigned_int; }
+ | SQL_UNSIGNED SQL_LONG { $$ = ECPGt_unsigned_long; }
+ | SQL_UNSIGNED SQL_LONG INT_P { $$ = ECPGt_unsigned_long; }
+ | SQL_UNSIGNED SQL_LONG SQL_LONG { $$ = ECPGt_unsigned_long_long; }
+ | SQL_UNSIGNED SQL_LONG SQL_LONG INT_P { $$ = ECPGt_unsigned_long_long; }
+ | SQL_UNSIGNED CHAR_P { $$ = ECPGt_unsigned_char; }
+ ;
+
+signed_type: SQL_SHORT { $$ = ECPGt_short; }
+ | SQL_SHORT INT_P { $$ = ECPGt_short; }
+ | INT_P { $$ = ECPGt_int; }
+ | SQL_LONG { $$ = ECPGt_long; }
+ | SQL_LONG INT_P { $$ = ECPGt_long; }
+ | SQL_LONG SQL_LONG { $$ = ECPGt_long_long; }
+ | SQL_LONG SQL_LONG INT_P { $$ = ECPGt_long_long; }
+ | SQL_BOOL { $$ = ECPGt_bool; }
+ | CHAR_P { $$ = ECPGt_char; }
+ | DOUBLE_P { $$ = ECPGt_double; }
+ ;
+
+opt_signed: SQL_SIGNED
+ | /* EMPTY */
+ ;
+
+variable_list: variable
+ { $$ = $1; }
+ | variable_list ',' variable
+ {
+ if (actual_type[struct_level].type_enum == ECPGt_varchar || actual_type[struct_level].type_enum == ECPGt_bytea)
+ $$ = cat_str(4, $1, mm_strdup(";"), mm_strdup(actual_type[struct_level].type_storage), $3);
+ else
+ $$ = cat_str(3, $1, mm_strdup(","), $3);
+ }
+ ;
+
+variable: opt_pointer ECPGColLabel opt_array_bounds opt_bit_field opt_initializer
+ {
+ struct ECPGtype * type;
+ char *dimension = $3.index1; /* dimension of array */
+ char *length = $3.index2; /* length of string */
+ char *dim_str;
+ char *vcn;
+ int *varlen_type_counter;
+ char *struct_name;
+
+ adjust_array(actual_type[struct_level].type_enum, &dimension, &length, actual_type[struct_level].type_dimension, actual_type[struct_level].type_index, strlen($1), false);
+ switch (actual_type[struct_level].type_enum)
+ {
+ case ECPGt_struct:
+ case ECPGt_union:
+ if (atoi(dimension) < 0)
+ type = ECPGmake_struct_type(struct_member_list[struct_level], actual_type[struct_level].type_enum, actual_type[struct_level].type_str, actual_type[struct_level].type_sizeof);
+ else
+ type = ECPGmake_array_type(ECPGmake_struct_type(struct_member_list[struct_level], actual_type[struct_level].type_enum, actual_type[struct_level].type_str, actual_type[struct_level].type_sizeof), dimension);
+
+ $$ = cat_str(5, $1, mm_strdup($2), $3.str, $4, $5);
+ break;
+
+ case ECPGt_varchar:
+ case ECPGt_bytea:
+ if (actual_type[struct_level].type_enum == ECPGt_varchar)
+ {
+ varlen_type_counter = &varchar_counter;
+ struct_name = " struct varchar_";
+ }
+ else
+ {
+ varlen_type_counter = &bytea_counter;
+ struct_name = " struct bytea_";
+ }
+ if (atoi(dimension) < 0)
+ type = ECPGmake_simple_type(actual_type[struct_level].type_enum, length, *varlen_type_counter);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(actual_type[struct_level].type_enum, length, *varlen_type_counter), dimension);
+
+ if (strcmp(dimension, "0") == 0 || abs(atoi(dimension)) == 1)
+ dim_str=mm_strdup("");
+ else
+ dim_str=cat_str(3, mm_strdup("["), mm_strdup(dimension), mm_strdup("]"));
+ /* cannot check for atoi <= 0 because a defined constant will yield 0 here as well */
+ if (atoi(length) < 0 || strcmp(length, "0") == 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "pointers to varchar are not implemented");
+
+ /* make sure varchar struct name is unique by adding a unique counter to its definition */
+ vcn = (char *) mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ sprintf(vcn, "%d", *varlen_type_counter);
+ if (strcmp(dimension, "0") == 0)
+ $$ = cat_str(7, make2_str(mm_strdup(struct_name), vcn), mm_strdup(" { int len; char arr["), mm_strdup(length), mm_strdup("]; } *"), mm_strdup($2), $4, $5);
+ else
+ $$ = cat_str(8, make2_str(mm_strdup(struct_name), vcn), mm_strdup(" { int len; char arr["), mm_strdup(length), mm_strdup("]; } "), mm_strdup($2), dim_str, $4, $5);
+ (*varlen_type_counter)++;
+ break;
+
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ if (atoi(dimension) == -1)
+ {
+ int i = strlen($5);
+
+ if (atoi(length) == -1 && i > 0) /* char <var>[] = "string" */
+ {
+ /* if we have an initializer but no string size set, let's use the initializer's length */
+ free(length);
+ length = mm_alloc(i+sizeof("sizeof()"));
+ sprintf(length, "sizeof(%s)", $5+2);
+ }
+ type = ECPGmake_simple_type(actual_type[struct_level].type_enum, length, 0);
+ }
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(actual_type[struct_level].type_enum, length, 0), dimension);
+
+ $$ = cat_str(5, $1, mm_strdup($2), $3.str, $4, $5);
+ break;
+
+ default:
+ if (atoi(dimension) < 0)
+ type = ECPGmake_simple_type(actual_type[struct_level].type_enum, mm_strdup("1"), 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(actual_type[struct_level].type_enum, mm_strdup("1"), 0), dimension);
+
+ $$ = cat_str(5, $1, mm_strdup($2), $3.str, $4, $5);
+ break;
+ }
+
+ if (struct_level == 0)
+ new_variable($2, type, braces_open);
+ else
+ ECPGmake_struct_member($2, type, &(struct_member_list[struct_level - 1]));
+
+ free($2);
+ }
+ ;
+
+opt_initializer: /*EMPTY*/
+ { $$ = EMPTY; }
+ | '=' c_term
+ {
+ initializer = 1;
+ $$ = cat2_str(mm_strdup("="), $2);
+ }
+ ;
+
+opt_pointer: /*EMPTY*/ { $$ = EMPTY; }
+ | '*' { $$ = mm_strdup("*"); }
+ | '*' '*' { $$ = mm_strdup("**"); }
+ ;
+
+/*
+ * We try to simulate the correct DECLARE syntax here so we get dynamic SQL
+ */
+ECPGDeclare: DECLARE STATEMENT ecpg_ident
+ {
+ /* this is only supported for compatibility */
+ $$ = cat_str(3, mm_strdup("/* declare statement"), $3, mm_strdup("*/"));
+ }
+ ;
+/*
+ * the exec sql disconnect statement: disconnect from the given database
+ */
+ECPGDisconnect: SQL_DISCONNECT dis_name { $$ = $2; }
+ ;
+
+dis_name: connection_object { $$ = $1; }
+ | CURRENT_P { $$ = mm_strdup("\"CURRENT\""); }
+ | ALL { $$ = mm_strdup("\"ALL\""); }
+ | /* EMPTY */ { $$ = mm_strdup("\"CURRENT\""); }
+ ;
+
+connection_object: name { $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\"")); }
+ | DEFAULT { $$ = mm_strdup("\"DEFAULT\""); }
+ | char_variable { $$ = $1; }
+ ;
+
+execstring: char_variable
+ { $$ = $1; }
+ | CSTRING
+ { $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\"")); }
+ ;
+
+/*
+ * the exec sql free command to deallocate a previously
+ * prepared statement
+ */
+ECPGFree: SQL_FREE cursor_name { $$ = $2; }
+ | SQL_FREE ALL { $$ = mm_strdup("all"); }
+ ;
+
+/*
+ * open is an open cursor, at the moment this has to be removed
+ */
+ECPGOpen: SQL_OPEN cursor_name opt_ecpg_using
+ {
+ if ($2[0] == ':')
+ remove_variable_from_list(&argsinsert, find_variable($2 + 1));
+ $$ = $2;
+ }
+ ;
+
+opt_ecpg_using: /*EMPTY*/ { $$ = EMPTY; }
+ | ecpg_using { $$ = $1; }
+ ;
+
+ecpg_using: USING using_list { $$ = EMPTY; }
+ | using_descriptor { $$ = $1; }
+ ;
+
+using_descriptor: USING SQL_P SQL_DESCRIPTOR quoted_ident_stringvar
+ {
+ add_variable_to_head(&argsinsert, descriptor_variable($4,0), &no_indicator);
+ $$ = EMPTY;
+ }
+ | USING SQL_DESCRIPTOR name
+ {
+ add_variable_to_head(&argsinsert, sqlda_variable($3), &no_indicator);
+ $$ = EMPTY;
+ }
+ ;
+
+into_descriptor: INTO SQL_P SQL_DESCRIPTOR quoted_ident_stringvar
+ {
+ add_variable_to_head(&argsresult, descriptor_variable($4,1), &no_indicator);
+ $$ = EMPTY;
+ }
+ | INTO SQL_DESCRIPTOR name
+ {
+ add_variable_to_head(&argsresult, sqlda_variable($3), &no_indicator);
+ $$ = EMPTY;
+ }
+ ;
+
+into_sqlda: INTO name
+ {
+ add_variable_to_head(&argsresult, sqlda_variable($2), &no_indicator);
+ $$ = EMPTY;
+ }
+ ;
+
+using_list: UsingValue | UsingValue ',' using_list;
+
+UsingValue: UsingConst
+ {
+ char *length = mm_alloc(32);
+
+ sprintf(length, "%zu", strlen($1));
+ add_variable_to_head(&argsinsert, new_variable($1, ECPGmake_simple_type(ECPGt_const, length, 0), 0), &no_indicator);
+ }
+ | civar { $$ = EMPTY; }
+ | civarind { $$ = EMPTY; }
+ ;
+
+UsingConst: Iconst { $$ = $1; }
+ | '+' Iconst { $$ = cat_str(2, mm_strdup("+"), $2); }
+ | '-' Iconst { $$ = cat_str(2, mm_strdup("-"), $2); }
+ | ecpg_fconst { $$ = $1; }
+ | '+' ecpg_fconst { $$ = cat_str(2, mm_strdup("+"), $2); }
+ | '-' ecpg_fconst { $$ = cat_str(2, mm_strdup("-"), $2); }
+ | ecpg_sconst { $$ = $1; }
+ | ecpg_bconst { $$ = $1; }
+ | ecpg_xconst { $$ = $1; }
+ ;
+
+/*
+ * We accept DESCRIBE [OUTPUT] but do nothing with DESCRIBE INPUT so far.
+ */
+ECPGDescribe: SQL_DESCRIBE INPUT_P prepared_name using_descriptor
+ {
+ $$.input = 1;
+ $$.stmt_name = $3;
+ }
+ | SQL_DESCRIBE opt_output prepared_name using_descriptor
+ {
+ struct variable *var;
+ var = argsinsert->variable;
+ remove_variable_from_list(&argsinsert, var);
+ add_variable_to_head(&argsresult, var, &no_indicator);
+
+ $$.input = 0;
+ $$.stmt_name = $3;
+ }
+ | SQL_DESCRIBE opt_output prepared_name into_descriptor
+ {
+ $$.input = 0;
+ $$.stmt_name = $3;
+ }
+ | SQL_DESCRIBE INPUT_P prepared_name into_sqlda
+ {
+ $$.input = 1;
+ $$.stmt_name = $3;
+ }
+ | SQL_DESCRIBE opt_output prepared_name into_sqlda
+ {
+ $$.input = 0;
+ $$.stmt_name = $3;
+ }
+ ;
+
+opt_output: SQL_OUTPUT { $$ = mm_strdup("output"); }
+ | /* EMPTY */ { $$ = EMPTY; }
+ ;
+
+/*
+ * dynamic SQL: descriptor based access
+ * originally written by Christof Petig <christof.petig@wtal.de>
+ * and Peter Eisentraut <peter.eisentraut@credativ.de>
+ */
+
+/*
+ * allocate a descriptor
+ */
+ECPGAllocateDescr: SQL_ALLOCATE SQL_DESCRIPTOR quoted_ident_stringvar
+ {
+ add_descriptor($3,connection);
+ $$ = $3;
+ }
+ ;
+
+
+/*
+ * deallocate a descriptor
+ */
+ECPGDeallocateDescr: DEALLOCATE SQL_DESCRIPTOR quoted_ident_stringvar
+ {
+ drop_descriptor($3,connection);
+ $$ = $3;
+ }
+ ;
+
+/*
+ * manipulate a descriptor header
+ */
+
+ECPGGetDescriptorHeader: SQL_GET SQL_DESCRIPTOR quoted_ident_stringvar ECPGGetDescHeaderItems
+ { $$ = $3; }
+ ;
+
+ECPGGetDescHeaderItems: ECPGGetDescHeaderItem
+ | ECPGGetDescHeaderItems ',' ECPGGetDescHeaderItem
+ ;
+
+ECPGGetDescHeaderItem: cvariable '=' desc_header_item
+ { push_assignment($1, $3); }
+ ;
+
+
+ECPGSetDescriptorHeader: SET SQL_DESCRIPTOR quoted_ident_stringvar ECPGSetDescHeaderItems
+ { $$ = $3; }
+ ;
+
+ECPGSetDescHeaderItems: ECPGSetDescHeaderItem
+ | ECPGSetDescHeaderItems ',' ECPGSetDescHeaderItem
+ ;
+
+ECPGSetDescHeaderItem: desc_header_item '=' IntConstVar
+ {
+ push_assignment($3, $1);
+ }
+ ;
+
+IntConstVar: Iconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+
+ sprintf(length, "%zu", strlen($1));
+ new_variable($1, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = $1;
+ }
+ | cvariable
+ {
+ $$ = $1;
+ }
+ ;
+
+desc_header_item: SQL_COUNT { $$ = ECPGd_count; }
+ ;
+
+/*
+ * manipulate a descriptor
+ */
+
+ECPGGetDescriptor: SQL_GET SQL_DESCRIPTOR quoted_ident_stringvar VALUE_P IntConstVar ECPGGetDescItems
+ { $$.str = $5; $$.name = $3; }
+ ;
+
+ECPGGetDescItems: ECPGGetDescItem
+ | ECPGGetDescItems ',' ECPGGetDescItem
+ ;
+
+ECPGGetDescItem: cvariable '=' descriptor_item { push_assignment($1, $3); };
+
+
+ECPGSetDescriptor: SET SQL_DESCRIPTOR quoted_ident_stringvar VALUE_P IntConstVar ECPGSetDescItems
+ { $$.str = $5; $$.name = $3; }
+ ;
+
+ECPGSetDescItems: ECPGSetDescItem
+ | ECPGSetDescItems ',' ECPGSetDescItem
+ ;
+
+ECPGSetDescItem: descriptor_item '=' AllConstVar
+ {
+ push_assignment($3, $1);
+ }
+ ;
+
+AllConstVar: ecpg_fconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+
+ sprintf(length, "%zu", strlen($1));
+ new_variable($1, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = $1;
+ }
+
+ | IntConstVar
+ {
+ $$ = $1;
+ }
+
+ | '-' ecpg_fconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *var = cat2_str(mm_strdup("-"), $2);
+
+ sprintf(length, "%zu", strlen(var));
+ new_variable(var, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = var;
+ }
+
+ | '-' Iconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *var = cat2_str(mm_strdup("-"), $2);
+
+ sprintf(length, "%zu", strlen(var));
+ new_variable(var, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = var;
+ }
+
+ | ecpg_sconst
+ {
+ char *length = mm_alloc(sizeof(int) * CHAR_BIT * 10 / 3);
+ char *var = $1 + 1;
+
+ var[strlen(var) - 1] = '\0';
+ sprintf(length, "%zu", strlen(var));
+ new_variable(var, ECPGmake_simple_type(ECPGt_const, length, 0), 0);
+ $$ = var;
+ }
+ ;
+
+descriptor_item: SQL_CARDINALITY { $$ = ECPGd_cardinality; }
+ | DATA_P { $$ = ECPGd_data; }
+ | SQL_DATETIME_INTERVAL_CODE { $$ = ECPGd_di_code; }
+ | SQL_DATETIME_INTERVAL_PRECISION { $$ = ECPGd_di_precision; }
+ | SQL_INDICATOR { $$ = ECPGd_indicator; }
+ | SQL_KEY_MEMBER { $$ = ECPGd_key_member; }
+ | SQL_LENGTH { $$ = ECPGd_length; }
+ | NAME_P { $$ = ECPGd_name; }
+ | SQL_NULLABLE { $$ = ECPGd_nullable; }
+ | SQL_OCTET_LENGTH { $$ = ECPGd_octet; }
+ | PRECISION { $$ = ECPGd_precision; }
+ | SQL_RETURNED_LENGTH { $$ = ECPGd_length; }
+ | SQL_RETURNED_OCTET_LENGTH { $$ = ECPGd_ret_octet; }
+ | SQL_SCALE { $$ = ECPGd_scale; }
+ | TYPE_P { $$ = ECPGd_type; }
+ ;
+
+/*
+ * set/reset the automatic transaction mode, this needs a different handling
+ * as the other set commands
+ */
+ECPGSetAutocommit: SET SQL_AUTOCOMMIT '=' on_off { $$ = $4; }
+ | SET SQL_AUTOCOMMIT TO on_off { $$ = $4; }
+ ;
+
+on_off: ON { $$ = mm_strdup("on"); }
+ | OFF { $$ = mm_strdup("off"); }
+ ;
+
+/*
+ * set the actual connection, this needs a different handling as the other
+ * set commands
+ */
+ECPGSetConnection: SET CONNECTION TO connection_object { $$ = $4; }
+ | SET CONNECTION '=' connection_object { $$ = $4; }
+ | SET CONNECTION connection_object { $$ = $3; }
+ ;
+
+/*
+ * define a new type for embedded SQL
+ */
+ECPGTypedef: TYPE_P
+ {
+ /* reset this variable so we see if there was */
+ /* an initializer specified */
+ initializer = 0;
+ }
+ ECPGColLabelCommon IS var_type opt_array_bounds opt_reference
+ {
+ add_typedef($3, $6.index1, $6.index2, $5.type_enum, $5.type_dimension, $5.type_index, initializer, *$7 ? 1 : 0);
+
+ if (auto_create_c == false)
+ $$ = cat_str(7, mm_strdup("/* exec sql type"), mm_strdup($3), mm_strdup("is"), mm_strdup($5.type_str), mm_strdup($6.str), $7, mm_strdup("*/"));
+ else
+ $$ = cat_str(6, mm_strdup("typedef "), mm_strdup($5.type_str), *$7?mm_strdup("*"):mm_strdup(""), mm_strdup($3), mm_strdup($6.str), mm_strdup(";"));
+ }
+ ;
+
+opt_reference: SQL_REFERENCE { $$ = mm_strdup("reference"); }
+ | /*EMPTY*/ { $$ = EMPTY; }
+ ;
+
+/*
+ * define the type of one variable for embedded SQL
+ */
+ECPGVar: SQL_VAR
+ {
+ /* reset this variable so we see if there was */
+ /* an initializer specified */
+ initializer = 0;
+ }
+ ColLabel IS var_type opt_array_bounds opt_reference
+ {
+ struct variable *p = find_variable($3);
+ char *dimension = $6.index1;
+ char *length = $6.index2;
+ struct ECPGtype * type;
+
+ if (($5.type_enum == ECPGt_struct ||
+ $5.type_enum == ECPGt_union) &&
+ initializer == 1)
+ mmerror(PARSE_ERROR, ET_ERROR, "initializer not allowed in EXEC SQL VAR command");
+ else
+ {
+ adjust_array($5.type_enum, &dimension, &length, $5.type_dimension, $5.type_index, *$7?1:0, false);
+
+ switch ($5.type_enum)
+ {
+ case ECPGt_struct:
+ case ECPGt_union:
+ if (atoi(dimension) < 0)
+ type = ECPGmake_struct_type(struct_member_list[struct_level], $5.type_enum, $5.type_str, $5.type_sizeof);
+ else
+ type = ECPGmake_array_type(ECPGmake_struct_type(struct_member_list[struct_level], $5.type_enum, $5.type_str, $5.type_sizeof), dimension);
+ break;
+
+ case ECPGt_varchar:
+ case ECPGt_bytea:
+ if (atoi(dimension) == -1)
+ type = ECPGmake_simple_type($5.type_enum, length, 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type($5.type_enum, length, 0), dimension);
+ break;
+
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ if (atoi(dimension) == -1)
+ type = ECPGmake_simple_type($5.type_enum, length, 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type($5.type_enum, length, 0), dimension);
+ break;
+
+ default:
+ if (atoi(length) >= 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "multidimensional arrays for simple data types are not supported");
+
+ if (atoi(dimension) < 0)
+ type = ECPGmake_simple_type($5.type_enum, mm_strdup("1"), 0);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type($5.type_enum, mm_strdup("1"), 0), dimension);
+ break;
+ }
+
+ ECPGfree_type(p->type);
+ p->type = type;
+ }
+
+ $$ = cat_str(7, mm_strdup("/* exec sql var"), mm_strdup($3), mm_strdup("is"), mm_strdup($5.type_str), mm_strdup($6.str), $7, mm_strdup("*/"));
+ }
+ ;
+
+/*
+ * whenever statement: decide what to do in case of error/no data found
+ * according to SQL standards we lack: SQLSTATE, CONSTRAINT and SQLEXCEPTION
+ */
+ECPGWhenever: SQL_WHENEVER SQL_SQLERROR action
+ {
+ when_error.code = $<action>3.code;
+ when_error.command = $<action>3.command;
+ $$ = cat_str(3, mm_strdup("/* exec sql whenever sqlerror "), $3.str, mm_strdup("; */"));
+ }
+ | SQL_WHENEVER NOT SQL_FOUND action
+ {
+ when_nf.code = $<action>4.code;
+ when_nf.command = $<action>4.command;
+ $$ = cat_str(3, mm_strdup("/* exec sql whenever not found "), $4.str, mm_strdup("; */"));
+ }
+ | SQL_WHENEVER SQL_SQLWARNING action
+ {
+ when_warn.code = $<action>3.code;
+ when_warn.command = $<action>3.command;
+ $$ = cat_str(3, mm_strdup("/* exec sql whenever sql_warning "), $3.str, mm_strdup("; */"));
+ }
+ ;
+
+action : CONTINUE_P
+ {
+ $<action>$.code = W_NOTHING;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("continue");
+ }
+ | SQL_SQLPRINT
+ {
+ $<action>$.code = W_SQLPRINT;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("sqlprint");
+ }
+ | SQL_STOP
+ {
+ $<action>$.code = W_STOP;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("stop");
+ }
+ | SQL_GOTO name
+ {
+ $<action>$.code = W_GOTO;
+ $<action>$.command = mm_strdup($2);
+ $<action>$.str = cat2_str(mm_strdup("goto "), $2);
+ }
+ | SQL_GO TO name
+ {
+ $<action>$.code = W_GOTO;
+ $<action>$.command = mm_strdup($3);
+ $<action>$.str = cat2_str(mm_strdup("goto "), $3);
+ }
+ | DO name '(' c_args ')'
+ {
+ $<action>$.code = W_DO;
+ $<action>$.command = cat_str(4, $2, mm_strdup("("), $4, mm_strdup(")"));
+ $<action>$.str = cat2_str(mm_strdup("do"), mm_strdup($<action>$.command));
+ }
+ | DO SQL_BREAK
+ {
+ $<action>$.code = W_BREAK;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("break");
+ }
+ | DO CONTINUE_P
+ {
+ $<action>$.code = W_CONTINUE;
+ $<action>$.command = NULL;
+ $<action>$.str = mm_strdup("continue");
+ }
+ | CALL name '(' c_args ')'
+ {
+ $<action>$.code = W_DO;
+ $<action>$.command = cat_str(4, $2, mm_strdup("("), $4, mm_strdup(")"));
+ $<action>$.str = cat2_str(mm_strdup("call"), mm_strdup($<action>$.command));
+ }
+ | CALL name
+ {
+ $<action>$.code = W_DO;
+ $<action>$.command = cat2_str($2, mm_strdup("()"));
+ $<action>$.str = cat2_str(mm_strdup("call"), mm_strdup($<action>$.command));
+ }
+ ;
+
+/* some other stuff for ecpg */
+
+/* additional unreserved keywords */
+ECPGKeywords: ECPGKeywords_vanames { $$ = $1; }
+ | ECPGKeywords_rest { $$ = $1; }
+ ;
+
+ECPGKeywords_vanames: SQL_BREAK { $$ = mm_strdup("break"); }
+ | SQL_CARDINALITY { $$ = mm_strdup("cardinality"); }
+ | SQL_COUNT { $$ = mm_strdup("count"); }
+ | SQL_DATETIME_INTERVAL_CODE { $$ = mm_strdup("datetime_interval_code"); }
+ | SQL_DATETIME_INTERVAL_PRECISION { $$ = mm_strdup("datetime_interval_precision"); }
+ | SQL_FOUND { $$ = mm_strdup("found"); }
+ | SQL_GO { $$ = mm_strdup("go"); }
+ | SQL_GOTO { $$ = mm_strdup("goto"); }
+ | SQL_IDENTIFIED { $$ = mm_strdup("identified"); }
+ | SQL_INDICATOR { $$ = mm_strdup("indicator"); }
+ | SQL_KEY_MEMBER { $$ = mm_strdup("key_member"); }
+ | SQL_LENGTH { $$ = mm_strdup("length"); }
+ | SQL_NULLABLE { $$ = mm_strdup("nullable"); }
+ | SQL_OCTET_LENGTH { $$ = mm_strdup("octet_length"); }
+ | SQL_RETURNED_LENGTH { $$ = mm_strdup("returned_length"); }
+ | SQL_RETURNED_OCTET_LENGTH { $$ = mm_strdup("returned_octet_length"); }
+ | SQL_SCALE { $$ = mm_strdup("scale"); }
+ | SQL_SECTION { $$ = mm_strdup("section"); }
+ | SQL_SQLERROR { $$ = mm_strdup("sqlerror"); }
+ | SQL_SQLPRINT { $$ = mm_strdup("sqlprint"); }
+ | SQL_SQLWARNING { $$ = mm_strdup("sqlwarning"); }
+ | SQL_STOP { $$ = mm_strdup("stop"); }
+ ;
+
+ECPGKeywords_rest: SQL_CONNECT { $$ = mm_strdup("connect"); }
+ | SQL_DESCRIBE { $$ = mm_strdup("describe"); }
+ | SQL_DISCONNECT { $$ = mm_strdup("disconnect"); }
+ | SQL_OPEN { $$ = mm_strdup("open"); }
+ | SQL_VAR { $$ = mm_strdup("var"); }
+ | SQL_WHENEVER { $$ = mm_strdup("whenever"); }
+ ;
+
+/* additional keywords that can be SQL type names (but not ECPGColLabels) */
+ECPGTypeName: SQL_BOOL { $$ = mm_strdup("bool"); }
+ | SQL_LONG { $$ = mm_strdup("long"); }
+ | SQL_OUTPUT { $$ = mm_strdup("output"); }
+ | SQL_SHORT { $$ = mm_strdup("short"); }
+ | SQL_STRUCT { $$ = mm_strdup("struct"); }
+ | SQL_SIGNED { $$ = mm_strdup("signed"); }
+ | SQL_UNSIGNED { $$ = mm_strdup("unsigned"); }
+ ;
+
+symbol: ColLabel { $$ = $1; }
+ ;
+
+ECPGColId: ecpg_ident { $$ = $1; }
+ | unreserved_keyword { $$ = $1; }
+ | col_name_keyword { $$ = $1; }
+ | ECPGunreserved_interval { $$ = $1; }
+ | ECPGKeywords { $$ = $1; }
+ | ECPGCKeywords { $$ = $1; }
+ | CHAR_P { $$ = mm_strdup("char"); }
+ | VALUES { $$ = mm_strdup("values"); }
+ ;
+
+/*
+ * Name classification hierarchy.
+ *
+ * These productions should match those in the core grammar, except that
+ * we use all_unreserved_keyword instead of unreserved_keyword, and
+ * where possible include ECPG keywords as well as core keywords.
+ */
+
+/* Column identifier --- names that can be column, table, etc names.
+ */
+ColId: ecpg_ident { $$ = $1; }
+ | all_unreserved_keyword { $$ = $1; }
+ | col_name_keyword { $$ = $1; }
+ | ECPGKeywords { $$ = $1; }
+ | ECPGCKeywords { $$ = $1; }
+ | CHAR_P { $$ = mm_strdup("char"); }
+ | VALUES { $$ = mm_strdup("values"); }
+ ;
+
+/* Type/function identifier --- names that can be type or function names.
+ */
+type_function_name: ecpg_ident { $$ = $1; }
+ | all_unreserved_keyword { $$ = $1; }
+ | type_func_name_keyword { $$ = $1; }
+ | ECPGKeywords { $$ = $1; }
+ | ECPGCKeywords { $$ = $1; }
+ | ECPGTypeName { $$ = $1; }
+ ;
+
+/* Column label --- allowed labels in "AS" clauses.
+ * This presently includes *all* Postgres keywords.
+ */
+ColLabel: ECPGColLabel { $$ = $1; }
+ | ECPGTypeName { $$ = $1; }
+ | CHAR_P { $$ = mm_strdup("char"); }
+ | CURRENT_P { $$ = mm_strdup("current"); }
+ | INPUT_P { $$ = mm_strdup("input"); }
+ | INT_P { $$ = mm_strdup("int"); }
+ | TO { $$ = mm_strdup("to"); }
+ | UNION { $$ = mm_strdup("union"); }
+ | VALUES { $$ = mm_strdup("values"); }
+ | ECPGCKeywords { $$ = $1; }
+ | ECPGunreserved_interval { $$ = $1; }
+ ;
+
+ECPGColLabel: ECPGColLabelCommon { $$ = $1; }
+ | unreserved_keyword { $$ = $1; }
+ | reserved_keyword { $$ = $1; }
+ | ECPGKeywords_rest { $$ = $1; }
+ | CONNECTION { $$ = mm_strdup("connection"); }
+ ;
+
+ECPGColLabelCommon: ecpg_ident { $$ = $1; }
+ | col_name_keyword { $$ = $1; }
+ | type_func_name_keyword { $$ = $1; }
+ | ECPGKeywords_vanames { $$ = $1; }
+ ;
+
+ECPGCKeywords: S_AUTO { $$ = mm_strdup("auto"); }
+ | S_CONST { $$ = mm_strdup("const"); }
+ | S_EXTERN { $$ = mm_strdup("extern"); }
+ | S_REGISTER { $$ = mm_strdup("register"); }
+ | S_STATIC { $$ = mm_strdup("static"); }
+ | S_TYPEDEF { $$ = mm_strdup("typedef"); }
+ | S_VOLATILE { $$ = mm_strdup("volatile"); }
+ ;
+
+/* "Unreserved" keywords --- available for use as any kind of name.
+ */
+
+/*
+ * The following symbols must be excluded from ECPGColLabel and directly
+ * included into ColLabel to enable C variables to get names from ECPGColLabel:
+ * DAY_P, HOUR_P, MINUTE_P, MONTH_P, SECOND_P, YEAR_P.
+ *
+ * We also have to exclude CONNECTION, CURRENT, and INPUT for various reasons.
+ * CONNECTION can be added back in all_unreserved_keyword, but CURRENT and
+ * INPUT are reserved for ecpg purposes.
+ *
+ * The mentioned exclusions are done by $replace_line settings in parse.pl.
+ */
+all_unreserved_keyword: unreserved_keyword { $$ = $1; }
+ | ECPGunreserved_interval { $$ = $1; }
+ | CONNECTION { $$ = mm_strdup("connection"); }
+ ;
+
+ECPGunreserved_interval: DAY_P { $$ = mm_strdup("day"); }
+ | HOUR_P { $$ = mm_strdup("hour"); }
+ | MINUTE_P { $$ = mm_strdup("minute"); }
+ | MONTH_P { $$ = mm_strdup("month"); }
+ | SECOND_P { $$ = mm_strdup("second"); }
+ | YEAR_P { $$ = mm_strdup("year"); }
+ ;
+
+
+into_list : coutputvariable | into_list ',' coutputvariable
+ ;
+
+ecpgstart: SQL_START {
+ reset_variables();
+ pacounter = 1;
+ }
+ ;
+
+c_args: /*EMPTY*/ { $$ = EMPTY; }
+ | c_list { $$ = $1; }
+ ;
+
+coutputvariable: cvariable indicator
+ { add_variable_to_head(&argsresult, find_variable($1), find_variable($2)); }
+ | cvariable
+ { add_variable_to_head(&argsresult, find_variable($1), &no_indicator); }
+ ;
+
+
+civarind: cvariable indicator
+ {
+ if (find_variable($2)->type->type == ECPGt_array)
+ mmerror(PARSE_ERROR, ET_ERROR, "arrays of indicators are not allowed on input");
+
+ add_variable_to_head(&argsinsert, find_variable($1), find_variable($2));
+ $$ = create_questionmarks($1, false);
+ }
+ ;
+
+char_civar: char_variable
+ {
+ char *ptr = strstr($1, ".arr");
+
+ if (ptr) /* varchar, we need the struct name here, not the struct element */
+ *ptr = '\0';
+ add_variable_to_head(&argsinsert, find_variable($1), &no_indicator);
+ $$ = $1;
+ }
+ ;
+
+civar: cvariable
+ {
+ add_variable_to_head(&argsinsert, find_variable($1), &no_indicator);
+ $$ = create_questionmarks($1, false);
+ }
+ ;
+
+indicator: cvariable { check_indicator((find_variable($1))->type); $$ = $1; }
+ | SQL_INDICATOR cvariable { check_indicator((find_variable($2))->type); $$ = $2; }
+ | SQL_INDICATOR name { check_indicator((find_variable($2))->type); $$ = $2; }
+ ;
+
+cvariable: CVARIABLE
+ {
+ /* As long as multidimensional arrays are not implemented we have to check for those here */
+ char *ptr = $1;
+ int brace_open=0, brace = false;
+
+ for (; *ptr; ptr++)
+ {
+ switch (*ptr)
+ {
+ case '[':
+ if (brace)
+ mmfatal(PARSE_ERROR, "multidimensional arrays for simple data types are not supported");
+ brace_open++;
+ break;
+ case ']':
+ brace_open--;
+ if (brace_open == 0)
+ brace = true;
+ break;
+ case '\t':
+ case ' ':
+ break;
+ default:
+ if (brace_open == 0)
+ brace = false;
+ break;
+ }
+ }
+ $$ = $1;
+ }
+ ;
+
+ecpg_param: PARAM { $$ = make_name(); } ;
+
+ecpg_bconst: BCONST { $$ = $1; } ;
+
+ecpg_fconst: FCONST { $$ = make_name(); } ;
+
+ecpg_sconst: SCONST { $$ = $1; } ;
+
+ecpg_xconst: XCONST { $$ = $1; } ;
+
+ecpg_ident: IDENT { $$ = $1; }
+ | CSTRING { $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\"")); }
+ ;
+
+quoted_ident_stringvar: name
+ { $$ = make3_str(mm_strdup("\""), $1, mm_strdup("\"")); }
+ | char_variable
+ { $$ = make3_str(mm_strdup("("), $1, mm_strdup(")")); }
+ ;
+
+/*
+ * C stuff
+ */
+
+c_stuff_item: c_anything { $$ = $1; }
+ | '(' ')' { $$ = mm_strdup("()"); }
+ | '(' c_stuff ')'
+ { $$ = cat_str(3, mm_strdup("("), $2, mm_strdup(")")); }
+ ;
+
+c_stuff: c_stuff_item { $$ = $1; }
+ | c_stuff c_stuff_item
+ { $$ = cat2_str($1, $2); }
+ ;
+
+c_list: c_term { $$ = $1; }
+ | c_list ',' c_term { $$ = cat_str(3, $1, mm_strdup(","), $3); }
+ ;
+
+c_term: c_stuff { $$ = $1; }
+ | '{' c_list '}' { $$ = cat_str(3, mm_strdup("{"), $2, mm_strdup("}")); }
+ ;
+
+c_thing: c_anything { $$ = $1; }
+ | '(' { $$ = mm_strdup("("); }
+ | ')' { $$ = mm_strdup(")"); }
+ | ',' { $$ = mm_strdup(","); }
+ | ';' { $$ = mm_strdup(";"); }
+ ;
+
+c_anything: ecpg_ident { $$ = $1; }
+ | Iconst { $$ = $1; }
+ | ecpg_fconst { $$ = $1; }
+ | ecpg_sconst { $$ = $1; }
+ | '*' { $$ = mm_strdup("*"); }
+ | '+' { $$ = mm_strdup("+"); }
+ | '-' { $$ = mm_strdup("-"); }
+ | '/' { $$ = mm_strdup("/"); }
+ | '%' { $$ = mm_strdup("%"); }
+ | NULL_P { $$ = mm_strdup("NULL"); }
+ | S_ADD { $$ = mm_strdup("+="); }
+ | S_AND { $$ = mm_strdup("&&"); }
+ | S_ANYTHING { $$ = make_name(); }
+ | S_AUTO { $$ = mm_strdup("auto"); }
+ | S_CONST { $$ = mm_strdup("const"); }
+ | S_DEC { $$ = mm_strdup("--"); }
+ | S_DIV { $$ = mm_strdup("/="); }
+ | S_DOTPOINT { $$ = mm_strdup(".*"); }
+ | S_EQUAL { $$ = mm_strdup("=="); }
+ | S_EXTERN { $$ = mm_strdup("extern"); }
+ | S_INC { $$ = mm_strdup("++"); }
+ | S_LSHIFT { $$ = mm_strdup("<<"); }
+ | S_MEMBER { $$ = mm_strdup("->"); }
+ | S_MEMPOINT { $$ = mm_strdup("->*"); }
+ | S_MOD { $$ = mm_strdup("%="); }
+ | S_MUL { $$ = mm_strdup("*="); }
+ | S_NEQUAL { $$ = mm_strdup("!="); }
+ | S_OR { $$ = mm_strdup("||"); }
+ | S_REGISTER { $$ = mm_strdup("register"); }
+ | S_RSHIFT { $$ = mm_strdup(">>"); }
+ | S_STATIC { $$ = mm_strdup("static"); }
+ | S_SUB { $$ = mm_strdup("-="); }
+ | S_TYPEDEF { $$ = mm_strdup("typedef"); }
+ | S_VOLATILE { $$ = mm_strdup("volatile"); }
+ | SQL_BOOL { $$ = mm_strdup("bool"); }
+ | ENUM_P { $$ = mm_strdup("enum"); }
+ | HOUR_P { $$ = mm_strdup("hour"); }
+ | INT_P { $$ = mm_strdup("int"); }
+ | SQL_LONG { $$ = mm_strdup("long"); }
+ | MINUTE_P { $$ = mm_strdup("minute"); }
+ | MONTH_P { $$ = mm_strdup("month"); }
+ | SECOND_P { $$ = mm_strdup("second"); }
+ | SQL_SHORT { $$ = mm_strdup("short"); }
+ | SQL_SIGNED { $$ = mm_strdup("signed"); }
+ | SQL_STRUCT { $$ = mm_strdup("struct"); }
+ | SQL_UNSIGNED { $$ = mm_strdup("unsigned"); }
+ | YEAR_P { $$ = mm_strdup("year"); }
+ | CHAR_P { $$ = mm_strdup("char"); }
+ | FLOAT_P { $$ = mm_strdup("float"); }
+ | TO { $$ = mm_strdup("to"); }
+ | UNION { $$ = mm_strdup("union"); }
+ | VARCHAR { $$ = mm_strdup("varchar"); }
+ | '[' { $$ = mm_strdup("["); }
+ | ']' { $$ = mm_strdup("]"); }
+ | '=' { $$ = mm_strdup("="); }
+ | ':' { $$ = mm_strdup(":"); }
+ ;
+
+DeallocateStmt: DEALLOCATE prepared_name { check_declared_list($2); $$ = $2; }
+ | DEALLOCATE PREPARE prepared_name { check_declared_list($3); $$ = $3; }
+ | DEALLOCATE ALL { $$ = mm_strdup("all"); }
+ | DEALLOCATE PREPARE ALL { $$ = mm_strdup("all"); }
+ ;
+
+Iresult: Iconst { $$ = $1; }
+ | '(' Iresult ')' { $$ = cat_str(3, mm_strdup("("), $2, mm_strdup(")")); }
+ | Iresult '+' Iresult { $$ = cat_str(3, $1, mm_strdup("+"), $3); }
+ | Iresult '-' Iresult { $$ = cat_str(3, $1, mm_strdup("-"), $3); }
+ | Iresult '*' Iresult { $$ = cat_str(3, $1, mm_strdup("*"), $3); }
+ | Iresult '/' Iresult { $$ = cat_str(3, $1, mm_strdup("/"), $3); }
+ | Iresult '%' Iresult { $$ = cat_str(3, $1, mm_strdup("%"), $3); }
+ | ecpg_sconst { $$ = $1; }
+ | ColId { $$ = $1; }
+ | ColId '(' var_type ')' { if (pg_strcasecmp($1, "sizeof") != 0)
+ mmerror(PARSE_ERROR, ET_ERROR, "operator not allowed in variable definition");
+ else
+ $$ = cat_str(4, $1, mm_strdup("("), $3.type_str, mm_strdup(")"));
+ }
+ ;
+
+execute_rest: /* EMPTY */ { $$ = EMPTY; }
+ | ecpg_using opt_ecpg_into { $$ = EMPTY; }
+ | ecpg_into ecpg_using { $$ = EMPTY; }
+ | ecpg_into { $$ = EMPTY; }
+ ;
+
+ecpg_into: INTO into_list { $$ = EMPTY; }
+ | into_descriptor { $$ = $1; }
+ ;
+
+opt_ecpg_into: /* EMPTY */ { $$ = EMPTY; }
+ | ecpg_into { $$ = $1; }
+ ;
+
+ecpg_fetch_into: ecpg_into { $$ = $1; }
+ | using_descriptor
+ {
+ struct variable *var;
+
+ var = argsinsert->variable;
+ remove_variable_from_list(&argsinsert, var);
+ add_variable_to_head(&argsresult, var, &no_indicator);
+ $$ = $1;
+ }
+ ;
+
+opt_ecpg_fetch_into: /* EMPTY */ { $$ = EMPTY; }
+ | ecpg_fetch_into { $$ = $1; }
+ ;
+
+%%
+
+void base_yyerror(const char *error)
+{
+ /* translator: %s is typically the translation of "syntax error" */
+ mmerror(PARSE_ERROR, ET_ERROR, "%s at or near \"%s\"",
+ _(error), token_start ? token_start : base_yytext);
+}
+
+void parser_init(void)
+{
+ /* This function is empty. It only exists for compatibility with the backend parser right now. */
+}
diff --git a/src/interfaces/ecpg/preproc/preproc_extern.h b/src/interfaces/ecpg/preproc/preproc_extern.h
new file mode 100644
index 0000000..992797b
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/preproc_extern.h
@@ -0,0 +1,128 @@
+/* src/interfaces/ecpg/preproc/preproc_extern.h */
+
+#ifndef _ECPG_PREPROC_EXTERN_H
+#define _ECPG_PREPROC_EXTERN_H
+
+#include "common/keywords.h"
+#include "type.h"
+
+#ifndef CHAR_BIT
+#include <limits.h>
+#endif
+
+/* defines */
+
+#define STRUCT_DEPTH 128
+#define EMPTY mm_strdup("")
+
+/* variables */
+
+extern bool autocommit,
+ auto_create_c,
+ system_includes,
+ force_indicator,
+ questionmarks,
+ regression_mode,
+ auto_prepare;
+extern int braces_open,
+ ret_value,
+ struct_level,
+ ecpg_internal_var;
+extern char *current_function;
+extern char *descriptor_name;
+extern char *connection;
+extern char *input_filename;
+extern char *base_yytext,
+ *token_start;
+
+#ifdef YYDEBUG
+extern int base_yydebug;
+#endif
+extern int base_yylineno;
+extern FILE *base_yyin,
+ *base_yyout;
+extern char *output_filename;
+
+extern struct _include_path *include_paths;
+extern struct cursor *cur;
+extern struct typedefs *types;
+extern struct _defines *defines;
+extern struct declared_list *g_declared_list;
+extern struct ECPGtype ecpg_no_indicator;
+extern struct variable no_indicator;
+extern struct arguments *argsinsert;
+extern struct arguments *argsresult;
+extern struct when when_error,
+ when_nf,
+ when_warn;
+extern struct ECPGstruct_member *struct_member_list[STRUCT_DEPTH];
+
+/* Globals from keywords.c */
+extern const uint16 SQLScanKeywordTokens[];
+
+/* functions */
+
+extern const char *get_dtype(enum ECPGdtype);
+extern void lex_init(void);
+extern void output_line_number(void);
+extern void output_statement(char *, int, enum ECPG_statement_type);
+extern void output_prepare_statement(char *, char *);
+extern void output_deallocate_prepare_statement(char *);
+extern void output_simple_statement(char *, int);
+extern char *hashline_number(void);
+extern int base_yyparse(void);
+extern int base_yylex(void);
+extern void base_yyerror(const char *);
+extern void *mm_alloc(size_t);
+extern char *mm_strdup(const char *);
+extern void mmerror(int errorcode, enum errortype type, const char *error,...) pg_attribute_printf(3, 4);
+extern void mmfatal(int errorcode, const char *error,...) pg_attribute_printf(2, 3) pg_attribute_noreturn();
+extern void output_get_descr_header(char *);
+extern void output_get_descr(char *, char *);
+extern void output_set_descr_header(char *);
+extern void output_set_descr(char *, char *);
+extern void push_assignment(char *, enum ECPGdtype);
+extern struct variable *find_variable(char *);
+extern void whenever_action(int);
+extern void add_descriptor(char *, char *);
+extern void drop_descriptor(char *, char *);
+extern struct descriptor *lookup_descriptor(char *, char *);
+extern struct variable *descriptor_variable(const char *name, int input);
+extern struct variable *sqlda_variable(const char *name);
+extern void add_variable_to_head(struct arguments **, struct variable *, struct variable *);
+extern void add_variable_to_tail(struct arguments **, struct variable *, struct variable *);
+extern void remove_variable_from_list(struct arguments **list, struct variable *var);
+extern void dump_variables(struct arguments *, int);
+extern struct typedefs *get_typedef(char *);
+extern void adjust_array(enum ECPGttype, char **, char **, char *, char *, int, bool);
+extern void reset_variables(void);
+extern void check_indicator(struct ECPGtype *);
+extern void remove_typedefs(int);
+extern void remove_variables(int);
+extern struct variable *new_variable(const char *, struct ECPGtype *, int);
+extern int ScanCKeywordLookup(const char *text);
+extern int ScanECPGKeywordLookup(const char *text);
+extern void parser_init(void);
+extern int filtered_base_yylex(void);
+
+/* return codes */
+
+#define ILLEGAL_OPTION 1
+#define NO_INCLUDE_FILE 2
+#define PARSE_ERROR 3
+#define INDICATOR_NOT_ARRAY 4
+#define OUT_OF_MEMORY 5
+#define INDICATOR_NOT_STRUCT 6
+#define INDICATOR_NOT_SIMPLE 7
+
+enum COMPAT_MODE
+{
+ ECPG_COMPAT_PGSQL = 0, ECPG_COMPAT_INFORMIX, ECPG_COMPAT_INFORMIX_SE, ECPG_COMPAT_ORACLE
+};
+extern enum COMPAT_MODE compat;
+
+#define INFORMIX_MODE (compat == ECPG_COMPAT_INFORMIX || compat == ECPG_COMPAT_INFORMIX_SE)
+#define ORACLE_MODE (compat == ECPG_COMPAT_ORACLE)
+
+
+#endif /* _ECPG_PREPROC_EXTERN_H */
diff --git a/src/interfaces/ecpg/preproc/type.c b/src/interfaces/ecpg/preproc/type.c
new file mode 100644
index 0000000..d4b4da5
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/type.c
@@ -0,0 +1,748 @@
+/* src/interfaces/ecpg/preproc/type.c */
+
+#include "postgres_fe.h"
+
+#include "preproc_extern.h"
+
+#define indicator_set ind_type != NULL && ind_type->type != ECPGt_NO_INDICATOR
+
+static struct ECPGstruct_member struct_no_indicator = {"no_indicator", &ecpg_no_indicator, NULL};
+
+/* malloc + error check */
+void *
+mm_alloc(size_t size)
+{
+ void *ptr = malloc(size);
+
+ if (ptr == NULL)
+ mmfatal(OUT_OF_MEMORY, "out of memory");
+
+ return ptr;
+}
+
+/* strdup + error check */
+char *
+mm_strdup(const char *string)
+{
+ char *new = strdup(string);
+
+ if (new == NULL)
+ mmfatal(OUT_OF_MEMORY, "out of memory");
+
+ return new;
+}
+
+/* duplicate memberlist */
+struct ECPGstruct_member *
+ECPGstruct_member_dup(struct ECPGstruct_member *rm)
+{
+ struct ECPGstruct_member *new = NULL;
+
+ while (rm)
+ {
+ struct ECPGtype *type;
+
+ switch (rm->type->type)
+ {
+ case ECPGt_struct:
+ case ECPGt_union:
+ type = ECPGmake_struct_type(rm->type->u.members, rm->type->type, rm->type->type_name, rm->type->struct_sizeof);
+ break;
+ case ECPGt_array:
+
+ /*
+ * if this array does contain a struct again, we have to
+ * create the struct too
+ */
+ if (rm->type->u.element->type == ECPGt_struct || rm->type->u.element->type == ECPGt_union)
+ type = ECPGmake_struct_type(rm->type->u.element->u.members, rm->type->u.element->type, rm->type->u.element->type_name, rm->type->u.element->struct_sizeof);
+ else
+ type = ECPGmake_array_type(ECPGmake_simple_type(rm->type->u.element->type, rm->type->u.element->size, rm->type->u.element->counter), rm->type->size);
+ break;
+ default:
+ type = ECPGmake_simple_type(rm->type->type, rm->type->size, rm->type->counter);
+ break;
+ }
+
+ ECPGmake_struct_member(rm->name, type, &new);
+
+ rm = rm->next;
+ }
+
+ return new;
+}
+
+/* The NAME argument is copied. The type argument is preserved as a pointer. */
+void
+ECPGmake_struct_member(const char *name, struct ECPGtype *type, struct ECPGstruct_member **start)
+{
+ struct ECPGstruct_member *ptr,
+ *ne =
+ (struct ECPGstruct_member *) mm_alloc(sizeof(struct ECPGstruct_member));
+
+ ne->name = mm_strdup(name);
+ ne->type = type;
+ ne->next = NULL;
+
+ for (ptr = *start; ptr && ptr->next; ptr = ptr->next);
+
+ if (ptr)
+ ptr->next = ne;
+ else
+ *start = ne;
+}
+
+struct ECPGtype *
+ECPGmake_simple_type(enum ECPGttype type, char *size, int counter)
+{
+ struct ECPGtype *ne = (struct ECPGtype *) mm_alloc(sizeof(struct ECPGtype));
+
+ ne->type = type;
+ ne->type_name = NULL;
+ ne->size = size;
+ ne->u.element = NULL;
+ ne->struct_sizeof = NULL;
+ ne->counter = counter; /* only needed for varchar and bytea */
+
+ return ne;
+}
+
+struct ECPGtype *
+ECPGmake_array_type(struct ECPGtype *type, char *size)
+{
+ struct ECPGtype *ne = ECPGmake_simple_type(ECPGt_array, size, 0);
+
+ ne->u.element = type;
+
+ return ne;
+}
+
+struct ECPGtype *
+ECPGmake_struct_type(struct ECPGstruct_member *rm, enum ECPGttype type, char *type_name, char *struct_sizeof)
+{
+ struct ECPGtype *ne = ECPGmake_simple_type(type, mm_strdup("1"), 0);
+
+ ne->type_name = mm_strdup(type_name);
+ ne->u.members = ECPGstruct_member_dup(rm);
+ ne->struct_sizeof = struct_sizeof;
+
+ return ne;
+}
+
+static const char *
+get_type(enum ECPGttype type)
+{
+ switch (type)
+ {
+ case ECPGt_char:
+ return "ECPGt_char";
+ break;
+ case ECPGt_unsigned_char:
+ return "ECPGt_unsigned_char";
+ break;
+ case ECPGt_short:
+ return "ECPGt_short";
+ break;
+ case ECPGt_unsigned_short:
+ return "ECPGt_unsigned_short";
+ break;
+ case ECPGt_int:
+ return "ECPGt_int";
+ break;
+ case ECPGt_unsigned_int:
+ return "ECPGt_unsigned_int";
+ break;
+ case ECPGt_long:
+ return "ECPGt_long";
+ break;
+ case ECPGt_unsigned_long:
+ return "ECPGt_unsigned_long";
+ break;
+ case ECPGt_long_long:
+ return "ECPGt_long_long";
+ break;
+ case ECPGt_unsigned_long_long:
+ return "ECPGt_unsigned_long_long";
+ break;
+ case ECPGt_float:
+ return "ECPGt_float";
+ break;
+ case ECPGt_double:
+ return "ECPGt_double";
+ break;
+ case ECPGt_bool:
+ return "ECPGt_bool";
+ break;
+ case ECPGt_varchar:
+ return "ECPGt_varchar";
+ case ECPGt_bytea:
+ return "ECPGt_bytea";
+ case ECPGt_NO_INDICATOR: /* no indicator */
+ return "ECPGt_NO_INDICATOR";
+ break;
+ case ECPGt_char_variable: /* string that should not be quoted */
+ return "ECPGt_char_variable";
+ break;
+ case ECPGt_const: /* constant string quoted */
+ return "ECPGt_const";
+ break;
+ case ECPGt_decimal:
+ return "ECPGt_decimal";
+ break;
+ case ECPGt_numeric:
+ return "ECPGt_numeric";
+ break;
+ case ECPGt_interval:
+ return "ECPGt_interval";
+ break;
+ case ECPGt_descriptor:
+ return "ECPGt_descriptor";
+ break;
+ case ECPGt_sqlda:
+ return "ECPGt_sqlda";
+ break;
+ case ECPGt_date:
+ return "ECPGt_date";
+ break;
+ case ECPGt_timestamp:
+ return "ECPGt_timestamp";
+ break;
+ case ECPGt_string:
+ return "ECPGt_string";
+ break;
+ default:
+ mmerror(PARSE_ERROR, ET_ERROR, "unrecognized variable type code %d", type);
+ }
+
+ return NULL;
+}
+
+/* Dump a type.
+ The type is dumped as:
+ type-tag <comma> - enum ECPGttype
+ reference-to-variable <comma> - char *
+ size <comma> - long size of this field (if varchar)
+ arrsize <comma> - long number of elements in the arr
+ offset <comma> - offset to the next element
+ Where:
+ type-tag is one of the simple types or varchar.
+ reference-to-variable can be a reference to a struct element.
+ arrsize is the size of the array in case of array fetches. Otherwise 0.
+ size is the maxsize in case it is a varchar. Otherwise it is the size of
+ the variable (required to do array fetches of structs).
+ */
+static void ECPGdump_a_simple(FILE *o, const char *name, enum ECPGttype type,
+ char *varcharsize,
+ char *arrsize, const char *size, const char *prefix, int);
+static void ECPGdump_a_struct(FILE *o, const char *name, const char *ind_name, char *arrsize,
+ struct ECPGtype *type, struct ECPGtype *ind_type, const char *prefix, const char *ind_prefix);
+
+void
+ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype *type, const int brace_level,
+ const char *ind_name, struct ECPGtype *ind_type, const int ind_brace_level,
+ const char *prefix, const char *ind_prefix,
+ char *arr_str_size, const char *struct_sizeof,
+ const char *ind_struct_sizeof)
+{
+ struct variable *var;
+
+ if (type->type != ECPGt_descriptor && type->type != ECPGt_sqlda &&
+ type->type != ECPGt_char_variable && type->type != ECPGt_const &&
+ brace_level >= 0)
+ {
+ char *str;
+
+ str = mm_strdup(name);
+ var = find_variable(str);
+ free(str);
+
+ if ((var->type->type != type->type) ||
+ (var->type->type_name && !type->type_name) ||
+ (!var->type->type_name && type->type_name) ||
+ (var->type->type_name && type->type_name && strcmp(var->type->type_name, type->type_name) != 0))
+ mmerror(PARSE_ERROR, ET_ERROR, "variable \"%s\" is hidden by a local variable of a different type", name);
+ else if (var->brace_level != brace_level)
+ mmerror(PARSE_ERROR, ET_WARNING, "variable \"%s\" is hidden by a local variable", name);
+
+ if (ind_name && ind_type && ind_type->type != ECPGt_NO_INDICATOR && ind_brace_level >= 0)
+ {
+ str = mm_strdup(ind_name);
+ var = find_variable(str);
+ free(str);
+
+ if ((var->type->type != ind_type->type) ||
+ (var->type->type_name && !ind_type->type_name) ||
+ (!var->type->type_name && ind_type->type_name) ||
+ (var->type->type_name && ind_type->type_name && strcmp(var->type->type_name, ind_type->type_name) != 0))
+ mmerror(PARSE_ERROR, ET_ERROR, "indicator variable \"%s\" is hidden by a local variable of a different type", ind_name);
+ else if (var->brace_level != ind_brace_level)
+ mmerror(PARSE_ERROR, ET_WARNING, "indicator variable \"%s\" is hidden by a local variable", ind_name);
+ }
+ }
+
+ switch (type->type)
+ {
+ case ECPGt_array:
+ if (indicator_set && ind_type->type != ECPGt_array)
+ mmfatal(INDICATOR_NOT_ARRAY, "indicator for array/pointer has to be array/pointer");
+ switch (type->u.element->type)
+ {
+ case ECPGt_array:
+ mmerror(PARSE_ERROR, ET_ERROR, "nested arrays are not supported (except strings)"); /* array of array */
+ break;
+ case ECPGt_struct:
+ case ECPGt_union:
+ ECPGdump_a_struct(o, name,
+ ind_name,
+ type->size,
+ type->u.element,
+ (ind_type == NULL) ? NULL : ((ind_type->type == ECPGt_NO_INDICATOR) ? ind_type : ind_type->u.element),
+ prefix, ind_prefix);
+ break;
+ default:
+ if (!IS_SIMPLE_TYPE(type->u.element->type))
+ base_yyerror("internal error: unknown datatype, please report this to <" PACKAGE_BUGREPORT ">");
+
+ ECPGdump_a_simple(o, name,
+ type->u.element->type,
+ type->u.element->size, type->size, struct_sizeof ? struct_sizeof : NULL,
+ prefix, type->u.element->counter);
+
+ if (ind_type != NULL)
+ {
+ if (ind_type->type == ECPGt_NO_INDICATOR)
+ {
+ char *str_neg_one = mm_strdup("-1");
+
+ ECPGdump_a_simple(o, ind_name, ind_type->type, ind_type->size, str_neg_one, NULL, ind_prefix, 0);
+ free(str_neg_one);
+ }
+ else
+ {
+ ECPGdump_a_simple(o, ind_name, ind_type->u.element->type,
+ ind_type->u.element->size, ind_type->size, NULL, ind_prefix, 0);
+ }
+ }
+ }
+ break;
+ case ECPGt_struct:
+ {
+ char *str_one = mm_strdup("1");
+
+ if (indicator_set && ind_type->type != ECPGt_struct)
+ mmfatal(INDICATOR_NOT_STRUCT, "indicator for struct has to be a struct");
+
+ ECPGdump_a_struct(o, name, ind_name, str_one, type, ind_type, prefix, ind_prefix);
+ free(str_one);
+ }
+ break;
+ case ECPGt_union: /* cannot dump a complete union */
+ base_yyerror("type of union has to be specified");
+ break;
+ case ECPGt_char_variable:
+ {
+ /*
+ * Allocate for each, as there are code-paths where the values
+ * get stomped on.
+ */
+ char *str_varchar_one = mm_strdup("1");
+ char *str_arr_one = mm_strdup("1");
+ char *str_neg_one = mm_strdup("-1");
+
+ if (indicator_set && (ind_type->type == ECPGt_struct || ind_type->type == ECPGt_array))
+ mmfatal(INDICATOR_NOT_SIMPLE, "indicator for simple data type has to be simple");
+
+ ECPGdump_a_simple(o, name, type->type, str_varchar_one, (arr_str_size && strcmp(arr_str_size, "0") != 0) ? arr_str_size : str_arr_one, struct_sizeof, prefix, 0);
+ if (ind_type != NULL)
+ ECPGdump_a_simple(o, ind_name, ind_type->type, ind_type->size, (arr_str_size && strcmp(arr_str_size, "0") != 0) ? arr_str_size : str_neg_one, ind_struct_sizeof, ind_prefix, 0);
+
+ free(str_varchar_one);
+ free(str_arr_one);
+ free(str_neg_one);
+ }
+ break;
+ case ECPGt_descriptor:
+ {
+ /*
+ * Allocate for each, as there are code-paths where the values
+ * get stomped on.
+ */
+ char *str_neg_one = mm_strdup("-1");
+ char *ind_type_neg_one = mm_strdup("-1");
+
+ if (indicator_set && (ind_type->type == ECPGt_struct || ind_type->type == ECPGt_array))
+ mmfatal(INDICATOR_NOT_SIMPLE, "indicator for simple data type has to be simple");
+
+ ECPGdump_a_simple(o, name, type->type, NULL, str_neg_one, NULL, prefix, 0);
+ if (ind_type != NULL)
+ ECPGdump_a_simple(o, ind_name, ind_type->type, ind_type->size, ind_type_neg_one, NULL, ind_prefix, 0);
+
+ free(str_neg_one);
+ free(ind_type_neg_one);
+ }
+ break;
+ default:
+ {
+ /*
+ * Allocate for each, as there are code-paths where the values
+ * get stomped on.
+ */
+ char *str_neg_one = mm_strdup("-1");
+ char *ind_type_neg_one = mm_strdup("-1");
+
+ if (indicator_set && (ind_type->type == ECPGt_struct || ind_type->type == ECPGt_array))
+ mmfatal(INDICATOR_NOT_SIMPLE, "indicator for simple data type has to be simple");
+
+ ECPGdump_a_simple(o, name, type->type, type->size, (arr_str_size && strcmp(arr_str_size, "0") != 0) ? arr_str_size : str_neg_one, struct_sizeof, prefix, type->counter);
+ if (ind_type != NULL)
+ ECPGdump_a_simple(o, ind_name, ind_type->type, ind_type->size, (arr_str_size && strcmp(arr_str_size, "0") != 0) ? arr_str_size : ind_type_neg_one, ind_struct_sizeof, ind_prefix, 0);
+
+ free(str_neg_one);
+ free(ind_type_neg_one);
+ }
+ break;
+ }
+}
+
+
+/* If size is NULL, then the offset is 0, if not use size as a
+ string, it represents the offset needed if we are in an array of structs. */
+static void
+ECPGdump_a_simple(FILE *o, const char *name, enum ECPGttype type,
+ char *varcharsize,
+ char *arrsize,
+ const char *size,
+ const char *prefix,
+ int counter)
+{
+ if (type == ECPGt_NO_INDICATOR)
+ fprintf(o, "\n\tECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ");
+ else if (type == ECPGt_descriptor)
+ /* remember that name here already contains quotes (if needed) */
+ fprintf(o, "\n\tECPGt_descriptor, %s, 1L, 1L, 1L, ", name);
+ else if (type == ECPGt_sqlda)
+ fprintf(o, "\n\tECPGt_sqlda, &%s, 0L, 0L, 0L, ", name);
+ else
+ {
+ char *variable = (char *) mm_alloc(strlen(name) + ((prefix == NULL) ? 0 : strlen(prefix)) + 4);
+ char *offset = (char *) mm_alloc(strlen(name) + strlen("sizeof(struct varchar_)") + 1 + strlen(varcharsize) + sizeof(int) * CHAR_BIT * 10 / 3);
+ char *struct_name;
+
+ switch (type)
+ {
+ /*
+ * we have to use the & operator except for arrays and
+ * pointers
+ */
+
+ case ECPGt_varchar:
+ case ECPGt_bytea:
+
+ /*
+ * we have to use the pointer except for arrays with given
+ * bounds
+ */
+ if (((atoi(arrsize) > 0) ||
+ (atoi(arrsize) == 0 && strcmp(arrsize, "0") != 0)) &&
+ size == NULL)
+ sprintf(variable, "(%s%s)", prefix ? prefix : "", name);
+ else
+ sprintf(variable, "&(%s%s)", prefix ? prefix : "", name);
+
+ /*
+ * If we created a varchar structure automatically, counter is
+ * greater than 0.
+ */
+ if (type == ECPGt_varchar)
+ struct_name = "struct varchar";
+ else
+ struct_name = "struct bytea";
+
+ if (counter)
+ sprintf(offset, "sizeof(%s_%d)", struct_name, counter);
+ else
+ sprintf(offset, "sizeof(%s)", struct_name);
+ break;
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_char_variable:
+ case ECPGt_string:
+ {
+ char *sizeof_name = "char";
+
+ /*
+ * we have to use the pointer except for arrays with given
+ * bounds, ecpglib will distinguish between * and []
+ */
+ if ((atoi(varcharsize) > 1 ||
+ (atoi(arrsize) > 0) ||
+ (atoi(varcharsize) == 0 && strcmp(varcharsize, "0") != 0) ||
+ (atoi(arrsize) == 0 && strcmp(arrsize, "0") != 0))
+ && size == NULL)
+ {
+ sprintf(variable, "(%s%s)", prefix ? prefix : "", name);
+ if ((type == ECPGt_char || type == ECPGt_unsigned_char) &&
+ strcmp(varcharsize, "0") == 0)
+ {
+ /*
+ * If this is an array of char *, the offset would
+ * be sizeof(char *) and not sizeof(char).
+ */
+ sizeof_name = "char *";
+ }
+ }
+ else
+ sprintf(variable, "&(%s%s)", prefix ? prefix : "", name);
+
+ sprintf(offset, "(%s)*sizeof(%s)", strcmp(varcharsize, "0") == 0 ? "1" : varcharsize, sizeof_name);
+ break;
+ }
+ case ECPGt_numeric:
+
+ /*
+ * we have to use a pointer here
+ */
+ sprintf(variable, "&(%s%s)", prefix ? prefix : "", name);
+ sprintf(offset, "sizeof(numeric)");
+ break;
+ case ECPGt_interval:
+
+ /*
+ * we have to use a pointer here
+ */
+ sprintf(variable, "&(%s%s)", prefix ? prefix : "", name);
+ sprintf(offset, "sizeof(interval)");
+ break;
+ case ECPGt_date:
+
+ /*
+ * we have to use a pointer and translate the variable type
+ */
+ sprintf(variable, "&(%s%s)", prefix ? prefix : "", name);
+ sprintf(offset, "sizeof(date)");
+ break;
+ case ECPGt_timestamp:
+
+ /*
+ * we have to use a pointer and translate the variable type
+ */
+ sprintf(variable, "&(%s%s)", prefix ? prefix : "", name);
+ sprintf(offset, "sizeof(timestamp)");
+ break;
+ case ECPGt_const:
+
+ /*
+ * just dump the const as string
+ */
+ sprintf(variable, "\"%s\"", name);
+ sprintf(offset, "strlen(\"%s\")", name);
+ break;
+ default:
+
+ /*
+ * we have to use the pointer except for arrays with given
+ * bounds
+ */
+ if (((atoi(arrsize) > 0) ||
+ (atoi(arrsize) == 0 && strcmp(arrsize, "0") != 0)) &&
+ size == NULL)
+ sprintf(variable, "(%s%s)", prefix ? prefix : "", name);
+ else
+ sprintf(variable, "&(%s%s)", prefix ? prefix : "", name);
+
+ sprintf(offset, "sizeof(%s)", ecpg_type_name(type));
+ break;
+ }
+
+ /*
+ * Array size would be -1 for addresses of members within structure,
+ * when pointer to structure is being dumped.
+ */
+ if (atoi(arrsize) < 0 && !size)
+ strcpy(arrsize, "1");
+
+ /*
+ * If size i.e. the size of structure of which this variable is part
+ * of, that gives the offset to the next element, if required
+ */
+ if (size == NULL || strlen(size) == 0)
+ fprintf(o, "\n\t%s,%s,(long)%s,(long)%s,%s, ", get_type(type), variable, varcharsize, arrsize, offset);
+ else
+ fprintf(o, "\n\t%s,%s,(long)%s,(long)%s,%s, ", get_type(type), variable, varcharsize, arrsize, size);
+
+ free(variable);
+ free(offset);
+ }
+}
+
+
+/* Penetrate a struct and dump the contents. */
+static void
+ECPGdump_a_struct(FILE *o, const char *name, const char *ind_name, char *arrsize, struct ECPGtype *type, struct ECPGtype *ind_type, const char *prefix, const char *ind_prefix)
+{
+ /*
+ * If offset is NULL, then this is the first recursive level. If not then
+ * we are in a struct and the offset is used as offset.
+ */
+ struct ECPGstruct_member *p,
+ *ind_p = NULL;
+ char *pbuf = (char *) mm_alloc(strlen(name) + ((prefix == NULL) ? 0 : strlen(prefix)) + 3);
+ char *ind_pbuf = (char *) mm_alloc(strlen(ind_name) + ((ind_prefix == NULL) ? 0 : strlen(ind_prefix)) + 3);
+
+ if (atoi(arrsize) == 1)
+ sprintf(pbuf, "%s%s.", prefix ? prefix : "", name);
+ else
+ sprintf(pbuf, "%s%s->", prefix ? prefix : "", name);
+
+ prefix = pbuf;
+
+ if (ind_type == &ecpg_no_indicator)
+ ind_p = &struct_no_indicator;
+ else if (ind_type != NULL)
+ {
+ if (atoi(arrsize) == 1)
+ sprintf(ind_pbuf, "%s%s.", ind_prefix ? ind_prefix : "", ind_name);
+ else
+ sprintf(ind_pbuf, "%s%s->", ind_prefix ? ind_prefix : "", ind_name);
+
+ ind_prefix = ind_pbuf;
+ ind_p = ind_type->u.members;
+ }
+
+ for (p = type->u.members; p; p = p->next)
+ {
+ ECPGdump_a_type(o, p->name, p->type, -1,
+ (ind_p != NULL) ? ind_p->name : NULL,
+ (ind_p != NULL) ? ind_p->type : NULL,
+ -1,
+ prefix, ind_prefix, arrsize, type->struct_sizeof,
+ (ind_p != NULL) ? ind_type->struct_sizeof : NULL);
+ if (ind_p != NULL && ind_p != &struct_no_indicator)
+ {
+ ind_p = ind_p->next;
+ if (ind_p == NULL && p->next != NULL)
+ {
+ mmerror(PARSE_ERROR, ET_WARNING, "indicator struct \"%s\" has too few members", ind_name);
+ ind_p = &struct_no_indicator;
+ }
+ }
+ }
+
+ if (ind_type != NULL && ind_p != NULL && ind_p != &struct_no_indicator)
+ {
+ mmerror(PARSE_ERROR, ET_WARNING, "indicator struct \"%s\" has too many members", ind_name);
+ }
+
+ free(pbuf);
+ free(ind_pbuf);
+}
+
+void
+ECPGfree_struct_member(struct ECPGstruct_member *rm)
+{
+ while (rm)
+ {
+ struct ECPGstruct_member *p = rm;
+
+ rm = rm->next;
+ free(p->name);
+ free(p->type);
+ free(p);
+ }
+}
+
+void
+ECPGfree_type(struct ECPGtype *type)
+{
+ if (!IS_SIMPLE_TYPE(type->type))
+ {
+ switch (type->type)
+ {
+ case ECPGt_array:
+ switch (type->u.element->type)
+ {
+ case ECPGt_array:
+ base_yyerror("internal error: found multidimensional array\n");
+ break;
+ case ECPGt_struct:
+ case ECPGt_union:
+ /* Array of structs. */
+ ECPGfree_struct_member(type->u.element->u.members);
+ free(type->u.element);
+ break;
+ default:
+ if (!IS_SIMPLE_TYPE(type->u.element->type))
+ base_yyerror("internal error: unknown datatype, please report this to <" PACKAGE_BUGREPORT ">");
+
+ free(type->u.element);
+ }
+ break;
+ case ECPGt_struct:
+ case ECPGt_union:
+ ECPGfree_struct_member(type->u.members);
+ break;
+ default:
+ mmerror(PARSE_ERROR, ET_ERROR, "unrecognized variable type code %d", type->type);
+ break;
+ }
+ }
+ free(type);
+}
+
+const char *
+get_dtype(enum ECPGdtype type)
+{
+ switch (type)
+ {
+ case ECPGd_count:
+ return "ECPGd_countr";
+ break;
+ case ECPGd_data:
+ return "ECPGd_data";
+ break;
+ case ECPGd_di_code:
+ return "ECPGd_di_code";
+ break;
+ case ECPGd_di_precision:
+ return "ECPGd_di_precision";
+ break;
+ case ECPGd_indicator:
+ return "ECPGd_indicator";
+ break;
+ case ECPGd_key_member:
+ return "ECPGd_key_member";
+ break;
+ case ECPGd_length:
+ return "ECPGd_length";
+ break;
+ case ECPGd_name:
+ return "ECPGd_name";
+ break;
+ case ECPGd_nullable:
+ return "ECPGd_nullable";
+ break;
+ case ECPGd_octet:
+ return "ECPGd_octet";
+ break;
+ case ECPGd_precision:
+ return "ECPGd_precision";
+ break;
+ case ECPGd_ret_length:
+ return "ECPGd_ret_length";
+ case ECPGd_ret_octet:
+ return "ECPGd_ret_octet";
+ break;
+ case ECPGd_scale:
+ return "ECPGd_scale";
+ break;
+ case ECPGd_type:
+ return "ECPGd_type";
+ break;
+ case ECPGd_cardinality:
+ return "ECPGd_cardinality";
+ default:
+ mmerror(PARSE_ERROR, ET_ERROR, "unrecognized descriptor item code %d", type);
+ }
+
+ return NULL;
+}
diff --git a/src/interfaces/ecpg/preproc/type.h b/src/interfaces/ecpg/preproc/type.h
new file mode 100644
index 0000000..08b739e
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/type.h
@@ -0,0 +1,217 @@
+/*
+ * src/interfaces/ecpg/preproc/type.h
+ */
+#ifndef _ECPG_PREPROC_TYPE_H
+#define _ECPG_PREPROC_TYPE_H
+
+#include "ecpgtype.h"
+
+struct ECPGtype;
+struct ECPGstruct_member
+{
+ char *name;
+ struct ECPGtype *type;
+ struct ECPGstruct_member *next;
+};
+
+struct ECPGtype
+{
+ enum ECPGttype type;
+ char *type_name; /* For struct and union types it is the struct
+ * name */
+ char *size; /* For array it is the number of elements. For
+ * varchar it is the maxsize of the area. */
+ char *struct_sizeof; /* For a struct this is the sizeof() type as
+ * string */
+ union
+ {
+ struct ECPGtype *element; /* For an array this is the type of the
+ * element */
+ struct ECPGstruct_member *members; /* A pointer to a list of members. */
+ } u;
+ int counter;
+};
+
+/* Everything is malloced. */
+void ECPGmake_struct_member(const char *, struct ECPGtype *, struct ECPGstruct_member **);
+struct ECPGtype *ECPGmake_simple_type(enum ECPGttype, char *, int);
+struct ECPGtype *ECPGmake_array_type(struct ECPGtype *, char *);
+struct ECPGtype *ECPGmake_struct_type(struct ECPGstruct_member *, enum ECPGttype, char *, char *);
+struct ECPGstruct_member *ECPGstruct_member_dup(struct ECPGstruct_member *);
+
+/* Frees a type. */
+void ECPGfree_struct_member(struct ECPGstruct_member *);
+void ECPGfree_type(struct ECPGtype *);
+
+/* Dump a type.
+ The type is dumped as:
+ type-tag <comma> reference-to-variable <comma> arrsize <comma> size <comma>
+ Where:
+ type-tag is one of the simple types or varchar.
+ reference-to-variable can be a reference to a struct element.
+ arrsize is the size of the array in case of array fetches. Otherwise 0.
+ size is the maxsize in case it is a varchar. Otherwise it is the size of
+ the variable (required to do array fetches of structs).
+ */
+void ECPGdump_a_type(FILE *, const char *, struct ECPGtype *, const int,
+ const char *, struct ECPGtype *, const int,
+ const char *, const char *, char *,
+ const char *, const char *);
+
+/* A simple struct to keep a variable and its type. */
+struct ECPGtemp_type
+{
+ struct ECPGtype *type;
+ const char *name;
+};
+
+extern const char *ecpg_type_name(enum ECPGttype type);
+
+/* some stuff for whenever statements */
+enum WHEN_TYPE
+{
+ W_NOTHING,
+ W_CONTINUE,
+ W_BREAK,
+ W_SQLPRINT,
+ W_GOTO,
+ W_DO,
+ W_STOP
+};
+
+struct when
+{
+ enum WHEN_TYPE code;
+ char *command;
+ char *str;
+};
+
+struct index
+{
+ char *index1;
+ char *index2;
+ char *str;
+};
+
+struct su_symbol
+{
+ char *su;
+ char *symbol;
+};
+
+struct prep
+{
+ char *name;
+ char *stmt;
+ char *type;
+};
+
+struct exec
+{
+ char *name;
+ char *type;
+};
+
+struct this_type
+{
+ char *type_storage;
+ enum ECPGttype type_enum;
+ char *type_str;
+ char *type_dimension;
+ char *type_index;
+ char *type_sizeof;
+};
+
+struct _include_path
+{
+ char *path;
+ struct _include_path *next;
+};
+
+struct cursor
+{
+ char *name;
+ char *function;
+ char *command;
+ char *connection;
+ bool opened;
+ struct arguments *argsinsert;
+ struct arguments *argsinsert_oos;
+ struct arguments *argsresult;
+ struct arguments *argsresult_oos;
+ struct cursor *next;
+};
+
+struct declared_list
+{
+ char *name;
+ char *connection;
+ struct declared_list *next;
+};
+
+struct typedefs
+{
+ char *name;
+ struct this_type *type;
+ struct ECPGstruct_member *struct_member_list;
+ int brace_level;
+ struct typedefs *next;
+};
+
+struct _defines
+{
+ char *olddef;
+ char *newdef;
+ int pertinent;
+ void *used;
+ struct _defines *next;
+};
+
+/* This is a linked list of the variable names and types. */
+struct variable
+{
+ char *name;
+ struct ECPGtype *type;
+ int brace_level;
+ struct variable *next;
+};
+
+struct arguments
+{
+ struct variable *variable;
+ struct variable *indicator;
+ struct arguments *next;
+};
+
+struct descriptor
+{
+ char *name;
+ char *connection;
+ struct descriptor *next;
+};
+
+struct assignment
+{
+ char *variable;
+ enum ECPGdtype value;
+ struct assignment *next;
+};
+
+enum errortype
+{
+ ET_WARNING, ET_ERROR
+};
+
+struct fetch_desc
+{
+ char *str;
+ char *name;
+};
+
+struct describe
+{
+ int input;
+ char *stmt_name;
+};
+
+#endif /* _ECPG_PREPROC_TYPE_H */
diff --git a/src/interfaces/ecpg/preproc/variable.c b/src/interfaces/ecpg/preproc/variable.c
new file mode 100644
index 0000000..8926676
--- /dev/null
+++ b/src/interfaces/ecpg/preproc/variable.c
@@ -0,0 +1,624 @@
+/* src/interfaces/ecpg/preproc/variable.c */
+
+#include "postgres_fe.h"
+
+#include "preproc_extern.h"
+
+static struct variable *allvariables = NULL;
+
+struct variable *
+new_variable(const char *name, struct ECPGtype *type, int brace_level)
+{
+ struct variable *p = (struct variable *) mm_alloc(sizeof(struct variable));
+
+ p->name = mm_strdup(name);
+ p->type = type;
+ p->brace_level = brace_level;
+
+ p->next = allvariables;
+ allvariables = p;
+
+ return p;
+}
+
+static struct variable *
+find_struct_member(char *name, char *str, struct ECPGstruct_member *members, int brace_level)
+{
+ char *next = strpbrk(++str, ".-["),
+ *end,
+ c = '\0';
+
+ if (next != NULL)
+ {
+ c = *next;
+ *next = '\0';
+ }
+
+ for (; members; members = members->next)
+ {
+ if (strcmp(members->name, str) == 0)
+ {
+ if (next == NULL)
+ {
+ /* found the end */
+ switch (members->type->type)
+ {
+ case ECPGt_array:
+ return new_variable(name, ECPGmake_array_type(ECPGmake_simple_type(members->type->u.element->type, members->type->u.element->size, members->type->u.element->counter), members->type->size), brace_level);
+ case ECPGt_struct:
+ case ECPGt_union:
+ return new_variable(name, ECPGmake_struct_type(members->type->u.members, members->type->type, members->type->type_name, members->type->struct_sizeof), brace_level);
+ default:
+ return new_variable(name, ECPGmake_simple_type(members->type->type, members->type->size, members->type->counter), brace_level);
+ }
+ }
+ else
+ {
+ *next = c;
+ if (c == '[')
+ {
+ int count;
+
+ /*
+ * We don't care about what's inside the array braces so
+ * just eat up the character
+ */
+ for (count = 1, end = next + 1; count; end++)
+ {
+ switch (*end)
+ {
+ case '[':
+ count++;
+ break;
+ case ']':
+ count--;
+ break;
+ default:
+ break;
+ }
+ }
+ }
+ else
+ end = next;
+
+ switch (*end)
+ {
+ case '\0': /* found the end, but this time it has to be
+ * an array element */
+ if (members->type->type != ECPGt_array)
+ mmfatal(PARSE_ERROR, "incorrectly formed variable \"%s\"", name);
+
+ switch (members->type->u.element->type)
+ {
+ case ECPGt_array:
+ return new_variable(name, ECPGmake_array_type(ECPGmake_simple_type(members->type->u.element->u.element->type, members->type->u.element->u.element->size, members->type->u.element->u.element->counter), members->type->u.element->size), brace_level);
+ case ECPGt_struct:
+ case ECPGt_union:
+ return new_variable(name, ECPGmake_struct_type(members->type->u.element->u.members, members->type->u.element->type, members->type->u.element->type_name, members->type->u.element->struct_sizeof), brace_level);
+ default:
+ return new_variable(name, ECPGmake_simple_type(members->type->u.element->type, members->type->u.element->size, members->type->u.element->counter), brace_level);
+ }
+ break;
+ case '-':
+ if (members->type->type == ECPGt_array)
+ return find_struct_member(name, ++end, members->type->u.element->u.members, brace_level);
+ else
+ return find_struct_member(name, ++end, members->type->u.members, brace_level);
+ break;
+ case '.':
+ if (members->type->type == ECPGt_array)
+ return find_struct_member(name, end, members->type->u.element->u.members, brace_level);
+ else
+ return find_struct_member(name, end, members->type->u.members, brace_level);
+ break;
+ default:
+ mmfatal(PARSE_ERROR, "incorrectly formed variable \"%s\"", name);
+ break;
+ }
+ }
+ }
+ }
+
+ return NULL;
+}
+
+static struct variable *
+find_struct(char *name, char *next, char *end)
+{
+ struct variable *p;
+ char c = *next;
+
+ /* first get the mother structure entry */
+ *next = '\0';
+ p = find_variable(name);
+
+ if (c == '-')
+ {
+ if (p->type->type != ECPGt_array)
+ mmfatal(PARSE_ERROR, "variable \"%s\" is not a pointer", name);
+
+ if (p->type->u.element->type != ECPGt_struct && p->type->u.element->type != ECPGt_union)
+ mmfatal(PARSE_ERROR, "variable \"%s\" is not a pointer to a structure or a union", name);
+
+ /* restore the name, we will need it later */
+ *next = c;
+
+ return find_struct_member(name, ++end, p->type->u.element->u.members, p->brace_level);
+ }
+ else
+ {
+ if (next == end)
+ {
+ if (p->type->type != ECPGt_struct && p->type->type != ECPGt_union)
+ mmfatal(PARSE_ERROR, "variable \"%s\" is neither a structure nor a union", name);
+
+ /* restore the name, we will need it later */
+ *next = c;
+
+ return find_struct_member(name, end, p->type->u.members, p->brace_level);
+ }
+ else
+ {
+ if (p->type->type != ECPGt_array)
+ mmfatal(PARSE_ERROR, "variable \"%s\" is not an array", name);
+
+ if (p->type->u.element->type != ECPGt_struct && p->type->u.element->type != ECPGt_union)
+ mmfatal(PARSE_ERROR, "variable \"%s\" is not a pointer to a structure or a union", name);
+
+ /* restore the name, we will need it later */
+ *next = c;
+
+ return find_struct_member(name, end, p->type->u.element->u.members, p->brace_level);
+ }
+ }
+}
+
+static struct variable *
+find_simple(char *name)
+{
+ struct variable *p;
+
+ for (p = allvariables; p; p = p->next)
+ {
+ if (strcmp(p->name, name) == 0)
+ return p;
+ }
+
+ return NULL;
+}
+
+/* Note that this function will end the program in case of an unknown */
+/* variable */
+struct variable *
+find_variable(char *name)
+{
+ char *next,
+ *end;
+ struct variable *p;
+ int count;
+
+ next = strpbrk(name, ".[-");
+ if (next)
+ {
+ if (*next == '[')
+ {
+ /*
+ * We don't care about what's inside the array braces so just eat
+ * up the characters
+ */
+ for (count = 1, end = next + 1; count; end++)
+ {
+ switch (*end)
+ {
+ case '[':
+ count++;
+ break;
+ case ']':
+ count--;
+ break;
+ default:
+ break;
+ }
+ }
+ if (*end == '.')
+ p = find_struct(name, next, end);
+ else
+ {
+ char c = *next;
+
+ *next = '\0';
+ p = find_simple(name);
+ if (p == NULL)
+ mmfatal(PARSE_ERROR, "variable \"%s\" is not declared", name);
+
+ *next = c;
+ switch (p->type->u.element->type)
+ {
+ case ECPGt_array:
+ return new_variable(name, ECPGmake_array_type(ECPGmake_simple_type(p->type->u.element->u.element->type, p->type->u.element->u.element->size, p->type->u.element->u.element->counter), p->type->u.element->size), p->brace_level);
+ case ECPGt_struct:
+ case ECPGt_union:
+ return new_variable(name, ECPGmake_struct_type(p->type->u.element->u.members, p->type->u.element->type, p->type->u.element->type_name, p->type->u.element->struct_sizeof), p->brace_level);
+ default:
+ return new_variable(name, ECPGmake_simple_type(p->type->u.element->type, p->type->u.element->size, p->type->u.element->counter), p->brace_level);
+ }
+ }
+ }
+ else
+ p = find_struct(name, next, next);
+ }
+ else
+ p = find_simple(name);
+
+ if (p == NULL)
+ mmfatal(PARSE_ERROR, "variable \"%s\" is not declared", name);
+
+ return p;
+}
+
+void
+remove_typedefs(int brace_level)
+{
+ struct typedefs *p,
+ *prev;
+
+ for (p = prev = types; p;)
+ {
+ if (p->brace_level >= brace_level)
+ {
+ /* remove it */
+ if (p == types)
+ prev = types = p->next;
+ else
+ prev->next = p->next;
+
+ if (p->type->type_enum == ECPGt_struct || p->type->type_enum == ECPGt_union)
+ free(p->struct_member_list);
+ free(p->type);
+ free(p->name);
+ free(p);
+ if (prev == types)
+ p = types;
+ else
+ p = prev ? prev->next : NULL;
+ }
+ else
+ {
+ prev = p;
+ p = prev->next;
+ }
+ }
+}
+
+void
+remove_variables(int brace_level)
+{
+ struct variable *p,
+ *prev;
+
+ for (p = prev = allvariables; p;)
+ {
+ if (p->brace_level >= brace_level)
+ {
+ /* is it still referenced by a cursor? */
+ struct cursor *ptr;
+
+ for (ptr = cur; ptr != NULL; ptr = ptr->next)
+ {
+ struct arguments *varptr,
+ *prevvar;
+
+ for (varptr = prevvar = ptr->argsinsert; varptr != NULL; varptr = varptr->next)
+ {
+ if (p == varptr->variable)
+ {
+ /* remove from list */
+ if (varptr == ptr->argsinsert)
+ ptr->argsinsert = varptr->next;
+ else
+ prevvar->next = varptr->next;
+ }
+ }
+ for (varptr = prevvar = ptr->argsresult; varptr != NULL; varptr = varptr->next)
+ {
+ if (p == varptr->variable)
+ {
+ /* remove from list */
+ if (varptr == ptr->argsresult)
+ ptr->argsresult = varptr->next;
+ else
+ prevvar->next = varptr->next;
+ }
+ }
+ }
+
+ /* remove it */
+ if (p == allvariables)
+ prev = allvariables = p->next;
+ else
+ prev->next = p->next;
+
+ ECPGfree_type(p->type);
+ free(p->name);
+ free(p);
+ if (prev == allvariables)
+ p = allvariables;
+ else
+ p = prev ? prev->next : NULL;
+ }
+ else
+ {
+ prev = p;
+ p = prev->next;
+ }
+ }
+}
+
+
+/*
+ * Here are the variables that need to be handled on every request.
+ * These are of two kinds: input and output.
+ * I will make two lists for them.
+ */
+
+struct arguments *argsinsert = NULL;
+struct arguments *argsresult = NULL;
+
+void
+reset_variables(void)
+{
+ argsinsert = NULL;
+ argsresult = NULL;
+}
+
+/* Insert a new variable into our request list.
+ * Note: The list is dumped from the end,
+ * so we have to add new entries at the beginning */
+void
+add_variable_to_head(struct arguments **list, struct variable *var, struct variable *ind)
+{
+ struct arguments *p = (struct arguments *) mm_alloc(sizeof(struct arguments));
+
+ p->variable = var;
+ p->indicator = ind;
+ p->next = *list;
+ *list = p;
+}
+
+/* Append a new variable to our request list. */
+void
+add_variable_to_tail(struct arguments **list, struct variable *var, struct variable *ind)
+{
+ struct arguments *p,
+ *new = (struct arguments *) mm_alloc(sizeof(struct arguments));
+
+ for (p = *list; p && p->next; p = p->next);
+
+ new->variable = var;
+ new->indicator = ind;
+ new->next = NULL;
+
+ if (p)
+ p->next = new;
+ else
+ *list = new;
+}
+
+void
+remove_variable_from_list(struct arguments **list, struct variable *var)
+{
+ struct arguments *p,
+ *prev = NULL;
+ bool found = false;
+
+ for (p = *list; p; p = p->next)
+ {
+ if (p->variable == var)
+ {
+ found = true;
+ break;
+ }
+ prev = p;
+ }
+ if (found)
+ {
+ if (prev)
+ prev->next = p->next;
+ else
+ *list = p->next;
+ }
+}
+
+/* Dump out a list of all the variable on this list.
+ This is a recursive function that works from the end of the list and
+ deletes the list as we go on.
+ */
+void
+dump_variables(struct arguments *list, int mode)
+{
+ char *str_zero;
+
+ if (list == NULL)
+ return;
+
+ str_zero = mm_strdup("0");
+
+ /*
+ * The list is build up from the beginning so lets first dump the end of
+ * the list:
+ */
+
+ dump_variables(list->next, mode);
+
+ /* Then the current element and its indicator */
+ ECPGdump_a_type(base_yyout, list->variable->name, list->variable->type, list->variable->brace_level,
+ list->indicator->name, list->indicator->type, list->indicator->brace_level,
+ NULL, NULL, str_zero, NULL, NULL);
+
+ /* Then release the list element. */
+ if (mode != 0)
+ free(list);
+
+ free(str_zero);
+}
+
+void
+check_indicator(struct ECPGtype *var)
+{
+ /* make sure this is a valid indicator variable */
+ switch (var->type)
+ {
+ struct ECPGstruct_member *p;
+
+ case ECPGt_short:
+ case ECPGt_int:
+ case ECPGt_long:
+ case ECPGt_long_long:
+ case ECPGt_unsigned_short:
+ case ECPGt_unsigned_int:
+ case ECPGt_unsigned_long:
+ case ECPGt_unsigned_long_long:
+ break;
+
+ case ECPGt_struct:
+ case ECPGt_union:
+ for (p = var->u.members; p; p = p->next)
+ check_indicator(p->type);
+ break;
+
+ case ECPGt_array:
+ check_indicator(var->u.element);
+ break;
+ default:
+ mmerror(PARSE_ERROR, ET_ERROR, "indicator variable must have an integer type");
+ break;
+ }
+}
+
+struct typedefs *
+get_typedef(char *name)
+{
+ struct typedefs *this;
+
+ for (this = types; this && strcmp(this->name, name) != 0; this = this->next);
+ if (!this)
+ mmfatal(PARSE_ERROR, "unrecognized data type name \"%s\"", name);
+
+ return this;
+}
+
+void
+adjust_array(enum ECPGttype type_enum, char **dimension, char **length, char *type_dimension, char *type_index, int pointer_len, bool type_definition)
+{
+ if (atoi(type_index) >= 0)
+ {
+ if (atoi(*length) >= 0)
+ mmfatal(PARSE_ERROR, "multidimensional arrays are not supported");
+
+ *length = type_index;
+ }
+
+ if (atoi(type_dimension) >= 0)
+ {
+ if (atoi(*dimension) >= 0 && atoi(*length) >= 0)
+ mmfatal(PARSE_ERROR, "multidimensional arrays are not supported");
+
+ if (atoi(*dimension) >= 0)
+ *length = *dimension;
+
+ *dimension = type_dimension;
+ }
+
+ if (pointer_len > 2)
+ mmfatal(PARSE_ERROR, ngettext("multilevel pointers (more than 2 levels) are not supported; found %d level",
+ "multilevel pointers (more than 2 levels) are not supported; found %d levels", pointer_len),
+ pointer_len);
+
+ if (pointer_len > 1 && type_enum != ECPGt_char && type_enum != ECPGt_unsigned_char && type_enum != ECPGt_string)
+ mmfatal(PARSE_ERROR, "pointer to pointer is not supported for this data type");
+
+ if (pointer_len > 1 && (atoi(*length) >= 0 || atoi(*dimension) >= 0))
+ mmfatal(PARSE_ERROR, "multidimensional arrays are not supported");
+
+ if (atoi(*length) >= 0 && atoi(*dimension) >= 0 && pointer_len)
+ mmfatal(PARSE_ERROR, "multidimensional arrays are not supported");
+
+ switch (type_enum)
+ {
+ case ECPGt_struct:
+ case ECPGt_union:
+ /* pointer has to get dimension 0 */
+ if (pointer_len)
+ {
+ *length = *dimension;
+ *dimension = mm_strdup("0");
+ }
+
+ if (atoi(*length) >= 0)
+ mmfatal(PARSE_ERROR, "multidimensional arrays for structures are not supported");
+
+ break;
+ case ECPGt_varchar:
+ case ECPGt_bytea:
+ /* pointer has to get dimension 0 */
+ if (pointer_len)
+ *dimension = mm_strdup("0");
+
+ /* one index is the string length */
+ if (atoi(*length) < 0)
+ {
+ *length = *dimension;
+ *dimension = mm_strdup("-1");
+ }
+
+ break;
+ case ECPGt_char:
+ case ECPGt_unsigned_char:
+ case ECPGt_string:
+ /* char ** */
+ if (pointer_len == 2)
+ {
+ *length = *dimension = mm_strdup("0");
+ break;
+ }
+
+ /* pointer has to get length 0 */
+ if (pointer_len == 1)
+ *length = mm_strdup("0");
+
+ /* one index is the string length */
+ if (atoi(*length) < 0)
+ {
+ /*
+ * make sure we return length = -1 for arrays without given
+ * bounds
+ */
+ if (atoi(*dimension) < 0 && !type_definition)
+
+ /*
+ * do not change this for typedefs since it will be
+ * changed later on when the variable is defined
+ */
+ *length = mm_strdup("1");
+ else if (strcmp(*dimension, "0") == 0)
+ *length = mm_strdup("-1");
+ else
+ *length = *dimension;
+
+ *dimension = mm_strdup("-1");
+ }
+ break;
+ default:
+ /* a pointer has dimension = 0 */
+ if (pointer_len)
+ {
+ *length = *dimension;
+ *dimension = mm_strdup("0");
+ }
+
+ if (atoi(*length) >= 0)
+ mmfatal(PARSE_ERROR, "multidimensional arrays for simple data types are not supported");
+
+ break;
+ }
+}
diff --git a/src/interfaces/ecpg/test/.gitignore b/src/interfaces/ecpg/test/.gitignore
new file mode 100644
index 0000000..d60b197
--- /dev/null
+++ b/src/interfaces/ecpg/test/.gitignore
@@ -0,0 +1,5 @@
+/pg_regress
+# Exclude subdirectories
+/log/
+/results/
+/tmp_check/
diff --git a/src/interfaces/ecpg/test/Makefile b/src/interfaces/ecpg/test/Makefile
new file mode 100644
index 0000000..10f53c7
--- /dev/null
+++ b/src/interfaces/ecpg/test/Makefile
@@ -0,0 +1,100 @@
+# src/interfaces/ecpg/test/Makefile
+
+PGFILEDESC = "ECPG Test - regression tests for ECPG"
+PGAPPICON = win32
+
+subdir = src/interfaces/ecpg/test
+top_builddir = ../../../..
+include $(top_builddir)/src/Makefile.global
+
+override CPPFLAGS := \
+ '-I$(top_builddir)/src/port' \
+ '-I$(top_srcdir)/src/test/regress' \
+ '-DHOST_TUPLE="$(host_tuple)"' \
+ '-DSHELLPROG="$(SHELL)"' \
+ $(CPPFLAGS)
+
+# default encoding for regression tests
+ENCODING = SQL_ASCII
+
+ifneq ($(build_os),mingw32)
+abs_builddir := $(shell pwd)
+else
+abs_builddir := $(shell sh -c "pwd -W")
+endif
+
+all install installdirs uninstall distprep:
+ $(MAKE) -C connect $@
+ $(MAKE) -C sql $@
+ $(MAKE) -C pgtypeslib $@
+ $(MAKE) -C preproc $@
+ $(MAKE) -C compat_informix $@
+ $(MAKE) -C compat_oracle $@
+ $(MAKE) -C thread $@
+
+clean distclean maintainer-clean:
+ $(MAKE) -C connect $@
+ $(MAKE) -C sql $@
+ $(MAKE) -C pgtypeslib $@
+ $(MAKE) -C preproc $@
+ $(MAKE) -C compat_informix $@
+ $(MAKE) -C compat_oracle $@
+ $(MAKE) -C thread $@
+ rm -rf tmp_check results log
+ rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o $(WIN32RES)
+
+# Build regression test driver
+
+all: pg_regress$(X)
+
+pg_regress$(X): pg_regress_ecpg.o $(WIN32RES) $(top_builddir)/src/test/regress/pg_regress.o
+ $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
+
+$(top_builddir)/src/test/regress/pg_regress.o:
+ $(MAKE) -C $(dir $@) $(notdir $@)
+
+# dependencies ensure that path changes propagate
+pg_regress_ecpg.o: pg_regress_ecpg.c $(top_builddir)/src/port/pg_config_paths.h
+
+$(top_builddir)/src/port/pg_config_paths.h: $(top_builddir)/src/Makefile.global
+ $(MAKE) -C $(top_builddir)/src/port pg_config_paths.h
+
+# When doing a VPATH build, copy over the .pgc, .stdout and .stderr
+# files so that the driver script can find them. We have to use an
+# absolute path for the targets, because otherwise make will try to
+# locate the missing files using VPATH, and will find them in
+# $(srcdir), but the point here is that we want to copy them from
+# $(srcdir) to the build directory.
+
+ifdef VPATH
+remaining_files_src := $(wildcard $(srcdir)/*/*.pgc) $(wildcard $(srcdir)/expected/*.c) $(wildcard $(srcdir)/expected/*.stdout) $(wildcard $(srcdir)/expected/*.stderr)
+remaining_files_build := $(patsubst $(srcdir)/%, $(abs_builddir)/%, $(remaining_files_src))
+
+all: $(remaining_files_build)
+$(remaining_files_build): $(abs_builddir)/%: $(srcdir)/%
+ ln -s $< $@
+endif
+
+# Common options for tests. Also pick up anything passed in EXTRA_REGRESS_OPTS
+REGRESS_OPTS = --dbname=ecpg1_regression,ecpg2_regression --create-role=regress_ecpg_user1,regress_ecpg_user2 $(EXTRA_REGRESS_OPTS)
+
+check: all
+ $(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule sql/twophase
+
+# Connect to the server using TCP, and add a TCP-specific test.
+checktcp: all | temp-install
+ $(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --host=localhost sql/twophase connect/test1
+
+installcheck: all
+ ./pg_regress $(REGRESS_OPTS) --bindir='$(bindir)' $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule
+
+# Versions of the check tests that include the twophase commit test.
+# It only makes sense to run these if set up to use prepared transactions,
+# via TEMP_CONFIG for the check case, or via the postgresql.conf for the
+# installcheck case.
+
+installcheck-prepared-txns: all
+ ./pg_regress $(REGRESS_OPTS) --bindir='$(bindir)' $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule sql/twophase
+
+check-prepared-txns: all | temp-install
+ $(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule sql/twophase
diff --git a/src/interfaces/ecpg/test/Makefile.regress b/src/interfaces/ecpg/test/Makefile.regress
new file mode 100644
index 0000000..b0647cd
--- /dev/null
+++ b/src/interfaces/ecpg/test/Makefile.regress
@@ -0,0 +1,31 @@
+# This file is included into the Makefiles of subdirectories of ecpg/test/,
+# so the file references have one more level of .. than you might expect.
+
+override CPPFLAGS := -I../../include -I$(top_srcdir)/src/interfaces/ecpg/include \
+ -I$(libpq_srcdir) $(CPPFLAGS)
+override CFLAGS += $(PTHREAD_CFLAGS)
+
+LDFLAGS_INTERNAL += -L../../ecpglib -lecpg -L../../pgtypeslib -lpgtypes $(libpq)
+
+override LIBS += $(PTHREAD_LIBS)
+
+# Standard way to invoke the ecpg preprocessor
+ECPG = ../../preproc/ecpg --regression -I$(srcdir)/../../include -I$(srcdir)
+
+# Files that most or all ecpg preprocessor test outputs depend on
+ECPG_TEST_DEPENDENCIES = ../../preproc/ecpg$(X) \
+ $(srcdir)/../regression.h \
+ $(srcdir)/../printf_hack.h \
+ $(srcdir)/../../include/sqlca.h \
+ $(srcdir)/../../include/sqlda.h \
+ $(srcdir)/../../include/sqltypes.h \
+ $(srcdir)/../../include/sql3types.h
+
+# Caution: this build rule is overridden in some child Makefiles
+# where it's necessary to use nondefault switches to ecpg;
+# make sure those rules match except for the extra switches.
+%.c: %.pgc $(ECPG_TEST_DEPENDENCIES)
+ $(ECPG) -o $@ $<
+
+clean:
+ rm -f $(TESTS) $(TESTS:%=%.o) $(TESTS:%=%.c)
diff --git a/src/interfaces/ecpg/test/compat_informix/.gitignore b/src/interfaces/ecpg/test/compat_informix/.gitignore
new file mode 100644
index 0000000..f97706b
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/.gitignore
@@ -0,0 +1,18 @@
+/charfuncs
+/charfuncs.c
+/dec_test
+/dec_test.c
+/describe
+/describe.c
+/rfmtdate
+/rfmtdate.c
+/rfmtlong
+/rfmtlong.c
+/rnull
+/rnull.c
+/sqlda
+/sqlda.c
+/test_informix
+/test_informix.c
+/test_informix2
+/test_informix2.c
diff --git a/src/interfaces/ecpg/test/compat_informix/Makefile b/src/interfaces/ecpg/test/compat_informix/Makefile
new file mode 100644
index 0000000..d50fdc2
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/Makefile
@@ -0,0 +1,24 @@
+subdir = src/interfaces/ecpg/test/compat_informix
+top_builddir = ../../../../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/$(subdir)/../Makefile.regress
+
+# Use special informix compatibility switch for all tests in this directory
+ECPG += -C INFORMIX
+
+LDFLAGS_INTERNAL += -L../../compatlib -lecpg_compat
+
+TESTS = test_informix test_informix.c \
+ test_informix2 test_informix2.c \
+ dec_test dec_test.c \
+ rfmtdate rfmtdate.c \
+ rfmtlong rfmtlong.c \
+ rnull rnull.c \
+ sqlda sqlda.c \
+ describe describe.c \
+ charfuncs charfuncs.c
+
+all: $(TESTS)
+
+rnull.c: rnull.pgc $(ECPG_TEST_DEPENDENCIES)
+ $(ECPG) -r no_indicator -o $@ $<
diff --git a/src/interfaces/ecpg/test/compat_informix/charfuncs.pgc b/src/interfaces/ecpg/test/compat_informix/charfuncs.pgc
new file mode 100644
index 0000000..3605c9d
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/charfuncs.pgc
@@ -0,0 +1,31 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sqltypes.h>
+
+int main(void)
+{
+ char t1[] = "abc def ghi ";
+ /* 123456789012345 */
+ char buf[50];
+ int k;
+
+ printf("t1: _%s_\n", t1);
+ rupshift(t1);
+ printf("t1: _%s_\n", t1);
+
+ k = 2;
+ ldchar(t1, k, buf);
+ printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
+ k = 5;
+ ldchar(t1, k, buf);
+ printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
+ k = 9;
+ ldchar(t1, k, buf);
+ printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
+ k = 15;
+ ldchar(t1, k, buf);
+ printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/compat_informix/dec_test.pgc b/src/interfaces/ecpg/test/compat_informix/dec_test.pgc
new file mode 100644
index 0000000..f6a9f42
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/dec_test.pgc
@@ -0,0 +1,238 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_numeric.h>
+#include <pgtypes_error.h>
+#include <decimal.h>
+#include <sqltypes.h>
+
+exec sql include ../regression;
+
+exec sql include ../printf_hack;
+
+
+/*
+TODO:
+ deccmp => DECUNKNOWN
+ decimal point: , and/or . ?
+ ECPG_INFORMIX_BAD_EXPONENT ?
+*/
+
+char* decs[] = { "2E394", "-2", ".794", "3.44", "592.49E21", "-32.84e4",
+ "2E-394", ".1E-2", "+.0", "-592.49E-07", "+32.84e-4",
+ ".500001", "-.5000001",
+ "1234567890123456789012345678.91", /* 30 digits should fit
+ into decimal */
+ "1234567890123456789012345678.921", /* 31 digits should NOT
+ fit into decimal */
+ "not a number",
+ NULL};
+
+
+static void
+check_errno(void);
+
+#define BUFSIZE 200
+
+int
+main(void)
+{
+ decimal *dec, *din;
+ char buf[BUFSIZE];
+ long l;
+ int i, j, k, q, r, count = 0;
+ double dbl;
+ decimal **decarr = (decimal **) calloc(1, sizeof(decimal));
+
+ ECPGdebug(1, stderr);
+
+ for (i = 0; decs[i]; i++)
+ {
+ dec = PGTYPESdecimal_new();
+ r = deccvasc(decs[i], strlen(decs[i]), dec);
+ if (r)
+ {
+ check_errno();
+ printf("dec[%d,0]: r: %d\n", i, r);
+ PGTYPESdecimal_free(dec);
+ continue;
+ }
+ decarr = realloc(decarr, sizeof(decimal *) * (count + 1));
+ decarr[count++] = dec;
+
+ r = dectoasc(dec, buf, BUFSIZE-1, -1);
+ if (r < 0) check_errno();
+ printf("dec[%d,1]: r: %d, %s\n", i, r, buf);
+
+ r = dectoasc(dec, buf, BUFSIZE-1, 0);
+ if (r < 0) check_errno();
+ printf("dec[%d,2]: r: %d, %s\n", i, r, buf);
+ r = dectoasc(dec, buf, BUFSIZE-1, 1);
+ if (r < 0) check_errno();
+ printf("dec[%d,3]: r: %d, %s\n", i, r, buf);
+ r = dectoasc(dec, buf, BUFSIZE-1, 2);
+ if (r < 0) check_errno();
+ printf("dec[%d,4]: r: %d, %s\n", i, r, buf);
+
+ din = PGTYPESdecimal_new();
+ r = dectoasc(din, buf, BUFSIZE-1, 2);
+ if (r < 0) check_errno();
+ printf("dec[%d,5]: r: %d, %s\n", i, r, buf);
+
+ r = dectolong(dec, &l);
+ if (r) check_errno();
+ printf("dec[%d,6]: %ld (r: %d)\n", i, r?0L:l, r);
+ if (r == 0)
+ {
+ r = deccvlong(l, din);
+ if (r) check_errno();
+ dectoasc(din, buf, BUFSIZE-1, 2);
+ q = deccmp(dec, din);
+ printf("dec[%d,7]: %s (r: %d - cmp: %d)\n", i, buf, r, q);
+ }
+
+ r = dectoint(dec, &k);
+ if (r) check_errno();
+ printf("dec[%d,8]: %d (r: %d)\n", i, r?0:k, r);
+ if (r == 0)
+ {
+ r = deccvint(k, din);
+ if (r) check_errno();
+ dectoasc(din, buf, BUFSIZE-1, 2);
+ q = deccmp(dec, din);
+ printf("dec[%d,9]: %s (r: %d - cmp: %d)\n", i, buf, r, q);
+ }
+
+ if (i != 6)
+ {
+ /* underflow does not work reliable on several archs, so not testing it here */
+ /* this is a libc problem since we only call strtod() */
+ r = dectodbl(dec, &dbl);
+ if (r) check_errno();
+ printf("dec[%d,10]: ", i);
+ print_double(r ? 0.0 : dbl);
+ printf(" (r: %d)\n", r);
+ }
+
+ PGTYPESdecimal_free(din);
+ printf("\n");
+ }
+
+ /* add a NULL value */
+ dec = PGTYPESdecimal_new();
+ decarr = realloc(decarr, sizeof(decimal *) * (count + 1));
+ decarr[count++] = dec;
+
+ rsetnull(CDECIMALTYPE, (char *) decarr[count-1]);
+ printf("dec[%d]: %sNULL\n", count-1,
+ risnull(CDECIMALTYPE, (char *) decarr[count-1]) ? "" : "NOT ");
+ printf("dec[0]: %sNULL\n",
+ risnull(CDECIMALTYPE, (char *) decarr[0]) ? "" : "NOT ");
+
+ r = dectoasc(decarr[3], buf, -1, -1);
+ check_errno(); printf("dectoasc with len == -1: r: %d\n", r);
+ r = dectoasc(decarr[3], buf, 0, -1);
+ check_errno(); printf("dectoasc with len == 0: r: %d\n", r);
+
+ for (i = 0; i < count; i++)
+ {
+ for (j = 0; j < count; j++)
+ {
+ decimal a, s, m, d;
+ int c;
+ c = deccmp(decarr[i], decarr[j]);
+ printf("dec[c,%d,%d]: %d\n", i, j, c);
+
+ r = decadd(decarr[i], decarr[j], &a);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ dectoasc(&a, buf, BUFSIZE-1, -1);
+ printf("dec[a,%d,%d]: %s\n", i, j, buf);
+ }
+
+ r = decsub(decarr[i], decarr[j], &s);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ dectoasc(&s, buf, BUFSIZE-1, -1);
+ printf("dec[s,%d,%d]: %s\n", i, j, buf);
+ }
+
+ r = decmul(decarr[i], decarr[j], &m);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ dectoasc(&m, buf, BUFSIZE-1, -1);
+ printf("dec[m,%d,%d]: %s\n", i, j, buf);
+ }
+
+ r = decdiv(decarr[i], decarr[j], &d);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ dectoasc(&d, buf, BUFSIZE-1, -1);
+ printf("dec[d,%d,%d]: %s\n", i, j, buf);
+ }
+ }
+ }
+
+ for (i = 0; i < count; i++)
+ {
+ dectoasc(decarr[i], buf, BUFSIZE-1, -1);
+ printf("%d: %s\n", i, buf);
+
+ PGTYPESdecimal_free(decarr[i]);
+ }
+ free(decarr);
+
+ return 0;
+}
+
+static void
+check_errno(void)
+{
+ switch(errno)
+ {
+ case 0:
+ printf("(no errno set) - ");
+ break;
+ case ECPG_INFORMIX_NUM_OVERFLOW:
+ printf("(errno == ECPG_INFORMIX_NUM_OVERFLOW) - ");
+ break;
+ case ECPG_INFORMIX_NUM_UNDERFLOW:
+ printf("(errno == ECPG_INFORMIX_NUM_UNDERFLOW) - ");
+ break;
+ case PGTYPES_NUM_OVERFLOW:
+ printf("(errno == PGTYPES_NUM_OVERFLOW) - ");
+ break;
+ case PGTYPES_NUM_UNDERFLOW:
+ printf("(errno == PGTYPES_NUM_UNDERFLOW) - ");
+ break;
+ case PGTYPES_NUM_BAD_NUMERIC:
+ printf("(errno == PGTYPES_NUM_BAD_NUMERIC) - ");
+ break;
+ case PGTYPES_NUM_DIVIDE_ZERO:
+ printf("(errno == PGTYPES_NUM_DIVIDE_ZERO) - ");
+ break;
+ default:
+ printf("(unknown errno (%d))\n", errno);
+ printf("(libc: (%s)) ", strerror(errno));
+ break;
+ }
+}
diff --git a/src/interfaces/ecpg/test/compat_informix/describe.pgc b/src/interfaces/ecpg/test/compat_informix/describe.pgc
new file mode 100644
index 0000000..4ee7254
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/describe.pgc
@@ -0,0 +1,199 @@
+#include <stdlib.h>
+#include <string.h>
+
+exec sql include ../regression;
+exec sql include sqlda.h;
+
+exec sql whenever sqlerror stop;
+
+sqlda_t *sqlda1, *sqlda2, *sqlda3;
+
+int
+main (void)
+{
+exec sql begin declare section;
+ char *stmt1 = "SELECT id, t FROM descr_t1";
+ char *stmt2 = "SELECT id, t FROM descr_t1 WHERE id = -1";
+ int i, count1, count2;
+ char field_name1[30] = "not set";
+ char field_name2[30] = "not set";
+exec sql end declare section;
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ exec sql connect to REGRESSDB1;
+
+ strcpy(msg, "set");
+ exec sql set datestyle to iso;
+
+ strcpy(msg, "create");
+ exec sql create table descr_t1(id serial primary key, t text);
+
+ strcpy(msg, "insert");
+ exec sql insert into descr_t1(id, t) values (default, 'a');
+ exec sql insert into descr_t1(id, t) values (default, 'b');
+ exec sql insert into descr_t1(id, t) values (default, 'c');
+ exec sql insert into descr_t1(id, t) values (default, 'd');
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ /*
+ * Test DESCRIBE with a query producing tuples.
+ * DESCRIPTOR and SQL DESCRIPTOR are NOT the same in
+ * Informix-compat mode.
+ */
+
+ strcpy(msg, "allocate");
+ exec sql allocate descriptor desc1;
+ exec sql allocate descriptor desc2;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id1 FROM :stmt1;
+
+ sqlda1 = sqlda2 = sqlda3 = NULL;
+
+ strcpy(msg, "describe");
+ exec sql describe st_id1 into sql descriptor desc1;
+ exec sql describe st_id1 using sql descriptor desc2;
+
+ exec sql describe st_id1 into descriptor sqlda1;
+ exec sql describe st_id1 using descriptor sqlda2;
+ exec sql describe st_id1 into sqlda3;
+
+ if (sqlda1 == NULL)
+ {
+ printf("sqlda1 NULL\n");
+ exit(1);
+ }
+
+ if (sqlda2 == NULL)
+ {
+ printf("sqlda2 NULL\n");
+ exit(1);
+ }
+
+ if (sqlda3 == NULL)
+ {
+ printf("sqlda3 NULL\n");
+ exit(1);
+ }
+
+ strcpy(msg, "get descriptor");
+ exec sql get descriptor desc1 :count1 = count;
+ exec sql get descriptor desc1 :count2 = count;
+
+ if (count1 != count2)
+ {
+ printf("count1 (%d) != count2 (%d)\n", count1, count2);
+ exit(1);
+ }
+
+ if (count1 != sqlda1->sqld)
+ {
+ printf("count1 (%d) != sqlda1->sqld (%d)\n", count1, sqlda1->sqld);
+ exit(1);
+ }
+
+ if (count1 != sqlda2->sqld)
+ {
+ printf("count1 (%d) != sqlda2->sqld (%d)\n", count1, sqlda2->sqld);
+ exit(1);
+ }
+
+ if (count1 != sqlda3->sqld)
+ {
+ printf("count1 (%d) != sqlda3->sqld (%d)\n", count1, sqlda3->sqld);
+ exit(1);
+ }
+
+ for (i = 1; i <= count1; i++)
+ {
+ exec sql get descriptor desc1 value :i :field_name1 = name;
+ exec sql get descriptor desc2 value :i :field_name2 = name;
+ printf("%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
+ "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
+ i, field_name1, field_name2,
+ sqlda1->sqlvar[i-1].sqlname,
+ sqlda2->sqlvar[i-1].sqlname,
+ sqlda3->sqlvar[i-1].sqlname);
+ }
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate descriptor desc1;
+ exec sql deallocate descriptor desc2;
+ free(sqlda1);
+ free(sqlda2);
+ free(sqlda3);
+
+ exec sql deallocate prepare st_id1;
+
+ /* Test DESCRIBE with a query not producing tuples */
+
+ strcpy(msg, "allocate");
+ exec sql allocate descriptor desc1;
+ exec sql allocate descriptor desc2;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id2 FROM :stmt2;
+
+ sqlda1 = sqlda2 = sqlda3 = NULL;
+
+ strcpy(msg, "describe");
+ exec sql describe st_id2 into sql descriptor desc1;
+ exec sql describe st_id2 using sql descriptor desc2;
+
+ exec sql describe st_id2 into descriptor sqlda1;
+ exec sql describe st_id2 using descriptor sqlda2;
+ exec sql describe st_id2 into sqlda3;
+
+ if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
+ exit(1);
+
+ strcpy(msg, "get descriptor");
+ exec sql get descriptor desc1 :count1 = count;
+ exec sql get descriptor desc1 :count2 = count;
+
+ if (!( count1 == count2 &&
+ count1 == sqlda1->sqld &&
+ count1 == sqlda2->sqld &&
+ count1 == sqlda3->sqld))
+ exit(1);
+
+ for (i = 1; i <= count1; i++)
+ {
+ exec sql get descriptor desc1 value :i :field_name1 = name;
+ exec sql get descriptor desc2 value :i :field_name2 = name;
+ printf("%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
+ "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
+ i, field_name1, field_name2,
+ sqlda1->sqlvar[i-1].sqlname,
+ sqlda2->sqlvar[i-1].sqlname,
+ sqlda3->sqlvar[i-1].sqlname);
+ }
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate descriptor desc1;
+ exec sql deallocate descriptor desc2;
+ free(sqlda1);
+ free(sqlda2);
+ free(sqlda3);
+
+ exec sql deallocate prepare st_id2;
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ exec sql drop table descr_t1;
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/compat_informix/rfmtdate.pgc b/src/interfaces/ecpg/test/compat_informix/rfmtdate.pgc
new file mode 100644
index 0000000..a147f40
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/rfmtdate.pgc
@@ -0,0 +1,175 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_error.h>
+#include <sqltypes.h>
+
+/*
+ * This file tests various forms of date-input/output by means of
+ * rfmtdate / rdefmtdate / rstrdate
+ */
+
+
+static void
+check_return(int ret);
+
+static void
+date_test_strdate(const char *input)
+{
+ static int i;
+ date d;
+ int r, q;
+ char dbuf[11];
+
+ r = rstrdate(input, &d);
+ printf("r: %d ", r);
+ if (r == 0)
+ {
+ q = rdatestr(d, dbuf);
+ printf("q: %d ", q);
+ if (q == 0)
+ {
+ printf("date %d: %s\n", i++, dbuf);
+ }
+ else
+ printf("\n");
+ }
+ else
+ check_return(r);
+}
+
+static void
+date_test_defmt(const char *fmt, const char *input)
+{
+ static int i;
+ char dbuf[11];
+ date d;
+ int q, r;
+
+ r = rdefmtdate(&d, fmt, input);
+ printf("r: %d ", r);
+ if (r == 0)
+ {
+ q = rdatestr(d, dbuf);
+ printf("q: %d ", q);
+ if (q == 0)
+ {
+ printf("date %d: %s\n", i++, dbuf);
+ }
+ else
+ printf("\n");
+ }
+ else
+ check_return(r);
+}
+
+static void
+date_test_fmt(date d, const char *fmt)
+{
+ static int i;
+ char buf[200];
+ int r;
+
+ r = rfmtdate(d, fmt, buf);
+ printf("r: %d ", r);
+ if (r != 0)
+ check_return(r);
+ else
+ printf("date: %d: %s\n", i++, buf);
+}
+
+
+int
+main(void)
+{
+ short mdy[3] = { 11, 23, 1959 };
+ char dbuf[11];
+ date d;
+ int r;
+
+ ECPGdebug(1, stderr);
+
+ r = rmdyjul(mdy, &d);
+ printf("create: r: %d\n", r);
+ if (r == 0)
+ {
+ rdatestr(d, dbuf);
+ printf("date: %s\n", dbuf);
+ }
+
+ /* input mask is mmddyyyy */
+ date_test_strdate("12031994");
+ date_test_strdate("9.6.1994");
+
+ date_test_fmt(d, "mmddyy");
+ date_test_fmt(d, "ddmmyy");
+ date_test_fmt(d, "yymmdd");
+ date_test_fmt(d, "yy/mm/dd");
+ date_test_fmt(d, "yy mm dd");
+ date_test_fmt(d, "yy.mm.dd");
+ date_test_fmt(d, ".mm.yyyy.dd.");
+ date_test_fmt(d, "mmm. dd, yyyy");
+ date_test_fmt(d, "mmm dd yyyy");
+ date_test_fmt(d, "yyyy dd mm");
+ date_test_fmt(d, "ddd, mmm. dd, yyyy");
+ date_test_fmt(d, "(ddd) mmm. dd, yyyy");
+
+ date_test_defmt("ddmmyy", "21-2-54");
+ date_test_defmt("ddmmyy", "2-12-54");
+ date_test_defmt("ddmmyy", "20111954");
+ date_test_defmt("ddmmyy", "130464");
+ date_test_defmt("mmm.dd.yyyy", "MAR-12-1967");
+ date_test_defmt("yy/mm/dd", "1954, February 3rd");
+ date_test_defmt("mmm.dd.yyyy", "041269");
+ date_test_defmt("yy/mm/dd", "In the year 2525, in the month of July, mankind will be alive on the 28th day");
+ date_test_defmt("dd-mm-yy", "I said on the 28th of July in the year 2525");
+ date_test_defmt("mmm.dd.yyyy", "9/14/58");
+ date_test_defmt("yy/mm/dd", "47/03/29");
+ date_test_defmt("mmm.dd.yyyy", "oct 28 1975");
+ date_test_defmt("mmddyy", "Nov 14th, 1985");
+ /* ok: still contains dd mm yy */
+ date_test_defmt("bladdfoommbaryybong", "20/11/1954");
+ /* 1994 is not a leap year, it accepts the date as 01-03-1994 */
+ date_test_defmt("ddmmyy", "29-02-1994");
+
+ /* ECPG_INFORMIX_ENOTDMY, need "dd", "mm" and "yy" */
+ date_test_defmt("dmy", "20/11/1954");
+
+ /* ECPG_INFORMIX_ENOSHORTDATE */
+ date_test_defmt("ddmmyy", "21254");
+ date_test_defmt("ddmmyy", " 21254 ");
+
+ /* ECPG_INFORMIX_BAD_DAY */
+ date_test_defmt("ddmmyy", "320494");
+
+ /* ECPG_INFORMIX_BAD_MONTH */
+ date_test_defmt("mm-yyyy-dd", "13-1993-21");
+
+ /* ECPG_INFORMIX_BAD_YEAR */
+ /* ??? */
+
+ return 0;
+}
+
+static void
+check_return(int ret)
+{
+ switch(ret)
+ {
+ case ECPG_INFORMIX_ENOTDMY:
+ printf("(ECPG_INFORMIX_ENOTDMY)");
+ break;
+ case ECPG_INFORMIX_ENOSHORTDATE:
+ printf("(ECPG_INFORMIX_ENOSHORTDATE)");
+ break;
+ case ECPG_INFORMIX_BAD_DAY:
+ printf("(ECPG_INFORMIX_BAD_DAY)");
+ break;
+ case ECPG_INFORMIX_BAD_MONTH:
+ printf("(ECPG_INFORMIX_BAD_MONTH)");
+ break;
+ default:
+ printf("(unknown ret: %d)", ret);
+ break;
+ }
+ printf("\n");
+}
diff --git a/src/interfaces/ecpg/test/compat_informix/rfmtlong.pgc b/src/interfaces/ecpg/test/compat_informix/rfmtlong.pgc
new file mode 100644
index 0000000..2ecf09c
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/rfmtlong.pgc
@@ -0,0 +1,73 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_error.h>
+#include <sqltypes.h>
+
+/*
+ * This file tests various forms of long-input/output by means of
+ * rfmtlong
+ */
+
+
+static void
+check_return(int ret);
+
+static void
+fmtlong(long lng, const char *fmt)
+{
+ static int i;
+ int r;
+ char buf[30];
+
+ r = rfmtlong(lng, fmt, buf);
+ printf("r: %d ", r);
+ if (r == 0)
+ {
+ printf("%d: %s (fmt was: %s)\n", i++, buf, fmt);
+ }
+ else
+ check_return(r);
+}
+
+int
+main(void)
+{
+ ECPGdebug(1, stderr);
+
+ fmtlong(-8494493, "-<<<<,<<<,<<<,<<<");
+ fmtlong(-8494493, "################");
+ fmtlong(-8494493, "+++$$$$$$$$$$$$$.##");
+ fmtlong(-8494493, "(&,&&&,&&&,&&&.)");
+ fmtlong(-8494493, "<<<<,<<<,<<<,<<<");
+ fmtlong(-8494493, "$************.**");
+ fmtlong(-8494493, "---$************.**");
+ fmtlong(-8494493, "+-+################");
+ fmtlong(-8494493, "abc: ################+-+");
+ fmtlong(-8494493, "+<<<<,<<<,<<<,<<<");
+
+ return 0;
+}
+
+static void
+check_return(int ret)
+{
+ switch(ret)
+ {
+ case ECPG_INFORMIX_ENOTDMY:
+ printf("(ECPG_INFORMIX_ENOTDMY)");
+ break;
+ case ECPG_INFORMIX_ENOSHORTDATE:
+ printf("(ECPG_INFORMIX_ENOSHORTDATE)");
+ break;
+ case ECPG_INFORMIX_BAD_DAY:
+ printf("(ECPG_INFORMIX_BAD_DAY)");
+ break;
+ case ECPG_INFORMIX_BAD_MONTH:
+ printf("(ECPG_INFORMIX_BAD_MONTH)");
+ break;
+ default:
+ printf("(unknown ret: %d)", ret);
+ break;
+ }
+ printf("\n");
+}
diff --git a/src/interfaces/ecpg/test/compat_informix/rnull.pgc b/src/interfaces/ecpg/test/compat_informix/rnull.pgc
new file mode 100644
index 0000000..a6ad35e
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/rnull.pgc
@@ -0,0 +1,97 @@
+#include "sqltypes.h"
+#include <stdlib.h>
+
+$include ../regression;
+$define NUMBER 12;
+
+static void
+test_null(int type, char *ptr)
+{
+ printf("null: %d\n", risnull(type, ptr));
+}
+
+int main(void)
+{
+ $char c[] = "abc";
+ $short s = 17;
+ $int i = -74874;
+ $bool b = 1;
+ $float f = 3.71;
+ $long l = 487444;
+ $double dbl = 404.404;
+ $decimal dec;
+ $date dat;
+ $timestamp tmp;
+
+ ECPGdebug(1, stderr);
+ $whenever sqlerror do sqlprint();
+
+ $connect to REGRESSDB1;
+
+ $create table test(id int, c char(10), s smallint, i int, b bool,
+ f float, l bigint, dbl double precision,
+ dec decimal, dat date, tmp timestamptz);
+ $commit;
+
+ $insert into test (id, c, s, i, b, f, l, dbl) values (
+ 1, :c, :s, :i, :b, :f, :l, :dbl
+ );
+ $commit;
+
+ rsetnull(CCHARTYPE, (char *) c);
+ rsetnull(CSHORTTYPE, (char *) &s);
+ rsetnull(CINTTYPE, (char *) &i);
+ rsetnull(CBOOLTYPE, (char *) &b);
+ rsetnull(CFLOATTYPE, (char *) &f);
+ rsetnull(CLONGTYPE, (char *) &l);
+ rsetnull(CDOUBLETYPE, (char *) &dbl);
+ rsetnull(CDECIMALTYPE, (char *) &dec);
+ rsetnull(CDATETYPE, (char *) &dat);
+ rsetnull(CDTIMETYPE, (char *) &tmp);
+
+ $insert into test (id, c, s, i, b, f, l, dbl, dec, dat, tmp) values (
+ 2, :c, :s, :i, :b, :f, :l, :dbl, :dec, :dat, :tmp
+ );
+ $commit;
+
+ printf("first select\n");
+
+ $select c, s, i, b, f, l, dbl, dec, dat, tmp
+ into :c, :s, :i, :b, :f, :l, :dbl, :dec, :dat, :tmp
+ from test where id = 1;
+
+ test_null(CCHARTYPE, (char *) c);
+ test_null(CSHORTTYPE, (char *) &s);
+ test_null(CINTTYPE, (char *) &i);
+ test_null(CBOOLTYPE, (char *) &b);
+ test_null(CFLOATTYPE, (char *) &f);
+ test_null(CLONGTYPE, (char *) &l);
+ test_null(CDOUBLETYPE, (char *) &dbl);
+ test_null(CDECIMALTYPE, (char *) &dec);
+ test_null(CDATETYPE, (char *) &dat);
+ test_null(CDTIMETYPE, (char *) &tmp);
+
+ printf("second select\n");
+
+ $select c, s, i, b, f, l, dbl, dec, dat, tmp
+ into :c, :s, :i, :b, :f, :l, :dbl, :dec, :dat, :tmp
+ from test where id = 2;
+
+ test_null(CCHARTYPE, (char *) c);
+ test_null(CSHORTTYPE, (char *) &s);
+ test_null(CINTTYPE, (char *) &i);
+ test_null(CBOOLTYPE, (char *) &b);
+ test_null(CFLOATTYPE, (char *) &f);
+ test_null(CLONGTYPE, (char *) &l);
+ test_null(CDOUBLETYPE, (char *) &dbl);
+ test_null(CDECIMALTYPE, (char *) &dec);
+ test_null(CDATETYPE, (char *) &dat);
+ test_null(CDTIMETYPE, (char *) &tmp);
+
+ $drop table test;
+ $commit;
+
+ $close database;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/compat_informix/sqlda.pgc b/src/interfaces/ecpg/test/compat_informix/sqlda.pgc
new file mode 100644
index 0000000..87e0110
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/sqlda.pgc
@@ -0,0 +1,250 @@
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+
+exec sql include ../regression;
+
+exec sql include sqlda.h;
+exec sql include sqltypes.h;
+
+exec sql whenever sqlerror stop;
+
+/* These shouldn't be under DECLARE SECTION */
+sqlda_t *inp_sqlda, *outp_sqlda;
+
+static void
+dump_sqlda(sqlda_t *sqlda)
+{
+ int i;
+
+ if (sqlda == NULL)
+ {
+ printf("dump_sqlda called with NULL sqlda\n");
+ return;
+ }
+
+ for (i = 0; i < sqlda->sqld; i++)
+ {
+ if (sqlda->sqlvar[i].sqlind && *(sqlda->sqlvar[i].sqlind) == -1)
+ printf("name sqlda descriptor: '%s' value NULL'\n", sqlda->sqlvar[i].sqlname);
+ else
+ switch (sqlda->sqlvar[i].sqltype)
+ {
+ case SQLCHAR:
+ printf("name sqlda descriptor: '%s' value '%s'\n", sqlda->sqlvar[i].sqlname, sqlda->sqlvar[i].sqldata);
+ break;
+ case SQLINT:
+ printf("name sqlda descriptor: '%s' value %d\n", sqlda->sqlvar[i].sqlname, *(int *)sqlda->sqlvar[i].sqldata);
+ break;
+ case SQLFLOAT:
+ printf("name sqlda descriptor: '%s' value %f\n", sqlda->sqlvar[i].sqlname, *(double *)sqlda->sqlvar[i].sqldata);
+ break;
+ case SQLDECIMAL:
+ {
+ char val[64];
+ dectoasc((dec_t *)sqlda->sqlvar[i].sqldata, val, 64, -1);
+ printf("name sqlda descriptor: '%s' value DECIMAL '%s'\n", sqlda->sqlvar[i].sqlname, val);
+ break;
+ }
+ }
+ }
+}
+
+int
+main (void)
+{
+exec sql begin declare section;
+ char *stmt1 = "SELECT * FROM t1";
+ char *stmt2 = "SELECT * FROM t1 WHERE id = ?";
+ int rec;
+ int id;
+exec sql end declare section;
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ exec sql connect to REGRESSDB1 as regress1;
+
+ strcpy(msg, "set");
+ exec sql set datestyle to iso;
+
+ strcpy(msg, "create");
+ exec sql create table t1(
+ id integer,
+ t text,
+ d1 numeric,
+ d2 float8,
+ c char(10));
+
+ strcpy(msg, "insert");
+ exec sql insert into t1 values
+ (1, 'a', 1.0, 1, 'a'),
+ (2, null, null, null, null),
+ (4, 'd', 4.0, 4, 'd');
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ /* SQLDA test for getting all records from a table */
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id1 from :stmt1;
+
+ strcpy(msg, "declare");
+ exec sql declare mycur1 cursor for st_id1;
+
+ strcpy(msg, "open");
+ exec sql open mycur1;
+
+ exec sql whenever not found do break;
+
+ rec = 0;
+ while (1)
+ {
+ strcpy(msg, "fetch");
+ exec sql fetch 1 from mycur1 into descriptor outp_sqlda;
+
+ printf("FETCH RECORD %d\n", ++rec);
+ dump_sqlda(outp_sqlda);
+ }
+
+ exec sql whenever not found continue;
+
+ strcpy(msg, "close");
+ exec sql close mycur1;
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate prepare st_id1;
+
+ free(outp_sqlda);
+
+ /* SQLDA test for getting all records from a table
+ using the Informix-specific FETCH ... USING DESCRIPTOR
+ */
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id2 from :stmt1;
+
+ strcpy(msg, "declare");
+ exec sql declare mycur2 cursor for st_id2;
+
+ strcpy(msg, "open");
+ exec sql open mycur2;
+
+ exec sql whenever not found do break;
+
+ rec = 0;
+ while (1)
+ {
+ strcpy(msg, "fetch");
+ exec sql fetch from mycur2 using descriptor outp_sqlda;
+
+ printf("FETCH RECORD %d\n", ++rec);
+ dump_sqlda(outp_sqlda);
+ }
+
+ exec sql whenever not found continue;
+
+ strcpy(msg, "close");
+ exec sql close mycur2;
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate prepare st_id2;
+
+ free(outp_sqlda);
+
+ /* SQLDA test for getting one record using an input descriptor */
+
+ /* Input sqlda has to be built manually */
+ inp_sqlda = (sqlda_t *)malloc(sizeof(sqlda_t));
+ memset(inp_sqlda, 0, sizeof(sqlda_t));
+ inp_sqlda->sqld = 1;
+ inp_sqlda->sqlvar = malloc(sizeof(sqlvar_t));
+ memset(inp_sqlda->sqlvar, 0, sizeof(sqlvar_t));
+
+ inp_sqlda->sqlvar[0].sqltype = SQLINT;
+ inp_sqlda->sqlvar[0].sqldata = (char *)&id;
+
+ printf("EXECUTE RECORD 4\n");
+
+ id = 4;
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id3 FROM :stmt2;
+
+ strcpy(msg, "execute");
+ exec sql execute st_id3 using descriptor inp_sqlda into descriptor outp_sqlda;
+
+ dump_sqlda(outp_sqlda);
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate prepare st_id3;
+
+ free(inp_sqlda->sqlvar);
+ free(inp_sqlda);
+ free(outp_sqlda);
+
+ /* SQLDA test for getting one record using an input descriptor
+ * on a named connection
+ */
+
+ exec sql connect to REGRESSDB1 as con2;
+
+ /* Input sqlda has to be built manually */
+ inp_sqlda = (sqlda_t *)malloc(sizeof(sqlda_t));
+ memset(inp_sqlda, 0, sizeof(sqlda_t));
+ inp_sqlda->sqld = 1;
+ inp_sqlda->sqlvar = malloc(sizeof(sqlvar_t));
+ memset(inp_sqlda->sqlvar, 0, sizeof(sqlvar_t));
+
+ inp_sqlda->sqlvar[0].sqltype = SQLINT;
+ inp_sqlda->sqlvar[0].sqldata = (char *)&id;
+
+ printf("EXECUTE RECORD 4\n");
+
+ id = 4;
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ exec sql at con2 prepare st_id4 FROM :stmt2;
+
+ strcpy(msg, "execute");
+ exec sql at con2 execute st_id4 using descriptor inp_sqlda into descriptor outp_sqlda;
+
+ dump_sqlda(outp_sqlda);
+
+ strcpy(msg, "commit");
+ exec sql at con2 commit;
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate prepare st_id4;
+
+ free(inp_sqlda->sqlvar);
+ free(inp_sqlda);
+ free(outp_sqlda);
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect con2;
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ exec sql drop table t1;
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/compat_informix/test_informix.pgc b/src/interfaces/ecpg/test/compat_informix/test_informix.pgc
new file mode 100644
index 0000000..0911efe
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/test_informix.pgc
@@ -0,0 +1,95 @@
+#include "sqltypes.h"
+#include <stdlib.h>
+
+$include ../regression;
+$define NUMBER 12;
+
+static void openit(void);
+static void dosqlprint(void) {
+ printf("doSQLprint: Error: %s\n", sqlca.sqlerrm.sqlerrmc);
+}
+
+int main(void)
+{
+ $int i = 14, loopcount;
+ $decimal j, m, n;
+ $string c[10];
+
+ ECPGdebug(1, stderr);
+ $whenever sqlerror do dosqlprint();
+
+ $connect to REGRESSDB1;
+ if (sqlca.sqlcode != 0) exit(1);
+
+ $create table test(i int primary key, j int, c text);
+
+ /* this INSERT works */
+ rsetnull(CDECIMALTYPE, (char *)&j);
+ $insert into test (i, j, c) values (7, :j, 'test ');
+ $commit;
+
+ /* this INSERT should fail because i is a unique column */
+ $insert into test (i, j, c) values (7, NUMBER, 'a');
+ printf("INSERT: %ld=%s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
+ if (sqlca.sqlcode != 0) $rollback;
+
+ $insert into test (i, j, c) values (:i, 1, 'a ');
+ $commit;
+
+ /* this will fail (more than one row in subquery) */
+ $select i from test where j=(select j from test);
+ $rollback;
+
+ /* this however should be ok */
+ $select i from test where j=(select j from test order by i limit 1);
+ printf("SELECT: %ld=%s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
+ if (sqlca.sqlcode != 0) $rollback;
+
+ sqlca.sqlcode = 100;
+ $declare c cursor for select * from test where i <= :i;
+ printf ("%ld\n", sqlca.sqlcode);
+ openit();
+
+ deccvint(0, &j);
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ $fetch forward c into :i, :j, :c;
+ if (sqlca.sqlcode == 100) break;
+
+ if (risnull(CDECIMALTYPE, (char *)&j))
+ printf("%d NULL\n", i);
+ else
+ {
+ int a;
+
+ dectoint(&j, &a);
+ printf("%d %d \"%s\"\n", i, a, c);
+ }
+ }
+
+ deccvint(7, &j);
+ deccvint(14, &m);
+ decadd(&j, &m, &n);
+ $delete from test where i= :n::decimal;
+ printf("DELETE: %ld\n", sqlca.sqlcode);
+
+ $select 1 from test where i=14;
+ printf("Exists: %ld\n", sqlca.sqlcode);
+
+ $select 1 from test where i=147;
+ printf("Does not exist: %ld\n", sqlca.sqlcode);
+
+ $commit;
+ $drop table test;
+ $commit;
+
+ $close database;
+
+ return 0;
+}
+
+static void openit(void)
+{
+ $open c;
+}
diff --git a/src/interfaces/ecpg/test/compat_informix/test_informix2.pgc b/src/interfaces/ecpg/test/compat_informix/test_informix2.pgc
new file mode 100644
index 0000000..224f2da
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_informix/test_informix2.pgc
@@ -0,0 +1,122 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include "sqltypes.h"
+
+EXEC SQL include sqlca.h;
+EXEC SQL include ../regression;
+EXEC SQL DEFINE MAXDBLEN 30;
+
+/* Check SQLCODE, and produce a "standard error" if it's wrong! */
+static void sql_check(const char *fn, const char *caller, int ignore)
+{
+ char errorstring[255];
+
+ if (SQLCODE == ignore)
+ return;
+ else
+ {
+ if (SQLCODE != 0)
+ {
+
+ sprintf(errorstring, "**SQL error %ld doing '%s' in function '%s'. [%s]",
+ SQLCODE, caller, fn, sqlca.sqlerrm.sqlerrmc);
+ fprintf(stderr, "%s", errorstring);
+ printf("%s\n", errorstring);
+
+ /* attempt a ROLLBACK */
+ EXEC SQL rollback;
+
+ if (SQLCODE == 0)
+ {
+ sprintf(errorstring, "Rollback successful.\n");
+ } else {
+ sprintf(errorstring, "Rollback failed with code %ld.\n", SQLCODE);
+ }
+
+ fprintf(stderr, "%s", errorstring);
+ printf("%s\n", errorstring);
+
+ exit(1);
+ }
+ }
+}
+
+int main(void)
+{
+ EXEC SQL BEGIN DECLARE SECTION;
+ int c;
+ timestamp d;
+ timestamp e;
+ timestamp maxd;
+ char dbname[30];
+ EXEC SQL END DECLARE SECTION;
+
+ interval *intvl;
+
+ EXEC SQL whenever sqlerror stop;
+
+ ECPGdebug(1, stderr);
+
+ strcpy(dbname, "ecpg1_regression");
+ EXEC SQL connect to :dbname;
+ sql_check("main", "connect", 0);
+
+ EXEC SQL SET DateStyle TO 'DMY';
+
+ EXEC SQL create table history (customerid integer, timestamp timestamp without time zone, action_taken char(5), narrative varchar(100));
+ sql_check("main", "create", 0);
+
+ EXEC SQL insert into history
+ (customerid, timestamp, action_taken, narrative)
+ values(1, '2003-05-07 13:28:34 CEST', 'test', 'test');
+ sql_check("main", "insert", 0);
+
+ EXEC SQL select max(timestamp)
+ into :maxd
+ from history;
+ sql_check("main", "select max", 100);
+
+ EXEC SQL select customerid, timestamp
+ into :c, :d
+ from history
+ where timestamp = :maxd
+ limit 1;
+ sql_check("main", "select", 0);
+
+ printf("Read in customer %d\n", c);
+
+ intvl = PGTYPESinterval_from_asc("1 day 2 hours 24 minutes 65 seconds", NULL);
+ PGTYPEStimestamp_add_interval(&d, intvl, &e);
+ free(intvl);
+ c++;
+
+ EXEC SQL insert into history
+ (customerid, timestamp, action_taken, narrative)
+ values(:c, :e, 'test', 'test');
+ sql_check("main", "update", 0);
+
+ EXEC SQL commit;
+
+ EXEC SQL drop table history;
+ sql_check("main", "drop", 0);
+
+ EXEC SQL commit;
+
+ EXEC SQL disconnect;
+ sql_check("main", "disconnect", 0);
+
+ printf("All OK!\n");
+
+ exit(0);
+
+/*
+ Table "public.history"
+ Column | Type | Nullable
+--------------+-----------------------------+----------
+ customerid | integer | not null
+ timestamp | timestamp without time zone | not null
+ action_taken | character(5) | not null
+ narrative | character varying(100) |
+*/
+
+}
diff --git a/src/interfaces/ecpg/test/compat_oracle/.gitignore b/src/interfaces/ecpg/test/compat_oracle/.gitignore
new file mode 100644
index 0000000..63b3766
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_oracle/.gitignore
@@ -0,0 +1,2 @@
+/char_array
+/char_array.c
diff --git a/src/interfaces/ecpg/test/compat_oracle/Makefile b/src/interfaces/ecpg/test/compat_oracle/Makefile
new file mode 100644
index 0000000..cd4e7e8
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_oracle/Makefile
@@ -0,0 +1,11 @@
+subdir = src/interfaces/ecpg/test/compat_oracle
+top_builddir = ../../../../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/$(subdir)/../Makefile.regress
+
+# Use special oracle compatibility switch for all tests in this directory
+ECPG += -C ORACLE
+
+TESTS = char_array char_array.c
+
+all: $(TESTS)
diff --git a/src/interfaces/ecpg/test/compat_oracle/char_array.pgc b/src/interfaces/ecpg/test/compat_oracle/char_array.pgc
new file mode 100644
index 0000000..de18cbb
--- /dev/null
+++ b/src/interfaces/ecpg/test/compat_oracle/char_array.pgc
@@ -0,0 +1,93 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <pgtypes_numeric.h>
+
+EXEC SQL INCLUDE sqlda.h;
+
+EXEC SQL INCLUDE ../regression;
+
+static void warn(void)
+{
+ fprintf(stderr, "Warning: At least one column was truncated\n");
+}
+
+/* Compatible handling of char array to retrieve varchar field to char array
+ should be fixed-length, blank-padded, then null-terminated.
+ Conforms to the ANSI Fixed Character type. */
+
+int main() {
+
+ EXEC SQL WHENEVER SQLWARNING do warn();
+ EXEC SQL WHENEVER SQLERROR STOP;
+
+ const char *ppppp = "XXXXX";
+ int loopcount;
+ sqlda_t *sqlda = NULL;
+
+ EXEC SQL BEGIN DECLARE SECTION;
+ char shortstr[5];
+ char bigstr[11];
+ short shstr_ind = 0;
+ short bigstr_ind = 0;
+ EXEC SQL END DECLARE SECTION;
+
+ ECPGdebug(1, stderr);
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL CREATE TABLE strdbase (strval varchar(10));
+ EXEC SQL INSERT INTO strdbase values ('');
+ EXEC SQL INSERT INTO strdbase values ('AB');
+ EXEC SQL INSERT INTO strdbase values ('ABCD');
+ EXEC SQL INSERT INTO strdbase values ('ABCDE');
+ EXEC SQL INSERT INTO strdbase values ('ABCDEF');
+ EXEC SQL INSERT INTO strdbase values ('ABCDEFGHIJ');
+
+ EXEC SQL declare C cursor for select strval, strval from strdbase;
+ EXEC SQL OPEN C;
+
+ EXEC SQL WHENEVER NOT FOUND DO BREAK;
+
+ printf("Full Str. : Short Ind.\n");
+ for (loopcount = 0; loopcount < 100; loopcount++) {
+ strncpy(shortstr, ppppp, sizeof shortstr);
+ memset(bigstr, 0, sizeof bigstr);
+ EXEC SQL FETCH C into :bigstr :bigstr_ind, :shortstr :shstr_ind;
+ printf("\"%s\": \"%s\" %d\n", bigstr, shortstr, shstr_ind);
+ }
+
+ EXEC SQL CLOSE C;
+ EXEC SQL DROP TABLE strdbase;
+ EXEC SQL COMMIT WORK;
+
+ /* SQLDA handling */
+ EXEC SQL WHENEVER SQLWARNING SQLPRINT;
+ EXEC SQL WHENEVER NOT FOUND STOP;
+ EXEC SQL PREPARE stmt1 FROM "SELECT 123::numeric(3,0), 't'::varchar(2)";
+ EXEC SQL DECLARE cur1 CURSOR FOR stmt1;
+ EXEC SQL OPEN cur1;
+ EXEC SQL FETCH NEXT FROM cur1 INTO DESCRIPTOR sqlda;
+
+ printf("\n-----------------\ntype : data\n");
+ for (int i = 0 ; i < sqlda->sqld ; i++)
+ {
+ sqlvar_t v = sqlda->sqlvar[i];
+ char *sqldata = v.sqldata;
+
+ if (v.sqltype == ECPGt_numeric)
+ sqldata =
+ PGTYPESnumeric_to_asc((numeric*) sqlda->sqlvar[i].sqldata, -1);
+
+ printf("%-8s: \"%s\"\n", v.sqlname.data, sqldata);
+ }
+
+ EXEC SQL CLOSE cur1;
+ EXEC SQL COMMIT WORK;
+
+ printf("\nGOOD-BYE!!\n\n");
+
+ EXEC SQL DISCONNECT ALL;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/connect/.gitignore b/src/interfaces/ecpg/test/connect/.gitignore
new file mode 100644
index 0000000..e0639f3
--- /dev/null
+++ b/src/interfaces/ecpg/test/connect/.gitignore
@@ -0,0 +1,10 @@
+/test1
+/test1.c
+/test2
+/test2.c
+/test3
+/test3.c
+/test4
+/test4.c
+/test5
+/test5.c
diff --git a/src/interfaces/ecpg/test/connect/Makefile b/src/interfaces/ecpg/test/connect/Makefile
new file mode 100644
index 0000000..2602d5d
--- /dev/null
+++ b/src/interfaces/ecpg/test/connect/Makefile
@@ -0,0 +1,12 @@
+subdir = src/interfaces/ecpg/test/connect
+top_builddir = ../../../../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/$(subdir)/../Makefile.regress
+
+TESTS = test1 test1.c \
+ test2 test2.c \
+ test3 test3.c \
+ test4 test4.c \
+ test5 test5.c
+
+all: $(TESTS)
diff --git a/src/interfaces/ecpg/test/connect/README b/src/interfaces/ecpg/test/connect/README
new file mode 100644
index 0000000..3bbfbc5
--- /dev/null
+++ b/src/interfaces/ecpg/test/connect/README
@@ -0,0 +1,9 @@
+src/interfaces/ecpg/test/connect/README
+
+Programs in this directory test all sorts of connections.
+
+All other programs just use one standard connection method.
+
+If any details of the regression database get changed (port, unix socket file,
+user names, passwords, ...), these programs here have to be changed as well
+because they contain hardcoded values.
diff --git a/src/interfaces/ecpg/test/connect/test1.pgc b/src/interfaces/ecpg/test/connect/test1.pgc
new file mode 100644
index 0000000..961bd72
--- /dev/null
+++ b/src/interfaces/ecpg/test/connect/test1.pgc
@@ -0,0 +1,65 @@
+/*
+ * this file tests all sorts of connecting to one single database.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+/* do not include regression.h */
+
+int
+main(void)
+{
+exec sql begin declare section;
+ char db[200];
+ char pw[200];
+exec sql end declare section;
+
+ ECPGdebug(1, stderr);
+
+ exec sql connect to ecpg2_regression as main;
+ exec sql alter user regress_ecpg_user1 ENCRYPTED PASSWORD 'connectpw';
+ exec sql disconnect; /* <-- "main" not specified */
+
+ exec sql connect to ecpg2_regression@localhost as main;
+ exec sql disconnect main;
+
+ exec sql connect to @localhost as main user regress_ecpg_user2;
+ exec sql disconnect main;
+
+ /* exec sql connect to :@TEMP_PORT@ as main user regress_ecpg_user2;
+ exec sql disconnect main; */
+
+ exec sql connect to tcp:postgresql://localhost/ecpg2_regression user regress_ecpg_user1 identified by connectpw;
+ exec sql disconnect;
+
+ exec sql connect to tcp:postgresql://localhost/ user regress_ecpg_user2;
+ exec sql disconnect;
+
+ strcpy(pw, "connectpw");
+ strcpy(db, "tcp:postgresql://localhost/ecpg2_regression");
+ exec sql connect to :db user regress_ecpg_user1 using :pw;
+ exec sql disconnect;
+
+ exec sql connect to unix:postgresql://localhost/ecpg2_regression user regress_ecpg_user1 using "connectpw";
+ exec sql disconnect;
+
+ exec sql connect to unix:postgresql://localhost/ecpg2_regression?connect_timeout=180 user regress_ecpg_user1;
+ exec sql disconnect;
+
+ /* wrong db */
+ exec sql connect to tcp:postgresql://localhost/nonexistent user regress_ecpg_user1 identified by connectpw;
+ exec sql disconnect;
+
+ /* wrong port */
+ exec sql connect to tcp:postgresql://127.0.0.1:20/ecpg2_regression user regress_ecpg_user1 identified by connectpw;
+ /* no disconnect necessary */
+
+ /* wrong password */
+ exec sql connect to unix:postgresql://localhost/ecpg2_regression user regress_ecpg_user1 identified by "wrongpw";
+ /* no disconnect necessary */
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/connect/test2.pgc b/src/interfaces/ecpg/test/connect/test2.pgc
new file mode 100644
index 0000000..f31a7f9
--- /dev/null
+++ b/src/interfaces/ecpg/test/connect/test2.pgc
@@ -0,0 +1,46 @@
+/*
+ * this file tests multiple connections to databases and switches
+ * between them.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+exec sql include ../regression;
+
+int
+main(void)
+{
+exec sql begin declare section;
+ char id[200];
+ char res[200];
+exec sql end declare section;
+
+ ECPGdebug(1, stderr);
+
+ strcpy(id, "first");
+ exec sql connect to ecpg2_regression as :id;
+ exec sql connect to REGRESSDB1 as second;
+
+ /* this selects from "second" which was opened last */
+ exec sql select current_database() into :res;
+ exec sql at first select current_database() into :res;
+ exec sql at second select current_database() into :res;
+
+ exec sql set connection first;
+ exec sql select current_database() into :res;
+
+ /* this will disconnect from "first" */
+ exec sql disconnect;
+ exec sql select current_database() into :res;
+
+ /* error here since "first" is already disconnected */
+ exec sql disconnect :id;
+
+ /* disconnect from "second" */
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/connect/test3.pgc b/src/interfaces/ecpg/test/connect/test3.pgc
new file mode 100644
index 0000000..5d075f0
--- /dev/null
+++ b/src/interfaces/ecpg/test/connect/test3.pgc
@@ -0,0 +1,52 @@
+/*
+ * this file just tests the several possibilities you have for a disconnect
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+exec sql include ../regression;
+
+int
+main(void)
+{
+exec sql begin declare section;
+ char id[200];
+ char res[200];
+exec sql end declare section;
+
+ ECPGdebug(1, stderr);
+
+ strcpy(id, "first");
+ exec sql connect to ecpg2_regression as :id;
+ exec sql connect to REGRESSDB1 as second;
+
+ /* this selects from "second" which was opened last */
+ exec sql select current_database() into :res;
+
+ /* will close "second" */
+ exec sql disconnect CURRENT;
+ exec sql select current_database() into :res;
+
+ exec sql connect to REGRESSDB1 as second;
+ /* will close "second" */
+ exec sql disconnect DEFAULT;
+
+ exec sql connect to "ecpg2_regression" as second;
+ exec sql disconnect ALL;
+
+ exec sql disconnect CURRENT;
+ exec sql disconnect DEFAULT;
+ exec sql disconnect ALL;
+
+ /*
+ * exec sql disconnect;
+ * exec sql disconnect name;
+ *
+ * are used in other tests
+ */
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/connect/test4.pgc b/src/interfaces/ecpg/test/connect/test4.pgc
new file mode 100644
index 0000000..b20b174
--- /dev/null
+++ b/src/interfaces/ecpg/test/connect/test4.pgc
@@ -0,0 +1,20 @@
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+exec sql include ../regression;
+
+int
+main(void)
+{
+ ECPGdebug(1, stderr);
+
+ exec sql connect to REGRESSDB1 as main;
+
+ exec sql set connection to main;
+
+ exec sql disconnect DEFAULT;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/connect/test5.pgc b/src/interfaces/ecpg/test/connect/test5.pgc
new file mode 100644
index 0000000..de29160
--- /dev/null
+++ b/src/interfaces/ecpg/test/connect/test5.pgc
@@ -0,0 +1,76 @@
+/*
+ * this file tests all sorts of connecting to one single database.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+/* do not include regression.h */
+
+int
+main(void)
+{
+exec sql begin declare section;
+ char db[200];
+ char id[200];
+ char *user="regress_ecpg_user1";
+exec sql end declare section;
+
+ ECPGdebug(1, stderr);
+
+ exec sql connect to ecpg2_regression as main;
+ exec sql alter user regress_ecpg_user2 ENCRYPTED PASSWORD 'insecure';
+ exec sql alter user regress_ecpg_user1 ENCRYPTED PASSWORD 'connectpw';
+ exec sql commit;
+ exec sql disconnect; /* <-- "main" not specified */
+
+ strcpy(db, "ecpg2_regression");
+ strcpy(id, "main");
+ exec sql connect to :db as :id;
+ exec sql disconnect :id;
+
+ exec sql connect to ecpg2_regression as main;
+ exec sql disconnect main;
+
+ exec sql connect to "ecpg2_regression" as main;
+ exec sql disconnect main;
+
+ exec sql connect to 'ecpg2_regression' as main;
+ exec sql disconnect main;
+
+ /* exec sql connect to as main user regress_ecpg_user2/insecure;
+ exec sql disconnect main; */
+
+ exec sql connect to ecpg2_regression as main user regress_ecpg_user1/connectpw;
+ exec sql disconnect main;
+
+ exec sql connect to unix:postgresql://localhost/ecpg2_regression as main user regress_ecpg_user1/connectpw;
+ exec sql disconnect main;
+
+ exec sql connect to "unix:postgresql://localhost/ecpg2_regression" as main user regress_ecpg_user1/connectpw;
+ exec sql disconnect main;
+
+ exec sql connect to 'unix:postgresql://localhost/ecpg2_regression' as main user :user USING "connectpw";
+ exec sql disconnect main;
+
+ exec sql connect to unix:postgresql://localhost/ecpg2_regression?connect_timeout=180&client_encoding=latin1 as main user regress_ecpg_user1/connectpw;
+ exec sql disconnect main;
+
+ exec sql connect to "unix:postgresql://200.46.204.71/ecpg2_regression" as main user regress_ecpg_user1/connectpw;
+ exec sql disconnect main;
+
+ exec sql connect to "unix:postgresql://localhost/?gssencmode=disable" as main user regress_ecpg_user2 IDENTIFIED BY insecure;
+ exec sql disconnect main;
+
+ /* connect twice */
+ exec sql connect to ecpg2_regression as main;
+ exec sql connect to ecpg2_regression as main;
+ exec sql disconnect main;
+
+ /* not connected */
+ exec sql disconnect nonexistent;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/ecpg_schedule b/src/interfaces/ecpg/test/ecpg_schedule
new file mode 100644
index 0000000..e034c5a
--- /dev/null
+++ b/src/interfaces/ecpg/test/ecpg_schedule
@@ -0,0 +1,61 @@
+test: compat_informix/dec_test
+test: compat_informix/charfuncs
+test: compat_informix/rfmtdate
+test: compat_informix/rfmtlong
+test: compat_informix/rnull
+test: compat_informix/sqlda
+test: compat_informix/describe
+test: compat_informix/test_informix
+test: compat_informix/test_informix2
+test: compat_oracle/char_array
+test: connect/test2
+test: connect/test3
+test: connect/test4
+test: connect/test5
+test: pgtypeslib/dt_test
+test: pgtypeslib/dt_test2
+test: pgtypeslib/num_test
+test: pgtypeslib/num_test2
+test: pgtypeslib/nan_test
+test: preproc/array_of_struct
+test: preproc/pointer_to_struct
+test: preproc/autoprep
+test: preproc/comment
+test: preproc/cursor
+test: preproc/define
+test: preproc/init
+test: preproc/strings
+test: preproc/type
+test: preproc/variable
+test: preproc/outofscope
+test: preproc/whenever
+test: preproc/whenever_do_continue
+test: sql/array
+test: sql/binary
+test: sql/bytea
+test: sql/code100
+test: sql/copystdout
+test: sql/createtableas
+test: sql/define
+test: sql/desc
+test: sql/sqlda
+test: sql/describe
+test: sql/dynalloc
+test: sql/dynalloc2
+test: sql/dyntest
+test: sql/execute
+test: sql/fetch
+test: sql/func
+test: sql/indicators
+test: sql/oldexec
+test: sql/quote
+test: sql/show
+test: sql/insupd
+test: sql/parser
+test: sql/prepareas
+test: sql/declare
+test: thread/thread
+test: thread/thread_implicit
+test: thread/prep
+test: thread/alloc
+test: thread/descriptor
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-charfuncs.c b/src/interfaces/ecpg/test/expected/compat_informix-charfuncs.c
new file mode 100644
index 0000000..86b71a4
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-charfuncs.c
@@ -0,0 +1,42 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* Needed for informix compatibility */
+#include <ecpg_informix.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "charfuncs.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <sqltypes.h>
+
+int main(void)
+{
+ char t1[] = "abc def ghi ";
+ /* 123456789012345 */
+ char buf[50];
+ int k;
+
+ printf("t1: _%s_\n", t1);
+ rupshift(t1);
+ printf("t1: _%s_\n", t1);
+
+ k = 2;
+ ldchar(t1, k, buf);
+ printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
+ k = 5;
+ ldchar(t1, k, buf);
+ printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
+ k = 9;
+ ldchar(t1, k, buf);
+ printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
+ k = 15;
+ ldchar(t1, k, buf);
+ printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stderr b/src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stderr
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stderr
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stdout b/src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stdout
new file mode 100644
index 0000000..a177579
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stdout
@@ -0,0 +1,6 @@
+t1: _abc def ghi _
+t1: _ABC DEF GHI _
+byleng(t1, 2): 2, ldchar: _AB_
+byleng(t1, 5): 3, ldchar: _ABC_
+byleng(t1, 9): 8, ldchar: _ABC DEF_
+byleng(t1, 15): 13, ldchar: _ABC DEF GHI_
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-dec_test.c b/src/interfaces/ecpg/test/expected/compat_informix-dec_test.c
new file mode 100644
index 0000000..8586650
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-dec_test.c
@@ -0,0 +1,291 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* Needed for informix compatibility */
+#include <ecpg_informix.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "dec_test.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_numeric.h>
+#include <pgtypes_error.h>
+#include <decimal.h>
+#include <sqltypes.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 8 "dec_test.pgc"
+
+
+
+#line 1 "printf_hack.h"
+/*
+ * print_double(x) has the same effect as printf("%g", x), but is intended
+ * to produce the same formatting across all platforms.
+ */
+static void
+print_double(double x)
+{
+#ifdef WIN32
+ /* Change Windows' 3-digit exponents to look like everyone else's */
+ char convert[128];
+ int vallen;
+
+ sprintf(convert, "%g", x);
+ vallen = strlen(convert);
+
+ if (vallen >= 6 &&
+ convert[vallen - 5] == 'e' &&
+ convert[vallen - 3] == '0')
+ {
+ convert[vallen - 3] = convert[vallen - 2];
+ convert[vallen - 2] = convert[vallen - 1];
+ convert[vallen - 1] = '\0';
+ }
+
+ printf("%s", convert);
+#else
+ printf("%g", x);
+#endif
+}
+
+#line 10 "dec_test.pgc"
+
+
+
+/*
+TODO:
+ deccmp => DECUNKNOWN
+ decimal point: , and/or . ?
+ ECPG_INFORMIX_BAD_EXPONENT ?
+*/
+
+char* decs[] = { "2E394", "-2", ".794", "3.44", "592.49E21", "-32.84e4",
+ "2E-394", ".1E-2", "+.0", "-592.49E-07", "+32.84e-4",
+ ".500001", "-.5000001",
+ "1234567890123456789012345678.91", /* 30 digits should fit
+ into decimal */
+ "1234567890123456789012345678.921", /* 31 digits should NOT
+ fit into decimal */
+ "not a number",
+ NULL};
+
+
+static void
+check_errno(void);
+
+#define BUFSIZE 200
+
+int
+main(void)
+{
+ decimal *dec, *din;
+ char buf[BUFSIZE];
+ long l;
+ int i, j, k, q, r, count = 0;
+ double dbl;
+ decimal **decarr = (decimal **) calloc(1, sizeof(decimal));
+
+ ECPGdebug(1, stderr);
+
+ for (i = 0; decs[i]; i++)
+ {
+ dec = PGTYPESdecimal_new();
+ r = deccvasc(decs[i], strlen(decs[i]), dec);
+ if (r)
+ {
+ check_errno();
+ printf("dec[%d,0]: r: %d\n", i, r);
+ PGTYPESdecimal_free(dec);
+ continue;
+ }
+ decarr = realloc(decarr, sizeof(decimal *) * (count + 1));
+ decarr[count++] = dec;
+
+ r = dectoasc(dec, buf, BUFSIZE-1, -1);
+ if (r < 0) check_errno();
+ printf("dec[%d,1]: r: %d, %s\n", i, r, buf);
+
+ r = dectoasc(dec, buf, BUFSIZE-1, 0);
+ if (r < 0) check_errno();
+ printf("dec[%d,2]: r: %d, %s\n", i, r, buf);
+ r = dectoasc(dec, buf, BUFSIZE-1, 1);
+ if (r < 0) check_errno();
+ printf("dec[%d,3]: r: %d, %s\n", i, r, buf);
+ r = dectoasc(dec, buf, BUFSIZE-1, 2);
+ if (r < 0) check_errno();
+ printf("dec[%d,4]: r: %d, %s\n", i, r, buf);
+
+ din = PGTYPESdecimal_new();
+ r = dectoasc(din, buf, BUFSIZE-1, 2);
+ if (r < 0) check_errno();
+ printf("dec[%d,5]: r: %d, %s\n", i, r, buf);
+
+ r = dectolong(dec, &l);
+ if (r) check_errno();
+ printf("dec[%d,6]: %ld (r: %d)\n", i, r?0L:l, r);
+ if (r == 0)
+ {
+ r = deccvlong(l, din);
+ if (r) check_errno();
+ dectoasc(din, buf, BUFSIZE-1, 2);
+ q = deccmp(dec, din);
+ printf("dec[%d,7]: %s (r: %d - cmp: %d)\n", i, buf, r, q);
+ }
+
+ r = dectoint(dec, &k);
+ if (r) check_errno();
+ printf("dec[%d,8]: %d (r: %d)\n", i, r?0:k, r);
+ if (r == 0)
+ {
+ r = deccvint(k, din);
+ if (r) check_errno();
+ dectoasc(din, buf, BUFSIZE-1, 2);
+ q = deccmp(dec, din);
+ printf("dec[%d,9]: %s (r: %d - cmp: %d)\n", i, buf, r, q);
+ }
+
+ if (i != 6)
+ {
+ /* underflow does not work reliable on several archs, so not testing it here */
+ /* this is a libc problem since we only call strtod() */
+ r = dectodbl(dec, &dbl);
+ if (r) check_errno();
+ printf("dec[%d,10]: ", i);
+ print_double(r ? 0.0 : dbl);
+ printf(" (r: %d)\n", r);
+ }
+
+ PGTYPESdecimal_free(din);
+ printf("\n");
+ }
+
+ /* add a NULL value */
+ dec = PGTYPESdecimal_new();
+ decarr = realloc(decarr, sizeof(decimal *) * (count + 1));
+ decarr[count++] = dec;
+
+ rsetnull(CDECIMALTYPE, (char *) decarr[count-1]);
+ printf("dec[%d]: %sNULL\n", count-1,
+ risnull(CDECIMALTYPE, (char *) decarr[count-1]) ? "" : "NOT ");
+ printf("dec[0]: %sNULL\n",
+ risnull(CDECIMALTYPE, (char *) decarr[0]) ? "" : "NOT ");
+
+ r = dectoasc(decarr[3], buf, -1, -1);
+ check_errno(); printf("dectoasc with len == -1: r: %d\n", r);
+ r = dectoasc(decarr[3], buf, 0, -1);
+ check_errno(); printf("dectoasc with len == 0: r: %d\n", r);
+
+ for (i = 0; i < count; i++)
+ {
+ for (j = 0; j < count; j++)
+ {
+ decimal a, s, m, d;
+ int c;
+ c = deccmp(decarr[i], decarr[j]);
+ printf("dec[c,%d,%d]: %d\n", i, j, c);
+
+ r = decadd(decarr[i], decarr[j], &a);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ dectoasc(&a, buf, BUFSIZE-1, -1);
+ printf("dec[a,%d,%d]: %s\n", i, j, buf);
+ }
+
+ r = decsub(decarr[i], decarr[j], &s);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ dectoasc(&s, buf, BUFSIZE-1, -1);
+ printf("dec[s,%d,%d]: %s\n", i, j, buf);
+ }
+
+ r = decmul(decarr[i], decarr[j], &m);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ dectoasc(&m, buf, BUFSIZE-1, -1);
+ printf("dec[m,%d,%d]: %s\n", i, j, buf);
+ }
+
+ r = decdiv(decarr[i], decarr[j], &d);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ dectoasc(&d, buf, BUFSIZE-1, -1);
+ printf("dec[d,%d,%d]: %s\n", i, j, buf);
+ }
+ }
+ }
+
+ for (i = 0; i < count; i++)
+ {
+ dectoasc(decarr[i], buf, BUFSIZE-1, -1);
+ printf("%d: %s\n", i, buf);
+
+ PGTYPESdecimal_free(decarr[i]);
+ }
+ free(decarr);
+
+ return 0;
+}
+
+static void
+check_errno(void)
+{
+ switch(errno)
+ {
+ case 0:
+ printf("(no errno set) - ");
+ break;
+ case ECPG_INFORMIX_NUM_OVERFLOW:
+ printf("(errno == ECPG_INFORMIX_NUM_OVERFLOW) - ");
+ break;
+ case ECPG_INFORMIX_NUM_UNDERFLOW:
+ printf("(errno == ECPG_INFORMIX_NUM_UNDERFLOW) - ");
+ break;
+ case PGTYPES_NUM_OVERFLOW:
+ printf("(errno == PGTYPES_NUM_OVERFLOW) - ");
+ break;
+ case PGTYPES_NUM_UNDERFLOW:
+ printf("(errno == PGTYPES_NUM_UNDERFLOW) - ");
+ break;
+ case PGTYPES_NUM_BAD_NUMERIC:
+ printf("(errno == PGTYPES_NUM_BAD_NUMERIC) - ");
+ break;
+ case PGTYPES_NUM_DIVIDE_ZERO:
+ printf("(errno == PGTYPES_NUM_DIVIDE_ZERO) - ");
+ break;
+ default:
+ printf("(unknown errno (%d))\n", errno);
+ printf("(libc: (%s)) ", strerror(errno));
+ break;
+ }
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-dec_test.stderr b/src/interfaces/ecpg/test/expected/compat_informix-dec_test.stderr
new file mode 100644
index 0000000..1a3639d
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-dec_test.stderr
@@ -0,0 +1,2 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-dec_test.stdout b/src/interfaces/ecpg/test/expected/compat_informix-dec_test.stdout
new file mode 100644
index 0000000..1f8675b
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-dec_test.stdout
@@ -0,0 +1,1293 @@
+(no errno set) - dec[0,1]: r: -1, *
+(no errno set) - dec[0,2]: r: -1, *
+(no errno set) - dec[0,3]: r: -1, *
+(no errno set) - dec[0,4]: r: -1, *
+dec[0,5]: r: 0, 0.00
+(errno == PGTYPES_NUM_OVERFLOW) - dec[0,6]: 0 (r: -1)
+(errno == PGTYPES_NUM_OVERFLOW) - dec[0,8]: 0 (r: -1)
+(errno == PGTYPES_NUM_OVERFLOW) - dec[0,10]: 0 (r: -1)
+
+dec[1,1]: r: 0, -2
+dec[1,2]: r: 0, -2
+dec[1,3]: r: 0, -2.0
+dec[1,4]: r: 0, -2.00
+dec[1,5]: r: 0, 0.00
+dec[1,6]: -2 (r: 0)
+dec[1,7]: -2.00 (r: 0 - cmp: 0)
+dec[1,8]: -2 (r: 0)
+dec[1,9]: -2.00 (r: 0 - cmp: 0)
+dec[1,10]: -2 (r: 0)
+
+dec[2,1]: r: 0, 0.794
+dec[2,2]: r: 0, 1
+dec[2,3]: r: 0, 0.8
+dec[2,4]: r: 0, 0.79
+dec[2,5]: r: 0, 0.00
+dec[2,6]: 1 (r: 0)
+dec[2,7]: 1.00 (r: 0 - cmp: -1)
+dec[2,8]: 1 (r: 0)
+dec[2,9]: 1.00 (r: 0 - cmp: -1)
+dec[2,10]: 0.794 (r: 0)
+
+dec[3,1]: r: 0, 3.44
+dec[3,2]: r: 0, 3
+dec[3,3]: r: 0, 3.4
+dec[3,4]: r: 0, 3.44
+dec[3,5]: r: 0, 0.00
+dec[3,6]: 3 (r: 0)
+dec[3,7]: 3.00 (r: 0 - cmp: 1)
+dec[3,8]: 3 (r: 0)
+dec[3,9]: 3.00 (r: 0 - cmp: 1)
+dec[3,10]: 3.44 (r: 0)
+
+dec[4,1]: r: 0, 592490000000000000000000
+dec[4,2]: r: 0, 592490000000000000000000
+dec[4,3]: r: 0, 592490000000000000000000.0
+dec[4,4]: r: 0, 592490000000000000000000.00
+dec[4,5]: r: 0, 0.00
+(errno == PGTYPES_NUM_OVERFLOW) - dec[4,6]: 0 (r: -1)
+(errno == PGTYPES_NUM_OVERFLOW) - dec[4,8]: 0 (r: -1)
+dec[4,10]: 5.9249e+23 (r: 0)
+
+dec[5,1]: r: 0, -328400
+dec[5,2]: r: 0, -328400
+dec[5,3]: r: 0, -328400.0
+dec[5,4]: r: 0, -328400.00
+dec[5,5]: r: 0, 0.00
+dec[5,6]: -328400 (r: 0)
+dec[5,7]: -328400.00 (r: 0 - cmp: 0)
+dec[5,8]: -328400 (r: 0)
+dec[5,9]: -328400.00 (r: 0 - cmp: 0)
+dec[5,10]: -328400 (r: 0)
+
+(no errno set) - dec[6,1]: r: -1, *
+dec[6,2]: r: 0, 0
+dec[6,3]: r: 0, 0.0
+dec[6,4]: r: 0, 0.00
+dec[6,5]: r: 0, 0.00
+dec[6,6]: 0 (r: 0)
+dec[6,7]: 0.00 (r: 0 - cmp: 1)
+dec[6,8]: 0 (r: 0)
+dec[6,9]: 0.00 (r: 0 - cmp: 1)
+
+dec[7,1]: r: 0, 0.001
+dec[7,2]: r: 0, 0
+dec[7,3]: r: 0, 0.0
+dec[7,4]: r: 0, 0.00
+dec[7,5]: r: 0, 0.00
+dec[7,6]: 0 (r: 0)
+dec[7,7]: 0.00 (r: 0 - cmp: 1)
+dec[7,8]: 0 (r: 0)
+dec[7,9]: 0.00 (r: 0 - cmp: 1)
+dec[7,10]: 0.001 (r: 0)
+
+dec[8,1]: r: 0, 0.0
+dec[8,2]: r: 0, 0
+dec[8,3]: r: 0, 0.0
+dec[8,4]: r: 0, 0.00
+dec[8,5]: r: 0, 0.00
+dec[8,6]: 0 (r: 0)
+dec[8,7]: 0.00 (r: 0 - cmp: 0)
+dec[8,8]: 0 (r: 0)
+dec[8,9]: 0.00 (r: 0 - cmp: 0)
+dec[8,10]: 0 (r: 0)
+
+dec[9,1]: r: 0, -0.000059249
+dec[9,2]: r: 0, -0
+dec[9,3]: r: 0, -0.0
+dec[9,4]: r: 0, -0.00
+dec[9,5]: r: 0, 0.00
+dec[9,6]: 0 (r: 0)
+dec[9,7]: 0.00 (r: 0 - cmp: -1)
+dec[9,8]: 0 (r: 0)
+dec[9,9]: 0.00 (r: 0 - cmp: -1)
+dec[9,10]: -5.9249e-05 (r: 0)
+
+dec[10,1]: r: 0, 0.003284
+dec[10,2]: r: 0, 0
+dec[10,3]: r: 0, 0.0
+dec[10,4]: r: 0, 0.00
+dec[10,5]: r: 0, 0.00
+dec[10,6]: 0 (r: 0)
+dec[10,7]: 0.00 (r: 0 - cmp: 1)
+dec[10,8]: 0 (r: 0)
+dec[10,9]: 0.00 (r: 0 - cmp: 1)
+dec[10,10]: 0.003284 (r: 0)
+
+dec[11,1]: r: 0, 0.500001
+dec[11,2]: r: 0, 1
+dec[11,3]: r: 0, 0.5
+dec[11,4]: r: 0, 0.50
+dec[11,5]: r: 0, 0.00
+dec[11,6]: 1 (r: 0)
+dec[11,7]: 1.00 (r: 0 - cmp: -1)
+dec[11,8]: 1 (r: 0)
+dec[11,9]: 1.00 (r: 0 - cmp: -1)
+dec[11,10]: 0.500001 (r: 0)
+
+dec[12,1]: r: 0, -0.5000001
+dec[12,2]: r: 0, -1
+dec[12,3]: r: 0, -0.5
+dec[12,4]: r: 0, -0.50
+dec[12,5]: r: 0, 0.00
+dec[12,6]: -1 (r: 0)
+dec[12,7]: -1.00 (r: 0 - cmp: 1)
+dec[12,8]: -1 (r: 0)
+dec[12,9]: -1.00 (r: 0 - cmp: 1)
+dec[12,10]: -0.5 (r: 0)
+
+dec[13,1]: r: 0, 1234567890123456789012345678.91
+dec[13,2]: r: 0, 1234567890123456789012345679
+dec[13,3]: r: 0, 1234567890123456789012345678.9
+dec[13,4]: r: 0, 1234567890123456789012345678.91
+dec[13,5]: r: 0, 0.00
+(errno == PGTYPES_NUM_OVERFLOW) - dec[13,6]: 0 (r: -1)
+(errno == PGTYPES_NUM_OVERFLOW) - dec[13,8]: 0 (r: -1)
+dec[13,10]: 1.23457e+27 (r: 0)
+
+(errno == PGTYPES_NUM_OVERFLOW) - dec[14,0]: r: -1200
+(errno == PGTYPES_NUM_BAD_NUMERIC) - dec[15,0]: r: -1213
+dec[14]: NULL
+dec[0]: NOT NULL
+(errno == PGTYPES_NUM_BAD_NUMERIC) - dectoasc with len == -1: r: -1
+(errno == PGTYPES_NUM_BAD_NUMERIC) - dectoasc with len == 0: r: -1
+dec[c,0,0]: 0
+dec[a,0,0]: *
+dec[s,0,0]: 0
+dec[m,0,0]: *
+dec[d,0,0]: 1.00000000000000000
+dec[c,0,1]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,1]:
+dec[m,0,1]: *
+dec[d,0,1]: *
+dec[c,0,2]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,2]:
+dec[m,0,2]: *
+dec[d,0,2]:
+dec[c,0,3]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,3]:
+dec[m,0,3]: *
+dec[d,0,3]:
+dec[c,0,4]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,4]:
+dec[m,0,4]: *
+dec[d,0,4]:
+dec[c,0,5]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,5]:
+dec[m,0,5]: *
+dec[d,0,5]:
+dec[c,0,6]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,6]:
+dec[m,0,6]: *
+dec[d,0,6]: *
+dec[c,0,7]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,7]:
+dec[m,0,7]: *
+dec[d,0,7]: *
+dec[c,0,8]: 1
+dec[a,0,8]: *
+dec[s,0,8]: *
+dec[m,0,8]: 0.0
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,0,9]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,9]:
+dec[m,0,9]: *
+dec[d,0,9]:
+dec[c,0,10]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,10]:
+dec[m,0,10]: *
+dec[d,0,10]:
+dec[c,0,11]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,11]:
+dec[m,0,11]: *
+dec[d,0,11]:
+dec[c,0,12]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,12]:
+dec[m,0,12]: *
+dec[d,0,12]:
+dec[c,0,13]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,0,13]:
+dec[m,0,13]: *
+dec[d,0,13]:
+dec[c,0,14]: 2147483647
+dec[a,0,14]:
+dec[s,0,14]:
+dec[m,0,14]: *
+dec[d,0,14]:
+dec[c,1,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,1,0]:
+dec[m,1,0]: *
+dec[d,1,0]: *
+dec[c,1,1]: 0
+dec[a,1,1]: -4
+dec[s,1,1]: 0
+dec[m,1,1]: 4
+dec[d,1,1]: 1.00000000000000000
+dec[c,1,2]: -1
+dec[a,1,2]: -1.206
+dec[s,1,2]: -2.794
+dec[m,1,2]: -1.588
+dec[d,1,2]: -2.5188916876574307
+dec[c,1,3]: -1
+dec[a,1,3]: 1.44
+dec[s,1,3]: -5.44
+dec[m,1,3]: -6.88
+dec[d,1,3]: -0.58139534883720930
+dec[c,1,4]: -1
+dec[a,1,4]: 592489999999999999999998
+dec[s,1,4]: -592490000000000000000002
+dec[m,1,4]: -1184980000000000000000000
+dec[d,1,4]: -0.0000000000000000000000033755843980489122
+dec[c,1,5]: 1
+dec[a,1,5]: -328402
+dec[s,1,5]: 328398
+dec[m,1,5]: 656800
+dec[d,1,5]: 0.0000060901339829476248
+dec[c,1,6]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,1,6]:
+dec[m,1,6]: *
+dec[d,1,6]: *
+dec[c,1,7]: -1
+dec[a,1,7]: -1.999
+dec[s,1,7]: -2.001
+dec[m,1,7]: -0.002
+dec[d,1,7]: -2000.0000000000000
+dec[c,1,8]: -1
+dec[a,1,8]: -2.0
+dec[s,1,8]: -2.0
+dec[m,1,8]: 0.0
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,1,9]: -1
+dec[a,1,9]: -2.000059249
+dec[s,1,9]: -1.999940751
+dec[m,1,9]: 0.000118498
+dec[d,1,9]: 33755.843980489122
+dec[c,1,10]: -1
+dec[a,1,10]: -1.996716
+dec[s,1,10]: -2.003284
+dec[m,1,10]: -0.006568
+dec[d,1,10]: -609.01339829476248
+dec[c,1,11]: -1
+dec[a,1,11]: -1.499999
+dec[s,1,11]: -2.500001
+dec[m,1,11]: -1.000002
+dec[d,1,11]: -3.9999920000160000
+dec[c,1,12]: -1
+dec[a,1,12]: -2.5000001
+dec[s,1,12]: -1.4999999
+dec[m,1,12]: 1.0000002
+dec[d,1,12]: 3.9999992000001600
+dec[c,1,13]: -1
+dec[a,1,13]: 1234567890123456789012345676.91
+dec[s,1,13]: -1234567890123456789012345680.91
+dec[m,1,13]: -2469135780246913578024691357.82
+dec[d,1,13]: -0.0000000000000000000000000016200000145800001
+dec[c,1,14]: 2147483647
+dec[a,1,14]: 1234567890123456789012345676.91
+dec[s,1,14]: -1234567890123456789012345680.91
+dec[m,1,14]: -2469135780246913578024691357.82
+dec[d,1,14]: -0.0000000000000000000000000016200000145800001
+dec[c,2,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,2,0]:
+dec[m,2,0]: *
+dec[d,2,0]: *
+dec[c,2,1]: 1
+dec[a,2,1]: -1.206
+dec[s,2,1]: 2.794
+dec[m,2,1]: -1.588
+dec[d,2,1]: -0.39700000000000000
+dec[c,2,2]: 0
+dec[a,2,2]: 1.588
+dec[s,2,2]: 0.000
+dec[m,2,2]: 0.630436
+dec[d,2,2]: 1.00000000000000000
+dec[c,2,3]: -1
+dec[a,2,3]: 4.234
+dec[s,2,3]: -2.646
+dec[m,2,3]: 2.73136
+dec[d,2,3]: 0.23081395348837209
+dec[c,2,4]: -1
+dec[a,2,4]: 592490000000000000000000.794
+dec[s,2,4]: -592489999999999999999999.206
+dec[m,2,4]: 470437060000000000000000.000
+dec[d,2,4]: 0.0000000000000000000000013401070060254182
+dec[c,2,5]: 1
+dec[a,2,5]: -328399.206
+dec[s,2,5]: 328400.794
+dec[m,2,5]: -260749.600
+dec[d,2,5]: -0.0000024177831912302071
+dec[c,2,6]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,2,6]:
+dec[m,2,6]: *
+dec[d,2,6]: *
+dec[c,2,7]: 1
+dec[a,2,7]: 0.795
+dec[s,2,7]: 0.793
+dec[m,2,7]: 0.000794
+dec[d,2,7]: 794.00000000000000
+dec[c,2,8]: 1
+dec[a,2,8]: 0.794
+dec[s,2,8]: 0.794
+dec[m,2,8]: 0.0000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,2,9]: 1
+dec[a,2,9]: 0.793940751
+dec[s,2,9]: 0.794059249
+dec[m,2,9]: -0.000047043706
+dec[d,2,9]: -13401.070060254182
+dec[c,2,10]: 1
+dec[a,2,10]: 0.797284
+dec[s,2,10]: 0.790716
+dec[m,2,10]: 0.002607496
+dec[d,2,10]: 241.77831912302071
+dec[c,2,11]: 1
+dec[a,2,11]: 1.294001
+dec[s,2,11]: 0.293999
+dec[m,2,11]: 0.397000794
+dec[d,2,11]: 1.5879968240063520
+dec[c,2,12]: 1
+dec[a,2,12]: 0.2939999
+dec[s,2,12]: 1.2940001
+dec[m,2,12]: -0.3970000794
+dec[d,2,12]: -1.5879996824000635
+dec[c,2,13]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,2,13]:
+dec[m,2,13]:
+dec[d,2,13]: 0.00000000000000000000000000064314000578826005
+dec[c,2,14]: 2147483647
+dec[a,2,14]:
+dec[s,2,14]:
+dec[m,2,14]:
+dec[d,2,14]: 0.00000000000000000000000000064314000578826005
+dec[c,3,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,3,0]:
+dec[m,3,0]: *
+dec[d,3,0]: *
+dec[c,3,1]: 1
+dec[a,3,1]: 1.44
+dec[s,3,1]: 5.44
+dec[m,3,1]: -6.88
+dec[d,3,1]: -1.7200000000000000
+dec[c,3,2]: 1
+dec[a,3,2]: 4.234
+dec[s,3,2]: 2.646
+dec[m,3,2]: 2.73136
+dec[d,3,2]: 4.3324937027707809
+dec[c,3,3]: 0
+dec[a,3,3]: 6.88
+dec[s,3,3]: 0.00
+dec[m,3,3]: 11.8336
+dec[d,3,3]: 1.00000000000000000
+dec[c,3,4]: -1
+dec[a,3,4]: 592490000000000000000003.44
+dec[s,3,4]: -592489999999999999999996.56
+dec[m,3,4]: 2038165600000000000000000.00
+dec[d,3,4]: 0.0000000000000000000000058060051646441290
+dec[c,3,5]: 1
+dec[a,3,5]: -328396.56
+dec[s,3,5]: 328403.44
+dec[m,3,5]: -1129696.00
+dec[d,3,5]: -0.0000104750304506699147
+dec[c,3,6]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,3,6]:
+dec[m,3,6]: *
+dec[d,3,6]: *
+dec[c,3,7]: 1
+dec[a,3,7]: 3.441
+dec[s,3,7]: 3.439
+dec[m,3,7]: 0.00344
+dec[d,3,7]: 3440.0000000000000
+dec[c,3,8]: 1
+dec[a,3,8]: 3.44
+dec[s,3,8]: 3.44
+dec[m,3,8]: 0.000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,3,9]: 1
+dec[a,3,9]: 3.439940751
+dec[s,3,9]: 3.440059249
+dec[m,3,9]: -0.00020381656
+dec[d,3,9]: -58060.051646441290
+dec[c,3,10]: 1
+dec[a,3,10]: 3.443284
+dec[s,3,10]: 3.436716
+dec[m,3,10]: 0.01129696
+dec[d,3,10]: 1047.50304506699147
+dec[c,3,11]: 1
+dec[a,3,11]: 3.940001
+dec[s,3,11]: 2.939999
+dec[m,3,11]: 1.72000344
+dec[d,3,11]: 6.8799862400275199
+dec[c,3,12]: 1
+dec[a,3,12]: 2.9399999
+dec[s,3,12]: 3.9400001
+dec[m,3,12]: -1.720000344
+dec[d,3,12]: -6.8799986240002752
+dec[c,3,13]: -1
+dec[a,3,13]: 1234567890123456789012345682.35
+dec[s,3,13]: -1234567890123456789012345675.47
+dec[m,3,13]:
+dec[d,3,13]: 0.0000000000000000000000000027864000250776002
+dec[c,3,14]: 2147483647
+dec[a,3,14]: 1234567890123456789012345682.35
+dec[s,3,14]: -1234567890123456789012345675.47
+dec[m,3,14]:
+dec[d,3,14]: 0.0000000000000000000000000027864000250776002
+dec[c,4,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,4,0]:
+dec[m,4,0]: *
+dec[d,4,0]: *
+dec[c,4,1]: 1
+dec[a,4,1]: 592489999999999999999998
+dec[s,4,1]: 592490000000000000000002
+dec[m,4,1]: -1184980000000000000000000
+dec[d,4,1]: -296245000000000000000000
+dec[c,4,2]: 1
+dec[a,4,2]: 592490000000000000000000.794
+dec[s,4,2]: 592489999999999999999999.206
+dec[m,4,2]: 470437060000000000000000.000
+dec[d,4,2]:
+dec[c,4,3]: 1
+dec[a,4,3]: 592490000000000000000003.44
+dec[s,4,3]: 592489999999999999999996.56
+dec[m,4,3]: 2038165600000000000000000.00
+dec[d,4,3]: 172235465116279069767441.86
+dec[c,4,4]: 0
+dec[a,4,4]: 1184980000000000000000000
+dec[s,4,4]: 0
+dec[m,4,4]: 351044400100000000000000000000000000000000000000
+dec[d,4,4]: 1.00000000000000000
+dec[c,4,5]: 1
+dec[a,4,5]: 592489999999999999671600
+dec[s,4,5]: 592490000000000000328400
+dec[m,4,5]: -194573716000000000000000000000
+dec[d,4,5]: -1804171741778319123
+dec[c,4,6]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,4,6]:
+dec[m,4,6]: *
+dec[d,4,6]: *
+dec[c,4,7]: 1
+dec[a,4,7]: 592490000000000000000000.001
+dec[s,4,7]: 592489999999999999999999.999
+dec[m,4,7]: 592490000000000000000.000
+dec[d,4,7]: 592490000000000000000000000.000
+dec[c,4,8]: 1
+dec[a,4,8]: 592490000000000000000000.0
+dec[s,4,8]: 592490000000000000000000.0
+dec[m,4,8]: 0.0
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,4,9]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,4,9]:
+dec[m,4,9]: -35104440010000000000.000000000
+dec[d,4,9]: -10000000000000000000000000000.000000000
+dec[c,4,10]: 1
+dec[a,4,10]: 592490000000000000000000.003284
+dec[s,4,10]: 592489999999999999999999.996716
+dec[m,4,10]: 1945737160000000000000.000000
+dec[d,4,10]:
+dec[c,4,11]: 1
+dec[a,4,11]: 592490000000000000000000.500001
+dec[s,4,11]: 592489999999999999999999.499999
+dec[m,4,11]: 296245592490000000000000.000000
+dec[d,4,11]:
+dec[c,4,12]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,4,12]:
+dec[m,4,12]: -296245059249000000000000.0000000
+dec[d,4,12]:
+dec[c,4,13]: -1
+dec[a,4,13]: 1235160380123456789012345678.91
+dec[s,4,13]: -1233975400123456789012345678.91
+dec[m,4,13]:
+dec[d,4,13]: 0.00047991690431925214
+dec[c,4,14]: 2147483647
+dec[a,4,14]: 1235160380123456789012345678.91
+dec[s,4,14]: -1233975400123456789012345678.91
+dec[m,4,14]:
+dec[d,4,14]: 0.00047991690431925214
+dec[c,5,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,5,0]:
+dec[m,5,0]: *
+dec[d,5,0]: *
+dec[c,5,1]: -1
+dec[a,5,1]: -328402
+dec[s,5,1]: -328398
+dec[m,5,1]: 656800
+dec[d,5,1]: 164200.00000000000
+dec[c,5,2]: -1
+dec[a,5,2]: -328399.206
+dec[s,5,2]: -328400.794
+dec[m,5,2]: -260749.600
+dec[d,5,2]: -413602.01511335013
+dec[c,5,3]: -1
+dec[a,5,3]: -328396.56
+dec[s,5,3]: -328403.44
+dec[m,5,3]: -1129696.00
+dec[d,5,3]: -95465.116279069767
+dec[c,5,4]: -1
+dec[a,5,4]: 592489999999999999671600
+dec[s,5,4]: -592490000000000000328400
+dec[m,5,4]: -194573716000000000000000000000
+dec[d,5,4]: -0.00000000000000000055427095815963139
+dec[c,5,5]: 0
+dec[a,5,5]: -656800
+dec[s,5,5]: 0
+dec[m,5,5]: 107846560000
+dec[d,5,5]: 1.00000000000000000
+dec[c,5,6]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,5,6]:
+dec[m,5,6]: *
+dec[d,5,6]: *
+dec[c,5,7]: -1
+dec[a,5,7]: -328399.999
+dec[s,5,7]: -328400.001
+dec[m,5,7]: -328.400
+dec[d,5,7]: -328400000.00000000
+dec[c,5,8]: -1
+dec[a,5,8]: -328400.0
+dec[s,5,8]: -328400.0
+dec[m,5,8]: 0.0
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,5,9]: -1
+dec[a,5,9]: -328400.000059249
+dec[s,5,9]: -328399.999940751
+dec[m,5,9]: 19.457371600
+dec[d,5,9]: 5542709581.596313862
+dec[c,5,10]: -1
+dec[a,5,10]: -328399.996716
+dec[s,5,10]: -328400.003284
+dec[m,5,10]: -1078.465600
+dec[d,5,10]: -100000000.000000000
+dec[c,5,11]: -1
+dec[a,5,11]: -328399.499999
+dec[s,5,11]: -328400.500001
+dec[m,5,11]: -164200.328400
+dec[d,5,11]: -656798.68640262719
+dec[c,5,12]: -1
+dec[a,5,12]: -328400.5000001
+dec[s,5,12]: -328399.4999999
+dec[m,5,12]: 164200.0328400
+dec[d,5,12]: 656799.86864002627
+dec[c,5,13]: -1
+dec[a,5,13]: 1234567890123456789012017278.91
+dec[s,5,13]: -1234567890123456789012674078.91
+dec[m,5,13]:
+dec[d,5,13]: -0.00000000000000000000026600400239403602
+dec[c,5,14]: 2147483647
+dec[a,5,14]: 1234567890123456789012017278.91
+dec[s,5,14]: -1234567890123456789012674078.91
+dec[m,5,14]:
+dec[d,5,14]: -0.00000000000000000000026600400239403602
+dec[c,6,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,0]:
+dec[m,6,0]: *
+dec[d,6,0]: *
+dec[c,6,1]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,1]:
+dec[m,6,1]: *
+dec[d,6,1]: *
+dec[c,6,2]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,2]:
+dec[m,6,2]: *
+dec[d,6,2]: *
+dec[c,6,3]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,3]:
+dec[m,6,3]: *
+dec[d,6,3]: *
+dec[c,6,4]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,4]:
+dec[m,6,4]: *
+dec[d,6,4]: *
+dec[c,6,5]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,5]:
+dec[m,6,5]: *
+dec[d,6,5]: *
+dec[c,6,6]: 0
+dec[a,6,6]: *
+dec[s,6,6]: *
+dec[m,6,6]: *
+dec[d,6,6]: *
+dec[c,6,7]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,7]:
+dec[m,6,7]: *
+dec[d,6,7]: *
+dec[c,6,8]: 1
+dec[a,6,8]: *
+dec[s,6,8]: *
+dec[m,6,8]: *
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,6,9]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,9]:
+dec[m,6,9]: *
+dec[d,6,9]: *
+dec[c,6,10]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,10]:
+dec[m,6,10]: *
+dec[d,6,10]: *
+dec[c,6,11]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,11]:
+dec[m,6,11]: *
+dec[d,6,11]: *
+dec[c,6,12]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,12]:
+dec[m,6,12]: *
+dec[d,6,12]: *
+dec[c,6,13]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,6,13]:
+dec[m,6,13]: *
+dec[d,6,13]: *
+dec[c,6,14]: 2147483647
+dec[a,6,14]:
+dec[s,6,14]:
+dec[m,6,14]: *
+dec[d,6,14]: *
+dec[c,7,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,7,0]:
+dec[m,7,0]: *
+dec[d,7,0]: *
+dec[c,7,1]: 1
+dec[a,7,1]: -1.999
+dec[s,7,1]: 2.001
+dec[m,7,1]: -0.002
+dec[d,7,1]: -0.00050000000000000000
+dec[c,7,2]: -1
+dec[a,7,2]: 0.795
+dec[s,7,2]: -0.793
+dec[m,7,2]: 0.000794
+dec[d,7,2]: 0.0012594458438287154
+dec[c,7,3]: -1
+dec[a,7,3]: 3.441
+dec[s,7,3]: -3.439
+dec[m,7,3]: 0.00344
+dec[d,7,3]: 0.00029069767441860465
+dec[c,7,4]: -1
+dec[a,7,4]: 592490000000000000000000.001
+dec[s,7,4]: -592489999999999999999999.999
+dec[m,7,4]: 592490000000000000000.000
+dec[d,7,4]: 0.0000000000000000000000000016877921990244561
+dec[c,7,5]: 1
+dec[a,7,5]: -328399.999
+dec[s,7,5]: 328400.001
+dec[m,7,5]: -328.400
+dec[d,7,5]: -0.0000000030450669914738124
+dec[c,7,6]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,7,6]:
+dec[m,7,6]: *
+dec[d,7,6]: *
+dec[c,7,7]: 0
+dec[a,7,7]: 0.002
+dec[s,7,7]: 0.000
+dec[m,7,7]: 0.000001
+dec[d,7,7]: 1.00000000000000000
+dec[c,7,8]: 1
+dec[a,7,8]: 0.001
+dec[s,7,8]: 0.001
+dec[m,7,8]: 0.0000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,7,9]: 1
+dec[a,7,9]: 0.000940751
+dec[s,7,9]: 0.001059249
+dec[m,7,9]: -0.000000059249
+dec[d,7,9]: -16.877921990244561
+dec[c,7,10]: -1
+dec[a,7,10]: 0.004284
+dec[s,7,10]: -0.002284
+dec[m,7,10]: 0.000003284
+dec[d,7,10]: 0.30450669914738124
+dec[c,7,11]: -1
+dec[a,7,11]: 0.501001
+dec[s,7,11]: -0.499001
+dec[m,7,11]: 0.000500001
+dec[d,7,11]: 0.0019999960000080000
+dec[c,7,12]: 1
+dec[a,7,12]: -0.4990001
+dec[s,7,12]: 0.5010001
+dec[m,7,12]: -0.0005000001
+dec[d,7,12]: -0.0019999996000000800
+dec[c,7,13]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,7,13]:
+dec[m,7,13]: 1234567890123456789012345.67891
+dec[d,7,13]: 0.00000000000000000000000000000081000000729000007
+dec[c,7,14]: 2147483647
+dec[a,7,14]:
+dec[s,7,14]:
+dec[m,7,14]: 1234567890123456789012345.67891
+dec[d,7,14]: 0.00000000000000000000000000000081000000729000007
+dec[c,8,0]: -1
+dec[a,8,0]: *
+dec[s,8,0]: *
+dec[m,8,0]: 0.0
+dec[d,8,0]: 0
+dec[c,8,1]: 1
+dec[a,8,1]: -2.0
+dec[s,8,1]: 2.0
+dec[m,8,1]: 0.0
+dec[d,8,1]: 0
+dec[c,8,2]: -1
+dec[a,8,2]: 0.794
+dec[s,8,2]: -0.794
+dec[m,8,2]: 0.0000
+dec[d,8,2]: 0
+dec[c,8,3]: -1
+dec[a,8,3]: 3.44
+dec[s,8,3]: -3.44
+dec[m,8,3]: 0.000
+dec[d,8,3]: 0
+dec[c,8,4]: -1
+dec[a,8,4]: 592490000000000000000000.0
+dec[s,8,4]: -592490000000000000000000.0
+dec[m,8,4]: 0.0
+dec[d,8,4]: 0
+dec[c,8,5]: 1
+dec[a,8,5]: -328400.0
+dec[s,8,5]: 328400.0
+dec[m,8,5]: 0.0
+dec[d,8,5]: 0
+dec[c,8,6]: -1
+dec[a,8,6]: *
+dec[s,8,6]: *
+dec[m,8,6]: *
+dec[d,8,6]: 0
+dec[c,8,7]: -1
+dec[a,8,7]: 0.001
+dec[s,8,7]: -0.001
+dec[m,8,7]: 0.0000
+dec[d,8,7]: 0
+dec[c,8,8]: 0
+dec[a,8,8]: 0.0
+dec[s,8,8]: 0.0
+dec[m,8,8]: 0.00
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,8,9]: 1
+dec[a,8,9]: -0.000059249
+dec[s,8,9]: 0.000059249
+dec[m,8,9]: 0.0000000000
+dec[d,8,9]: 0
+dec[c,8,10]: -1
+dec[a,8,10]: 0.003284
+dec[s,8,10]: -0.003284
+dec[m,8,10]: 0.0000000
+dec[d,8,10]: 0
+dec[c,8,11]: -1
+dec[a,8,11]: 0.500001
+dec[s,8,11]: -0.500001
+dec[m,8,11]: 0.0000000
+dec[d,8,11]: 0
+dec[c,8,12]: 1
+dec[a,8,12]: -0.5000001
+dec[s,8,12]: 0.5000001
+dec[m,8,12]: 0.00000000
+dec[d,8,12]: 0
+dec[c,8,13]: -1
+dec[a,8,13]: 1234567890123456789012345678.91
+dec[s,8,13]: -1234567890123456789012345678.91
+dec[m,8,13]: 0.000
+dec[d,8,13]: 0
+dec[c,8,14]: 2147483647
+dec[a,8,14]: 1234567890123456789012345678.91
+dec[s,8,14]: -1234567890123456789012345678.91
+dec[m,8,14]: 0.000
+dec[d,8,14]: 0
+dec[c,9,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,9,0]:
+dec[m,9,0]: *
+dec[d,9,0]: *
+dec[c,9,1]: 1
+dec[a,9,1]: -2.000059249
+dec[s,9,1]: 1.999940751
+dec[m,9,1]: 0.000118498
+dec[d,9,1]: 0.000029624500000000000
+dec[c,9,2]: -1
+dec[a,9,2]: 0.793940751
+dec[s,9,2]: -0.794059249
+dec[m,9,2]: -0.000047043706
+dec[d,9,2]: -0.000074620906801007557
+dec[c,9,3]: -1
+dec[a,9,3]: 3.439940751
+dec[s,9,3]: -3.440059249
+dec[m,9,3]: -0.00020381656
+dec[d,9,3]: -0.000017223546511627907
+dec[c,9,4]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,9,4]:
+dec[m,9,4]: -35104440010000000000.000000000
+dec[d,9,4]: -0.000000000000000000000000000100000000000000000
+dec[c,9,5]: 1
+dec[a,9,5]: -328400.000059249
+dec[s,9,5]: 328399.999940751
+dec[m,9,5]: 19.457371600
+dec[d,9,5]: 0.00000000018041717417783191
+dec[c,9,6]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,9,6]:
+dec[m,9,6]: *
+dec[d,9,6]: *
+dec[c,9,7]: -1
+dec[a,9,7]: 0.000940751
+dec[s,9,7]: -0.001059249
+dec[m,9,7]: -0.000000059249
+dec[d,9,7]: -0.059249000000000000
+dec[c,9,8]: -1
+dec[a,9,8]: -0.000059249
+dec[s,9,8]: -0.000059249
+dec[m,9,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,9,9]: 0
+dec[a,9,9]: -0.000118498
+dec[s,9,9]: 0.000000000
+dec[m,9,9]: 0.000000003510444001
+dec[d,9,9]: 1.00000000000000000
+dec[c,9,10]: -1
+dec[a,9,10]: 0.003224751
+dec[s,9,10]: -0.003343249
+dec[m,9,10]: -0.000000194573716
+dec[d,9,10]: -0.018041717417783191
+dec[c,9,11]: -1
+dec[a,9,11]: 0.499941751
+dec[s,9,11]: -0.500060249
+dec[m,9,11]: -0.000029624559249
+dec[d,9,11]: -0.000118497763004473991
+dec[c,9,12]: 1
+dec[a,9,12]: -0.500059349
+dec[s,9,12]: 0.499940851
+dec[m,9,12]: 0.0000296245059249
+dec[d,9,12]: 0.000118497976300404740
+dec[c,9,13]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,9,13]:
+dec[m,9,13]:
+dec[d,9,13]: -0.000000000000000000000000000000047991690431925214
+dec[c,9,14]: 2147483647
+dec[a,9,14]:
+dec[s,9,14]:
+dec[m,9,14]:
+dec[d,9,14]: -0.000000000000000000000000000000047991690431925214
+dec[c,10,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,10,0]:
+dec[m,10,0]: *
+dec[d,10,0]: *
+dec[c,10,1]: 1
+dec[a,10,1]: -1.996716
+dec[s,10,1]: 2.003284
+dec[m,10,1]: -0.006568
+dec[d,10,1]: -0.0016420000000000000
+dec[c,10,2]: -1
+dec[a,10,2]: 0.797284
+dec[s,10,2]: -0.790716
+dec[m,10,2]: 0.002607496
+dec[d,10,2]: 0.0041360201511335013
+dec[c,10,3]: -1
+dec[a,10,3]: 3.443284
+dec[s,10,3]: -3.436716
+dec[m,10,3]: 0.01129696
+dec[d,10,3]: 0.00095465116279069767
+dec[c,10,4]: -1
+dec[a,10,4]: 592490000000000000000000.003284
+dec[s,10,4]: -592489999999999999999999.996716
+dec[m,10,4]: 1945737160000000000000.000000
+dec[d,10,4]: 0.0000000000000000000000000055427095815963139
+dec[c,10,5]: 1
+dec[a,10,5]: -328399.996716
+dec[s,10,5]: 328400.003284
+dec[m,10,5]: -1078.465600
+dec[d,10,5]: -0.0000000100000000000000000
+dec[c,10,6]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,10,6]:
+dec[m,10,6]: *
+dec[d,10,6]: *
+dec[c,10,7]: 1
+dec[a,10,7]: 0.004284
+dec[s,10,7]: 0.002284
+dec[m,10,7]: 0.000003284
+dec[d,10,7]: 3.2840000000000000
+dec[c,10,8]: 1
+dec[a,10,8]: 0.003284
+dec[s,10,8]: 0.003284
+dec[m,10,8]: 0.0000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,10,9]: 1
+dec[a,10,9]: 0.003224751
+dec[s,10,9]: 0.003343249
+dec[m,10,9]: -0.000000194573716
+dec[d,10,9]: -55.427095815963139
+dec[c,10,10]: 0
+dec[a,10,10]: 0.006568
+dec[s,10,10]: 0.000000
+dec[m,10,10]: 0.000010784656
+dec[d,10,10]: 1.00000000000000000
+dec[c,10,11]: -1
+dec[a,10,11]: 0.503285
+dec[s,10,11]: -0.496717
+dec[m,10,11]: 0.001642003284
+dec[d,10,11]: 0.0065679868640262719
+dec[c,10,12]: 1
+dec[a,10,12]: -0.4967161
+dec[s,10,12]: 0.5032841
+dec[m,10,12]: -0.0016420003284
+dec[d,10,12]: -0.0065679986864002627
+dec[c,10,13]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,10,13]:
+dec[m,10,13]:
+dec[d,10,13]: 0.0000000000000000000000000000026600400239403602
+dec[c,10,14]: 2147483647
+dec[a,10,14]:
+dec[s,10,14]:
+dec[m,10,14]:
+dec[d,10,14]: 0.0000000000000000000000000000026600400239403602
+dec[c,11,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,11,0]:
+dec[m,11,0]: *
+dec[d,11,0]: *
+dec[c,11,1]: 1
+dec[a,11,1]: -1.499999
+dec[s,11,1]: 2.500001
+dec[m,11,1]: -1.000002
+dec[d,11,1]: -0.25000050000000000
+dec[c,11,2]: -1
+dec[a,11,2]: 1.294001
+dec[s,11,2]: -0.293999
+dec[m,11,2]: 0.397000794
+dec[d,11,2]: 0.62972418136020151
+dec[c,11,3]: -1
+dec[a,11,3]: 3.940001
+dec[s,11,3]: -2.939999
+dec[m,11,3]: 1.72000344
+dec[d,11,3]: 0.14534912790697674
+dec[c,11,4]: -1
+dec[a,11,4]: 592490000000000000000000.500001
+dec[s,11,4]: -592489999999999999999999.499999
+dec[m,11,4]: 296245592490000000000000.000000
+dec[d,11,4]: 0.00000000000000000000000084389778730442708
+dec[c,11,5]: 1
+dec[a,11,5]: -328399.499999
+dec[s,11,5]: 328400.500001
+dec[m,11,5]: -164200.328400
+dec[d,11,5]: -0.0000015225365408038977
+dec[c,11,6]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,11,6]:
+dec[m,11,6]: *
+dec[d,11,6]: *
+dec[c,11,7]: 1
+dec[a,11,7]: 0.501001
+dec[s,11,7]: 0.499001
+dec[m,11,7]: 0.000500001
+dec[d,11,7]: 500.00100000000000
+dec[c,11,8]: 1
+dec[a,11,8]: 0.500001
+dec[s,11,8]: 0.500001
+dec[m,11,8]: 0.0000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,11,9]: 1
+dec[a,11,9]: 0.499941751
+dec[s,11,9]: 0.500060249
+dec[m,11,9]: -0.000029624559249
+dec[d,11,9]: -8438.9778730442708
+dec[c,11,10]: 1
+dec[a,11,10]: 0.503285
+dec[s,11,10]: 0.496717
+dec[m,11,10]: 0.001642003284
+dec[d,11,10]: 152.25365408038977
+dec[c,11,11]: 0
+dec[a,11,11]: 1.000002
+dec[s,11,11]: 0.000000
+dec[m,11,11]: 0.250001000001
+dec[d,11,11]: 1.00000000000000000
+dec[c,11,12]: 1
+dec[a,11,12]: 0.0000009
+dec[s,11,12]: 1.0000011
+dec[m,11,12]: -0.2500005500001
+dec[d,11,12]: -1.00000179999964000
+dec[c,11,13]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,11,13]:
+dec[m,11,13]:
+dec[d,11,13]: 0.00000000000000000000000000040500081364500732
+dec[c,11,14]: 2147483647
+dec[a,11,14]:
+dec[s,11,14]:
+dec[m,11,14]:
+dec[d,11,14]: 0.00000000000000000000000000040500081364500732
+dec[c,12,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,12,0]:
+dec[m,12,0]: *
+dec[d,12,0]: *
+dec[c,12,1]: 1
+dec[a,12,1]: -2.5000001
+dec[s,12,1]: 1.4999999
+dec[m,12,1]: 1.0000002
+dec[d,12,1]: 0.25000005000000000
+dec[c,12,2]: -1
+dec[a,12,2]: 0.2939999
+dec[s,12,2]: -1.2940001
+dec[m,12,2]: -0.3970000794
+dec[d,12,2]: -0.62972304785894207
+dec[c,12,3]: -1
+dec[a,12,3]: 2.9399999
+dec[s,12,3]: -3.9400001
+dec[m,12,3]: -1.720000344
+dec[d,12,3]: -0.14534886627906977
+dec[c,12,4]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,12,4]:
+dec[m,12,4]: -296245059249000000000000.0000000
+dec[d,12,4]: -0.00000000000000000000000084389626829144796
+dec[c,12,5]: 1
+dec[a,12,5]: -328400.5000001
+dec[s,12,5]: 328399.4999999
+dec[m,12,5]: 164200.0328400
+dec[d,12,5]: 0.0000015225338002436054
+dec[c,12,6]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,12,6]:
+dec[m,12,6]: *
+dec[d,12,6]: *
+dec[c,12,7]: -1
+dec[a,12,7]: -0.4990001
+dec[s,12,7]: -0.5010001
+dec[m,12,7]: -0.0005000001
+dec[d,12,7]: -500.00010000000000
+dec[c,12,8]: -1
+dec[a,12,8]: -0.5000001
+dec[s,12,8]: -0.5000001
+dec[m,12,8]: 0.00000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,12,9]: -1
+dec[a,12,9]: -0.500059349
+dec[s,12,9]: -0.499940851
+dec[m,12,9]: 0.0000296245059249
+dec[d,12,9]: 8438.9626829144796
+dec[c,12,10]: -1
+dec[a,12,10]: -0.4967161
+dec[s,12,10]: -0.5032841
+dec[m,12,10]: -0.0016420003284
+dec[d,12,10]: -152.25338002436054
+dec[c,12,11]: -1
+dec[a,12,11]: 0.0000009
+dec[s,12,11]: -1.0000011
+dec[m,12,11]: -0.2500005500001
+dec[d,12,11]: -0.99999820000359999
+dec[c,12,12]: 0
+dec[a,12,12]: -1.0000002
+dec[s,12,12]: 0.0000000
+dec[m,12,12]: 0.25000010000001
+dec[d,12,12]: 1.00000000000000000
+dec[c,12,13]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,12,13]:
+dec[m,12,13]:
+dec[d,12,13]: -0.00000000000000000000000000040500008464500076
+dec[c,12,14]: 2147483647
+dec[a,12,14]:
+dec[s,12,14]:
+dec[m,12,14]:
+dec[d,12,14]: -0.00000000000000000000000000040500008464500076
+dec[c,13,0]: -1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,13,0]:
+dec[m,13,0]: *
+dec[d,13,0]: *
+dec[c,13,1]: 1
+dec[a,13,1]: 1234567890123456789012345676.91
+dec[s,13,1]: 1234567890123456789012345680.91
+dec[m,13,1]: -2469135780246913578024691357.82
+dec[d,13,1]: -617283945061728394506172839.46
+dec[c,13,2]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,13,2]:
+dec[m,13,2]:
+dec[d,13,2]:
+dec[c,13,3]: 1
+dec[a,13,3]: 1234567890123456789012345682.35
+dec[s,13,3]: 1234567890123456789012345675.47
+dec[m,13,3]:
+dec[d,13,3]:
+dec[c,13,4]: 1
+dec[a,13,4]: 1235160380123456789012345678.91
+dec[s,13,4]: 1233975400123456789012345678.91
+dec[m,13,4]:
+dec[d,13,4]: 2083.6940541164522
+dec[c,13,5]: 1
+dec[a,13,5]: 1234567890123456789012017278.91
+dec[s,13,5]: 1234567890123456789012674078.91
+dec[m,13,5]:
+dec[d,13,5]: -3759341930948406787491.92
+dec[c,13,6]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,13,6]:
+dec[m,13,6]: *
+dec[d,13,6]: *
+dec[c,13,7]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,13,7]:
+dec[m,13,7]: 1234567890123456789012345.67891
+dec[d,13,7]: 1234567890123456789012345678910.000
+dec[c,13,8]: 1
+dec[a,13,8]: 1234567890123456789012345678.91
+dec[s,13,8]: 1234567890123456789012345678.91
+dec[m,13,8]: 0.000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1202
+dec[c,13,9]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,13,9]:
+dec[m,13,9]:
+dec[d,13,9]:
+dec[c,13,10]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,13,10]:
+dec[m,13,10]:
+dec[d,13,10]:
+dec[c,13,11]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,13,11]:
+dec[m,13,11]:
+dec[d,13,11]:
+dec[c,13,12]: 1
+(errno == PGTYPES_NUM_OVERFLOW) - r: -1200
+dec[s,13,12]:
+dec[m,13,12]:
+dec[d,13,12]:
+dec[c,13,13]: 0
+dec[a,13,13]: 2469135780246913578024691357.82
+dec[s,13,13]: 0.00
+dec[m,13,13]:
+dec[d,13,13]: 1.00000000000000000
+dec[c,13,14]: 2147483647
+dec[a,13,14]: 2469135780246913578024691357.82
+dec[s,13,14]: 0.00
+dec[m,13,14]:
+dec[d,13,14]: 1.00000000000000000
+dec[c,14,0]: 2147483647
+dec[a,14,0]: 2469135780246913578024691357.82
+dec[s,14,0]: 0.00
+dec[m,14,0]:
+dec[d,14,0]: 1.00000000000000000
+dec[c,14,1]: 2147483647
+dec[a,14,1]: 2469135780246913578024691357.82
+dec[s,14,1]: 0.00
+dec[m,14,1]:
+dec[d,14,1]: 1.00000000000000000
+dec[c,14,2]: 2147483647
+dec[a,14,2]: 2469135780246913578024691357.82
+dec[s,14,2]: 0.00
+dec[m,14,2]:
+dec[d,14,2]: 1.00000000000000000
+dec[c,14,3]: 2147483647
+dec[a,14,3]: 2469135780246913578024691357.82
+dec[s,14,3]: 0.00
+dec[m,14,3]:
+dec[d,14,3]: 1.00000000000000000
+dec[c,14,4]: 2147483647
+dec[a,14,4]: 2469135780246913578024691357.82
+dec[s,14,4]: 0.00
+dec[m,14,4]:
+dec[d,14,4]: 1.00000000000000000
+dec[c,14,5]: 2147483647
+dec[a,14,5]: 2469135780246913578024691357.82
+dec[s,14,5]: 0.00
+dec[m,14,5]:
+dec[d,14,5]: 1.00000000000000000
+dec[c,14,6]: 2147483647
+dec[a,14,6]: 2469135780246913578024691357.82
+dec[s,14,6]: 0.00
+dec[m,14,6]:
+dec[d,14,6]: 1.00000000000000000
+dec[c,14,7]: 2147483647
+dec[a,14,7]: 2469135780246913578024691357.82
+dec[s,14,7]: 0.00
+dec[m,14,7]:
+dec[d,14,7]: 1.00000000000000000
+dec[c,14,8]: 2147483647
+dec[a,14,8]: 2469135780246913578024691357.82
+dec[s,14,8]: 0.00
+dec[m,14,8]:
+dec[d,14,8]: 1.00000000000000000
+dec[c,14,9]: 2147483647
+dec[a,14,9]: 2469135780246913578024691357.82
+dec[s,14,9]: 0.00
+dec[m,14,9]:
+dec[d,14,9]: 1.00000000000000000
+dec[c,14,10]: 2147483647
+dec[a,14,10]: 2469135780246913578024691357.82
+dec[s,14,10]: 0.00
+dec[m,14,10]:
+dec[d,14,10]: 1.00000000000000000
+dec[c,14,11]: 2147483647
+dec[a,14,11]: 2469135780246913578024691357.82
+dec[s,14,11]: 0.00
+dec[m,14,11]:
+dec[d,14,11]: 1.00000000000000000
+dec[c,14,12]: 2147483647
+dec[a,14,12]: 2469135780246913578024691357.82
+dec[s,14,12]: 0.00
+dec[m,14,12]:
+dec[d,14,12]: 1.00000000000000000
+dec[c,14,13]: 2147483647
+dec[a,14,13]: 2469135780246913578024691357.82
+dec[s,14,13]: 0.00
+dec[m,14,13]:
+dec[d,14,13]: 1.00000000000000000
+dec[c,14,14]: 2147483647
+dec[a,14,14]: 2469135780246913578024691357.82
+dec[s,14,14]: 0.00
+dec[m,14,14]:
+dec[d,14,14]: 1.00000000000000000
+0: *
+1: -2
+2: 0.794
+3: 3.44
+4: 592490000000000000000000
+5: -328400
+6: *
+7: 0.001
+8: 0.0
+9: -0.000059249
+10: 0.003284
+11: 0.500001
+12: -0.5000001
+13: 1234567890123456789012345678.91
+14:
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-describe.c b/src/interfaces/ecpg/test/expected/compat_informix-describe.c
new file mode 100644
index 0000000..031a2d7
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-describe.c
@@ -0,0 +1,467 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* Needed for informix compatibility */
+#include <ecpg_informix.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "describe.pgc"
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "describe.pgc"
+
+
+#line 1 "sqlda.h"
+#ifndef ECPG_SQLDA_H
+#define ECPG_SQLDA_H
+
+#ifdef _ECPG_INFORMIX_H
+
+#include "sqlda-compat.h"
+typedef struct sqlvar_compat sqlvar_t;
+typedef struct sqlda_compat sqlda_t;
+
+#else
+
+#include "sqlda-native.h"
+typedef struct sqlvar_struct sqlvar_t;
+typedef struct sqlda_struct sqlda_t;
+
+#endif
+
+#endif /* ECPG_SQLDA_H */
+
+#line 5 "describe.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 7 "describe.pgc"
+
+
+sqlda_t *sqlda1, *sqlda2, *sqlda3;
+
+int
+main (void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+
+#line 15 "describe.pgc"
+ char * stmt1 = "SELECT id, t FROM descr_t1" ;
+
+#line 16 "describe.pgc"
+ char * stmt2 = "SELECT id, t FROM descr_t1 WHERE id = -1" ;
+
+#line 17 "describe.pgc"
+ int i , count1 , count2 ;
+
+#line 18 "describe.pgc"
+ char field_name1 [ 30 ] = "not set" ;
+
+#line 19 "describe.pgc"
+ char field_name2 [ 30 ] = "not set" ;
+/* exec sql end declare section */
+#line 20 "describe.pgc"
+
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 1, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 27 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 27 "describe.pgc"
+
+
+ strcpy(msg, "set");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
+#line 30 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 30 "describe.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "create table descr_t1 ( id serial primary key , t text )", ECPGt_EOIT, ECPGt_EORT);
+#line 33 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 33 "describe.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into descr_t1 ( id , t ) values ( default , 'a' )", ECPGt_EOIT, ECPGt_EORT);
+#line 36 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 36 "describe.pgc"
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into descr_t1 ( id , t ) values ( default , 'b' )", ECPGt_EOIT, ECPGt_EORT);
+#line 37 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 37 "describe.pgc"
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into descr_t1 ( id , t ) values ( default , 'c' )", ECPGt_EOIT, ECPGt_EORT);
+#line 38 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 38 "describe.pgc"
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into descr_t1 ( id , t ) values ( default , 'd' )", ECPGt_EOIT, ECPGt_EORT);
+#line 39 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 39 "describe.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 42 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 42 "describe.pgc"
+
+
+ /*
+ * Test DESCRIBE with a query producing tuples.
+ * DESCRIPTOR and SQL DESCRIPTOR are NOT the same in
+ * Informix-compat mode.
+ */
+
+ strcpy(msg, "allocate");
+ ECPGallocate_desc(__LINE__, "desc1");
+#line 51 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 51 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc2");
+#line 52 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 52 "describe.pgc"
+
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id1", stmt1);
+#line 55 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 55 "describe.pgc"
+
+
+ sqlda1 = sqlda2 = sqlda3 = NULL;
+
+ strcpy(msg, "describe");
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id1",
+ ECPGt_descriptor, "desc1", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 60 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id1",
+ ECPGt_descriptor, "desc2", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 61 "describe.pgc"
+
+
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id1",
+ ECPGt_sqlda, &sqlda1, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 63 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id1",
+ ECPGt_sqlda, &sqlda2, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 64 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id1",
+ ECPGt_sqlda, &sqlda3, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 65 "describe.pgc"
+
+
+ if (sqlda1 == NULL)
+ {
+ printf("sqlda1 NULL\n");
+ exit(1);
+ }
+
+ if (sqlda2 == NULL)
+ {
+ printf("sqlda2 NULL\n");
+ exit(1);
+ }
+
+ if (sqlda3 == NULL)
+ {
+ printf("sqlda3 NULL\n");
+ exit(1);
+ }
+
+ strcpy(msg, "get descriptor");
+ { ECPGget_desc_header(__LINE__, "desc1", &(count1));
+
+#line 86 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 86 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc1", &(count2));
+
+#line 87 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 87 "describe.pgc"
+
+
+ if (count1 != count2)
+ {
+ printf("count1 (%d) != count2 (%d)\n", count1, count2);
+ exit(1);
+ }
+
+ if (count1 != sqlda1->sqld)
+ {
+ printf("count1 (%d) != sqlda1->sqld (%d)\n", count1, sqlda1->sqld);
+ exit(1);
+ }
+
+ if (count1 != sqlda2->sqld)
+ {
+ printf("count1 (%d) != sqlda2->sqld (%d)\n", count1, sqlda2->sqld);
+ exit(1);
+ }
+
+ if (count1 != sqlda3->sqld)
+ {
+ printf("count1 (%d) != sqlda3->sqld (%d)\n", count1, sqlda3->sqld);
+ exit(1);
+ }
+
+ for (i = 1; i <= count1; i++)
+ {
+ { ECPGget_desc(__LINE__, "desc1", i,ECPGd_name,
+ ECPGt_char,(field_name1),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 115 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 115 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc2", i,ECPGd_name,
+ ECPGt_char,(field_name2),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 116 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 116 "describe.pgc"
+
+ printf("%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
+ "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
+ i, field_name1, field_name2,
+ sqlda1->sqlvar[i-1].sqlname,
+ sqlda2->sqlvar[i-1].sqlname,
+ sqlda3->sqlvar[i-1].sqlname);
+ }
+
+ strcpy(msg, "deallocate");
+ ECPGdeallocate_desc(__LINE__, "desc1");
+#line 126 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 126 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc2");
+#line 127 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 127 "describe.pgc"
+
+ free(sqlda1);
+ free(sqlda2);
+ free(sqlda3);
+
+ { ECPGdeallocate(__LINE__, 1, NULL, "st_id1");
+#line 132 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 132 "describe.pgc"
+
+
+ /* Test DESCRIBE with a query not producing tuples */
+
+ strcpy(msg, "allocate");
+ ECPGallocate_desc(__LINE__, "desc1");
+#line 137 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 137 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc2");
+#line 138 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 138 "describe.pgc"
+
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id2", stmt2);
+#line 141 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 141 "describe.pgc"
+
+
+ sqlda1 = sqlda2 = sqlda3 = NULL;
+
+ strcpy(msg, "describe");
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id2",
+ ECPGt_descriptor, "desc1", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 146 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id2",
+ ECPGt_descriptor, "desc2", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 147 "describe.pgc"
+
+
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id2",
+ ECPGt_sqlda, &sqlda1, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 149 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id2",
+ ECPGt_sqlda, &sqlda2, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 150 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 1, 0, NULL, "st_id2",
+ ECPGt_sqlda, &sqlda3, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 151 "describe.pgc"
+
+
+ if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
+ exit(1);
+
+ strcpy(msg, "get descriptor");
+ { ECPGget_desc_header(__LINE__, "desc1", &(count1));
+
+#line 157 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 157 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc1", &(count2));
+
+#line 158 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 158 "describe.pgc"
+
+
+ if (!( count1 == count2 &&
+ count1 == sqlda1->sqld &&
+ count1 == sqlda2->sqld &&
+ count1 == sqlda3->sqld))
+ exit(1);
+
+ for (i = 1; i <= count1; i++)
+ {
+ { ECPGget_desc(__LINE__, "desc1", i,ECPGd_name,
+ ECPGt_char,(field_name1),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 168 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 168 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc2", i,ECPGd_name,
+ ECPGt_char,(field_name2),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 169 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 169 "describe.pgc"
+
+ printf("%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
+ "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
+ i, field_name1, field_name2,
+ sqlda1->sqlvar[i-1].sqlname,
+ sqlda2->sqlvar[i-1].sqlname,
+ sqlda3->sqlvar[i-1].sqlname);
+ }
+
+ strcpy(msg, "deallocate");
+ ECPGdeallocate_desc(__LINE__, "desc1");
+#line 179 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 179 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc2");
+#line 180 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 180 "describe.pgc"
+
+ free(sqlda1);
+ free(sqlda2);
+ free(sqlda3);
+
+ { ECPGdeallocate(__LINE__, 1, NULL, "st_id2");
+#line 185 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 185 "describe.pgc"
+
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "drop table descr_t1", ECPGt_EOIT, ECPGt_EORT);
+#line 190 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 190 "describe.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 193 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 193 "describe.pgc"
+
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 196 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 196 "describe.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-describe.stderr b/src/interfaces/ecpg/test/expected/compat_informix-describe.stderr
new file mode 100644
index 0000000..8c4c9b7
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-describe.stderr
@@ -0,0 +1,112 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: set datestyle to iso; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: query: create table descr_t1 ( id serial primary key , t text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: insert into descr_t1 ( id , t ) values ( default , 'a' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: query: insert into descr_t1 ( id , t ) values ( default , 'b' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 37: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: query: insert into descr_t1 ( id , t ) values ( default , 'c' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 38: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: insert into descr_t1 ( id , t ) values ( default , 'd' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 39: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 42: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 55: name st_id1; query: "SELECT id, t FROM descr_t1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 63 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 64 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 65 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 132: name st_id1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 141: name st_id2; query: "SELECT id, t FROM descr_t1 WHERE id = -1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 149 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 150 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 151 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 185: name st_id2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 190: query: drop table descr_t1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 190: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 190: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 193: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-describe.stdout b/src/interfaces/ecpg/test/expected/compat_informix-describe.stdout
new file mode 100644
index 0000000..1e3fe10
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-describe.stdout
@@ -0,0 +1,24 @@
+1
+ field_name1 'id'
+ field_name2 'id'
+ sqlda1 'id'
+ sqlda2 'id'
+ sqlda3 'id'
+2
+ field_name1 't'
+ field_name2 't'
+ sqlda1 't'
+ sqlda2 't'
+ sqlda3 't'
+1
+ field_name1 'id'
+ field_name2 'id'
+ sqlda1 'id'
+ sqlda2 'id'
+ sqlda3 'id'
+2
+ field_name1 't'
+ field_name2 't'
+ sqlda1 't'
+ sqlda2 't'
+ sqlda3 't'
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.c b/src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.c
new file mode 100644
index 0000000..68be082
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.c
@@ -0,0 +1,186 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* Needed for informix compatibility */
+#include <ecpg_informix.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "rfmtdate.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_error.h>
+#include <sqltypes.h>
+
+/*
+ * This file tests various forms of date-input/output by means of
+ * rfmtdate / rdefmtdate / rstrdate
+ */
+
+
+static void
+check_return(int ret);
+
+static void
+date_test_strdate(const char *input)
+{
+ static int i;
+ date d;
+ int r, q;
+ char dbuf[11];
+
+ r = rstrdate(input, &d);
+ printf("r: %d ", r);
+ if (r == 0)
+ {
+ q = rdatestr(d, dbuf);
+ printf("q: %d ", q);
+ if (q == 0)
+ {
+ printf("date %d: %s\n", i++, dbuf);
+ }
+ else
+ printf("\n");
+ }
+ else
+ check_return(r);
+}
+
+static void
+date_test_defmt(const char *fmt, const char *input)
+{
+ static int i;
+ char dbuf[11];
+ date d;
+ int q, r;
+
+ r = rdefmtdate(&d, fmt, input);
+ printf("r: %d ", r);
+ if (r == 0)
+ {
+ q = rdatestr(d, dbuf);
+ printf("q: %d ", q);
+ if (q == 0)
+ {
+ printf("date %d: %s\n", i++, dbuf);
+ }
+ else
+ printf("\n");
+ }
+ else
+ check_return(r);
+}
+
+static void
+date_test_fmt(date d, const char *fmt)
+{
+ static int i;
+ char buf[200];
+ int r;
+
+ r = rfmtdate(d, fmt, buf);
+ printf("r: %d ", r);
+ if (r != 0)
+ check_return(r);
+ else
+ printf("date: %d: %s\n", i++, buf);
+}
+
+
+int
+main(void)
+{
+ short mdy[3] = { 11, 23, 1959 };
+ char dbuf[11];
+ date d;
+ int r;
+
+ ECPGdebug(1, stderr);
+
+ r = rmdyjul(mdy, &d);
+ printf("create: r: %d\n", r);
+ if (r == 0)
+ {
+ rdatestr(d, dbuf);
+ printf("date: %s\n", dbuf);
+ }
+
+ /* input mask is mmddyyyy */
+ date_test_strdate("12031994");
+ date_test_strdate("9.6.1994");
+
+ date_test_fmt(d, "mmddyy");
+ date_test_fmt(d, "ddmmyy");
+ date_test_fmt(d, "yymmdd");
+ date_test_fmt(d, "yy/mm/dd");
+ date_test_fmt(d, "yy mm dd");
+ date_test_fmt(d, "yy.mm.dd");
+ date_test_fmt(d, ".mm.yyyy.dd.");
+ date_test_fmt(d, "mmm. dd, yyyy");
+ date_test_fmt(d, "mmm dd yyyy");
+ date_test_fmt(d, "yyyy dd mm");
+ date_test_fmt(d, "ddd, mmm. dd, yyyy");
+ date_test_fmt(d, "(ddd) mmm. dd, yyyy");
+
+ date_test_defmt("ddmmyy", "21-2-54");
+ date_test_defmt("ddmmyy", "2-12-54");
+ date_test_defmt("ddmmyy", "20111954");
+ date_test_defmt("ddmmyy", "130464");
+ date_test_defmt("mmm.dd.yyyy", "MAR-12-1967");
+ date_test_defmt("yy/mm/dd", "1954, February 3rd");
+ date_test_defmt("mmm.dd.yyyy", "041269");
+ date_test_defmt("yy/mm/dd", "In the year 2525, in the month of July, mankind will be alive on the 28th day");
+ date_test_defmt("dd-mm-yy", "I said on the 28th of July in the year 2525");
+ date_test_defmt("mmm.dd.yyyy", "9/14/58");
+ date_test_defmt("yy/mm/dd", "47/03/29");
+ date_test_defmt("mmm.dd.yyyy", "oct 28 1975");
+ date_test_defmt("mmddyy", "Nov 14th, 1985");
+ /* ok: still contains dd mm yy */
+ date_test_defmt("bladdfoommbaryybong", "20/11/1954");
+ /* 1994 is not a leap year, it accepts the date as 01-03-1994 */
+ date_test_defmt("ddmmyy", "29-02-1994");
+
+ /* ECPG_INFORMIX_ENOTDMY, need "dd", "mm" and "yy" */
+ date_test_defmt("dmy", "20/11/1954");
+
+ /* ECPG_INFORMIX_ENOSHORTDATE */
+ date_test_defmt("ddmmyy", "21254");
+ date_test_defmt("ddmmyy", " 21254 ");
+
+ /* ECPG_INFORMIX_BAD_DAY */
+ date_test_defmt("ddmmyy", "320494");
+
+ /* ECPG_INFORMIX_BAD_MONTH */
+ date_test_defmt("mm-yyyy-dd", "13-1993-21");
+
+ /* ECPG_INFORMIX_BAD_YEAR */
+ /* ??? */
+
+ return 0;
+}
+
+static void
+check_return(int ret)
+{
+ switch(ret)
+ {
+ case ECPG_INFORMIX_ENOTDMY:
+ printf("(ECPG_INFORMIX_ENOTDMY)");
+ break;
+ case ECPG_INFORMIX_ENOSHORTDATE:
+ printf("(ECPG_INFORMIX_ENOSHORTDATE)");
+ break;
+ case ECPG_INFORMIX_BAD_DAY:
+ printf("(ECPG_INFORMIX_BAD_DAY)");
+ break;
+ case ECPG_INFORMIX_BAD_MONTH:
+ printf("(ECPG_INFORMIX_BAD_MONTH)");
+ break;
+ default:
+ printf("(unknown ret: %d)", ret);
+ break;
+ }
+ printf("\n");
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stderr b/src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stderr
new file mode 100644
index 0000000..1a3639d
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stderr
@@ -0,0 +1,2 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stdout b/src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stdout
new file mode 100644
index 0000000..16880d4
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stdout
@@ -0,0 +1,36 @@
+create: r: 0
+date: 1959-11-23
+r: 0 q: 0 date 0: 1994-12-03
+r: 0 q: 0 date 1: 1994-09-06
+r: 0 date: 0: 112359
+r: 0 date: 1: 231159
+r: 0 date: 2: 591123
+r: 0 date: 3: 59/11/23
+r: 0 date: 4: 59 11 23
+r: 0 date: 5: 59.11.23
+r: 0 date: 6: .11.1959.23.
+r: 0 date: 7: Nov. 23, 1959
+r: 0 date: 8: Nov 23 1959
+r: 0 date: 9: 1959 23 11
+r: 0 date: 10: Mon, Nov. 23, 1959
+r: 0 date: 11: (Mon) Nov. 23, 1959
+r: 0 q: 0 date 0: 0054-02-21
+r: 0 q: 0 date 1: 0054-12-02
+r: 0 q: 0 date 2: 1954-11-20
+r: 0 q: 0 date 3: 0064-04-13
+r: 0 q: 0 date 4: 1967-03-12
+r: 0 q: 0 date 5: 1954-02-03
+r: 0 q: 0 date 6: 0069-04-12
+r: 0 q: 0 date 7: 2525-07-28
+r: 0 q: 0 date 8: 2525-07-28
+r: 0 q: 0 date 9: 0058-09-14
+r: 0 q: 0 date 10: 0047-03-29
+r: 0 q: 0 date 11: 1975-10-28
+r: 0 q: 0 date 12: 1985-11-14
+r: 0 q: 0 date 13: 1954-11-20
+r: 0 q: 0 date 14: 1994-03-01
+r: -1212 (ECPG_INFORMIX_ENOTDMY)
+r: -1209 (ECPG_INFORMIX_ENOSHORTDATE)
+r: -1209 (ECPG_INFORMIX_ENOSHORTDATE)
+r: -1206 (ECPG_INFORMIX_BAD_DAY)
+r: -1205 (ECPG_INFORMIX_BAD_MONTH)
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.c b/src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.c
new file mode 100644
index 0000000..b2e397e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.c
@@ -0,0 +1,84 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* Needed for informix compatibility */
+#include <ecpg_informix.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "rfmtlong.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_error.h>
+#include <sqltypes.h>
+
+/*
+ * This file tests various forms of long-input/output by means of
+ * rfmtlong
+ */
+
+
+static void
+check_return(int ret);
+
+static void
+fmtlong(long lng, const char *fmt)
+{
+ static int i;
+ int r;
+ char buf[30];
+
+ r = rfmtlong(lng, fmt, buf);
+ printf("r: %d ", r);
+ if (r == 0)
+ {
+ printf("%d: %s (fmt was: %s)\n", i++, buf, fmt);
+ }
+ else
+ check_return(r);
+}
+
+int
+main(void)
+{
+ ECPGdebug(1, stderr);
+
+ fmtlong(-8494493, "-<<<<,<<<,<<<,<<<");
+ fmtlong(-8494493, "################");
+ fmtlong(-8494493, "+++$$$$$$$$$$$$$.##");
+ fmtlong(-8494493, "(&,&&&,&&&,&&&.)");
+ fmtlong(-8494493, "<<<<,<<<,<<<,<<<");
+ fmtlong(-8494493, "$************.**");
+ fmtlong(-8494493, "---$************.**");
+ fmtlong(-8494493, "+-+################");
+ fmtlong(-8494493, "abc: ################+-+");
+ fmtlong(-8494493, "+<<<<,<<<,<<<,<<<");
+
+ return 0;
+}
+
+static void
+check_return(int ret)
+{
+ switch(ret)
+ {
+ case ECPG_INFORMIX_ENOTDMY:
+ printf("(ECPG_INFORMIX_ENOTDMY)");
+ break;
+ case ECPG_INFORMIX_ENOSHORTDATE:
+ printf("(ECPG_INFORMIX_ENOSHORTDATE)");
+ break;
+ case ECPG_INFORMIX_BAD_DAY:
+ printf("(ECPG_INFORMIX_BAD_DAY)");
+ break;
+ case ECPG_INFORMIX_BAD_MONTH:
+ printf("(ECPG_INFORMIX_BAD_MONTH)");
+ break;
+ default:
+ printf("(unknown ret: %d)", ret);
+ break;
+ }
+ printf("\n");
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stderr b/src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stderr
new file mode 100644
index 0000000..1a3639d
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stderr
@@ -0,0 +1,2 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stdout b/src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stdout
new file mode 100644
index 0000000..5965e6d
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stdout
@@ -0,0 +1,10 @@
+r: 0 0: -8,494,493 (fmt was: -<<<<,<<<,<<<,<<<)
+r: 0 1: 8494493 (fmt was: ################)
+r: 0 2: - $8494493.00 (fmt was: +++$$$$$$$$$$$$$.##)
+r: 0 3: (00008,494,493.) (fmt was: (&,&&&,&&&,&&&.))
+r: 0 4: 8,494,493 (fmt was: <<<<,<<<,<<<,<<<)
+r: 0 5: $*****8494493.00 (fmt was: $************.**)
+r: 0 6: -$*****8494493.00 (fmt was: ---$************.**)
+r: 0 7: - 8494493 (fmt was: +-+################)
+r: 0 8: abc: 8494493 (fmt was: abc: ################+-+)
+r: 0 9: -8,494,493 (fmt was: +<<<<,<<<,<<<,<<<)
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-rnull.c b/src/interfaces/ecpg/test/expected/compat_informix-rnull.c
new file mode 100644
index 0000000..d7ba69c
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-rnull.c
@@ -0,0 +1,293 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* Needed for informix compatibility */
+#include <ecpg_informix.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "rnull.pgc"
+#include "sqltypes.h"
+#include <stdlib.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "rnull.pgc"
+
+
+
+static void
+test_null(int type, char *ptr)
+{
+ printf("null: %d\n", risnull(type, ptr));
+}
+
+int main(void)
+{
+
+#line 15 "rnull.pgc"
+ char c [] = "abc" ;
+
+#line 15 "rnull.pgc"
+
+
+#line 16 "rnull.pgc"
+ short s = 17 ;
+
+#line 16 "rnull.pgc"
+
+
+#line 17 "rnull.pgc"
+ int i = - 74874 ;
+
+#line 17 "rnull.pgc"
+
+
+#line 18 "rnull.pgc"
+ bool b = 1 ;
+
+#line 18 "rnull.pgc"
+
+
+#line 19 "rnull.pgc"
+ float f = 3.71 ;
+
+#line 19 "rnull.pgc"
+
+
+#line 20 "rnull.pgc"
+ long l = 487444 ;
+
+#line 20 "rnull.pgc"
+
+
+#line 21 "rnull.pgc"
+ double dbl = 404.404 ;
+
+#line 21 "rnull.pgc"
+
+
+#line 22 "rnull.pgc"
+ decimal dec ;
+
+#line 22 "rnull.pgc"
+
+
+#line 23 "rnull.pgc"
+ date dat ;
+
+#line 23 "rnull.pgc"
+
+
+#line 24 "rnull.pgc"
+ timestamp tmp ;
+
+#line 24 "rnull.pgc"
+
+
+ ECPGdebug(1, stderr);
+ /* exec sql whenever sqlerror do sqlprint ( ) ; */
+#line 27 "rnull.pgc"
+
+
+ { ECPGconnect(__LINE__, 1, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 29 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 29 "rnull.pgc"
+
+
+ { ECPGdo(__LINE__, 1, 0, NULL, 0, ECPGst_normal, "create table test ( id int , c char ( 10 ) , s smallint , i int , b bool , f float , l bigint , dbl double precision , dec decimal , dat date , tmp timestamptz )", ECPGt_EOIT, ECPGt_EORT);
+#line 33 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 33 "rnull.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 34 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 34 "rnull.pgc"
+
+
+ { ECPGdo(__LINE__, 1, 0, NULL, 0, ECPGst_normal, "insert into test ( id , c , s , i , b , f , l , dbl ) values ( 1 , $1 , $2 , $3 , $4 , $5 , $6 , $7 )",
+ ECPGt_char,(c),(long)sizeof("abc"),(long)1,(sizeof("abc"))*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_short,&(s),(long)1,(long)1,sizeof(short),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_bool,&(b),(long)1,(long)1,sizeof(bool),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_float,&(f),(long)1,(long)1,sizeof(float),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_long,&(l),(long)1,(long)1,sizeof(long),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_double,&(dbl),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 38 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 38 "rnull.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 39 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 39 "rnull.pgc"
+
+
+ rsetnull(CCHARTYPE, (char *) c);
+ rsetnull(CSHORTTYPE, (char *) &s);
+ rsetnull(CINTTYPE, (char *) &i);
+ rsetnull(CBOOLTYPE, (char *) &b);
+ rsetnull(CFLOATTYPE, (char *) &f);
+ rsetnull(CLONGTYPE, (char *) &l);
+ rsetnull(CDOUBLETYPE, (char *) &dbl);
+ rsetnull(CDECIMALTYPE, (char *) &dec);
+ rsetnull(CDATETYPE, (char *) &dat);
+ rsetnull(CDTIMETYPE, (char *) &tmp);
+
+ { ECPGdo(__LINE__, 1, 0, NULL, 0, ECPGst_normal, "insert into test ( id , c , s , i , b , f , l , dbl , dec , dat , tmp ) values ( 2 , $1 , $2 , $3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 )",
+ ECPGt_char,(c),(long)sizeof("abc"),(long)1,(sizeof("abc"))*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_short,&(s),(long)1,(long)1,sizeof(short),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_bool,&(b),(long)1,(long)1,sizeof(bool),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_float,&(f),(long)1,(long)1,sizeof(float),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_long,&(l),(long)1,(long)1,sizeof(long),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_double,&(dbl),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_decimal,&(dec),(long)1,(long)1,sizeof(decimal),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_date,&(dat),(long)1,(long)1,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(tmp),(long)1,(long)1,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 54 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 54 "rnull.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 55 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 55 "rnull.pgc"
+
+
+ printf("first select\n");
+
+ { ECPGdo(__LINE__, 1, 0, NULL, 0, ECPGst_normal, "select c , s , i , b , f , l , dbl , dec , dat , tmp from test where id = 1", ECPGt_EOIT,
+ ECPGt_char,(c),(long)sizeof("abc"),(long)1,(sizeof("abc"))*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_short,&(s),(long)1,(long)1,sizeof(short),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_bool,&(b),(long)1,(long)1,sizeof(bool),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_float,&(f),(long)1,(long)1,sizeof(float),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_long,&(l),(long)1,(long)1,sizeof(long),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_double,&(dbl),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_decimal,&(dec),(long)1,(long)1,sizeof(decimal),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_date,&(dat),(long)1,(long)1,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(tmp),(long)1,(long)1,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 61 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 61 "rnull.pgc"
+
+
+ test_null(CCHARTYPE, (char *) c);
+ test_null(CSHORTTYPE, (char *) &s);
+ test_null(CINTTYPE, (char *) &i);
+ test_null(CBOOLTYPE, (char *) &b);
+ test_null(CFLOATTYPE, (char *) &f);
+ test_null(CLONGTYPE, (char *) &l);
+ test_null(CDOUBLETYPE, (char *) &dbl);
+ test_null(CDECIMALTYPE, (char *) &dec);
+ test_null(CDATETYPE, (char *) &dat);
+ test_null(CDTIMETYPE, (char *) &tmp);
+
+ printf("second select\n");
+
+ { ECPGdo(__LINE__, 1, 0, NULL, 0, ECPGst_normal, "select c , s , i , b , f , l , dbl , dec , dat , tmp from test where id = 2", ECPGt_EOIT,
+ ECPGt_char,(c),(long)sizeof("abc"),(long)1,(sizeof("abc"))*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_short,&(s),(long)1,(long)1,sizeof(short),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_bool,&(b),(long)1,(long)1,sizeof(bool),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_float,&(f),(long)1,(long)1,sizeof(float),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_long,&(l),(long)1,(long)1,sizeof(long),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_double,&(dbl),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_decimal,&(dec),(long)1,(long)1,sizeof(decimal),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_date,&(dat),(long)1,(long)1,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(tmp),(long)1,(long)1,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 78 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 78 "rnull.pgc"
+
+
+ test_null(CCHARTYPE, (char *) c);
+ test_null(CSHORTTYPE, (char *) &s);
+ test_null(CINTTYPE, (char *) &i);
+ test_null(CBOOLTYPE, (char *) &b);
+ test_null(CFLOATTYPE, (char *) &f);
+ test_null(CLONGTYPE, (char *) &l);
+ test_null(CDOUBLETYPE, (char *) &dbl);
+ test_null(CDECIMALTYPE, (char *) &dec);
+ test_null(CDATETYPE, (char *) &dat);
+ test_null(CDTIMETYPE, (char *) &tmp);
+
+ { ECPGdo(__LINE__, 1, 0, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT);
+#line 91 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 91 "rnull.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 92 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 92 "rnull.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 94 "rnull.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 94 "rnull.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-rnull.stderr b/src/interfaces/ecpg/test/expected/compat_informix-rnull.stderr
new file mode 100644
index 0000000..dd3d8b7
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-rnull.stderr
@@ -0,0 +1,124 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: query: create table test ( id int , c char ( 10 ) , s smallint , i int , b bool , f float , l bigint , dbl double precision , dec decimal , dat date , tmp timestamptz ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 31: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 34: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: insert into test ( id , c , s , i , b , f , l , dbl ) values ( 1 , $1 , $2 , $3 , $4 , $5 , $6 , $7 ); with 7 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 1 = abc
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 2 = 17
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 3 = -74874
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 4 = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 5 = 3.71000003814697
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 6 = 487444
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 7 = 404.404
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 39: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: query: insert into test ( id , c , s , i , b , f , l , dbl , dec , dat , tmp ) values ( 2 , $1 , $2 , $3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 ); with 10 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 1 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 2 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 3 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 4 = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 5 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 6 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 7 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 8 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 9 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 52: parameter 10 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 52: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 55: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: query: select c , s , i , b , f , l , dbl , dec , dat , tmp from test where id = 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 59: correctly got 1 tuples with 10 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: abc offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: 17 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: -74874 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: 3.71000003814697 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: 487444 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: 404.404 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: query: select c , s , i , b , f , l , dbl , dec , dat , tmp from test where id = 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 76: correctly got 1 tuples with 10 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 91: query: drop table test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 91: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 91: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 92: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-rnull.stdout b/src/interfaces/ecpg/test/expected/compat_informix-rnull.stdout
new file mode 100644
index 0000000..ff2e405
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-rnull.stdout
@@ -0,0 +1,22 @@
+first select
+null: 0
+null: 0
+null: 0
+null: 0
+null: 0
+null: 0
+null: 0
+null: 1
+null: 1
+null: 1
+second select
+null: 1
+null: 1
+null: 1
+null: 0
+null: 1
+null: 1
+null: 1
+null: 1
+null: 1
+null: 1
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-sqlda.c b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.c
new file mode 100644
index 0000000..7e19319
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.c
@@ -0,0 +1,530 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* Needed for informix compatibility */
+#include <ecpg_informix.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "sqlda.pgc"
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 5 "sqlda.pgc"
+
+
+
+#line 1 "sqlda.h"
+#ifndef ECPG_SQLDA_H
+#define ECPG_SQLDA_H
+
+#ifdef _ECPG_INFORMIX_H
+
+#include "sqlda-compat.h"
+typedef struct sqlvar_compat sqlvar_t;
+typedef struct sqlda_compat sqlda_t;
+
+#else
+
+#include "sqlda-native.h"
+typedef struct sqlvar_struct sqlvar_t;
+typedef struct sqlda_struct sqlda_t;
+
+#endif
+
+#endif /* ECPG_SQLDA_H */
+
+#line 7 "sqlda.pgc"
+
+
+#line 1 "sqltypes.h"
+#ifndef ECPG_SQLTYPES_H
+#define ECPG_SQLTYPES_H
+
+#include <limits.h>
+
+#define CCHARTYPE ECPGt_char
+#define CSHORTTYPE ECPGt_short
+#define CINTTYPE ECPGt_int
+#define CLONGTYPE ECPGt_long
+#define CFLOATTYPE ECPGt_float
+#define CDOUBLETYPE ECPGt_double
+#define CDECIMALTYPE ECPGt_decimal
+#define CFIXCHARTYPE 108
+#define CSTRINGTYPE ECPGt_char
+#define CDATETYPE ECPGt_date
+#define CMONEYTYPE 111
+#define CDTIMETYPE ECPGt_timestamp
+#define CLOCATORTYPE 113
+#define CVCHARTYPE ECPGt_varchar
+#define CINVTYPE 115
+#define CFILETYPE 116
+#define CINT8TYPE ECPGt_long_long
+#define CCOLLTYPE 118
+#define CLVCHARTYPE 119
+#define CFIXBINTYPE 120
+#define CVARBINTYPE 121
+#define CBOOLTYPE ECPGt_bool
+#define CROWTYPE 123
+#define CLVCHARPTRTYPE 124
+#define CTYPEMAX 25
+
+/*
+ * Values used in sqlda->sqlvar[i]->sqltype
+ */
+#define SQLCHAR ECPGt_char
+#define SQLSMINT ECPGt_short
+#define SQLINT ECPGt_int
+#define SQLFLOAT ECPGt_double
+#define SQLSMFLOAT ECPGt_float
+#define SQLDECIMAL ECPGt_decimal
+#define SQLSERIAL ECPGt_int
+#define SQLDATE ECPGt_date
+#define SQLDTIME ECPGt_timestamp
+#define SQLTEXT ECPGt_char
+#define SQLVCHAR ECPGt_char
+#define SQLINTERVAL ECPGt_interval
+#define SQLNCHAR ECPGt_char
+#define SQLNVCHAR ECPGt_char
+#ifdef HAVE_LONG_LONG_INT_64
+#define SQLINT8 ECPGt_long_long
+#define SQLSERIAL8 ECPGt_long_long
+#else
+#define SQLINT8 ECPGt_long
+#define SQLSERIAL8 ECPGt_long
+#endif
+
+#endif /* ndef ECPG_SQLTYPES_H */
+
+#line 8 "sqlda.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 10 "sqlda.pgc"
+
+
+/* These shouldn't be under DECLARE SECTION */
+sqlda_t *inp_sqlda, *outp_sqlda;
+
+static void
+dump_sqlda(sqlda_t *sqlda)
+{
+ int i;
+
+ if (sqlda == NULL)
+ {
+ printf("dump_sqlda called with NULL sqlda\n");
+ return;
+ }
+
+ for (i = 0; i < sqlda->sqld; i++)
+ {
+ if (sqlda->sqlvar[i].sqlind && *(sqlda->sqlvar[i].sqlind) == -1)
+ printf("name sqlda descriptor: '%s' value NULL'\n", sqlda->sqlvar[i].sqlname);
+ else
+ switch (sqlda->sqlvar[i].sqltype)
+ {
+ case SQLCHAR:
+ printf("name sqlda descriptor: '%s' value '%s'\n", sqlda->sqlvar[i].sqlname, sqlda->sqlvar[i].sqldata);
+ break;
+ case SQLINT:
+ printf("name sqlda descriptor: '%s' value %d\n", sqlda->sqlvar[i].sqlname, *(int *)sqlda->sqlvar[i].sqldata);
+ break;
+ case SQLFLOAT:
+ printf("name sqlda descriptor: '%s' value %f\n", sqlda->sqlvar[i].sqlname, *(double *)sqlda->sqlvar[i].sqldata);
+ break;
+ case SQLDECIMAL:
+ {
+ char val[64];
+ dectoasc((decimal *)sqlda->sqlvar[i].sqldata, val, 64, -1);
+ printf("name sqlda descriptor: '%s' value DECIMAL '%s'\n", sqlda->sqlvar[i].sqlname, val);
+ break;
+ }
+ }
+ }
+}
+
+int
+main (void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+#line 57 "sqlda.pgc"
+ char * stmt1 = "SELECT * FROM t1" ;
+
+#line 58 "sqlda.pgc"
+ char * stmt2 = "SELECT * FROM t1 WHERE id = ?" ;
+
+#line 59 "sqlda.pgc"
+ int rec ;
+
+#line 60 "sqlda.pgc"
+ int id ;
+/* exec sql end declare section */
+#line 61 "sqlda.pgc"
+
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 1, "ecpg1_regression" , NULL, NULL , "regress1", 0);
+#line 68 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 68 "sqlda.pgc"
+
+
+ strcpy(msg, "set");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
+#line 71 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 71 "sqlda.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "create table t1 ( id integer , t text , d1 numeric , d2 float8 , c char ( 10 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 79 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 79 "sqlda.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 4 , 'd' , 4.0 , 4 , 'd' )", ECPGt_EOIT, ECPGt_EORT);
+#line 85 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 85 "sqlda.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 88 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 88 "sqlda.pgc"
+
+
+ /* SQLDA test for getting all records from a table */
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id1", stmt1);
+#line 95 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 95 "sqlda.pgc"
+
+
+ strcpy(msg, "declare");
+ /* declare mycur1 cursor for $1 */
+#line 98 "sqlda.pgc"
+
+
+ strcpy(msg, "open");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "declare mycur1 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id1", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 101 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 101 "sqlda.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 103 "sqlda.pgc"
+
+
+ rec = 0;
+ while (1)
+ {
+ strcpy(msg, "fetch");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "fetch 1 from mycur1", ECPGt_EOIT,
+ ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 109 "sqlda.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 109 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 109 "sqlda.pgc"
+
+
+ printf("FETCH RECORD %d\n", ++rec);
+ dump_sqlda(outp_sqlda);
+ }
+
+ /* exec sql whenever not found continue ; */
+#line 115 "sqlda.pgc"
+
+
+ strcpy(msg, "close");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "close mycur1", ECPGt_EOIT, ECPGt_EORT);
+#line 118 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 118 "sqlda.pgc"
+
+
+ strcpy(msg, "deallocate");
+ { ECPGdeallocate(__LINE__, 1, NULL, "st_id1");
+#line 121 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 121 "sqlda.pgc"
+
+
+ free(outp_sqlda);
+
+ /* SQLDA test for getting all records from a table
+ using the Informix-specific FETCH ... USING DESCRIPTOR
+ */
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id2", stmt1);
+#line 132 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 132 "sqlda.pgc"
+
+
+ strcpy(msg, "declare");
+ /* declare mycur2 cursor for $1 */
+#line 135 "sqlda.pgc"
+
+
+ strcpy(msg, "open");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "declare mycur2 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id2", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 138 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 138 "sqlda.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 140 "sqlda.pgc"
+
+
+ rec = 0;
+ while (1)
+ {
+ strcpy(msg, "fetch");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "fetch from mycur2", ECPGt_EOIT,
+ ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 146 "sqlda.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 146 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 146 "sqlda.pgc"
+
+
+ printf("FETCH RECORD %d\n", ++rec);
+ dump_sqlda(outp_sqlda);
+ }
+
+ /* exec sql whenever not found continue ; */
+#line 152 "sqlda.pgc"
+
+
+ strcpy(msg, "close");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "close mycur2", ECPGt_EOIT, ECPGt_EORT);
+#line 155 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 155 "sqlda.pgc"
+
+
+ strcpy(msg, "deallocate");
+ { ECPGdeallocate(__LINE__, 1, NULL, "st_id2");
+#line 158 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 158 "sqlda.pgc"
+
+
+ free(outp_sqlda);
+
+ /* SQLDA test for getting one record using an input descriptor */
+
+ /* Input sqlda has to be built manually */
+ inp_sqlda = (sqlda_t *)malloc(sizeof(sqlda_t));
+ memset(inp_sqlda, 0, sizeof(sqlda_t));
+ inp_sqlda->sqld = 1;
+ inp_sqlda->sqlvar = malloc(sizeof(sqlvar_t));
+ memset(inp_sqlda->sqlvar, 0, sizeof(sqlvar_t));
+
+ inp_sqlda->sqlvar[0].sqltype = SQLINT;
+ inp_sqlda->sqlvar[0].sqldata = (char *)&id;
+
+ printf("EXECUTE RECORD 4\n");
+
+ id = 4;
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id3", stmt2);
+#line 181 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 181 "sqlda.pgc"
+
+
+ strcpy(msg, "execute");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_execute, "st_id3",
+ ECPGt_sqlda, &inp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 184 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 184 "sqlda.pgc"
+
+
+ dump_sqlda(outp_sqlda);
+
+ strcpy(msg, "deallocate");
+ { ECPGdeallocate(__LINE__, 1, NULL, "st_id3");
+#line 189 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 189 "sqlda.pgc"
+
+
+ free(inp_sqlda->sqlvar);
+ free(inp_sqlda);
+ free(outp_sqlda);
+
+ /* SQLDA test for getting one record using an input descriptor
+ * on a named connection
+ */
+
+ { ECPGconnect(__LINE__, 1, "ecpg1_regression" , NULL, NULL , "con2", 0);
+#line 199 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 199 "sqlda.pgc"
+
+
+ /* Input sqlda has to be built manually */
+ inp_sqlda = (sqlda_t *)malloc(sizeof(sqlda_t));
+ memset(inp_sqlda, 0, sizeof(sqlda_t));
+ inp_sqlda->sqld = 1;
+ inp_sqlda->sqlvar = malloc(sizeof(sqlvar_t));
+ memset(inp_sqlda->sqlvar, 0, sizeof(sqlvar_t));
+
+ inp_sqlda->sqlvar[0].sqltype = SQLINT;
+ inp_sqlda->sqlvar[0].sqldata = (char *)&id;
+
+ printf("EXECUTE RECORD 4\n");
+
+ id = 4;
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, "con2", 0, "st_id4", stmt2);
+#line 218 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 218 "sqlda.pgc"
+
+
+ strcpy(msg, "execute");
+ { ECPGdo(__LINE__, 1, 1, "con2", 0, ECPGst_execute, "st_id4",
+ ECPGt_sqlda, &inp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 221 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 221 "sqlda.pgc"
+
+
+ dump_sqlda(outp_sqlda);
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, "con2", "commit");
+#line 226 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 226 "sqlda.pgc"
+
+
+ strcpy(msg, "deallocate");
+ { ECPGdeallocate(__LINE__, 1, NULL, "st_id4");
+#line 229 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 229 "sqlda.pgc"
+
+
+ free(inp_sqlda->sqlvar);
+ free(inp_sqlda);
+ free(outp_sqlda);
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "con2");
+#line 236 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 236 "sqlda.pgc"
+
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "drop table t1", ECPGt_EOIT, ECPGt_EORT);
+#line 241 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 241 "sqlda.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 244 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 244 "sqlda.pgc"
+
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 247 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 247 "sqlda.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr
new file mode 100644
index 0000000..51cb46b
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr
@@ -0,0 +1,340 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 71: query: set datestyle to iso; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 71: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 71: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: create table t1 ( id integer , t text , d1 numeric , d2 float8 , c char ( 10 ) ); with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 82: query: insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 4 , 'd' , 4.0 , 4 , 'd' ); with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 82: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 82: OK: INSERT 0 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 88: action "commit"; connection "regress1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 95: name st_id1; query: "SELECT * FROM t1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 101: query: declare mycur1 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 101: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 101: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 109 sqld = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: 1.0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: putting result (1 tuple 5 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 109 sqld = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 1 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 2 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 3 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 4 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: putting result (1 tuple 5 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 109 sqld = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: 4.0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 109 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 109: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: putting result (1 tuple 5 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: correctly got 0 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 109: no data found on line 109
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 118: query: close mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 118: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 118: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 121: name st_id1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 132: name st_id2; query: "SELECT * FROM t1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 138: query: declare mycur2 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 138: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 138: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 146: query: fetch from mycur2; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 146: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 146 sqld = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: 1.0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: putting result (1 tuple 5 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 146: query: fetch from mycur2; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 146: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 146 sqld = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 1 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 2 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 3 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 4 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: putting result (1 tuple 5 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 146: query: fetch from mycur2; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 146: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 146 sqld = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: 4.0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 146 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 146: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: putting result (1 tuple 5 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 146: query: fetch from mycur2; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 146: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 146: correctly got 0 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 146: no data found on line 146
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 155: query: close mycur2; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 155: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 155: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 158: name st_id2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 181: name st_id3; query: "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 184: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 184: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 184: parameter 1 = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 184: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 184 sqld = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 184: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 184 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 184: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 184 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 184: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 184 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 184: RESULT: 4.0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 184 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 184: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 184 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 184: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 184: putting result (1 tuple 5 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 189: name st_id3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 218: name st_id4; query: "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 221: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 221: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 221: parameter 1 = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 221: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_compat_sqlda on line 221 sqld = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 221: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 221 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 221: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 221 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 221: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 221 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 221: RESULT: 4.0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 221 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 221: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_compat_sqlda on line 221 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 221: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 221: putting result (1 tuple 5 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 226: action "commit"; connection "con2"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 229: name st_id4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection con2 closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 241: query: drop table t1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 241: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 241: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 244: action "commit"; connection "regress1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection regress1 closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stdout b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stdout
new file mode 100644
index 0000000..68335df
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stdout
@@ -0,0 +1,48 @@
+FETCH RECORD 1
+name sqlda descriptor: 'id' value 1
+name sqlda descriptor: 't' value 'a'
+name sqlda descriptor: 'd1' value DECIMAL '1.0'
+name sqlda descriptor: 'd2' value 1.000000
+name sqlda descriptor: 'c' value 'a '
+FETCH RECORD 2
+name sqlda descriptor: 'id' value 2
+name sqlda descriptor: 't' value NULL'
+name sqlda descriptor: 'd1' value NULL'
+name sqlda descriptor: 'd2' value NULL'
+name sqlda descriptor: 'c' value NULL'
+FETCH RECORD 3
+name sqlda descriptor: 'id' value 4
+name sqlda descriptor: 't' value 'd'
+name sqlda descriptor: 'd1' value DECIMAL '4.0'
+name sqlda descriptor: 'd2' value 4.000000
+name sqlda descriptor: 'c' value 'd '
+FETCH RECORD 1
+name sqlda descriptor: 'id' value 1
+name sqlda descriptor: 't' value 'a'
+name sqlda descriptor: 'd1' value DECIMAL '1.0'
+name sqlda descriptor: 'd2' value 1.000000
+name sqlda descriptor: 'c' value 'a '
+FETCH RECORD 2
+name sqlda descriptor: 'id' value 2
+name sqlda descriptor: 't' value NULL'
+name sqlda descriptor: 'd1' value NULL'
+name sqlda descriptor: 'd2' value NULL'
+name sqlda descriptor: 'c' value NULL'
+FETCH RECORD 3
+name sqlda descriptor: 'id' value 4
+name sqlda descriptor: 't' value 'd'
+name sqlda descriptor: 'd1' value DECIMAL '4.0'
+name sqlda descriptor: 'd2' value 4.000000
+name sqlda descriptor: 'c' value 'd '
+EXECUTE RECORD 4
+name sqlda descriptor: 'id' value 4
+name sqlda descriptor: 't' value 'd'
+name sqlda descriptor: 'd1' value DECIMAL '4.0'
+name sqlda descriptor: 'd2' value 4.000000
+name sqlda descriptor: 'c' value 'd '
+EXECUTE RECORD 4
+name sqlda descriptor: 'id' value 4
+name sqlda descriptor: 't' value 'd'
+name sqlda descriptor: 'd1' value DECIMAL '4.0'
+name sqlda descriptor: 'd2' value 4.000000
+name sqlda descriptor: 'c' value 'd '
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-test_informix.c b/src/interfaces/ecpg/test/expected/compat_informix-test_informix.c
new file mode 100644
index 0000000..cc65049
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-test_informix.c
@@ -0,0 +1,259 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* Needed for informix compatibility */
+#include <ecpg_informix.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "test_informix.pgc"
+#include "sqltypes.h"
+#include <stdlib.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "test_informix.pgc"
+
+
+
+static void openit(void);
+static void dosqlprint(void) {
+ printf("doSQLprint: Error: %s\n", sqlca.sqlerrm.sqlerrmc);
+}
+
+int main(void)
+{
+
+#line 14 "test_informix.pgc"
+ int i = 14 , loopcount ;
+
+#line 14 "test_informix.pgc"
+
+
+#line 15 "test_informix.pgc"
+ decimal j , m , n ;
+
+#line 15 "test_informix.pgc"
+
+
+#line 16 "test_informix.pgc"
+ char c [ 10 ] ;
+
+#line 16 "test_informix.pgc"
+
+
+ ECPGdebug(1, stderr);
+ /* exec sql whenever sqlerror do dosqlprint ( ) ; */
+#line 19 "test_informix.pgc"
+
+
+ { ECPGconnect(__LINE__, 1, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 21 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 21 "test_informix.pgc"
+
+ if (sqlca.sqlcode != 0) exit(1);
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "create table test ( i int primary key , j int , c text )", ECPGt_EOIT, ECPGt_EORT);
+#line 24 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 24 "test_informix.pgc"
+
+
+ /* this INSERT works */
+ rsetnull(CDECIMALTYPE, (char *)&j);
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into test ( i , j , c ) values ( 7 , $1 , 'test ' )",
+ ECPGt_decimal,&(j),(long)1,(long)1,sizeof(decimal),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 28 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 28 "test_informix.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 29 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 29 "test_informix.pgc"
+
+
+ /* this INSERT should fail because i is a unique column */
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into test ( i , j , c ) values ( 7 , 12 , 'a' )", ECPGt_EOIT, ECPGt_EORT);
+#line 32 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 32 "test_informix.pgc"
+
+ printf("INSERT: %ld=%s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
+ if (sqlca.sqlcode != 0) { ECPGtrans(__LINE__, NULL, "rollback");
+#line 34 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 34 "test_informix.pgc"
+
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into test ( i , j , c ) values ( $1 , 1 , 'a ' )",
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 36 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 36 "test_informix.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 37 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 37 "test_informix.pgc"
+
+
+ /* this will fail (more than one row in subquery) */
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select i from test where j = ( select j from test )", ECPGt_EOIT, ECPGt_EORT);
+#line 40 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 40 "test_informix.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 41 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 41 "test_informix.pgc"
+
+
+ /* this however should be ok */
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select i from test where j = ( select j from test order by i limit 1 )", ECPGt_EOIT, ECPGt_EORT);
+#line 44 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 44 "test_informix.pgc"
+
+ printf("SELECT: %ld=%s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
+ if (sqlca.sqlcode != 0) { ECPGtrans(__LINE__, NULL, "rollback");
+#line 46 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 46 "test_informix.pgc"
+
+
+ sqlca.sqlcode = 100;
+ ECPGset_var( 0, &( i ), __LINE__);\
+ /* declare c cursor for select * from test where i <= $1 */
+#line 49 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );
+#line 49 "test_informix.pgc"
+
+#line 49 "test_informix.pgc"
+
+ printf ("%ld\n", sqlca.sqlcode);
+ openit();
+
+ deccvint(0, &j);
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "fetch forward c", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_decimal,&(j),(long)1,(long)1,sizeof(decimal),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_string,(c),(long)10,(long)1,(10)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 57 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 57 "test_informix.pgc"
+
+ if (sqlca.sqlcode == 100) break;
+
+ if (risnull(CDECIMALTYPE, (char *)&j))
+ printf("%d NULL\n", i);
+ else
+ {
+ int a;
+
+ dectoint(&j, &a);
+ printf("%d %d \"%s\"\n", i, a, c);
+ }
+ }
+
+ deccvint(7, &j);
+ deccvint(14, &m);
+ decadd(&j, &m, &n);
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "delete from test where i = $1 :: decimal",
+ ECPGt_decimal,&(n),(long)1,(long)1,sizeof(decimal),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 74 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 74 "test_informix.pgc"
+
+ printf("DELETE: %ld\n", sqlca.sqlcode);
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select 1 from test where i = 14", ECPGt_EOIT, ECPGt_EORT);
+#line 77 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 77 "test_informix.pgc"
+
+ printf("Exists: %ld\n", sqlca.sqlcode);
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select 1 from test where i = 147", ECPGt_EOIT, ECPGt_EORT);
+#line 80 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 80 "test_informix.pgc"
+
+ printf("Does not exist: %ld\n", sqlca.sqlcode);
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 83 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 83 "test_informix.pgc"
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT);
+#line 84 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 84 "test_informix.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 85 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 85 "test_informix.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 87 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 87 "test_informix.pgc"
+
+
+ return 0;
+}
+
+static void openit(void)
+{
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "declare c cursor for select * from test where i <= $1 ",
+ ECPGt_int,&(*( int *)(ECPGget_var( 0))),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 94 "test_informix.pgc"
+
+if (sqlca.sqlcode < 0) dosqlprint ( );}
+#line 94 "test_informix.pgc"
+
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-test_informix.stderr b/src/interfaces/ecpg/test/expected/compat_informix-test_informix.stderr
new file mode 100644
index 0000000..d5e8712
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-test_informix.stderr
@@ -0,0 +1,133 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: create table test ( i int primary key , j int , c text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: insert into test ( i , j , c ) values ( 7 , $1 , 'test ' ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 28: parameter 1 = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 28: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 29: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: insert into test ( i , j , c ) values ( 7 , 12 , 'a' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_check_PQresult on line 32: bad response - ERROR: duplicate key value violates unique constraint "test_pkey"
+DETAIL: Key (i)=(7) already exists.
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlstate 23505 (sqlcode -239): duplicate key value violates unique constraint "test_pkey" on line 32
+[NO_PID]: sqlca: code: -239, state: 23505
+[NO_PID]: ECPGtrans on line 34: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: insert into test ( i , j , c ) values ( $1 , 1 , 'a ' ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 1 = 14
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 37: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: query: select i from test where j = ( select j from test ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_check_PQresult on line 40: bad response - ERROR: more than one row returned by a subquery used as an expression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlstate 21000 (sqlcode -284): more than one row returned by a subquery used as an expression on line 40
+[NO_PID]: sqlca: code: -284, state: 21000
+[NO_PID]: ECPGtrans on line 41: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 44: query: select i from test where j = ( select j from test order by i limit 1 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 44: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 44: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 94: query: declare c cursor for select * from test where i <= $1 ; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 94: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 94: parameter 1 = 14
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 94: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: query: fetch forward c; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 57: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 57: RESULT: 7 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 57: RESULT: 0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 57: RESULT: test offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: query: fetch forward c; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 57: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 57: RESULT: 14 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 57: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 57: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: query: fetch forward c; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 57: correctly got 0 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 57: no data found on line 57
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 74: query: delete from test where i = $1 :: decimal; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 74: parameter 1 = 21.0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: OK: DELETE 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 74: no data found on line 74
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 77: query: select 1 from test where i = 14; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 77: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 77: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 80: query: select 1 from test where i = 147; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 80: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 80: correctly got 0 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 80: no data found on line 80
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ECPGtrans on line 83: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 84: query: drop table test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 84: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 84: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 85: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-test_informix.stdout b/src/interfaces/ecpg/test/expected/compat_informix-test_informix.stdout
new file mode 100644
index 0000000..454fd18
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-test_informix.stdout
@@ -0,0 +1,10 @@
+doSQLprint: Error: duplicate key value violates unique constraint "test_pkey" on line 32
+INSERT: -239=duplicate key value violates unique constraint "test_pkey" on line 32
+doSQLprint: Error: more than one row returned by a subquery used as an expression on line 40
+SELECT: 0=
+0
+7 0 "test"
+14 1 "a"
+DELETE: 100
+Exists: 0
+Does not exist: 100
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c b/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c
new file mode 100644
index 0000000..fc30e32
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c
@@ -0,0 +1,290 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* Needed for informix compatibility */
+#include <ecpg_informix.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "test_informix2.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include "sqltypes.h"
+
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 5 "test_informix2.pgc"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "test_informix2.pgc"
+
+
+
+/* Check SQLCODE, and produce a "standard error" if it's wrong! */
+static void sql_check(const char *fn, const char *caller, int ignore)
+{
+ char errorstring[255];
+
+ if (SQLCODE == ignore)
+ return;
+ else
+ {
+ if (SQLCODE != 0)
+ {
+
+ sprintf(errorstring, "**SQL error %ld doing '%s' in function '%s'. [%s]",
+ SQLCODE, caller, fn, sqlca.sqlerrm.sqlerrmc);
+ fprintf(stderr, "%s", errorstring);
+ printf("%s\n", errorstring);
+
+ /* attempt a ROLLBACK */
+ { ECPGtrans(__LINE__, NULL, "rollback");}
+#line 27 "test_informix2.pgc"
+
+
+ if (SQLCODE == 0)
+ {
+ sprintf(errorstring, "Rollback successful.\n");
+ } else {
+ sprintf(errorstring, "Rollback failed with code %ld.\n", SQLCODE);
+ }
+
+ fprintf(stderr, "%s", errorstring);
+ printf("%s\n", errorstring);
+
+ exit(1);
+ }
+ }
+}
+
+int main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+#line 47 "test_informix2.pgc"
+ int c ;
+
+#line 48 "test_informix2.pgc"
+ timestamp d ;
+
+#line 49 "test_informix2.pgc"
+ timestamp e ;
+
+#line 50 "test_informix2.pgc"
+ timestamp maxd ;
+
+#line 51 "test_informix2.pgc"
+ char dbname [ 30 ] ;
+/* exec sql end declare section */
+#line 52 "test_informix2.pgc"
+
+
+ interval *intvl;
+
+ /* exec sql whenever sqlerror stop ; */
+#line 56 "test_informix2.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ strcpy(dbname, "ecpg1_regression");
+ { ECPGconnect(__LINE__, 1, dbname , NULL, NULL , NULL, 0);
+#line 61 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 61 "test_informix2.pgc"
+
+ sql_check("main", "connect", 0);
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "set DateStyle to 'DMY'", ECPGt_EOIT, ECPGt_EORT);
+#line 64 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 64 "test_informix2.pgc"
+
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "create table history ( customerid integer , timestamp timestamp without time zone , action_taken char ( 5 ) , narrative varchar ( 100 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 66 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 66 "test_informix2.pgc"
+
+ sql_check("main", "create", 0);
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into history ( customerid , timestamp , action_taken , narrative ) values ( 1 , '2003-05-07 13:28:34 CEST' , 'test' , 'test' )", ECPGt_EOIT, ECPGt_EORT);
+#line 71 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 71 "test_informix2.pgc"
+
+ sql_check("main", "insert", 0);
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select max ( timestamp ) from history", ECPGt_EOIT,
+ ECPGt_timestamp,&(maxd),(long)1,(long)1,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 76 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 76 "test_informix2.pgc"
+
+ sql_check("main", "select max", 100);
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select customerid , timestamp from history where timestamp = $1 limit 1",
+ ECPGt_timestamp,&(maxd),(long)1,(long)1,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(c),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(d),(long)1,(long)1,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 83 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 83 "test_informix2.pgc"
+
+ sql_check("main", "select", 0);
+
+ printf("Read in customer %d\n", c);
+
+ intvl = PGTYPESinterval_from_asc("1 day 2 hours 24 minutes 65 seconds", NULL);
+ PGTYPEStimestamp_add_interval(&d, intvl, &e);
+ free(intvl);
+ c++;
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into history ( customerid , timestamp , action_taken , narrative ) values ( $1 , $2 , 'test' , 'test' )",
+ ECPGt_int,&(c),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(e),(long)1,(long)1,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 95 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 95 "test_informix2.pgc"
+
+ sql_check("main", "update", 0);
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 98 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 98 "test_informix2.pgc"
+
+
+ { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "drop table history", ECPGt_EOIT, ECPGt_EORT);
+#line 100 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 100 "test_informix2.pgc"
+
+ sql_check("main", "drop", 0);
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 103 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 103 "test_informix2.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 105 "test_informix2.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 105 "test_informix2.pgc"
+
+ sql_check("main", "disconnect", 0);
+
+ printf("All OK!\n");
+
+ exit(0);
+
+/*
+ Table "public.history"
+ Column | Type | Nullable
+--------------+-----------------------------+----------
+ customerid | integer | not null
+ timestamp | timestamp without time zone | not null
+ action_taken | character(5) | not null
+ narrative | character varying(100) |
+*/
+
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stderr b/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stderr
new file mode 100644
index 0000000..3e90319
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stderr
@@ -0,0 +1,64 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: query: set DateStyle to 'DMY'; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 64: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 66: query: create table history ( customerid integer , timestamp timestamp without time zone , action_taken char ( 5 ) , narrative varchar ( 100 ) ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 66: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 66: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 69: query: insert into history ( customerid , timestamp , action_taken , narrative ) values ( 1 , '2003-05-07 13:28:34 CEST' , 'test' , 'test' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 69: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 69: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: select max ( timestamp ) from history; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: Wed 07 May 13:28:34 2003 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 79: query: select customerid , timestamp from history where timestamp = $1 limit 1; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 79: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 79: parameter 1 = 2003-05-07 13:28:34
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 79: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 79: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 79: RESULT: Wed 07 May 13:28:34 2003 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 93: query: insert into history ( customerid , timestamp , action_taken , narrative ) values ( $1 , $2 , 'test' , 'test' ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 93: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 93: parameter 1 = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 93: parameter 2 = 2003-05-08 15:53:39
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 93: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 98: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 100: query: drop table history; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 100: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 100: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 103: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stdout b/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stdout
new file mode 100644
index 0000000..ce3f426
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stdout
@@ -0,0 +1,2 @@
+Read in customer 1
+All OK!
diff --git a/src/interfaces/ecpg/test/expected/compat_oracle-char_array.c b/src/interfaces/ecpg/test/expected/compat_oracle-char_array.c
new file mode 100644
index 0000000..16db663
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_oracle-char_array.c
@@ -0,0 +1,327 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "char_array.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <pgtypes_numeric.h>
+
+
+#line 1 "sqlda.h"
+#ifndef ECPG_SQLDA_H
+#define ECPG_SQLDA_H
+
+#ifdef _ECPG_INFORMIX_H
+
+#include "sqlda-compat.h"
+typedef struct sqlvar_compat sqlvar_t;
+typedef struct sqlda_compat sqlda_t;
+
+#else
+
+#include "sqlda-native.h"
+typedef struct sqlvar_struct sqlvar_t;
+typedef struct sqlda_struct sqlda_t;
+
+#endif
+
+#endif /* ECPG_SQLDA_H */
+
+#line 7 "char_array.pgc"
+
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 9 "char_array.pgc"
+
+
+static void warn(void)
+{
+ fprintf(stderr, "Warning: At least one column was truncated\n");
+}
+
+/* Compatible handling of char array to retrieve varchar field to char array
+ should be fixed-length, blank-padded, then null-terminated.
+ Conforms to the ANSI Fixed Character type. */
+
+int main() {
+
+ /* exec sql whenever sql_warning do warn ( ) ; */
+#line 22 "char_array.pgc"
+
+ /* exec sql whenever sqlerror stop ; */
+#line 23 "char_array.pgc"
+
+
+ const char *ppppp = "XXXXX";
+ int loopcount;
+ sqlda_t *sqlda = NULL;
+
+ /* exec sql begin declare section */
+
+
+
+
+
+#line 30 "char_array.pgc"
+ char shortstr [ 5 ] ;
+
+#line 31 "char_array.pgc"
+ char bigstr [ 11 ] ;
+
+#line 32 "char_array.pgc"
+ short shstr_ind = 0 ;
+
+#line 33 "char_array.pgc"
+ short bigstr_ind = 0 ;
+/* exec sql end declare section */
+#line 34 "char_array.pgc"
+
+
+ ECPGdebug(1, stderr);
+ { ECPGconnect(__LINE__, 3, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 37 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 37 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 37 "char_array.pgc"
+
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "create table strdbase ( strval varchar ( 10 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 39 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 39 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 39 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "insert into strdbase values ( '' )", ECPGt_EOIT, ECPGt_EORT);
+#line 40 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 40 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 40 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "insert into strdbase values ( 'AB' )", ECPGt_EOIT, ECPGt_EORT);
+#line 41 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 41 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 41 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "insert into strdbase values ( 'ABCD' )", ECPGt_EOIT, ECPGt_EORT);
+#line 42 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 42 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 42 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "insert into strdbase values ( 'ABCDE' )", ECPGt_EOIT, ECPGt_EORT);
+#line 43 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 43 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 43 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "insert into strdbase values ( 'ABCDEF' )", ECPGt_EOIT, ECPGt_EORT);
+#line 44 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 44 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 44 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "insert into strdbase values ( 'ABCDEFGHIJ' )", ECPGt_EOIT, ECPGt_EORT);
+#line 45 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 45 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 45 "char_array.pgc"
+
+
+ /* declare C cursor for select strval , strval from strdbase */
+#line 47 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "declare C cursor for select strval , strval from strdbase", ECPGt_EOIT, ECPGt_EORT);
+#line 48 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 48 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 48 "char_array.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 50 "char_array.pgc"
+
+
+ printf("Full Str. : Short Ind.\n");
+ for (loopcount = 0; loopcount < 100; loopcount++) {
+ strncpy(shortstr, ppppp, sizeof shortstr);
+ memset(bigstr, 0, sizeof bigstr);
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "fetch C", ECPGt_EOIT,
+ ECPGt_char,(bigstr),(long)11,(long)1,(11)*sizeof(char),
+ ECPGt_short,&(bigstr_ind),(long)1,(long)1,sizeof(short),
+ ECPGt_char,(shortstr),(long)5,(long)1,(5)*sizeof(char),
+ ECPGt_short,&(shstr_ind),(long)1,(long)1,sizeof(short), ECPGt_EORT);
+#line 56 "char_array.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 56 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 56 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 56 "char_array.pgc"
+
+ printf("\"%s\": \"%s\" %d\n", bigstr, shortstr, shstr_ind);
+ }
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "close C", ECPGt_EOIT, ECPGt_EORT);
+#line 60 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 60 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 60 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "drop table strdbase", ECPGt_EOIT, ECPGt_EORT);
+#line 61 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 61 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 61 "char_array.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit work");
+#line 62 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 62 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 62 "char_array.pgc"
+
+
+ /* SQLDA handling */
+ /* exec sql whenever sql_warning sqlprint ; */
+#line 65 "char_array.pgc"
+
+ /* exec sql whenever not found stop ; */
+#line 66 "char_array.pgc"
+
+ { ECPGprepare(__LINE__, NULL, 0, "stmt1", "SELECT 123::numeric(3,0), 't'::varchar(2)");
+#line 67 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 67 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 67 "char_array.pgc"
+
+ /* declare cur1 cursor for $1 */
+#line 68 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "declare cur1 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "stmt1", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 69 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 69 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 69 "char_array.pgc"
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "fetch next from cur1", ECPGt_EOIT,
+ ECPGt_sqlda, &sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 70 "char_array.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) exit (1);
+#line 70 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 70 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 70 "char_array.pgc"
+
+
+ printf("\n-----------------\ntype : data\n");
+ for (int i = 0 ; i < sqlda->sqld ; i++)
+ {
+ sqlvar_t v = sqlda->sqlvar[i];
+ char *sqldata = v.sqldata;
+
+ if (v.sqltype == ECPGt_numeric)
+ sqldata =
+ PGTYPESnumeric_to_asc((numeric*) sqlda->sqlvar[i].sqldata, -1);
+
+ printf("%-8s: \"%s\"\n", v.sqlname.data, sqldata);
+ }
+
+ { ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "close cur1", ECPGt_EOIT, ECPGt_EORT);
+#line 85 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 85 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 85 "char_array.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit work");
+#line 86 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 86 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 86 "char_array.pgc"
+
+
+ printf("\nGOOD-BYE!!\n\n");
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 90 "char_array.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 90 "char_array.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 90 "char_array.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/compat_oracle-char_array.stderr b/src/interfaces/ecpg/test/expected/compat_oracle-char_array.stderr
new file mode 100644
index 0000000..24b9715
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_oracle-char_array.stderr
@@ -0,0 +1,175 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: create table strdbase ( strval varchar ( 10 ) ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 39: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: query: insert into strdbase values ( '' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 40: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: query: insert into strdbase values ( 'AB' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: query: insert into strdbase values ( 'ABCD' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 43: query: insert into strdbase values ( 'ABCDE' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 43: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 43: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 44: query: insert into strdbase values ( 'ABCDEF' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 44: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 44: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: query: insert into strdbase values ( 'ABCDEFGHIJ' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 45: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: declare C cursor for select strval , strval from strdbase; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: AB offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: AB offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: ABCD offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: ABCD offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: ABCDE offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: ABCDE offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+Warning: At least one column was truncated
+[NO_PID]: ecpg_execute on line 56: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: ABCDEF offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: ABCDEF offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+Warning: At least one column was truncated
+[NO_PID]: ecpg_execute on line 56: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: ABCDEFGHIJ offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: ABCDEFGHIJ offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+Warning: At least one column was truncated
+[NO_PID]: ecpg_execute on line 56: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: correctly got 0 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 56: no data found on line 56
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 60: query: close C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 60: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: query: drop table strdbase; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 61: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 62: action "commit work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 67: name stmt1; query: "SELECT 123::numeric(3,0), 't'::varchar(2)"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 69: query: declare cur1 cursor for SELECT 123::numeric(3,0), 't'::varchar(2); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 69: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 69: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 70: query: fetch next from cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 70: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 70: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 70 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 70: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 70 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 70 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 70: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 70: putting result (1 tuple 2 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: query: close cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 85: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 86: action "commit work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name stmt1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/compat_oracle-char_array.stdout b/src/interfaces/ecpg/test/expected/compat_oracle-char_array.stdout
new file mode 100644
index 0000000..3dc3e54
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/compat_oracle-char_array.stdout
@@ -0,0 +1,15 @@
+Full Str. : Short Ind.
+" ": " " -1
+"AB ": "AB " 0
+"ABCD ": "ABCD" 0
+"ABCDE ": "ABCD" 5
+"ABCDEF ": "ABCD" 6
+"ABCDEFGHIJ": "ABCD" 10
+
+-----------------
+type : data
+numeric : "123"
+varchar : "t"
+
+GOOD-BYE!!
+
diff --git a/src/interfaces/ecpg/test/expected/connect-test1-minGW32.stderr b/src/interfaces/ecpg/test/expected/connect-test1-minGW32.stderr
new file mode 100644
index 0000000..c5b5248
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test1-minGW32.stderr
@@ -0,0 +1,73 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: query: alter user regress_ecpg_user1 encrypted password 'connectpw'; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 23: OK: ALTER ROLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on localhost port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database <DEFAULT> on localhost port <DEFAULT> for user regress_ecpg_user2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection to server failed: FATAL: database "regress_ecpg_user2" does not exist
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 29: could not connect to database "<DEFAULT>" on line 29
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: raising sqlcode -220 on line 30: connection "main" does not exist on line 30
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on localhost port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database <DEFAULT> on localhost port <DEFAULT> for user regress_ecpg_user2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection to server failed: FATAL: database "regress_ecpg_user2" does not exist
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection (null) closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 38: could not connect to database "<DEFAULT>" on line 38
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: raising sqlcode -220 on line 39: connection "CURRENT" does not exist on line 39
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on localhost port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> with options connect_timeout=180 for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database nonexistent on localhost port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection to server failed: FATAL: database "nonexistent" does not exist
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection nonexistent closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 53: could not connect to database "nonexistent" on line 53
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: raising sqlcode -220 on line 54: connection "CURRENT" does not exist on line 54
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on localhost port <REGRESSION_PORT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection to server failed: Connection refused (0x0000274D/10061)
+ Is the server running on that host and accepting TCP/IP connections?
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 57: could not connect to database "ecpg2_regression" on line 57
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/connect-test1.c b/src/interfaces/ecpg/test/expected/connect-test1.c
new file mode 100644
index 0000000..ffd24e2
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test1.c
@@ -0,0 +1,124 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "test1.pgc"
+/*
+ * this file tests all sorts of connecting to one single database.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+/* do not include regression.h */
+
+int
+main(void)
+{
+/* exec sql begin declare section */
+
+
+
+#line 16 "test1.pgc"
+ char db [ 200 ] ;
+
+#line 17 "test1.pgc"
+ char pw [ 200 ] ;
+/* exec sql end declare section */
+#line 18 "test1.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "main", 0); }
+#line 22 "test1.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "alter user regress_ecpg_user1 encrypted password 'connectpw'", ECPGt_EOIT, ECPGt_EORT);}
+#line 23 "test1.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 24 "test1.pgc"
+ /* <-- "main" not specified */
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression@localhost" , NULL, NULL , "main", 0); }
+#line 26 "test1.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 27 "test1.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "@localhost" , "regress_ecpg_user2" , NULL , "main", 0); }
+#line 29 "test1.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 30 "test1.pgc"
+
+
+ /* exec sql connect to :@TEMP_PORT@ as main user regress_ecpg_user2;
+ exec sql disconnect main; */
+
+ { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost/ecpg2_regression" , "regress_ecpg_user1" , "connectpw" , NULL, 0); }
+#line 35 "test1.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 36 "test1.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost/" , "regress_ecpg_user2" , NULL , NULL, 0); }
+#line 38 "test1.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 39 "test1.pgc"
+
+
+ strcpy(pw, "connectpw");
+ strcpy(db, "tcp:postgresql://localhost/ecpg2_regression");
+ { ECPGconnect(__LINE__, 0, db , "regress_ecpg_user1" , pw , NULL, 0); }
+#line 43 "test1.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 44 "test1.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost/ecpg2_regression" , "regress_ecpg_user1" , "connectpw" , NULL, 0); }
+#line 46 "test1.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 47 "test1.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost/ecpg2_regression?connect_timeout=180" , "regress_ecpg_user1" , NULL , NULL, 0); }
+#line 49 "test1.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 50 "test1.pgc"
+
+
+ /* wrong db */
+ { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost/nonexistent" , "regress_ecpg_user1" , "connectpw" , NULL, 0); }
+#line 53 "test1.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 54 "test1.pgc"
+
+
+ /* wrong port */
+ { ECPGconnect(__LINE__, 0, "tcp:postgresql://127.0.0.1:20/ecpg2_regression" , "regress_ecpg_user1" , "connectpw" , NULL, 0); }
+#line 57 "test1.pgc"
+
+ /* no disconnect necessary */
+
+ /* wrong password */
+ { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost/ecpg2_regression" , "regress_ecpg_user1" , "wrongpw" , NULL, 0); }
+#line 61 "test1.pgc"
+
+ /* no disconnect necessary */
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/connect-test1.stderr b/src/interfaces/ecpg/test/expected/connect-test1.stderr
new file mode 100644
index 0000000..073951c
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test1.stderr
@@ -0,0 +1,73 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: query: alter user regress_ecpg_user1 encrypted password 'connectpw'; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 23: OK: ALTER ROLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on localhost port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database <DEFAULT> on localhost port <DEFAULT> for user regress_ecpg_user2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection to server failed: FATAL: database "regress_ecpg_user2" does not exist
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 29: could not connect to database "<DEFAULT>" on line 29
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: raising sqlcode -220 on line 30: connection "main" does not exist on line 30
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on localhost port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database <DEFAULT> on localhost port <DEFAULT> for user regress_ecpg_user2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection to server failed: FATAL: database "regress_ecpg_user2" does not exist
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection (null) closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 38: could not connect to database "<DEFAULT>" on line 38
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: raising sqlcode -220 on line 39: connection "CURRENT" does not exist on line 39
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on localhost port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> with options connect_timeout=180 for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database nonexistent on localhost port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection to server failed: FATAL: database "nonexistent" does not exist
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection nonexistent closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 53: could not connect to database "nonexistent" on line 53
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: raising sqlcode -220 on line 54: connection "CURRENT" does not exist on line 54
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on 127.0.0.1 port <REGRESSION_PORT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection to server failed: Connection refused
+ Is the server running on that host and accepting TCP/IP connections?
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg2_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 57: could not connect to database "ecpg2_regression" on line 57
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/connect-test1.stdout b/src/interfaces/ecpg/test/expected/connect-test1.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test1.stdout
diff --git a/src/interfaces/ecpg/test/expected/connect-test2.c b/src/interfaces/ecpg/test/expected/connect-test2.c
new file mode 100644
index 0000000..deb7f19
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test2.c
@@ -0,0 +1,104 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "test2.pgc"
+/*
+ * this file tests multiple connections to databases and switches
+ * between them.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 11 "test2.pgc"
+
+
+int
+main(void)
+{
+/* exec sql begin declare section */
+
+
+
+#line 17 "test2.pgc"
+ char id [ 200 ] ;
+
+#line 18 "test2.pgc"
+ char res [ 200 ] ;
+/* exec sql end declare section */
+#line 19 "test2.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ strcpy(id, "first");
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , id, 0); }
+#line 24 "test2.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "second", 0); }
+#line 25 "test2.pgc"
+
+
+ /* this selects from "second" which was opened last */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select current_database ( )", ECPGt_EOIT,
+ ECPGt_char,(res),(long)200,(long)1,(200)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 28 "test2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "first", 0, ECPGst_normal, "select current_database ( )", ECPGt_EOIT,
+ ECPGt_char,(res),(long)200,(long)1,(200)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 29 "test2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "second", 0, ECPGst_normal, "select current_database ( )", ECPGt_EOIT,
+ ECPGt_char,(res),(long)200,(long)1,(200)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 30 "test2.pgc"
+
+
+ { ECPGsetconn(__LINE__, "first");}
+#line 32 "test2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select current_database ( )", ECPGt_EOIT,
+ ECPGt_char,(res),(long)200,(long)1,(200)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 33 "test2.pgc"
+
+
+ /* this will disconnect from "first" */
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 36 "test2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select current_database ( )", ECPGt_EOIT,
+ ECPGt_char,(res),(long)200,(long)1,(200)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 37 "test2.pgc"
+
+
+ /* error here since "first" is already disconnected */
+ { ECPGdisconnect(__LINE__, id);}
+#line 40 "test2.pgc"
+
+
+ /* disconnect from "second" */
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 43 "test2.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/connect-test2.stderr b/src/interfaces/ecpg/test/expected/connect-test2.stderr
new file mode 100644
index 0000000..4c9c38b
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test2.stderr
@@ -0,0 +1,52 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: select current_database ( ); with 0 parameter(s) on connection second
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 28: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 28: RESULT: ecpg1_regression offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: query: select current_database ( ); with 0 parameter(s) on connection first
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 29: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 29: RESULT: ecpg2_regression offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: select current_database ( ); with 0 parameter(s) on connection second
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 30: RESULT: ecpg1_regression offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: query: select current_database ( ); with 0 parameter(s) on connection first
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 33: RESULT: ecpg2_regression offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection first closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: query: select current_database ( ); with 0 parameter(s) on connection second
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 37: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 37: RESULT: ecpg1_regression offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -220 on line 40: connection "first" does not exist on line 40
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ecpg_finish: connection second closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/connect-test2.stdout b/src/interfaces/ecpg/test/expected/connect-test2.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test2.stdout
diff --git a/src/interfaces/ecpg/test/expected/connect-test3.c b/src/interfaces/ecpg/test/expected/connect-test3.c
new file mode 100644
index 0000000..1a74a06
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test3.c
@@ -0,0 +1,106 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "test3.pgc"
+/*
+ * this file just tests the several possibilities you have for a disconnect
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 10 "test3.pgc"
+
+
+int
+main(void)
+{
+/* exec sql begin declare section */
+
+
+
+#line 16 "test3.pgc"
+ char id [ 200 ] ;
+
+#line 17 "test3.pgc"
+ char res [ 200 ] ;
+/* exec sql end declare section */
+#line 18 "test3.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ strcpy(id, "first");
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , id, 0); }
+#line 23 "test3.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "second", 0); }
+#line 24 "test3.pgc"
+
+
+ /* this selects from "second" which was opened last */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select current_database ( )", ECPGt_EOIT,
+ ECPGt_char,(res),(long)200,(long)1,(200)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 27 "test3.pgc"
+
+
+ /* will close "second" */
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 30 "test3.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select current_database ( )", ECPGt_EOIT,
+ ECPGt_char,(res),(long)200,(long)1,(200)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 31 "test3.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "second", 0); }
+#line 33 "test3.pgc"
+
+ /* will close "second" */
+ { ECPGdisconnect(__LINE__, "DEFAULT");}
+#line 35 "test3.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "second", 0); }
+#line 37 "test3.pgc"
+
+ { ECPGdisconnect(__LINE__, "ALL");}
+#line 38 "test3.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 40 "test3.pgc"
+
+ { ECPGdisconnect(__LINE__, "DEFAULT");}
+#line 41 "test3.pgc"
+
+ { ECPGdisconnect(__LINE__, "ALL");}
+#line 42 "test3.pgc"
+
+
+ /*
+ * exec sql disconnect;
+ * exec sql disconnect name;
+ *
+ * are used in other tests
+ */
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/connect-test3.stderr b/src/interfaces/ecpg/test/expected/connect-test3.stderr
new file mode 100644
index 0000000..af5d051
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test3.stderr
@@ -0,0 +1,38 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: query: select current_database ( ); with 0 parameter(s) on connection second
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 27: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 27: RESULT: ecpg1_regression offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection second closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: query: select current_database ( ); with 0 parameter(s) on connection first
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 31: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 31: RESULT: ecpg2_regression offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -220 on line 35: connection "DEFAULT" does not exist on line 35
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ECPGconnect: connection identifier second is already in use
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection second closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection first closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -220 on line 40: connection "CURRENT" does not exist on line 40
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: raising sqlcode -220 on line 41: connection "DEFAULT" does not exist on line 41
+[NO_PID]: sqlca: code: -220, state: 08003
diff --git a/src/interfaces/ecpg/test/expected/connect-test3.stdout b/src/interfaces/ecpg/test/expected/connect-test3.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test3.stdout
diff --git a/src/interfaces/ecpg/test/expected/connect-test4.c b/src/interfaces/ecpg/test/expected/connect-test4.c
new file mode 100644
index 0000000..ff13e4e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test4.c
@@ -0,0 +1,44 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "test4.pgc"
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "test4.pgc"
+
+
+int
+main(void)
+{
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "main", 0); }
+#line 13 "test4.pgc"
+
+
+ { ECPGsetconn(__LINE__, "main");}
+#line 15 "test4.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "DEFAULT");}
+#line 17 "test4.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/connect-test4.stderr b/src/interfaces/ecpg/test/expected/connect-test4.stderr
new file mode 100644
index 0000000..47a9361
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test4.stderr
@@ -0,0 +1,6 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -220 on line 17: connection "DEFAULT" does not exist on line 17
+[NO_PID]: sqlca: code: -220, state: 08003
diff --git a/src/interfaces/ecpg/test/expected/connect-test4.stdout b/src/interfaces/ecpg/test/expected/connect-test4.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test4.stdout
diff --git a/src/interfaces/ecpg/test/expected/connect-test5.c b/src/interfaces/ecpg/test/expected/connect-test5.c
new file mode 100644
index 0000000..c1124c6
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test5.c
@@ -0,0 +1,158 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "test5.pgc"
+/*
+ * this file tests all sorts of connecting to one single database.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+/* do not include regression.h */
+
+int
+main(void)
+{
+/* exec sql begin declare section */
+
+
+
+
+#line 16 "test5.pgc"
+ char db [ 200 ] ;
+
+#line 17 "test5.pgc"
+ char id [ 200 ] ;
+
+#line 18 "test5.pgc"
+ char * user = "regress_ecpg_user1" ;
+/* exec sql end declare section */
+#line 19 "test5.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "main", 0); }
+#line 23 "test5.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "alter user regress_ecpg_user2 encrypted password 'insecure'", ECPGt_EOIT, ECPGt_EORT);}
+#line 24 "test5.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "alter user regress_ecpg_user1 encrypted password 'connectpw'", ECPGt_EOIT, ECPGt_EORT);}
+#line 25 "test5.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");}
+#line 26 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 27 "test5.pgc"
+ /* <-- "main" not specified */
+
+ strcpy(db, "ecpg2_regression");
+ strcpy(id, "main");
+ { ECPGconnect(__LINE__, 0, db , NULL, NULL , id, 0); }
+#line 31 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, id);}
+#line 32 "test5.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "main", 0); }
+#line 34 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 35 "test5.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "main", 0); }
+#line 37 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 38 "test5.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "main", 0); }
+#line 40 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 41 "test5.pgc"
+
+
+ /* exec sql connect to as main user regress_ecpg_user2/insecure;
+ exec sql disconnect main; */
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , "regress_ecpg_user1" , "connectpw" , "main", 0); }
+#line 46 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 47 "test5.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost/ecpg2_regression" , "regress_ecpg_user1" , "connectpw" , "main", 0); }
+#line 49 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 50 "test5.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost/ecpg2_regression" , "regress_ecpg_user1" , "connectpw" , "main", 0); }
+#line 52 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 53 "test5.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost/ecpg2_regression" , user , "connectpw" , "main", 0); }
+#line 55 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 56 "test5.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost/ecpg2_regression?connect_timeout=180 & client_encoding=latin1" , "regress_ecpg_user1" , "connectpw" , "main", 0); }
+#line 58 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 59 "test5.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "unix:postgresql://200.46.204.71/ecpg2_regression" , "regress_ecpg_user1" , "connectpw" , "main", 0); }
+#line 61 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 62 "test5.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost/?gssencmode=disable" , "regress_ecpg_user2" , "insecure" , "main", 0); }
+#line 64 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 65 "test5.pgc"
+
+
+ /* connect twice */
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "main", 0); }
+#line 68 "test5.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "main", 0); }
+#line 69 "test5.pgc"
+
+ { ECPGdisconnect(__LINE__, "main");}
+#line 70 "test5.pgc"
+
+
+ /* not connected */
+ { ECPGdisconnect(__LINE__, "nonexistent");}
+#line 73 "test5.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/connect-test5.stderr b/src/interfaces/ecpg/test/expected/connect-test5.stderr
new file mode 100644
index 0000000..01a6a0a
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test5.stderr
@@ -0,0 +1,80 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: alter user regress_ecpg_user2 encrypted password 'insecure'; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: OK: ALTER ROLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: query: alter user regress_ecpg_user1 encrypted password 'connectpw'; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 25: OK: ALTER ROLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 26: action "commit"; connection "main"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT> with options connect_timeout=180 & client_encoding=latin1 for user regress_ecpg_user1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: non-localhost access via sockets on line 61
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 61: could not connect to database "ecpg2_regression" on line 61
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: raising sqlcode -220 on line 62: connection "main" does not exist on line 62
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ECPGconnect: opening database <DEFAULT> on <DEFAULT> port <DEFAULT> with options gssencmode=disable for user regress_ecpg_user2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection to server failed: FATAL: database "regress_ecpg_user2" does not exist
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -402 on line 64: could not connect to database "<DEFAULT>" on line 64
+[NO_PID]: sqlca: code: -402, state: 08001
+[NO_PID]: raising sqlcode -220 on line 65: connection "main" does not exist on line 65
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: connection identifier main is already in use
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -220 on line 73: connection "nonexistent" does not exist on line 73
+[NO_PID]: sqlca: code: -220, state: 08003
diff --git a/src/interfaces/ecpg/test/expected/connect-test5.stdout b/src/interfaces/ecpg/test/expected/connect-test5.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/connect-test5.stdout
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c
new file mode 100644
index 0000000..ee867b6
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c
@@ -0,0 +1,469 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "dt_test.pgc"
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <pgtypes_date.h>
+#include <pgtypes_timestamp.h>
+#include <pgtypes_interval.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 8 "dt_test.pgc"
+
+
+int
+main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+#line 14 "dt_test.pgc"
+ date date1 ;
+
+#line 15 "dt_test.pgc"
+ timestamp ts1 ;
+
+#line 16 "dt_test.pgc"
+ interval * iv1 , iv2 ;
+
+#line 17 "dt_test.pgc"
+ char * text ;
+/* exec sql end declare section */
+#line 18 "dt_test.pgc"
+
+ date date2;
+ int mdy[3] = { 4, 19, 1998 };
+ char *fmt, *out, *in;
+ char *d1 = "Mon Jan 17 1966";
+ char *t1 = "2000-7-12 17:34:29";
+ int i;
+
+ ECPGdebug(1, stderr);
+ /* exec sql whenever sqlerror do sqlprint ( ) ; */
+#line 27 "dt_test.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 28 "dt_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 28 "dt_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table date_test ( d date , ts timestamp )", ECPGt_EOIT, ECPGt_EORT);
+#line 29 "dt_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 29 "dt_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
+#line 30 "dt_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 30 "dt_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set intervalstyle to postgres_verbose", ECPGt_EOIT, ECPGt_EORT);
+#line 31 "dt_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 31 "dt_test.pgc"
+
+
+ date1 = PGTYPESdate_from_asc(d1, NULL);
+ ts1 = PGTYPEStimestamp_from_asc(t1, NULL);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into date_test ( d , ts ) values ( $1 , $2 )",
+ ECPGt_date,&(date1),(long)1,(long)1,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(ts1),(long)1,(long)1,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 36 "dt_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 36 "dt_test.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from date_test where d = $1 ",
+ ECPGt_date,&(date1),(long)1,(long)1,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_date,&(date1),(long)1,(long)1,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(ts1),(long)1,(long)1,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 38 "dt_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 38 "dt_test.pgc"
+
+
+ text = PGTYPESdate_to_asc(date1);
+ printf ("Date: %s\n", text);
+ PGTYPESchar_free(text);
+
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf ("timestamp: %s\n", text);
+ PGTYPESchar_free(text);
+
+ iv1 = PGTYPESinterval_from_asc("13556 days 12 hours 34 minutes 14 seconds ", NULL);
+ PGTYPESinterval_copy(iv1, &iv2);
+ text = PGTYPESinterval_to_asc(&iv2);
+ printf ("interval: %s\n", text);
+ PGTYPESinterval_free(iv1);
+ PGTYPESchar_free(text);
+
+ PGTYPESdate_mdyjul(mdy, &date2);
+ printf("m: %d, d: %d, y: %d\n", mdy[0], mdy[1], mdy[2]);
+ /* reset */
+ mdy[0] = mdy[1] = mdy[2] = 0;
+
+ printf("date seems to get encoded to julian %ld\n", date2);
+
+ PGTYPESdate_julmdy(date2, mdy);
+ printf("m: %d, d: %d, y: %d\n", mdy[0], mdy[1], mdy[2]);
+
+ ts1 = PGTYPEStimestamp_from_asc("2003-12-04 17:34:29", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ fmt = "(ddd), mmm. dd, yyyy, repeat: (ddd), mmm. dd, yyyy. end";
+ out = (char*) malloc(strlen(fmt) + 1);
+ date1 = PGTYPESdate_from_timestamp(ts1);
+ PGTYPESdate_fmt_asc(date1, fmt, out);
+ printf("date_day of %s is %d\n", text, PGTYPESdate_dayofweek(date1));
+ printf("Above date in format \"%s\" is \"%s\"\n", fmt, out);
+ PGTYPESchar_free(text);
+ free(out);
+
+ out = (char*) malloc(48);
+ i = PGTYPEStimestamp_fmt_asc(&ts1, out, 47, "Which is day number %j in %Y.");
+ printf("%s\n", out);
+ free(out);
+
+
+ /* rdate_defmt_asc() */
+
+ date1 = 0;
+ fmt = "yy/mm/dd";
+ in = "In the year 1995, the month of December, it is the 25th day";
+ /* 0123456789012345678901234567890123456789012345678901234567890
+ * 0 1 2 3 4 5 6
+ */
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc1: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mmmm. dd. yyyy";
+ in = "12/25/95";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc2: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "yy/mm/dd";
+ in = "95/12/25";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc3: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "yy/mm/dd";
+ in = "1995, December 25th";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc4: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "dd-mm-yy";
+ in = "This is 25th day of December, 1995";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc5: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mmddyy";
+ in = "Dec. 25th, 1995";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc6: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mmm. dd. yyyy";
+ in = "dec 25th 1995";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc7: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mmm. dd. yyyy";
+ in = "DEC-25-1995";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc8: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mm yy dd.";
+ in = "12199525";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc9: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "yyyy fierj mm dd.";
+ in = "19951225";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc10: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mm/dd/yy";
+ in = "122595";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc12: %s\n", text);
+ PGTYPESchar_free(text);
+
+ PGTYPEStimestamp_current(&ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ /* can't output this in regression mode */
+ /* printf("timestamp_current: Now: %s\n", text); */
+ PGTYPESchar_free(text);
+
+ ts1 = PGTYPEStimestamp_from_asc("96-02-29", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_to_asc1: %s\n", text);
+ PGTYPESchar_free(text);
+
+ ts1 = PGTYPEStimestamp_from_asc("1994-02-11 3:10:35", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_to_asc2: %s\n", text);
+ PGTYPESchar_free(text);
+
+ ts1 = PGTYPEStimestamp_from_asc("1994-02-11 26:10:35", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_to_asc3: %s\n", text);
+ PGTYPESchar_free(text);
+
+/* abc-03:10:35-def-02/11/94-gh */
+/* 12345678901234567890123456789 */
+
+ out = (char*) malloc(32);
+ i = PGTYPEStimestamp_fmt_asc(&ts1, out, 31, "abc-%X-def-%x-ghi%%");
+ printf("timestamp_fmt_asc: %d: %s\n", i, out);
+ free(out);
+
+ fmt = "This is a %m/%d/%y %H-%Ml%Stest";
+ in = "This is a 4/12/80 3-39l12test";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Jul 22 17:28:44 +0200 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Feb 29 17:28:44 +0200 2000";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Feb 29 17:28:44 +0200 1900";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Feb 29 17:28:44 +0200 1996";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%b %d %H:%M:%S %z %Y";
+ in = " Jul 31 17:28:44 +0200 1996";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%b %d %H:%M:%S %z %Y";
+ in = " Jul 32 17:28:44 +0200 1996";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Feb 29 17:28:44 +0200 1997";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%";
+ in = "Tue Jul 22 17:28:44 +0200 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "a %";
+ in = "Tue Jul 22 17:28:44 +0200 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%b, %d %H_%M`%S %z %Y";
+ in = " Jul, 22 17_28 `44 +0200 2003 ";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %%%d %H:%M:%S %Z %Y";
+ in = "Tue Jul %22 17:28:44 CEST 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %%%d %H:%M:%S %Z %Y";
+ in = "Tue Jul %22 17:28:44 CEST 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "abc%n %C %B %%%d %H:%M:%S %Z %Y";
+ in = "abc\n 19 October %22 17:28:44 CEST 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "abc%n %C %B %%%d %H:%M:%S %Z %y";
+ in = "abc\n 18 October %34 17:28:44 CEST 80";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "";
+ in = "abc\n 18 October %34 17:28:44 CEST 80";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = NULL;
+ in = "1980-04-12 3:49:44 ";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, NULL) = %s, error: %d\n", in, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%B %d, %Y. Time: %I:%M%p";
+ in = "July 14, 1988. Time: 9:15am";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = "September 6 at 01:30 pm in the year 1983";
+ fmt = "%B %d at %I:%M %p in the year %Y";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = " 1976, July 14. Time: 9:15am";
+ fmt = "%Y, %B %d. Time: %I:%M %p";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = " 1976, July 14. Time: 9:15 am";
+ fmt = "%Y, %B %d. Time: %I:%M%p";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = " 1976, P.M. July 14. Time: 9:15";
+ fmt = "%Y, %P %B %d. Time: %I:%M";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = "1234567890";
+ fmt = "%s";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ out = (char*) malloc(64);
+ fmt = "%a %b %d %H:%M:%S %Y";
+ in = "Mon Dec 30 17:28:44 2019";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ i = PGTYPEStimestamp_fmt_asc(&ts1, out, 63, fmt);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, out, i);
+ free(out);
+
+ out = (char*) malloc(64);
+ fmt = "%a %b %d %H:%M:%S %Y";
+ in = "Mon December 30 17:28:44 2019";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ i = PGTYPEStimestamp_fmt_asc(&ts1, out, 63, fmt);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, out, i);
+ free(out);
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 381 "dt_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 381 "dt_test.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 382 "dt_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 382 "dt_test.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stderr b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stderr
new file mode 100644
index 0000000..6e9ed3d
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stderr
@@ -0,0 +1,48 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: query: create table date_test ( d date , ts timestamp ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 29: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: set datestyle to iso; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: query: set intervalstyle to postgres_verbose; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 31: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: insert into date_test ( d , ts ) values ( $1 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 1 = 1966-01-17
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 2 = 2000-07-12 17:34:29
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: query: select * from date_test where d = $1 ; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 38: parameter 1 = 1966-01-17
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 38: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 38: RESULT: 1966-01-17 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 38: RESULT: 2000-07-12 17:34:29 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 381: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout
new file mode 100644
index 0000000..4b582fd
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout
@@ -0,0 +1,52 @@
+Date: 1966-01-17
+timestamp: 2000-07-12 17:34:29
+interval: @ 13556 days 12 hours 34 mins 14 secs
+m: 4, d: 19, y: 1998
+date seems to get encoded to julian -622
+m: 4, d: 19, y: 1998
+date_day of 2003-12-04 17:34:29 is 4
+Above date in format "(ddd), mmm. dd, yyyy, repeat: (ddd), mmm. dd, yyyy. end" is "(Thu), Dec. 04, 2003, repeat: (Thu), Dec. 04, 2003. end"
+Which is day number 338 in 2003.
+date_defmt_asc1: 1995-12-25
+date_defmt_asc2: 0095-12-25
+date_defmt_asc3: 0095-12-25
+date_defmt_asc4: 1995-12-25
+date_defmt_asc5: 1995-12-25
+date_defmt_asc6: 1995-12-25
+date_defmt_asc7: 1995-12-25
+date_defmt_asc8: 1995-12-25
+date_defmt_asc9: 1995-12-25
+date_defmt_asc10: 1995-12-25
+date_defmt_asc12: 0095-12-25
+timestamp_to_asc1: 1996-02-29 00:00:00
+timestamp_to_asc2: 1994-02-11 03:10:35
+timestamp_to_asc3: 2000-01-01 00:00:00
+timestamp_fmt_asc: 0: abc-00:00:00-def-01/01/00-ghi%
+timestamp_defmt_asc(This is a 4/12/80 3-39l12test, This is a %m/%d/%y %H-%Ml%Stest) = 1980-04-12 03:39:12, error: 0
+timestamp_defmt_asc(Tue Jul 22 17:28:44 +0200 2003, %a %b %d %H:%M:%S %z %Y) = 2003-07-22 15:28:44, error: 0
+timestamp_defmt_asc(Tue Feb 29 17:28:44 +0200 2000, %a %b %d %H:%M:%S %z %Y) = 2000-02-29 15:28:44, error: 0
+timestamp_defmt_asc(Tue Feb 29 17:28:44 +0200 1900, %a %b %d %H:%M:%S %z %Y) = 1900-02-28 15:28:44, error (should be error!): 1
+timestamp_defmt_asc(Tue Feb 29 17:28:44 +0200 1996, %a %b %d %H:%M:%S %z %Y) = 1996-02-29 15:28:44, error: 0
+timestamp_defmt_asc( Jul 31 17:28:44 +0200 1996, %b %d %H:%M:%S %z %Y) = 1996-07-31 15:28:44, error: 0
+timestamp_defmt_asc( Jul 32 17:28:44 +0200 1996, %b %d %H:%M:%S %z %Y) = 1996-07-31 15:28:44, error (should be error!): 1
+timestamp_defmt_asc(Tue Feb 29 17:28:44 +0200 1997, %a %b %d %H:%M:%S %z %Y) = 1997-02-28 15:28:44, error (should be error!): 1
+timestamp_defmt_asc(Tue Jul 22 17:28:44 +0200 2003, %) = 1997-02-28 15:28:44, error (should be error!): 1
+timestamp_defmt_asc(Tue Jul 22 17:28:44 +0200 2003, a %) = 1997-02-28 15:28:44, error (should be error!): 1
+timestamp_defmt_asc( Jul, 22 17_28 `44 +0200 2003 , %b, %d %H_%M`%S %z %Y) = 2003-07-22 15:28:44, error: 0
+timestamp_defmt_asc(Tue Jul %22 17:28:44 CEST 2003, %a %b %%%d %H:%M:%S %Z %Y) = 2003-07-22 15:28:44, error: 0
+timestamp_defmt_asc(Tue Jul %22 17:28:44 CEST 2003, %a %b %%%d %H:%M:%S %Z %Y) = 2003-07-22 15:28:44, error: 0
+timestamp_defmt_asc(abc
+ 19 October %22 17:28:44 CEST 2003, abc%n %C %B %%%d %H:%M:%S %Z %Y) = 2003-10-22 15:28:44, error: 0
+timestamp_defmt_asc(abc
+ 18 October %34 17:28:44 CEST 80, abc%n %C %B %%%d %H:%M:%S %Z %y) = 1880-10-31 15:28:44, error (should be error!): 1
+timestamp_defmt_asc(abc
+ 18 October %34 17:28:44 CEST 80, ) = 1880-10-31 15:28:44, error (should be error!): 1
+timestamp_defmt_asc(1980-04-12 3:49:44 , NULL) = 1980-04-12 03:49:44, error: 0
+timestamp_defmt_asc(July 14, 1988. Time: 9:15am, %B %d, %Y. Time: %I:%M%p) = 1988-07-14 09:15:00, error: 0
+timestamp_defmt_asc(September 6 at 01:30 pm in the year 1983, %B %d at %I:%M %p in the year %Y) = 1983-09-06 13:30:00, error: 0
+timestamp_defmt_asc( 1976, July 14. Time: 9:15am, %Y, %B %d. Time: %I:%M %p) = 1976-07-14 09:15:00, error: 0
+timestamp_defmt_asc( 1976, July 14. Time: 9:15 am, %Y, %B %d. Time: %I:%M%p) = 1976-07-14 09:15:00, error: 0
+timestamp_defmt_asc( 1976, P.M. July 14. Time: 9:15, %Y, %P %B %d. Time: %I:%M) = 1976-07-14 21:15:00, error: 0
+timestamp_defmt_asc(1234567890, %s) = 2009-02-13 23:31:30, error: 0
+timestamp_defmt_asc(Mon Dec 30 17:28:44 2019, %a %b %d %H:%M:%S %Y) = Mon Dec 30 17:28:44 2019, error: 0
+timestamp_defmt_asc(Mon December 30 17:28:44 2019, %a %b %d %H:%M:%S %Y) = Mon Dec 30 17:28:44 2019, error: 0
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c
new file mode 100644
index 0000000..b3e1e75
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c
@@ -0,0 +1,186 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "dt_test2.pgc"
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <limits.h>
+#include <pgtypes_date.h>
+#include <pgtypes_timestamp.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 8 "dt_test2.pgc"
+
+
+char *dates[] = { "19990108foobar",
+ "19990108 foobar",
+ "1999-01-08 foobar",
+ "January 8, 1999",
+ "1999-01-08",
+ "1/8/1999",
+ "1/18/1999",
+ "01/02/03",
+ "1999-Jan-08",
+ "Jan-08-1999",
+ "08-Jan-1999",
+ "99-Jan-08",
+ "08-Jan-99",
+ "08-Jan-06",
+ "Jan-08-99",
+ "19990108",
+ "990108",
+ "1999.008",
+ "J2451187",
+ "January 8, 99 BC",
+ /*
+ * Maximize space usage in ParseDateTime() with 25
+ * (MAXDATEFIELDS) fields and 128 (MAXDATELEN) total length.
+ */
+ "........................Xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ /* 26 fields */
+ ".........................aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ NULL };
+
+/* do not conflict with libc "times" symbol */
+static char *times[] = { "0:04",
+ "1:59 PDT",
+ "13:24:40 -8:00",
+ "13:24:40.495+3",
+ "13:24:40.123456123+3",
+ NULL };
+
+char *intervals[] = { "1 minute",
+ "1 12:59:10",
+ "2 day 12 hour 59 minute 10 second",
+ "1 days 12 hrs 59 mins 10 secs",
+ "1 days 1 hours 1 minutes 1 seconds",
+ "1 year 59 mins",
+ "1 year 59 mins foobar",
+ NULL };
+
+int
+main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+#line 62 "dt_test2.pgc"
+ date date1 ;
+
+#line 63 "dt_test2.pgc"
+ timestamp ts1 , ts2 ;
+
+#line 64 "dt_test2.pgc"
+ char * text ;
+
+#line 65 "dt_test2.pgc"
+ interval * i1 ;
+
+#line 66 "dt_test2.pgc"
+ date * dc ;
+/* exec sql end declare section */
+#line 67 "dt_test2.pgc"
+
+
+ int i, j;
+ char *endptr;
+
+ ECPGdebug(1, stderr);
+
+ ts1 = PGTYPEStimestamp_from_asc("2003-12-04 17:34:29", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+
+ printf("timestamp: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = PGTYPESdate_from_timestamp(ts1);
+ dc = PGTYPESdate_new();
+ *dc = date1;
+ text = PGTYPESdate_to_asc(*dc);
+ printf("Date of timestamp: %s\n", text);
+ PGTYPESchar_free(text);
+ PGTYPESdate_free(dc);
+
+ for (i = 0; dates[i]; i++)
+ {
+ bool err = false;
+ date1 = PGTYPESdate_from_asc(dates[i], &endptr);
+ if (date1 == INT_MIN) {
+ err = true;
+ }
+ text = PGTYPESdate_to_asc(date1);
+ printf("Date[%d]: %s (%c - %c)\n",
+ i, err ? "-" : text,
+ endptr ? 'N' : 'Y',
+ err ? 'T' : 'F');
+ PGTYPESchar_free(text);
+ if (!err)
+ {
+ for (j = 0; times[j]; j++)
+ {
+ int length = strlen(dates[i])
+ + 1
+ + strlen(times[j])
+ + 1;
+ char* t = malloc(length);
+ sprintf(t, "%s %s", dates[i], times[j]);
+ ts1 = PGTYPEStimestamp_from_asc(t, NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("TS[%d,%d]: %s\n",
+ i, j, errno ? "-" : text);
+ PGTYPESchar_free(text);
+ free(t);
+ }
+ }
+ }
+
+ ts1 = PGTYPEStimestamp_from_asc("2004-04-04 23:23:23", NULL);
+
+ for (i = 0; intervals[i]; i++)
+ {
+ interval *ic;
+ i1 = PGTYPESinterval_from_asc(intervals[i], &endptr);
+ if (*endptr)
+ printf("endptr set to %s\n", endptr);
+ if (!i1)
+ {
+ printf("Error parsing interval %d\n", i);
+ continue;
+ }
+ j = PGTYPEStimestamp_add_interval(&ts1, i1, &ts2);
+ if (j < 0)
+ continue;
+ text = PGTYPESinterval_to_asc(i1);
+ printf("interval[%d]: %s\n", i, text ? text : "-");
+ PGTYPESchar_free(text);
+
+ ic = PGTYPESinterval_new();
+ PGTYPESinterval_copy(i1, ic);
+ text = PGTYPESinterval_to_asc(i1);
+ printf("interval_copy[%d]: %s\n", i, text ? text : "-");
+ PGTYPESchar_free(text);
+ PGTYPESinterval_free(ic);
+ PGTYPESinterval_free(i1);
+ }
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stderr b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stderr
new file mode 100644
index 0000000..1a3639d
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stderr
@@ -0,0 +1,2 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stdout b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stdout
new file mode 100644
index 0000000..0fbcce6
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stdout
@@ -0,0 +1,122 @@
+timestamp: 2003-12-04 17:34:29
+Date of timestamp: 2003-12-04
+Date[0]: - (N - T)
+Date[1]: - (N - T)
+Date[2]: - (N - T)
+Date[3]: 1999-01-08 (N - F)
+TS[3,0]: 1999-01-08 00:04:00
+TS[3,1]: 1999-01-08 01:59:00
+TS[3,2]: 1999-01-08 13:24:40
+TS[3,3]: 1999-01-08 13:24:40.495
+TS[3,4]: 1999-01-08 13:24:40.123456
+Date[4]: 1999-01-08 (N - F)
+TS[4,0]: 1999-01-08 00:04:00
+TS[4,1]: 1999-01-08 01:59:00
+TS[4,2]: 1999-01-08 13:24:40
+TS[4,3]: 1999-01-08 13:24:40.495
+TS[4,4]: 1999-01-08 13:24:40.123456
+Date[5]: 1999-01-08 (N - F)
+TS[5,0]: 1999-01-08 00:04:00
+TS[5,1]: 1999-01-08 01:59:00
+TS[5,2]: 1999-01-08 13:24:40
+TS[5,3]: 1999-01-08 13:24:40.495
+TS[5,4]: 1999-01-08 13:24:40.123456
+Date[6]: 1999-01-18 (N - F)
+TS[6,0]: 1999-01-18 00:04:00
+TS[6,1]: 1999-01-18 01:59:00
+TS[6,2]: 1999-01-18 13:24:40
+TS[6,3]: 1999-01-18 13:24:40.495
+TS[6,4]: 1999-01-18 13:24:40.123456
+Date[7]: 2003-01-02 (N - F)
+TS[7,0]: 2003-01-02 00:04:00
+TS[7,1]: 2003-01-02 01:59:00
+TS[7,2]: 2003-01-02 13:24:40
+TS[7,3]: 2003-01-02 13:24:40.495
+TS[7,4]: 2003-01-02 13:24:40.123456
+Date[8]: 1999-01-08 (N - F)
+TS[8,0]: 1999-01-08 00:04:00
+TS[8,1]: 1999-01-08 01:59:00
+TS[8,2]: 1999-01-08 13:24:40
+TS[8,3]: 1999-01-08 13:24:40.495
+TS[8,4]: 1999-01-08 13:24:40.123456
+Date[9]: 1999-01-08 (N - F)
+TS[9,0]: 1999-01-08 00:04:00
+TS[9,1]: 1999-01-08 01:59:00
+TS[9,2]: 1999-01-08 13:24:40
+TS[9,3]: 1999-01-08 13:24:40.495
+TS[9,4]: 1999-01-08 13:24:40.123456
+Date[10]: 1999-01-08 (N - F)
+TS[10,0]: 1999-01-08 00:04:00
+TS[10,1]: 1999-01-08 01:59:00
+TS[10,2]: 1999-01-08 13:24:40
+TS[10,3]: 1999-01-08 13:24:40.495
+TS[10,4]: 1999-01-08 13:24:40.123456
+Date[11]: 1999-01-08 (N - F)
+TS[11,0]: 1999-01-08 00:04:00
+TS[11,1]: 1999-01-08 01:59:00
+TS[11,2]: 1999-01-08 13:24:40
+TS[11,3]: 1999-01-08 13:24:40.495
+TS[11,4]: 1999-01-08 13:24:40.123456
+Date[12]: 1999-01-08 (N - F)
+TS[12,0]: 1999-01-08 00:04:00
+TS[12,1]: 1999-01-08 01:59:00
+TS[12,2]: 1999-01-08 13:24:40
+TS[12,3]: 1999-01-08 13:24:40.495
+TS[12,4]: 1999-01-08 13:24:40.123456
+Date[13]: 2006-01-08 (N - F)
+TS[13,0]: 2006-01-08 00:04:00
+TS[13,1]: 2006-01-08 01:59:00
+TS[13,2]: 2006-01-08 13:24:40
+TS[13,3]: 2006-01-08 13:24:40.495
+TS[13,4]: 2006-01-08 13:24:40.123456
+Date[14]: 1999-01-08 (N - F)
+TS[14,0]: 1999-01-08 00:04:00
+TS[14,1]: 1999-01-08 01:59:00
+TS[14,2]: 1999-01-08 13:24:40
+TS[14,3]: 1999-01-08 13:24:40.495
+TS[14,4]: 1999-01-08 13:24:40.123456
+Date[15]: 1999-01-08 (N - F)
+TS[15,0]: 1999-01-08 00:04:00
+TS[15,1]: 1999-01-08 01:59:00
+TS[15,2]: 1999-01-08 13:24:40
+TS[15,3]: 1999-01-08 13:24:40.495
+TS[15,4]: 1999-01-08 13:24:40.123456
+Date[16]: 1999-01-08 (N - F)
+TS[16,0]: 1999-01-08 00:04:00
+TS[16,1]: 1999-01-08 01:59:00
+TS[16,2]: 1999-01-08 13:24:40
+TS[16,3]: 1999-01-08 13:24:40.495
+TS[16,4]: 1999-01-08 13:24:40.123456
+Date[17]: 1999-01-08 (N - F)
+TS[17,0]: 1999-01-08 00:04:00
+TS[17,1]: 1999-01-08 01:59:00
+TS[17,2]: 1999-01-08 13:24:40
+TS[17,3]: 1999-01-08 13:24:40.495
+TS[17,4]: 1999-01-08 13:24:40.123456
+Date[18]: 1999-01-08 (N - F)
+TS[18,0]: 1999-01-08 00:04:00
+TS[18,1]: 1999-01-08 01:59:00
+TS[18,2]: 1999-01-08 13:24:40
+TS[18,3]: 1999-01-08 13:24:40.495
+TS[18,4]: 1999-01-08 13:24:40.123456
+Date[19]: 0099-01-08 BC (N - F)
+TS[19,0]: 0099-01-08 00:04:00 BC
+TS[19,1]: 0099-01-08 01:59:00 BC
+TS[19,2]: 0099-01-08 13:24:40 BC
+TS[19,3]: 0099-01-08 13:24:40.495 BC
+TS[19,4]: 0099-01-08 13:24:40.123456 BC
+Date[20]: - (N - T)
+Date[21]: - (N - T)
+interval[0]: @ 1 min
+interval_copy[0]: @ 1 min
+interval[1]: @ 1 day 12 hours 59 mins 10 secs
+interval_copy[1]: @ 1 day 12 hours 59 mins 10 secs
+interval[2]: @ 2 days 12 hours 59 mins 10 secs
+interval_copy[2]: @ 2 days 12 hours 59 mins 10 secs
+interval[3]: @ 1 day 12 hours 59 mins 10 secs
+interval_copy[3]: @ 1 day 12 hours 59 mins 10 secs
+interval[4]: @ 1 day 1 hour 1 min 1 sec
+interval_copy[4]: @ 1 day 1 hour 1 min 1 sec
+interval[5]: @ 1 year 59 mins
+interval_copy[5]: @ 1 year 59 mins
+Error parsing interval 6
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c b/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c
new file mode 100644
index 0000000..586094c
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c
@@ -0,0 +1,266 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "nan_test.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <float.h>
+#include <math.h>
+#include <pgtypes_numeric.h>
+#include <decimal.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 8 "nan_test.pgc"
+
+
+int
+main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+#line 14 "nan_test.pgc"
+ int id , loopcount ;
+
+#line 15 "nan_test.pgc"
+ double d ;
+
+#line 16 "nan_test.pgc"
+ numeric * num ;
+
+#line 17 "nan_test.pgc"
+ char val [ 16 ] ;
+/* exec sql end declare section */
+#line 18 "nan_test.pgc"
+
+
+ ECPGdebug(1, stderr);
+ /* exec sql whenever sqlerror do sqlprint ( ) ; */
+#line 21 "nan_test.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 23 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 23 "nan_test.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table nantest1 ( id int4 , d float8 )", ECPGt_EOIT, ECPGt_EORT);
+#line 25 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 25 "nan_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into nantest1 ( id , d ) values ( 1 , 'nan' :: float8 ) , ( 2 , 'infinity' :: float8 ) , ( 3 , '-infinity' :: float8 )", ECPGt_EOIT, ECPGt_EORT);
+#line 26 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 26 "nan_test.pgc"
+
+
+ /* declare cur cursor for select id , d , d from nantest1 */
+#line 28 "nan_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare cur cursor for select id , d , d from nantest1", ECPGt_EOIT, ECPGt_EORT);
+#line 29 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 29 "nan_test.pgc"
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch from cur", ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_double,&(d),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(val),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 32 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 32 "nan_test.pgc"
+
+ if (sqlca.sqlcode)
+ break;
+ if (isnan(d))
+ printf("%d NaN '%s'\n", id, val);
+ else if (isinf(d))
+ printf("%d %sInf '%s'\n", id, (d < 0 ? "-" : "+"), val);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into nantest1 ( id , d ) values ( $1 + 3 , $2 )",
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_double,&(d),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 40 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 40 "nan_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into nantest1 ( id , d ) values ( $1 + 6 , $2 )",
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(val),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 41 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 41 "nan_test.pgc"
+
+ }
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close cur", ECPGt_EOIT, ECPGt_EORT);
+#line 43 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 43 "nan_test.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare cur cursor for select id , d , d from nantest1", ECPGt_EOIT, ECPGt_EORT);
+#line 45 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 45 "nan_test.pgc"
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch from cur", ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_double,&(d),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(val),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 48 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 48 "nan_test.pgc"
+
+ if (sqlca.sqlcode)
+ break;
+ if (isinf(d))
+ printf("%d %sInf '%s'\n", id, (d < 0 ? "-" : "+"), val);
+ if (isnan(d))
+ printf("%d NaN '%s'\n", id, val);
+ }
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close cur", ECPGt_EOIT, ECPGt_EORT);
+#line 56 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 56 "nan_test.pgc"
+
+
+ num = PGTYPESnumeric_new();
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table nantest2 ( id int4 , d numeric )", ECPGt_EOIT, ECPGt_EORT);
+#line 60 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 60 "nan_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into nantest2 ( id , d ) values ( 4 , 'nan' :: numeric )", ECPGt_EOIT, ECPGt_EORT);
+#line 61 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 61 "nan_test.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select id , d , d from nantest2 where id = 4", ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_numeric,&(num),(long)1,(long)0,sizeof(numeric),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(val),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 63 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 63 "nan_test.pgc"
+
+
+ printf("%d %s '%s'\n", id, (num->sign == NUMERIC_NAN ? "NaN" : "not NaN"), val);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into nantest2 ( id , d ) values ( 5 , $1 )",
+ ECPGt_numeric,&(num),(long)1,(long)0,sizeof(numeric),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 67 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 67 "nan_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into nantest2 ( id , d ) values ( 6 , $1 )",
+ ECPGt_char,(val),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 68 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 68 "nan_test.pgc"
+
+
+ /* declare cur1 cursor for select id , d , d from nantest2 */
+#line 70 "nan_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare cur1 cursor for select id , d , d from nantest2", ECPGt_EOIT, ECPGt_EORT);
+#line 71 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 71 "nan_test.pgc"
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch from cur1", ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_numeric,&(num),(long)1,(long)0,sizeof(numeric),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(val),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 74 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 74 "nan_test.pgc"
+
+ if (sqlca.sqlcode)
+ break;
+ printf("%d %s '%s'\n", id, (num->sign == NUMERIC_NAN ? "NaN" : "not NaN"), val);
+ }
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close cur1", ECPGt_EOIT, ECPGt_EORT);
+#line 79 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 79 "nan_test.pgc"
+
+
+ PGTYPESnumeric_free(num);
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 83 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 83 "nan_test.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 84 "nan_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 84 "nan_test.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr b/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr
new file mode 100644
index 0000000..55471e9
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr
@@ -0,0 +1,360 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: query: create table nantest1 ( id int4 , d float8 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 25: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into nantest1 ( id , d ) values ( 1 , 'nan' :: float8 ) , ( 2 , 'infinity' :: float8 ) , ( 3 , '-infinity' :: float8 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: query: declare cur cursor for select id , d , d from nantest1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 29: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: query: insert into nantest1 ( id , d ) values ( $1 + 3 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 40: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 40: parameter 2 = NaN
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 40: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: query: insert into nantest1 ( id , d ) values ( $1 + 6 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 2 = NaN
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: query: insert into nantest1 ( id , d ) values ( $1 + 3 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 40: parameter 1 = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 40: parameter 2 = Infinity
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 40: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: query: insert into nantest1 ( id , d ) values ( $1 + 6 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 1 = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 2 = Infinity
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: -Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: -Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: query: insert into nantest1 ( id , d ) values ( $1 + 3 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 40: parameter 1 = 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 40: parameter 2 = -Infinity
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 40: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: query: insert into nantest1 ( id , d ) values ( $1 + 6 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 1 = 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 2 = -Infinity
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 0 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 32: no data found on line 32
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 43: query: close cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 43: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 43: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: query: declare cur cursor for select id , d , d from nantest1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 45: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: -Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: -Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 7 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 8 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 6 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: -Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: -Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 9 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: -Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: -Infinity offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch from cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 0 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 48: no data found on line 48
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 56: query: close cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: query: create table nantest2 ( id int4 , d numeric ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 60: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: query: insert into nantest2 ( id , d ) values ( 4 , 'nan' :: numeric ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 61: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 63: query: select id , d , d from nantest2 where id = 4; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 63: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 63: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 63: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 63: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 63: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 67: query: insert into nantest2 ( id , d ) values ( 5 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 67: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 67: parameter 1 = NaN
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 67: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 68: query: insert into nantest2 ( id , d ) values ( 6 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 68: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 68: parameter 1 = NaN
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 68: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 71: query: declare cur1 cursor for select id , d , d from nantest2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 71: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 71: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch from cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch from cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch from cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 6 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: NaN offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch from cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 0 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 74: no data found on line 74
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 79: query: close cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 79: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 79: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 83: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stdout b/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stdout
new file mode 100644
index 0000000..635ab23
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stdout
@@ -0,0 +1,16 @@
+1 NaN 'NaN'
+2 +Inf 'Infinity'
+3 -Inf '-Infinity'
+1 NaN 'NaN'
+2 +Inf 'Infinity'
+3 -Inf '-Infinity'
+4 NaN 'NaN'
+7 NaN 'NaN'
+5 +Inf 'Infinity'
+8 +Inf 'Infinity'
+6 -Inf '-Infinity'
+9 -Inf '-Infinity'
+4 NaN 'NaN'
+4 NaN 'NaN'
+5 NaN 'NaN'
+6 NaN 'NaN'
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-num_test.c b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test.c
new file mode 100644
index 0000000..ddb7860
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test.c
@@ -0,0 +1,202 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "num_test.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_numeric.h>
+#include <decimal.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "num_test.pgc"
+
+
+
+#line 1 "printf_hack.h"
+/*
+ * print_double(x) has the same effect as printf("%g", x), but is intended
+ * to produce the same formatting across all platforms.
+ */
+static void
+print_double(double x)
+{
+#ifdef WIN32
+ /* Change Windows' 3-digit exponents to look like everyone else's */
+ char convert[128];
+ int vallen;
+
+ sprintf(convert, "%g", x);
+ vallen = strlen(convert);
+
+ if (vallen >= 6 &&
+ convert[vallen - 5] == 'e' &&
+ convert[vallen - 3] == '0')
+ {
+ convert[vallen - 3] = convert[vallen - 2];
+ convert[vallen - 2] = convert[vallen - 1];
+ convert[vallen - 1] = '\0';
+ }
+
+ printf("%s", convert);
+#else
+ printf("%g", x);
+#endif
+}
+
+#line 8 "num_test.pgc"
+
+
+
+int
+main(void)
+{
+ char *text="error\n";
+ numeric *value1, *value2, *res;
+ /* exec sql begin declare section */
+
+ /* = {0, 0, 0, 0, 0, NULL, NULL} ; */
+
+#line 17 "num_test.pgc"
+ numeric * des ;
+/* exec sql end declare section */
+#line 19 "num_test.pgc"
+
+ double d;
+ long l1, l2;
+ int i, min, max;
+
+ ECPGdebug(1, stderr);
+ /* exec sql whenever sqlerror do sqlprint ( ) ; */
+#line 25 "num_test.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 27 "num_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 27 "num_test.pgc"
+
+
+ { ECPGsetcommit(__LINE__, "off", NULL);
+#line 29 "num_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 29 "num_test.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( text char ( 5 ) , num numeric ( 14 , 7 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 30 "num_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 30 "num_test.pgc"
+
+
+ value1 = PGTYPESnumeric_new();
+ PGTYPESnumeric_from_int(1407, value1);
+ text = PGTYPESnumeric_to_asc(value1, -1);
+ printf("from int = %s\n", text);
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(value1);
+
+ value1 = PGTYPESnumeric_from_asc("2369.7", NULL);
+ value2 = PGTYPESnumeric_from_asc("10.0", NULL);
+ res = PGTYPESnumeric_new();
+ PGTYPESnumeric_add(value1, value2, res);
+ text = PGTYPESnumeric_to_asc(res, -1);
+ printf("add = %s\n", text);
+ PGTYPESchar_free(text);
+
+ PGTYPESnumeric_sub(res, value2, res);
+ text = PGTYPESnumeric_to_asc(res, -1);
+ printf("sub = %s\n", text);
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(value2);
+
+ des = PGTYPESnumeric_new();
+ PGTYPESnumeric_copy(res, des);
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( text , num ) values ( 'test' , $1 )",
+ ECPGt_numeric,&(des),(long)1,(long)0,sizeof(numeric),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 55 "num_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 55 "num_test.pgc"
+
+
+ value2 = PGTYPESnumeric_from_asc("2369.7", NULL);
+ PGTYPESnumeric_mul(value1, value2, res);
+ PGTYPESnumeric_free(value2);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select num from test where text = 'test'", ECPGt_EOIT,
+ ECPGt_numeric,&(des),(long)1,(long)0,sizeof(numeric),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 61 "num_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 61 "num_test.pgc"
+
+
+ PGTYPESnumeric_mul(res, des, res);
+ text = PGTYPESnumeric_to_asc(res, -1);
+ printf("mul = %s\n", text);
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(des);
+
+ value2 = PGTYPESnumeric_from_asc("10000", NULL);
+ PGTYPESnumeric_div(res, value2, res);
+ text = PGTYPESnumeric_to_asc(res, -1);
+ PGTYPESnumeric_to_double(res, &d);
+ printf("div = %s ", text);
+ print_double(d);
+ printf("\n");
+
+ PGTYPESnumeric_free(value1);
+ PGTYPESnumeric_free(value2);
+
+ value1 = PGTYPESnumeric_from_asc("2E7", NULL);
+ value2 = PGTYPESnumeric_from_asc("14", NULL);
+ i = PGTYPESnumeric_to_long(value1, &l1) | PGTYPESnumeric_to_long(value2, &l2);
+ printf("to long(%d) = %ld %ld\n", i, l1, l2);
+
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(value1);
+ PGTYPESnumeric_free(value2);
+ PGTYPESnumeric_free(res);
+
+ /* check conversion of numeric to int */
+ value1 = PGTYPESnumeric_from_asc("-2147483648", NULL);
+ PGTYPESnumeric_to_int(value1, &min);
+ printf("min int = %d\n", min);
+ PGTYPESnumeric_free(value1);
+
+ value2 = PGTYPESnumeric_from_asc("2147483647", NULL);
+ PGTYPESnumeric_to_int(value2, &max);
+ printf("max int = %d\n", max);
+ PGTYPESnumeric_free(value2);
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 101 "num_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 101 "num_test.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 102 "num_test.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 102 "num_test.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stderr b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stderr
new file mode 100644
index 0000000..10cfd91
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stderr
@@ -0,0 +1,32 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGsetcommit on line 29: action "off"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: create table test ( text char ( 5 ) , num numeric ( 14 , 7 ) ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: insert into test ( text , num ) values ( 'test' , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 55: parameter 1 = 2369.7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: query: select num from test where text = 'test'; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 61: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 61: RESULT: 2369.7000000 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 101: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stdout b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stdout
new file mode 100644
index 0000000..a47a044
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stdout
@@ -0,0 +1,8 @@
+from int = 1407.0
+add = 2379.7
+sub = 2369.7
+mul = 13306998429.873000000
+div = 1330699.84298730000 1.3307e+06
+to long(0) = 20000000 14
+min int = -2147483648
+max int = 2147483647
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.c b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.c
new file mode 100644
index 0000000..9debc34
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.c
@@ -0,0 +1,290 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "num_test2.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_numeric.h>
+#include <pgtypes_error.h>
+#include <decimal.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 7 "num_test2.pgc"
+
+
+
+#line 1 "printf_hack.h"
+/*
+ * print_double(x) has the same effect as printf("%g", x), but is intended
+ * to produce the same formatting across all platforms.
+ */
+static void
+print_double(double x)
+{
+#ifdef WIN32
+ /* Change Windows' 3-digit exponents to look like everyone else's */
+ char convert[128];
+ int vallen;
+
+ sprintf(convert, "%g", x);
+ vallen = strlen(convert);
+
+ if (vallen >= 6 &&
+ convert[vallen - 5] == 'e' &&
+ convert[vallen - 3] == '0')
+ {
+ convert[vallen - 3] = convert[vallen - 2];
+ convert[vallen - 2] = convert[vallen - 1];
+ convert[vallen - 1] = '\0';
+ }
+
+ printf("%s", convert);
+#else
+ printf("%g", x);
+#endif
+}
+
+#line 9 "num_test2.pgc"
+
+
+
+char* nums[] = { "2E394", "-2", ".794", "3.44", "592.49E21", "-32.84e4",
+ "2E-394", ".1E-2", "+.0", "-592.49E-07", "+32.84e-4",
+ ".500001", "-.5000001",
+ "1234567890123456789012345678.91", /* 30 digits should fit
+ into decimal */
+ "1234567890123456789012345678.921", /* 31 digits should NOT
+ fit into decimal */
+ "not a number",
+ NULL};
+
+
+static void
+check_errno(void);
+
+int
+main(void)
+{
+ char *text="error\n";
+ char *endptr;
+ numeric *num, *nin;
+ decimal *dec;
+ long l;
+ int i, j, k, q, r, count = 0;
+ double d;
+ numeric **numarr = (numeric **) calloc(1, sizeof(numeric));
+
+ ECPGdebug(1, stderr);
+
+ for (i = 0; nums[i]; i++)
+ {
+ num = PGTYPESnumeric_from_asc(nums[i], &endptr);
+ if (!num) check_errno();
+ if (endptr != NULL)
+ {
+ printf("endptr of %d is not NULL\n", i);
+ if (*endptr != '\0')
+ printf("*endptr of %d is not \\0\n", i);
+ }
+ if (!num) continue;
+
+ numarr = realloc(numarr, sizeof(numeric *) * (count + 1));
+ numarr[count++] = num;
+
+ text = PGTYPESnumeric_to_asc(num, -1);
+ if (!text) check_errno();
+ printf("num[%d,1]: %s\n", i, text); PGTYPESchar_free(text);
+ text = PGTYPESnumeric_to_asc(num, 0);
+ if (!text) check_errno();
+ printf("num[%d,2]: %s\n", i, text); PGTYPESchar_free(text);
+ text = PGTYPESnumeric_to_asc(num, 1);
+ if (!text) check_errno();
+ printf("num[%d,3]: %s\n", i, text); PGTYPESchar_free(text);
+ text = PGTYPESnumeric_to_asc(num, 2);
+ if (!text) check_errno();
+ printf("num[%d,4]: %s\n", i, text); PGTYPESchar_free(text);
+
+ nin = PGTYPESnumeric_new();
+ text = PGTYPESnumeric_to_asc(nin, 2);
+ if (!text) check_errno();
+ printf("num[%d,5]: %s\n", i, text); PGTYPESchar_free(text);
+
+ r = PGTYPESnumeric_to_long(num, &l);
+ if (r) check_errno();
+ printf("num[%d,6]: %ld (r: %d)\n", i, r?0L:l, r);
+ if (r == 0)
+ {
+ r = PGTYPESnumeric_from_long(l, nin);
+ if (r) check_errno();
+ text = PGTYPESnumeric_to_asc(nin, 2);
+ q = PGTYPESnumeric_cmp(num, nin);
+ printf("num[%d,7]: %s (r: %d - cmp: %d)\n", i, text, r, q);
+ PGTYPESchar_free(text);
+ }
+
+ r = PGTYPESnumeric_to_int(num, &k);
+ if (r) check_errno();
+ printf("num[%d,8]: %d (r: %d)\n", i, r?0:k, r);
+ if (r == 0)
+ {
+ r = PGTYPESnumeric_from_int(k, nin);
+ if (r) check_errno();
+ text = PGTYPESnumeric_to_asc(nin, 2);
+ q = PGTYPESnumeric_cmp(num, nin);
+ printf("num[%d,9]: %s (r: %d - cmp: %d)\n", i, text, r, q);
+ PGTYPESchar_free(text);
+ }
+
+ if (i != 6)
+ {
+ /* underflow does not work reliable on several archs, so not testing it here */
+ /* this is a libc problem since we only call strtod() */
+
+ r = PGTYPESnumeric_to_double(num, &d);
+ if (r) check_errno();
+ printf("num[%d,10]: ", i);
+ print_double(r ? 0.0 : d);
+ printf(" (r: %d)\n", r);
+ }
+
+ /* do not test double to numeric because
+ * - extra digits are different on different architectures
+ * - PGTYPESnumeric_from_double internally calls PGTYPESnumeric_from_asc anyway
+ */
+
+ dec = PGTYPESdecimal_new();
+ r = PGTYPESnumeric_to_decimal(num, dec);
+ if (r) check_errno();
+ /* we have no special routine for outputting decimal, it would
+ * convert to a numeric anyway */
+ printf("num[%d,11]: - (r: %d)\n", i, r);
+ if (r == 0)
+ {
+ r = PGTYPESnumeric_from_decimal(dec, nin);
+ if (r) check_errno();
+ text = PGTYPESnumeric_to_asc(nin, 2);
+ q = PGTYPESnumeric_cmp(num, nin);
+ printf("num[%d,12]: %s (r: %d - cmp: %d)\n", i, text, r, q);
+ PGTYPESchar_free(text);
+ }
+
+ PGTYPESdecimal_free(dec);
+ PGTYPESnumeric_free(nin);
+ printf("\n");
+ }
+
+ for (i = 0; i < count; i++)
+ {
+ for (j = 0; j < count; j++)
+ {
+ numeric* a = PGTYPESnumeric_new();
+ numeric* s = PGTYPESnumeric_new();
+ numeric* m = PGTYPESnumeric_new();
+ numeric* d = PGTYPESnumeric_new();
+ r = PGTYPESnumeric_add(numarr[i], numarr[j], a);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ text = PGTYPESnumeric_to_asc(a, 10);
+ printf("num[a,%d,%d]: %s\n", i, j, text);
+ PGTYPESchar_free(text);
+ }
+ r = PGTYPESnumeric_sub(numarr[i], numarr[j], s);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ text = PGTYPESnumeric_to_asc(s, 10);
+ printf("num[s,%d,%d]: %s\n", i, j, text);
+ PGTYPESchar_free(text);
+ }
+ r = PGTYPESnumeric_mul(numarr[i], numarr[j], m);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ text = PGTYPESnumeric_to_asc(m, 10);
+ printf("num[m,%d,%d]: %s\n", i, j, text);
+ PGTYPESchar_free(text);
+ }
+ r = PGTYPESnumeric_div(numarr[i], numarr[j], d);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ text = PGTYPESnumeric_to_asc(d, 10);
+ printf("num[d,%d,%d]: %s\n", i, j, text);
+ PGTYPESchar_free(text);
+ }
+
+ PGTYPESnumeric_free(a);
+ PGTYPESnumeric_free(s);
+ PGTYPESnumeric_free(m);
+ PGTYPESnumeric_free(d);
+ }
+ }
+
+ for (i = 0; i < count; i++)
+ {
+ text = PGTYPESnumeric_to_asc(numarr[i], -1);
+ printf("%d: %s\n", i, text);
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(numarr[i]);
+ }
+ free(numarr);
+
+ return 0;
+}
+
+static void
+check_errno(void)
+{
+ switch(errno)
+ {
+ case 0:
+ printf("(no errno set) - ");
+ break;
+ case PGTYPES_NUM_OVERFLOW:
+ printf("(errno == PGTYPES_NUM_OVERFLOW) - ");
+ break;
+ case PGTYPES_NUM_UNDERFLOW:
+ printf("(errno == PGTYPES_NUM_UNDERFLOW) - ");
+ break;
+ case PGTYPES_NUM_BAD_NUMERIC:
+ printf("(errno == PGTYPES_NUM_BAD_NUMERIC) - ");
+ break;
+ case PGTYPES_NUM_DIVIDE_ZERO:
+ printf("(errno == PGTYPES_NUM_DIVIDE_ZERO) - ");
+ break;
+ default:
+ printf("(unknown errno (%d))\n", errno);
+ printf("(libc: (%s)) ", strerror(errno));
+ break;
+ }
+
+}
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stderr b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stderr
new file mode 100644
index 0000000..1a3639d
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stderr
@@ -0,0 +1,2 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stdout b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stdout
new file mode 100644
index 0000000..51a7459
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stdout
@@ -0,0 +1,1117 @@
+endptr of 0 is not NULL
+num[0,1]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+num[0,2]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+num[0,3]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0
+num[0,4]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.00
+num[0,5]: 0.00
+(errno == PGTYPES_NUM_OVERFLOW) - num[0,6]: 0 (r: -1)
+(errno == PGTYPES_NUM_OVERFLOW) - num[0,8]: 0 (r: -1)
+(errno == PGTYPES_NUM_OVERFLOW) - num[0,10]: 0 (r: -1)
+num[0,11]: - (r: 0)
+num[0,12]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.00 (r: 0 - cmp: 0)
+
+endptr of 1 is not NULL
+num[1,1]: -2
+num[1,2]: -2
+num[1,3]: -2.0
+num[1,4]: -2.00
+num[1,5]: 0.00
+num[1,6]: -2 (r: 0)
+num[1,7]: -2.00 (r: 0 - cmp: 0)
+num[1,8]: -2 (r: 0)
+num[1,9]: -2.00 (r: 0 - cmp: 0)
+num[1,10]: -2 (r: 0)
+num[1,11]: - (r: 0)
+num[1,12]: -2.00 (r: 0 - cmp: 0)
+
+endptr of 2 is not NULL
+num[2,1]: 0.794
+num[2,2]: 1
+num[2,3]: 0.8
+num[2,4]: 0.79
+num[2,5]: 0.00
+num[2,6]: 1 (r: 0)
+num[2,7]: 1.00 (r: 0 - cmp: -1)
+num[2,8]: 1 (r: 0)
+num[2,9]: 1.00 (r: 0 - cmp: -1)
+num[2,10]: 0.794 (r: 0)
+num[2,11]: - (r: 0)
+num[2,12]: 0.79 (r: 0 - cmp: 0)
+
+endptr of 3 is not NULL
+num[3,1]: 3.44
+num[3,2]: 3
+num[3,3]: 3.4
+num[3,4]: 3.44
+num[3,5]: 0.00
+num[3,6]: 3 (r: 0)
+num[3,7]: 3.00 (r: 0 - cmp: 1)
+num[3,8]: 3 (r: 0)
+num[3,9]: 3.00 (r: 0 - cmp: 1)
+num[3,10]: 3.44 (r: 0)
+num[3,11]: - (r: 0)
+num[3,12]: 3.44 (r: 0 - cmp: 0)
+
+endptr of 4 is not NULL
+num[4,1]: 592490000000000000000000
+num[4,2]: 592490000000000000000000
+num[4,3]: 592490000000000000000000.0
+num[4,4]: 592490000000000000000000.00
+num[4,5]: 0.00
+(errno == PGTYPES_NUM_OVERFLOW) - num[4,6]: 0 (r: -1)
+(errno == PGTYPES_NUM_OVERFLOW) - num[4,8]: 0 (r: -1)
+num[4,10]: 5.9249e+23 (r: 0)
+num[4,11]: - (r: 0)
+num[4,12]: 592490000000000000000000.00 (r: 0 - cmp: 0)
+
+endptr of 5 is not NULL
+num[5,1]: -328400
+num[5,2]: -328400
+num[5,3]: -328400.0
+num[5,4]: -328400.00
+num[5,5]: 0.00
+num[5,6]: -328400 (r: 0)
+num[5,7]: -328400.00 (r: 0 - cmp: 0)
+num[5,8]: -328400 (r: 0)
+num[5,9]: -328400.00 (r: 0 - cmp: 0)
+num[5,10]: -328400 (r: 0)
+num[5,11]: - (r: 0)
+num[5,12]: -328400.00 (r: 0 - cmp: 0)
+
+endptr of 6 is not NULL
+num[6,1]: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002
+num[6,2]: 0
+num[6,3]: 0.0
+num[6,4]: 0.00
+num[6,5]: 0.00
+num[6,6]: 0 (r: 0)
+num[6,7]: 0.00 (r: 0 - cmp: 1)
+num[6,8]: 0 (r: 0)
+num[6,9]: 0.00 (r: 0 - cmp: 1)
+num[6,11]: - (r: 0)
+num[6,12]: 0.00 (r: 0 - cmp: 0)
+
+endptr of 7 is not NULL
+num[7,1]: 0.001
+num[7,2]: 0
+num[7,3]: 0.0
+num[7,4]: 0.00
+num[7,5]: 0.00
+num[7,6]: 0 (r: 0)
+num[7,7]: 0.00 (r: 0 - cmp: 1)
+num[7,8]: 0 (r: 0)
+num[7,9]: 0.00 (r: 0 - cmp: 1)
+num[7,10]: 0.001 (r: 0)
+num[7,11]: - (r: 0)
+num[7,12]: 0.00 (r: 0 - cmp: 0)
+
+endptr of 8 is not NULL
+num[8,1]: 0.0
+num[8,2]: 0
+num[8,3]: 0.0
+num[8,4]: 0.00
+num[8,5]: 0.00
+num[8,6]: 0 (r: 0)
+num[8,7]: 0.00 (r: 0 - cmp: 0)
+num[8,8]: 0 (r: 0)
+num[8,9]: 0.00 (r: 0 - cmp: 0)
+num[8,10]: 0 (r: 0)
+num[8,11]: - (r: 0)
+num[8,12]: 0.00 (r: 0 - cmp: 0)
+
+endptr of 9 is not NULL
+num[9,1]: -0.000059249
+num[9,2]: -0
+num[9,3]: -0.0
+num[9,4]: -0.00
+num[9,5]: 0.00
+num[9,6]: 0 (r: 0)
+num[9,7]: 0.00 (r: 0 - cmp: -1)
+num[9,8]: 0 (r: 0)
+num[9,9]: 0.00 (r: 0 - cmp: -1)
+num[9,10]: -5.9249e-05 (r: 0)
+num[9,11]: - (r: 0)
+num[9,12]: -0.00 (r: 0 - cmp: 0)
+
+endptr of 10 is not NULL
+num[10,1]: 0.003284
+num[10,2]: 0
+num[10,3]: 0.0
+num[10,4]: 0.00
+num[10,5]: 0.00
+num[10,6]: 0 (r: 0)
+num[10,7]: 0.00 (r: 0 - cmp: 1)
+num[10,8]: 0 (r: 0)
+num[10,9]: 0.00 (r: 0 - cmp: 1)
+num[10,10]: 0.003284 (r: 0)
+num[10,11]: - (r: 0)
+num[10,12]: 0.00 (r: 0 - cmp: 0)
+
+endptr of 11 is not NULL
+num[11,1]: 0.500001
+num[11,2]: 1
+num[11,3]: 0.5
+num[11,4]: 0.50
+num[11,5]: 0.00
+num[11,6]: 1 (r: 0)
+num[11,7]: 1.00 (r: 0 - cmp: -1)
+num[11,8]: 1 (r: 0)
+num[11,9]: 1.00 (r: 0 - cmp: -1)
+num[11,10]: 0.500001 (r: 0)
+num[11,11]: - (r: 0)
+num[11,12]: 0.50 (r: 0 - cmp: 0)
+
+endptr of 12 is not NULL
+num[12,1]: -0.5000001
+num[12,2]: -1
+num[12,3]: -0.5
+num[12,4]: -0.50
+num[12,5]: 0.00
+num[12,6]: -1 (r: 0)
+num[12,7]: -1.00 (r: 0 - cmp: 1)
+num[12,8]: -1 (r: 0)
+num[12,9]: -1.00 (r: 0 - cmp: 1)
+num[12,10]: -0.5 (r: 0)
+num[12,11]: - (r: 0)
+num[12,12]: -0.50 (r: 0 - cmp: 0)
+
+endptr of 13 is not NULL
+num[13,1]: 1234567890123456789012345678.91
+num[13,2]: 1234567890123456789012345679
+num[13,3]: 1234567890123456789012345678.9
+num[13,4]: 1234567890123456789012345678.91
+num[13,5]: 0.00
+(errno == PGTYPES_NUM_OVERFLOW) - num[13,6]: 0 (r: -1)
+(errno == PGTYPES_NUM_OVERFLOW) - num[13,8]: 0 (r: -1)
+num[13,10]: 1.23457e+27 (r: 0)
+num[13,11]: - (r: 0)
+num[13,12]: 1234567890123456789012345678.91 (r: 0 - cmp: 0)
+
+endptr of 14 is not NULL
+num[14,1]: 1234567890123456789012345678.921
+num[14,2]: 1234567890123456789012345679
+num[14,3]: 1234567890123456789012345678.9
+num[14,4]: 1234567890123456789012345678.92
+num[14,5]: 0.00
+(errno == PGTYPES_NUM_OVERFLOW) - num[14,6]: 0 (r: -1)
+(errno == PGTYPES_NUM_OVERFLOW) - num[14,8]: 0 (r: -1)
+num[14,10]: 1.23457e+27 (r: 0)
+(errno == PGTYPES_NUM_OVERFLOW) - num[14,11]: - (r: -1)
+
+(errno == PGTYPES_NUM_BAD_NUMERIC) - endptr of 15 is not NULL
+*endptr of 15 is not \0
+num[a,0,0]: 40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[s,0,0]: 0.0000000000
+num[m,0,0]: 400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,0]: 1.0000000000
+num[a,0,1]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998.0000000000
+num[s,0,1]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002.0000000000
+num[m,0,1]: -40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,1]: -10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,0,2]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.7940000000
+num[s,0,2]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.2060000000
+num[m,0,2]: 15880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,2]: 25188916876574307304785894206549118387909319899244332493702770780856423173803526448362720403022670025188916876574307304785894206549118387909319899244332493702770780856423173803526448362720403022670025188916876574307304785894206549118387909319899244332493702770780856423173803526448362720403022670025188916876574307304785894206549118387909319899244332493702770780856423173803526448362720403022670.0251889000
+num[a,0,3]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003.4400000000
+num[s,0,3]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999996.5600000000
+num[m,0,3]: 68800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,3]: 5813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093023255813953488372093.0232560000
+num[a,0,4]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000592490000000000000000000.0000000000
+num[s,0,4]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999407510000000000000000000.0000000000
+num[m,0,4]: 11849800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,4]: 33755843980489122179277287380377727894141673277186112845786426775135445323971712602744350115613765633175243464024709277793718037435230974362436496818511704838900234603115664399399145977147293625208864284629276443484278215666087191345001603402589073233303515671150567942074971729480666340360174855271818933652888656348630356630491653867575824064541173690695201606778173471.2822000000
+num[a,0,5]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999671600.0000000000
+num[s,0,5]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000328400.0000000000
+num[m,0,5]: -6568000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,5]: -60901339829476248477466504263093788063337393422655298416565164433617539585870889159561510353227771010962241169305724725943970767356881851400730816077953714981729598051157125456760048721071863580998781973203410475030450669914738124238733252131546894031668696711327649208282582216808769792935444579780755176613885505481120584652862362971985383678440925700365408038976857490864799025578562728.3800000000
+num[a,0,6]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[s,0,6]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[m,0,6]: 4.0000000000
+num[d,0,6]: 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,0,7]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0010000000
+num[s,0,7]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.9990000000
+num[m,0,7]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,7]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,0,8]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[s,0,8]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[m,0,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,0,9]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.9999407510
+num[s,0,9]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000592490
+num[m,0,9]: -1184980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,9]: -337558439804891221792772873803777278941416732771861128457864267751354453239717126027443501156137656331752434640247092777937180374352309743624364968185117048389002346031156643993991459771472936252088642846292764434842782156660871913450016034025890732333035156711505679420749717294806663403601748552718189336528886563486303566304916538675758240645411736906952016067781734712822157335988793059798477611.4364799406
+num[a,0,10]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0032840000
+num[s,0,10]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.9967160000
+num[m,0,10]: 65680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,10]: 6090133982947624847746650426309378806333739342265529841656516443361753958587088915956151035322777101096224116930572472594397076735688185140073081607795371498172959805115712545676004872107186358099878197320341047503045066991473812423873325213154689403166869671132764920828258221680876979293544457978075517661388550548112058465286236297198538367844092570036540803897685749086479902557856272838002436.0535931790
+num[a,0,11]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.5000010000
+num[s,0,11]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.4999990000
+num[m,0,11]: 10000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,11]: 39999920000159999680000639998720002559994880010239979520040959918080163839672320655358689282621434757130485739028521942956114087771824456351087297825404349191301617396765206469587060825878348243303513392973214053571892856214287571424857150285699428601142797714404571190857618284763430473139053721892556214887570224859550280899438201123597752804494391011217977564044871910256179487641024717950564.0988718023
+num[a,0,12]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.4999999000
+num[s,0,12]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.5000001000
+num[m,0,12]: -10000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,12]: -39999992000001599999680000063999987200002559999488000102399979520004095999180800163839967232006553598689280262143947571210485757902848419430316113936777212644557471088505782298843540231291953741609251678149664370067125986574802685039462992107401578519684296063140787371842525631494873701025259794948041010391797921640415671916865616626876674624665075066984986603002679399464120107175978564804287.0391425922
+num[a,0,13]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567890123456789012345678.9100000000
+num[s,0,13]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998765432109876543210987654321.0900000000
+num[m,0,13]: 24691357802469135780246913578200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,13]: 16200000145800001326780012073583089868436639792144602011794432069173427871944627216535488452104037734402488812766825268543092076559937753306592463425498481952238394402210698594884666469792189859469175471551488967831431174229215285702844063565115973562205366453218447154498968406694142978268167639546201917272112583939026078314516169317627127550253962230423465305471042.6305370000
+num[a,0,14]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567890123456789012345678.9210000000
+num[s,0,14]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998765432109876543210987654321.0790000000
+num[m,0,14]: 24691357802469135780246913578420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,0,14]: 16200000145800001326780012073438747865838483756809679983855488190421495112429743605252505619668606245113387993074870449075163411519793685453399903975484793505772589916586682299621591493014451434717743879521702761509433606809200816287108380036339147553262638409152127519194255768451119299228069799803818551847328103399274511743550433402484767562070619244777160576307850.4589877000
+num[a,1,0]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998.0000000000
+num[s,1,0]: -20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002.0000000000
+num[m,1,0]: -40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,1,0]: -0.0000000000
+num[a,1,1]: -4.0000000000
+num[s,1,1]: 0.0000000000
+num[m,1,1]: 4.0000000000
+num[d,1,1]: 1.0000000000
+num[a,1,2]: -1.2060000000
+num[s,1,2]: -2.7940000000
+num[m,1,2]: -1.5880000000
+num[d,1,2]: -2.5188916877
+num[a,1,3]: 1.4400000000
+num[s,1,3]: -5.4400000000
+num[m,1,3]: -6.8800000000
+num[d,1,3]: -0.5813953488
+num[a,1,4]: 592489999999999999999998.0000000000
+num[s,1,4]: -592490000000000000000002.0000000000
+num[m,1,4]: -1184980000000000000000000.0000000000
+num[d,1,4]: -0.0000000000
+num[a,1,5]: -328402.0000000000
+num[s,1,5]: 328398.0000000000
+num[m,1,5]: 656800.0000000000
+num[d,1,5]: 0.0000060901
+num[a,1,6]: -2.0000000000
+num[s,1,6]: -2.0000000000
+num[m,1,6]: -0.0000000000
+num[d,1,6]: -10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,1,7]: -1.9990000000
+num[s,1,7]: -2.0010000000
+num[m,1,7]: -0.0020000000
+num[d,1,7]: -2000.0000000000
+num[a,1,8]: -2.0000000000
+num[s,1,8]: -2.0000000000
+num[m,1,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,1,9]: -2.0000592490
+num[s,1,9]: -1.9999407510
+num[m,1,9]: 0.0001184980
+num[d,1,9]: 33755.8439804891
+num[a,1,10]: -1.9967160000
+num[s,1,10]: -2.0032840000
+num[m,1,10]: -0.0065680000
+num[d,1,10]: -609.0133982948
+num[a,1,11]: -1.4999990000
+num[s,1,11]: -2.5000010000
+num[m,1,11]: -1.0000020000
+num[d,1,11]: -3.9999920000
+num[a,1,12]: -2.5000001000
+num[s,1,12]: -1.4999999000
+num[m,1,12]: 1.0000002000
+num[d,1,12]: 3.9999992000
+num[a,1,13]: 1234567890123456789012345676.9100000000
+num[s,1,13]: -1234567890123456789012345680.9100000000
+num[m,1,13]: -2469135780246913578024691357.8200000000
+num[d,1,13]: -0.0000000000
+num[a,1,14]: 1234567890123456789012345676.9210000000
+num[s,1,14]: -1234567890123456789012345680.9210000000
+num[m,1,14]: -2469135780246913578024691357.8420000000
+num[d,1,14]: -0.0000000000
+num[a,2,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.7940000000
+num[s,2,0]: -19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.2060000000
+num[m,2,0]: 15880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,2,0]: 0.0000000000
+num[a,2,1]: -1.2060000000
+num[s,2,1]: 2.7940000000
+num[m,2,1]: -1.5880000000
+num[d,2,1]: -0.3970000000
+num[a,2,2]: 1.5880000000
+num[s,2,2]: 0.0000000000
+num[m,2,2]: 0.6304360000
+num[d,2,2]: 1.0000000000
+num[a,2,3]: 4.2340000000
+num[s,2,3]: -2.6460000000
+num[m,2,3]: 2.7313600000
+num[d,2,3]: 0.2308139535
+num[a,2,4]: 592490000000000000000000.7940000000
+num[s,2,4]: -592489999999999999999999.2060000000
+num[m,2,4]: 470437060000000000000000.0000000000
+num[d,2,4]: 0.0000000000
+num[a,2,5]: -328399.2060000000
+num[s,2,5]: 328400.7940000000
+num[m,2,5]: -260749.6000000000
+num[d,2,5]: -0.0000024178
+num[a,2,6]: 0.7940000000
+num[s,2,6]: 0.7940000000
+num[m,2,6]: 0.0000000000
+num[d,2,6]: 3970000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,2,7]: 0.7950000000
+num[s,2,7]: 0.7930000000
+num[m,2,7]: 0.0007940000
+num[d,2,7]: 794.0000000000
+num[a,2,8]: 0.7940000000
+num[s,2,8]: 0.7940000000
+num[m,2,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,2,9]: 0.7939407510
+num[s,2,9]: 0.7940592490
+num[m,2,9]: -0.0000470437
+num[d,2,9]: -13401.0700602542
+num[a,2,10]: 0.7972840000
+num[s,2,10]: 0.7907160000
+num[m,2,10]: 0.0026074960
+num[d,2,10]: 241.7783191230
+num[a,2,11]: 1.2940010000
+num[s,2,11]: 0.2939990000
+num[m,2,11]: 0.3970007940
+num[d,2,11]: 1.5879968240
+num[a,2,12]: 0.2939999000
+num[s,2,12]: 1.2940001000
+num[m,2,12]: -0.3970000794
+num[d,2,12]: -1.5879996824
+num[a,2,13]: 1234567890123456789012345679.7040000000
+num[s,2,13]: -1234567890123456789012345678.1160000000
+num[m,2,13]: 980246904758024690475802469.0545400000
+num[d,2,13]: 0.0000000000
+num[a,2,14]: 1234567890123456789012345679.7150000000
+num[s,2,14]: -1234567890123456789012345678.1270000000
+num[m,2,14]: 980246904758024690475802469.0632740000
+num[d,2,14]: 0.0000000000
+num[a,3,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003.4400000000
+num[s,3,0]: -19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999996.5600000000
+num[m,3,0]: 68800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,3,0]: 0.0000000000
+num[a,3,1]: 1.4400000000
+num[s,3,1]: 5.4400000000
+num[m,3,1]: -6.8800000000
+num[d,3,1]: -1.7200000000
+num[a,3,2]: 4.2340000000
+num[s,3,2]: 2.6460000000
+num[m,3,2]: 2.7313600000
+num[d,3,2]: 4.3324937028
+num[a,3,3]: 6.8800000000
+num[s,3,3]: 0.0000000000
+num[m,3,3]: 11.8336000000
+num[d,3,3]: 1.0000000000
+num[a,3,4]: 592490000000000000000003.4400000000
+num[s,3,4]: -592489999999999999999996.5600000000
+num[m,3,4]: 2038165600000000000000000.0000000000
+num[d,3,4]: 0.0000000000
+num[a,3,5]: -328396.5600000000
+num[s,3,5]: 328403.4400000000
+num[m,3,5]: -1129696.0000000000
+num[d,3,5]: -0.0000104750
+num[a,3,6]: 3.4400000000
+num[s,3,6]: 3.4400000000
+num[m,3,6]: 0.0000000000
+num[d,3,6]: 17200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,3,7]: 3.4410000000
+num[s,3,7]: 3.4390000000
+num[m,3,7]: 0.0034400000
+num[d,3,7]: 3440.0000000000
+num[a,3,8]: 3.4400000000
+num[s,3,8]: 3.4400000000
+num[m,3,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,3,9]: 3.4399407510
+num[s,3,9]: 3.4400592490
+num[m,3,9]: -0.0002038166
+num[d,3,9]: -58060.0516464413
+num[a,3,10]: 3.4432840000
+num[s,3,10]: 3.4367160000
+num[m,3,10]: 0.0112969600
+num[d,3,10]: 1047.5030450670
+num[a,3,11]: 3.9400010000
+num[s,3,11]: 2.9399990000
+num[m,3,11]: 1.7200034400
+num[d,3,11]: 6.8799862400
+num[a,3,12]: 2.9399999000
+num[s,3,12]: 3.9400001000
+num[m,3,12]: -1.7200003440
+num[d,3,12]: -6.8799986240
+num[a,3,13]: 1234567890123456789012345682.3500000000
+num[s,3,13]: -1234567890123456789012345675.4700000000
+num[m,3,13]: 4246913542024691354202469135.4504000000
+num[d,3,13]: 0.0000000000
+num[a,3,14]: 1234567890123456789012345682.3610000000
+num[s,3,14]: -1234567890123456789012345675.4810000000
+num[m,3,14]: 4246913542024691354202469135.4882400000
+num[d,3,14]: 0.0000000000
+num[a,4,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000592490000000000000000000.0000000000
+num[s,4,0]: -19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999407510000000000000000000.0000000000
+num[m,4,0]: 11849800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,4,0]: 0.0000000000
+num[a,4,1]: 592489999999999999999998.0000000000
+num[s,4,1]: 592490000000000000000002.0000000000
+num[m,4,1]: -1184980000000000000000000.0000000000
+num[d,4,1]: -296245000000000000000000.0000000000
+num[a,4,2]: 592490000000000000000000.7940000000
+num[s,4,2]: 592489999999999999999999.2060000000
+num[m,4,2]: 470437060000000000000000.0000000000
+num[d,4,2]: 746209068010075566750629.7229219000
+num[a,4,3]: 592490000000000000000003.4400000000
+num[s,4,3]: 592489999999999999999996.5600000000
+num[m,4,3]: 2038165600000000000000000.0000000000
+num[d,4,3]: 172235465116279069767441.8604650000
+num[a,4,4]: 1184980000000000000000000.0000000000
+num[s,4,4]: 0.0000000000
+num[m,4,4]: 351044400100000000000000000000000000000000000000.0000000000
+num[d,4,4]: 1.0000000000
+num[a,4,5]: 592489999999999999671600.0000000000
+num[s,4,5]: 592490000000000000328400.0000000000
+num[m,4,5]: -194573716000000000000000000000.0000000000
+num[d,4,5]: -1804171741778319123.0207000000
+num[a,4,6]: 592490000000000000000000.0000000000
+num[s,4,6]: 592490000000000000000000.0000000000
+num[m,4,6]: 0.0000000000
+num[d,4,6]: 2962450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,4,7]: 592490000000000000000000.0010000000
+num[s,4,7]: 592489999999999999999999.9990000000
+num[m,4,7]: 592490000000000000000.0000000000
+num[d,4,7]: 592490000000000000000000000.0000000000
+num[a,4,8]: 592490000000000000000000.0000000000
+num[s,4,8]: 592490000000000000000000.0000000000
+num[m,4,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,4,9]: 592489999999999999999999.9999407510
+num[s,4,9]: 592490000000000000000000.0000592490
+num[m,4,9]: -35104440010000000000.0000000000
+num[d,4,9]: -10000000000000000000000000000.0000000000
+num[a,4,10]: 592490000000000000000000.0032840000
+num[s,4,10]: 592489999999999999999999.9967160000
+num[m,4,10]: 1945737160000000000000.0000000000
+num[d,4,10]: 180417174177831912302070645.5542021924
+num[a,4,11]: 592490000000000000000000.5000010000
+num[s,4,11]: 592489999999999999999999.4999990000
+num[m,4,11]: 296245592490000000000000.0000000000
+num[d,4,11]: 1184977630044739910520178.9596420807
+num[a,4,12]: 592489999999999999999999.4999999000
+num[s,4,12]: 592490000000000000000000.5000001000
+num[m,4,12]: -296245059249000000000000.0000000000
+num[d,4,12]: -1184979763004047399190520.1618959676
+num[a,4,13]: 1235160380123456789012345678.9100000000
+num[s,4,13]: -1233975400123456789012345678.9100000000
+num[m,4,13]: 731469129219246912921924691297385900000000000000000.0000000000
+num[d,4,13]: 0.0004799169
+num[a,4,14]: 1235160380123456789012345678.9210000000
+num[s,4,14]: -1233975400123456789012345678.9210000000
+num[m,4,14]: 731469129219246912921924691303903290000000000000000.0000000000
+num[d,4,14]: 0.0004799169
+num[a,5,0]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999671600.0000000000
+num[s,5,0]: -20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000328400.0000000000
+num[m,5,0]: -6568000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,5,0]: -0.0000000000
+num[a,5,1]: -328402.0000000000
+num[s,5,1]: -328398.0000000000
+num[m,5,1]: 656800.0000000000
+num[d,5,1]: 164200.0000000000
+num[a,5,2]: -328399.2060000000
+num[s,5,2]: -328400.7940000000
+num[m,5,2]: -260749.6000000000
+num[d,5,2]: -413602.0151133501
+num[a,5,3]: -328396.5600000000
+num[s,5,3]: -328403.4400000000
+num[m,5,3]: -1129696.0000000000
+num[d,5,3]: -95465.1162790698
+num[a,5,4]: 592489999999999999671600.0000000000
+num[s,5,4]: -592490000000000000328400.0000000000
+num[m,5,4]: -194573716000000000000000000000.0000000000
+num[d,5,4]: -0.0000000000
+num[a,5,5]: -656800.0000000000
+num[s,5,5]: 0.0000000000
+num[m,5,5]: 107846560000.0000000000
+num[d,5,5]: 1.0000000000
+num[a,5,6]: -328400.0000000000
+num[s,5,6]: -328400.0000000000
+num[m,5,6]: -0.0000000000
+num[d,5,6]: -1642000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,5,7]: -328399.9990000000
+num[s,5,7]: -328400.0010000000
+num[m,5,7]: -328.4000000000
+num[d,5,7]: -328400000.0000000000
+num[a,5,8]: -328400.0000000000
+num[s,5,8]: -328400.0000000000
+num[m,5,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,5,9]: -328400.0000592490
+num[s,5,9]: -328399.9999407510
+num[m,5,9]: 19.4573716000
+num[d,5,9]: 5542709581.5963138618
+num[a,5,10]: -328399.9967160000
+num[s,5,10]: -328400.0032840000
+num[m,5,10]: -1078.4656000000
+num[d,5,10]: -100000000.0000000000
+num[a,5,11]: -328399.4999990000
+num[s,5,11]: -328400.5000010000
+num[m,5,11]: -164200.3284000000
+num[d,5,11]: -656798.6864026272
+num[a,5,12]: -328400.5000001000
+num[s,5,12]: -328399.4999999000
+num[m,5,12]: 164200.0328400000
+num[d,5,12]: 656799.8686400263
+num[a,5,13]: 1234567890123456789012017278.9100000000
+num[s,5,13]: -1234567890123456789012674078.9100000000
+num[m,5,13]: -405432095116543209511654320954044.0000000000
+num[d,5,13]: -0.0000000000
+num[a,5,14]: 1234567890123456789012017278.9210000000
+num[s,5,14]: -1234567890123456789012674078.9210000000
+num[m,5,14]: -405432095116543209511654320957656.4000000000
+num[d,5,14]: -0.0000000000
+num[a,6,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[s,6,0]: -20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[m,6,0]: 4.0000000000
+num[d,6,0]: 0.0000000000
+num[a,6,1]: -2.0000000000
+num[s,6,1]: 2.0000000000
+num[m,6,1]: -0.0000000000
+num[d,6,1]: -0.0000000000
+num[a,6,2]: 0.7940000000
+num[s,6,2]: -0.7940000000
+num[m,6,2]: 0.0000000000
+num[d,6,2]: 0.0000000000
+num[a,6,3]: 3.4400000000
+num[s,6,3]: -3.4400000000
+num[m,6,3]: 0.0000000000
+num[d,6,3]: 0.0000000000
+num[a,6,4]: 592490000000000000000000.0000000000
+num[s,6,4]: -592490000000000000000000.0000000000
+num[m,6,4]: 0.0000000000
+num[d,6,4]: 0.0000000000
+num[a,6,5]: -328400.0000000000
+num[s,6,5]: 328400.0000000000
+num[m,6,5]: -0.0000000000
+num[d,6,5]: -0.0000000000
+num[a,6,6]: 0.0000000000
+num[s,6,6]: 0.0000000000
+num[m,6,6]: 0.0000000000
+num[d,6,6]: 1.0000000000
+num[a,6,7]: 0.0010000000
+num[s,6,7]: -0.0010000000
+num[m,6,7]: 0.0000000000
+num[d,6,7]: 0.0000000000
+num[a,6,8]: 0.0000000000
+num[s,6,8]: 0.0000000000
+num[m,6,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,6,9]: -0.0000592490
+num[s,6,9]: 0.0000592490
+num[m,6,9]: -0.0000000000
+num[d,6,9]: -0.0000000000
+num[a,6,10]: 0.0032840000
+num[s,6,10]: -0.0032840000
+num[m,6,10]: 0.0000000000
+num[d,6,10]: 0.0000000000
+num[a,6,11]: 0.5000010000
+num[s,6,11]: -0.5000010000
+num[m,6,11]: 0.0000000000
+num[d,6,11]: 0.0000000000
+num[a,6,12]: -0.5000001000
+num[s,6,12]: 0.5000001000
+num[m,6,12]: -0.0000000000
+num[d,6,12]: -0.0000000000
+num[a,6,13]: 1234567890123456789012345678.9100000000
+num[s,6,13]: -1234567890123456789012345678.9100000000
+num[m,6,13]: 0.0000000000
+num[d,6,13]: 0.0000000000
+num[a,6,14]: 1234567890123456789012345678.9210000000
+num[s,6,14]: -1234567890123456789012345678.9210000000
+num[m,6,14]: 0.0000000000
+num[d,6,14]: 0.0000000000
+num[a,7,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0010000000
+num[s,7,0]: -19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.9990000000
+num[m,7,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,7,0]: 0.0000000000
+num[a,7,1]: -1.9990000000
+num[s,7,1]: 2.0010000000
+num[m,7,1]: -0.0020000000
+num[d,7,1]: -0.0005000000
+num[a,7,2]: 0.7950000000
+num[s,7,2]: -0.7930000000
+num[m,7,2]: 0.0007940000
+num[d,7,2]: 0.0012594458
+num[a,7,3]: 3.4410000000
+num[s,7,3]: -3.4390000000
+num[m,7,3]: 0.0034400000
+num[d,7,3]: 0.0002906977
+num[a,7,4]: 592490000000000000000000.0010000000
+num[s,7,4]: -592489999999999999999999.9990000000
+num[m,7,4]: 592490000000000000000.0000000000
+num[d,7,4]: 0.0000000000
+num[a,7,5]: -328399.9990000000
+num[s,7,5]: 328400.0010000000
+num[m,7,5]: -328.4000000000
+num[d,7,5]: -0.0000000030
+num[a,7,6]: 0.0010000000
+num[s,7,6]: 0.0010000000
+num[m,7,6]: 0.0000000000
+num[d,7,6]: 5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,7,7]: 0.0020000000
+num[s,7,7]: 0.0000000000
+num[m,7,7]: 0.0000010000
+num[d,7,7]: 1.0000000000
+num[a,7,8]: 0.0010000000
+num[s,7,8]: 0.0010000000
+num[m,7,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,7,9]: 0.0009407510
+num[s,7,9]: 0.0010592490
+num[m,7,9]: -0.0000000592
+num[d,7,9]: -16.8779219902
+num[a,7,10]: 0.0042840000
+num[s,7,10]: -0.0022840000
+num[m,7,10]: 0.0000032840
+num[d,7,10]: 0.3045066991
+num[a,7,11]: 0.5010010000
+num[s,7,11]: -0.4990010000
+num[m,7,11]: 0.0005000010
+num[d,7,11]: 0.0019999960
+num[a,7,12]: -0.4990001000
+num[s,7,12]: 0.5010001000
+num[m,7,12]: -0.0005000001
+num[d,7,12]: -0.0019999996
+num[a,7,13]: 1234567890123456789012345678.9110000000
+num[s,7,13]: -1234567890123456789012345678.9090000000
+num[m,7,13]: 1234567890123456789012345.6789100000
+num[d,7,13]: 0.0000000000
+num[a,7,14]: 1234567890123456789012345678.9220000000
+num[s,7,14]: -1234567890123456789012345678.9200000000
+num[m,7,14]: 1234567890123456789012345.6789210000
+num[d,7,14]: 0.0000000000
+num[a,8,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[s,8,0]: -20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[m,8,0]: 0.0000000000
+num[d,8,0]: 0.0000000000
+num[a,8,1]: -2.0000000000
+num[s,8,1]: 2.0000000000
+num[m,8,1]: 0.0000000000
+num[d,8,1]: 0.0000000000
+num[a,8,2]: 0.7940000000
+num[s,8,2]: -0.7940000000
+num[m,8,2]: 0.0000000000
+num[d,8,2]: 0.0000000000
+num[a,8,3]: 3.4400000000
+num[s,8,3]: -3.4400000000
+num[m,8,3]: 0.0000000000
+num[d,8,3]: 0.0000000000
+num[a,8,4]: 592490000000000000000000.0000000000
+num[s,8,4]: -592490000000000000000000.0000000000
+num[m,8,4]: 0.0000000000
+num[d,8,4]: 0.0000000000
+num[a,8,5]: -328400.0000000000
+num[s,8,5]: 328400.0000000000
+num[m,8,5]: 0.0000000000
+num[d,8,5]: 0.0000000000
+num[a,8,6]: 0.0000000000
+num[s,8,6]: -0.0000000000
+num[m,8,6]: 0.0000000000
+num[d,8,6]: 0.0000000000
+num[a,8,7]: 0.0010000000
+num[s,8,7]: -0.0010000000
+num[m,8,7]: 0.0000000000
+num[d,8,7]: 0.0000000000
+num[a,8,8]: 0.0000000000
+num[s,8,8]: 0.0000000000
+num[m,8,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,8,9]: -0.0000592490
+num[s,8,9]: 0.0000592490
+num[m,8,9]: 0.0000000000
+num[d,8,9]: 0.0000000000
+num[a,8,10]: 0.0032840000
+num[s,8,10]: -0.0032840000
+num[m,8,10]: 0.0000000000
+num[d,8,10]: 0.0000000000
+num[a,8,11]: 0.5000010000
+num[s,8,11]: -0.5000010000
+num[m,8,11]: 0.0000000000
+num[d,8,11]: 0.0000000000
+num[a,8,12]: -0.5000001000
+num[s,8,12]: 0.5000001000
+num[m,8,12]: 0.0000000000
+num[d,8,12]: 0.0000000000
+num[a,8,13]: 1234567890123456789012345678.9100000000
+num[s,8,13]: -1234567890123456789012345678.9100000000
+num[m,8,13]: 0.0000000000
+num[d,8,13]: 0.0000000000
+num[a,8,14]: 1234567890123456789012345678.9210000000
+num[s,8,14]: -1234567890123456789012345678.9210000000
+num[m,8,14]: 0.0000000000
+num[d,8,14]: 0.0000000000
+num[a,9,0]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.9999407510
+num[s,9,0]: -20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000592490
+num[m,9,0]: -1184980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,9,0]: -0.0000000000
+num[a,9,1]: -2.0000592490
+num[s,9,1]: 1.9999407510
+num[m,9,1]: 0.0001184980
+num[d,9,1]: 0.0000296245
+num[a,9,2]: 0.7939407510
+num[s,9,2]: -0.7940592490
+num[m,9,2]: -0.0000470437
+num[d,9,2]: -0.0000746209
+num[a,9,3]: 3.4399407510
+num[s,9,3]: -3.4400592490
+num[m,9,3]: -0.0002038166
+num[d,9,3]: -0.0000172235
+num[a,9,4]: 592489999999999999999999.9999407510
+num[s,9,4]: -592490000000000000000000.0000592490
+num[m,9,4]: -35104440010000000000.0000000000
+num[d,9,4]: -0.0000000000
+num[a,9,5]: -328400.0000592490
+num[s,9,5]: 328399.9999407510
+num[m,9,5]: 19.4573716000
+num[d,9,5]: 0.0000000002
+num[a,9,6]: -0.0000592490
+num[s,9,6]: -0.0000592490
+num[m,9,6]: -0.0000000000
+num[d,9,6]: -296245000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,9,7]: 0.0009407510
+num[s,9,7]: -0.0010592490
+num[m,9,7]: -0.0000000592
+num[d,9,7]: -0.0592490000
+num[a,9,8]: -0.0000592490
+num[s,9,8]: -0.0000592490
+num[m,9,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,9,9]: -0.0001184980
+num[s,9,9]: 0.0000000000
+num[m,9,9]: 0.0000000035
+num[d,9,9]: 1.0000000000
+num[a,9,10]: 0.0032247510
+num[s,9,10]: -0.0033432490
+num[m,9,10]: -0.0000001946
+num[d,9,10]: -0.0180417174
+num[a,9,11]: 0.4999417510
+num[s,9,11]: -0.5000602490
+num[m,9,11]: -0.0000296246
+num[d,9,11]: -0.0001184978
+num[a,9,12]: -0.5000593490
+num[s,9,12]: 0.4999408510
+num[m,9,12]: 0.0000296245
+num[d,9,12]: 0.0001184980
+num[a,9,13]: 1234567890123456789012345678.9099407510
+num[s,9,13]: -1234567890123456789012345678.9100592490
+num[m,9,13]: -73146912921924691292192.4691297386
+num[d,9,13]: -0.0000000000
+num[a,9,14]: 1234567890123456789012345678.9209407510
+num[s,9,14]: -1234567890123456789012345678.9210592490
+num[m,9,14]: -73146912921924691292192.4691303903
+num[d,9,14]: -0.0000000000
+num[a,10,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0032840000
+num[s,10,0]: -19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.9967160000
+num[m,10,0]: 65680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,10,0]: 0.0000000000
+num[a,10,1]: -1.9967160000
+num[s,10,1]: 2.0032840000
+num[m,10,1]: -0.0065680000
+num[d,10,1]: -0.0016420000
+num[a,10,2]: 0.7972840000
+num[s,10,2]: -0.7907160000
+num[m,10,2]: 0.0026074960
+num[d,10,2]: 0.0041360202
+num[a,10,3]: 3.4432840000
+num[s,10,3]: -3.4367160000
+num[m,10,3]: 0.0112969600
+num[d,10,3]: 0.0009546512
+num[a,10,4]: 592490000000000000000000.0032840000
+num[s,10,4]: -592489999999999999999999.9967160000
+num[m,10,4]: 1945737160000000000000.0000000000
+num[d,10,4]: 0.0000000000
+num[a,10,5]: -328399.9967160000
+num[s,10,5]: 328400.0032840000
+num[m,10,5]: -1078.4656000000
+num[d,10,5]: -0.0000000100
+num[a,10,6]: 0.0032840000
+num[s,10,6]: 0.0032840000
+num[m,10,6]: 0.0000000000
+num[d,10,6]: 16420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,10,7]: 0.0042840000
+num[s,10,7]: 0.0022840000
+num[m,10,7]: 0.0000032840
+num[d,10,7]: 3.2840000000
+num[a,10,8]: 0.0032840000
+num[s,10,8]: 0.0032840000
+num[m,10,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,10,9]: 0.0032247510
+num[s,10,9]: 0.0033432490
+num[m,10,9]: -0.0000001946
+num[d,10,9]: -55.4270958160
+num[a,10,10]: 0.0065680000
+num[s,10,10]: 0.0000000000
+num[m,10,10]: 0.0000107847
+num[d,10,10]: 1.0000000000
+num[a,10,11]: 0.5032850000
+num[s,10,11]: -0.4967170000
+num[m,10,11]: 0.0016420033
+num[d,10,11]: 0.0065679869
+num[a,10,12]: -0.4967161000
+num[s,10,12]: 0.5032841000
+num[m,10,12]: -0.0016420003
+num[d,10,12]: -0.0065679987
+num[a,10,13]: 1234567890123456789012345678.9132840000
+num[s,10,13]: -1234567890123456789012345678.9067160000
+num[m,10,13]: 4054320951165432095116543.2095404400
+num[d,10,13]: 0.0000000000
+num[a,10,14]: 1234567890123456789012345678.9242840000
+num[s,10,14]: -1234567890123456789012345678.9177160000
+num[m,10,14]: 4054320951165432095116543.2095765640
+num[d,10,14]: 0.0000000000
+num[a,11,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.5000010000
+num[s,11,0]: -19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.4999990000
+num[m,11,0]: 10000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,11,0]: 0.0000000000
+num[a,11,1]: -1.4999990000
+num[s,11,1]: 2.5000010000
+num[m,11,1]: -1.0000020000
+num[d,11,1]: -0.2500005000
+num[a,11,2]: 1.2940010000
+num[s,11,2]: -0.2939990000
+num[m,11,2]: 0.3970007940
+num[d,11,2]: 0.6297241814
+num[a,11,3]: 3.9400010000
+num[s,11,3]: -2.9399990000
+num[m,11,3]: 1.7200034400
+num[d,11,3]: 0.1453491279
+num[a,11,4]: 592490000000000000000000.5000010000
+num[s,11,4]: -592489999999999999999999.4999990000
+num[m,11,4]: 296245592490000000000000.0000000000
+num[d,11,4]: 0.0000000000
+num[a,11,5]: -328399.4999990000
+num[s,11,5]: 328400.5000010000
+num[m,11,5]: -164200.3284000000
+num[d,11,5]: -0.0000015225
+num[a,11,6]: 0.5000010000
+num[s,11,6]: 0.5000010000
+num[m,11,6]: 0.0000000000
+num[d,11,6]: 2500005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,11,7]: 0.5010010000
+num[s,11,7]: 0.4990010000
+num[m,11,7]: 0.0005000010
+num[d,11,7]: 500.0010000000
+num[a,11,8]: 0.5000010000
+num[s,11,8]: 0.5000010000
+num[m,11,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,11,9]: 0.4999417510
+num[s,11,9]: 0.5000602490
+num[m,11,9]: -0.0000296246
+num[d,11,9]: -8438.9778730443
+num[a,11,10]: 0.5032850000
+num[s,11,10]: 0.4967170000
+num[m,11,10]: 0.0016420033
+num[d,11,10]: 152.2536540804
+num[a,11,11]: 1.0000020000
+num[s,11,11]: 0.0000000000
+num[m,11,11]: 0.2500010000
+num[d,11,11]: 1.0000000000
+num[a,11,12]: 0.0000009000
+num[s,11,12]: 1.0000011000
+num[m,11,12]: -0.2500005500
+num[d,11,12]: -1.0000018000
+num[a,11,13]: 1234567890123456789012345679.4100010000
+num[s,11,13]: -1234567890123456789012345678.4099990000
+num[m,11,13]: 617285179629618517962961851.8006789100
+num[d,11,13]: 0.0000000000
+num[a,11,14]: 1234567890123456789012345679.4210010000
+num[s,11,14]: -1234567890123456789012345678.4209990000
+num[m,11,14]: 617285179629618517962961851.8061789210
+num[d,11,14]: 0.0000000000
+num[a,12,0]: 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.4999999000
+num[s,12,0]: -20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.5000001000
+num[m,12,0]: -10000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,12,0]: -0.0000000000
+num[a,12,1]: -2.5000001000
+num[s,12,1]: 1.4999999000
+num[m,12,1]: 1.0000002000
+num[d,12,1]: 0.2500000500
+num[a,12,2]: 0.2939999000
+num[s,12,2]: -1.2940001000
+num[m,12,2]: -0.3970000794
+num[d,12,2]: -0.6297230479
+num[a,12,3]: 2.9399999000
+num[s,12,3]: -3.9400001000
+num[m,12,3]: -1.7200003440
+num[d,12,3]: -0.1453488663
+num[a,12,4]: 592489999999999999999999.4999999000
+num[s,12,4]: -592490000000000000000000.5000001000
+num[m,12,4]: -296245059249000000000000.0000000000
+num[d,12,4]: -0.0000000000
+num[a,12,5]: -328400.5000001000
+num[s,12,5]: 328399.4999999000
+num[m,12,5]: 164200.0328400000
+num[d,12,5]: 0.0000015225
+num[a,12,6]: -0.5000001000
+num[s,12,6]: -0.5000001000
+num[m,12,6]: -0.0000000000
+num[d,12,6]: -2500000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,12,7]: -0.4990001000
+num[s,12,7]: -0.5010001000
+num[m,12,7]: -0.0005000001
+num[d,12,7]: -500.0001000000
+num[a,12,8]: -0.5000001000
+num[s,12,8]: -0.5000001000
+num[m,12,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,12,9]: -0.5000593490
+num[s,12,9]: -0.4999408510
+num[m,12,9]: 0.0000296245
+num[d,12,9]: 8438.9626829145
+num[a,12,10]: -0.4967161000
+num[s,12,10]: -0.5032841000
+num[m,12,10]: -0.0016420003
+num[d,12,10]: -152.2533800244
+num[a,12,11]: 0.0000009000
+num[s,12,11]: -1.0000011000
+num[m,12,11]: -0.2500005500
+num[d,12,11]: -0.9999982000
+num[a,12,12]: -1.0000002000
+num[s,12,12]: 0.0000000000
+num[m,12,12]: 0.2500001000
+num[d,12,12]: 1.0000000000
+num[a,12,13]: 1234567890123456789012345678.4099999000
+num[s,12,13]: -1234567890123456789012345679.4100001000
+num[m,12,13]: -617284068518517406851851740.6895678910
+num[d,12,13]: -0.0000000000
+num[a,12,14]: 1234567890123456789012345678.4209999000
+num[s,12,14]: -1234567890123456789012345679.4210001000
+num[m,12,14]: -617284068518517406851851740.6950678921
+num[d,12,14]: -0.0000000000
+num[a,13,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567890123456789012345678.9100000000
+num[s,13,0]: -19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998765432109876543210987654321.0900000000
+num[m,13,0]: 24691357802469135780246913578200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,13,0]: 0.0000000000
+num[a,13,1]: 1234567890123456789012345676.9100000000
+num[s,13,1]: 1234567890123456789012345680.9100000000
+num[m,13,1]: -2469135780246913578024691357.8200000000
+num[d,13,1]: -617283945061728394506172839.4550000000
+num[a,13,2]: 1234567890123456789012345679.7040000000
+num[s,13,2]: 1234567890123456789012345678.1160000000
+num[m,13,2]: 980246904758024690475802469.0545400000
+num[d,13,2]: 1554871398140373789688092794.5969773000
+num[a,13,3]: 1234567890123456789012345682.3500000000
+num[s,13,3]: 1234567890123456789012345675.4700000000
+num[m,13,3]: 4246913542024691354202469135.4504000000
+num[d,13,3]: 358886014570772322387309790.3808140000
+num[a,13,4]: 1235160380123456789012345678.9100000000
+num[s,13,4]: 1233975400123456789012345678.9100000000
+num[m,13,4]: 731469129219246912921924691297385900000000000000000.0000000000
+num[d,13,4]: 2083.6940541165
+num[a,13,5]: 1234567890123456789012017278.9100000000
+num[s,13,5]: 1234567890123456789012674078.9100000000
+num[m,13,5]: -405432095116543209511654320954044.0000000000
+num[d,13,5]: -3759341930948406787491.9174140000
+num[a,13,6]: 1234567890123456789012345678.9100000000
+num[s,13,6]: 1234567890123456789012345678.9100000000
+num[m,13,6]: 0.0000000000
+num[d,13,6]: 6172839450617283945061728394550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,13,7]: 1234567890123456789012345678.9110000000
+num[s,13,7]: 1234567890123456789012345678.9090000000
+num[m,13,7]: 1234567890123456789012345.6789100000
+num[d,13,7]: 1234567890123456789012345678910.0000000000
+num[a,13,8]: 1234567890123456789012345678.9100000000
+num[s,13,8]: 1234567890123456789012345678.9100000000
+num[m,13,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,13,9]: 1234567890123456789012345678.9099407510
+num[s,13,9]: 1234567890123456789012345678.9100592490
+num[m,13,9]: -73146912921924691292192.4691297386
+num[d,13,9]: -20836940541164522422527733445458.9950885247
+num[a,13,10]: 1234567890123456789012345678.9132840000
+num[s,13,10]: 1234567890123456789012345678.9067160000
+num[m,13,10]: 4054320951165432095116543.2095404400
+num[d,13,10]: 375934193094840678749191741446.4068209501
+num[a,13,11]: 1234567890123456789012345679.4100010000
+num[s,13,11]: 1234567890123456789012345678.4099990000
+num[m,13,11]: 617285179629618517962961851.8006789100
+num[d,13,11]: 2469130841985229607565476226.8675462649
+num[a,13,12]: 1234567890123456789012345678.4099999000
+num[s,13,12]: 1234567890123456789012345679.4100001000
+num[m,13,12]: -617284068518517406851851740.6895678910
+num[d,13,12]: -2469135286419856294053432547.1334905733
+num[a,13,13]: 2469135780246913578024691357.8200000000
+num[s,13,13]: 0.0000000000
+num[m,13,13]: 1524157875323883675049535156278311236552659655767748818.7881000000
+num[d,13,13]: 1.0000000000
+num[a,13,14]: 2469135780246913578024691357.8310000000
+num[s,13,14]: -0.0110000000
+num[m,13,14]: 1524157875323883675049535156291891483344017680446884621.2561100000
+num[d,13,14]: 1.0000000000
+num[a,14,0]: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567890123456789012345678.9210000000
+num[s,14,0]: -19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998765432109876543210987654321.0790000000
+num[m,14,0]: 24691357802469135780246913578420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[d,14,0]: 0.0000000000
+num[a,14,1]: 1234567890123456789012345676.9210000000
+num[s,14,1]: 1234567890123456789012345680.9210000000
+num[m,14,1]: -2469135780246913578024691357.8420000000
+num[d,14,1]: -617283945061728394506172839.4605000000
+num[a,14,2]: 1234567890123456789012345679.7150000000
+num[s,14,2]: 1234567890123456789012345678.1270000000
+num[m,14,2]: 980246904758024690475802469.0632740000
+num[d,14,2]: 1554871398140373789688092794.6108312000
+num[a,14,3]: 1234567890123456789012345682.3610000000
+num[s,14,3]: 1234567890123456789012345675.4810000000
+num[m,14,3]: 4246913542024691354202469135.4882400000
+num[d,14,3]: 358886014570772322387309790.3840116000
+num[a,14,4]: 1235160380123456789012345678.9210000000
+num[s,14,4]: 1233975400123456789012345678.9210000000
+num[m,14,4]: 731469129219246912921924691303903290000000000000000.0000000000
+num[d,14,4]: 2083.6940541165
+num[a,14,5]: 1234567890123456789012017278.9210000000
+num[s,14,5]: 1234567890123456789012674078.9210000000
+num[m,14,5]: -405432095116543209511654320957656.4000000000
+num[d,14,5]: -3759341930948406787491.9174145000
+num[a,14,6]: 1234567890123456789012345678.9210000000
+num[s,14,6]: 1234567890123456789012345678.9210000000
+num[m,14,6]: 0.0000000000
+num[d,14,6]: 6172839450617283945061728394605000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000
+num[a,14,7]: 1234567890123456789012345678.9220000000
+num[s,14,7]: 1234567890123456789012345678.9200000000
+num[m,14,7]: 1234567890123456789012345.6789210000
+num[d,14,7]: 1234567890123456789012345678921.0000000000
+num[a,14,8]: 1234567890123456789012345678.9210000000
+num[s,14,8]: 1234567890123456789012345678.9210000000
+num[m,14,8]: 0.0000000000
+(errno == PGTYPES_NUM_DIVIDE_ZERO) - r: -1
+num[a,14,9]: 1234567890123456789012345678.9209407510
+num[s,14,9]: 1234567890123456789012345678.9210592490
+num[m,14,9]: -73146912921924691292192.4691303903
+num[d,14,9]: -20836940541164522422527733445644.6522304174
+num[a,14,10]: 1234567890123456789012345678.9242840000
+num[s,14,10]: 1234567890123456789012345678.9177160000
+num[m,14,10]: 4054320951165432095116543.2095765640
+num[d,14,10]: 375934193094840678749191741449.7563946407
+num[a,14,11]: 1234567890123456789012345679.4210010000
+num[s,14,11]: 1234567890123456789012345678.4209990000
+num[m,14,11]: 617285179629618517962961851.8061789210
+num[d,14,11]: 2469130841985229607565476226.8895462209
+num[a,14,12]: 1234567890123456789012345678.4209999000
+num[s,14,12]: 1234567890123456789012345679.4210001000
+num[m,14,12]: -617284068518517406851851740.6950678921
+num[d,14,12]: -2469135286419856294053432547.1554905689
+num[a,14,13]: 2469135780246913578024691357.8310000000
+num[s,14,13]: 0.0110000000
+num[m,14,13]: 1524157875323883675049535156291891483344017680446884621.2561100000
+num[d,14,13]: 1.0000000000
+num[a,14,14]: 2469135780246913578024691357.8420000000
+num[s,14,14]: 0.0000000000
+num[m,14,14]: 1524157875323883675049535156305471730135375705126020423.7242410000
+num[d,14,14]: 1.0000000000
+0: 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+1: -2
+2: 0.794
+3: 3.44
+4: 592490000000000000000000
+5: -328400
+6: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002
+7: 0.001
+8: 0.0
+9: -0.000059249
+10: 0.003284
+11: 0.500001
+12: -0.5000001
+13: 1234567890123456789012345678.91
+14: 1234567890123456789012345678.921
diff --git a/src/interfaces/ecpg/test/expected/preproc-array_of_struct.c b/src/interfaces/ecpg/test/expected/preproc-array_of_struct.c
new file mode 100644
index 0000000..1cf3710
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-array_of_struct.c
@@ -0,0 +1,288 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "array_of_struct.pgc"
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 3 "array_of_struct.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 5 "array_of_struct.pgc"
+
+/* exec sql whenever sql_warning sqlprint ; */
+#line 6 "array_of_struct.pgc"
+
+/* exec sql whenever not found sqlprint ; */
+#line 7 "array_of_struct.pgc"
+
+
+typedef struct {
+#line 12 "array_of_struct.pgc"
+ struct varchar_1 { int len; char arr[ 50 ]; } name ;
+
+#line 13 "array_of_struct.pgc"
+ int phone ;
+ } customer ;
+#line 14 "array_of_struct.pgc"
+
+
+typedef struct ind {
+#line 19 "array_of_struct.pgc"
+ short name_ind ;
+
+#line 20 "array_of_struct.pgc"
+ short phone_ind ;
+ } cust_ind ;
+#line 21 "array_of_struct.pgc"
+
+
+int main()
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+ typedef struct {
+#line 30 "array_of_struct.pgc"
+ struct varchar_2 { int len; char arr[ 50 ]; } name ;
+
+#line 31 "array_of_struct.pgc"
+ int phone ;
+ } customer2 ;
+
+#line 32 "array_of_struct.pgc"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#line 26 "array_of_struct.pgc"
+ customer custs1 [ 10 ] ;
+
+#line 27 "array_of_struct.pgc"
+ cust_ind inds [ 10 ] ;
+
+#line 33 "array_of_struct.pgc"
+ customer2 custs2 [ 10 ] ;
+
+#line 38 "array_of_struct.pgc"
+ struct customer3 {
+#line 36 "array_of_struct.pgc"
+ struct varchar_3 { int len; char arr[ 50 ]; } name ;
+
+#line 37 "array_of_struct.pgc"
+ int phone ;
+ } custs3 [ 10 ] ;
+
+#line 43 "array_of_struct.pgc"
+ struct customer4 {
+#line 41 "array_of_struct.pgc"
+ struct varchar_4 { int len; char arr[ 50 ]; } name ;
+
+#line 42 "array_of_struct.pgc"
+ int phone ;
+ } custs4 ;
+
+#line 44 "array_of_struct.pgc"
+ int r ;
+
+#line 45 "array_of_struct.pgc"
+ struct varchar_5 { int len; char arr[ 50 ]; } onlyname [ 2 ] ;
+/* exec sql end declare section */
+#line 46 "array_of_struct.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 50 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 50 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 50 "array_of_struct.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table customers ( c varchar ( 50 ) , p int )", ECPGt_EOIT, ECPGt_EORT);
+#line 52 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 52 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 52 "array_of_struct.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into customers values ( 'John Doe' , '12345' )", ECPGt_EOIT, ECPGt_EORT);
+#line 53 "array_of_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 53 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 53 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 53 "array_of_struct.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into customers values ( 'Jane Doe' , '67890' )", ECPGt_EOIT, ECPGt_EORT);
+#line 54 "array_of_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 54 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 54 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 54 "array_of_struct.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from customers limit 2", ECPGt_EOIT,
+ ECPGt_varchar,&(custs1->name),(long)50,(long)10,sizeof( customer ),
+ ECPGt_short,&(inds->name_ind),(long)1,(long)10,sizeof( struct ind ),
+ ECPGt_int,&(custs1->phone),(long)1,(long)10,sizeof( customer ),
+ ECPGt_short,&(inds->phone_ind),(long)1,(long)10,sizeof( struct ind ), ECPGt_EORT);
+#line 56 "array_of_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 56 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 56 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 56 "array_of_struct.pgc"
+
+ printf("custs1:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs1[r].name.arr );
+ printf( "phone - %d\n", custs1[r].phone );
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from customers limit 2", ECPGt_EOIT,
+ ECPGt_varchar,&(custs2->name),(long)50,(long)10,sizeof( customer2 ),
+ ECPGt_short,&(inds->name_ind),(long)1,(long)10,sizeof( struct ind ),
+ ECPGt_int,&(custs2->phone),(long)1,(long)10,sizeof( customer2 ),
+ ECPGt_short,&(inds->phone_ind),(long)1,(long)10,sizeof( struct ind ), ECPGt_EORT);
+#line 64 "array_of_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 64 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 64 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 64 "array_of_struct.pgc"
+
+ printf("\ncusts2:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs2[r].name.arr );
+ printf( "phone - %d\n", custs2[r].phone );
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from customers limit 2", ECPGt_EOIT,
+ ECPGt_varchar,&(custs3->name),(long)50,(long)10,sizeof( struct customer3 ),
+ ECPGt_short,&(inds->name_ind),(long)1,(long)10,sizeof( struct ind ),
+ ECPGt_int,&(custs3->phone),(long)1,(long)10,sizeof( struct customer3 ),
+ ECPGt_short,&(inds->phone_ind),(long)1,(long)10,sizeof( struct ind ), ECPGt_EORT);
+#line 72 "array_of_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 72 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 72 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 72 "array_of_struct.pgc"
+
+ printf("\ncusts3:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs3[r].name.arr );
+ printf( "phone - %d\n", custs3[r].phone );
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from customers limit 1", ECPGt_EOIT,
+ ECPGt_varchar,&(custs4.name),(long)50,(long)1,sizeof( struct customer4 ),
+ ECPGt_short,&(inds[0].name_ind),(long)1,(long)1,sizeof( struct ind ),
+ ECPGt_int,&(custs4.phone),(long)1,(long)1,sizeof( struct customer4 ),
+ ECPGt_short,&(inds[0].phone_ind),(long)1,(long)1,sizeof( struct ind ), ECPGt_EORT);
+#line 80 "array_of_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 80 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 80 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 80 "array_of_struct.pgc"
+
+ printf("\ncusts4:\n");
+ printf( "name - %s\n", custs4.name.arr );
+ printf( "phone - %d\n", custs4.phone );
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select c from customers limit 2", ECPGt_EOIT,
+ ECPGt_varchar,(onlyname),(long)50,(long)2,sizeof(struct varchar_5),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 85 "array_of_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 85 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 85 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 85 "array_of_struct.pgc"
+
+ printf("\nname:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", onlyname[r].arr );
+ }
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 92 "array_of_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 92 "array_of_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 92 "array_of_struct.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-array_of_struct.stderr b/src/interfaces/ecpg/test/expected/preproc-array_of_struct.stderr
new file mode 100644
index 0000000..64aa462
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-array_of_struct.stderr
@@ -0,0 +1,86 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: query: create table customers ( c varchar ( 50 ) , p int ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 52: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: query: insert into customers values ( 'John Doe' , '12345' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 53: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 54: query: insert into customers values ( 'Jane Doe' , '67890' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 54: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 54: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: select * from customers limit 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: correctly got 2 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: Jane Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: 12345 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 56: RESULT: 67890 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: query: select * from customers limit 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 64: correctly got 2 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 64: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 64: RESULT: Jane Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 64: RESULT: 12345 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 64: RESULT: 67890 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 72: query: select * from customers limit 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 72: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 72: correctly got 2 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 72: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 72: RESULT: Jane Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 72: RESULT: 12345 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 72: RESULT: 67890 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 80: query: select * from customers limit 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 80: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 80: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 80: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 80: RESULT: 12345 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: query: select c from customers limit 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 85: correctly got 2 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 85: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 85: RESULT: Jane Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-array_of_struct.stdout b/src/interfaces/ecpg/test/expected/preproc-array_of_struct.stdout
new file mode 100644
index 0000000..23f41ff
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-array_of_struct.stdout
@@ -0,0 +1,25 @@
+custs1:
+name - John Doe
+phone - 12345
+name - Jane Doe
+phone - 67890
+
+custs2:
+name - John Doe
+phone - 12345
+name - Jane Doe
+phone - 67890
+
+custs3:
+name - John Doe
+phone - 12345
+name - Jane Doe
+phone - 67890
+
+custs4:
+name - John Doe
+phone - 12345
+
+name:
+name - John Doe
+name - Jane Doe
diff --git a/src/interfaces/ecpg/test/expected/preproc-autoprep.c b/src/interfaces/ecpg/test/expected/preproc-autoprep.c
new file mode 100644
index 0000000..8ed5a2c
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-autoprep.c
@@ -0,0 +1,256 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "autoprep.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+/* test automatic prepare for all statements */
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "autoprep.pgc"
+
+
+static void test(void) {
+ /* exec sql begin declare section */
+
+
+
+
+#line 10 "autoprep.pgc"
+ int item [ 4 ] , ind [ 4 ] , i = 1 ;
+
+#line 11 "autoprep.pgc"
+ int item1 , ind1 ;
+
+#line 12 "autoprep.pgc"
+ char sqlstr [ 64 ] = "SELECT item2 FROM T ORDER BY item2 NULLS LAST" ;
+/* exec sql end declare section */
+#line 13 "autoprep.pgc"
+
+
+ ECPGdebug(1, stderr);
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 16 "autoprep.pgc"
+
+
+ /* exec sql whenever sql_warning sqlprint ; */
+#line 18 "autoprep.pgc"
+
+ /* exec sql whenever sqlerror sqlprint ; */
+#line 19 "autoprep.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table T ( Item1 int , Item2 int )", ECPGt_EOIT, ECPGt_EORT);
+#line 21 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 21 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 21 "autoprep.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_prepnormal, "insert into T values ( 1 , null )", ECPGt_EOIT, ECPGt_EORT);
+#line 23 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 23 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 23 "autoprep.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_prepnormal, "insert into T values ( 1 , $1 )",
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 24 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 24 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 24 "autoprep.pgc"
+
+ i++;
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_prepnormal, "insert into T values ( 1 , $1 )",
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 26 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 26 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 26 "autoprep.pgc"
+
+ { ECPGprepare(__LINE__, NULL, 0, "i", " insert into T values ( 1 , 2 ) ");
+#line 27 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 27 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 27 "autoprep.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "i", ECPGt_EOIT, ECPGt_EORT);
+#line 28 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 28 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 28 "autoprep.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_prepnormal, "select Item2 from T order by Item2 nulls last", ECPGt_EOIT,
+ ECPGt_int,(item),(long)1,(long)4,sizeof(int),
+ ECPGt_int,(ind),(long)1,(long)4,sizeof(int), ECPGt_EORT);
+#line 30 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 30 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 30 "autoprep.pgc"
+
+
+ for (i=0; i<4; i++)
+ printf("item[%d] = %d\n", i, ind[i] ? -1 : item[i]);
+
+ /* declare C cursor for select Item1 from T */
+#line 35 "autoprep.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare C cursor for select Item1 from T", ECPGt_EOIT, ECPGt_EORT);
+#line 37 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 37 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 37 "autoprep.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch 1 in C", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 39 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 39 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 39 "autoprep.pgc"
+
+ printf("i = %d\n", i);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close C", ECPGt_EOIT, ECPGt_EORT);
+#line 42 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 42 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 42 "autoprep.pgc"
+
+
+ { ECPGprepare(__LINE__, NULL, 0, "stmt1", sqlstr);
+#line 44 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 44 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 44 "autoprep.pgc"
+
+
+ /* declare cur1 cursor for $1 */
+#line 46 "autoprep.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare cur1 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "stmt1", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 48 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 48 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 48 "autoprep.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 50 "autoprep.pgc"
+
+
+ i = 0;
+ while (i < 100)
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch cur1", ECPGt_EOIT,
+ ECPGt_int,&(item1),(long)1,(long)1,sizeof(int),
+ ECPGt_int,&(ind1),(long)1,(long)1,sizeof(int), ECPGt_EORT);
+#line 55 "autoprep.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 55 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 55 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 55 "autoprep.pgc"
+
+ printf("item[%d] = %d\n", i, ind1 ? -1 : item1);
+ i++;
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close cur1", ECPGt_EOIT, ECPGt_EORT);
+#line 60 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 60 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 60 "autoprep.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table T", ECPGt_EOIT, ECPGt_EORT);
+#line 62 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 62 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 62 "autoprep.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 64 "autoprep.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 64 "autoprep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 64 "autoprep.pgc"
+
+}
+
+int main() {
+ test();
+ test(); /* retry */
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-autoprep.stderr b/src/interfaces/ecpg/test/expected/preproc-autoprep.stderr
new file mode 100644
index 0000000..bfeea59
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-autoprep.stderr
@@ -0,0 +1,320 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 21: query: create table T ( Item1 int , Item2 int ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 21: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 21: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_auto_prepare on line 23: statement not in cache; inserting
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 23: name ecpg1; query: "insert into T values ( 1 , null )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: query: insert into T values ( 1 , null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: using PQexecPrepared for "insert into T values ( 1 , null )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 23: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_auto_prepare on line 24: statement not in cache; inserting
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 24: name ecpg2; query: "insert into T values ( 1 , $1 )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: insert into T values ( 1 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexecPrepared for "insert into T values ( 1 , $1 )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 24: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_auto_prepare on line 26: statement found in cache; entry 1633
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into T values ( 1 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecPrepared for "insert into T values ( 1 , $1 )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 27: name i; query: " insert into T values ( 1 , 2 ) "
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: insert into T values ( 1 , 2 ) ; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: using PQexecPrepared for " insert into T values ( 1 , 2 ) "
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 28: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_auto_prepare on line 30: statement not in cache; inserting
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 30: name ecpg3; query: "select Item2 from T order by Item2 nulls last"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: select Item2 from T order by Item2 nulls last; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexecPrepared for "select Item2 from T order by Item2 nulls last"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: correctly got 4 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 30: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 30: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 30: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 30: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: query: declare C cursor for select Item1 from T; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 37: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: fetch 1 in C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 39: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 39: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: query: close C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 44: name stmt1; query: "SELECT item2 FROM T ORDER BY item2 NULLS LAST"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: declare cur1 cursor for SELECT item2 FROM T ORDER BY item2 NULLS LAST; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 55: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 55: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 55: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 55: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 0 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 55: no data found on line 55
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 60: query: close cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 60: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 62: query: drop table T; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 62: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 62: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name stmt1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name ecpg3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name i
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name ecpg2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name ecpg1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 21: query: create table T ( Item1 int , Item2 int ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 21: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 21: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_auto_prepare on line 23: statement found in cache; entry 15321
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 23: name ecpg1; query: "insert into T values ( 1 , null )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: query: insert into T values ( 1 , null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: using PQexecPrepared for "insert into T values ( 1 , null )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 23: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_auto_prepare on line 24: statement found in cache; entry 1633
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 24: name ecpg2; query: "insert into T values ( 1 , $1 )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: insert into T values ( 1 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexecPrepared for "insert into T values ( 1 , $1 )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 24: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_auto_prepare on line 26: statement found in cache; entry 1633
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into T values ( 1 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecPrepared for "insert into T values ( 1 , $1 )"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 27: name i; query: " insert into T values ( 1 , 2 ) "
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: insert into T values ( 1 , 2 ) ; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: using PQexecPrepared for " insert into T values ( 1 , 2 ) "
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 28: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_auto_prepare on line 30: statement found in cache; entry 13049
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 30: name ecpg3; query: "select Item2 from T order by Item2 nulls last"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: select Item2 from T order by Item2 nulls last; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexecPrepared for "select Item2 from T order by Item2 nulls last"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: correctly got 4 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 30: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 30: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 30: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 30: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: query: declare C cursor for select Item1 from T; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 37: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: fetch 1 in C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 39: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 39: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: query: close C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 44: name stmt1; query: "SELECT item2 FROM T ORDER BY item2 NULLS LAST"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: declare cur1 cursor for SELECT item2 FROM T ORDER BY item2 NULLS LAST; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 55: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 55: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 55: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 55: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: fetch cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: correctly got 0 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 55: no data found on line 55
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 60: query: close cur1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 60: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 62: query: drop table T; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 62: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 62: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name stmt1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name ecpg3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name i
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name ecpg2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name ecpg1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-autoprep.stdout b/src/interfaces/ecpg/test/expected/preproc-autoprep.stdout
new file mode 100644
index 0000000..16a3263
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-autoprep.stdout
@@ -0,0 +1,18 @@
+item[0] = 1
+item[1] = 2
+item[2] = 2
+item[3] = -1
+i = 1
+item[0] = 1
+item[1] = 2
+item[2] = 2
+item[3] = -1
+item[0] = 1
+item[1] = 2
+item[2] = 2
+item[3] = -1
+i = 1
+item[0] = 1
+item[1] = 2
+item[2] = 2
+item[3] = -1
diff --git a/src/interfaces/ecpg/test/expected/preproc-comment.c b/src/interfaces/ecpg/test/expected/preproc-comment.c
new file mode 100644
index 0000000..9e00ec2
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-comment.c
@@ -0,0 +1,42 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "comment.pgc"
+#include <stdlib.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 3 "comment.pgc"
+
+
+/* just a test comment */ int i;
+/* just a test comment int j*/;
+
+/****************************************************************************/
+/* Test comment */
+/*--------------------------------------------------------------------------*/
+
+int main(void)
+{
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 17 "comment.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 19 "comment.pgc"
+
+ exit (0);
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-comment.stderr b/src/interfaces/ecpg/test/expected/preproc-comment.stderr
new file mode 100644
index 0000000..a85d73c
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-comment.stderr
@@ -0,0 +1,6 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-comment.stdout b/src/interfaces/ecpg/test/expected/preproc-comment.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-comment.stdout
diff --git a/src/interfaces/ecpg/test/expected/preproc-cursor.c b/src/interfaces/ecpg/test/expected/preproc-cursor.c
new file mode 100644
index 0000000..a4e7b12
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-cursor.c
@@ -0,0 +1,859 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "cursor.pgc"
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "cursor.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 6 "cursor.pgc"
+
+
+/* exec sql type c is char reference */
+#line 8 "cursor.pgc"
+
+typedef char* c;
+
+/* exec sql type ind is union {
+#line 11 "cursor.pgc"
+ int integer ;
+
+#line 11 "cursor.pgc"
+ short smallint ;
+ } */
+#line 11 "cursor.pgc"
+
+typedef union { int integer; short smallint; } ind;
+
+#define BUFFERSIZ 8
+/* exec sql type str is [ BUFFERSIZ ] */
+#line 15 "cursor.pgc"
+
+
+#define CURNAME "mycur"
+
+int
+main (void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+
+
+
+
+
+#line 23 "cursor.pgc"
+ char * stmt1 = "SELECT id, t FROM t1" ;
+
+#line 24 "cursor.pgc"
+ char * curname1 = CURNAME ;
+
+#line 25 "cursor.pgc"
+ char * curname2 = CURNAME ;
+
+#line 26 "cursor.pgc"
+ char * curname3 = CURNAME ;
+
+#line 27 "cursor.pgc"
+ struct varchar_1 { int len; char arr[ 50 ]; } curname4 ;
+
+#line 28 "cursor.pgc"
+ char * curname5 = CURNAME ;
+
+#line 29 "cursor.pgc"
+ int count ;
+
+#line 30 "cursor.pgc"
+ int id ;
+
+#line 31 "cursor.pgc"
+ char t [ 64 ] ;
+/* exec sql end declare section */
+#line 32 "cursor.pgc"
+
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "test1", 0);
+#line 39 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 39 "cursor.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "test2", 0);
+#line 40 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 40 "cursor.pgc"
+
+
+ strcpy(msg, "set");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
+#line 43 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 43 "cursor.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "create table t1 ( id serial primary key , t text )", ECPGt_EOIT, ECPGt_EORT);
+#line 46 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 46 "cursor.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "test2", 0, ECPGst_normal, "create table t1 ( id serial primary key , t text )", ECPGt_EOIT, ECPGt_EORT);
+#line 47 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 47 "cursor.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "insert into t1 ( id , t ) values ( default , 'a' )", ECPGt_EOIT, ECPGt_EORT);
+#line 50 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 50 "cursor.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "insert into t1 ( id , t ) values ( default , 'b' )", ECPGt_EOIT, ECPGt_EORT);
+#line 51 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 51 "cursor.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "insert into t1 ( id , t ) values ( default , 'c' )", ECPGt_EOIT, ECPGt_EORT);
+#line 52 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 52 "cursor.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "insert into t1 ( id , t ) values ( default , 'd' )", ECPGt_EOIT, ECPGt_EORT);
+#line 53 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 53 "cursor.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "test2", 0, ECPGst_normal, "insert into t1 ( id , t ) values ( default , 'e' )", ECPGt_EOIT, ECPGt_EORT);
+#line 54 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 54 "cursor.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, "test1", "commit");
+#line 57 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 57 "cursor.pgc"
+
+ { ECPGtrans(__LINE__, "test2", "commit");
+#line 58 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 58 "cursor.pgc"
+
+
+ /* Dynamic cursorname test with INTO list in FETCH stmts */
+
+ strcpy(msg, "declare");
+ ECPGset_var( 0, &( curname1 ), __LINE__);\
+ /* declare $0 cursor for select id , t from t1 */
+#line 64 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 64 "cursor.pgc"
+
+#line 64 "cursor.pgc"
+
+
+ strcpy(msg, "open");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "declare $0 cursor for select id , t from t1",
+ ECPGt_char,&(curname1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 67 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 67 "cursor.pgc"
+
+
+ strcpy(msg, "fetch from");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch forward from $0",
+ ECPGt_char,&(curname1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 70 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 70 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch forward $0",
+ ECPGt_char,&(curname1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 74 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 74 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch 1 from");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch 1 from $0",
+ ECPGt_char,&(curname1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 78 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 78 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count from");
+ count = 1;
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0 from $0",
+ ECPGt_int,&(count),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(curname1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 83 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 83 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "move in");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "move absolute 0 in $0",
+ ECPGt_char,&(curname1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 87 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 87 "cursor.pgc"
+
+
+ strcpy(msg, "fetch 1");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch 1 $0",
+ ECPGt_char,&(curname1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 90 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 90 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count");
+ count = 1;
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0 $0",
+ ECPGt_int,&(count),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(curname1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 95 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 95 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "close");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "close $0",
+ ECPGt_char,&(curname1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 99 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 99 "cursor.pgc"
+
+
+ /* Dynamic cursorname test with INTO list in DECLARE stmt */
+
+ strcpy(msg, "declare");
+ ECPGset_var( 1, &( curname2 ), __LINE__);\
+ ECPGset_var( 2, ( t ), __LINE__);\
+ ECPGset_var( 3, &( id ), __LINE__);\
+ /* declare $0 cursor for select id , t from t1 */
+#line 105 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 105 "cursor.pgc"
+
+#line 105 "cursor.pgc"
+
+
+ strcpy(msg, "open");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "declare $0 cursor for select id , t from t1",
+ ECPGt_char,&(curname2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 108 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 108 "cursor.pgc"
+
+
+ strcpy(msg, "fetch from");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch from $0",
+ ECPGt_char,&(curname2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 111 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 111 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0",
+ ECPGt_char,&(curname2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 115 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 115 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch 1 from");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch 1 from $0",
+ ECPGt_char,&(curname2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 119 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 119 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count from");
+ count = 1;
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0 from $0",
+ ECPGt_int,&(count),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(curname2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 124 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 124 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "move");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "move absolute 0 $0",
+ ECPGt_char,&(curname2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 128 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 128 "cursor.pgc"
+
+
+ strcpy(msg, "fetch 1");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch 1 $0",
+ ECPGt_char,&(curname2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 131 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 131 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count");
+ count = 1;
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0 $0",
+ ECPGt_int,&(count),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(curname2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 136 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 136 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "close");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "close $0",
+ ECPGt_char,&(curname2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 140 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 140 "cursor.pgc"
+
+
+ /* Dynamic cursorname test with PREPARED stmt */
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, "test1", 0, "st_id1", stmt1);
+#line 145 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 145 "cursor.pgc"
+
+ { ECPGprepare(__LINE__, "test2", 0, "st_id1", stmt1);
+#line 146 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 146 "cursor.pgc"
+
+
+ strcpy(msg, "declare");
+ ECPGset_var( 4, &( curname3 ), __LINE__);\
+ /* declare $0 cursor for $1 */
+#line 149 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 149 "cursor.pgc"
+
+#line 149 "cursor.pgc"
+
+ ECPGset_var( 5, &( curname5 ), __LINE__);\
+ /* declare $0 cursor for $1 */
+#line 150 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 150 "cursor.pgc"
+
+#line 150 "cursor.pgc"
+
+
+ strcpy(msg, "open");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "declare $0 cursor for $1",
+ ECPGt_char,&(curname3),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char_variable,(ECPGprepared_statement("test1", "st_id1", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 153 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 153 "cursor.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "test2", 0, ECPGst_normal, "declare $0 cursor for $1",
+ ECPGt_char,&(curname5),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char_variable,(ECPGprepared_statement("test2", "st_id1", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 154 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 154 "cursor.pgc"
+
+
+ strcpy(msg, "fetch");
+ { ECPGdo(__LINE__, 0, 1, "test2", 0, ECPGst_normal, "fetch $0",
+ ECPGt_char,&(curname5),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 157 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 157 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch from");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch from $0",
+ ECPGt_char,&(curname3),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 161 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 161 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch 1 from");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch 1 from $0",
+ ECPGt_char,&(curname3),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 165 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 165 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count from");
+ count = 1;
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0 from $0",
+ ECPGt_int,&(count),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(curname3),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 170 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 170 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "move");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "move absolute 0 $0",
+ ECPGt_char,&(curname3),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 174 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 174 "cursor.pgc"
+
+
+ strcpy(msg, "fetch 1");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch 1 $0",
+ ECPGt_char,&(curname3),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 177 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 177 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count");
+ count = 1;
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0 $0",
+ ECPGt_int,&(count),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(curname3),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 182 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 182 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "close");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "close $0",
+ ECPGt_char,&(curname3),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 186 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 186 "cursor.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "test2", 0, ECPGst_normal, "close $0",
+ ECPGt_char,&(curname5),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 187 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 187 "cursor.pgc"
+
+
+ strcpy(msg, "deallocate prepare");
+ { ECPGdeallocate(__LINE__, 0, "test1", "st_id1");
+#line 190 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 190 "cursor.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, "test2", "st_id1");
+#line 191 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 191 "cursor.pgc"
+
+
+ /* Dynamic cursorname test with PREPARED stmt,
+ cursor name in varchar */
+
+ curname4.len = strlen(CURNAME);
+ strcpy(curname4.arr, CURNAME);
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, "test1", 0, "st_id2", stmt1);
+#line 200 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 200 "cursor.pgc"
+
+
+ strcpy(msg, "declare");
+ ECPGset_var( 6, &( curname4 ), __LINE__);\
+ /* declare $0 cursor for $1 */
+#line 203 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 203 "cursor.pgc"
+
+#line 203 "cursor.pgc"
+
+
+ strcpy(msg, "open");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "declare $0 cursor for $1",
+ ECPGt_varchar,&(curname4),(long)50,(long)1,sizeof(struct varchar_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char_variable,(ECPGprepared_statement("test1", "st_id2", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 206 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 206 "cursor.pgc"
+
+
+ strcpy(msg, "fetch from");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch from $0",
+ ECPGt_varchar,&(curname4),(long)50,(long)1,sizeof(struct varchar_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 209 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 209 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0",
+ ECPGt_varchar,&(curname4),(long)50,(long)1,sizeof(struct varchar_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 213 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 213 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch 1 from");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch 1 from $0",
+ ECPGt_varchar,&(curname4),(long)50,(long)1,sizeof(struct varchar_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 217 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 217 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count from");
+ count = 1;
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0 from $0",
+ ECPGt_int,&(count),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_varchar,&(curname4),(long)50,(long)1,sizeof(struct varchar_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 222 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 222 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "move");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "move absolute 0 $0",
+ ECPGt_varchar,&(curname4),(long)50,(long)1,sizeof(struct varchar_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 226 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 226 "cursor.pgc"
+
+
+ strcpy(msg, "fetch 1");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch 1 $0",
+ ECPGt_varchar,&(curname4),(long)50,(long)1,sizeof(struct varchar_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 229 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 229 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count");
+ count = 1;
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "fetch $0 $0",
+ ECPGt_int,&(count),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_varchar,&(curname4),(long)50,(long)1,sizeof(struct varchar_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(t),(long)64,(long)1,(64)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 234 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 234 "cursor.pgc"
+
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "close");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "close $0",
+ ECPGt_varchar,&(curname4),(long)50,(long)1,sizeof(struct varchar_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 238 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 238 "cursor.pgc"
+
+
+ strcpy(msg, "deallocate prepare");
+ { ECPGdeallocate(__LINE__, 0, "test1", "st_id2");
+#line 241 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 241 "cursor.pgc"
+
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 0, 1, "test1", 0, ECPGst_normal, "drop table t1", ECPGt_EOIT, ECPGt_EORT);
+#line 246 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 246 "cursor.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "test2", 0, ECPGst_normal, "drop table t1", ECPGt_EOIT, ECPGt_EORT);
+#line 247 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 247 "cursor.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, "test1", "commit");
+#line 250 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 250 "cursor.pgc"
+
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 253 "cursor.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 253 "cursor.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-cursor.stderr b/src/interfaces/ecpg/test/expected/preproc-cursor.stderr
new file mode 100644
index 0000000..5a9bc39
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-cursor.stderr
@@ -0,0 +1,412 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 43: query: set datestyle to iso; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 43: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 43: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: create table t1 ( id serial primary key , t text ); with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 47: query: create table t1 ( id serial primary key , t text ); with 0 parameter(s) on connection test2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 47: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 47: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 50: query: insert into t1 ( id , t ) values ( default , 'a' ); with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 50: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 50: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: query: insert into t1 ( id , t ) values ( default , 'b' ); with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 51: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: query: insert into t1 ( id , t ) values ( default , 'c' ); with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 52: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: query: insert into t1 ( id , t ) values ( default , 'd' ); with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 53: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 54: query: insert into t1 ( id , t ) values ( default , 'e' ); with 0 parameter(s) on connection test2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 54: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 54: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 57: action "commit"; connection "test1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 58: action "commit"; connection "test2"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 67: query: declare mycur cursor for select id , t from t1; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 67: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 67: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 70: query: fetch forward from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 70: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 70: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 70: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 70: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch forward mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 78: query: fetch 1 from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 78: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 78: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 78: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 78: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 83: query: fetch 1 from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 83: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 83: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 83: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 83: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 87: query: move absolute 0 in mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 87: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 87: OK: MOVE 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 90: query: fetch 1 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 90: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 90: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 90: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 90: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 95: query: fetch 1 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 95: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 95: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 95: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 95: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 99: query: close mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 99: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 99: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 108: query: declare mycur cursor for select id , t from t1; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 108: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 108: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 111: query: fetch from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 111: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 111: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 111: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 111: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 115: query: fetch mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 115: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 115: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 115: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 115: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 119: query: fetch 1 from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 119: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 119: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 119: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 119: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 124: query: fetch 1 from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 124: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 124: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 124: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 124: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 128: query: move absolute 0 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 128: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 128: OK: MOVE 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 131: query: fetch 1 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 131: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 131: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 131: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 131: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 136: query: fetch 1 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 136: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 136: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 136: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 136: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 140: query: close mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 140: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 140: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 145: name st_id1; query: "SELECT id, t FROM t1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 146: name st_id1; query: "SELECT id, t FROM t1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 153: query: declare mycur cursor for SELECT id, t FROM t1; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 153: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 153: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 154: query: declare mycur cursor for SELECT id, t FROM t1; with 0 parameter(s) on connection test2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 154: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 154: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 157: query: fetch mycur; with 0 parameter(s) on connection test2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 157: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: e offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 161: query: fetch from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 161: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 161: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 161: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 161: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 165: query: fetch 1 from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 165: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 165: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 165: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 165: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 170: query: fetch 1 from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 170: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 170: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 170: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 170: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 174: query: move absolute 0 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 174: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 174: OK: MOVE 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 177: query: fetch 1 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 177: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 177: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 177: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 177: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 182: query: fetch 1 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 182: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 182: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 182: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 182: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 186: query: close mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 186: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 186: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 187: query: close mycur; with 0 parameter(s) on connection test2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 187: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 187: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 190: name st_id1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 191: name st_id1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 200: name st_id2; query: "SELECT id, t FROM t1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 206: query: declare mycur cursor for SELECT id, t FROM t1; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 206: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 206: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 209: query: fetch from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 209: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 209: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 209: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 209: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 213: query: fetch mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 213: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 213: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 213: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 213: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 217: query: fetch 1 from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 217: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 217: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 217: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 217: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 222: query: fetch 1 from mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 222: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 222: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 222: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 222: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 226: query: move absolute 0 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 226: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 226: OK: MOVE 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 229: query: fetch 1 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 229: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 229: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 229: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 229: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 234: query: fetch 1 mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 234: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 234: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 234: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 234: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 238: query: close mycur; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 238: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 238: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 241: name st_id2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 246: query: drop table t1; with 0 parameter(s) on connection test1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 246: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 246: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 247: query: drop table t1; with 0 parameter(s) on connection test2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 247: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 247: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 250: action "commit"; connection "test1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection test2 closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection test1 closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-cursor.stdout b/src/interfaces/ecpg/test/expected/preproc-cursor.stdout
new file mode 100644
index 0000000..233dc03
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-cursor.stdout
@@ -0,0 +1,24 @@
+1 a
+2 b
+3 c
+4 d
+1 a
+2 b
+1 a
+2 b
+3 c
+4 d
+1 a
+2 b
+1 e
+1 a
+2 b
+3 c
+1 a
+2 b
+1 a
+2 b
+3 c
+4 d
+1 a
+2 b
diff --git a/src/interfaces/ecpg/test/expected/preproc-define.c b/src/interfaces/ecpg/test/expected/preproc-define.c
new file mode 100644
index 0000000..455e96a
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-define.c
@@ -0,0 +1,184 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "define.pgc"
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 5 "define.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 7 "define.pgc"
+
+
+
+
+
+/* exec sql type intarray is int [ 6 ] */
+#line 12 "define.pgc"
+
+typedef int intarray[ 6];
+
+int
+main(void)
+{
+/* exec sql begin declare section */
+
+
+ typedef char string [ 8 ];
+
+#line 21 "define.pgc"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#line 22 "define.pgc"
+ intarray amount ;
+
+#line 23 "define.pgc"
+ char name [ 6 ] [ 8 ] ;
+
+#line 36 "define.pgc"
+ char letter [ 6 ] [ 1 ] ;
+
+#if 0
+
+#line 38 "define.pgc"
+ int not_used ;
+
+#endif
+/* exec sql end declare section */
+#line 45 "define.pgc"
+
+ int i,j;
+
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 50 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 50 "define.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( name char ( 8 ) , amount int , letter char ( 1 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 52 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 52 "define.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 53 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 53 "define.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into Test ( name , amount , letter ) values ( 'false' , 1 , 'f' )", ECPGt_EOIT, ECPGt_EORT);
+#line 55 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 55 "define.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( name , amount , letter ) values ( 'true' , 2 , 't' )", ECPGt_EOIT, ECPGt_EORT);
+#line 56 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 56 "define.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 57 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 57 "define.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from test", ECPGt_EOIT,
+ ECPGt_char,(name),(long)8,(long)6,(8)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,(amount),(long)1,(long)6,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(letter),(long)1,(long)6,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 59 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 59 "define.pgc"
+
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ /* exec sql begin declare section */
+
+
+
+
+#line 64 "define.pgc"
+ string n ;
+
+#line 65 "define.pgc"
+ char l = letter [ i ] [ 0 ] ;
+
+#line 66 "define.pgc"
+ int a = amount [ i ] ;
+/* exec sql end declare section */
+#line 67 "define.pgc"
+
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT);
+#line 73 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 73 "define.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 74 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 74 "define.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 75 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 75 "define.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-define.stderr b/src/interfaces/ecpg/test/expected/preproc-define.stderr
new file mode 100644
index 0000000..3f05277
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-define.stderr
@@ -0,0 +1,54 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: query: create table test ( name char ( 8 ) , amount int , letter char ( 1 ) ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 52: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 53: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: insert into Test ( name , amount , letter ) values ( 'false' , 1 , 'f' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: insert into test ( name , amount , letter ) values ( 'true' , 2 , 't' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 57: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: query: select * from test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 59: correctly got 2 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: false offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: true offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 59: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 73: query: drop table test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 73: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 73: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 74: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-define.stdout b/src/interfaces/ecpg/test/expected/preproc-define.stdout
new file mode 100644
index 0000000..8526a5c
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-define.stdout
@@ -0,0 +1,2 @@
+name[0]=false amount[0]=1 letter[0]=f
+name[1]=true amount[1]=2 letter[1]=t
diff --git a/src/interfaces/ecpg/test/expected/preproc-describe.c b/src/interfaces/ecpg/test/expected/preproc-describe.c
new file mode 100644
index 0000000..143e966
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-describe.c
@@ -0,0 +1,481 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "describe.pgc"
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "describe.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 6 "describe.pgc"
+
+
+int
+main (void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+
+
+
+#line 12 "describe.pgc"
+ char * stmt1 = "SELECT id, t FROM t1" ;
+
+#line 13 "describe.pgc"
+ char * stmt2 = "SELECT id, t FROM t1 WHERE id = -1" ;
+
+#line 14 "describe.pgc"
+ int i , count1 , count2 , count3 , count4 ;
+
+#line 15 "describe.pgc"
+ char field_name1 [ 30 ] = "not set" ;
+
+#line 16 "describe.pgc"
+ char field_name2 [ 30 ] = "not set" ;
+
+#line 17 "describe.pgc"
+ char field_name3 [ 30 ] = "not set" ;
+
+#line 18 "describe.pgc"
+ char field_name4 [ 30 ] = "not set" ;
+/* exec sql end declare section */
+#line 19 "describe.pgc"
+
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 26 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 26 "describe.pgc"
+
+
+ strcpy(msg, "set");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
+#line 29 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 29 "describe.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table t1 ( id serial primary key , t text )", ECPGt_EOIT, ECPGt_EORT);
+#line 32 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 32 "describe.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t1 ( id , t ) values ( default , 'a' )", ECPGt_EOIT, ECPGt_EORT);
+#line 35 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 35 "describe.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t1 ( id , t ) values ( default , 'b' )", ECPGt_EOIT, ECPGt_EORT);
+#line 36 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 36 "describe.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t1 ( id , t ) values ( default , 'c' )", ECPGt_EOIT, ECPGt_EORT);
+#line 37 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 37 "describe.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t1 ( id , t ) values ( default , 'd' )", ECPGt_EOIT, ECPGt_EORT);
+#line 38 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 38 "describe.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 41 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 41 "describe.pgc"
+
+
+ /*
+ * Test DESCRIBE with a query producing tuples.
+ * DESCRIPTOR and SQL DESCRIPTOR are the same in native mode.
+ */
+
+ strcpy(msg, "allocate");
+ ECPGallocate_desc(__LINE__, "desc1");
+#line 49 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 49 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc2");
+#line 50 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 50 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc3");
+#line 51 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 51 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc4");
+#line 52 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 52 "describe.pgc"
+
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id1", stmt1);
+#line 55 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 55 "describe.pgc"
+
+
+ strcpy(msg, "describe");
+ { ECPGdescribe(__LINE__, 0, NULL, "st_id1",
+ ECPGt_descriptor, "desc1", 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 58 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, NULL, "st_id1",
+ ECPGt_descriptor, "desc2", 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 59 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, NULL, "st_id1",
+ ECPGt_descriptor, "desc3", 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 60 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, NULL, "st_id1",
+ ECPGt_descriptor, "desc4", 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 61 "describe.pgc"
+
+
+ strcpy(msg, "get descriptor");
+ { ECPGget_desc_header(__LINE__, "desc1", &(count1));
+
+#line 64 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 64 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc2", &(count2));
+
+#line 65 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 65 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc3", &(count3));
+
+#line 66 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 66 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc4", &(count4));
+
+#line 67 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 67 "describe.pgc"
+
+
+ if (!(count1 == count2 && count1 == count3 && count1 == count4))
+ exit(1);
+
+ for (i = 1; i <= count1; i++)
+ {
+ { ECPGget_desc(__LINE__, "desc1", i,ECPGd_name,
+ ECPGt_char,(field_name1),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 74 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 74 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc2", i,ECPGd_name,
+ ECPGt_char,(field_name2),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 75 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 75 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc3", i,ECPGd_name,
+ ECPGt_char,(field_name3),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 76 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 76 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc4", i,ECPGd_name,
+ ECPGt_char,(field_name4),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 77 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 77 "describe.pgc"
+
+ printf("field_name 1 '%s' 2 '%s' 3 '%s' 4 '%s'\n",
+ field_name1, field_name2, field_name3, field_name4);
+ }
+
+ strcpy(msg, "deallocate");
+ ECPGdeallocate_desc(__LINE__, "desc1");
+#line 83 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 83 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc2");
+#line 84 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 84 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc3");
+#line 85 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 85 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc4");
+#line 86 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 86 "describe.pgc"
+
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "st_id1");
+#line 88 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 88 "describe.pgc"
+
+
+ /* Test DESCRIBE with a query not producing tuples */
+
+ strcpy(msg, "allocate");
+ ECPGallocate_desc(__LINE__, "desc1");
+#line 93 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 93 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc2");
+#line 94 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 94 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc3");
+#line 95 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 95 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc4");
+#line 96 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 96 "describe.pgc"
+
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id2", stmt2);
+#line 99 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 99 "describe.pgc"
+
+
+ strcpy(msg, "describe");
+ { ECPGdescribe(__LINE__, 0, NULL, "st_id2",
+ ECPGt_descriptor, "desc1", 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 102 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, NULL, "st_id2",
+ ECPGt_descriptor, "desc2", 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 103 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, NULL, "st_id2",
+ ECPGt_descriptor, "desc3", 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 104 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, NULL, "st_id2",
+ ECPGt_descriptor, "desc4", 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 105 "describe.pgc"
+
+
+ strcpy(msg, "get descriptor");
+ { ECPGget_desc_header(__LINE__, "desc1", &(count1));
+
+#line 108 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 108 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc2", &(count2));
+
+#line 109 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 109 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc3", &(count3));
+
+#line 110 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 110 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc4", &(count4));
+
+#line 111 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 111 "describe.pgc"
+
+
+ if (!(count1 == count2 && count1 == count3 && count1 == count4))
+ exit(1);
+
+ for (i = 1; i <= count1; i++)
+ {
+ { ECPGget_desc(__LINE__, "desc1", i,ECPGd_name,
+ ECPGt_char,(field_name1),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 118 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 118 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc2", i,ECPGd_name,
+ ECPGt_char,(field_name2),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 119 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 119 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc3", i,ECPGd_name,
+ ECPGt_char,(field_name3),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 120 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 120 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc4", i,ECPGd_name,
+ ECPGt_char,(field_name4),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 121 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 121 "describe.pgc"
+
+ printf("field_name 1 '%s' 2 '%s' 3 '%s' 4 '%s'\n",
+ field_name1, field_name2, field_name3, field_name4);
+ }
+
+ strcpy(msg, "deallocate");
+ ECPGdeallocate_desc(__LINE__, "desc1");
+#line 127 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 127 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc2");
+#line 128 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 128 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc3");
+#line 129 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 129 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc4");
+#line 130 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 130 "describe.pgc"
+
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "st_id2");
+#line 132 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 132 "describe.pgc"
+
+
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table t1", ECPGt_EOIT, ECPGt_EORT);
+#line 138 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 138 "describe.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 141 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 141 "describe.pgc"
+
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 144 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 144 "describe.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-describe.stderr b/src/interfaces/ecpg/test/expected/preproc-describe.stderr
new file mode 100644
index 0000000..0537a0f
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-describe.stderr
@@ -0,0 +1,140 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: query: set datestyle to iso; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: create table t1 ( id serial primary key , t text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: query: insert into t1 ( id , t ) values ( default , 'a' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: insert into t1 ( id , t ) values ( default , 'b' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: query: insert into t1 ( id , t ) values ( default , 'c' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: query: insert into t1 ( id , t ) values ( default , 'd' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 41: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGprepare on line 55: name st_id1; query: "SELECT id, t FROM t1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGdeallocate on line 88: name st_id1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGprepare on line 99: name st_id2; query: "SELECT id, t FROM t1 WHERE id = -1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGdeallocate on line 132: name st_id2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 138: query: drop table t1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 138: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 138: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 141: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-describe.stdout b/src/interfaces/ecpg/test/expected/preproc-describe.stdout
new file mode 100644
index 0000000..d27324e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-describe.stdout
@@ -0,0 +1,4 @@
+field_name 1 'id' 2 'id' 3 'id' 4 'id'
+field_name 1 't' 2 't' 3 't' 4 't'
+field_name 1 'id' 2 'id' 3 'id' 4 'id'
+field_name 1 't' 2 't' 3 't' 4 't'
diff --git a/src/interfaces/ecpg/test/expected/preproc-init.c b/src/interfaces/ecpg/test/expected/preproc-init.c
new file mode 100644
index 0000000..b0e0473
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-init.c
@@ -0,0 +1,261 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "init.pgc"
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 1 "init.pgc"
+
+
+enum e { ENUM0, ENUM1 };
+struct sa { int member; };
+
+static int fa(void)
+{
+ printf("in fa\n");
+ return 2;
+}
+
+static int
+fb(int x)
+{
+ printf("in fb (%d)\n", x);
+ return x;
+}
+
+static int
+fc(const char *x)
+{
+ printf("in fc (%s)\n", x);
+ return *x;
+}
+
+static int fd(const char *x,int i)
+{
+ printf("in fd (%s, %d)\n", x, i);
+ return (*x)*i;
+}
+
+static int fe(enum e x)
+{
+ printf("in fe (%d)\n", (int) x);
+ return (int)x;
+}
+
+static void sqlnotice(const char *notice, short trans)
+{
+ if (!notice)
+ notice = "-empty-";
+ printf("in sqlnotice (%s, %d)\n", notice, trans);
+}
+
+
+
+#define YES 1
+
+#ifdef _cplusplus
+namespace N
+{
+ static const int i=2;
+};
+#endif
+
+int main(void)
+{
+ struct sa x = { 14 },*y = &x;
+ /* exec sql begin declare section */
+
+
+
+
+
+
+
+
+
+
+
+ /* = 1L */
+
+#line 60 "init.pgc"
+ int a = ( int ) 2 ;
+
+#line 61 "init.pgc"
+ int b = 2 + 2 ;
+
+#line 62 "init.pgc"
+ int b2 = ( 14 * 7 ) ;
+
+#line 63 "init.pgc"
+ int d = x . member ;
+
+#line 64 "init.pgc"
+ int g = fb ( 2 ) ;
+
+#line 65 "init.pgc"
+ int i = 3 ^ 1 ;
+
+#line 66 "init.pgc"
+ int j = 1 ? 1 : 2 ;
+
+#line 68 "init.pgc"
+ int e = y -> member ;
+
+#line 69 "init.pgc"
+ int c = 10 >> 2 ;
+
+#line 70 "init.pgc"
+ bool h = 2 || 1 ;
+
+#line 71 "init.pgc"
+ long iay ;
+/* exec sql end declare section */
+#line 72 "init.pgc"
+
+
+ int f=fa();
+
+#ifdef _cplusplus
+ /* exec sql begin declare section */
+ /* compile error */
+
+#line 78 "init.pgc"
+ int k = N : : i ;
+/* exec sql end declare section */
+#line 79 "init.pgc"
+
+#endif
+
+ ECPGdebug(1, stderr);
+
+ printf("%d %d %d %d %d %d %d %d %d %d %d\n", a, b, b2, c, d, e, f, g, h, i, j);
+ iay = 0;
+ printf("%ld\n", iay);
+ /* exec sql whenever sqlerror do fa ( ) ; */
+#line 87 "init.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select now ( )", ECPGt_EOIT, ECPGt_EORT);
+#line 88 "init.pgc"
+
+if (sqlca.sqlcode < 0) fa ( );}
+#line 88 "init.pgc"
+
+ /* exec sql whenever sqlerror do fb ( 20 ) ; */
+#line 89 "init.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select now ( )", ECPGt_EOIT, ECPGt_EORT);
+#line 90 "init.pgc"
+
+if (sqlca.sqlcode < 0) fb ( 20 );}
+#line 90 "init.pgc"
+
+ /* exec sql whenever sqlerror do fc ( \"50\" ) ; */
+#line 91 "init.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select now ( )", ECPGt_EOIT, ECPGt_EORT);
+#line 92 "init.pgc"
+
+if (sqlca.sqlcode < 0) fc ( "50" );}
+#line 92 "init.pgc"
+
+ /* exec sql whenever sqlerror do fd ( \"50\" , 1 ) ; */
+#line 93 "init.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select now ( )", ECPGt_EOIT, ECPGt_EORT);
+#line 94 "init.pgc"
+
+if (sqlca.sqlcode < 0) fd ( "50" , 1 );}
+#line 94 "init.pgc"
+
+ /* exec sql whenever sqlerror do fe ( ENUM0 ) ; */
+#line 95 "init.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select now ( )", ECPGt_EOIT, ECPGt_EORT);
+#line 96 "init.pgc"
+
+if (sqlca.sqlcode < 0) fe ( ENUM0 );}
+#line 96 "init.pgc"
+
+ /* exec sql whenever sqlerror do sqlnotice ( NULL , 0 ) ; */
+#line 97 "init.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select now ( )", ECPGt_EOIT, ECPGt_EORT);
+#line 98 "init.pgc"
+
+if (sqlca.sqlcode < 0) sqlnotice ( NULL , 0 );}
+#line 98 "init.pgc"
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-init.stderr b/src/interfaces/ecpg/test/expected/preproc-init.stderr
new file mode 100644
index 0000000..1b6fa18
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-init.stderr
@@ -0,0 +1,14 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -220 on line 88: connection "NULL" does not exist on line 88
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: raising sqlcode -220 on line 90: connection "NULL" does not exist on line 90
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: raising sqlcode -220 on line 92: connection "NULL" does not exist on line 92
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: raising sqlcode -220 on line 94: connection "NULL" does not exist on line 94
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: raising sqlcode -220 on line 96: connection "NULL" does not exist on line 96
+[NO_PID]: sqlca: code: -220, state: 08003
+[NO_PID]: raising sqlcode -220 on line 98: connection "NULL" does not exist on line 98
+[NO_PID]: sqlca: code: -220, state: 08003
diff --git a/src/interfaces/ecpg/test/expected/preproc-init.stdout b/src/interfaces/ecpg/test/expected/preproc-init.stdout
new file mode 100644
index 0000000..4738d79
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-init.stdout
@@ -0,0 +1,10 @@
+in fb (2)
+in fa
+2 4 98 2 14 14 2 2 1 2 1
+0
+in fa
+in fb (20)
+in fc (50)
+in fd (50, 1)
+in fe (0)
+in sqlnotice (-empty-, 0)
diff --git a/src/interfaces/ecpg/test/expected/preproc-outofscope.c b/src/interfaces/ecpg/test/expected/preproc-outofscope.c
new file mode 100644
index 0000000..3a27c53
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-outofscope.c
@@ -0,0 +1,372 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "outofscope.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "outofscope.pgc"
+
+
+
+#line 1 "pgtypes_numeric.h"
+#ifndef PGTYPES_NUMERIC
+#define PGTYPES_NUMERIC
+
+#include <pgtypes.h>
+
+#define NUMERIC_POS 0x0000
+#define NUMERIC_NEG 0x4000
+#define NUMERIC_NAN 0xC000
+#define NUMERIC_NULL 0xF000
+#define NUMERIC_MAX_PRECISION 1000
+#define NUMERIC_MAX_DISPLAY_SCALE NUMERIC_MAX_PRECISION
+#define NUMERIC_MIN_DISPLAY_SCALE 0
+#define NUMERIC_MIN_SIG_DIGITS 16
+
+#define DECSIZE 30
+
+typedef unsigned char NumericDigit;
+typedef struct
+{
+ int ndigits; /* number of digits in digits[] - can be 0! */
+ int weight; /* weight of first digit */
+ int rscale; /* result scale */
+ int dscale; /* display scale */
+ int sign; /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
+ NumericDigit *buf; /* start of alloc'd space for digits[] */
+ NumericDigit *digits; /* decimal digits */
+} numeric;
+
+typedef struct
+{
+ int ndigits; /* number of digits in digits[] - can be 0! */
+ int weight; /* weight of first digit */
+ int rscale; /* result scale */
+ int dscale; /* display scale */
+ int sign; /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
+ NumericDigit digits[DECSIZE]; /* decimal digits */
+} decimal;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+numeric *PGTYPESnumeric_new(void);
+decimal *PGTYPESdecimal_new(void);
+void PGTYPESnumeric_free(numeric *);
+void PGTYPESdecimal_free(decimal *);
+numeric *PGTYPESnumeric_from_asc(char *, char **);
+char *PGTYPESnumeric_to_asc(numeric *, int);
+int PGTYPESnumeric_add(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_sub(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_mul(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_div(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_cmp(numeric *, numeric *);
+int PGTYPESnumeric_from_int(signed int, numeric *);
+int PGTYPESnumeric_from_long(signed long int, numeric *);
+int PGTYPESnumeric_copy(numeric *, numeric *);
+int PGTYPESnumeric_from_double(double, numeric *);
+int PGTYPESnumeric_to_double(numeric *, double *);
+int PGTYPESnumeric_to_int(numeric *, int *);
+int PGTYPESnumeric_to_long(numeric *, long *);
+int PGTYPESnumeric_to_decimal(numeric *, decimal *);
+int PGTYPESnumeric_from_decimal(decimal *, numeric *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* PGTYPES_NUMERIC */
+
+#line 8 "outofscope.pgc"
+
+
+/* exec sql begin declare section */
+
+#line 1 "struct.h"
+
+
+
+
+ /* dec_t */
+
+
+
+ typedef struct mytype MYTYPE ;
+
+#line 9 "struct.h"
+
+
+
+
+
+
+
+
+
+
+ typedef struct mynulltype MYNULLTYPE ;
+
+#line 19 "struct.h"
+
+
+#line 11 "outofscope.pgc"
+
+struct mytype {
+#line 3 "struct.h"
+ int id ;
+
+#line 4 "struct.h"
+ char t [ 64 ] ;
+
+#line 5 "struct.h"
+ double d1 ;
+
+#line 6 "struct.h"
+ double d2 ;
+
+#line 7 "struct.h"
+ char c [ 30 ] ;
+ } ; struct mynulltype {
+#line 13 "struct.h"
+ int id ;
+
+#line 14 "struct.h"
+ int t ;
+
+#line 15 "struct.h"
+ int d1 ;
+
+#line 16 "struct.h"
+ int d2 ;
+
+#line 17 "struct.h"
+ int c ;
+ } ;/* exec sql end declare section */
+#line 12 "outofscope.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 14 "outofscope.pgc"
+
+
+/* Functions for test 1 */
+
+static void
+get_var1(MYTYPE **myvar0, MYNULLTYPE **mynullvar0)
+{
+ /* exec sql begin declare section */
+
+
+
+#line 22 "outofscope.pgc"
+ MYTYPE * myvar = malloc ( sizeof ( MYTYPE ) ) ;
+
+#line 23 "outofscope.pgc"
+ MYNULLTYPE * mynullvar = malloc ( sizeof ( MYNULLTYPE ) ) ;
+/* exec sql end declare section */
+#line 24 "outofscope.pgc"
+
+
+ /* Test DECLARE ... SELECT ... INTO with pointers */
+
+ ECPGset_var( 0, ( myvar ), __LINE__);\
+ ECPGset_var( 1, ( mynullvar ), __LINE__);\
+ /* declare mycur cursor for select * from a1 */
+#line 28 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 28 "outofscope.pgc"
+
+#line 28 "outofscope.pgc"
+
+
+ if (sqlca.sqlcode != 0)
+ exit(1);
+
+ *myvar0 = myvar;
+ *mynullvar0 = mynullvar;
+}
+
+static void
+open_cur1(void)
+{
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare mycur cursor for select * from a1", ECPGt_EOIT,
+ ECPGt_int,&((*( MYTYPE *)(ECPGget_var( 0)) ).id),(long)1,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).id),(long)1,(long)1,sizeof( struct mynulltype ),
+ ECPGt_char,&((*( MYTYPE *)(ECPGget_var( 0)) ).t),(long)64,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).t),(long)1,(long)1,sizeof( struct mynulltype ),
+ ECPGt_double,&((*( MYTYPE *)(ECPGget_var( 0)) ).d1),(long)1,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).d1),(long)1,(long)1,sizeof( struct mynulltype ),
+ ECPGt_double,&((*( MYTYPE *)(ECPGget_var( 0)) ).d2),(long)1,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).d2),(long)1,(long)1,sizeof( struct mynulltype ),
+ ECPGt_char,&((*( MYTYPE *)(ECPGget_var( 0)) ).c),(long)30,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).c),(long)1,(long)1,sizeof( struct mynulltype ), ECPGt_EORT);
+#line 40 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 40 "outofscope.pgc"
+
+}
+
+static void
+get_record1(void)
+{
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch mycur", ECPGt_EOIT,
+ ECPGt_int,&((*( MYTYPE *)(ECPGget_var( 0)) ).id),(long)1,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).id),(long)1,(long)1,sizeof( struct mynulltype ),
+ ECPGt_char,&((*( MYTYPE *)(ECPGget_var( 0)) ).t),(long)64,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).t),(long)1,(long)1,sizeof( struct mynulltype ),
+ ECPGt_double,&((*( MYTYPE *)(ECPGget_var( 0)) ).d1),(long)1,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).d1),(long)1,(long)1,sizeof( struct mynulltype ),
+ ECPGt_double,&((*( MYTYPE *)(ECPGget_var( 0)) ).d2),(long)1,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).d2),(long)1,(long)1,sizeof( struct mynulltype ),
+ ECPGt_char,&((*( MYTYPE *)(ECPGget_var( 0)) ).c),(long)30,(long)1,sizeof( struct mytype ),
+ ECPGt_int,&((*( MYNULLTYPE *)(ECPGget_var( 1)) ).c),(long)1,(long)1,sizeof( struct mynulltype ), ECPGt_EORT);
+#line 46 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 46 "outofscope.pgc"
+
+}
+
+static void
+close_cur1(void)
+{
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close mycur", ECPGt_EOIT, ECPGt_EORT);
+#line 52 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 52 "outofscope.pgc"
+
+}
+
+int
+main (void)
+{
+ MYTYPE *myvar;
+ MYNULLTYPE *mynullvar;
+ int loopcount;
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 66 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 66 "outofscope.pgc"
+
+
+ strcpy(msg, "set");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
+#line 69 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 69 "outofscope.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table a1 ( id serial primary key , t text , d1 numeric , d2 float8 , c character ( 10 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 72 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 72 "outofscope.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into a1 ( id , t , d1 , d2 , c ) values ( default , 'a' , 1.0 , 2 , 'a' )", ECPGt_EOIT, ECPGt_EORT);
+#line 75 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 75 "outofscope.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into a1 ( id , t , d1 , d2 , c ) values ( default , null , null , null , null )", ECPGt_EOIT, ECPGt_EORT);
+#line 76 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 76 "outofscope.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into a1 ( id , t , d1 , d2 , c ) values ( default , 'b' , 2.0 , 3 , 'b' )", ECPGt_EOIT, ECPGt_EORT);
+#line 77 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 77 "outofscope.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 80 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 80 "outofscope.pgc"
+
+
+ /* Test out-of-scope DECLARE/OPEN/FETCH/CLOSE */
+
+ get_var1(&myvar, &mynullvar);
+ open_cur1();
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ memset(myvar, 0, sizeof(MYTYPE));
+ get_record1();
+ if (sqlca.sqlcode == ECPG_NOT_FOUND)
+ break;
+ printf("id=%d%s t='%s'%s d1=%f%s d2=%f%s c = '%s'%s\n",
+ myvar->id, mynullvar->id ? " (NULL)" : "",
+ myvar->t, mynullvar->t ? " (NULL)" : "",
+ myvar->d1, mynullvar->d1 ? " (NULL)" : "",
+ myvar->d2, mynullvar->d2 ? " (NULL)" : "",
+ myvar->c, mynullvar->c ? " (NULL)" : "");
+ }
+
+ close_cur1();
+
+ free(myvar);
+ free(mynullvar);
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table a1", ECPGt_EOIT, ECPGt_EORT);
+#line 107 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 107 "outofscope.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 110 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 110 "outofscope.pgc"
+
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 113 "outofscope.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 113 "outofscope.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-outofscope.stderr b/src/interfaces/ecpg/test/expected/preproc-outofscope.stderr
new file mode 100644
index 0000000..2c97799
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-outofscope.stderr
@@ -0,0 +1,114 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 69: query: set datestyle to iso; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 69: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 69: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 72: query: create table a1 ( id serial primary key , t text , d1 numeric , d2 float8 , c character ( 10 ) ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 72: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 72: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 75: query: insert into a1 ( id , t , d1 , d2 , c ) values ( default , 'a' , 1.0 , 2 , 'a' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 75: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 75: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: query: insert into a1 ( id , t , d1 , d2 , c ) values ( default , null , null , null , null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 76: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 77: query: insert into a1 ( id , t , d1 , d2 , c ) values ( default , 'b' , 2.0 , 3 , 'b' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 77: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 77: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 80: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: query: declare mycur cursor for select * from a1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 40: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: fetch mycur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 1.0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: fetch mycur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: fetch mycur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 2.0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: fetch mycur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 0 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 46: no data found on line 46
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 52: query: close mycur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 52: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 107: query: drop table a1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 107: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 107: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 110: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-outofscope.stdout b/src/interfaces/ecpg/test/expected/preproc-outofscope.stdout
new file mode 100644
index 0000000..8c53ad7
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-outofscope.stdout
@@ -0,0 +1,3 @@
+id=1 t='a' d1=1.000000 d2=2.000000 c = 'a '
+id=2 t='' (NULL) d1=0.000000 (NULL) d2=0.000000 (NULL) c = '' (NULL)
+id=3 t='b' d1=2.000000 d2=3.000000 c = 'b '
diff --git a/src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.c b/src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.c
new file mode 100644
index 0000000..7b1f58e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.c
@@ -0,0 +1,293 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "pointer_to_struct.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "pointer_to_struct.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 6 "pointer_to_struct.pgc"
+
+/* exec sql whenever sql_warning sqlprint ; */
+#line 7 "pointer_to_struct.pgc"
+
+/* exec sql whenever not found sqlprint ; */
+#line 8 "pointer_to_struct.pgc"
+
+
+typedef struct {
+#line 13 "pointer_to_struct.pgc"
+ struct varchar_1 { int len; char arr[ 50 ]; } name ;
+
+#line 14 "pointer_to_struct.pgc"
+ int phone ;
+ } customer ;
+#line 15 "pointer_to_struct.pgc"
+
+
+typedef struct ind {
+#line 20 "pointer_to_struct.pgc"
+ short name_ind ;
+
+#line 21 "pointer_to_struct.pgc"
+ short phone_ind ;
+ } cust_ind ;
+#line 22 "pointer_to_struct.pgc"
+
+
+int main()
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+ typedef struct {
+#line 31 "pointer_to_struct.pgc"
+ struct varchar_2 { int len; char arr[ 50 ]; } name ;
+
+#line 32 "pointer_to_struct.pgc"
+ int phone ;
+ } customer2 ;
+
+#line 33 "pointer_to_struct.pgc"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#line 27 "pointer_to_struct.pgc"
+ customer * custs1 = ( customer * ) malloc ( sizeof ( customer ) * 10 ) ;
+
+#line 28 "pointer_to_struct.pgc"
+ cust_ind * inds = ( cust_ind * ) malloc ( sizeof ( cust_ind ) * 10 ) ;
+
+#line 34 "pointer_to_struct.pgc"
+ customer2 * custs2 = ( customer2 * ) malloc ( sizeof ( customer2 ) * 10 ) ;
+
+#line 40 "pointer_to_struct.pgc"
+ struct customer3 {
+#line 38 "pointer_to_struct.pgc"
+ char name [ 50 ] ;
+
+#line 39 "pointer_to_struct.pgc"
+ int phone ;
+ } * custs3 = ( struct customer3 * ) malloc ( sizeof ( struct customer3 ) * 10 ) ;
+
+#line 46 "pointer_to_struct.pgc"
+ struct customer4 {
+#line 44 "pointer_to_struct.pgc"
+ struct varchar_3 { int len; char arr[ 50 ]; } name ;
+
+#line 45 "pointer_to_struct.pgc"
+ int phone ;
+ } * custs4 = ( struct customer4 * ) malloc ( sizeof ( struct customer4 ) ) ;
+
+#line 48 "pointer_to_struct.pgc"
+ int r ;
+
+#line 49 "pointer_to_struct.pgc"
+ struct varchar_4 { int len; char arr[ 50 ]; } onlyname [ 2 ] ;
+/* exec sql end declare section */
+#line 50 "pointer_to_struct.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 54 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 54 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 54 "pointer_to_struct.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table customers ( c varchar ( 50 ) , p int )", ECPGt_EOIT, ECPGt_EORT);
+#line 56 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 56 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 56 "pointer_to_struct.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into customers values ( 'John Doe' , '12345' )", ECPGt_EOIT, ECPGt_EORT);
+#line 57 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 57 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 57 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 57 "pointer_to_struct.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into customers values ( 'Jane Doe' , '67890' )", ECPGt_EOIT, ECPGt_EORT);
+#line 58 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 58 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 58 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 58 "pointer_to_struct.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from customers limit 2", ECPGt_EOIT,
+ ECPGt_varchar,&(custs1->name),(long)50,(long)-1,sizeof( customer ),
+ ECPGt_short,&(inds->name_ind),(long)1,(long)-1,sizeof( struct ind ),
+ ECPGt_int,&(custs1->phone),(long)1,(long)-1,sizeof( customer ),
+ ECPGt_short,&(inds->phone_ind),(long)1,(long)-1,sizeof( struct ind ), ECPGt_EORT);
+#line 60 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 60 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 60 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 60 "pointer_to_struct.pgc"
+
+ printf("custs1:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs1[r].name.arr );
+ printf( "phone - %d\n", custs1[r].phone );
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from customers limit 2", ECPGt_EOIT,
+ ECPGt_varchar,&(custs2->name),(long)50,(long)-1,sizeof( customer2 ),
+ ECPGt_short,&(inds->name_ind),(long)1,(long)-1,sizeof( struct ind ),
+ ECPGt_int,&(custs2->phone),(long)1,(long)-1,sizeof( customer2 ),
+ ECPGt_short,&(inds->phone_ind),(long)1,(long)-1,sizeof( struct ind ), ECPGt_EORT);
+#line 68 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 68 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 68 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 68 "pointer_to_struct.pgc"
+
+ printf("\ncusts2:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs2[r].name.arr );
+ printf( "phone - %d\n", custs2[r].phone );
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from customers limit 2", ECPGt_EOIT,
+ ECPGt_char,&(custs3->name),(long)50,(long)-1,sizeof( struct customer3 ),
+ ECPGt_short,&(inds->name_ind),(long)1,(long)-1,sizeof( struct ind ),
+ ECPGt_int,&(custs3->phone),(long)1,(long)-1,sizeof( struct customer3 ),
+ ECPGt_short,&(inds->phone_ind),(long)1,(long)-1,sizeof( struct ind ), ECPGt_EORT);
+#line 76 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 76 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 76 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 76 "pointer_to_struct.pgc"
+
+ printf("\ncusts3:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs3[r].name );
+ printf( "phone - %d\n", custs3[r].phone );
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from customers limit 1", ECPGt_EOIT,
+ ECPGt_varchar,&(custs4->name),(long)50,(long)-1,sizeof( struct customer4 ),
+ ECPGt_short,&(inds->name_ind),(long)1,(long)-1,sizeof( struct ind ),
+ ECPGt_int,&(custs4->phone),(long)1,(long)-1,sizeof( struct customer4 ),
+ ECPGt_short,&(inds->phone_ind),(long)1,(long)-1,sizeof( struct ind ), ECPGt_EORT);
+#line 84 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 84 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 84 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 84 "pointer_to_struct.pgc"
+
+ printf("\ncusts4:\n");
+ printf( "name - %s\n", custs4->name.arr );
+ printf( "phone - %d\n", custs4->phone );
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select c from customers limit 2", ECPGt_EOIT,
+ ECPGt_varchar,(onlyname),(long)50,(long)2,sizeof(struct varchar_4),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 89 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 89 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 89 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 89 "pointer_to_struct.pgc"
+
+ printf("\nname:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", onlyname[r].arr );
+ }
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 96 "pointer_to_struct.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 96 "pointer_to_struct.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 96 "pointer_to_struct.pgc"
+
+
+ /* All the memory will anyway be freed at the end */
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stderr b/src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stderr
new file mode 100644
index 0000000..7076408
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stderr
@@ -0,0 +1,86 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: create table customers ( c varchar ( 50 ) , p int ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: query: insert into customers values ( 'John Doe' , '12345' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 57: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 58: query: insert into customers values ( 'Jane Doe' , '67890' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 58: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 58: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: query: select * from customers limit 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 60: correctly got 2 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 60: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 60: RESULT: Jane Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 60: RESULT: 12345 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 60: RESULT: 67890 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 68: query: select * from customers limit 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 68: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 68: correctly got 2 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 68: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 68: RESULT: Jane Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 68: RESULT: 12345 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 68: RESULT: 67890 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: query: select * from customers limit 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 76: correctly got 2 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: Jane Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: 12345 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 76: RESULT: 67890 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 84: query: select * from customers limit 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 84: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 84: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 84: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 84: RESULT: 12345 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 89: query: select c from customers limit 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 89: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 89: correctly got 2 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 89: RESULT: John Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 89: RESULT: Jane Doe offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stdout b/src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stdout
new file mode 100644
index 0000000..23f41ff
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stdout
@@ -0,0 +1,25 @@
+custs1:
+name - John Doe
+phone - 12345
+name - Jane Doe
+phone - 67890
+
+custs2:
+name - John Doe
+phone - 12345
+name - Jane Doe
+phone - 67890
+
+custs3:
+name - John Doe
+phone - 12345
+name - Jane Doe
+phone - 67890
+
+custs4:
+name - John Doe
+phone - 12345
+
+name:
+name - John Doe
+name - Jane Doe
diff --git a/src/interfaces/ecpg/test/expected/preproc-strings.c b/src/interfaces/ecpg/test/expected/preproc-strings.c
new file mode 100644
index 0000000..a268179
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-strings.c
@@ -0,0 +1,82 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "strings.pgc"
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 3 "strings.pgc"
+/* exec sql begin declare section */
+#line 1 "strings.h"
+
+
+
+
+
+
+
+
+
+#line 5 "strings.pgc"
+
+#line 1 "strings.h"
+ char * s1 , * s2 , * s3 , * s4 , * s5 , * s6 , * s7 , * s8 ;
+/* exec sql end declare section */
+#line 5 "strings.pgc"
+
+
+int main(void)
+{
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 11 "strings.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set standard_conforming_strings to on", ECPGt_EOIT, ECPGt_EORT);}
+#line 13 "strings.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select 'abc''d\\ef' , N'abc''d\\ef' as foo , E'abc''d\\\\ef' as \"foo\"\"bar\" , U&'d\\0061t\\0061' as U&\"foo\"\"bar\" , U&'d!+000061t!+000061' UESCAPE '!' , $foo$abc$def$foo$", ECPGt_EOIT,
+ ECPGt_char,&(s1),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(s2),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(s3),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(s4),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(s5),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(s6),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 21 "strings.pgc"
+
+
+ printf("%s %s %s %s %s %s\n", s1, s2, s3, s4, s5, s6);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select b'0010' , x'019ABcd'", ECPGt_EOIT,
+ ECPGt_char,&(s7),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(s8),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 26 "strings.pgc"
+
+
+ printf("%s %s\n", s7, s8);
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 30 "strings.pgc"
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-strings.stderr b/src/interfaces/ecpg/test/expected/preproc-strings.stderr
new file mode 100644
index 0000000..8364d6b
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-strings.stderr
@@ -0,0 +1,56 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 13: query: set standard_conforming_strings to on; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 13: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 13: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 15: query: select 'abc''d\ef' , N'abc''d\ef' as foo , E'abc''d\\ef' as "foo""bar" , U&'d\0061t\0061' as U&"foo""bar" , U&'d!+000061t!+000061' UESCAPE '!' , $foo$abc$def$foo$; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 15: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 15: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 15: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 15: RESULT: abc'd\ef offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 15: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 15: RESULT: abc'd\ef offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 15: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 15: RESULT: abc'd\ef offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 15: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 15: RESULT: data offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 15: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 15: RESULT: data offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 15: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 15: RESULT: abc$def offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: query: select b'0010' , x'019ABcd'; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 25: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 25: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 25: RESULT: 0010 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 25: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 25: RESULT: 0000000110011010101111001101 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-strings.stdout b/src/interfaces/ecpg/test/expected/preproc-strings.stdout
new file mode 100644
index 0000000..5abbe69
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-strings.stdout
@@ -0,0 +1,2 @@
+abc'd\ef abc'd\ef abc'd\ef data data abc$def
+0010 0000000110011010101111001101
diff --git a/src/interfaces/ecpg/test/expected/preproc-type.c b/src/interfaces/ecpg/test/expected/preproc-type.c
new file mode 100644
index 0000000..1968a87
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-type.c
@@ -0,0 +1,170 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "type.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "type.pgc"
+
+
+typedef long mmInteger ;
+
+#line 6 "type.pgc"
+
+#line 6 "type.pgc"
+
+typedef char mmChar ;
+
+#line 7 "type.pgc"
+
+#line 7 "type.pgc"
+
+typedef short mmSmallInt ;
+
+#line 8 "type.pgc"
+
+#line 8 "type.pgc"
+
+
+/* exec sql type string is char [ 11 ] */
+#line 10 "type.pgc"
+
+typedef char string[11];
+
+/* exec sql type c is char reference */
+#line 13 "type.pgc"
+
+typedef char* c;
+
+/* exec sql begin declare section */
+
+
+
+
+
+
+struct TBempl {
+#line 19 "type.pgc"
+ mmInteger idnum ;
+
+#line 20 "type.pgc"
+ mmChar name [ 21 ] ;
+
+#line 21 "type.pgc"
+ mmSmallInt accs ;
+ } ;/* exec sql end declare section */
+#line 23 "type.pgc"
+
+
+int
+main (void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+
+
+
+#line 29 "type.pgc"
+ struct TBempl empl ;
+
+#line 30 "type.pgc"
+ string str ;
+
+#line 31 "type.pgc"
+ c ptr = NULL ;
+
+#line 36 "type.pgc"
+ struct varchar {
+#line 34 "type.pgc"
+ int len ;
+
+#line 35 "type.pgc"
+ char text [ 10 ] ;
+ } vc ;
+/* exec sql end declare section */
+#line 37 "type.pgc"
+
+
+ /* exec sql var vc is [ 10 ] */
+#line 39 "type.pgc"
+
+ ECPGdebug (1, stderr);
+
+ empl.idnum = 1;
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 43 "type.pgc"
+
+ if (sqlca.sqlcode)
+ {
+ printf ("connect error = %ld\n", sqlca.sqlcode);
+ exit (sqlca.sqlcode);
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table empl ( idnum integer , name char ( 20 ) , accs smallint , string1 char ( 10 ) , string2 char ( 10 ) , string3 char ( 10 ) )", ECPGt_EOIT, ECPGt_EORT);}
+#line 51 "type.pgc"
+
+ if (sqlca.sqlcode)
+ {
+ printf ("create error = %ld\n", sqlca.sqlcode);
+ exit (sqlca.sqlcode);
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into empl values ( 1 , 'user name' , 320 , 'first str' , 'second str' , 'third str' )", ECPGt_EOIT, ECPGt_EORT);}
+#line 58 "type.pgc"
+
+ if (sqlca.sqlcode)
+ {
+ printf ("insert error = %ld\n", sqlca.sqlcode);
+ exit (sqlca.sqlcode);
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select idnum , name , accs , string1 , string2 , string3 from empl where idnum = $1 ",
+ ECPGt_long,&(empl.idnum),(long)1,(long)1,sizeof(long),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_long,&(empl.idnum),(long)1,(long)1,sizeof( struct TBempl ),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(empl.name),(long)21,(long)1,sizeof( struct TBempl ),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_short,&(empl.accs),(long)1,(long)1,sizeof( struct TBempl ),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(str),(long)11,(long)1,(11)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(ptr),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_varchar,&(vc),(long)10,(long)1,sizeof(struct varchar),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 68 "type.pgc"
+
+ if (sqlca.sqlcode)
+ {
+ printf ("select error = %ld\n", sqlca.sqlcode);
+ exit (sqlca.sqlcode);
+ }
+ printf ("id=%ld name='%s' accs=%d str='%s' ptr='%s' vc='%10.10s'\n", empl.idnum, empl.name, empl.accs, str, ptr, vc.text);
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 76 "type.pgc"
+
+
+ free(ptr);
+ exit (0);
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-type.stderr b/src/interfaces/ecpg/test/expected/preproc-type.stderr
new file mode 100644
index 0000000..678ecef
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-type.stderr
@@ -0,0 +1,40 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 50: query: create table empl ( idnum integer , name char ( 20 ) , accs smallint , string1 char ( 10 ) , string2 char ( 10 ) , string3 char ( 10 ) ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 50: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 50: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 58: query: insert into empl values ( 1 , 'user name' , 320 , 'first str' , 'second str' , 'third str' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 58: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 58: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: query: select idnum , name , accs , string1 , string2 , string3 from empl where idnum = $1 ; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 65: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 65: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 65: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 65: RESULT: user name offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 65: RESULT: 320 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 65: RESULT: first str offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 65: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 65: RESULT: second str offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 65: RESULT: third str offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-type.stdout b/src/interfaces/ecpg/test/expected/preproc-type.stdout
new file mode 100644
index 0000000..ee220d4
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-type.stdout
@@ -0,0 +1 @@
+id=1 name='user name ' accs=320 str='first str ' ptr='second str' vc='third str '
diff --git a/src/interfaces/ecpg/test/expected/preproc-variable.c b/src/interfaces/ecpg/test/expected/preproc-variable.c
new file mode 100644
index 0000000..cce3770
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-variable.c
@@ -0,0 +1,291 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "variable.pgc"
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "variable.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 6 "variable.pgc"
+
+
+/* exec sql type c is char reference */
+#line 8 "variable.pgc"
+
+typedef char* c;
+
+/* exec sql type ind is union {
+#line 11 "variable.pgc"
+ int integer ;
+
+#line 11 "variable.pgc"
+ short smallint ;
+ } */
+#line 11 "variable.pgc"
+
+typedef union { int integer; short smallint; } ind;
+
+#define BUFFERSIZ 8
+/* exec sql type str is [ BUFFERSIZ ] */
+#line 15 "variable.pgc"
+
+
+/* declare cur cursor for select name , born , age , married , children from family */
+#line 18 "variable.pgc"
+
+
+int
+main (void)
+{
+ struct birthinfo {
+#line 23 "variable.pgc"
+ long born ;
+
+#line 23 "variable.pgc"
+ short age ;
+ } ;
+#line 23 "variable.pgc"
+
+/* exec sql begin declare section */
+
+
+
+
+
+
+
+
+
+
+
+#line 27 "variable.pgc"
+ struct personal_struct {
+#line 25 "variable.pgc"
+ struct varchar_1 { int len; char arr[ BUFFERSIZ ]; } name ;
+
+#line 26 "variable.pgc"
+ struct birthinfo birth ;
+ } personal , * p ;
+
+#line 30 "variable.pgc"
+ struct personal_indicator {
+#line 28 "variable.pgc"
+ int ind_name ;
+
+#line 29 "variable.pgc"
+ struct birthinfo ind_birth ;
+ } ind_personal , * i ;
+
+#line 31 "variable.pgc"
+ ind ind_children ;
+ struct t1 {
+#line 32 "variable.pgc"
+ struct varchar_2 { int len; char arr[ BUFFERSIZ ]; } name ;
+ } ; struct t2 {
+#line 32 "variable.pgc"
+ struct varchar_3 { int len; char arr[ BUFFERSIZ ]; } name ;
+ } ;
+#line 33 "variable.pgc"
+ static struct varchar_4 { int len; char arr[ 50 ]; } vc1 ; static struct varchar_5 { int len; char arr[ 50 ]; } vc2 ; static struct varchar_6 { int len; char arr[ 255 ]; } vc3 ;
+
+#line 34 "variable.pgc"
+ static int i1 , i2 , i3 ;
+/* exec sql end declare section */
+#line 35 "variable.pgc"
+
+
+
+#line 37 "variable.pgc"
+ char * married = NULL ;
+
+#line 37 "variable.pgc"
+
+
+#line 38 "variable.pgc"
+ long ind_married ;
+
+#line 38 "variable.pgc"
+
+
+#line 39 "variable.pgc"
+ ind children ;
+
+#line 39 "variable.pgc"
+
+ int loopcount;
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 46 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 46 "variable.pgc"
+
+
+ strcpy(msg, "set");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
+#line 49 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 49 "variable.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table family ( name char ( 8 ) , born integer , age smallint , married date , children integer )", ECPGt_EOIT, ECPGt_EORT);
+#line 52 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 52 "variable.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into family ( name , married , children ) values ( 'Mum' , '19870714' , 3 )", ECPGt_EOIT, ECPGt_EORT);
+#line 55 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 55 "variable.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into family ( name , born , married , children ) values ( 'Dad' , '19610721' , '19870714' , 3 )", ECPGt_EOIT, ECPGt_EORT);
+#line 56 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 56 "variable.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into family ( name , age ) values ( 'Child 1' , 16 )", ECPGt_EOIT, ECPGt_EORT);
+#line 57 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 57 "variable.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into family ( name , age ) values ( 'Child 2' , 14 )", ECPGt_EOIT, ECPGt_EORT);
+#line 58 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 58 "variable.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into family ( name , age ) values ( 'Child 3' , 9 )", ECPGt_EOIT, ECPGt_EORT);
+#line 59 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 59 "variable.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 62 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 62 "variable.pgc"
+
+
+ strcpy(msg, "open");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare cur cursor for select name , born , age , married , children from family", ECPGt_EOIT, ECPGt_EORT);
+#line 65 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 65 "variable.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 67 "variable.pgc"
+
+
+ p=&personal;
+ i=&ind_personal;
+ memset(i, 0, sizeof(ind_personal));
+ for (loopcount = 0; loopcount < 100; loopcount++) {
+ strcpy(msg, "fetch");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch cur", ECPGt_EOIT,
+ ECPGt_varchar,&(p->name),(long)BUFFERSIZ,(long)-1,sizeof( struct birthinfo ),
+ ECPGt_int,&(i->ind_name),(long)1,(long)-1,sizeof( struct birthinfo ),
+ ECPGt_long,&(p->birth.born),(long)1,(long)1,sizeof( struct birthinfo ),
+ ECPGt_long,&(i->ind_birth.born),(long)1,(long)1,sizeof( struct birthinfo ),
+ ECPGt_short,&(p->birth.age),(long)1,(long)1,sizeof( struct birthinfo ),
+ ECPGt_short,&(i->ind_birth.age),(long)1,(long)1,sizeof( struct birthinfo ),
+ ECPGt_char,&(married),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_long,&(ind_married),(long)1,(long)1,sizeof(long),
+ ECPGt_int,&(children.integer),(long)1,(long)1,sizeof(int),
+ ECPGt_short,&(ind_children.smallint),(long)1,(long)1,sizeof(short), ECPGt_EORT);
+#line 74 "variable.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 74 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 74 "variable.pgc"
+
+ printf("%8.8s", personal.name.arr);
+ if (i->ind_birth.born >= 0)
+ printf(", born %ld", personal.birth.born);
+ if (i->ind_birth.age >= 0)
+ printf(", age = %d", personal.birth.age);
+ if (ind_married >= 0)
+ printf(", married %s", married);
+ if (ind_children.smallint >= 0)
+ printf(", children = %d", children.integer);
+ putchar('\n');
+
+ free(married);
+ married = NULL;
+ }
+
+ strcpy(msg, "close");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close cur", ECPGt_EOIT, ECPGt_EORT);
+#line 91 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 91 "variable.pgc"
+
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table family", ECPGt_EOIT, ECPGt_EORT);
+#line 94 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 94 "variable.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 97 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 97 "variable.pgc"
+
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 100 "variable.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 100 "variable.pgc"
+
+
+ /* this just to silence unused-variable warnings: */
+ vc1.len = vc2.len = vc3.len = 0;
+ i1 = i2 = i3 = 0;
+ printf("%d %d %d %d %d %d\n",
+ vc1.len, vc2.len, vc3.len,
+ i1, i2, i3);
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-variable.stderr b/src/interfaces/ecpg/test/expected/preproc-variable.stderr
new file mode 100644
index 0000000..0fb5b03
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-variable.stderr
@@ -0,0 +1,168 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 49: query: set datestyle to iso; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 49: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 49: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: query: create table family ( name char ( 8 ) , born integer , age smallint , married date , children integer ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 52: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: insert into family ( name , married , children ) values ( 'Mum' , '19870714' , 3 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: insert into family ( name , born , married , children ) values ( 'Dad' , '19610721' , '19870714' , 3 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: query: insert into family ( name , age ) values ( 'Child 1' , 16 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 57: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 58: query: insert into family ( name , age ) values ( 'Child 2' , 14 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 58: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 58: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: query: insert into family ( name , age ) values ( 'Child 3' , 9 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 59: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 62: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: query: declare cur cursor for select name , born , age , married , children from family; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 65: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: Mum offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 74: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 1987-07-14 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: Dad offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 19610721 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 74: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 1987-07-14 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: Child 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 16 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 74: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: Child 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 14 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 74: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 1 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: Child 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: 9 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 74: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 74: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: fetch cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: correctly got 0 tuples with 5 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 74: no data found on line 74
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 91: query: close cur; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 91: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 91: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 94: query: drop table family; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 94: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 94: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 97: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-variable.stdout b/src/interfaces/ecpg/test/expected/preproc-variable.stdout
new file mode 100644
index 0000000..89e841f
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-variable.stdout
@@ -0,0 +1,6 @@
+Mum , married 1987-07-14, children = 3
+Dad , born 19610721, married 1987-07-14, children = 3
+Child 1 , age = 16
+Child 2 , age = 14
+Child 3 , age = 9
+0 0 0 0 0 0
diff --git a/src/interfaces/ecpg/test/expected/preproc-whenever.c b/src/interfaces/ecpg/test/expected/preproc-whenever.c
new file mode 100644
index 0000000..861d84f
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-whenever.c
@@ -0,0 +1,246 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "whenever.pgc"
+#include <stdlib.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 3 "whenever.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 5 "whenever.pgc"
+
+
+static void print(const char *msg)
+{
+ fprintf(stderr, "Error in statement '%s':\n", msg);
+ sqlprint();
+}
+
+static void print2(void)
+{
+ fprintf(stderr, "Found another error\n");
+ sqlprint();
+}
+
+static void warn(void)
+{
+ fprintf(stderr, "Warning: At least one column was truncated\n");
+}
+
+int main(void)
+{
+
+#line 26 "whenever.pgc"
+ int i ;
+
+#line 26 "whenever.pgc"
+
+
+#line 27 "whenever.pgc"
+ char c [ 6 ] ;
+
+#line 27 "whenever.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 31 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 31 "whenever.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( i int , c char ( 10 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 32 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 32 "whenever.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( 1 , 'abcdefghij' )", ECPGt_EOIT, ECPGt_EORT);
+#line 33 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 33 "whenever.pgc"
+
+
+ /* exec sql whenever sql_warning do warn ( ) ; */
+#line 35 "whenever.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from test", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(c),(long)6,(long)1,(6)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 36 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 36 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 36 "whenever.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 37 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 37 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 37 "whenever.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistent", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 39 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 39 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 39 "whenever.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 40 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 40 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 40 "whenever.pgc"
+
+
+ /* exec sql whenever sqlerror do print ( \"select\" ) ; */
+#line 42 "whenever.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistent", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 43 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 43 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) print ( "select" );}
+#line 43 "whenever.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 44 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 44 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) print ( "select" );}
+#line 44 "whenever.pgc"
+
+
+ /* exec sql whenever sqlerror call print2 ( ) ; */
+#line 46 "whenever.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistent", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 47 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 47 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) print2 ( );}
+#line 47 "whenever.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 48 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 48 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) print2 ( );}
+#line 48 "whenever.pgc"
+
+
+ /* exec sql whenever sqlerror continue ; */
+#line 50 "whenever.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistent", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 51 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );}
+#line 51 "whenever.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 52 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );}
+#line 52 "whenever.pgc"
+
+
+ /* exec sql whenever sqlerror goto error ; */
+#line 54 "whenever.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistent", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 55 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 55 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) goto error;}
+#line 55 "whenever.pgc"
+
+ printf("Should not be reachable\n");
+
+ error:
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 59 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 59 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) goto error;}
+#line 59 "whenever.pgc"
+
+
+ /* exec sql whenever sqlerror stop ; */
+#line 61 "whenever.pgc"
+
+ /* This cannot fail, thus we don't get an exit value not equal 0. */
+ /* However, it still test the precompiler output. */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select 1", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 64 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 64 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 64 "whenever.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 65 "whenever.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') warn ( );
+#line 65 "whenever.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 65 "whenever.pgc"
+
+ exit (0);
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-whenever.stderr b/src/interfaces/ecpg/test/expected/preproc-whenever.stderr
new file mode 100644
index 0000000..03e94a6
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-whenever.stderr
@@ -0,0 +1,104 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: create table test ( i int , c char ( 10 ) ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: query: insert into test values ( 1 , 'abcdefghij' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: select * from test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: abcdefghij offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+Warning: At least one column was truncated
+[NO_PID]: ECPGtrans on line 37: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: select * from nonexistent; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_check_PQresult on line 39: bad response - ERROR: relation "nonexistent" does not exist
+LINE 1: select * from nonexistent
+ ^
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlstate 42P01 (sqlcode -400): relation "nonexistent" does not exist on line 39
+[NO_PID]: sqlca: code: -400, state: 42P01
+SQL error: relation "nonexistent" does not exist on line 39
+[NO_PID]: ECPGtrans on line 40: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 43: query: select * from nonexistent; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 43: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_check_PQresult on line 43: bad response - ERROR: relation "nonexistent" does not exist
+LINE 1: select * from nonexistent
+ ^
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlstate 42P01 (sqlcode -400): relation "nonexistent" does not exist on line 43
+[NO_PID]: sqlca: code: -400, state: 42P01
+Error in statement 'select':
+SQL error: relation "nonexistent" does not exist on line 43
+[NO_PID]: ECPGtrans on line 44: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 47: query: select * from nonexistent; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 47: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_check_PQresult on line 47: bad response - ERROR: relation "nonexistent" does not exist
+LINE 1: select * from nonexistent
+ ^
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlstate 42P01 (sqlcode -400): relation "nonexistent" does not exist on line 47
+[NO_PID]: sqlca: code: -400, state: 42P01
+Found another error
+SQL error: relation "nonexistent" does not exist on line 47
+[NO_PID]: ECPGtrans on line 48: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: query: select * from nonexistent; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_check_PQresult on line 51: bad response - ERROR: relation "nonexistent" does not exist
+LINE 1: select * from nonexistent
+ ^
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlstate 42P01 (sqlcode -400): relation "nonexistent" does not exist on line 51
+[NO_PID]: sqlca: code: -400, state: 42P01
+[NO_PID]: ECPGtrans on line 52: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: select * from nonexistent; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_check_PQresult on line 55: bad response - ERROR: relation "nonexistent" does not exist
+LINE 1: select * from nonexistent
+ ^
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlstate 42P01 (sqlcode -400): relation "nonexistent" does not exist on line 55
+[NO_PID]: sqlca: code: -400, state: 42P01
+[NO_PID]: ECPGtrans on line 59: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: query: select 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 64: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 64: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 65: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-whenever.stdout b/src/interfaces/ecpg/test/expected/preproc-whenever.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-whenever.stdout
diff --git a/src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.c b/src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.c
new file mode 100644
index 0000000..56354ba
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.c
@@ -0,0 +1,164 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "whenever_do_continue.pgc"
+#include <stdlib.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 3 "whenever_do_continue.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 5 "whenever_do_continue.pgc"
+
+
+int main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+
+
+
+#line 15 "whenever_do_continue.pgc"
+ struct {
+#line 12 "whenever_do_continue.pgc"
+ char ename [ 12 ] ;
+
+#line 13 "whenever_do_continue.pgc"
+ float sal ;
+
+#line 14 "whenever_do_continue.pgc"
+ float comm ;
+ } emp ;
+
+#line 16 "whenever_do_continue.pgc"
+ int loopcount ;
+
+#line 17 "whenever_do_continue.pgc"
+ char msg [ 128 ] ;
+/* exec sql end declare section */
+#line 18 "whenever_do_continue.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 23 "whenever_do_continue.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 23 "whenever_do_continue.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table emp ( ename varchar , sal double precision , comm double precision )", ECPGt_EOIT, ECPGt_EORT);
+#line 26 "whenever_do_continue.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 26 "whenever_do_continue.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into emp values ( 'Ram' , 111100 , 21 )", ECPGt_EOIT, ECPGt_EORT);
+#line 29 "whenever_do_continue.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 29 "whenever_do_continue.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into emp values ( 'aryan' , 11110 , null )", ECPGt_EOIT, ECPGt_EORT);
+#line 30 "whenever_do_continue.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 30 "whenever_do_continue.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into emp values ( 'josh' , 10000 , 10 )", ECPGt_EOIT, ECPGt_EORT);
+#line 31 "whenever_do_continue.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 31 "whenever_do_continue.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into emp values ( 'tom' , 20000 , null )", ECPGt_EOIT, ECPGt_EORT);
+#line 32 "whenever_do_continue.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 32 "whenever_do_continue.pgc"
+
+
+ /* declare c cursor for select ename , sal , comm from emp order by ename collate \"C\" asc */
+#line 34 "whenever_do_continue.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare c cursor for select ename , sal , comm from emp order by ename collate \"C\" asc", ECPGt_EOIT, ECPGt_EORT);
+#line 36 "whenever_do_continue.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 36 "whenever_do_continue.pgc"
+
+
+ /* The 'BREAK' condition to exit the loop. */
+ /* exec sql whenever not found break ; */
+#line 39 "whenever_do_continue.pgc"
+
+
+ /* The DO CONTINUE makes the loop start at the next iteration when an error occurs.*/
+ /* exec sql whenever sqlerror continue ; */
+#line 42 "whenever_do_continue.pgc"
+
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch c", ECPGt_EOIT,
+ ECPGt_char,&(emp.ename),(long)12,(long)1,(12)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_float,&(emp.sal),(long)1,(long)1,sizeof(float),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_float,&(emp.comm),(long)1,(long)1,sizeof(float),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 46 "whenever_do_continue.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 46 "whenever_do_continue.pgc"
+
+if (sqlca.sqlcode < 0) continue;}
+#line 46 "whenever_do_continue.pgc"
+
+ /* The employees with non-NULL commissions will be displayed. */
+ printf("%s %7.2f %9.2f\n", emp.ename, emp.sal, emp.comm);
+ }
+
+ /*
+ * This 'CONTINUE' shuts off the 'DO CONTINUE' and allow the program to
+ * proceed if any further errors do occur.
+ */
+ /* exec sql whenever sqlerror continue ; */
+#line 55 "whenever_do_continue.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close c", ECPGt_EOIT, ECPGt_EORT);}
+#line 57 "whenever_do_continue.pgc"
+
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table emp", ECPGt_EOIT, ECPGt_EORT);}
+#line 60 "whenever_do_continue.pgc"
+
+
+ exit(0);
+}
diff --git a/src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stderr b/src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stderr
new file mode 100644
index 0000000..46bc4a5
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stderr
@@ -0,0 +1,112 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: create table emp ( ename varchar , sal double precision , comm double precision ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: query: insert into emp values ( 'Ram' , 111100 , 21 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 29: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: insert into emp values ( 'aryan' , 11110 , null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: query: insert into emp values ( 'josh' , 10000 , 10 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 31: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: insert into emp values ( 'tom' , 20000 , null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: declare c cursor for select ename , sal , comm from emp order by ename collate "C" asc; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: fetch c; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: Ram offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 111100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 21 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: fetch c; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: aryan offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 11110 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -213 on line 46: null value without indicator on line 46
+[NO_PID]: sqlca: code: -213, state: 22002
+[NO_PID]: ecpg_execute on line 46: query: fetch c; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: josh offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 10000 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 10 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: fetch c; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: tom offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: 20000 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -213 on line 46: null value without indicator on line 46
+[NO_PID]: sqlca: code: -213, state: 22002
+[NO_PID]: ecpg_execute on line 46: query: fetch c; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 0 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 46: no data found on line 46
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 57: query: close c; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 57: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: query: drop table emp; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 60: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stdout b/src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stdout
new file mode 100644
index 0000000..d6ac5a0
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stdout
@@ -0,0 +1,2 @@
+Ram 111100.00 21.00
+josh 10000.00 10.00
diff --git a/src/interfaces/ecpg/test/expected/sql-array.c b/src/interfaces/ecpg/test/expected/sql-array.c
new file mode 100644
index 0000000..e48f5fa
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-array.c
@@ -0,0 +1,355 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "array.pgc"
+#include <locale.h>
+#include <string.h>
+#include <stdlib.h>
+
+#include <pgtypes_date.h>
+#include <pgtypes_interval.h>
+#include <pgtypes_numeric.h>
+#include <pgtypes_timestamp.h>
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 10 "array.pgc"
+
+
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 12 "array.pgc"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 13 "array.pgc"
+
+
+int
+main (void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+
+
+
+
+
+
+#line 19 "array.pgc"
+ int i = 1 , j ;
+
+#line 20 "array.pgc"
+ int * did = & i ;
+
+#line 21 "array.pgc"
+ short a [ 10 ] = { 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 } ;
+
+#line 22 "array.pgc"
+ timestamp ts [ 10 ] ;
+
+#line 23 "array.pgc"
+ date d [ 10 ] ;
+
+#line 24 "array.pgc"
+ interval in [ 10 ] ;
+
+#line 25 "array.pgc"
+ numeric n [ 10 ] ;
+
+#line 26 "array.pgc"
+ char text [ 25 ] = "klmnopqrst" ;
+
+#line 27 "array.pgc"
+ char * t = ( char * ) malloc ( 11 ) ;
+
+#line 28 "array.pgc"
+ double f ;
+/* exec sql end declare section */
+#line 29 "array.pgc"
+
+
+ strcpy(t, "0123456789");
+ setlocale(LC_ALL, "C");
+
+ ECPGdebug(1, stderr);
+
+ for (j = 0; j < 10; j++) {
+ char str[28];
+ numeric *value;
+ interval *inter;
+
+ sprintf(str, "2000-1-1 0%d:00:00", j);
+ ts[j] = PGTYPEStimestamp_from_asc(str, NULL);
+ sprintf(str, "2000-1-1%d\n", j);
+ d[j] = PGTYPESdate_from_asc(str, NULL);
+ sprintf(str, "%d hours", j+10);
+ inter = PGTYPESinterval_from_asc(str, NULL);
+ in[j] = *inter;
+ value = PGTYPESnumeric_new();
+ PGTYPESnumeric_from_int(j, value);
+ n[j] = *value;
+ }
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 53 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 53 "array.pgc"
+
+
+ { ECPGsetcommit(__LINE__, "on", NULL);
+#line 55 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 55 "array.pgc"
+
+
+ { ECPGtrans(__LINE__, NULL, "begin work");
+#line 57 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 57 "array.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( f float , i int , a int [ 10 ] , text char ( 10 ) , ts timestamp [ 10 ] , n numeric [ 10 ] , d date [ 10 ] , inter interval [ 10 ] )", ECPGt_EOIT, ECPGt_EORT);
+#line 59 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 59 "array.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( f , i , a , text , ts , n , d , inter ) values ( 404.90 , 3 , '{0,1,2,3,4,5,6,7,8,9}' , 'abcdefghij' , $1 , $2 , $3 , $4 )",
+ ECPGt_timestamp,&(ts),(long)1,(long)10,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_numeric,&(n),(long)1,(long)10,sizeof(numeric),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_date,&(d),(long)1,(long)10,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_interval,&(in),(long)1,(long)10,sizeof(interval),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 61 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 61 "array.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( f , i , a , text , ts , n , d , inter ) values ( 140787.0 , 2 , $1 , $2 , $3 , $4 , $5 , $6 )",
+ ECPGt_short,(a),(long)1,(long)10,sizeof(short),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(text),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(ts),(long)1,(long)10,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_numeric,&(n),(long)1,(long)10,sizeof(numeric),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_date,&(d),(long)1,(long)10,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_interval,&(in),(long)1,(long)10,sizeof(interval),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 63 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 63 "array.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( f , i , a , text , ts , n , d , inter ) values ( 14.07 , $1 , $2 , $3 , $4 , $5 , $6 , $7 )",
+ ECPGt_int,&(did),(long)1,(long)0,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_short,(a),(long)1,(long)10,sizeof(short),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(t),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(ts),(long)1,(long)10,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_numeric,&(n),(long)1,(long)10,sizeof(numeric),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_date,&(d),(long)1,(long)10,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_interval,&(in),(long)1,(long)10,sizeof(interval),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 65 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 65 "array.pgc"
+
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 67 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 67 "array.pgc"
+
+
+ for (j = 0; j < 10; j++) {
+ ts[j] = PGTYPEStimestamp_from_asc("1900-01-01 00:00:00", NULL);
+ d[j] = PGTYPESdate_from_asc("1900-01-01", NULL);
+ in[j] = *PGTYPESinterval_new();
+ n[j] = *PGTYPESnumeric_new();
+ }
+ { ECPGtrans(__LINE__, NULL, "begin work");
+#line 75 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 75 "array.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select f , text from test where i = 1", ECPGt_EOIT,
+ ECPGt_double,&(f),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(text),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 80 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 80 "array.pgc"
+
+
+ printf("Found f=%f text=%10.10s\n", f, text);
+
+ f=140787;
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select a , text , ts , n , d , inter from test where f = $1 ",
+ ECPGt_double,&(f),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_short,(a),(long)1,(long)10,sizeof(short),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,&(t),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_timestamp,&(ts),(long)1,(long)10,sizeof(timestamp),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_numeric,&(n),(long)1,(long)10,sizeof(numeric),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_date,&(d),(long)1,(long)10,sizeof(date),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_interval,&(in),(long)1,(long)10,sizeof(interval),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 88 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 88 "array.pgc"
+
+
+ for (i = 0; i < 10; i++)
+ printf("Found a[%d] = %d ts[%d] = %s n[%d] = %s d[%d] = %s in[%d] = %s\n", i, a[i], i, PGTYPEStimestamp_to_asc(ts[i]), i, PGTYPESnumeric_to_asc(&(n[i]), -1), i, PGTYPESdate_to_asc(d[i]), i, PGTYPESinterval_to_asc(&(in[i])));
+
+ printf("Found text=%10.10s\n", t);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select a from test where f = $1 ",
+ ECPGt_double,&(f),(long)1,(long)1,sizeof(double),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_char,(text),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 98 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 98 "array.pgc"
+
+
+ printf("Found text=%s\n", text);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT);
+#line 102 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 102 "array.pgc"
+
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 104 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 104 "array.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 106 "array.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 106 "array.pgc"
+
+
+ free(t);
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-array.stderr b/src/interfaces/ecpg/test/expected/sql-array.stderr
new file mode 100644
index 0000000..be67d47
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-array.stderr
@@ -0,0 +1,130 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGsetcommit on line 55: action "on"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 57: action "begin work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: query: create table test ( f float , i int , a int [ 10 ] , text char ( 10 ) , ts timestamp [ 10 ] , n numeric [ 10 ] , d date [ 10 ] , inter interval [ 10 ] ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 59: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: query: insert into test ( f , i , a , text , ts , n , d , inter ) values ( 404.90 , 3 , '{0,1,2,3,4,5,6,7,8,9}' , 'abcdefghij' , $1 , $2 , $3 , $4 ); with 4 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 61: parameter 1 = {2000-01-01 00:00:00,2000-01-01 01:00:00,2000-01-01 02:00:00,2000-01-01 03:00:00,2000-01-01 04:00:00,2000-01-01 05:00:00,2000-01-01 06:00:00,2000-01-01 07:00:00,2000-01-01 08:00:00,2000-01-01 09:00:00}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 61: parameter 2 = {0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 61: parameter 3 = {2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 61: parameter 4 = {@ 10 hours,@ 11 hours,@ 12 hours,@ 13 hours,@ 14 hours,@ 15 hours,@ 16 hours,@ 17 hours,@ 18 hours,@ 19 hours}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 61: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 63: query: insert into test ( f , i , a , text , ts , n , d , inter ) values ( 140787.0 , 2 , $1 , $2 , $3 , $4 , $5 , $6 ); with 6 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 63: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 63: parameter 1 = {9,8,7,6,5,4,3,2,1,0}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 63: parameter 2 = klmnopqrst
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 63: parameter 3 = {2000-01-01 00:00:00,2000-01-01 01:00:00,2000-01-01 02:00:00,2000-01-01 03:00:00,2000-01-01 04:00:00,2000-01-01 05:00:00,2000-01-01 06:00:00,2000-01-01 07:00:00,2000-01-01 08:00:00,2000-01-01 09:00:00}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 63: parameter 4 = {0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 63: parameter 5 = {2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 63: parameter 6 = {@ 10 hours,@ 11 hours,@ 12 hours,@ 13 hours,@ 14 hours,@ 15 hours,@ 16 hours,@ 17 hours,@ 18 hours,@ 19 hours}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 63: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: query: insert into test ( f , i , a , text , ts , n , d , inter ) values ( 14.07 , $1 , $2 , $3 , $4 , $5 , $6 , $7 ); with 7 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 65: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 65: parameter 2 = {9,8,7,6,5,4,3,2,1,0}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 65: parameter 3 = 0123456789
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 65: parameter 4 = {2000-01-01 00:00:00,2000-01-01 01:00:00,2000-01-01 02:00:00,2000-01-01 03:00:00,2000-01-01 04:00:00,2000-01-01 05:00:00,2000-01-01 06:00:00,2000-01-01 07:00:00,2000-01-01 08:00:00,2000-01-01 09:00:00}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 65: parameter 5 = {0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 65: parameter 6 = {2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 65: parameter 7 = {@ 10 hours,@ 11 hours,@ 12 hours,@ 13 hours,@ 14 hours,@ 15 hours,@ 16 hours,@ 17 hours,@ 18 hours,@ 19 hours}
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 65: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 67: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 75: action "begin work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 77: query: select f , text from test where i = 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 77: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 77: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 77: RESULT: 14.07 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 77: RESULT: 0123456789 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: query: select a , text , ts , n , d , inter from test where f = $1 ; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 85: parameter 1 = 140787
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 85: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_is_type_an_array on line 85: type (1007); C (3); array (yes)
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 85: RESULT: {9,8,7,6,5,4,3,2,1,0} offset: -1; array: yes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 85: RESULT: klmnopqrst offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_is_type_an_array on line 85: type (1115); C (19); array (yes)
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 85: RESULT: {"Sat Jan 01 00:00:00 2000","Sat Jan 01 01:00:00 2000","Sat Jan 01 02:00:00 2000","Sat Jan 01 03:00:00 2000","Sat Jan 01 04:00:00 2000","Sat Jan 01 05:00:00 2000","Sat Jan 01 06:00:00 2000","Sat Jan 01 07:00:00 2000","Sat Jan 01 08:00:00 2000","Sat Jan 01 09:00:00 2000"} offset: -1; array: yes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_is_type_an_array on line 85: type (1231); C (16); array (yes)
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 85: RESULT: {0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0} offset: -1; array: yes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_is_type_an_array on line 85: type (1182); C (18); array (yes)
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 85: RESULT: {01-10-2000,01-11-2000,01-12-2000,01-13-2000,01-14-2000,01-15-2000,01-16-2000,01-17-2000,01-18-2000,01-19-2000} offset: -1; array: yes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_is_type_an_array on line 85: type (1187); C (20); array (yes)
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 85: RESULT: {"@ 10 hours","@ 11 hours","@ 12 hours","@ 13 hours","@ 14 hours","@ 15 hours","@ 16 hours","@ 17 hours","@ 18 hours","@ 19 hours"} offset: -1; array: yes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 95: query: select a from test where f = $1 ; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 95: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 95: parameter 1 = 140787
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 95: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 95: RESULT: {9,8,7,6,5,4,3,2,1,0} offset: -1; array: yes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 102: query: drop table test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 102: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 102: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 104: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-array.stdout b/src/interfaces/ecpg/test/expected/sql-array.stdout
new file mode 100644
index 0000000..e2a91b9
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-array.stdout
@@ -0,0 +1,13 @@
+Found f=14.070000 text=0123456789
+Found a[0] = 9 ts[0] = 2000-01-01 00:00:00 n[0] = 0.0 d[0] = 2000-01-10 in[0] = @ 10 hours
+Found a[1] = 8 ts[1] = 2000-01-01 01:00:00 n[1] = 1.0 d[1] = 2000-01-11 in[1] = @ 11 hours
+Found a[2] = 7 ts[2] = 2000-01-01 02:00:00 n[2] = 2.0 d[2] = 2000-01-12 in[2] = @ 12 hours
+Found a[3] = 6 ts[3] = 2000-01-01 03:00:00 n[3] = 3.0 d[3] = 2000-01-13 in[3] = @ 13 hours
+Found a[4] = 5 ts[4] = 2000-01-01 04:00:00 n[4] = 4.0 d[4] = 2000-01-14 in[4] = @ 14 hours
+Found a[5] = 4 ts[5] = 2000-01-01 05:00:00 n[5] = 5.0 d[5] = 2000-01-15 in[5] = @ 15 hours
+Found a[6] = 3 ts[6] = 2000-01-01 06:00:00 n[6] = 6.0 d[6] = 2000-01-16 in[6] = @ 16 hours
+Found a[7] = 2 ts[7] = 2000-01-01 07:00:00 n[7] = 7.0 d[7] = 2000-01-17 in[7] = @ 17 hours
+Found a[8] = 1 ts[8] = 2000-01-01 08:00:00 n[8] = 8.0 d[8] = 2000-01-18 in[8] = @ 18 hours
+Found a[9] = 0 ts[9] = 2000-01-01 09:00:00 n[9] = 9.0 d[9] = 2000-01-19 in[9] = @ 19 hours
+Found text=klmnopqrst
+Found text={9,8,7,6,5,4,3,2,1,0}
diff --git a/src/interfaces/ecpg/test/expected/sql-binary.c b/src/interfaces/ecpg/test/expected/sql-binary.c
new file mode 100644
index 0000000..6d92ce3
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-binary.c
@@ -0,0 +1,230 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "binary.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "binary.pgc"
+
+
+/* exec sql begin declare section */
+
+
+
+
+
+
+
+struct TBempl {
+#line 9 "binary.pgc"
+ long idnum ;
+
+#line 10 "binary.pgc"
+ char name [ 21 ] ;
+
+#line 11 "binary.pgc"
+ short accs ;
+
+#line 12 "binary.pgc"
+ char byte [ 20 ] ;
+ } ;/* exec sql end declare section */
+#line 14 "binary.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 16 "binary.pgc"
+
+
+int
+main (void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+#line 22 "binary.pgc"
+ struct TBempl empl ;
+
+#line 23 "binary.pgc"
+ char * pointer = NULL ;
+
+#line 24 "binary.pgc"
+ char * data = "\\001\\155\\000\\212" ;
+/* exec sql end declare section */
+#line 25 "binary.pgc"
+
+ int i;
+
+ ECPGdebug (1, stderr);
+
+ empl.idnum = 1;
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 31 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 31 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set bytea_output = escape", ECPGt_EOIT, ECPGt_EORT);
+#line 32 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 32 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table empl ( idnum integer , name char ( 20 ) , accs smallint , byte bytea )", ECPGt_EOIT, ECPGt_EORT);
+#line 34 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 34 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into empl values ( 1 , 'first user' , 320 , $1 )",
+ ECPGt_char,&(data),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 35 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 35 "binary.pgc"
+
+ ECPGset_var( 0, &( empl.idnum ), __LINE__);\
+ /* declare C cursor for select name , accs , byte from empl where idnum = $1 */
+#line 36 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 36 "binary.pgc"
+
+#line 36 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare C cursor for select name , accs , byte from empl where idnum = $1 ",
+ ECPGt_long,&(empl.idnum),(long)1,(long)1,sizeof(long),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 37 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 37 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch C", ECPGt_EOIT,
+ ECPGt_char,(empl.name),(long)21,(long)1,(21)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_short,&(empl.accs),(long)1,(long)1,sizeof(short),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(empl.byte),(long)20,(long)1,(20)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 38 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 38 "binary.pgc"
+
+ printf ("name=%s, accs=%d byte=%s\n", empl.name, empl.accs, empl.byte);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close C", ECPGt_EOIT, ECPGt_EORT);
+#line 41 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 41 "binary.pgc"
+
+
+ memset(empl.name, 0, 21L);
+ ECPGset_var( 1, &( empl.idnum ), __LINE__);\
+ /* declare B binary cursor for select name , accs , byte from empl where idnum = $1 */
+#line 44 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 44 "binary.pgc"
+
+#line 44 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare B binary cursor for select name , accs , byte from empl where idnum = $1 ",
+ ECPGt_long,&(empl.idnum),(long)1,(long)1,sizeof(long),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 45 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 45 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch B", ECPGt_EOIT,
+ ECPGt_char,(empl.name),(long)21,(long)1,(21)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_short,&(empl.accs),(long)1,(long)1,sizeof(short),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(empl.byte),(long)20,(long)1,(20)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 46 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 46 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close B", ECPGt_EOIT, ECPGt_EORT);
+#line 47 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 47 "binary.pgc"
+
+
+ /* do not print a.accs because big/little endian will have different outputs here */
+ printf ("name=%s, byte=", empl.name);
+ for (i=0; i<4; i++)
+ printf("(%o)", (unsigned char)empl.byte[i]);
+ printf("\n");
+
+ ECPGset_var( 2, &( empl.idnum ), __LINE__);\
+ /* declare A binary cursor for select byte from empl where idnum = $1 */
+#line 55 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 55 "binary.pgc"
+
+#line 55 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare A binary cursor for select byte from empl where idnum = $1 ",
+ ECPGt_long,&(empl.idnum),(long)1,(long)1,sizeof(long),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 56 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 56 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch A", ECPGt_EOIT,
+ ECPGt_char,&(pointer),(long)0,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 57 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 57 "binary.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close A", ECPGt_EOIT, ECPGt_EORT);
+#line 58 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 58 "binary.pgc"
+
+
+ if (pointer) {
+ printf ("pointer=");
+ for (i=0; i<4; i++)
+ printf("(%o)", (unsigned char)pointer[i]);
+ printf("\n");
+ free(pointer);
+ }
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 68 "binary.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 68 "binary.pgc"
+
+ exit (0);
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-binary.stderr b/src/interfaces/ecpg/test/expected/sql-binary.stderr
new file mode 100644
index 0000000..28e5474
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-binary.stderr
@@ -0,0 +1,102 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: set bytea_output = escape; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: query: create table empl ( idnum integer , name char ( 20 ) , accs smallint , byte bytea ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: query: insert into empl values ( 1 , 'first user' , 320 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 35: parameter 1 = \001\155\000\212
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 35: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: query: declare C cursor for select name , accs , byte from empl where idnum = $1 ; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 37: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 37: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 38: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 38: RESULT: first user offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 38: RESULT: 320 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 38: RESULT: \001m\000\212 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: query: close C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: query: declare B binary cursor for select name , accs , byte from empl where idnum = $1 ; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 45: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 45: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: fetch B; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: BINARY offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: BINARY offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: BINARY offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 47: query: close B; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 47: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 47: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: declare A binary cursor for select byte from empl where idnum = $1 ; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 56: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: query: fetch A; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 57: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 57: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 57: allocating memory for 1 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 57: RESULT: BINARY offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 58: query: close A; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 58: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 58: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-binary.stdout b/src/interfaces/ecpg/test/expected/sql-binary.stdout
new file mode 100644
index 0000000..b2a94db
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-binary.stdout
@@ -0,0 +1,3 @@
+name=first user , accs=320 byte=\001m\000\212
+name=first user , byte=(1)(155)(0)(212)
+pointer=(1)(155)(0)(212)
diff --git a/src/interfaces/ecpg/test/expected/sql-bytea.c b/src/interfaces/ecpg/test/expected/sql-bytea.c
new file mode 100644
index 0000000..8338c60
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-bytea.c
@@ -0,0 +1,373 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "bytea.pgc"
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include <time.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "bytea.pgc"
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 7 "bytea.pgc"
+
+
+static void
+dump_binary(char *buf, int len, int ind)
+{
+ int i;
+
+ printf("len=%d, ind=%d, data=0x", len, ind);
+ for (i = 0; i < len; ++i)
+ printf("%02x", 0xff & buf[i]);
+ printf("\n");
+}
+
+#define DATA_SIZE 0x200
+#define LACK_SIZE 13
+#
+int
+main(void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+
+#line 27 "bytea.pgc"
+ struct bytea_1 { int len; char arr[ 512 ]; } send_buf [ 2 ] ;
+
+#line 28 "bytea.pgc"
+ struct bytea_2 { int len; char arr[ DATA_SIZE ]; } recv_buf [ 2 ] ;
+
+#line 29 "bytea.pgc"
+ struct bytea_3 { int len; char arr[ DATA_SIZE ]; } * recv_vlen_buf ;
+
+#line 30 "bytea.pgc"
+ struct bytea_4 { int len; char arr[ DATA_SIZE - LACK_SIZE ]; } recv_short_buf ;
+
+#line 31 "bytea.pgc"
+ int ind [ 2 ] ;
+/* exec sql end declare section */
+#line 32 "bytea.pgc"
+
+ int i, j, c;
+
+#define init() { \
+ for (i = 0; i < 2; ++i) \
+ { \
+ memset(recv_buf[i].arr, 0x0, sizeof(recv_buf[i].arr)); \
+ recv_buf[i].len = 0; \
+ ind[i] = 0; \
+ } \
+ recv_vlen_buf = NULL, \
+ memset(recv_short_buf.arr, 0x0, sizeof(recv_short_buf.arr)); \
+} \
+while (0)
+
+ ECPGdebug(1, stderr);
+
+ for (i = 0; i < 2; ++i)
+ {
+ for (j = 0, c = 0xff; (c == -1 ? c = 0xff : 1), j < DATA_SIZE; ++j, --c)
+ send_buf[i].arr[j] = c;
+
+ send_buf[i].len = DATA_SIZE;
+ }
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 57 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 57 "bytea.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table if not exists test ( data1 bytea , data2 bytea )", ECPGt_EOIT, ECPGt_EORT);
+#line 59 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 59 "bytea.pgc"
+
+
+ { ECPGprepare(__LINE__, NULL, 0, "ins_stmt", "insert into test values(?,?)");
+#line 61 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 61 "bytea.pgc"
+
+ { ECPGprepare(__LINE__, NULL, 0, "sel_stmt", "select data1,data2 from test");
+#line 62 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 62 "bytea.pgc"
+
+ ECPGallocate_desc(__LINE__, "idesc");
+#line 63 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 63 "bytea.pgc"
+
+ ECPGallocate_desc(__LINE__, "odesc");
+#line 64 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 64 "bytea.pgc"
+
+
+ /* Test for static sql statement with normal host variable, indicator */
+ init();
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 68 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 68 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( $1 , $2 )",
+ ECPGt_bytea,&(send_buf[0]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_bytea,&(send_buf[1]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 69 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 69 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select data1 , data2 from test", ECPGt_EOIT,
+ ECPGt_bytea,&(recv_buf[0]),(long)DATA_SIZE,(long)1,sizeof(struct bytea_2),
+ ECPGt_int,&(ind[0]),(long)1,(long)1,sizeof(int),
+ ECPGt_bytea,&(recv_short_buf),(long)DATA_SIZE - LACK_SIZE,(long)1,sizeof(struct bytea_4),
+ ECPGt_int,&(ind[1]),(long)1,(long)1,sizeof(int), ECPGt_EORT);
+#line 70 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 70 "bytea.pgc"
+
+ dump_binary(recv_buf[0].arr, recv_buf[0].len, ind[0]);
+ dump_binary(recv_short_buf.arr, recv_short_buf.len, ind[1]);
+
+ /* Test for cursor */
+ init();
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 76 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 76 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( $1 , $2 )",
+ ECPGt_bytea,&(send_buf[0]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_bytea,&(send_buf[1]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 77 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 77 "bytea.pgc"
+
+ ECPGset_var( 0, &( send_buf[0] ), __LINE__);\
+ /* declare cursor1 cursor for select data1 from test where data1 = $1 */
+#line 78 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 78 "bytea.pgc"
+
+#line 78 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare cursor1 cursor for select data1 from test where data1 = $1 ",
+ ECPGt_bytea,&(send_buf[0]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 79 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 79 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch from cursor1", ECPGt_EOIT,
+ ECPGt_bytea,&(recv_buf[0]),(long)DATA_SIZE,(long)1,sizeof(struct bytea_2),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 80 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 80 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close cursor1", ECPGt_EOIT, ECPGt_EORT);
+#line 81 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 81 "bytea.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "cursor1");
+#line 82 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 82 "bytea.pgc"
+
+ dump_binary(recv_buf[0].arr, recv_buf[0].len, 0);
+
+ /* Test for variable length array */
+ init();
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 87 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 87 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( $1 , $2 )",
+ ECPGt_bytea,&(send_buf[0]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_bytea,&(send_buf[1]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 88 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 88 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( $1 , $2 )",
+ ECPGt_bytea,&(send_buf[0]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_bytea,&(send_buf[1]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 89 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 89 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select data1 from test", ECPGt_EOIT,
+ ECPGt_bytea,&(recv_vlen_buf),(long)DATA_SIZE,(long)0,sizeof(struct bytea_3),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 90 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 90 "bytea.pgc"
+
+ dump_binary(recv_vlen_buf[0].arr, recv_vlen_buf[0].len, 0);
+ dump_binary(recv_vlen_buf[1].arr, recv_vlen_buf[1].len, 0);
+ free(recv_vlen_buf);
+
+ /* Test for dynamic sql statement with normal host variable, indicator */
+ init();
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 97 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 97 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "ins_stmt",
+ ECPGt_bytea,&(send_buf[0]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_bytea,&(send_buf[1]),(long)512,(long)1,sizeof(struct bytea_1),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 98 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 98 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "sel_stmt", ECPGt_EOIT,
+ ECPGt_bytea,&(recv_buf[0]),(long)DATA_SIZE,(long)1,sizeof(struct bytea_2),
+ ECPGt_int,&(ind[0]),(long)1,(long)1,sizeof(int),
+ ECPGt_bytea,&(recv_short_buf),(long)DATA_SIZE - LACK_SIZE,(long)1,sizeof(struct bytea_4),
+ ECPGt_int,&(ind[1]),(long)1,(long)1,sizeof(int), ECPGt_EORT);
+#line 99 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 99 "bytea.pgc"
+
+ dump_binary(recv_buf[0].arr, recv_buf[0].len, ind[0]);
+ dump_binary(recv_short_buf.arr, recv_short_buf.len, ind[1]);
+
+ /* Test for dynamic sql statement with sql descriptor */
+ init();
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 105 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 105 "bytea.pgc"
+
+ { ECPGset_desc(__LINE__, "idesc", 1,ECPGd_data,
+ ECPGt_bytea,&(send_buf[0]),(long)512,(long)1,sizeof(struct bytea_1), ECPGd_EODT);
+
+#line 106 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 106 "bytea.pgc"
+
+ { ECPGset_desc(__LINE__, "idesc", 2,ECPGd_data,
+ ECPGt_bytea,&(send_buf[1]),(long)512,(long)1,sizeof(struct bytea_1), ECPGd_EODT);
+
+#line 107 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 107 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "ins_stmt",
+ ECPGt_descriptor, "idesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 108 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 108 "bytea.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "sel_stmt", ECPGt_EOIT,
+ ECPGt_descriptor, "odesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 109 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 109 "bytea.pgc"
+
+ { ECPGget_desc(__LINE__, "odesc", 1,ECPGd_indicator,
+ ECPGt_int,&(ind[0]),(long)1,(long)1,sizeof(int), ECPGd_data,
+ ECPGt_bytea,&(recv_buf[0]),(long)DATA_SIZE,(long)1,sizeof(struct bytea_2), ECPGd_EODT);
+
+#line 110 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 110 "bytea.pgc"
+
+ { ECPGget_desc(__LINE__, "odesc", 2,ECPGd_indicator,
+ ECPGt_int,&(ind[1]),(long)1,(long)1,sizeof(int), ECPGd_data,
+ ECPGt_bytea,&(recv_short_buf),(long)DATA_SIZE - LACK_SIZE,(long)1,sizeof(struct bytea_4), ECPGd_EODT);
+
+#line 111 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 111 "bytea.pgc"
+
+ dump_binary(recv_buf[0].arr, recv_buf[0].len, ind[0]);
+ dump_binary(recv_short_buf.arr, recv_short_buf.len, ind[1]);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT);
+#line 115 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 115 "bytea.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 116 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 116 "bytea.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 117 "bytea.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 117 "bytea.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-bytea.stderr b/src/interfaces/ecpg/test/expected/sql-bytea.stderr
new file mode 100644
index 0000000..cb828a7
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-bytea.stderr
@@ -0,0 +1,191 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: query: create table if not exists test ( data1 bytea , data2 bytea ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 59: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 61: name ins_stmt; query: "insert into test values($1,$2)"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 62: name sel_stmt; query: "select data1,data2 from test"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 68: query: truncate test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 68: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 68: OK: TRUNCATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 69: query: insert into test values ( $1 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 69: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 69: parameter 1 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 69: parameter 2 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 69: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 70: query: select data1 , data2 from test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 70: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 70: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 70: RESULT: \xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 70: RESULT: \xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: query: truncate test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 76: OK: TRUNCATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 77: query: insert into test values ( $1 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 77: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 77: parameter 1 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 77: parameter 2 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 77: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 79: query: declare cursor1 cursor for select data1 from test where data1 = $1 ; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 79: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 79: parameter 1 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 79: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 80: query: fetch from cursor1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 80: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 80: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 80: RESULT: \xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 81: query: close cursor1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 81: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 81: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode -230 on line 82: invalid statement name "cursor1" on line 82
+[NO_PID]: sqlca: code: -230, state: 26000
+SQL error: invalid statement name "cursor1" on line 82
+[NO_PID]: ecpg_execute on line 87: query: truncate test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 87: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 87: OK: TRUNCATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 88: query: insert into test values ( $1 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 88: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 88: parameter 1 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 88: parameter 2 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 88: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 89: query: insert into test values ( $1 , $2 ); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 89: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 89: parameter 1 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 89: parameter 2 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 89: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 90: query: select data1 from test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 90: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 90: correctly got 2 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 90: allocating memory for 2 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 90: RESULT: \xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 90: RESULT: \xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 97: query: truncate test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 97: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 97: OK: TRUNCATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 98: query: insert into test values($1,$2); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 98: using PQexecPrepared for "insert into test values($1,$2)"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 98: parameter 1 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 98: parameter 2 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 98: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 99: query: select data1,data2 from test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 99: using PQexecPrepared for "select data1,data2 from test"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 99: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 99: RESULT: \xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 99: RESULT: \xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 105: query: truncate test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 105: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 105: OK: TRUNCATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 108: query: insert into test values($1,$2); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 108: using PQexecPrepared for "insert into test values($1,$2)"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 108: parameter 1 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 108: parameter 2 = fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 108: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: query: select data1,data2 from test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 109: using PQexecPrepared for "select data1,data2 from test"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 109: putting result (1 tuples) into descriptor odesc
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 110: RESULT: \xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 111: RESULT: \xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 115: query: drop table test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 115: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 115: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 116: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name sel_stmt
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name ins_stmt
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-bytea.stdout b/src/interfaces/ecpg/test/expected/sql-bytea.stdout
new file mode 100644
index 0000000..33e6100
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-bytea.stdout
@@ -0,0 +1,9 @@
+len=512, ind=0, data=0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+len=499, ind=512, data=0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d
+len=512, ind=0, data=0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+len=512, ind=0, data=0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+len=512, ind=0, data=0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+len=512, ind=0, data=0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+len=499, ind=512, data=0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d
+len=512, ind=0, data=0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100
+len=499, ind=512, data=0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0bfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a09f9e9d9c9b9a999897969594939291908f8e8d8c8b8a898887868584838281807f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a393837363534333231302f2e2d2c2b2a292827262524232221201f1e1d1c1b1a191817161514131211100f0e0d
diff --git a/src/interfaces/ecpg/test/expected/sql-code100.c b/src/interfaces/ecpg/test/expected/sql-code100.c
new file mode 100644
index 0000000..4c85530
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-code100.c
@@ -0,0 +1,164 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "code100.pgc"
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 1 "code100.pgc"
+
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "code100.pgc"
+
+
+
+int main()
+{ /* exec sql begin declare section */
+
+
+#line 9 "code100.pgc"
+ int index ;
+/* exec sql end declare section */
+#line 10 "code100.pgc"
+
+
+
+ ECPGdebug(1,stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 15 "code100.pgc"
+
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( \"index\" numeric ( 3 ) primary key , \"payload\" int4 not null )", ECPGt_EOIT, ECPGt_EORT);}
+#line 20 "code100.pgc"
+
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+ { ECPGtrans(__LINE__, NULL, "commit work");}
+#line 22 "code100.pgc"
+
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ for (index=0;index<10;++index)
+ { { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( payload , index ) values ( 0 , $1 )",
+ ECPGt_int,&(index),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);}
+#line 28 "code100.pgc"
+
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+ }
+ { ECPGtrans(__LINE__, NULL, "commit work");}
+#line 31 "code100.pgc"
+
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "update test set payload = payload + 1 where index = - 1", ECPGt_EOIT, ECPGt_EORT);}
+#line 35 "code100.pgc"
+
+ if (sqlca.sqlcode!=100) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "delete from test where index = - 1", ECPGt_EOIT, ECPGt_EORT);}
+#line 38 "code100.pgc"
+
+ if (sqlca.sqlcode!=100) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( select * from test where index = - 1 )", ECPGt_EOIT, ECPGt_EORT);}
+#line 41 "code100.pgc"
+
+ if (sqlca.sqlcode!=100) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT);}
+#line 44 "code100.pgc"
+
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+ { ECPGtrans(__LINE__, NULL, "commit work");}
+#line 46 "code100.pgc"
+
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 49 "code100.pgc"
+
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-code100.stderr b/src/interfaces/ecpg/test/expected/sql-code100.stderr
new file mode 100644
index 0000000..a84332e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-code100.stderr
@@ -0,0 +1,128 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: query: create table test ( "index" numeric ( 3 ) primary key , "payload" int4 not null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 18: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 22: action "commit work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 8
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test ( payload , index ) values ( 0 , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 26: parameter 1 = 9
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 31: action "commit work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: query: update test set payload = payload + 1 where index = - 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 34: OK: UPDATE 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 34: no data found on line 34
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 38: query: delete from test where index = - 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 38: OK: DELETE 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 38: no data found on line 38
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 41: query: insert into test ( select * from test where index = - 1 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: INSERT 0 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 41: no data found on line 41
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 44: query: drop table test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 44: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 44: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 46: action "commit work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-code100.stdout b/src/interfaces/ecpg/test/expected/sql-code100.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-code100.stdout
diff --git a/src/interfaces/ecpg/test/expected/sql-copystdout.c b/src/interfaces/ecpg/test/expected/sql-copystdout.c
new file mode 100644
index 0000000..d2599fb
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-copystdout.c
@@ -0,0 +1,150 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "copystdout.pgc"
+#include <stdio.h>
+
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 3 "copystdout.pgc"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "copystdout.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 6 "copystdout.pgc"
+
+
+int
+main ()
+{
+ ECPGdebug (1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 13 "copystdout.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 13 "copystdout.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table foo ( a int , b varchar )", ECPGt_EOIT, ECPGt_EORT);
+#line 14 "copystdout.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 14 "copystdout.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into foo values ( 5 , 'abc' )", ECPGt_EOIT, ECPGt_EORT);
+#line 15 "copystdout.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 15 "copystdout.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into foo values ( 6 , 'def' )", ECPGt_EOIT, ECPGt_EORT);
+#line 16 "copystdout.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 16 "copystdout.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into foo values ( 7 , 'ghi' )", ECPGt_EOIT, ECPGt_EORT);
+#line 17 "copystdout.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 17 "copystdout.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "copy foo to stdout with delimiter ','", ECPGt_EOIT, ECPGt_EORT);
+#line 19 "copystdout.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 19 "copystdout.pgc"
+
+ printf ("copy to STDOUT : sqlca.sqlcode = %ld\n", sqlca.sqlcode);
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 22 "copystdout.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 22 "copystdout.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-copystdout.stderr b/src/interfaces/ecpg/test/expected/sql-copystdout.stderr
new file mode 100644
index 0000000..df53ce1
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-copystdout.stderr
@@ -0,0 +1,38 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 14: query: create table foo ( a int , b varchar ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 14: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 14: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 15: query: insert into foo values ( 5 , 'abc' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 15: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 15: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 16: query: insert into foo values ( 6 , 'def' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 16: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 16: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 17: query: insert into foo values ( 7 , 'ghi' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 17: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 17: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 19: query: copy foo to stdout with delimiter ','; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 19: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 19: COPY OUT data transfer in progress
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 19: got PGRES_COMMAND_OK after PGRES_COPY_OUT
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-copystdout.stdout b/src/interfaces/ecpg/test/expected/sql-copystdout.stdout
new file mode 100644
index 0000000..4fbc432
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-copystdout.stdout
@@ -0,0 +1,4 @@
+5,abc
+6,def
+7,ghi
+copy to STDOUT : sqlca.sqlcode = 0
diff --git a/src/interfaces/ecpg/test/expected/sql-createtableas.c b/src/interfaces/ecpg/test/expected/sql-createtableas.c
new file mode 100644
index 0000000..973b463
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-createtableas.c
@@ -0,0 +1,164 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "createtableas.pgc"
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "createtableas.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 8 "createtableas.pgc"
+
+
+int
+main(void)
+{
+ /* exec sql begin declare section */
+
+
+#line 14 "createtableas.pgc"
+ int id ;
+/* exec sql end declare section */
+#line 15 "createtableas.pgc"
+
+
+ ECPGdebug(1, stderr);
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 18 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 18 "createtableas.pgc"
+
+
+ { ECPGsetcommit(__LINE__, "on", NULL);
+#line 20 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 20 "createtableas.pgc"
+
+ /* exec sql whenever sql_warning sqlprint ; */
+#line 21 "createtableas.pgc"
+
+ /* exec sql whenever sqlerror sqlprint ; */
+#line 22 "createtableas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table cta_test ( id int )", ECPGt_EOIT, ECPGt_EORT);
+#line 24 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 24 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 24 "createtableas.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into cta_test values ( 100 )", ECPGt_EOIT, ECPGt_EORT);
+#line 25 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 25 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 25 "createtableas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table if not exists cta_test1 as select * from cta_test", ECPGt_EOIT, ECPGt_EORT);
+#line 27 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 27 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 27 "createtableas.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select id from cta_test1", ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 28 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 28 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 28 "createtableas.pgc"
+
+ printf("ID = %d\n", id);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table cta_test2 as select * from cta_test with no data", ECPGt_EOIT, ECPGt_EORT);
+#line 31 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 31 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 31 "createtableas.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select count ( id ) from cta_test2", ECPGt_EOIT,
+ ECPGt_int,&(id),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 32 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 32 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 32 "createtableas.pgc"
+
+ printf("ID = %d\n", id);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table cta_test", ECPGt_EOIT, ECPGt_EORT);
+#line 35 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 35 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 35 "createtableas.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table cta_test1", ECPGt_EOIT, ECPGt_EORT);
+#line 36 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 36 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 36 "createtableas.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table cta_test2", ECPGt_EOIT, ECPGt_EORT);
+#line 37 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 37 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 37 "createtableas.pgc"
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 38 "createtableas.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 38 "createtableas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 38 "createtableas.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-createtableas.stderr b/src/interfaces/ecpg/test/expected/sql-createtableas.stderr
new file mode 100644
index 0000000..adb6711
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-createtableas.stderr
@@ -0,0 +1,66 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGsetcommit on line 20: action "on"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: create table cta_test ( id int ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: query: insert into cta_test values ( 100 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 25: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: query: create table if not exists cta_test1 as select * from cta_test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 27: OK: SELECT 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: select id from cta_test1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 28: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 28: RESULT: 100 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: query: create table cta_test2 as select * from cta_test with no data; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 31: OK: CREATE TABLE AS
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: select count ( id ) from cta_test2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: 0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: query: drop table cta_test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 35: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: drop table cta_test1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: query: drop table cta_test2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 37: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-createtableas.stdout b/src/interfaces/ecpg/test/expected/sql-createtableas.stdout
new file mode 100644
index 0000000..e27a3e9
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-createtableas.stdout
@@ -0,0 +1,2 @@
+ID = 100
+ID = 0
diff --git a/src/interfaces/ecpg/test/expected/sql-declare.c b/src/interfaces/ecpg/test/expected/sql-declare.c
new file mode 100644
index 0000000..6248d99
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-declare.c
@@ -0,0 +1,618 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "declare.pgc"
+#include <locale.h>
+#include <string.h>
+#include <stdlib.h>
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 5 "declare.pgc"
+
+
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 7 "declare.pgc"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 8 "declare.pgc"
+
+
+#define ARRAY_SIZE 2
+
+void execute_test(void);
+void commitTable(void);
+void reset(void);
+void printResult(char *tc_name, int loop);
+
+/* exec sql begin declare section */
+
+
+
+
+#line 18 "declare.pgc"
+ int f1 [ ARRAY_SIZE ] ;
+
+#line 19 "declare.pgc"
+ int f2 [ ARRAY_SIZE ] ;
+
+#line 20 "declare.pgc"
+ char f3 [ ARRAY_SIZE ] [ 20 ] ;
+/* exec sql end declare section */
+#line 21 "declare.pgc"
+
+
+int main(void)
+{
+ setlocale(LC_ALL, "C");
+
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "con1", 0);
+#line 29 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 29 "declare.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg2_regression" , NULL, NULL , "con2", 0);
+#line 30 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 30 "declare.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "create table source ( f1 integer , f2 integer , f3 varchar ( 20 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 32 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 32 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "con2", 0, ECPGst_normal, "create table source ( f1 integer , f2 integer , f3 varchar ( 20 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 33 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 33 "declare.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "insert into source values ( 1 , 10 , 'db on con1' )", ECPGt_EOIT, ECPGt_EORT);
+#line 35 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 35 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "insert into source values ( 2 , 20 , 'db on con1' )", ECPGt_EOIT, ECPGt_EORT);
+#line 36 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 36 "declare.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, "con2", 0, ECPGst_normal, "insert into source values ( 1 , 10 , 'db on con2' )", ECPGt_EOIT, ECPGt_EORT);
+#line 38 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 38 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "con2", 0, ECPGst_normal, "insert into source values ( 2 , 20 , 'db on con2' )", ECPGt_EOIT, ECPGt_EORT);
+#line 39 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 39 "declare.pgc"
+
+
+ commitTable();
+
+ execute_test();
+
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "drop table if exists source", ECPGt_EOIT, ECPGt_EORT);
+#line 45 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 45 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "con2", 0, ECPGst_normal, "drop table if exists source", ECPGt_EOIT, ECPGt_EORT);
+#line 46 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 46 "declare.pgc"
+
+
+ commitTable();
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 50 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 50 "declare.pgc"
+
+
+ return 0;
+}
+
+/*
+ * default connection: con2
+ * Non-default connection: con1
+ *
+ */
+void execute_test(void)
+{
+ /* exec sql begin declare section */
+
+
+
+#line 63 "declare.pgc"
+ int i , count , length ;
+
+#line 64 "declare.pgc"
+ char * selectString = "SELECT f1,f2,f3 FROM source" ;
+/* exec sql end declare section */
+#line 65 "declare.pgc"
+
+
+ /*
+ * testcase1. using DECLARE STATEMENT without using AT clause,
+ * using PREPARE and CURSOR statement without using AT clause
+ */
+ reset();
+
+ /* declare \"stmt_1\" as an SQL identifier */
+#line 73 "declare.pgc"
+
+ { ECPGprepare(__LINE__, NULL, 0, "stmt_1", selectString);
+#line 74 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 74 "declare.pgc"
+
+ /* declare cur_1 cursor for $1 */
+#line 75 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare cur_1 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "stmt_1", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 76 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 76 "declare.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 78 "declare.pgc"
+
+ i = 0;
+ while (1)
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch cur_1", ECPGt_EOIT,
+ ECPGt_int,&(f1[i]),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(f2[i]),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(f3[i]),(long)20,(long)1,(20)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 82 "declare.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 82 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 82 "declare.pgc"
+
+ i++;
+ }
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close cur_1", ECPGt_EOIT, ECPGt_EORT);
+#line 85 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 85 "declare.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "stmt_1");
+#line 86 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 86 "declare.pgc"
+
+ /* exec sql whenever not found continue ; */
+#line 87 "declare.pgc"
+
+
+ printResult("testcase1", 2);
+
+
+ /*
+ * testcase2. using DECLARE STATEMENT at con1,
+ * using PREPARE and CURSOR statement without using AT clause
+ */
+ reset();
+
+ /* declare \"stmt_2\" as an SQL identifier */
+#line 98 "declare.pgc"
+
+ { ECPGprepare(__LINE__, "con1", 0, "stmt_2", selectString);
+#line 99 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 99 "declare.pgc"
+
+ /* declare cur_2 cursor for $1 */
+#line 100 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "declare cur_2 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement("con1", "stmt_2", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 101 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 101 "declare.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 103 "declare.pgc"
+
+ i = 0;
+ while (1)
+ {
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "fetch cur_2", ECPGt_EOIT,
+ ECPGt_int,&(f1[i]),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(f2[i]),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(f3[i]),(long)20,(long)1,(20)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 107 "declare.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 107 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 107 "declare.pgc"
+
+ i++;
+ }
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "close cur_2", ECPGt_EOIT, ECPGt_EORT);
+#line 110 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 110 "declare.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, "con1", "stmt_2");
+#line 111 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 111 "declare.pgc"
+
+ /* exec sql whenever not found continue ; */
+#line 112 "declare.pgc"
+
+
+ printResult("testcase2", 2);
+
+ /*
+ * testcase3. using DECLARE STATEMENT without using AT clause,
+ * using PREPARE and EXECUTE statement without using AT clause
+ */
+ reset();
+
+ /* declare \"stmt_3\" as an SQL identifier */
+#line 122 "declare.pgc"
+
+ { ECPGprepare(__LINE__, NULL, 0, "stmt_3", selectString);
+#line 123 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 123 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "stmt_3", ECPGt_EOIT,
+ ECPGt_int,(f1),(long)1,(long)ARRAY_SIZE,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,(f2),(long)1,(long)ARRAY_SIZE,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(f3),(long)20,(long)ARRAY_SIZE,(20)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 124 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 124 "declare.pgc"
+
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "stmt_3");
+#line 126 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 126 "declare.pgc"
+
+
+ printResult("testcase3", 2);
+
+ /*
+ * testcase4. using DECLARE STATEMENT without using AT clause,
+ * using PREPARE and CURSOR statement at con2
+ */
+ reset();
+
+ /* declare \"stmt_4\" as an SQL identifier */
+#line 136 "declare.pgc"
+
+ { ECPGprepare(__LINE__, "con2", 0, "stmt_4", selectString);
+#line 137 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 137 "declare.pgc"
+
+ /* declare cur_4 cursor for $1 */
+#line 138 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "con2", 0, ECPGst_normal, "declare cur_4 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement("con2", "stmt_4", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 139 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 139 "declare.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 141 "declare.pgc"
+
+ i = 0;
+ while (1)
+ {
+ { ECPGdo(__LINE__, 0, 1, "con2", 0, ECPGst_normal, "fetch cur_4", ECPGt_EOIT,
+ ECPGt_int,&(f1[i]),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(f2[i]),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(f3[i]),(long)20,(long)1,(20)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 145 "declare.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 145 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 145 "declare.pgc"
+
+ i++;
+ }
+ { ECPGdo(__LINE__, 0, 1, "con2", 0, ECPGst_normal, "close cur_4", ECPGt_EOIT, ECPGt_EORT);
+#line 148 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 148 "declare.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, "con2", "stmt_4");
+#line 149 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 149 "declare.pgc"
+
+ /* exec sql whenever not found continue ; */
+#line 150 "declare.pgc"
+
+
+ printResult("testcase4", 2);
+
+ /*
+ * DESCRIBE statement is also supported.
+ */
+ /* declare \"stmt_desc\" as an SQL identifier */
+#line 157 "declare.pgc"
+
+ { ECPGprepare(__LINE__, "con1", 0, "stmt_desc", selectString);
+#line 158 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 158 "declare.pgc"
+
+ /* declare cur_desc cursor for $1 */
+#line 159 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "declare cur_desc cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement("con1", "stmt_desc", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 160 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 160 "declare.pgc"
+
+
+ /* descriptor can be used for describe statement */
+ ECPGallocate_desc(__LINE__, "desc_for_describe");
+#line 163 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 163 "declare.pgc"
+
+ { ECPGdescribe(__LINE__, 0, 0, "con1", "stmt_desc",
+ ECPGt_descriptor, "desc_for_describe", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 164 "declare.pgc"
+
+
+ { ECPGget_desc_header(__LINE__, "desc_for_describe", &(count));
+
+#line 166 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 166 "declare.pgc"
+
+ { ECPGget_desc(__LINE__, "desc_for_describe", 3,ECPGd_length,
+ ECPGt_int,&(length),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 167 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 167 "declare.pgc"
+
+
+ ECPGdeallocate_desc(__LINE__, "desc_for_describe");
+#line 169 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 169 "declare.pgc"
+
+
+ /* for fetch statement */
+ ECPGallocate_desc(__LINE__, "desc_for_fetch");
+#line 172 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 172 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "fetch cur_desc", ECPGt_EOIT,
+ ECPGt_descriptor, "desc_for_fetch", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 173 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 173 "declare.pgc"
+
+
+ { ECPGget_desc(__LINE__, "desc_for_fetch", 3,ECPGd_data,
+ ECPGt_char,(f3[0]),(long)20,(long)1,(20)*sizeof(char), ECPGd_EODT);
+
+#line 175 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 175 "declare.pgc"
+
+
+ ECPGdeallocate_desc(__LINE__, "desc_for_fetch");
+#line 177 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 177 "declare.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, "con1", 0, ECPGst_normal, "close cur_desc", ECPGt_EOIT, ECPGt_EORT);
+#line 178 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 178 "declare.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, "con1", "stmt_desc");
+#line 179 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 179 "declare.pgc"
+
+
+ printf("****descriptor results****\n");
+ printf("count: %d, length: %d, data: %s\n", count, length, f3[0]);
+}
+
+void commitTable()
+{
+ { ECPGtrans(__LINE__, "con1", "commit");
+#line 187 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 187 "declare.pgc"
+
+ { ECPGtrans(__LINE__, "con2", "commit");
+#line 188 "declare.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 188 "declare.pgc"
+
+}
+
+/*
+ * reset all the output variables
+ */
+void reset()
+{
+ memset(f1, 0, sizeof(f1));
+ memset(f2, 0, sizeof(f2));
+ memset(f3, 0, sizeof(f3));
+}
+
+void printResult(char *tc_name, int loop)
+{
+ int i;
+
+ if (tc_name)
+ printf("****%s test results:****\n", tc_name);
+
+ for (i = 0; i < loop; i++)
+ printf("f1=%d, f2=%d, f3=%s\n", f1[i], f2[i], f3[i]);
+
+ printf("\n");
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-declare.stderr b/src/interfaces/ecpg/test/expected/sql-declare.stderr
new file mode 100644
index 0000000..f5dc7c5
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-declare.stderr
@@ -0,0 +1,266 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg2_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: create table source ( f1 integer , f2 integer , f3 varchar ( 20 ) ); with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: query: create table source ( f1 integer , f2 integer , f3 varchar ( 20 ) ); with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: query: insert into source values ( 1 , 10 , 'db on con1' ); with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 35: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: insert into source values ( 2 , 20 , 'db on con1' ); with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: query: insert into source values ( 1 , 10 , 'db on con2' ); with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 38: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: insert into source values ( 2 , 20 , 'db on con2' ); with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 39: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 187: action "commit"; connection "con1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 188: action "commit"; connection "con2"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 74: name stmt_1; query: "SELECT f1,f2,f3 FROM source"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: query: declare cur_1 cursor for SELECT f1,f2,f3 FROM source; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 76: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 82: query: fetch cur_1; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 82: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 82: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 82: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 82: RESULT: 10 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 82: RESULT: db on con2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 82: query: fetch cur_1; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 82: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 82: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 82: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 82: RESULT: 20 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 82: RESULT: db on con2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 82: query: fetch cur_1; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 82: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 82: correctly got 0 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 82: no data found on line 82
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 85: query: close cur_1; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 85: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 86: name stmt_1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 99: name stmt_2; query: "SELECT f1,f2,f3 FROM source"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 101: query: declare cur_2 cursor for SELECT f1,f2,f3 FROM source; with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 101: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 101: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 107: query: fetch cur_2; with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 107: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 107: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 107: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 107: RESULT: 10 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 107: RESULT: db on con1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 107: query: fetch cur_2; with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 107: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 107: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 107: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 107: RESULT: 20 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 107: RESULT: db on con1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 107: query: fetch cur_2; with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 107: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 107: correctly got 0 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 107: no data found on line 107
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 110: query: close cur_2; with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 110: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 110: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 111: name stmt_2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 123: name stmt_3; query: "SELECT f1,f2,f3 FROM source"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 124: query: SELECT f1,f2,f3 FROM source; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 124: using PQexecPrepared for "SELECT f1,f2,f3 FROM source"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 124: correctly got 2 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 124: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 124: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 124: RESULT: 10 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 124: RESULT: 20 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 124: RESULT: db on con2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 124: RESULT: db on con2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 126: name stmt_3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 137: name stmt_4; query: "SELECT f1,f2,f3 FROM source"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 139: query: declare cur_4 cursor for SELECT f1,f2,f3 FROM source; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 139: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 139: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 145: query: fetch cur_4; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 145: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 145: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 145: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 145: RESULT: 10 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 145: RESULT: db on con2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 145: query: fetch cur_4; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 145: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 145: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 145: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 145: RESULT: 20 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 145: RESULT: db on con2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 145: query: fetch cur_4; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 145: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 145: correctly got 0 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 145: no data found on line 145
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 148: query: close cur_4; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 148: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 148: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 149: name stmt_4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 158: name stmt_desc; query: "SELECT f1,f2,f3 FROM source"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 160: query: declare cur_desc cursor for SELECT f1,f2,f3 FROM source; with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 160: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 160: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 3 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = 20
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 173: query: fetch cur_desc; with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 173: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 173: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 173: putting result (1 tuples) into descriptor desc_for_fetch
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 175: RESULT: db on con1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 178: query: close cur_desc; with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 178: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 178: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 179: name stmt_desc
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: query: drop table if exists source; with 0 parameter(s) on connection con1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 45: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: drop table if exists source; with 0 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 187: action "commit"; connection "con1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 188: action "commit"; connection "con2"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection con2 closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection con1 closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-declare.stdout b/src/interfaces/ecpg/test/expected/sql-declare.stdout
new file mode 100644
index 0000000..c231f62
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-declare.stdout
@@ -0,0 +1,18 @@
+****testcase1 test results:****
+f1=1, f2=10, f3=db on con2
+f1=2, f2=20, f3=db on con2
+
+****testcase2 test results:****
+f1=1, f2=10, f3=db on con1
+f1=2, f2=20, f3=db on con1
+
+****testcase3 test results:****
+f1=1, f2=10, f3=db on con2
+f1=2, f2=20, f3=db on con2
+
+****testcase4 test results:****
+f1=1, f2=10, f3=db on con2
+f1=2, f2=20, f3=db on con2
+
+****descriptor results****
+count: 3, length: 20, data: db on con1
diff --git a/src/interfaces/ecpg/test/expected/sql-define.c b/src/interfaces/ecpg/test/expected/sql-define.c
new file mode 100644
index 0000000..29583ec
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-define.c
@@ -0,0 +1,205 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "define.pgc"
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 1 "define.pgc"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 2 "define.pgc"
+
+
+
+
+
+int main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+#line 10 "define.pgc"
+ int i ;
+
+#line 11 "define.pgc"
+ char s [ 200 ] ;
+/* exec sql end declare section */
+#line 12 "define.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ /* exec sql whenever sqlerror do sqlprint ( ) ; */
+#line 16 "define.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 17 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 17 "define.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( a int , b text )", ECPGt_EOIT, ECPGt_EORT);
+#line 19 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 19 "define.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( 29 , 'abcdef' )", ECPGt_EOIT, ECPGt_EORT);
+#line 20 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 20 "define.pgc"
+
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( null , 'defined' )", ECPGt_EOIT, ECPGt_EORT);
+#line 23 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 23 "define.pgc"
+
+
+
+
+
+
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( null , 'someothervar not defined' )", ECPGt_EOIT, ECPGt_EORT);
+#line 31 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 31 "define.pgc"
+
+
+
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select 1 , 29 :: text || '-' || 'abcdef'", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(s),(long)200,(long)1,(200)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 36 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 36 "define.pgc"
+
+
+ printf("i: %d, s: %s\n", i, s);
+
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( 29 , 'no string' )", ECPGt_EOIT, ECPGt_EORT);
+#line 42 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 42 "define.pgc"
+
+
+
+ /* no value */
+
+
+
+
+
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set TIMEZONE to 'UTC'", ECPGt_EOIT, ECPGt_EORT);
+#line 53 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 53 "define.pgc"
+
+
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 56 "define.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 56 "define.pgc"
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-define.stderr b/src/interfaces/ecpg/test/expected/sql-define.stderr
new file mode 100644
index 0000000..20601b6
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-define.stderr
@@ -0,0 +1,52 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 19: query: create table test ( a int , b text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 19: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 19: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: query: insert into test values ( 29 , 'abcdef' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 20: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: query: insert into test values ( null , 'defined' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 23: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: query: insert into test values ( null , 'someothervar not defined' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 31: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: select 1 , 29 :: text || '-' || 'abcdef'; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: 29-abcdef offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: query: insert into test values ( 29 , 'no string' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: query: set TIMEZONE to 'UTC'; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 53: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-define.stdout b/src/interfaces/ecpg/test/expected/sql-define.stdout
new file mode 100644
index 0000000..864cd85
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-define.stdout
@@ -0,0 +1 @@
+i: 1, s: 29-abcdef
diff --git a/src/interfaces/ecpg/test/expected/sql-desc.c b/src/interfaces/ecpg/test/expected/sql-desc.c
new file mode 100644
index 0000000..bdd12a5
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-desc.c
@@ -0,0 +1,377 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "desc.pgc"
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 1 "desc.pgc"
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 2 "desc.pgc"
+
+
+int
+main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+
+
+
+
+
+#line 8 "desc.pgc"
+ char * stmt1 = "INSERT INTO test1 VALUES ($1, $2)" ;
+
+#line 9 "desc.pgc"
+ char * stmt2 = "SELECT * from test1 where a = $1 and b = $2" ;
+
+#line 10 "desc.pgc"
+ char * stmt3 = "SELECT * from test1 where :var = a" ;
+
+#line 12 "desc.pgc"
+ int val1 = 1 ;
+
+#line 13 "desc.pgc"
+ char val2 [ 4 ] = "one" , val2output [] = "AAA" ;
+
+#line 14 "desc.pgc"
+ int val1output = 2 , val2i = 0 ;
+
+#line 15 "desc.pgc"
+ int val2null = - 1 ;
+
+#line 16 "desc.pgc"
+ int ind1 , ind2 ;
+
+#line 17 "desc.pgc"
+ char desc1 [ 8 ] = "outdesc" ;
+/* exec sql end declare section */
+#line 18 "desc.pgc"
+
+
+ ECPGdebug(1, stderr);
+
+ ECPGallocate_desc(__LINE__, "indesc");
+#line 22 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 22 "desc.pgc"
+
+ ECPGallocate_desc(__LINE__, (desc1));
+#line 23 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 23 "desc.pgc"
+
+
+ { ECPGset_desc(__LINE__, "indesc", 1,ECPGd_data,
+ ECPGt_int,&(val1),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 25 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 25 "desc.pgc"
+
+ { ECPGset_desc(__LINE__, "indesc", 2,ECPGd_data,
+ ECPGt_char,(val2),(long)4,(long)1,(4)*sizeof(char), ECPGd_indicator,
+ ECPGt_int,&(val2i),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 26 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 26 "desc.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 28 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 28 "desc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test1 ( a int , b text )", ECPGt_EOIT, ECPGt_EORT);
+#line 30 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 30 "desc.pgc"
+
+ { ECPGprepare(__LINE__, NULL, 0, "foo1", stmt1);
+#line 31 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 31 "desc.pgc"
+
+ { ECPGprepare(__LINE__, NULL, 0, "Foo-1", stmt1);
+#line 32 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 32 "desc.pgc"
+
+ { ECPGprepare(__LINE__, NULL, 0, "foo2", stmt2);
+#line 33 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 33 "desc.pgc"
+
+ { ECPGprepare(__LINE__, NULL, 0, "foo3", stmt3);
+#line 34 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 34 "desc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "foo1",
+ ECPGt_descriptor, "indesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 36 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 36 "desc.pgc"
+
+
+ { ECPGset_desc(__LINE__, "indesc", 1,ECPGd_data,
+ ECPGt_const,"2",(long)1,(long)1,strlen("2"), ECPGd_EODT);
+
+#line 38 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 38 "desc.pgc"
+
+ { ECPGset_desc(__LINE__, "indesc", 2,ECPGd_data,
+ ECPGt_char,(val2),(long)4,(long)1,(4)*sizeof(char), ECPGd_indicator,
+ ECPGt_int,&(val2null),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 39 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 39 "desc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "foo1",
+ ECPGt_descriptor, "indesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 41 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 41 "desc.pgc"
+
+
+ { ECPGset_desc(__LINE__, "indesc", 1,ECPGd_data,
+ ECPGt_const,"3",(long)1,(long)1,strlen("3"), ECPGd_EODT);
+
+#line 43 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 43 "desc.pgc"
+
+ { ECPGset_desc(__LINE__, "indesc", 2,ECPGd_data,
+ ECPGt_const,"this is a long test",(long)19,(long)1,strlen("this is a long test"), ECPGd_indicator,
+ ECPGt_int,&(val1),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 44 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 44 "desc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "Foo-1",
+ ECPGt_descriptor, "indesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 46 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 46 "desc.pgc"
+
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "Foo-1");
+#line 48 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 48 "desc.pgc"
+
+
+ { ECPGset_desc(__LINE__, "indesc", 1,ECPGd_data,
+ ECPGt_int,&(val1),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 50 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 50 "desc.pgc"
+
+ { ECPGset_desc(__LINE__, "indesc", 2,ECPGd_data,
+ ECPGt_char,(val2),(long)4,(long)1,(4)*sizeof(char), ECPGd_indicator,
+ ECPGt_int,&(val2i),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 51 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 51 "desc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "foo2",
+ ECPGt_descriptor, "indesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_descriptor, (desc1), 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 53 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 53 "desc.pgc"
+
+
+ { ECPGget_desc(__LINE__, (desc1), 1,ECPGd_data,
+ ECPGt_char,(val2output),(long)sizeof("AAA"),(long)1,(sizeof("AAA"))*sizeof(char), ECPGd_EODT);
+
+#line 55 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 55 "desc.pgc"
+
+ printf("output = %s\n", val2output);
+
+ /* declare c1 cursor for $1 */
+#line 58 "desc.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare c1 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "foo2", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_descriptor, "indesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 59 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 59 "desc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch next from c1", ECPGt_EOIT,
+ ECPGt_int,&(val1output),(long)1,(long)1,sizeof(int),
+ ECPGt_int,&(ind1),(long)1,(long)1,sizeof(int),
+ ECPGt_char,(val2output),(long)sizeof("AAA"),(long)1,(sizeof("AAA"))*sizeof(char),
+ ECPGt_int,&(ind2),(long)1,(long)1,sizeof(int), ECPGt_EORT);
+#line 61 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 61 "desc.pgc"
+
+ printf("val1=%d (ind1: %d) val2=%s (ind2: %d)\n",
+ val1output, ind1, val2output, ind2);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close c1", ECPGt_EOIT, ECPGt_EORT);
+#line 65 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 65 "desc.pgc"
+
+
+ { ECPGset_desc_header(__LINE__, "indesc", (int)(1));
+
+#line 67 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 67 "desc.pgc"
+
+ { ECPGset_desc(__LINE__, "indesc", 1,ECPGd_data,
+ ECPGt_const,"2",(long)1,(long)1,strlen("2"), ECPGd_EODT);
+
+#line 68 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 68 "desc.pgc"
+
+
+ /* declare c2 cursor for $1 */
+#line 70 "desc.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare c2 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "foo3", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_descriptor, "indesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 71 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 71 "desc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch next from c2", ECPGt_EOIT,
+ ECPGt_int,&(val1output),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(val2output),(long)sizeof("AAA"),(long)1,(sizeof("AAA"))*sizeof(char),
+ ECPGt_int,&(val2i),(long)1,(long)1,sizeof(int), ECPGt_EORT);
+#line 73 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 73 "desc.pgc"
+
+ printf("val1=%d val2=%s\n", val1output, val2i ? "null" : val2output);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close c2", ECPGt_EOIT, ECPGt_EORT);
+#line 76 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 76 "desc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from test1 where a = 3", ECPGt_EOIT,
+ ECPGt_int,&(val1output),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(val2output),(long)sizeof("AAA"),(long)1,(sizeof("AAA"))*sizeof(char),
+ ECPGt_int,&(val2i),(long)1,(long)1,sizeof(int), ECPGt_EORT);
+#line 78 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 78 "desc.pgc"
+
+ printf("val1=%d val2=%c%c%c%c warn=%c truncate=%d\n", val1output, val2output[0], val2output[1], val2output[2], val2output[3], sqlca.sqlwarn[0], val2i);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test1", ECPGt_EOIT, ECPGt_EORT);
+#line 81 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 81 "desc.pgc"
+
+ { ECPGdeallocate_all(__LINE__, 0, NULL);
+#line 82 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 82 "desc.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 83 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 83 "desc.pgc"
+
+
+ ECPGdeallocate_desc(__LINE__, "indesc");
+#line 85 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 85 "desc.pgc"
+
+ ECPGdeallocate_desc(__LINE__, (desc1));
+#line 86 "desc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 86 "desc.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-desc.stderr b/src/interfaces/ecpg/test/expected/sql-desc.stderr
new file mode 100644
index 0000000..65e7cea
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-desc.stderr
@@ -0,0 +1,140 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: create table test1 ( a int , b text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 31: name foo1; query: "INSERT INTO test1 VALUES ($1, $2)"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 32: name Foo-1; query: "INSERT INTO test1 VALUES ($1, $2)"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 33: name foo2; query: "SELECT * from test1 where a = $1 and b = $2"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 34: name foo3; query: "SELECT * from test1 where $1 = a"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: INSERT INTO test1 VALUES ($1, $2); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexecPrepared for "INSERT INTO test1 VALUES ($1, $2)"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 36: parameter 2 = one
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: query: INSERT INTO test1 VALUES ($1, $2); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexecPrepared for "INSERT INTO test1 VALUES ($1, $2)"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 1 = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 2 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: INSERT INTO test1 VALUES ($1, $2); with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexecPrepared for "INSERT INTO test1 VALUES ($1, $2)"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 46: parameter 1 = 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 46: parameter 2 = this is a long test
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 48: name Foo-1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: query: SELECT * from test1 where a = $1 and b = $2; with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: using PQexecPrepared for "SELECT * from test1 where a = $1 and b = $2"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 53: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 53: parameter 2 = one
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 53: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 53: putting result (1 tuples) into descriptor outdesc
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 55: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: query: declare c1 cursor for SELECT * from test1 where a = $1 and b = $2; with 2 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 59: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 59: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 59: parameter 2 = one
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 59: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: query: fetch next from c1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 61: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 61: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 61: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 61: RESULT: one offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: query: close c1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 65: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 71: query: declare c2 cursor for SELECT * from test1 where $1 = a; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 71: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 71: parameter 1 = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 71: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 73: query: fetch next from c2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 73: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 73: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 73: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 73: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: query: close c2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 76: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 76: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 78: query: select * from test1 where a = 3; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 78: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 78: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 78: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 78: RESULT: this is a long test offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 81: query: drop table test1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 81: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 81: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 82: name foo3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 82: name foo2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 82: name foo1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-desc.stdout b/src/interfaces/ecpg/test/expected/sql-desc.stdout
new file mode 100644
index 0000000..7d91043
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-desc.stdout
@@ -0,0 +1,4 @@
+output = 1
+val1=1 (ind1: 0) val2=one (ind2: 0)
+val1=2 val2=null
+val1=3 val2=this warn=W truncate=19
diff --git a/src/interfaces/ecpg/test/expected/sql-describe.c b/src/interfaces/ecpg/test/expected/sql-describe.c
new file mode 100644
index 0000000..b79a6f4
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-describe.c
@@ -0,0 +1,465 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "describe.pgc"
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "describe.pgc"
+
+
+#line 1 "sqlda.h"
+#ifndef ECPG_SQLDA_H
+#define ECPG_SQLDA_H
+
+#ifdef _ECPG_INFORMIX_H
+
+#include "sqlda-compat.h"
+typedef struct sqlvar_compat sqlvar_t;
+typedef struct sqlda_compat sqlda_t;
+
+#else
+
+#include "sqlda-native.h"
+typedef struct sqlvar_struct sqlvar_t;
+typedef struct sqlda_struct sqlda_t;
+
+#endif
+
+#endif /* ECPG_SQLDA_H */
+
+#line 5 "describe.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 7 "describe.pgc"
+
+
+sqlda_t *sqlda1, *sqlda2, *sqlda3;
+
+int
+main (void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+
+#line 15 "describe.pgc"
+ char * stmt1 = "SELECT id, t FROM descr_t2" ;
+
+#line 16 "describe.pgc"
+ char * stmt2 = "SELECT id, t FROM descr_t2 WHERE id = -1" ;
+
+#line 17 "describe.pgc"
+ int i , count1 , count2 ;
+
+#line 18 "describe.pgc"
+ char field_name1 [ 30 ] = "not set" ;
+
+#line 19 "describe.pgc"
+ char field_name2 [ 30 ] = "not set" ;
+/* exec sql end declare section */
+#line 20 "describe.pgc"
+
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 27 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 27 "describe.pgc"
+
+
+ strcpy(msg, "set");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
+#line 30 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 30 "describe.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table descr_t2 ( id serial primary key , t text )", ECPGt_EOIT, ECPGt_EORT);
+#line 33 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 33 "describe.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into descr_t2 ( id , t ) values ( default , 'a' )", ECPGt_EOIT, ECPGt_EORT);
+#line 36 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 36 "describe.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into descr_t2 ( id , t ) values ( default , 'b' )", ECPGt_EOIT, ECPGt_EORT);
+#line 37 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 37 "describe.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into descr_t2 ( id , t ) values ( default , 'c' )", ECPGt_EOIT, ECPGt_EORT);
+#line 38 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 38 "describe.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into descr_t2 ( id , t ) values ( default , 'd' )", ECPGt_EOIT, ECPGt_EORT);
+#line 39 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 39 "describe.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 42 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 42 "describe.pgc"
+
+
+ /*
+ * Test DESCRIBE with a query producing tuples.
+ * DESCRIPTOR and SQL DESCRIPTOR are NOT the same in
+ * Informix-compat mode.
+ */
+
+ strcpy(msg, "allocate");
+ ECPGallocate_desc(__LINE__, "desc1");
+#line 51 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 51 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc2");
+#line 52 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 52 "describe.pgc"
+
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id1", stmt1);
+#line 55 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 55 "describe.pgc"
+
+
+ sqlda1 = sqlda2 = sqlda3 = NULL;
+
+ strcpy(msg, "describe");
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id1",
+ ECPGt_descriptor, "desc1", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 60 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id1",
+ ECPGt_descriptor, "desc2", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 61 "describe.pgc"
+
+
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id1",
+ ECPGt_sqlda, &sqlda1, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 63 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id1",
+ ECPGt_sqlda, &sqlda2, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 64 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id1",
+ ECPGt_sqlda, &sqlda3, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 65 "describe.pgc"
+
+
+ if (sqlda1 == NULL)
+ {
+ printf("sqlda1 NULL\n");
+ exit(1);
+ }
+
+ if (sqlda2 == NULL)
+ {
+ printf("sqlda2 NULL\n");
+ exit(1);
+ }
+
+ if (sqlda3 == NULL)
+ {
+ printf("sqlda3 NULL\n");
+ exit(1);
+ }
+
+ strcpy(msg, "get descriptor");
+ { ECPGget_desc_header(__LINE__, "desc1", &(count1));
+
+#line 86 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 86 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc1", &(count2));
+
+#line 87 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 87 "describe.pgc"
+
+
+ if (count1 != count2)
+ {
+ printf("count1 (%d) != count2 (%d)\n", count1, count2);
+ exit(1);
+ }
+
+ if (count1 != sqlda1->sqld)
+ {
+ printf("count1 (%d) != sqlda1->sqld (%d)\n", count1, sqlda1->sqld);
+ exit(1);
+ }
+
+ if (count1 != sqlda2->sqld)
+ {
+ printf("count1 (%d) != sqlda2->sqld (%d)\n", count1, sqlda2->sqld);
+ exit(1);
+ }
+
+ if (count1 != sqlda3->sqld)
+ {
+ printf("count1 (%d) != sqlda3->sqld (%d)\n", count1, sqlda3->sqld);
+ exit(1);
+ }
+
+ for (i = 1; i <= count1; i++)
+ {
+ { ECPGget_desc(__LINE__, "desc1", i,ECPGd_name,
+ ECPGt_char,(field_name1),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 115 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 115 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc2", i,ECPGd_name,
+ ECPGt_char,(field_name2),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 116 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 116 "describe.pgc"
+
+ printf("%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
+ "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
+ i, field_name1, field_name2,
+ sqlda1->sqlvar[i-1].sqlname.data,
+ sqlda2->sqlvar[i-1].sqlname.data,
+ sqlda3->sqlvar[i-1].sqlname.data);
+ }
+
+ strcpy(msg, "deallocate");
+ ECPGdeallocate_desc(__LINE__, "desc1");
+#line 126 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 126 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc2");
+#line 127 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 127 "describe.pgc"
+
+ free(sqlda1);
+ free(sqlda2);
+ free(sqlda3);
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "st_id1");
+#line 132 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 132 "describe.pgc"
+
+
+ /* Test DESCRIBE with a query not producing tuples */
+
+ strcpy(msg, "allocate");
+ ECPGallocate_desc(__LINE__, "desc1");
+#line 137 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 137 "describe.pgc"
+
+ ECPGallocate_desc(__LINE__, "desc2");
+#line 138 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 138 "describe.pgc"
+
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id2", stmt2);
+#line 141 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 141 "describe.pgc"
+
+
+ sqlda1 = sqlda2 = sqlda3 = NULL;
+
+ strcpy(msg, "describe");
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id2",
+ ECPGt_descriptor, "desc1", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 146 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id2",
+ ECPGt_descriptor, "desc2", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 147 "describe.pgc"
+
+
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id2",
+ ECPGt_sqlda, &sqlda1, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 149 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id2",
+ ECPGt_sqlda, &sqlda2, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 150 "describe.pgc"
+
+ { ECPGdescribe(__LINE__, 0, 0, NULL, "st_id2",
+ ECPGt_sqlda, &sqlda3, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 151 "describe.pgc"
+
+
+ if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
+ exit(1);
+
+ strcpy(msg, "get descriptor");
+ { ECPGget_desc_header(__LINE__, "desc1", &(count1));
+
+#line 157 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 157 "describe.pgc"
+
+ { ECPGget_desc_header(__LINE__, "desc1", &(count2));
+
+#line 158 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 158 "describe.pgc"
+
+
+ if (!( count1 == count2 &&
+ count1 == sqlda1->sqld &&
+ count1 == sqlda2->sqld &&
+ count1 == sqlda3->sqld))
+ exit(1);
+
+ for (i = 1; i <= count1; i++)
+ {
+ { ECPGget_desc(__LINE__, "desc1", i,ECPGd_name,
+ ECPGt_char,(field_name1),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 168 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 168 "describe.pgc"
+
+ { ECPGget_desc(__LINE__, "desc2", i,ECPGd_name,
+ ECPGt_char,(field_name2),(long)30,(long)1,(30)*sizeof(char), ECPGd_EODT);
+
+#line 169 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 169 "describe.pgc"
+
+ printf("%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
+ "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
+ i, field_name1, field_name2,
+ sqlda1->sqlvar[i-1].sqlname.data,
+ sqlda2->sqlvar[i-1].sqlname.data,
+ sqlda3->sqlvar[i-1].sqlname.data);
+ }
+
+ strcpy(msg, "deallocate");
+ ECPGdeallocate_desc(__LINE__, "desc1");
+#line 179 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 179 "describe.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "desc2");
+#line 180 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);
+#line 180 "describe.pgc"
+
+ free(sqlda1);
+ free(sqlda2);
+ free(sqlda3);
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "st_id2");
+#line 185 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 185 "describe.pgc"
+
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table descr_t2", ECPGt_EOIT, ECPGt_EORT);
+#line 190 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 190 "describe.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 193 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 193 "describe.pgc"
+
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 196 "describe.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 196 "describe.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-describe.stderr b/src/interfaces/ecpg/test/expected/sql-describe.stderr
new file mode 100644
index 0000000..4b9c5a9
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-describe.stderr
@@ -0,0 +1,112 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: set datestyle to iso; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: query: create table descr_t2 ( id serial primary key , t text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: insert into descr_t2 ( id , t ) values ( default , 'a' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: query: insert into descr_t2 ( id , t ) values ( default , 'b' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 37: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: query: insert into descr_t2 ( id , t ) values ( default , 'c' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 38: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: insert into descr_t2 ( id , t ) values ( default , 'd' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 39: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 42: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 55: name st_id1; query: "SELECT id, t FROM descr_t2"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 63 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 64 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 65 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 132: name st_id1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 141: name st_id2; query: "SELECT id, t FROM descr_t2 WHERE id = -1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 149 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 150 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 151 sqld = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = id
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = t
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 185: name st_id2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 190: query: drop table descr_t2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 190: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 190: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 193: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-describe.stdout b/src/interfaces/ecpg/test/expected/sql-describe.stdout
new file mode 100644
index 0000000..1e3fe10
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-describe.stdout
@@ -0,0 +1,24 @@
+1
+ field_name1 'id'
+ field_name2 'id'
+ sqlda1 'id'
+ sqlda2 'id'
+ sqlda3 'id'
+2
+ field_name1 't'
+ field_name2 't'
+ sqlda1 't'
+ sqlda2 't'
+ sqlda3 't'
+1
+ field_name1 'id'
+ field_name2 'id'
+ sqlda1 'id'
+ sqlda2 'id'
+ sqlda3 'id'
+2
+ field_name1 't'
+ field_name2 't'
+ sqlda1 't'
+ sqlda2 't'
+ sqlda3 't'
diff --git a/src/interfaces/ecpg/test/expected/sql-dynalloc.c b/src/interfaces/ecpg/test/expected/sql-dynalloc.c
new file mode 100644
index 0000000..a95dddf
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-dynalloc.c
@@ -0,0 +1,340 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "dynalloc.pgc"
+#include <stdio.h>
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 2 "dynalloc.pgc"
+
+#include <stdlib.h>
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "dynalloc.pgc"
+
+
+int main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+
+/* char **d8=0; */
+
+
+
+
+
+
+
+
+/* int *i8=0; */
+
+
+#line 9 "dynalloc.pgc"
+ int * d1 = 0 ;
+
+#line 10 "dynalloc.pgc"
+ double * d2 = 0 ;
+
+#line 11 "dynalloc.pgc"
+ char ** d3 = 0 ;
+
+#line 12 "dynalloc.pgc"
+ char ** d4 = 0 ;
+
+#line 13 "dynalloc.pgc"
+ char ** d5 = 0 ;
+
+#line 14 "dynalloc.pgc"
+ char ** d6 = 0 ;
+
+#line 15 "dynalloc.pgc"
+ char ** d7 = 0 ;
+
+#line 17 "dynalloc.pgc"
+ char ** d9 = 0 ;
+
+#line 18 "dynalloc.pgc"
+ int * i1 = 0 ;
+
+#line 19 "dynalloc.pgc"
+ int * i2 = 0 ;
+
+#line 20 "dynalloc.pgc"
+ int * i3 = 0 ;
+
+#line 21 "dynalloc.pgc"
+ int * i4 = 0 ;
+
+#line 22 "dynalloc.pgc"
+ int * i5 = 0 ;
+
+#line 23 "dynalloc.pgc"
+ int * i6 = 0 ;
+
+#line 24 "dynalloc.pgc"
+ int * i7 = 0 ;
+
+#line 26 "dynalloc.pgc"
+ int * i9 = 0 ;
+/* exec sql end declare section */
+#line 27 "dynalloc.pgc"
+
+ int i;
+
+ ECPGdebug(1, stderr);
+
+ /* exec sql whenever sqlerror do sqlprint ( ) ; */
+#line 32 "dynalloc.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 33 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 33 "dynalloc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to mdy", ECPGt_EOIT, ECPGt_EORT);
+#line 35 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 35 "dynalloc.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( a serial , b numeric ( 12 , 3 ) , c varchar , d varchar ( 3 ) , e char ( 4 ) , f timestamptz , g boolean , h box , i inet )", ECPGt_EOIT, ECPGt_EORT);
+#line 37 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 37 "dynalloc.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( b , c , d , e , f , g , h , i ) values ( 23.456 , 'varchar' , 'v' , 'c' , '2003-03-03 12:33:07 PDT' , true , '(1,2,3,4)' , '2001:4f8:3:ba:2e0:81ff:fe22:d1f1/128' )", ECPGt_EOIT, ECPGt_EORT);
+#line 38 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 38 "dynalloc.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( b , c , d , e , f , g , h , i ) values ( 2.446456 , null , 'v' , 'c' , '2003-03-03 12:33:07 PDT' , false , null , null )", ECPGt_EOIT, ECPGt_EORT);
+#line 39 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 39 "dynalloc.pgc"
+
+
+ ECPGallocate_desc(__LINE__, "mydesc");
+#line 41 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );
+#line 41 "dynalloc.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select a , b , c , d , e , f , g , h , i from test order by a", ECPGt_EOIT,
+ ECPGt_descriptor, "mydesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 42 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 42 "dynalloc.pgc"
+
+ { ECPGget_desc(__LINE__, "mydesc", 1,ECPGd_indicator,
+ ECPGt_int,&(i1),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_int,&(d1),(long)1,(long)0,sizeof(int), ECPGd_EODT);
+
+#line 43 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 43 "dynalloc.pgc"
+
+ { ECPGget_desc(__LINE__, "mydesc", 2,ECPGd_indicator,
+ ECPGt_int,&(i2),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_double,&(d2),(long)1,(long)0,sizeof(double), ECPGd_EODT);
+
+#line 44 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 44 "dynalloc.pgc"
+
+ { ECPGget_desc(__LINE__, "mydesc", 3,ECPGd_indicator,
+ ECPGt_int,&(i3),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_char,&(d3),(long)0,(long)0,(1)*sizeof(char), ECPGd_EODT);
+
+#line 45 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 45 "dynalloc.pgc"
+
+ { ECPGget_desc(__LINE__, "mydesc", 4,ECPGd_indicator,
+ ECPGt_int,&(i4),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_char,&(d4),(long)0,(long)0,(1)*sizeof(char), ECPGd_EODT);
+
+#line 46 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 46 "dynalloc.pgc"
+
+ { ECPGget_desc(__LINE__, "mydesc", 5,ECPGd_indicator,
+ ECPGt_int,&(i5),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_char,&(d5),(long)0,(long)0,(1)*sizeof(char), ECPGd_EODT);
+
+#line 47 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 47 "dynalloc.pgc"
+
+ { ECPGget_desc(__LINE__, "mydesc", 6,ECPGd_indicator,
+ ECPGt_int,&(i6),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_char,&(d6),(long)0,(long)0,(1)*sizeof(char), ECPGd_EODT);
+
+#line 48 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 48 "dynalloc.pgc"
+
+ { ECPGget_desc(__LINE__, "mydesc", 7,ECPGd_indicator,
+ ECPGt_int,&(i7),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_char,&(d7),(long)0,(long)0,(1)*sizeof(char), ECPGd_EODT);
+
+#line 49 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 49 "dynalloc.pgc"
+
+ /* skip box for now */
+ /* exec sql get descriptor mydesc value 8 :d8=DATA, :i8=INDICATOR; */
+ { ECPGget_desc(__LINE__, "mydesc", 9,ECPGd_indicator,
+ ECPGt_int,&(i9),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_char,&(d9),(long)0,(long)0,(1)*sizeof(char), ECPGd_EODT);
+
+#line 52 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 52 "dynalloc.pgc"
+
+
+ printf("Result:\n");
+ for (i=0;i<sqlca.sqlerrd[2];++i)
+ {
+ if (i1[i]) printf("NULL, ");
+ else printf("%d, ",d1[i]);
+
+ if (i2[i]) printf("NULL, ");
+ else printf("%f, ",d2[i]);
+
+ if (i3[i]) printf("NULL, ");
+ else printf("'%s', ",d3[i]);
+
+ if (i4[i]) printf("NULL, ");
+ else printf("'%s', ",d4[i]);
+
+ if (i5[i]) printf("NULL, ");
+ else printf("'%s', ",d5[i]);
+
+ if (i6[i]) printf("NULL, ");
+ else printf("'%s', ",d6[i]);
+
+ if (i7[i]) printf("NULL, ");
+ else printf("'%s', ",d7[i]);
+
+ if (i9[i]) printf("NULL, ");
+ else printf("'%s', ",d9[i]);
+
+ printf("\n");
+ }
+ ECPGfree_auto_mem();
+ printf("\n");
+
+ ECPGdeallocate_desc(__LINE__, "mydesc");
+#line 86 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );
+#line 86 "dynalloc.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 87 "dynalloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 87 "dynalloc.pgc"
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-dynalloc.stderr b/src/interfaces/ecpg/test/expected/sql-dynalloc.stderr
new file mode 100644
index 0000000..58a0b9e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-dynalloc.stderr
@@ -0,0 +1,102 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: query: set datestyle to mdy; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 35: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: query: create table test ( a serial , b numeric ( 12 , 3 ) , c varchar , d varchar ( 3 ) , e char ( 4 ) , f timestamptz , g boolean , h box , i inet ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 37: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: query: insert into test ( b , c , d , e , f , g , h , i ) values ( 23.456 , 'varchar' , 'v' , 'c' , '2003-03-03 12:33:07 PDT' , true , '(1,2,3,4)' , '2001:4f8:3:ba:2e0:81ff:fe22:d1f1/128' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 38: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: insert into test ( b , c , d , e , f , g , h , i ) values ( 2.446456 , null , 'v' , 'c' , '2003-03-03 12:33:07 PDT' , false , null , null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 39: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: query: select a , b , c , d , e , f , g , h , i from test order by a; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: correctly got 2 tuples with 9 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: putting result (2 tuples) into descriptor mydesc
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 43: allocating memory for 2 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 43: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 43: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 44: allocating memory for 2 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 44: RESULT: 23.456 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 44: RESULT: 2.446 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 45: allocating memory for 2 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 45: RESULT: varchar offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 45: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 46: allocating memory for 2 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: v offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 46: RESULT: v offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 47: allocating memory for 2 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 47: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 47: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 48: allocating memory for 2 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: Mon Mar 03 11:33:07 2003 PST offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: Mon Mar 03 11:33:07 2003 PST offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 49: allocating memory for 2 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 49: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 49: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 9
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 52: allocating memory for 2 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 52: RESULT: 2001:4f8:3:ba:2e0:81ff:fe22:d1f1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 52: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-dynalloc.stdout b/src/interfaces/ecpg/test/expected/sql-dynalloc.stdout
new file mode 100644
index 0000000..5c212c8
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-dynalloc.stdout
@@ -0,0 +1,4 @@
+Result:
+1, 23.456000, 'varchar', 'v', 'c ', 'Mon Mar 03 11:33:07 2003 PST', 't', '2001:4f8:3:ba:2e0:81ff:fe22:d1f1',
+2, 2.446000, NULL, 'v', 'c ', 'Mon Mar 03 11:33:07 2003 PST', 'f', NULL,
+
diff --git a/src/interfaces/ecpg/test/expected/sql-dynalloc2.c b/src/interfaces/ecpg/test/expected/sql-dynalloc2.c
new file mode 100644
index 0000000..7118577
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-dynalloc2.c
@@ -0,0 +1,256 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "dynalloc2.pgc"
+#include <stdio.h>
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 2 "dynalloc2.pgc"
+
+#include <stdlib.h>
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "dynalloc2.pgc"
+
+
+int main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+#line 9 "dynalloc2.pgc"
+ int * ip1 = 0 ;
+
+#line 10 "dynalloc2.pgc"
+ char ** cp2 = 0 ;
+
+#line 11 "dynalloc2.pgc"
+ int * ipointer1 = 0 ;
+
+#line 12 "dynalloc2.pgc"
+ int * ipointer2 = 0 ;
+
+#line 13 "dynalloc2.pgc"
+ int colnum ;
+/* exec sql end declare section */
+#line 14 "dynalloc2.pgc"
+
+ int i;
+
+ ECPGdebug(1, stderr);
+
+ /* exec sql whenever sqlerror do sqlprint ( ) ; */
+#line 19 "dynalloc2.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 20 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 20 "dynalloc2.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to postgres", ECPGt_EOIT, ECPGt_EORT);
+#line 22 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 22 "dynalloc2.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( a int , b text )", ECPGt_EOIT, ECPGt_EORT);
+#line 24 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 24 "dynalloc2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( 1 , 'one' )", ECPGt_EOIT, ECPGt_EORT);
+#line 25 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 25 "dynalloc2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( 2 , 'two' )", ECPGt_EOIT, ECPGt_EORT);
+#line 26 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 26 "dynalloc2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( null , 'three' )", ECPGt_EOIT, ECPGt_EORT);
+#line 27 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 27 "dynalloc2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( 4 , 'four' )", ECPGt_EOIT, ECPGt_EORT);
+#line 28 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 28 "dynalloc2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( 5 , null )", ECPGt_EOIT, ECPGt_EORT);
+#line 29 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 29 "dynalloc2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( null , null )", ECPGt_EOIT, ECPGt_EORT);
+#line 30 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 30 "dynalloc2.pgc"
+
+
+ ECPGallocate_desc(__LINE__, "mydesc");
+#line 32 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );
+#line 32 "dynalloc2.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from test", ECPGt_EOIT,
+ ECPGt_descriptor, "mydesc", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 33 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 33 "dynalloc2.pgc"
+
+ { ECPGget_desc_header(__LINE__, "mydesc", &(colnum));
+
+#line 34 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 34 "dynalloc2.pgc"
+
+ { ECPGget_desc(__LINE__, "mydesc", 1,ECPGd_indicator,
+ ECPGt_int,&(ipointer1),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_int,&(ip1),(long)1,(long)0,sizeof(int), ECPGd_EODT);
+
+#line 35 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 35 "dynalloc2.pgc"
+
+ { ECPGget_desc(__LINE__, "mydesc", 2,ECPGd_indicator,
+ ECPGt_int,&(ipointer2),(long)1,(long)0,sizeof(int), ECPGd_data,
+ ECPGt_char,&(cp2),(long)0,(long)0,(1)*sizeof(char), ECPGd_EODT);
+
+#line 36 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 36 "dynalloc2.pgc"
+
+
+ printf("Result (%d columns):\n", colnum);
+ for (i=0;i < sqlca.sqlerrd[2];++i)
+ {
+ if (ipointer1[i]) printf("NULL, ");
+ else printf("%d, ",ip1[i]);
+
+ if (ipointer2[i]) printf("NULL, ");
+ else printf("'%s', ",cp2[i]);
+ printf("\n");
+ }
+ ECPGfree_auto_mem();
+ printf("\n");
+
+ ECPGdeallocate_desc(__LINE__, "mydesc");
+#line 51 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );
+#line 51 "dynalloc2.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 52 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 52 "dynalloc2.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 53 "dynalloc2.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint ( );}
+#line 53 "dynalloc2.pgc"
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-dynalloc2.stderr b/src/interfaces/ecpg/test/expected/sql-dynalloc2.stderr
new file mode 100644
index 0000000..1c64948
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-dynalloc2.stderr
@@ -0,0 +1,98 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: query: set datestyle to postgres; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 22: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: create table test ( a int , b text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: query: insert into test values ( 1 , 'one' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 25: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: insert into test values ( 2 , 'two' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: query: insert into test values ( null , 'three' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 27: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: insert into test values ( 4 , 'four' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 28: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: query: insert into test values ( 5 , null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 29: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: insert into test values ( null , null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: query: select * from test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: correctly got 6 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: putting result (6 tuples) into descriptor mydesc
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 2 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 35: allocating memory for 6 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 35: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 35: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 35: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 35: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 35: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 35: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_store_result on line 36: allocating memory for 6 tuples
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: one offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: two offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: three offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: four offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 52: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-dynalloc2.stdout b/src/interfaces/ecpg/test/expected/sql-dynalloc2.stdout
new file mode 100644
index 0000000..87be3ac
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-dynalloc2.stdout
@@ -0,0 +1,8 @@
+Result (2 columns):
+1, 'one',
+2, 'two',
+NULL, 'three',
+4, 'four',
+5, NULL,
+NULL, NULL,
+
diff --git a/src/interfaces/ecpg/test/expected/sql-dyntest.c b/src/interfaces/ecpg/test/expected/sql-dyntest.c
new file mode 100644
index 0000000..513d44c
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-dyntest.c
@@ -0,0 +1,486 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "dyntest.pgc"
+/* dynamic SQL test program
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+
+#line 1 "sql3types.h"
+#ifndef _ECPG_SQL3TYPES_H
+#define _ECPG_SQL3TYPES_H
+
+/* SQL3 dynamic type codes */
+
+/* chapter 13.1 table 2: Codes used for SQL data types in Dynamic SQL */
+
+enum
+{
+ SQL3_CHARACTER = 1,
+ SQL3_NUMERIC,
+ SQL3_DECIMAL,
+ SQL3_INTEGER,
+ SQL3_SMALLINT,
+ SQL3_FLOAT,
+ SQL3_REAL,
+ SQL3_DOUBLE_PRECISION,
+ SQL3_DATE_TIME_TIMESTAMP,
+ SQL3_INTERVAL, /* 10 */
+ SQL3_CHARACTER_VARYING = 12,
+ SQL3_ENUMERATED,
+ SQL3_BIT,
+ SQL3_BIT_VARYING,
+ SQL3_BOOLEAN,
+ SQL3_abstract
+ /* the rest is xLOB stuff */
+};
+
+/* chapter 13.1 table 3: Codes associated with datetime data types in Dynamic SQL */
+
+enum
+{
+ SQL3_DDT_DATE = 1,
+ SQL3_DDT_TIME,
+ SQL3_DDT_TIMESTAMP,
+ SQL3_DDT_TIME_WITH_TIME_ZONE,
+ SQL3_DDT_TIMESTAMP_WITH_TIME_ZONE,
+
+ SQL3_DDT_ILLEGAL /* not a datetime data type (not part of
+ * standard) */
+};
+
+#endif /* !_ECPG_SQL3TYPES_H */
+
+#line 7 "dyntest.pgc"
+
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 8 "dyntest.pgc"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 9 "dyntest.pgc"
+
+
+static void
+error (void)
+{
+ printf ("\n#%ld:%s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
+ exit (1);
+}
+
+int
+main ()
+{
+ /* exec sql begin declare section */
+
+
+
+
+
+
+
+
+
+
+
+#line 22 "dyntest.pgc"
+ int COUNT ;
+
+#line 23 "dyntest.pgc"
+ int INTVAR ;
+
+#line 24 "dyntest.pgc"
+ int INDEX ;
+
+#line 25 "dyntest.pgc"
+ int INDICATOR ;
+
+#line 26 "dyntest.pgc"
+ int TYPE , LENGTH , OCTET_LENGTH , PRECISION , SCALE , RETURNED_OCTET_LENGTH ;
+
+#line 27 "dyntest.pgc"
+ int DATETIME_INTERVAL_CODE ;
+
+#line 28 "dyntest.pgc"
+ char NAME [ 120 ] , BOOLVAR ;
+
+#line 29 "dyntest.pgc"
+ char STRINGVAR [ 1024 ] ;
+
+#line 30 "dyntest.pgc"
+ double DOUBLEVAR ;
+
+#line 31 "dyntest.pgc"
+ char * QUERY ;
+/* exec sql end declare section */
+#line 32 "dyntest.pgc"
+
+ int done = 0;
+
+ /* exec sql var BOOLVAR is bool */
+#line 35 "dyntest.pgc"
+
+
+ ECPGdebug (1, stderr);
+
+ QUERY = "select * from dyntest";
+
+ /* exec sql whenever sqlerror do error ( ) ; */
+#line 43 "dyntest.pgc"
+
+
+ ECPGallocate_desc(__LINE__, "MYDESC");
+#line 45 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );
+#line 45 "dyntest.pgc"
+
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 47 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 47 "dyntest.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to german", ECPGt_EOIT, ECPGt_EORT);
+#line 49 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 49 "dyntest.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table dyntest ( name char ( 14 ) , d float8 , i int , bignumber int8 , b boolean , comment text , day date )", ECPGt_EOIT, ECPGt_EORT);
+#line 53 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 53 "dyntest.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into dyntest values ( 'first entry' , 14.7 , 14 , 123045607890 , true , 'The world''s most advanced open source database.' , '1987-07-14' )", ECPGt_EOIT, ECPGt_EORT);
+#line 54 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 54 "dyntest.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into dyntest values ( 'second entry' , 1407.87 , 1407 , 987065403210 , false , 'The elephant never forgets.' , '1999-11-5' )", ECPGt_EOIT, ECPGt_EORT);
+#line 55 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 55 "dyntest.pgc"
+
+
+ { ECPGprepare(__LINE__, NULL, 0, "myquery", QUERY);
+#line 57 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 57 "dyntest.pgc"
+
+ /* declare MYCURS cursor for $1 */
+#line 58 "dyntest.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare MYCURS cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "myquery", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 60 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 60 "dyntest.pgc"
+
+
+ while (1)
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch in MYCURS", ECPGt_EOIT,
+ ECPGt_descriptor, "MYDESC", 1L, 1L, 1L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 64 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 64 "dyntest.pgc"
+
+
+ if (sqlca.sqlcode)
+ break;
+
+ { ECPGget_desc_header(__LINE__, "MYDESC", &(COUNT));
+
+#line 69 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 69 "dyntest.pgc"
+
+ if (!done)
+ {
+ printf ("Found %d columns\n", COUNT);
+ done = 1;
+ }
+
+ for (INDEX = 1; INDEX <= COUNT; ++INDEX)
+ {
+ { ECPGget_desc(__LINE__, "MYDESC", INDEX,ECPGd_indicator,
+ ECPGt_int,&(INDICATOR),(long)1,(long)1,sizeof(int), ECPGd_name,
+ ECPGt_char,(NAME),(long)120,(long)1,(120)*sizeof(char), ECPGd_scale,
+ ECPGt_int,&(SCALE),(long)1,(long)1,sizeof(int), ECPGd_precision,
+ ECPGt_int,&(PRECISION),(long)1,(long)1,sizeof(int), ECPGd_ret_octet,
+ ECPGt_int,&(RETURNED_OCTET_LENGTH),(long)1,(long)1,sizeof(int), ECPGd_octet,
+ ECPGt_int,&(OCTET_LENGTH),(long)1,(long)1,sizeof(int), ECPGd_length,
+ ECPGt_int,&(LENGTH),(long)1,(long)1,sizeof(int), ECPGd_type,
+ ECPGt_int,&(TYPE),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 86 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 86 "dyntest.pgc"
+
+ printf ("%2d\t%s (type: %d length: %d precision: %d scale: %d = " , INDEX, NAME, TYPE, LENGTH, PRECISION, SCALE);
+ switch (TYPE)
+ {
+ case SQL3_BOOLEAN:
+ printf ("bool");
+ break;
+ case SQL3_NUMERIC:
+ printf ("numeric(%d,%d)", PRECISION, SCALE);
+ break;
+ case SQL3_DECIMAL:
+ printf ("decimal(%d,%d)", PRECISION, SCALE);
+ break;
+ case SQL3_INTEGER:
+ printf ("integer");
+ break;
+ case SQL3_SMALLINT:
+ printf ("smallint");
+ break;
+ case SQL3_FLOAT:
+ printf ("float(%d,%d)", PRECISION, SCALE);
+ break;
+ case SQL3_REAL:
+ printf ("real");
+ break;
+ case SQL3_DOUBLE_PRECISION:
+ printf ("double precision");
+ break;
+ case SQL3_DATE_TIME_TIMESTAMP:
+ { ECPGget_desc(__LINE__, "MYDESC", INDEX,ECPGd_di_code,
+ ECPGt_int,&(DATETIME_INTERVAL_CODE),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 116 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 116 "dyntest.pgc"
+
+ switch (DATETIME_INTERVAL_CODE)
+ {
+ case SQL3_DDT_DATE:
+ printf ("date");
+ break;
+ case SQL3_DDT_TIME:
+ printf ("time");
+ break;
+ case SQL3_DDT_TIMESTAMP:
+ printf ("timestamp");
+ break;
+ case SQL3_DDT_TIME_WITH_TIME_ZONE:
+ printf ("time with time zone");
+ break;
+ case SQL3_DDT_TIMESTAMP_WITH_TIME_ZONE:
+ printf ("timestamp with time zone");
+ break;
+ }
+ break;
+ case SQL3_INTERVAL:
+ printf ("interval");
+ break;
+ case SQL3_CHARACTER:
+ if (LENGTH > 0)
+ printf ("char(%d)", LENGTH);
+ else
+ printf ("text");
+ break;
+ case SQL3_CHARACTER_VARYING:
+ if (LENGTH > 0)
+ printf ("varchar(%d)", LENGTH);
+ else
+ printf ("varchar()");
+ break;
+ default:
+ printf ("<SQL3 %d>", TYPE);
+ break;
+ }
+ printf (")\n\toctet_length: %d returned_octet_length: %d)\n\t= ",
+ OCTET_LENGTH, RETURNED_OCTET_LENGTH);
+ if (INDICATOR == -1)
+ printf ("NULL\n");
+ else
+ switch (TYPE)
+ {
+ case SQL3_BOOLEAN:
+ { ECPGget_desc(__LINE__, "MYDESC", INDEX,ECPGd_data,
+ ECPGt_bool,&(BOOLVAR),(long)1,(long)1,sizeof(bool), ECPGd_EODT);
+
+#line 163 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 163 "dyntest.pgc"
+
+ printf ("%s\n", BOOLVAR ? "true" : "false");
+ break;
+ case SQL3_INTEGER:
+ case SQL3_SMALLINT:
+ { ECPGget_desc(__LINE__, "MYDESC", INDEX,ECPGd_data,
+ ECPGt_int,&(INTVAR),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 168 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 168 "dyntest.pgc"
+
+ printf ("%d\n", INTVAR);
+ break;
+ case SQL3_DOUBLE_PRECISION:
+ { ECPGget_desc(__LINE__, "MYDESC", INDEX,ECPGd_data,
+ ECPGt_double,&(DOUBLEVAR),(long)1,(long)1,sizeof(double), ECPGd_EODT);
+
+#line 172 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 172 "dyntest.pgc"
+
+ printf ("%.*f\n", PRECISION, DOUBLEVAR);
+ break;
+ case SQL3_DATE_TIME_TIMESTAMP:
+ { ECPGget_desc(__LINE__, "MYDESC", INDEX,ECPGd_data,
+ ECPGt_char,(STRINGVAR),(long)1024,(long)1,(1024)*sizeof(char), ECPGd_di_code,
+ ECPGt_int,&(DATETIME_INTERVAL_CODE),(long)1,(long)1,sizeof(int), ECPGd_EODT);
+
+#line 178 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 178 "dyntest.pgc"
+
+ printf ("%d \"%s\"\n", DATETIME_INTERVAL_CODE, STRINGVAR);
+ break;
+ case SQL3_CHARACTER:
+ case SQL3_CHARACTER_VARYING:
+ { ECPGget_desc(__LINE__, "MYDESC", INDEX,ECPGd_data,
+ ECPGt_char,(STRINGVAR),(long)1024,(long)1,(1024)*sizeof(char), ECPGd_EODT);
+
+#line 183 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 183 "dyntest.pgc"
+
+ printf ("\"%s\"\n", STRINGVAR);
+ break;
+ default:
+ { ECPGget_desc(__LINE__, "MYDESC", INDEX,ECPGd_data,
+ ECPGt_char,(STRINGVAR),(long)1024,(long)1,(1024)*sizeof(char), ECPGd_EODT);
+
+#line 187 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 187 "dyntest.pgc"
+
+ printf ("<\"%s\">\n", STRINGVAR);
+ break;
+ }
+ }
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close MYCURS", ECPGt_EOIT, ECPGt_EORT);
+#line 194 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );}
+#line 194 "dyntest.pgc"
+
+
+ ECPGdeallocate_desc(__LINE__, "MYDESC");
+#line 196 "dyntest.pgc"
+
+if (sqlca.sqlcode < 0) error ( );
+#line 196 "dyntest.pgc"
+
+
+ return 0;
+ }
diff --git a/src/interfaces/ecpg/test/expected/sql-dyntest.stderr b/src/interfaces/ecpg/test/expected/sql-dyntest.stderr
new file mode 100644
index 0000000..f0b21b0
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-dyntest.stderr
@@ -0,0 +1,390 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 49: query: set datestyle to german; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 49: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 49: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: query: create table dyntest ( name char ( 14 ) , d float8 , i int , bignumber int8 , b boolean , comment text , day date ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 51: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 54: query: insert into dyntest values ( 'first entry' , 14.7 , 14 , 123045607890 , true , 'The world''s most advanced open source database.' , '1987-07-14' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 54: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 54: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: query: insert into dyntest values ( 'second entry' , 1407.87 , 1407 , 987065403210 , false , 'The elephant never forgets.' , '1999-11-5' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 55: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 55: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 57: name myquery; query: "select * from dyntest"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: query: declare MYCURS cursor for select * from dyntest; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 60: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 60: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: query: fetch in MYCURS; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 64: correctly got 1 tuples with 7 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 64: putting result (1 tuples) into descriptor MYDESC
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 7 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = name
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 14
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 14
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = 14
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 183: RESULT: first entry offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = d
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 8
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 8
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 172: RESULT: 14.7 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = i
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 168: RESULT: 14 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = bignumber
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 12
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 8
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 187: RESULT: 123045607890 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = b
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 16
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 163: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = comment
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 47
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 183: RESULT: The world's most advanced open source database. offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = day
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 10
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 9
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 176: RESULT: 14.07.1987 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: query: fetch in MYCURS; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 64: correctly got 1 tuples with 7 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 64: putting result (1 tuples) into descriptor MYDESC
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc_header: found 7 attributes
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = name
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 14
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 14
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = 14
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 183: RESULT: second entry offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = d
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 8
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 8
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 172: RESULT: 1407.87 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = i
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 168: RESULT: 1407 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = bignumber
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 12
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 8
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 187: RESULT: 987065403210 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = b
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 16
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 163: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = comment
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 27
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 183: RESULT: The elephant never forgets. offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: NAME = day
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: SCALE = 65531
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: PRECISION = -1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: RETURNED[0] = 10
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: OCTET_LENGTH = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: LENGTH = -5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 9
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: INDICATOR[0] = 0
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: reading items for tuple 7
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGget_desc: TYPE = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 176: RESULT: 05.11.1999 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: query: fetch in MYCURS; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 64: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 64: correctly got 0 tuples with 7 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 64: no data found on line 64
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 194: query: close MYCURS; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 194: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 194: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-dyntest.stdout b/src/interfaces/ecpg/test/expected/sql-dyntest.stdout
new file mode 100644
index 0000000..f8c4c8e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-dyntest.stdout
@@ -0,0 +1,43 @@
+Found 7 columns
+ 1 name (type: 1 length: 14 precision: 0 scale: 14 = char(14))
+ octet_length: -1 returned_octet_length: 14)
+ = "first entry "
+ 2 d (type: 8 length: -5 precision: -1 scale: 65531 = double precision)
+ octet_length: 8 returned_octet_length: 4)
+ = 14.700000
+ 3 i (type: 4 length: -5 precision: -1 scale: 65531 = integer)
+ octet_length: 4 returned_octet_length: 2)
+ = 14
+ 4 bignumber (type: 0 length: -5 precision: -1 scale: 65531 = <SQL3 0>)
+ octet_length: 8 returned_octet_length: 12)
+ = <"123045607890">
+ 5 b (type: 16 length: -5 precision: -1 scale: 65531 = bool)
+ octet_length: 1 returned_octet_length: 1)
+ = true
+ 6 comment (type: 1 length: -5 precision: -1 scale: 65531 = text)
+ octet_length: -1 returned_octet_length: 47)
+ = "The world's most advanced open source database."
+ 7 day (type: 9 length: -5 precision: -1 scale: 65531 = date)
+ octet_length: 4 returned_octet_length: 10)
+ = 1 "14.07.1987"
+ 1 name (type: 1 length: 14 precision: 0 scale: 14 = char(14))
+ octet_length: -1 returned_octet_length: 14)
+ = "second entry "
+ 2 d (type: 8 length: -5 precision: -1 scale: 65531 = double precision)
+ octet_length: 8 returned_octet_length: 7)
+ = 1407.870000
+ 3 i (type: 4 length: -5 precision: -1 scale: 65531 = integer)
+ octet_length: 4 returned_octet_length: 4)
+ = 1407
+ 4 bignumber (type: 0 length: -5 precision: -1 scale: 65531 = <SQL3 0>)
+ octet_length: 8 returned_octet_length: 12)
+ = <"987065403210">
+ 5 b (type: 16 length: -5 precision: -1 scale: 65531 = bool)
+ octet_length: 1 returned_octet_length: 1)
+ = false
+ 6 comment (type: 1 length: -5 precision: -1 scale: 65531 = text)
+ octet_length: -1 returned_octet_length: 27)
+ = "The elephant never forgets."
+ 7 day (type: 9 length: -5 precision: -1 scale: 65531 = date)
+ octet_length: 4 returned_octet_length: 10)
+ = 1 "05.11.1999"
diff --git a/src/interfaces/ecpg/test/expected/sql-execute.c b/src/interfaces/ecpg/test/expected/sql-execute.c
new file mode 100644
index 0000000..10e9ad5
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-execute.c
@@ -0,0 +1,331 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "execute.pgc"
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "execute.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 8 "execute.pgc"
+
+
+int
+main(void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+
+#line 14 "execute.pgc"
+ int amount [ 8 ] ;
+
+#line 15 "execute.pgc"
+ int increment = 100 ;
+
+#line 16 "execute.pgc"
+ char name [ 8 ] [ 8 ] ;
+
+#line 17 "execute.pgc"
+ char letter [ 8 ] [ 1 ] ;
+
+#line 18 "execute.pgc"
+ char command [ 128 ] ;
+/* exec sql end declare section */
+#line 19 "execute.pgc"
+
+ int i,j;
+
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "main", 0);
+#line 24 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 24 "execute.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( name char ( 8 ) , amount int , letter char ( 1 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 25 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 25 "execute.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 26 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 26 "execute.pgc"
+
+
+ /* test handling of embedded quotes in EXECUTE IMMEDIATE "literal" */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_immediate, "insert into test (name, \042amount\042, letter) values ('db: ''r1''', 1, 'f')", ECPGt_EOIT, ECPGt_EORT);
+#line 29 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 29 "execute.pgc"
+
+
+ sprintf(command, "insert into test (name, amount, letter) values ('db: ''r1''', 2, 't')");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_immediate, command, ECPGt_EOIT, ECPGt_EORT);
+#line 32 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 32 "execute.pgc"
+
+
+ sprintf(command, "insert into test (name, amount, letter) select name, amount+10, letter from test");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_immediate, command, ECPGt_EOIT, ECPGt_EORT);
+#line 35 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 35 "execute.pgc"
+
+
+ printf("Inserted %ld tuples via execute immediate\n", sqlca.sqlerrd[2]);
+
+ sprintf(command, "insert into test (name, amount, letter) select name, amount+$1, letter from test");
+ { ECPGprepare(__LINE__, NULL, 0, "i", command);
+#line 40 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 40 "execute.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "i",
+ ECPGt_int,&(increment),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 41 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 41 "execute.pgc"
+
+
+ printf("Inserted %ld tuples via prepared execute\n", sqlca.sqlerrd[2]);
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 45 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 45 "execute.pgc"
+
+
+ sprintf (command, "select * from test");
+
+ { ECPGprepare(__LINE__, NULL, 0, "f", command);
+#line 49 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 49 "execute.pgc"
+
+ /* declare CUR cursor for $1 */
+#line 50 "execute.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare CUR cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "f", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 52 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 52 "execute.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch 8 in CUR", ECPGt_EOIT,
+ ECPGt_char,(name),(long)8,(long)8,(8)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,(amount),(long)1,(long)8,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(letter),(long)1,(long)8,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 53 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 53 "execute.pgc"
+
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ /* exec sql begin declare section */
+
+
+
+#line 58 "execute.pgc"
+ char n [ 8 ] , l = letter [ i ] [ 0 ] ;
+
+#line 59 "execute.pgc"
+ int a = amount [ i ] ;
+/* exec sql end declare section */
+#line 60 "execute.pgc"
+
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close CUR", ECPGt_EOIT, ECPGt_EORT);
+#line 66 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 66 "execute.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "f");
+#line 67 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 67 "execute.pgc"
+
+
+ sprintf (command, "select * from test where amount = $1");
+
+ { ECPGprepare(__LINE__, NULL, 0, "f", command);
+#line 71 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 71 "execute.pgc"
+
+ /* declare CUR2 cursor for $1 */
+#line 72 "execute.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare CUR2 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "f", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_const,"1",(long)1,(long)1,strlen("1"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 74 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 74 "execute.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch in CUR2", ECPGt_EOIT,
+ ECPGt_char,(name),(long)8,(long)8,(8)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,(amount),(long)1,(long)8,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(letter),(long)1,(long)8,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 75 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 75 "execute.pgc"
+
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ /* exec sql begin declare section */
+
+
+
+#line 80 "execute.pgc"
+ char n [ 8 ] , l = letter [ i ] [ 0 ] ;
+
+#line 81 "execute.pgc"
+ int a = amount [ i ] ;
+/* exec sql end declare section */
+#line 82 "execute.pgc"
+
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close CUR2", ECPGt_EOIT, ECPGt_EORT);
+#line 88 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 88 "execute.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "f");
+#line 89 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 89 "execute.pgc"
+
+
+ sprintf (command, "select * from test where amount = $1");
+
+ { ECPGprepare(__LINE__, NULL, 0, "f", command);
+#line 93 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 93 "execute.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "f",
+ ECPGt_const,"2",(long)1,(long)1,strlen("2"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_char,(name),(long)8,(long)8,(8)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,(amount),(long)1,(long)8,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(letter),(long)1,(long)8,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 94 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 94 "execute.pgc"
+
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ /* exec sql begin declare section */
+
+
+
+#line 99 "execute.pgc"
+ char n [ 8 ] , l = letter [ i ] [ 0 ] ;
+
+#line 100 "execute.pgc"
+ int a = amount [ i ] ;
+/* exec sql end declare section */
+#line 101 "execute.pgc"
+
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "f");
+#line 107 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 107 "execute.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT);
+#line 108 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 108 "execute.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 109 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 109 "execute.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 110 "execute.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 110 "execute.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-execute.stderr b/src/interfaces/ecpg/test/expected/sql-execute.stderr
new file mode 100644
index 0000000..d8bc3c6
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-execute.stderr
@@ -0,0 +1,172 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: query: create table test ( name char ( 8 ) , amount int , letter char ( 1 ) ); with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 25: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 26: action "commit"; connection "main"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: query: insert into test (name, "amount", letter) values ('db: ''r1''', 1, 'f'); with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 29: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: insert into test (name, amount, letter) values ('db: ''r1''', 2, 't'); with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: query: insert into test (name, amount, letter) select name, amount+10, letter from test; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 35: OK: INSERT 0 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 40: name i; query: "insert into test (name, amount, letter) select name, amount+$1, letter from test"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: query: insert into test (name, amount, letter) select name, amount+$1, letter from test; with 1 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexecPrepared for "insert into test (name, amount, letter) select name, amount+$1, letter from test"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 1 = 100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: INSERT 0 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 45: action "commit"; connection "main"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 49: name f; query: "select * from test"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: query: declare CUR cursor for select * from test; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 52: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 52: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: query: fetch 8 in CUR; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 53: correctly got 8 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: 11 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: 12 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: 101 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: 102 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: 111 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: 112 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 53: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 66: query: close CUR; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 66: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 66: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 67: name f
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 71: name f; query: "select * from test where amount = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: query: declare CUR2 cursor for select * from test where amount = $1; with 1 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 74: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 74: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 74: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 75: query: fetch in CUR2; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 75: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 75: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 75: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 75: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 75: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 88: query: close CUR2; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 88: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 88: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 89: name f
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 93: name f; query: "select * from test where amount = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 94: query: select * from test where amount = $1; with 1 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 94: using PQexecPrepared for "select * from test where amount = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 94: parameter 1 = 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 94: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 94: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 94: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 94: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 107: name f
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 108: query: drop table test; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 108: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 108: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 109: action "commit"; connection "main"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name i
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-execute.stdout b/src/interfaces/ecpg/test/expected/sql-execute.stdout
new file mode 100644
index 0000000..5f9295a
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-execute.stdout
@@ -0,0 +1,12 @@
+Inserted 2 tuples via execute immediate
+Inserted 4 tuples via prepared execute
+name[0]=db: 'r1' amount[0]=1 letter[0]=f
+name[1]=db: 'r1' amount[1]=2 letter[1]=t
+name[2]=db: 'r1' amount[2]=11 letter[2]=f
+name[3]=db: 'r1' amount[3]=12 letter[3]=t
+name[4]=db: 'r1' amount[4]=101 letter[4]=f
+name[5]=db: 'r1' amount[5]=102 letter[5]=t
+name[6]=db: 'r1' amount[6]=111 letter[6]=f
+name[7]=db: 'r1' amount[7]=112 letter[7]=t
+name[0]=db: 'r1' amount[0]=1 letter[0]=f
+name[0]=db: 'r1' amount[0]=2 letter[0]=t
diff --git a/src/interfaces/ecpg/test/expected/sql-fetch.c b/src/interfaces/ecpg/test/expected/sql-fetch.c
new file mode 100644
index 0000000..ca7d14e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-fetch.c
@@ -0,0 +1,237 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "fetch.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 5 "fetch.pgc"
+
+
+int main() {
+ /* exec sql begin declare section */
+
+
+
+#line 9 "fetch.pgc"
+ char str [ 25 ] ;
+
+#line 10 "fetch.pgc"
+ int i , count = 1 , loopcount ;
+/* exec sql end declare section */
+#line 11 "fetch.pgc"
+
+
+ ECPGdebug(1, stderr);
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 14 "fetch.pgc"
+
+
+ /* exec sql whenever sql_warning sqlprint ; */
+#line 16 "fetch.pgc"
+
+ /* exec sql whenever sqlerror stop ; */
+#line 17 "fetch.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table My_Table ( Item1 int , Item2 text )", ECPGt_EOIT, ECPGt_EORT);
+#line 19 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 19 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 19 "fetch.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into My_Table values ( 1 , 'text1' )", ECPGt_EOIT, ECPGt_EORT);
+#line 21 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 21 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 21 "fetch.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into My_Table values ( 2 , 'text2' )", ECPGt_EOIT, ECPGt_EORT);
+#line 22 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 22 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 22 "fetch.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into My_Table values ( 3 , 'text3' )", ECPGt_EOIT, ECPGt_EORT);
+#line 23 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 23 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 23 "fetch.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into My_Table values ( 4 , 'text4' )", ECPGt_EOIT, ECPGt_EORT);
+#line 24 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 24 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 24 "fetch.pgc"
+
+
+ /* declare C cursor for select * from My_Table */
+#line 26 "fetch.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare C cursor for select * from My_Table", ECPGt_EOIT, ECPGt_EORT);
+#line 28 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 28 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 28 "fetch.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 30 "fetch.pgc"
+
+ for (loopcount = 0; loopcount < 100; loopcount++) {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch 1 in C", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(str),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 32 "fetch.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 32 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 32 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 32 "fetch.pgc"
+
+ printf("%d: %s\n", i, str);
+ }
+
+ /* exec sql whenever not found continue ; */
+#line 36 "fetch.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "move backward 2 in C", ECPGt_EOIT, ECPGt_EORT);
+#line 37 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 37 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 37 "fetch.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch $0 in C",
+ ECPGt_int,&(count),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(str),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 39 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 39 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 39 "fetch.pgc"
+
+ printf("%d: %s\n", i, str);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close C", ECPGt_EOIT, ECPGt_EORT);
+#line 42 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 42 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 42 "fetch.pgc"
+
+
+ /* declare D cursor for select * from My_Table where Item1 = $1 */
+#line 44 "fetch.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare D cursor for select * from My_Table where Item1 = $1",
+ ECPGt_const,"1",(long)1,(long)1,strlen("1"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 46 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 46 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 46 "fetch.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch 1 in D", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(str),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 48 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 48 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 48 "fetch.pgc"
+
+ printf("%d: %s\n", i, str);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close D", ECPGt_EOIT, ECPGt_EORT);
+#line 51 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 51 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 51 "fetch.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table My_Table", ECPGt_EOIT, ECPGt_EORT);
+#line 53 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 53 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 53 "fetch.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 55 "fetch.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 55 "fetch.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 55 "fetch.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-fetch.stderr b/src/interfaces/ecpg/test/expected/sql-fetch.stderr
new file mode 100644
index 0000000..319d3b8
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-fetch.stderr
@@ -0,0 +1,142 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 19: query: create table My_Table ( Item1 int , Item2 text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 19: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 19: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 21: query: insert into My_Table values ( 1 , 'text1' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 21: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 21: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: query: insert into My_Table values ( 2 , 'text2' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 22: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: query: insert into My_Table values ( 3 , 'text3' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 23: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: insert into My_Table values ( 4 , 'text4' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: declare C cursor for select * from My_Table; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 28: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: fetch 1 in C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: text1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: fetch 1 in C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: text2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: fetch 1 in C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: text3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: fetch 1 in C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 32: RESULT: text4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: fetch 1 in C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: correctly got 0 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 32: no data found on line 32
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 37: query: move backward 2 in C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 37: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 37: OK: MOVE 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: fetch 1 in C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 39: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 39: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 39: RESULT: text4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: query: close C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: query: declare D cursor for select * from My_Table where Item1 = $1; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 46: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 46: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 46: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: query: fetch 1 in D; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 48: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 48: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 48: RESULT: text1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: query: close D; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 51: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: query: drop table My_Table; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 53: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-fetch.stdout b/src/interfaces/ecpg/test/expected/sql-fetch.stdout
new file mode 100644
index 0000000..84dca88
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-fetch.stdout
@@ -0,0 +1,6 @@
+1: text1
+2: text2
+3: text3
+4: text4
+4: text4
+1: text1
diff --git a/src/interfaces/ecpg/test/expected/sql-func.c b/src/interfaces/ecpg/test/expected/sql-func.c
new file mode 100644
index 0000000..17c5d26
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-func.c
@@ -0,0 +1,170 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "func.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 5 "func.pgc"
+
+
+int main() {
+
+#line 8 "func.pgc"
+ char text [ 25 ] ;
+
+#line 8 "func.pgc"
+
+
+ ECPGdebug(1, stderr);
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 11 "func.pgc"
+
+
+ { ECPGsetcommit(__LINE__, "on", NULL);}
+#line 13 "func.pgc"
+
+ /* exec sql whenever sql_warning sqlprint ; */
+#line 14 "func.pgc"
+
+ /* exec sql whenever sqlerror sqlprint ; */
+#line 15 "func.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table My_Table ( Item1 int , Item2 text )", ECPGt_EOIT, ECPGt_EORT);
+#line 17 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 17 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 17 "func.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table Log ( name text , w text )", ECPGt_EOIT, ECPGt_EORT);
+#line 18 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 18 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 18 "func.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create function My_Table_Check ( ) returns trigger as $test$\
+ BEGIN\
+ INSERT INTO Log VALUES(TG_NAME, TG_WHEN);\
+ RETURN NEW;\
+ END; $test$ language plpgsql", ECPGt_EOIT, ECPGt_EORT);
+#line 26 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 26 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 26 "func.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create trigger My_Table_Check_Trigger before insert on My_Table for each row execute procedure My_Table_Check ( )", ECPGt_EOIT, ECPGt_EORT);
+#line 32 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 32 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 32 "func.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into My_Table values ( 1234 , 'Some random text' )", ECPGt_EOIT, ECPGt_EORT);
+#line 34 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 34 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 34 "func.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into My_Table values ( 5678 , 'The Quick Brown' )", ECPGt_EOIT, ECPGt_EORT);
+#line 35 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 35 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 35 "func.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select name from Log limit 1", ECPGt_EOIT,
+ ECPGt_char,(text),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 36 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 36 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 36 "func.pgc"
+
+ printf("Trigger %s fired.\n", text);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop trigger My_Table_Check_Trigger on My_Table", ECPGt_EOIT, ECPGt_EORT);
+#line 39 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 39 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 39 "func.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop function My_Table_Check ( )", ECPGt_EOIT, ECPGt_EORT);
+#line 40 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 40 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 40 "func.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table Log", ECPGt_EOIT, ECPGt_EORT);
+#line 41 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 41 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 41 "func.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table My_Table", ECPGt_EOIT, ECPGt_EORT);
+#line 42 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 42 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 42 "func.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 44 "func.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 44 "func.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 44 "func.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-func.stderr b/src/interfaces/ecpg/test/expected/sql-func.stderr
new file mode 100644
index 0000000..9b2501a
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-func.stderr
@@ -0,0 +1,76 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGsetcommit on line 13: action "on"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 17: query: create table My_Table ( Item1 int , Item2 text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 17: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 17: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: query: create table Log ( name text , w text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 18: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: query: create function My_Table_Check ( ) returns trigger as $test$ BEGIN INSERT INTO Log VALUES(TG_NAME, TG_WHEN); RETURN NEW; END; $test$ language plpgsql; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 20: OK: CREATE FUNCTION
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: create trigger My_Table_Check_Trigger before insert on My_Table for each row execute procedure My_Table_Check ( ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 28: OK: CREATE TRIGGER
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: query: insert into My_Table values ( 1234 , 'Some random text' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 34: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: query: insert into My_Table values ( 5678 , 'The Quick Brown' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 35: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: select name from Log limit 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: my_table_check_trigger offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: query: drop trigger My_Table_Check_Trigger on My_Table; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 39: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 39: OK: DROP TRIGGER
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: query: drop function My_Table_Check ( ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 40: OK: DROP FUNCTION
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: query: drop table Log; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: query: drop table My_Table; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-func.stdout b/src/interfaces/ecpg/test/expected/sql-func.stdout
new file mode 100644
index 0000000..9a3ec25
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-func.stdout
@@ -0,0 +1 @@
+Trigger my_table_check_trigger fired.
diff --git a/src/interfaces/ecpg/test/expected/sql-indicators.c b/src/interfaces/ecpg/test/expected/sql-indicators.c
new file mode 100644
index 0000000..7cf43ad
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-indicators.c
@@ -0,0 +1,189 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "indicators.pgc"
+#include <stdio.h>
+
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 3 "indicators.pgc"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 4 "indicators.pgc"
+
+
+int main()
+{
+ /* exec sql begin declare section */
+
+
+
+#line 9 "indicators.pgc"
+ int intvar = 5 ;
+
+#line 10 "indicators.pgc"
+ int nullind = - 1 ;
+/* exec sql end declare section */
+#line 11 "indicators.pgc"
+
+
+ ECPGdebug(1,stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 15 "indicators.pgc"
+
+ { ECPGsetcommit(__LINE__, "off", NULL);}
+#line 16 "indicators.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table indicator_test ( \"id\" int primary key , \"str\" text not null , val int null )", ECPGt_EOIT, ECPGt_EORT);}
+#line 21 "indicators.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit work");}
+#line 22 "indicators.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 1 , 'Hello' , 0 )", ECPGt_EOIT, ECPGt_EORT);}
+#line 24 "indicators.pgc"
+
+
+ /* use indicator in insert */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 2 , 'Hi there' , $1 )",
+ ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
+ ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);}
+#line 27 "indicators.pgc"
+
+ nullind = 0;
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 3 , 'Good evening' , $1 )",
+ ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
+ ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);}
+#line 29 "indicators.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit work");}
+#line 30 "indicators.pgc"
+
+
+ /* use indicators to get information about selects */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 1", ECPGt_EOIT,
+ ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 33 "indicators.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 2", ECPGt_EOIT,
+ ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
+ ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);}
+#line 34 "indicators.pgc"
+
+ printf("intvar: %d, nullind: %d\n", intvar, nullind);
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 3", ECPGt_EOIT,
+ ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
+ ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);}
+#line 36 "indicators.pgc"
+
+ printf("intvar: %d, nullind: %d\n", intvar, nullind);
+
+ /* use indicators for update */
+ intvar = 5; nullind = -1;
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "update indicator_test set val = $1 where id = 1",
+ ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
+ ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);}
+#line 41 "indicators.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 1", ECPGt_EOIT,
+ ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
+ ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);}
+#line 42 "indicators.pgc"
+
+ printf("intvar: %d, nullind: %d\n", intvar, nullind);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table indicator_test", ECPGt_EOIT, ECPGt_EORT);}
+#line 45 "indicators.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit work");}
+#line 46 "indicators.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 48 "indicators.pgc"
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-indicators.stderr b/src/interfaces/ecpg/test/expected/sql-indicators.stderr
new file mode 100644
index 0000000..5813ce2
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-indicators.stderr
@@ -0,0 +1,88 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGsetcommit on line 16: action "off"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: query: create table indicator_test ( "id" int primary key , "str" text not null , val int null ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 18: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 22: action "commit work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: insert into indicator_test ( id , str , val ) values ( 1 , 'Hello' , 0 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: query: insert into indicator_test ( id , str , val ) values ( 2 , 'Hi there' , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 27: parameter 1 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 27: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: query: insert into indicator_test ( id , str , val ) values ( 3 , 'Good evening' , $1 ); with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 29: parameter 1 = 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 29: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 30: action "commit work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 33: RESULT: 0 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: query: select val from indicator_test where id = 2; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 34: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 34: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: select val from indicator_test where id = 3; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 36: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: query: update indicator_test set val = $1 where id = 1; with 1 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 41: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 41: parameter 1 = null
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 41: OK: UPDATE 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 42: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: query: drop table indicator_test; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 45: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 46: action "commit work"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-indicators.stdout b/src/interfaces/ecpg/test/expected/sql-indicators.stdout
new file mode 100644
index 0000000..e9d6fd1
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-indicators.stdout
@@ -0,0 +1,3 @@
+intvar: 0, nullind: -1
+intvar: 5, nullind: 0
+intvar: 5, nullind: -1
diff --git a/src/interfaces/ecpg/test/expected/sql-insupd.c b/src/interfaces/ecpg/test/expected/sql-insupd.c
new file mode 100644
index 0000000..5f73bf5
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-insupd.c
@@ -0,0 +1,145 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "insupd.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 5 "insupd.pgc"
+
+
+int main() {
+ /* exec sql begin declare section */
+
+
+#line 9 "insupd.pgc"
+ int i1 [ 3 ] , i2 [ 3 ] , i3 [ 3 ] , i4 ;
+/* exec sql end declare section */
+#line 10 "insupd.pgc"
+
+
+ ECPGdebug(1, stderr);
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 13 "insupd.pgc"
+
+
+ /* exec sql whenever sql_warning sqlprint ; */
+#line 15 "insupd.pgc"
+
+ /* exec sql whenever sqlerror sqlprint ; */
+#line 16 "insupd.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table insupd_test ( a int , b int )", ECPGt_EOIT, ECPGt_EORT);
+#line 18 "insupd.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 18 "insupd.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 18 "insupd.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into insupd_test ( a , b ) values ( 1 , 1 )", ECPGt_EOIT, ECPGt_EORT);
+#line 20 "insupd.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 20 "insupd.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 20 "insupd.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into insupd_test ( a , b ) values ( 2 , 2 )", ECPGt_EOIT, ECPGt_EORT);
+#line 21 "insupd.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 21 "insupd.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 21 "insupd.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into insupd_test ( a , b ) values ( 3 , 3 ) returning a", ECPGt_EOIT,
+ ECPGt_int,&(i4),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 22 "insupd.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 22 "insupd.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 22 "insupd.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "update insupd_test set a = a + 1 returning a", ECPGt_EOIT,
+ ECPGt_int,(i3),(long)1,(long)3,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 24 "insupd.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 24 "insupd.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 24 "insupd.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "update insupd_test set ( a , b ) = ( 5 , 5 ) where a = 4", ECPGt_EOIT, ECPGt_EORT);
+#line 25 "insupd.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 25 "insupd.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 25 "insupd.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "update insupd_test set a = 4 where a = 3", ECPGt_EOIT, ECPGt_EORT);
+#line 26 "insupd.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 26 "insupd.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 26 "insupd.pgc"
+;
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select a , b from insupd_test order by a", ECPGt_EOIT,
+ ECPGt_int,(i1),(long)1,(long)3,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,(i2),(long)1,(long)3,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 28 "insupd.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 28 "insupd.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 28 "insupd.pgc"
+
+
+ printf("changes\n%d %d %d %d\n", i3[0], i3[1], i3[2], i4);
+ printf("test\na b\n%d %d\n%d %d\n%d %d\n", i1[0], i2[0], i1[1], i2[1], i1[2], i2[2]);
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 33 "insupd.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 33 "insupd.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 33 "insupd.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-insupd.stderr b/src/interfaces/ecpg/test/expected/sql-insupd.stderr
new file mode 100644
index 0000000..16f7c0a
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-insupd.stderr
@@ -0,0 +1,74 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: query: create table insupd_test ( a int , b int ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 18: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: query: insert into insupd_test ( a , b ) values ( 1 , 1 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 20: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 21: query: insert into insupd_test ( a , b ) values ( 2 , 2 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 21: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 21: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: query: insert into insupd_test ( a , b ) values ( 3 , 3 ) returning a; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 22: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 22: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: update insupd_test set a = a + 1 returning a; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: correctly got 3 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 24: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 24: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 24: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: query: update insupd_test set ( a , b ) = ( 5 , 5 ) where a = 4; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 25: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 25: OK: UPDATE 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: update insupd_test set a = 4 where a = 3; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: UPDATE 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: select a , b from insupd_test order by a; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 28: correctly got 3 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 28: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 28: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 28: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 28: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 28: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 28: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-insupd.stdout b/src/interfaces/ecpg/test/expected/sql-insupd.stdout
new file mode 100644
index 0000000..5cefd43
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-insupd.stdout
@@ -0,0 +1,7 @@
+changes
+2 3 4 3
+test
+a b
+2 1
+4 2
+5 5
diff --git a/src/interfaces/ecpg/test/expected/sql-oldexec.c b/src/interfaces/ecpg/test/expected/sql-oldexec.c
new file mode 100644
index 0000000..d6a661e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-oldexec.c
@@ -0,0 +1,251 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "oldexec.pgc"
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "oldexec.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 8 "oldexec.pgc"
+
+
+int
+main(void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+
+#line 14 "oldexec.pgc"
+ int amount [ 8 ] ;
+
+#line 15 "oldexec.pgc"
+ int increment = 100 ;
+
+#line 16 "oldexec.pgc"
+ char name [ 8 ] [ 8 ] ;
+
+#line 17 "oldexec.pgc"
+ char letter [ 8 ] [ 1 ] ;
+
+#line 18 "oldexec.pgc"
+ char command [ 128 ] ;
+/* exec sql end declare section */
+#line 19 "oldexec.pgc"
+
+ int i,j;
+
+ ECPGdebug(1, stderr);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "main", 0);
+#line 24 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 24 "oldexec.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_normal, "create table test ( name char ( 8 ) , amount int , letter char ( 1 ) )", ECPGt_EOIT, ECPGt_EORT);
+#line 26 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 26 "oldexec.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 27 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 27 "oldexec.pgc"
+
+
+ sprintf(command, "insert into test (name, amount, letter) values ('db: ''r1''', 1, 'f')");
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_exec_immediate, command, ECPGt_EOIT, ECPGt_EORT);
+#line 30 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 30 "oldexec.pgc"
+
+
+ sprintf(command, "insert into test (name, amount, letter) values ('db: ''r1''', 2, 't')");
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_exec_immediate, command, ECPGt_EOIT, ECPGt_EORT);
+#line 33 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 33 "oldexec.pgc"
+
+
+ sprintf(command, "insert into test (name, amount, letter) select name, amount+10, letter from test");
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_exec_immediate, command, ECPGt_EOIT, ECPGt_EORT);
+#line 36 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 36 "oldexec.pgc"
+
+
+ printf("Inserted %ld tuples via execute immediate\n", sqlca.sqlerrd[2]);
+
+ sprintf(command, "insert into test (name, amount, letter) select name, amount+$1, letter from test");
+ { ECPGprepare(__LINE__, NULL, 1, "i", command);
+#line 41 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 41 "oldexec.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_execute, "i",
+ ECPGt_int,&(increment),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 42 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 42 "oldexec.pgc"
+
+
+ printf("Inserted %ld tuples via prepared execute\n", sqlca.sqlerrd[2]);
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 46 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 46 "oldexec.pgc"
+
+
+ sprintf (command, "select * from test");
+
+ { ECPGprepare(__LINE__, NULL, 1, "f", command);
+#line 50 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 50 "oldexec.pgc"
+
+ /* declare CUR cursor for $1 */
+#line 51 "oldexec.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_normal, "declare CUR cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "f", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 53 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 53 "oldexec.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_normal, "fetch 8 in CUR", ECPGt_EOIT,
+ ECPGt_char,(name),(long)8,(long)8,(8)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,(amount),(long)1,(long)8,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(letter),(long)1,(long)8,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 54 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 54 "oldexec.pgc"
+
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ char n[8], l = letter[i][0];
+ int a = amount[i];
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_normal, "close CUR", ECPGt_EOIT, ECPGt_EORT);
+#line 65 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 65 "oldexec.pgc"
+
+
+ sprintf (command, "select * from test where ? = amount");
+
+ { ECPGprepare(__LINE__, NULL, 1, "f", command);
+#line 69 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 69 "oldexec.pgc"
+
+ /* declare CUR3 cursor for $1 */
+#line 70 "oldexec.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_normal, "declare CUR3 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "f", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_const,"1",(long)1,(long)1,strlen("1"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 72 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 72 "oldexec.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_normal, "fetch in CUR3", ECPGt_EOIT,
+ ECPGt_char,(name),(long)8,(long)8,(8)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,(amount),(long)1,(long)8,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(letter),(long)1,(long)8,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 73 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 73 "oldexec.pgc"
+
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ char n[8], l = letter[i][0];
+ int a = amount[i];
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_normal, "close CUR3", ECPGt_EOIT, ECPGt_EORT);
+#line 84 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 84 "oldexec.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 1, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT);
+#line 85 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 85 "oldexec.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 86 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 86 "oldexec.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 87 "oldexec.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 87 "oldexec.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-oldexec.stderr b/src/interfaces/ecpg/test/expected/sql-oldexec.stderr
new file mode 100644
index 0000000..7543757
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-oldexec.stderr
@@ -0,0 +1,154 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: create table test ( name char ( 8 ) , amount int , letter char ( 1 ) ); with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 27: action "commit"; connection "main"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: insert into test (name, amount, letter) values ('db: ''r1''', 1, 'f'); with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: query: insert into test (name, amount, letter) values ('db: ''r1''', 2, 't'); with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 33: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 33: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: query: insert into test (name, amount, letter) select name, amount+10, letter from test; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 36: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 36: OK: INSERT 0 2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 41: name i; query: "insert into test (name, amount, letter) select name, amount+$1, letter from test"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: query: insert into test (name, amount, letter) select name, amount+$1, letter from test; with 1 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 42: using PQexecPrepared for "insert into test (name, amount, letter) select name, amount+$1, letter from test"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 42: parameter 1 = 100
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 42: OK: INSERT 0 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 46: action "commit"; connection "main"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 50: name f; query: "select * from test"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: query: declare CUR cursor for select * from test; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 53: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 53: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 54: query: fetch 8 in CUR; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 54: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 54: correctly got 8 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: 11 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: 12 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: 101 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: 102 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: 111 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: 112 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 54: RESULT: t offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: query: close CUR; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 65: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 65: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 69: name f
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 69: name f; query: "select * from test where $1 = amount"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 72: query: declare CUR3 cursor for select * from test where $1 = amount; with 1 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 72: using PQexecParams
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 72: parameter 1 = 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 72: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 73: query: fetch in CUR3; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 73: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 73: correctly got 1 tuples with 3 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 73: RESULT: db: 'r1' offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 73: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 73: RESULT: f offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 84: query: close CUR3; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 84: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 84: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: query: drop table test; with 0 parameter(s) on connection main
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 85: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 86: action "commit"; connection "main"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name f
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 0: name i
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection main closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-oldexec.stdout b/src/interfaces/ecpg/test/expected/sql-oldexec.stdout
new file mode 100644
index 0000000..1f4d4f2
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-oldexec.stdout
@@ -0,0 +1,11 @@
+Inserted 2 tuples via execute immediate
+Inserted 4 tuples via prepared execute
+name[0]=db: 'r1' amount[0]=1 letter[0]=f
+name[1]=db: 'r1' amount[1]=2 letter[1]=t
+name[2]=db: 'r1' amount[2]=11 letter[2]=f
+name[3]=db: 'r1' amount[3]=12 letter[3]=t
+name[4]=db: 'r1' amount[4]=101 letter[4]=f
+name[5]=db: 'r1' amount[5]=102 letter[5]=t
+name[6]=db: 'r1' amount[6]=111 letter[6]=f
+name[7]=db: 'r1' amount[7]=112 letter[7]=t
+name[0]=db: 'r1' amount[0]=1 letter[0]=f
diff --git a/src/interfaces/ecpg/test/expected/sql-parser.c b/src/interfaces/ecpg/test/expected/sql-parser.c
new file mode 100644
index 0000000..32bb2c2
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-parser.c
@@ -0,0 +1,126 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "parser.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+/* test parser addition that merges two tokens into one */
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "parser.pgc"
+
+
+int main() {
+ /* exec sql begin declare section */
+
+
+#line 10 "parser.pgc"
+ int item [ 3 ] , ind [ 3 ] , i ;
+/* exec sql end declare section */
+#line 11 "parser.pgc"
+
+
+ ECPGdebug(1, stderr);
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 14 "parser.pgc"
+
+
+ { ECPGsetcommit(__LINE__, "on", NULL);}
+#line 16 "parser.pgc"
+
+ /* exec sql whenever sql_warning sqlprint ; */
+#line 17 "parser.pgc"
+
+ /* exec sql whenever sqlerror sqlprint ; */
+#line 18 "parser.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table T ( Item1 int , Item2 int )", ECPGt_EOIT, ECPGt_EORT);
+#line 20 "parser.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 20 "parser.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 20 "parser.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t select 1 , nullif ( y - 1 , 0 ) from generate_series ( 1 , 3 ) with ordinality as series ( x , y )", ECPGt_EOIT, ECPGt_EORT);
+#line 24 "parser.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 24 "parser.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 24 "parser.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select Item2 from T order by Item2 nulls last", ECPGt_EOIT,
+ ECPGt_int,(item),(long)1,(long)3,sizeof(int),
+ ECPGt_int,(ind),(long)1,(long)3,sizeof(int), ECPGt_EORT);
+#line 26 "parser.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 26 "parser.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 26 "parser.pgc"
+
+
+ for (i=0; i<3; i++)
+ printf("item[%d] = %d\n", i, ind[i] ? -1 : item[i]);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "alter table T alter Item1 type bigint", ECPGt_EOIT, ECPGt_EORT);
+#line 31 "parser.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 31 "parser.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 31 "parser.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "alter table T alter column Item2 set data type smallint", ECPGt_EOIT, ECPGt_EORT);
+#line 32 "parser.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 32 "parser.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 32 "parser.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table T", ECPGt_EOIT, ECPGt_EORT);
+#line 34 "parser.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 34 "parser.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 34 "parser.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 36 "parser.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 36 "parser.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 36 "parser.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-parser.stderr b/src/interfaces/ecpg/test/expected/sql-parser.stderr
new file mode 100644
index 0000000..fba8fd1
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-parser.stderr
@@ -0,0 +1,50 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGsetcommit on line 16: action "on"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: query: create table T ( Item1 int , Item2 int ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 20: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: query: insert into t select 1 , nullif ( y - 1 , 0 ) from generate_series ( 1 , 3 ) with ordinality as series ( x , y ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 22: OK: INSERT 0 3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: select Item2 from T order by Item2 nulls last; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: correctly got 3 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 26: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 26: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 26: RESULT: offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: query: alter table T alter Item1 type bigint; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 31: OK: ALTER TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: alter table T alter column Item2 set data type smallint; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: OK: ALTER TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: query: drop table T; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 34: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-parser.stdout b/src/interfaces/ecpg/test/expected/sql-parser.stdout
new file mode 100644
index 0000000..e646ca2
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-parser.stdout
@@ -0,0 +1,3 @@
+item[0] = 1
+item[1] = 2
+item[2] = -1
diff --git a/src/interfaces/ecpg/test/expected/sql-prepareas.c b/src/interfaces/ecpg/test/expected/sql-prepareas.c
new file mode 100644
index 0000000..b925c4b
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-prepareas.c
@@ -0,0 +1,664 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "prepareas.pgc"
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 5 "prepareas.pgc"
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 6 "prepareas.pgc"
+
+
+static void
+check_result_of_insert(void)
+{
+ /* exec sql begin declare section */
+
+
+#line 12 "prepareas.pgc"
+ int ivar1 = 0 , ivar2 = 0 ;
+/* exec sql end declare section */
+#line 13 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select c1 , c2 from test", ECPGt_EOIT,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 15 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 15 "prepareas.pgc"
+
+ printf("%d %d\n", ivar1, ivar2);
+}
+
+int main(void)
+{
+ /* exec sql begin declare section */
+
+
+
+#line 22 "prepareas.pgc"
+ int ivar1 = 1 , ivar2 = 2 ;
+
+#line 23 "prepareas.pgc"
+ char v_include_dq_name [ 16 ] , v_include_ws_name [ 16 ] , v_normal_name [ 16 ] , v_query [ 64 ] ;
+/* exec sql end declare section */
+#line 24 "prepareas.pgc"
+
+
+ strcpy(v_normal_name, "normal_name");
+ strcpy(v_include_dq_name, "include_\"_name");
+ strcpy(v_include_ws_name, "include_ _name");
+ strcpy(v_query, "insert into test values(?,?)");
+
+ /*
+ * preparing for test
+ */
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 34 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 34 "prepareas.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "begin");
+#line 35 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 35 "prepareas.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( c1 int , c2 int )", ECPGt_EOIT, ECPGt_EORT);
+#line 36 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 36 "prepareas.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit work");
+#line 37 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 37 "prepareas.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "begin");
+#line 38 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 38 "prepareas.pgc"
+
+
+ /*
+ * Non dynamic statement
+ */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 43 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 43 "prepareas.pgc"
+
+ printf("+++++ Test for prepnormal +++++\n");
+ printf("insert into test values(:ivar1,:ivar2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( $1 , $2 )",
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 46 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 46 "prepareas.pgc"
+
+ check_result_of_insert();
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 49 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 49 "prepareas.pgc"
+
+ printf("+++++ Test for execute immediate +++++\n");
+ printf("execute immediate \"insert into test values(1,2)\"\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_immediate, "insert into test values(1,2)", ECPGt_EOIT, ECPGt_EORT);
+#line 52 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 52 "prepareas.pgc"
+
+ check_result_of_insert();
+
+ /*
+ * PREPARE FROM
+ */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 58 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 58 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE ident FROM CString +++++\n");
+ printf("prepare ident_name from \"insert into test values(?,?)\"\n");
+ { ECPGprepare(__LINE__, NULL, 0, "ident_name", "insert into test values(?,?)");
+#line 61 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 61 "prepareas.pgc"
+
+ printf("execute ident_name using :ivar1,:ivar2\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "ident_name",
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 63 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 63 "prepareas.pgc"
+
+ check_result_of_insert();
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 66 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 66 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE char_variable_normal_name FROM char_variable +++++\n");
+ printf("prepare :v_normal_name from :v_query\n");
+ { ECPGprepare(__LINE__, NULL, 0, v_normal_name, v_query);
+#line 69 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 69 "prepareas.pgc"
+
+ printf("execute :v_normal_name using :ivar1,:ivar2\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, v_normal_name,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 71 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 71 "prepareas.pgc"
+
+ check_result_of_insert();
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 74 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 74 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE char_variable_inc_dq_name FROM char_variable +++++\n");
+ printf("prepare :v_include_dq_name from :v_query\n");
+ { ECPGprepare(__LINE__, NULL, 0, v_include_dq_name, v_query);
+#line 77 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 77 "prepareas.pgc"
+
+ printf("execute :v_include_dq_name using :ivar1,:ivar2\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, v_include_dq_name,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 79 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 79 "prepareas.pgc"
+
+ check_result_of_insert();
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 82 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 82 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE char_variable_inc_ws_name FROM char_variable +++++\n");
+ printf("prepare :v_include_ws_name from :v_query\n");
+ { ECPGprepare(__LINE__, NULL, 0, v_include_ws_name, v_query);
+#line 85 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 85 "prepareas.pgc"
+
+ printf("execute :v_include_ws_name using :ivar1,:ivar2\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, v_include_ws_name,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 87 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 87 "prepareas.pgc"
+
+ check_result_of_insert();
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 90 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 90 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE CString_inc_ws_name FROM char_variable +++++\n");
+ printf("prepare \"include_ _name\" from :v_query\n");
+ { ECPGprepare(__LINE__, NULL, 0, "include_ _name", v_query);
+#line 93 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 93 "prepareas.pgc"
+
+ printf("exec sql execute \"include_ _name\" using :ivar1,:ivar2\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "include_ _name",
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 95 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 95 "prepareas.pgc"
+
+ check_result_of_insert();
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 98 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 98 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE CString_normal_name FROM char_variable +++++\n");
+ printf("prepare \"norma_name\" from :v_query\n");
+ { ECPGprepare(__LINE__, NULL, 0, "normal_name", v_query);
+#line 101 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 101 "prepareas.pgc"
+
+ printf("exec sql execute \"normal_name\" using :ivar1,:ivar2\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "normal_name",
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 103 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 103 "prepareas.pgc"
+
+ check_result_of_insert();
+
+ /*
+ * PREPARE AS
+ */
+ { ECPGdeallocate(__LINE__, 0, NULL, "ident_name");
+#line 109 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 109 "prepareas.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "normal_name");
+#line 110 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 110 "prepareas.pgc"
+
+ { ECPGdeallocate(__LINE__, 0, NULL, "include_ _name");
+#line 111 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 111 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 113 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 113 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE ident(typelist) AS +++++\n");
+ printf("prepare ident_name(int,int) as insert into test values($1,$2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_prepare, "prepare $0 ( int , int ) as insert into test values ( $1 , $2 )",
+ ECPGt_const,"ident_name",(long)10,(long)1,strlen("ident_name"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 116 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 116 "prepareas.pgc"
+
+ printf("execute ident_name(:ivar1,:ivar2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_with_exprlist, "execute $0 ( $1 , $2 )",
+ ECPGt_const,"ident_name",(long)10,(long)1,strlen("ident_name"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 118 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 118 "prepareas.pgc"
+
+ check_result_of_insert();
+ { ECPGdeallocate(__LINE__, 0, NULL, "ident_name");
+#line 120 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 120 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 122 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 122 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE CString_normal_name(typelist) AS +++++\n");
+ printf("prepare \"normal_name\"(int,int) as insert into test values($1,$2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_prepare, "prepare $0 ( int , int ) as insert into test values ( $1 , $2 )",
+ ECPGt_const,"normal_name",(long)11,(long)1,strlen("normal_name"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 125 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 125 "prepareas.pgc"
+
+ printf("execute \"normal_name\"(:ivar1,:ivar2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_with_exprlist, "execute $0 ( $1 , $2 )",
+ ECPGt_const,"normal_name",(long)11,(long)1,strlen("normal_name"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 127 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 127 "prepareas.pgc"
+
+ check_result_of_insert();
+ { ECPGdeallocate(__LINE__, 0, NULL, "normal_name");
+#line 129 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 129 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 131 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 131 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE CString_include_ws_name(typelist) AS +++++\n");
+ printf("prepare \"include_ _name\"(int,int) as insert into test values($1,$2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_prepare, "prepare $0 ( int , int ) as insert into test values ( $1 , $2 )",
+ ECPGt_const,"include_ _name",(long)14,(long)1,strlen("include_ _name"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 134 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 134 "prepareas.pgc"
+
+ printf("execute \"include_ _name\"(:ivar1,:ivar2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_with_exprlist, "execute $0 ( $1 , $2 )",
+ ECPGt_const,"include_ _name",(long)14,(long)1,strlen("include_ _name"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 136 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 136 "prepareas.pgc"
+
+ check_result_of_insert();
+ { ECPGdeallocate(__LINE__, 0, NULL, "include_ _name");
+#line 138 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 138 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 140 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 140 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE char_variable_normal_name(typelist) AS +++++\n");
+ printf("prepare :v_normal_name(int,int) as insert into test values($1,$2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_prepare, "prepare $0 ( int , int ) as insert into test values ( $1 , $2 )",
+ ECPGt_char,(v_normal_name),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 143 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 143 "prepareas.pgc"
+
+ printf("execute :v_normal_name(:ivar1,:ivar2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_with_exprlist, "execute $0 ( $1 , $2 )",
+ ECPGt_char,(v_normal_name),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 145 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 145 "prepareas.pgc"
+
+ check_result_of_insert();
+ { ECPGdeallocate(__LINE__, 0, NULL, "normal_name");
+#line 147 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 147 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 149 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 149 "prepareas.pgc"
+
+ printf("+++++ Test for PREPARE char_variable_include_ws_name(typelist) AS +++++\n");
+ printf("prepare :v_include_ws_name(int,int) as insert into test values($1,$2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_prepare, "prepare $0 ( int , int ) as insert into test values ( $1 , $2 )",
+ ECPGt_char,(v_include_ws_name),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 152 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 152 "prepareas.pgc"
+
+ printf("execute :v_include_ws_name(:ivar1,:ivar2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_with_exprlist, "execute $0 ( $1 , $2 )",
+ ECPGt_char,(v_include_ws_name),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 154 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 154 "prepareas.pgc"
+
+ check_result_of_insert();
+ { ECPGdeallocate(__LINE__, 0, NULL, "include_ _name");
+#line 156 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 156 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 158 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 158 "prepareas.pgc"
+
+ printf("+++++ Test for EXECUTE :v_normal_name(const,const) +++++\n");
+ printf("prepare :v_normal_name from :v_query\n");
+ { ECPGprepare(__LINE__, NULL, 0, v_normal_name, v_query);
+#line 161 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 161 "prepareas.pgc"
+
+ printf("execute :v_normal_name(1,2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_with_exprlist, "execute $0 ( 1 , 2 )",
+ ECPGt_char,(v_normal_name),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 163 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 163 "prepareas.pgc"
+
+ check_result_of_insert();
+ { ECPGdeallocate(__LINE__, 0, NULL, "normal_name");
+#line 165 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 165 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 167 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 167 "prepareas.pgc"
+
+ printf("+++++ Test for EXECUTE :v_normal_name(expr,expr) +++++\n");
+ printf("prepare :v_normal_name from :v_query\n");
+ { ECPGprepare(__LINE__, NULL, 0, v_normal_name, v_query);
+#line 170 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 170 "prepareas.pgc"
+
+ printf("execute :v_normal_name(0+1,1+1)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_with_exprlist, "execute $0 ( 0 + 1 , 1 + 1 )",
+ ECPGt_char,(v_normal_name),(long)16,(long)1,(16)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 172 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 172 "prepareas.pgc"
+
+ check_result_of_insert();
+ { ECPGdeallocate(__LINE__, 0, NULL, "normal_name");
+#line 174 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 174 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 176 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 176 "prepareas.pgc"
+
+ printf("+++++ Test for combination PREPARE FROM and EXECUTE ident(typelist) +++++\n");
+ printf("prepare ident_name from :v_query\n");
+ { ECPGprepare(__LINE__, NULL, 0, "ident_name", v_query);
+#line 179 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 179 "prepareas.pgc"
+
+ printf("execute ident_name(:ivar1,:ivar2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_with_exprlist, "execute $0 ( $1 , $2 )",
+ ECPGt_const,"ident_name",(long)10,(long)1,strlen("ident_name"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 181 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 181 "prepareas.pgc"
+
+ check_result_of_insert();
+ { ECPGdeallocate(__LINE__, 0, NULL, "ident_name");
+#line 183 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 183 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "truncate test", ECPGt_EOIT, ECPGt_EORT);
+#line 185 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 185 "prepareas.pgc"
+
+ printf("+++++ Test for combination PREPARE FROM and EXECUTE CString_include_ws_name(typelist) +++++\n");
+ printf("prepare \"include_ _name\" from :v_query\n");
+ { ECPGprepare(__LINE__, NULL, 0, "include_ _name", v_query);
+#line 188 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 188 "prepareas.pgc"
+
+ printf("execute \"include_ _name\"(:ivar1,:ivar2)\n");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_exec_with_exprlist, "execute $0 ( $1 , $2 )",
+ ECPGt_const,"include_ _name",(long)14,(long)1,strlen("include_ _name"),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar1),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(ivar2),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 190 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 190 "prepareas.pgc"
+
+ check_result_of_insert();
+ { ECPGdeallocate(__LINE__, 0, NULL, "include_ _name");
+#line 192 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 192 "prepareas.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT);
+#line 194 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 194 "prepareas.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit work");
+#line 195 "prepareas.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 195 "prepareas.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-prepareas.stderr b/src/interfaces/ecpg/test/expected/sql-prepareas.stderr
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-prepareas.stderr
diff --git a/src/interfaces/ecpg/test/expected/sql-prepareas.stdout b/src/interfaces/ecpg/test/expected/sql-prepareas.stdout
new file mode 100644
index 0000000..d875442
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-prepareas.stdout
@@ -0,0 +1,66 @@
++++++ Test for prepnormal +++++
+insert into test values(:ivar1,:ivar2)
+1 2
++++++ Test for execute immediate +++++
+execute immediate "insert into test values(1,2)"
+1 2
++++++ Test for PREPARE ident FROM CString +++++
+prepare ident_name from "insert into test values(?,?)"
+execute ident_name using :ivar1,:ivar2
+1 2
++++++ Test for PREPARE char_variable_normal_name FROM char_variable +++++
+prepare :v_normal_name from :v_query
+execute :v_normal_name using :ivar1,:ivar2
+1 2
++++++ Test for PREPARE char_variable_inc_dq_name FROM char_variable +++++
+prepare :v_include_dq_name from :v_query
+execute :v_include_dq_name using :ivar1,:ivar2
+1 2
++++++ Test for PREPARE char_variable_inc_ws_name FROM char_variable +++++
+prepare :v_include_ws_name from :v_query
+execute :v_include_ws_name using :ivar1,:ivar2
+1 2
++++++ Test for PREPARE CString_inc_ws_name FROM char_variable +++++
+prepare "include_ _name" from :v_query
+exec sql execute "include_ _name" using :ivar1,:ivar2
+1 2
++++++ Test for PREPARE CString_normal_name FROM char_variable +++++
+prepare "norma_name" from :v_query
+exec sql execute "normal_name" using :ivar1,:ivar2
+1 2
++++++ Test for PREPARE ident(typelist) AS +++++
+prepare ident_name(int,int) as insert into test values($1,$2)
+execute ident_name(:ivar1,:ivar2)
+1 2
++++++ Test for PREPARE CString_normal_name(typelist) AS +++++
+prepare "normal_name"(int,int) as insert into test values($1,$2)
+execute "normal_name"(:ivar1,:ivar2)
+1 2
++++++ Test for PREPARE CString_include_ws_name(typelist) AS +++++
+prepare "include_ _name"(int,int) as insert into test values($1,$2)
+execute "include_ _name"(:ivar1,:ivar2)
+1 2
++++++ Test for PREPARE char_variable_normal_name(typelist) AS +++++
+prepare :v_normal_name(int,int) as insert into test values($1,$2)
+execute :v_normal_name(:ivar1,:ivar2)
+1 2
++++++ Test for PREPARE char_variable_include_ws_name(typelist) AS +++++
+prepare :v_include_ws_name(int,int) as insert into test values($1,$2)
+execute :v_include_ws_name(:ivar1,:ivar2)
+1 2
++++++ Test for EXECUTE :v_normal_name(const,const) +++++
+prepare :v_normal_name from :v_query
+execute :v_normal_name(1,2)
+1 2
++++++ Test for EXECUTE :v_normal_name(expr,expr) +++++
+prepare :v_normal_name from :v_query
+execute :v_normal_name(0+1,1+1)
+1 2
++++++ Test for combination PREPARE FROM and EXECUTE ident(typelist) +++++
+prepare ident_name from :v_query
+execute ident_name(:ivar1,:ivar2)
+1 2
++++++ Test for combination PREPARE FROM and EXECUTE CString_include_ws_name(typelist) +++++
+prepare "include_ _name" from :v_query
+execute "include_ _name"(:ivar1,:ivar2)
+1 2
diff --git a/src/interfaces/ecpg/test/expected/sql-quote.c b/src/interfaces/ecpg/test/expected/sql-quote.c
new file mode 100644
index 0000000..05841bd
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-quote.c
@@ -0,0 +1,230 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "quote.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 5 "quote.pgc"
+
+
+int main() {
+ /* exec sql begin declare section */
+
+
+
+#line 9 "quote.pgc"
+ char var [ 25 ] ;
+
+#line 10 "quote.pgc"
+ int i , loopcount ;
+/* exec sql end declare section */
+#line 11 "quote.pgc"
+
+
+ ECPGdebug(1, stderr);
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 14 "quote.pgc"
+
+
+ { ECPGsetcommit(__LINE__, "on", NULL);}
+#line 16 "quote.pgc"
+
+ /* exec sql whenever sql_warning sqlprint ; */
+#line 17 "quote.pgc"
+
+ /* exec sql whenever sqlerror stop ; */
+#line 18 "quote.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table \"My_Table\" ( Item1 int , Item2 text )", ECPGt_EOIT, ECPGt_EORT);
+#line 20 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 20 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 20 "quote.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set standard_conforming_strings to off", ECPGt_EOIT, ECPGt_EORT);
+#line 22 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 22 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 22 "quote.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show standard_conforming_strings", ECPGt_EOIT,
+ ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 24 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 24 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 24 "quote.pgc"
+
+ printf("Standard conforming strings: %s\n", var);
+
+ /* this is a\\b actually */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into \"My_Table\" values ( 1 , 'a\\\\\\\\b' )", ECPGt_EOIT, ECPGt_EORT);
+#line 28 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 28 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 28 "quote.pgc"
+
+ /* this is a\\b */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into \"My_Table\" values ( 1 , E'a\\\\\\\\b' )", ECPGt_EOIT, ECPGt_EORT);
+#line 30 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 30 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 30 "quote.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set standard_conforming_strings to on", ECPGt_EOIT, ECPGt_EORT);
+#line 32 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 32 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 32 "quote.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show standard_conforming_strings", ECPGt_EOIT,
+ ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 34 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 34 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 34 "quote.pgc"
+
+ printf("Standard conforming strings: %s\n", var);
+
+ /* this is a\\\\b actually */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into \"My_Table\" values ( 2 , 'a\\\\\\\\b' )", ECPGt_EOIT, ECPGt_EORT);
+#line 38 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 38 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 38 "quote.pgc"
+
+ /* this is a\\b */
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into \"My_Table\" values ( 2 , E'a\\\\\\\\b' )", ECPGt_EOIT, ECPGt_EORT);
+#line 40 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 40 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 40 "quote.pgc"
+
+
+ { ECPGtrans(__LINE__, NULL, "begin");
+#line 42 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 42 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 42 "quote.pgc"
+
+ /* declare C cursor for select * from \"My_Table\" */
+#line 43 "quote.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare C cursor for select * from \"My_Table\"", ECPGt_EOIT, ECPGt_EORT);
+#line 45 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 45 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 45 "quote.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 47 "quote.pgc"
+
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch C", ECPGt_EOIT,
+ ECPGt_int,&(i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 51 "quote.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 51 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 51 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 51 "quote.pgc"
+
+ printf("value: %d %s\n", i, var);
+ }
+
+ { ECPGtrans(__LINE__, NULL, "rollback");
+#line 55 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 55 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 55 "quote.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table \"My_Table\"", ECPGt_EOIT, ECPGt_EORT);
+#line 56 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 56 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 56 "quote.pgc"
+
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 58 "quote.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 58 "quote.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 58 "quote.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-quote.stderr b/src/interfaces/ecpg/test/expected/sql-quote.stderr
new file mode 100644
index 0000000..3df8702
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-quote.stderr
@@ -0,0 +1,135 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGsetcommit on line 16: action "on"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: query: create table "My_Table" ( Item1 int , Item2 text ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 20: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: query: set standard_conforming_strings to off; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 22: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: query: show standard_conforming_strings; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 24: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 24: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 24: RESULT: off offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 28: query: insert into "My_Table" values ( 1 , 'a\\\\b' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGnoticeReceiver: nonstandard use of \\ in a string literal
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 0
+[NO_PID]: sqlca: code: 0, state: 22P06
+[NO_PID]: ecpg_execute on line 28: using PQexec
+[NO_PID]: sqlca: code: 0, state: 22P06
+[NO_PID]: ecpg_process_output on line 28: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 22P06
+SQL error: nonstandard use of \\ in a string literal
+[NO_PID]: ecpg_execute on line 30: query: insert into "My_Table" values ( 1 , E'a\\\\b' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: query: set standard_conforming_strings to on; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 32: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 32: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: query: show standard_conforming_strings; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 34: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 34: RESULT: on offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: query: insert into "My_Table" values ( 2 , 'a\\\\b' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 38: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: query: insert into "My_Table" values ( 2 , E'a\\\\b' ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 40: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 40: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 42: action "begin"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: query: declare C cursor for select * from "My_Table"; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 45: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 45: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 51: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 51: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 51: RESULT: a\\b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 51: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 51: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 51: RESULT: a\\b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 51: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 51: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 51: RESULT: a\\\\b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 51: correctly got 1 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 51: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 51: RESULT: a\\b offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 51: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 51: correctly got 0 tuples with 2 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 51: no data found on line 51
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ECPGtrans on line 55: action "rollback"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: query: drop table "My_Table"; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 56: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 56: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-quote.stdout b/src/interfaces/ecpg/test/expected/sql-quote.stdout
new file mode 100644
index 0000000..2f92f99
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-quote.stdout
@@ -0,0 +1,6 @@
+Standard conforming strings: off
+Standard conforming strings: on
+value: 1 a\\b
+value: 1 a\\b
+value: 2 a\\\\b
+value: 2 a\\b
diff --git a/src/interfaces/ecpg/test/expected/sql-show.c b/src/interfaces/ecpg/test/expected/sql-show.c
new file mode 100644
index 0000000..1b52d5e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-show.c
@@ -0,0 +1,170 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "show.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 5 "show.pgc"
+
+
+int main() {
+ /* exec sql begin declare section */
+
+
+#line 9 "show.pgc"
+ char var [ 25 ] = "public" ;
+/* exec sql end declare section */
+#line 10 "show.pgc"
+
+
+ ECPGdebug(1, stderr);
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 13 "show.pgc"
+
+
+ /* exec sql whenever sql_warning sqlprint ; */
+#line 15 "show.pgc"
+
+ /* exec sql whenever sqlerror sqlprint ; */
+#line 16 "show.pgc"
+
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set search_path to $0",
+ ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 18 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 18 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 18 "show.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show search_path", ECPGt_EOIT,
+ ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 19 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 19 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 19 "show.pgc"
+
+ printf("Var: Search path: %s\n", var);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set search_path to 'public'", ECPGt_EOIT, ECPGt_EORT);
+#line 22 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 22 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 22 "show.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show search_path", ECPGt_EOIT,
+ ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 23 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 23 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 23 "show.pgc"
+
+ printf("Var: Search path: %s\n", var);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set standard_conforming_strings to off", ECPGt_EOIT, ECPGt_EORT);
+#line 26 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 26 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 26 "show.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show standard_conforming_strings", ECPGt_EOIT,
+ ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 27 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 27 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 27 "show.pgc"
+
+ printf("Var: Standard conforming strings: %s\n", var);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set time zone PST8PDT", ECPGt_EOIT, ECPGt_EORT);
+#line 30 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 30 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 30 "show.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show time zone", ECPGt_EOIT,
+ ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 31 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 31 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 31 "show.pgc"
+
+ printf("Time Zone: %s\n", var);
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set transaction isolation level read committed", ECPGt_EOIT, ECPGt_EORT);
+#line 34 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 34 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 34 "show.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show transaction isolation level", ECPGt_EOIT,
+ ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 35 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 35 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 35 "show.pgc"
+
+ printf("Transaction isolation level: %s\n", var);
+
+ { ECPGdisconnect(__LINE__, "ALL");
+#line 38 "show.pgc"
+
+if (sqlca.sqlwarn[0] == 'W') sqlprint();
+#line 38 "show.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 38 "show.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-show.stderr b/src/interfaces/ecpg/test/expected/sql-show.stderr
new file mode 100644
index 0000000..c303a84
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-show.stderr
@@ -0,0 +1,76 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: query: set search_path to public; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 18: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 18: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 19: query: show search_path; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 19: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 19: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 19: RESULT: public offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: query: set search_path to 'public'; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 22: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 22: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: query: show search_path; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 23: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 23: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 23: RESULT: public offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: query: set standard_conforming_strings to off; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 26: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 26: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: query: show standard_conforming_strings; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 27: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 27: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 27: RESULT: off offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: query: set time zone PST8PDT; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 30: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 30: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: query: show time zone; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 31: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 31: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 31: RESULT: PST8PDT offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: query: set transaction isolation level read committed; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 34: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 34: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: query: show transaction isolation level; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 35: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 35: correctly got 1 tuples with 1 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 35: RESULT: read committed offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-show.stdout b/src/interfaces/ecpg/test/expected/sql-show.stdout
new file mode 100644
index 0000000..9319c5d
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-show.stdout
@@ -0,0 +1,5 @@
+Var: Search path: public
+Var: Search path: public
+Var: Standard conforming strings: off
+Time Zone: PST8PDT
+Transaction isolation level: read committed
diff --git a/src/interfaces/ecpg/test/expected/sql-sqlda.c b/src/interfaces/ecpg/test/expected/sql-sqlda.c
new file mode 100644
index 0000000..d474bd3
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-sqlda.c
@@ -0,0 +1,545 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "sqlda.pgc"
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+#include "ecpg_config.h"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 6 "sqlda.pgc"
+
+
+#line 1 "sqlda.h"
+#ifndef ECPG_SQLDA_H
+#define ECPG_SQLDA_H
+
+#ifdef _ECPG_INFORMIX_H
+
+#include "sqlda-compat.h"
+typedef struct sqlvar_compat sqlvar_t;
+typedef struct sqlda_compat sqlda_t;
+
+#else
+
+#include "sqlda-native.h"
+typedef struct sqlvar_struct sqlvar_t;
+typedef struct sqlda_struct sqlda_t;
+
+#endif
+
+#endif /* ECPG_SQLDA_H */
+
+#line 7 "sqlda.pgc"
+
+
+#line 1 "pgtypes_numeric.h"
+#ifndef PGTYPES_NUMERIC
+#define PGTYPES_NUMERIC
+
+#include <pgtypes.h>
+
+#define NUMERIC_POS 0x0000
+#define NUMERIC_NEG 0x4000
+#define NUMERIC_NAN 0xC000
+#define NUMERIC_NULL 0xF000
+#define NUMERIC_MAX_PRECISION 1000
+#define NUMERIC_MAX_DISPLAY_SCALE NUMERIC_MAX_PRECISION
+#define NUMERIC_MIN_DISPLAY_SCALE 0
+#define NUMERIC_MIN_SIG_DIGITS 16
+
+#define DECSIZE 30
+
+typedef unsigned char NumericDigit;
+typedef struct
+{
+ int ndigits; /* number of digits in digits[] - can be 0! */
+ int weight; /* weight of first digit */
+ int rscale; /* result scale */
+ int dscale; /* display scale */
+ int sign; /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
+ NumericDigit *buf; /* start of alloc'd space for digits[] */
+ NumericDigit *digits; /* decimal digits */
+} numeric;
+
+typedef struct
+{
+ int ndigits; /* number of digits in digits[] - can be 0! */
+ int weight; /* weight of first digit */
+ int rscale; /* result scale */
+ int dscale; /* display scale */
+ int sign; /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
+ NumericDigit digits[DECSIZE]; /* decimal digits */
+} decimal;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+numeric *PGTYPESnumeric_new(void);
+decimal *PGTYPESdecimal_new(void);
+void PGTYPESnumeric_free(numeric *);
+void PGTYPESdecimal_free(decimal *);
+numeric *PGTYPESnumeric_from_asc(char *, char **);
+char *PGTYPESnumeric_to_asc(numeric *, int);
+int PGTYPESnumeric_add(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_sub(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_mul(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_div(numeric *, numeric *, numeric *);
+int PGTYPESnumeric_cmp(numeric *, numeric *);
+int PGTYPESnumeric_from_int(signed int, numeric *);
+int PGTYPESnumeric_from_long(signed long int, numeric *);
+int PGTYPESnumeric_copy(numeric *, numeric *);
+int PGTYPESnumeric_from_double(double, numeric *);
+int PGTYPESnumeric_to_double(numeric *, double *);
+int PGTYPESnumeric_to_int(numeric *, int *);
+int PGTYPESnumeric_to_long(numeric *, long *);
+int PGTYPESnumeric_to_decimal(numeric *, decimal *);
+int PGTYPESnumeric_from_decimal(decimal *, numeric *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* PGTYPES_NUMERIC */
+
+#line 8 "sqlda.pgc"
+
+
+/* exec sql whenever sqlerror stop ; */
+#line 10 "sqlda.pgc"
+
+
+/* These shouldn't be under DECLARE SECTION */
+sqlda_t *inp_sqlda, *outp_sqlda, *outp_sqlda1;
+
+static void
+dump_sqlda(sqlda_t *sqlda)
+{
+ int i;
+
+ if (sqlda == NULL)
+ {
+ printf("dump_sqlda called with NULL sqlda\n");
+ return;
+ }
+
+ for (i = 0; i < sqlda->sqld; i++)
+ {
+ if (sqlda->sqlvar[i].sqlind && *(sqlda->sqlvar[i].sqlind) == -1)
+ printf("name sqlda descriptor: '%s' value NULL'\n", sqlda->sqlvar[i].sqlname.data);
+ else
+ switch (sqlda->sqlvar[i].sqltype)
+ {
+ case ECPGt_char:
+ printf("name sqlda descriptor: '%s' value '%s'\n", sqlda->sqlvar[i].sqlname.data, sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_int:
+ printf("name sqlda descriptor: '%s' value %d\n", sqlda->sqlvar[i].sqlname.data, *(int *)sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_long:
+ printf("name sqlda descriptor: '%s' value %ld\n", sqlda->sqlvar[i].sqlname.data, *(long int *)sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_long_long:
+ printf(
+#ifdef _WIN32
+ "name sqlda descriptor: '%s' value %I64d\n",
+#else
+ "name sqlda descriptor: '%s' value %lld\n",
+#endif
+ sqlda->sqlvar[i].sqlname.data, *(long long int *)sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_double:
+ printf("name sqlda descriptor: '%s' value %f\n", sqlda->sqlvar[i].sqlname.data, *(double *)sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_numeric:
+ {
+ char *val;
+
+ val = PGTYPESnumeric_to_asc((numeric*)sqlda->sqlvar[i].sqldata, -1);
+ printf("name sqlda descriptor: '%s' value NUMERIC '%s'\n", sqlda->sqlvar[i].sqlname.data, val);
+ PGTYPESchar_free(val);
+ break;
+ }
+ }
+ }
+}
+
+int
+main (void)
+{
+/* exec sql begin declare section */
+
+
+
+
+
+#line 71 "sqlda.pgc"
+ char * stmt1 = "SELECT * FROM t1" ;
+
+#line 72 "sqlda.pgc"
+ char * stmt2 = "SELECT * FROM t1 WHERE id = ?" ;
+
+#line 73 "sqlda.pgc"
+ int rec ;
+
+#line 74 "sqlda.pgc"
+ int id ;
+/* exec sql end declare section */
+#line 75 "sqlda.pgc"
+
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "regress1", 0);
+#line 82 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 82 "sqlda.pgc"
+
+
+ strcpy(msg, "set");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
+#line 85 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 85 "sqlda.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table t1 ( id integer , t text , d1 numeric , d2 float8 , c char ( 10 ) , big bigint )", ECPGt_EOIT, ECPGt_EORT);
+#line 95 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 95 "sqlda.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' , 1111111111111111111 ) , ( 2 , null , null , null , null , null ) , ( 3 , 'c' , 0.0 , 3 , 'c' , 3333333333333333333 ) , ( 4 , 'd' , 'NaN' , 4 , 'd' , 4444444444444444444 ) , ( 5 , 'e' , 0.001234 , 5 , 'e' , 5555555555555555555 )", ECPGt_EOIT, ECPGt_EORT);
+#line 103 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 103 "sqlda.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 106 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 106 "sqlda.pgc"
+
+
+ /* SQLDA test for getting all records from a table */
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id1", stmt1);
+#line 113 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 113 "sqlda.pgc"
+
+
+ strcpy(msg, "declare");
+ /* declare mycur1 cursor for $1 */
+#line 116 "sqlda.pgc"
+
+
+ strcpy(msg, "open");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare mycur1 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id1", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 119 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 119 "sqlda.pgc"
+
+
+ /* exec sql whenever not found break ; */
+#line 121 "sqlda.pgc"
+
+
+ rec = 0;
+ while (1)
+ {
+ strcpy(msg, "fetch");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch 1 from mycur1", ECPGt_EOIT,
+ ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 127 "sqlda.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
+#line 127 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 127 "sqlda.pgc"
+
+
+ printf("FETCH RECORD %d\n", ++rec);
+ dump_sqlda(outp_sqlda);
+ }
+
+ /* exec sql whenever not found continue ; */
+#line 133 "sqlda.pgc"
+
+
+ strcpy(msg, "close");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close mycur1", ECPGt_EOIT, ECPGt_EORT);
+#line 136 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 136 "sqlda.pgc"
+
+
+ strcpy(msg, "deallocate");
+ { ECPGdeallocate(__LINE__, 0, NULL, "st_id1");
+#line 139 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 139 "sqlda.pgc"
+
+
+ free(outp_sqlda);
+
+ /* SQLDA test for getting ALL records into the sqlda list */
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id2", stmt1);
+#line 148 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 148 "sqlda.pgc"
+
+
+ strcpy(msg, "declare");
+ /* declare mycur2 cursor for $1 */
+#line 151 "sqlda.pgc"
+
+
+ strcpy(msg, "open");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare mycur2 cursor for $1",
+ ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id2", __LINE__)),(long)1,(long)1,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 154 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 154 "sqlda.pgc"
+
+
+ strcpy(msg, "fetch");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch all from mycur2", ECPGt_EOIT,
+ ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 157 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 157 "sqlda.pgc"
+
+
+ outp_sqlda1 = outp_sqlda;
+ rec = 0;
+ while (outp_sqlda1)
+ {
+ sqlda_t *ptr;
+ printf("FETCH RECORD %d\n", ++rec);
+ dump_sqlda(outp_sqlda1);
+
+ ptr = outp_sqlda1;
+ outp_sqlda1 = outp_sqlda1->desc_next;
+ free(ptr);
+ }
+
+ strcpy(msg, "close");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close mycur2", ECPGt_EOIT, ECPGt_EORT);
+#line 173 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 173 "sqlda.pgc"
+
+
+ strcpy(msg, "deallocate");
+ { ECPGdeallocate(__LINE__, 0, NULL, "st_id2");
+#line 176 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 176 "sqlda.pgc"
+
+
+ /* SQLDA test for getting one record using an input descriptor */
+
+ /*
+ * Input sqlda has to be built manually
+ * sqlda_t contains 1 sqlvar_t structure already.
+ */
+ inp_sqlda = (sqlda_t *)malloc(sizeof(sqlda_t));
+ memset(inp_sqlda, 0, sizeof(sqlda_t));
+ inp_sqlda->sqln = 1;
+
+ inp_sqlda->sqlvar[0].sqltype = ECPGt_int;
+ inp_sqlda->sqlvar[0].sqldata = (char *)&id;
+
+ printf("EXECUTE RECORD 4\n");
+
+ id = 4;
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, NULL, 0, "st_id3", stmt2);
+#line 198 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 198 "sqlda.pgc"
+
+
+ strcpy(msg, "execute");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "st_id3",
+ ECPGt_sqlda, &inp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 201 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 201 "sqlda.pgc"
+
+
+ dump_sqlda(outp_sqlda);
+
+ strcpy(msg, "deallocate");
+ { ECPGdeallocate(__LINE__, 0, NULL, "st_id3");
+#line 206 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 206 "sqlda.pgc"
+
+
+ free(inp_sqlda);
+ free(outp_sqlda);
+
+ /* SQLDA test for getting one record using an input descriptor
+ * on a named connection
+ */
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "con2", 0);
+#line 215 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 215 "sqlda.pgc"
+
+
+ /*
+ * Input sqlda has to be built manually
+ * sqlda_t contains 1 sqlvar_t structure already.
+ */
+ inp_sqlda = (sqlda_t *)malloc(sizeof(sqlda_t));
+ memset(inp_sqlda, 0, sizeof(sqlda_t));
+ inp_sqlda->sqln = 1;
+
+ inp_sqlda->sqlvar[0].sqltype = ECPGt_int;
+ inp_sqlda->sqlvar[0].sqldata = (char *)&id;
+
+ printf("EXECUTE RECORD 4\n");
+
+ id = 4;
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ { ECPGprepare(__LINE__, "con2", 0, "st_id4", stmt2);
+#line 235 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 235 "sqlda.pgc"
+
+
+ strcpy(msg, "execute");
+ { ECPGdo(__LINE__, 0, 1, "con2", 0, ECPGst_execute, "st_id4",
+ ECPGt_sqlda, &inp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
+ ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L,
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 238 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 238 "sqlda.pgc"
+
+
+ dump_sqlda(outp_sqlda);
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, "con2", "commit");
+#line 243 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 243 "sqlda.pgc"
+
+
+ strcpy(msg, "deallocate");
+ { ECPGdeallocate(__LINE__, 0, NULL, "st_id4");
+#line 246 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 246 "sqlda.pgc"
+
+
+ free(inp_sqlda);
+ free(outp_sqlda);
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "con2");
+#line 252 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 252 "sqlda.pgc"
+
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table t1", ECPGt_EOIT, ECPGt_EORT);
+#line 257 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 257 "sqlda.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 260 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 260 "sqlda.pgc"
+
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 263 "sqlda.pgc"
+
+if (sqlca.sqlcode < 0) exit (1);}
+#line 263 "sqlda.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-sqlda.stderr b/src/interfaces/ecpg/test/expected/sql-sqlda.stderr
new file mode 100644
index 0000000..dfe6b13
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-sqlda.stderr
@@ -0,0 +1,460 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: query: set datestyle to iso; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 85: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 85: OK: SET
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 88: query: create table t1 ( id integer , t text , d1 numeric , d2 float8 , c char ( 10 ) , big bigint ); with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 88: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 88: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 98: query: insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' , 1111111111111111111 ) , ( 2 , null , null , null , null , null ) , ( 3 , 'c' , 0.0 , 3 , 'c' , 3333333333333333333 ) , ( 4 , 'd' , 'NaN' , 4 , 'd' , 4444444444444444444 ) , ( 5 , 'e' , 0.001234 , 5 , 'e' , 5555555555555555555 ); with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 98: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 98: OK: INSERT 0 5
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 106: action "commit"; connection "regress1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 113: name st_id1; query: "SELECT * FROM t1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 119: query: declare mycur1 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 119: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 119: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 1111111111111111111 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 3333333333333333333 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 4444444444444444444 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: e offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: e offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 127: RESULT: 5555555555555555555 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 127: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 127: correctly got 0 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: raising sqlcode 100 on line 127: no data found on line 127
+[NO_PID]: sqlca: code: 100, state: 02000
+[NO_PID]: ecpg_execute on line 136: query: close mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 136: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 136: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 139: name st_id1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 148: name st_id2; query: "SELECT * FROM t1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 154: query: declare mycur2 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 154: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 154: OK: DECLARE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 157: query: fetch all from mycur2; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 157: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: correctly got 5 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: e offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 5 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: e offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 5555555555555555555 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 4444444444444444444 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 3 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: c offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 3333333333333333333 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 2 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 1 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 2 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 3 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 4 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 5 IS NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 1 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: a offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 157: RESULT: 1111111111111111111 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 173: query: close mycur2; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 173: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 173: OK: CLOSE CURSOR
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 176: name st_id2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 198: name st_id3; query: "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 201: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 201: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 201: parameter 1 = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 201: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 201 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 201: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 201: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 201: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 201: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 201: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 201: RESULT: 4444444444444444444 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 201: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 206: name st_id3
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: prepare_common on line 235: name st_id4; query: "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 238: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection con2
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 238: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_free_params on line 238: parameter 1 = 4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 238: correctly got 1 tuples with 6 fields
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_build_native_sqlda on line 238 sqld = 6
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 238: new sqlda was built
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 0 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 238: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 1 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 238: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 2 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 3 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 238: RESULT: 4 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 4 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 238: RESULT: d offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 5 IS NOT NULL
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_get_data on line 238: RESULT: 4444444444444444444 offset: -1; array: no
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 238: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 243: action "commit"; connection "con2"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: deallocate_one on line 246: name st_id4
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection con2 closed
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 257: query: drop table t1; with 0 parameter(s) on connection regress1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 257: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 257: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 260: action "commit"; connection "regress1"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection regress1 closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-sqlda.stdout b/src/interfaces/ecpg/test/expected/sql-sqlda.stdout
new file mode 100644
index 0000000..e3b1a64
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-sqlda.stdout
@@ -0,0 +1,84 @@
+FETCH RECORD 1
+name sqlda descriptor: 'id' value 1
+name sqlda descriptor: 't' value 'a'
+name sqlda descriptor: 'd1' value NUMERIC '1.0'
+name sqlda descriptor: 'd2' value 1.000000
+name sqlda descriptor: 'c' value 'a '
+name sqlda descriptor: 'big' value 1111111111111111111
+FETCH RECORD 2
+name sqlda descriptor: 'id' value 2
+name sqlda descriptor: 't' value NULL'
+name sqlda descriptor: 'd1' value NULL'
+name sqlda descriptor: 'd2' value NULL'
+name sqlda descriptor: 'c' value NULL'
+name sqlda descriptor: 'big' value NULL'
+FETCH RECORD 3
+name sqlda descriptor: 'id' value 3
+name sqlda descriptor: 't' value 'c'
+name sqlda descriptor: 'd1' value NUMERIC '0.0'
+name sqlda descriptor: 'd2' value 3.000000
+name sqlda descriptor: 'c' value 'c '
+name sqlda descriptor: 'big' value 3333333333333333333
+FETCH RECORD 4
+name sqlda descriptor: 'id' value 4
+name sqlda descriptor: 't' value 'd'
+name sqlda descriptor: 'd1' value NUMERIC 'NaN'
+name sqlda descriptor: 'd2' value 4.000000
+name sqlda descriptor: 'c' value 'd '
+name sqlda descriptor: 'big' value 4444444444444444444
+FETCH RECORD 5
+name sqlda descriptor: 'id' value 5
+name sqlda descriptor: 't' value 'e'
+name sqlda descriptor: 'd1' value NUMERIC '0.001234'
+name sqlda descriptor: 'd2' value 5.000000
+name sqlda descriptor: 'c' value 'e '
+name sqlda descriptor: 'big' value 5555555555555555555
+FETCH RECORD 1
+name sqlda descriptor: 'id' value 1
+name sqlda descriptor: 't' value 'a'
+name sqlda descriptor: 'd1' value NUMERIC '1.0'
+name sqlda descriptor: 'd2' value 1.000000
+name sqlda descriptor: 'c' value 'a '
+name sqlda descriptor: 'big' value 1111111111111111111
+FETCH RECORD 2
+name sqlda descriptor: 'id' value 2
+name sqlda descriptor: 't' value NULL'
+name sqlda descriptor: 'd1' value NULL'
+name sqlda descriptor: 'd2' value NULL'
+name sqlda descriptor: 'c' value NULL'
+name sqlda descriptor: 'big' value NULL'
+FETCH RECORD 3
+name sqlda descriptor: 'id' value 3
+name sqlda descriptor: 't' value 'c'
+name sqlda descriptor: 'd1' value NUMERIC '0.0'
+name sqlda descriptor: 'd2' value 3.000000
+name sqlda descriptor: 'c' value 'c '
+name sqlda descriptor: 'big' value 3333333333333333333
+FETCH RECORD 4
+name sqlda descriptor: 'id' value 4
+name sqlda descriptor: 't' value 'd'
+name sqlda descriptor: 'd1' value NUMERIC 'NaN'
+name sqlda descriptor: 'd2' value 4.000000
+name sqlda descriptor: 'c' value 'd '
+name sqlda descriptor: 'big' value 4444444444444444444
+FETCH RECORD 5
+name sqlda descriptor: 'id' value 5
+name sqlda descriptor: 't' value 'e'
+name sqlda descriptor: 'd1' value NUMERIC '0.001234'
+name sqlda descriptor: 'd2' value 5.000000
+name sqlda descriptor: 'c' value 'e '
+name sqlda descriptor: 'big' value 5555555555555555555
+EXECUTE RECORD 4
+name sqlda descriptor: 'id' value 4
+name sqlda descriptor: 't' value 'd'
+name sqlda descriptor: 'd1' value NUMERIC 'NaN'
+name sqlda descriptor: 'd2' value 4.000000
+name sqlda descriptor: 'c' value 'd '
+name sqlda descriptor: 'big' value 4444444444444444444
+EXECUTE RECORD 4
+name sqlda descriptor: 'id' value 4
+name sqlda descriptor: 't' value 'd'
+name sqlda descriptor: 'd1' value NUMERIC 'NaN'
+name sqlda descriptor: 'd2' value 4.000000
+name sqlda descriptor: 'c' value 'd '
+name sqlda descriptor: 'big' value 4444444444444444444
diff --git a/src/interfaces/ecpg/test/expected/sql-twophase.c b/src/interfaces/ecpg/test/expected/sql-twophase.c
new file mode 100644
index 0000000..20b54d3
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-twophase.c
@@ -0,0 +1,114 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "twophase.pgc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 5 "twophase.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 7 "twophase.pgc"
+
+
+int main(void)
+{
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 16 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 16 "twophase.pgc"
+
+ { ECPGsetcommit(__LINE__, "off", NULL);
+#line 17 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 17 "twophase.pgc"
+
+
+ strcpy(msg, "create");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table t1 ( c int )", ECPGt_EOIT, ECPGt_EORT);
+#line 20 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 20 "twophase.pgc"
+
+
+ strcpy(msg, "commit");
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 23 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 23 "twophase.pgc"
+
+
+ strcpy(msg, "begin");
+ { ECPGtrans(__LINE__, NULL, "begin");
+#line 26 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 26 "twophase.pgc"
+
+
+ strcpy(msg, "insert");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t1 values ( 1 )", ECPGt_EOIT, ECPGt_EORT);
+#line 29 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 29 "twophase.pgc"
+
+
+ strcpy(msg, "prepare transaction");
+ { ECPGtrans(__LINE__, NULL, "prepare transaction 'gxid'");
+#line 32 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 32 "twophase.pgc"
+
+
+ strcpy(msg, "commit prepared");
+ { ECPGtrans(__LINE__, NULL, "commit prepared 'gxid'");
+#line 35 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 35 "twophase.pgc"
+
+
+ strcpy(msg, "drop");
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table t1", ECPGt_EOIT, ECPGt_EORT);
+#line 38 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 38 "twophase.pgc"
+
+
+ strcpy(msg, "disconnect");
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 41 "twophase.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 41 "twophase.pgc"
+
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/sql-twophase.stderr b/src/interfaces/ecpg/test/expected/sql-twophase.stderr
new file mode 100644
index 0000000..18415ff
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-twophase.stderr
@@ -0,0 +1,34 @@
+[NO_PID]: ECPGdebug: set to 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGsetcommit on line 17: action "off"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: query: create table t1 ( c int ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 20: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 20: OK: CREATE TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 23: action "commit"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 26: action "begin"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: query: insert into t1 values ( 1 ); with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 29: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 29: OK: INSERT 0 1
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 32: action "prepare transaction 'gxid'"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ECPGtrans on line 35: action "commit prepared 'gxid'"; connection "ecpg1_regression"
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: query: drop table t1; with 0 parameter(s) on connection ecpg1_regression
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_execute on line 38: using PQexec
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_process_output on line 38: OK: DROP TABLE
+[NO_PID]: sqlca: code: 0, state: 00000
+[NO_PID]: ecpg_finish: connection ecpg1_regression closed
+[NO_PID]: sqlca: code: 0, state: 00000
diff --git a/src/interfaces/ecpg/test/expected/sql-twophase.stdout b/src/interfaces/ecpg/test/expected/sql-twophase.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/sql-twophase.stdout
diff --git a/src/interfaces/ecpg/test/expected/thread-alloc.c b/src/interfaces/ecpg/test/expected/thread-alloc.c
new file mode 100644
index 0000000..37ef44e
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-alloc.c
@@ -0,0 +1,218 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "alloc.pgc"
+#include <stdint.h>
+#include <stdlib.h>
+#include "ecpg_config.h"
+
+#ifndef ENABLE_THREAD_SAFETY
+int
+main(void)
+{
+ printf("No threading enabled.\n");
+ return 0;
+}
+#else
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <process.h>
+#include <locale.h>
+#else
+#include <pthread.h>
+#endif
+#include <stdio.h>
+
+#define THREADS 16
+#define REPEATS 50
+
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 26 "alloc.pgc"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 27 "alloc.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 29 "alloc.pgc"
+
+/* exec sql whenever not found sqlprint ; */
+#line 30 "alloc.pgc"
+
+
+#ifdef WIN32
+static unsigned __stdcall fn(void* arg)
+#else
+static void* fn(void* arg)
+#endif
+{
+ int i;
+
+ /* exec sql begin declare section */
+
+
+
+
+#line 41 "alloc.pgc"
+ int value ;
+
+#line 42 "alloc.pgc"
+ char name [ 100 ] ;
+
+#line 43 "alloc.pgc"
+ char ** r = NULL ;
+/* exec sql end declare section */
+#line 44 "alloc.pgc"
+
+
+ value = (intptr_t) arg;
+ sprintf(name, "Connection: %d", value);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , name, 0);
+#line 49 "alloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 49 "alloc.pgc"
+
+ { ECPGsetcommit(__LINE__, "on", NULL);
+#line 50 "alloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 50 "alloc.pgc"
+
+ for (i = 1; i <= REPEATS; ++i)
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select relname from pg_class where relname = 'pg_class'", ECPGt_EOIT,
+ ECPGt_char,&(r),(long)0,(long)0,(1)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
+#line 53 "alloc.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 53 "alloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 53 "alloc.pgc"
+
+ free(r);
+ r = NULL;
+ }
+ { ECPGdisconnect(__LINE__, name);
+#line 57 "alloc.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 57 "alloc.pgc"
+
+
+ return 0;
+}
+
+int main ()
+{
+ intptr_t i;
+#ifdef WIN32
+ HANDLE threads[THREADS];
+#else
+ pthread_t threads[THREADS];
+#endif
+
+#ifdef WIN32
+ for (i = 0; i < THREADS; ++i)
+ {
+ unsigned id;
+ threads[i] = (HANDLE)_beginthreadex(NULL, 0, fn, (void*)i, 0, &id);
+ }
+
+ WaitForMultipleObjects(THREADS, threads, TRUE, INFINITE);
+ for (i = 0; i < THREADS; ++i)
+ CloseHandle(threads[i]);
+#else
+ for (i = 0; i < THREADS; ++i)
+ pthread_create(&threads[i], NULL, fn, (void *) i);
+ for (i = 0; i < THREADS; ++i)
+ pthread_join(threads[i], NULL);
+#endif
+
+ return 0;
+}
+#endif
diff --git a/src/interfaces/ecpg/test/expected/thread-alloc.stderr b/src/interfaces/ecpg/test/expected/thread-alloc.stderr
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-alloc.stderr
diff --git a/src/interfaces/ecpg/test/expected/thread-alloc.stdout b/src/interfaces/ecpg/test/expected/thread-alloc.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-alloc.stdout
diff --git a/src/interfaces/ecpg/test/expected/thread-alloc_2.stdout b/src/interfaces/ecpg/test/expected/thread-alloc_2.stdout
new file mode 100644
index 0000000..75fe16b
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-alloc_2.stdout
@@ -0,0 +1 @@
+No threading enabled.
diff --git a/src/interfaces/ecpg/test/expected/thread-descriptor.c b/src/interfaces/ecpg/test/expected/thread-descriptor.c
new file mode 100644
index 0000000..f56cc25
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-descriptor.c
@@ -0,0 +1,161 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "descriptor.pgc"
+#ifdef ENABLE_THREAD_SAFETY
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <process.h>
+#include <locale.h>
+#else
+#include <pthread.h>
+#endif
+#endif
+#include <stdio.h>
+
+#define THREADS 16
+#define REPEATS 50000
+
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 16 "descriptor.pgc"
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 17 "descriptor.pgc"
+
+/* exec sql whenever not found sqlprint ; */
+#line 18 "descriptor.pgc"
+
+
+#if defined(ENABLE_THREAD_SAFETY) && defined(WIN32)
+static unsigned __stdcall fn(void* arg)
+#else
+static void* fn(void* arg)
+#endif
+{
+ int i;
+
+ for (i = 1; i <= REPEATS; ++i)
+ {
+ ECPGallocate_desc(__LINE__, "mydesc");
+#line 30 "descriptor.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 30 "descriptor.pgc"
+
+ ECPGdeallocate_desc(__LINE__, "mydesc");
+#line 31 "descriptor.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();
+#line 31 "descriptor.pgc"
+
+ }
+
+ return 0;
+}
+
+int main ()
+{
+#ifdef ENABLE_THREAD_SAFETY
+ int i;
+#ifdef WIN32
+ HANDLE threads[THREADS];
+#else
+ pthread_t threads[THREADS];
+#endif
+
+#ifdef WIN32
+ for (i = 0; i < THREADS; ++i)
+ {
+ unsigned id;
+ threads[i] = (HANDLE)_beginthreadex(NULL, 0, fn, NULL, 0, &id);
+ }
+
+ WaitForMultipleObjects(THREADS, threads, TRUE, INFINITE);
+ for (i = 0; i < THREADS; ++i)
+ CloseHandle(threads[i]);
+#else
+ for (i = 0; i < THREADS; ++i)
+ pthread_create(&threads[i], NULL, fn, NULL);
+ for (i = 0; i < THREADS; ++i)
+ pthread_join(threads[i], NULL);
+#endif
+#else
+ fn(NULL);
+#endif
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/expected/thread-descriptor.stderr b/src/interfaces/ecpg/test/expected/thread-descriptor.stderr
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-descriptor.stderr
diff --git a/src/interfaces/ecpg/test/expected/thread-descriptor.stdout b/src/interfaces/ecpg/test/expected/thread-descriptor.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-descriptor.stdout
diff --git a/src/interfaces/ecpg/test/expected/thread-prep.c b/src/interfaces/ecpg/test/expected/thread-prep.c
new file mode 100644
index 0000000..7cdf250
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-prep.c
@@ -0,0 +1,259 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "prep.pgc"
+#include <stdint.h>
+#include <stdlib.h>
+#include "ecpg_config.h"
+
+#ifndef ENABLE_THREAD_SAFETY
+int
+main(void)
+{
+ printf("No threading enabled.\n");
+ return 0;
+}
+#else
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <process.h>
+#include <locale.h>
+#else
+#include <pthread.h>
+#endif
+#include <stdio.h>
+
+#define THREADS 16
+#define REPEATS 50
+
+
+#line 1 "sqlca.h"
+#ifndef POSTGRES_SQLCA_H
+#define POSTGRES_SQLCA_H
+
+#ifndef PGDLLIMPORT
+#if defined(WIN32) || defined(__CYGWIN__)
+#define PGDLLIMPORT __declspec (dllimport)
+#else
+#define PGDLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* PGDLLIMPORT */
+
+#define SQLERRMC_LEN 150
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sqlca_t
+{
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
+ struct
+ {
+ int sqlerrml;
+ char sqlerrmc[SQLERRMC_LEN];
+ } sqlerrm;
+ char sqlerrp[8];
+ long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: OID of processed tuple if applicable */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or */
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+
+ /*
+ * 2: if 'W' a (hopefully) non-fatal notice occurred
+ */ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlstate[5];
+};
+
+struct sqlca_t *ECPGget_sqlca(void);
+
+#ifndef POSTGRES_ECPG_INTERNAL
+#define sqlca (*ECPGget_sqlca())
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#line 26 "prep.pgc"
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 27 "prep.pgc"
+
+
+/* exec sql whenever sqlerror sqlprint ; */
+#line 29 "prep.pgc"
+
+/* exec sql whenever not found sqlprint ; */
+#line 30 "prep.pgc"
+
+
+#ifdef WIN32
+static unsigned __stdcall fn(void* arg)
+#else
+static void* fn(void* arg)
+#endif
+{
+ int i;
+
+ /* exec sql begin declare section */
+
+
+
+
+#line 41 "prep.pgc"
+ int value ;
+
+#line 42 "prep.pgc"
+ char name [ 100 ] ;
+
+#line 43 "prep.pgc"
+ char query [ 256 ] = "INSERT INTO T VALUES ( ? )" ;
+/* exec sql end declare section */
+#line 44 "prep.pgc"
+
+
+ value = (intptr_t) arg;
+ sprintf(name, "Connection: %d", value);
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , name, 0);
+#line 49 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 49 "prep.pgc"
+
+ { ECPGsetcommit(__LINE__, "on", NULL);
+#line 50 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 50 "prep.pgc"
+
+ for (i = 1; i <= REPEATS; ++i)
+ {
+ { ECPGprepare(__LINE__, NULL, 0, "i", query);
+#line 53 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 53 "prep.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "i",
+ ECPGt_int,&(value),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 54 "prep.pgc"
+
+if (sqlca.sqlcode == ECPG_NOT_FOUND) sqlprint();
+#line 54 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 54 "prep.pgc"
+
+ }
+ { ECPGdeallocate(__LINE__, 0, NULL, "i");
+#line 56 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 56 "prep.pgc"
+
+ { ECPGdisconnect(__LINE__, name);
+#line 57 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 57 "prep.pgc"
+
+
+ return 0;
+}
+
+int main ()
+{
+ intptr_t i;
+#ifdef WIN32
+ HANDLE threads[THREADS];
+#else
+ pthread_t threads[THREADS];
+#endif
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0);
+#line 71 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 71 "prep.pgc"
+
+ { ECPGsetcommit(__LINE__, "on", NULL);
+#line 72 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 72 "prep.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table if exists T", ECPGt_EOIT, ECPGt_EORT);
+#line 73 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 73 "prep.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table T ( i int )", ECPGt_EOIT, ECPGt_EORT);
+#line 74 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 74 "prep.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");
+#line 75 "prep.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 75 "prep.pgc"
+
+
+#ifdef WIN32
+ for (i = 0; i < THREADS; ++i)
+ {
+ unsigned id;
+ threads[i] = (HANDLE)_beginthreadex(NULL, 0, fn, (void*)i, 0, &id);
+ }
+
+ WaitForMultipleObjects(THREADS, threads, TRUE, INFINITE);
+ for (i = 0; i < THREADS; ++i)
+ CloseHandle(threads[i]);
+#else
+ for (i = 0; i < THREADS; ++i)
+ pthread_create(&threads[i], NULL, fn, (void *) i);
+ for (i = 0; i < THREADS; ++i)
+ pthread_join(threads[i], NULL);
+#endif
+
+ return 0;
+}
+#endif
diff --git a/src/interfaces/ecpg/test/expected/thread-prep.stderr b/src/interfaces/ecpg/test/expected/thread-prep.stderr
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-prep.stderr
diff --git a/src/interfaces/ecpg/test/expected/thread-prep.stdout b/src/interfaces/ecpg/test/expected/thread-prep.stdout
new file mode 100644
index 0000000..75fe16b
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-prep.stdout
@@ -0,0 +1 @@
+No threading enabled.
diff --git a/src/interfaces/ecpg/test/expected/thread-prep_2.stdout b/src/interfaces/ecpg/test/expected/thread-prep_2.stdout
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-prep_2.stdout
diff --git a/src/interfaces/ecpg/test/expected/thread-thread.c b/src/interfaces/ecpg/test/expected/thread-thread.c
new file mode 100644
index 0000000..0e75c47
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-thread.c
@@ -0,0 +1,216 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "thread.pgc"
+/*
+ * Thread test program
+ * by Philip Yarra & Lee Kindness.
+ */
+#include <stdint.h>
+#include <stdlib.h>
+#include "ecpg_config.h"
+
+#ifndef ENABLE_THREAD_SAFETY
+int
+main(void)
+{
+ printf("No threading enabled.\n");
+ return 0;
+}
+#else
+#ifndef WIN32
+#include <pthread.h>
+#else
+#include <windows.h>
+#include <locale.h>
+#endif
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 24 "thread.pgc"
+
+
+void *test_thread(void *arg);
+
+int nthreads = 10;
+int iterations = 20;
+
+int main()
+{
+#ifndef WIN32
+ pthread_t *threads;
+#else
+ HANDLE *threads;
+#endif
+ intptr_t n;
+ /* exec sql begin declare section */
+
+
+#line 40 "thread.pgc"
+ int l_rows ;
+/* exec sql end declare section */
+#line 41 "thread.pgc"
+
+
+ /* Do not switch on debug output for regression tests. The threads get executed in
+ * more or less random order */
+ /* ECPGdebug(1, stderr); */
+
+ /* setup test_thread table */
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 48 "thread.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test_thread", ECPGt_EOIT, ECPGt_EORT);}
+#line 49 "thread.pgc"
+ /* DROP might fail */
+ { ECPGtrans(__LINE__, NULL, "commit");}
+#line 50 "thread.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test_thread ( tstamp timestamp not null default cast ( timeofday ( ) as timestamp ) , thread text not null , iteration integer not null , primary key ( thread , iteration ) )", ECPGt_EOIT, ECPGt_EORT);}
+#line 55 "thread.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");}
+#line 56 "thread.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 57 "thread.pgc"
+
+
+ /* create, and start, threads */
+ threads = calloc(nthreads, sizeof(threads[0]));
+ if( threads == NULL )
+ {
+ fprintf(stderr, "Cannot alloc memory\n");
+ return 1;
+ }
+ for( n = 0; n < nthreads; n++ )
+ {
+#ifndef WIN32
+ pthread_create(&threads[n], NULL, test_thread, (void *) (n + 1));
+#else
+ threads[n] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) (void (*) (void)) test_thread, (void *) (n + 1), 0, NULL);
+#endif
+ }
+
+ /* wait for thread completion */
+#ifndef WIN32
+ for( n = 0; n < nthreads; n++ )
+ {
+ pthread_join(threads[n], NULL);
+ }
+#else
+ WaitForMultipleObjects(nthreads, threads, TRUE, INFINITE);
+#endif
+ free(threads);
+
+ /* and check results */
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 87 "thread.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select count ( * ) from test_thread", ECPGt_EOIT,
+ ECPGt_int,&(l_rows),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 88 "thread.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");}
+#line 89 "thread.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 90 "thread.pgc"
+
+ if( l_rows == (nthreads * iterations) )
+ printf("Success.\n");
+ else
+ printf("ERROR: Failure - expecting %d rows, got %d.\n", nthreads * iterations, l_rows);
+
+ return 0;
+}
+
+void *test_thread(void *arg)
+{
+ long threadnum = (intptr_t) arg;
+
+ /* exec sql begin declare section */
+
+
+
+#line 104 "thread.pgc"
+ int l_i ;
+
+#line 105 "thread.pgc"
+ char l_connection [ 128 ] ;
+/* exec sql end declare section */
+#line 106 "thread.pgc"
+
+
+ /* build up connection name, and connect to database */
+#ifndef _MSC_VER
+ snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
+#else
+ _snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
+#endif
+ /* exec sql whenever sqlerror sqlprint ; */
+#line 114 "thread.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , l_connection, 0);
+#line 115 "thread.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 115 "thread.pgc"
+
+ if( sqlca.sqlcode != 0 )
+ {
+ printf("%s: ERROR: cannot connect to database!\n", l_connection);
+ return NULL;
+ }
+ { ECPGtrans(__LINE__, l_connection, "begin");
+#line 121 "thread.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 121 "thread.pgc"
+
+
+ /* insert into test_thread table */
+ for( l_i = 1; l_i <= iterations; l_i++ )
+ {
+ { ECPGdo(__LINE__, 0, 1, l_connection, 0, ECPGst_normal, "insert into test_thread ( thread , iteration ) values ( $1 , $2 )",
+ ECPGt_char,(l_connection),(long)128,(long)1,(128)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(l_i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 126 "thread.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 126 "thread.pgc"
+
+ if( sqlca.sqlcode != 0 )
+ printf("%s: ERROR: insert failed!\n", l_connection);
+ }
+
+ /* all done */
+ { ECPGtrans(__LINE__, l_connection, "commit");
+#line 132 "thread.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 132 "thread.pgc"
+
+ { ECPGdisconnect(__LINE__, l_connection);
+#line 133 "thread.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 133 "thread.pgc"
+
+ return NULL;
+}
+#endif /* ENABLE_THREAD_SAFETY */
diff --git a/src/interfaces/ecpg/test/expected/thread-thread.stderr b/src/interfaces/ecpg/test/expected/thread-thread.stderr
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-thread.stderr
diff --git a/src/interfaces/ecpg/test/expected/thread-thread.stdout b/src/interfaces/ecpg/test/expected/thread-thread.stdout
new file mode 100644
index 0000000..75fe16b
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-thread.stdout
@@ -0,0 +1 @@
+No threading enabled.
diff --git a/src/interfaces/ecpg/test/expected/thread-thread_2.stdout b/src/interfaces/ecpg/test/expected/thread-thread_2.stdout
new file mode 100644
index 0000000..a9d787c
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-thread_2.stdout
@@ -0,0 +1 @@
+Success.
diff --git a/src/interfaces/ecpg/test/expected/thread-thread_implicit.c b/src/interfaces/ecpg/test/expected/thread-thread_implicit.c
new file mode 100644
index 0000000..0df2794
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-thread_implicit.c
@@ -0,0 +1,216 @@
+/* Processed by ecpg (regression mode) */
+/* These include files are added by the preprocessor */
+#include <ecpglib.h>
+#include <ecpgerrno.h>
+#include <sqlca.h>
+/* End of automatic include section */
+#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
+
+#line 1 "thread_implicit.pgc"
+/*
+ * Thread test program
+ * by Lee Kindness.
+ */
+#include <stdint.h>
+#include <stdlib.h>
+#include "ecpg_config.h"
+
+#ifndef ENABLE_THREAD_SAFETY
+int
+main(void)
+{
+ printf("No threading enabled.\n");
+ return 0;
+}
+#else
+#ifndef WIN32
+#include <pthread.h>
+#else
+#include <windows.h>
+#include <locale.h>
+#endif
+
+
+#line 1 "regression.h"
+
+
+
+
+
+
+#line 24 "thread_implicit.pgc"
+
+
+void *test_thread(void *arg);
+
+int nthreads = 10;
+int iterations = 20;
+
+int main()
+{
+#ifndef WIN32
+ pthread_t *threads;
+#else
+ HANDLE *threads;
+#endif
+ intptr_t n;
+ /* exec sql begin declare section */
+
+
+#line 40 "thread_implicit.pgc"
+ int l_rows ;
+/* exec sql end declare section */
+#line 41 "thread_implicit.pgc"
+
+
+ /* Do not switch on debug output for regression tests. The threads get executed in
+ * more or less random order */
+ /* ECPGdebug(1, stderr); */
+
+ /* setup test_thread table */
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 48 "thread_implicit.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test_thread", ECPGt_EOIT, ECPGt_EORT);}
+#line 49 "thread_implicit.pgc"
+ /* DROP might fail */
+ { ECPGtrans(__LINE__, NULL, "commit");}
+#line 50 "thread_implicit.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test_thread ( tstamp timestamp not null default cast ( timeofday ( ) as timestamp ) , thread text not null , iteration integer not null , primary key ( thread , iteration ) )", ECPGt_EOIT, ECPGt_EORT);}
+#line 55 "thread_implicit.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");}
+#line 56 "thread_implicit.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 57 "thread_implicit.pgc"
+
+
+ /* create, and start, threads */
+ threads = calloc(nthreads, sizeof(threads[0]));
+ if( threads == NULL )
+ {
+ fprintf(stderr, "Cannot alloc memory\n");
+ return 1;
+ }
+ for( n = 0; n < nthreads; n++ )
+ {
+#ifndef WIN32
+ pthread_create(&threads[n], NULL, test_thread, (void *) (n + 1));
+#else
+ threads[n] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) (void (*) (void)) test_thread, (void *) (n+1), 0, NULL);
+#endif
+ }
+
+ /* wait for thread completion */
+#ifndef WIN32
+ for( n = 0; n < nthreads; n++ )
+ {
+ pthread_join(threads[n], NULL);
+ }
+#else
+ WaitForMultipleObjects(nthreads, threads, TRUE, INFINITE);
+#endif
+ free(threads);
+
+ /* and check results */
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
+#line 87 "thread_implicit.pgc"
+
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select count ( * ) from test_thread", ECPGt_EOIT,
+ ECPGt_int,&(l_rows),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
+#line 88 "thread_implicit.pgc"
+
+ { ECPGtrans(__LINE__, NULL, "commit");}
+#line 89 "thread_implicit.pgc"
+
+ { ECPGdisconnect(__LINE__, "CURRENT");}
+#line 90 "thread_implicit.pgc"
+
+ if( l_rows == (nthreads * iterations) )
+ printf("Success.\n");
+ else
+ printf("ERROR: Failure - expecting %d rows, got %d.\n", nthreads * iterations, l_rows);
+
+ return 0;
+}
+
+void *test_thread(void *arg)
+{
+ long threadnum = (intptr_t) arg;
+
+ /* exec sql begin declare section */
+
+
+
+#line 104 "thread_implicit.pgc"
+ int l_i ;
+
+#line 105 "thread_implicit.pgc"
+ char l_connection [ 128 ] ;
+/* exec sql end declare section */
+#line 106 "thread_implicit.pgc"
+
+
+ /* build up connection name, and connect to database */
+#ifndef _MSC_VER
+ snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
+#else
+ _snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
+#endif
+ /* exec sql whenever sqlerror sqlprint ; */
+#line 114 "thread_implicit.pgc"
+
+ { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , l_connection, 0);
+#line 115 "thread_implicit.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 115 "thread_implicit.pgc"
+
+ if( sqlca.sqlcode != 0 )
+ {
+ printf("%s: ERROR: cannot connect to database!\n", l_connection);
+ return NULL;
+ }
+ { ECPGtrans(__LINE__, NULL, "begin");
+#line 121 "thread_implicit.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 121 "thread_implicit.pgc"
+
+
+ /* insert into test_thread table */
+ for( l_i = 1; l_i <= iterations; l_i++ )
+ {
+ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test_thread ( thread , iteration ) values ( $1 , $2 )",
+ ECPGt_char,(l_connection),(long)128,(long)1,(128)*sizeof(char),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
+ ECPGt_int,&(l_i),(long)1,(long)1,sizeof(int),
+ ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
+#line 126 "thread_implicit.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 126 "thread_implicit.pgc"
+
+ if( sqlca.sqlcode != 0 )
+ printf("%s: ERROR: insert failed!\n", l_connection);
+ }
+
+ /* all done */
+ { ECPGtrans(__LINE__, NULL, "commit");
+#line 132 "thread_implicit.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 132 "thread_implicit.pgc"
+
+ { ECPGdisconnect(__LINE__, l_connection);
+#line 133 "thread_implicit.pgc"
+
+if (sqlca.sqlcode < 0) sqlprint();}
+#line 133 "thread_implicit.pgc"
+
+ return NULL;
+}
+#endif /* ENABLE_THREAD_SAFETY */
diff --git a/src/interfaces/ecpg/test/expected/thread-thread_implicit.stderr b/src/interfaces/ecpg/test/expected/thread-thread_implicit.stderr
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-thread_implicit.stderr
diff --git a/src/interfaces/ecpg/test/expected/thread-thread_implicit.stdout b/src/interfaces/ecpg/test/expected/thread-thread_implicit.stdout
new file mode 100644
index 0000000..75fe16b
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-thread_implicit.stdout
@@ -0,0 +1 @@
+No threading enabled.
diff --git a/src/interfaces/ecpg/test/expected/thread-thread_implicit_2.stdout b/src/interfaces/ecpg/test/expected/thread-thread_implicit_2.stdout
new file mode 100644
index 0000000..a9d787c
--- /dev/null
+++ b/src/interfaces/ecpg/test/expected/thread-thread_implicit_2.stdout
@@ -0,0 +1 @@
+Success.
diff --git a/src/interfaces/ecpg/test/performance/perftest.pgc b/src/interfaces/ecpg/test/performance/perftest.pgc
new file mode 100644
index 0000000..c8a9934
--- /dev/null
+++ b/src/interfaces/ecpg/test/performance/perftest.pgc
@@ -0,0 +1,144 @@
+#include <stdio.h>
+#include <sys/time.h>
+#include <unistd.h>
+
+exec sql include sqlca;
+exec sql include ../regression;
+
+exec sql whenever sqlerror sqlprint;
+exec sql whenever not found sqlprint;
+
+static void
+print_result(long sec, long usec, char *text)
+{
+ if (usec < 0)
+ {
+ sec--;
+ usec+=1000000;
+ }
+ printf("%ld seconds and %ld microseconds for test %s\n", sec, usec, text);
+ exec sql vacuum;
+ sleep(1);
+}
+
+int
+main (void)
+{
+exec sql begin declare section;
+ long i;
+exec sql end declare section;
+ struct timeval tvs, tve;
+
+ exec sql connect to REGRESSDB1;
+
+ exec sql create table perftest1(number int4, ascii char(16));
+
+ exec sql create unique index number1 on perftest1(number);
+
+ exec sql create table perftest2(number int4, next_number int4);
+
+ exec sql create unique index number2 on perftest2(number);
+
+ exec sql commit;
+
+ exec sql set autocommit to on;
+
+ exec sql begin transaction;
+
+ gettimeofday(&tvs, NULL);
+
+ for (i = 0;i < 1407; i++)
+ {
+ exec sql begin declare section;
+ char text[16];
+ exec sql end declare section;
+
+ sprintf(text, "%ld", i);
+ exec sql insert into perftest1(number, ascii) values (:i, :text);
+ exec sql insert into perftest2(number, next_number) values (:i, :i+1);
+ }
+
+ exec sql commit;
+
+ gettimeofday(&tve, NULL);
+
+ print_result(tve.tv_sec - tvs.tv_sec, tve.tv_usec - tvs.tv_usec, "insert");
+
+ exec sql begin transaction;
+
+ gettimeofday(&tvs, NULL);
+
+ for (i = 0;i < 1407; i++)
+ {
+ exec sql begin declare section;
+ char text[16];
+ exec sql end declare section;
+
+ exec sql select ascii into :text from perftest1 where number = :i;
+ }
+
+ exec sql commit;
+
+ gettimeofday(&tve, NULL);
+
+ print_result(tve.tv_sec - tvs.tv_sec, tve.tv_usec - tvs.tv_usec, "selection&projection");
+
+ exec sql begin transaction;
+
+ gettimeofday(&tvs, NULL);
+
+ for (i = 0;i < 1407; i++)
+ {
+ exec sql begin declare section;
+ char text[16];
+ exec sql end declare section;
+
+ exec sql select perftest1.ascii into :text from perftest1, perftest2 where perftest1.number = perftest2.number and perftest2.number = :i;
+ }
+
+ exec sql commit;
+
+ gettimeofday(&tve, NULL);
+
+ print_result(tve.tv_sec - tvs.tv_sec, tve.tv_usec - tvs.tv_usec, "join");
+
+ exec sql begin transaction;
+
+ gettimeofday(&tvs, NULL);
+
+ exec sql update perftest2 set next_number = next_number + 1;
+
+ exec sql commit;
+
+ gettimeofday(&tve, NULL);
+
+ print_result(tve.tv_sec - tvs.tv_sec, tve.tv_usec - tvs.tv_usec, "update");
+
+ exec sql begin transaction;
+
+ gettimeofday(&tvs, NULL);
+
+ exec sql delete from perftest2;
+
+ exec sql commit;
+
+ gettimeofday(&tve, NULL);
+
+ print_result(tve.tv_sec - tvs.tv_sec, tve.tv_usec - tvs.tv_usec, "delete");
+
+ exec sql set autocommit = off;
+
+ exec sql drop index number2;
+
+ exec sql drop table perftest2;
+
+ exec sql drop index number1;
+
+ exec sql drop table perftest1;
+
+ exec sql commit;
+
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/pg_regress_ecpg.c b/src/interfaces/ecpg/test/pg_regress_ecpg.c
new file mode 100644
index 0000000..f920af4
--- /dev/null
+++ b/src/interfaces/ecpg/test/pg_regress_ecpg.c
@@ -0,0 +1,266 @@
+/*-------------------------------------------------------------------------
+ *
+ * pg_regress_ecpg --- regression test driver for ecpg
+ *
+ * This is a C implementation of the previous shell script for running
+ * the regression tests, and should be mostly compatible with it.
+ * Initial author of C translation: Magnus Hagander
+ *
+ * This code is released under the terms of the PostgreSQL License.
+ *
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * src/interfaces/ecpg/test/pg_regress_ecpg.c
+ *
+ *-------------------------------------------------------------------------
+ */
+
+#include "postgres_fe.h"
+
+#include "pg_regress.h"
+#include "common/string.h"
+#include "lib/stringinfo.h"
+
+
+/*
+ * Create a filtered copy of sourcefile, removing any path
+ * appearing in #line directives; for example, replace
+ * #line x "./../bla/foo.h" with #line x "foo.h".
+ * This is needed because the path part can vary depending
+ * on compiler, platform, build options, etc.
+ */
+static void
+ecpg_filter_source(const char *sourcefile, const char *outfile)
+{
+ FILE *s,
+ *t;
+ StringInfoData linebuf;
+
+ s = fopen(sourcefile, "r");
+ if (!s)
+ {
+ fprintf(stderr, "Could not open file %s for reading\n", sourcefile);
+ exit(2);
+ }
+ t = fopen(outfile, "w");
+ if (!t)
+ {
+ fprintf(stderr, "Could not open file %s for writing\n", outfile);
+ exit(2);
+ }
+
+ initStringInfo(&linebuf);
+
+ while (pg_get_line_buf(s, &linebuf))
+ {
+ /* check for "#line " in the beginning */
+ if (strstr(linebuf.data, "#line ") == linebuf.data)
+ {
+ char *p = strchr(linebuf.data, '"');
+ int plen = 1;
+
+ while (*p && (*(p + plen) == '.' || strchr(p + plen, '/') != NULL))
+ {
+ plen++;
+ }
+ /* plen is one more than the number of . and / characters */
+ if (plen > 1)
+ {
+ memmove(p + 1, p + plen, strlen(p + plen) + 1);
+ /* we don't bother to fix up linebuf.len */
+ }
+ }
+ fputs(linebuf.data, t);
+ }
+
+ pfree(linebuf.data);
+ fclose(s);
+ fclose(t);
+}
+
+/*
+ * Remove the details of connection failure error messages
+ * in a test result file, since the target host/pathname and/or port
+ * can vary. Rewrite the result file in-place.
+ *
+ * At some point it might be interesting to unify this with
+ * ecpg_filter_source, but building a general pattern matcher
+ * is no fun, nor does it seem desirable to introduce a
+ * dependency on an external one.
+ */
+static void
+ecpg_filter_stderr(const char *resultfile, const char *tmpfile)
+{
+ FILE *s,
+ *t;
+ StringInfoData linebuf;
+
+ s = fopen(resultfile, "r");
+ if (!s)
+ {
+ fprintf(stderr, "Could not open file %s for reading\n", resultfile);
+ exit(2);
+ }
+ t = fopen(tmpfile, "w");
+ if (!t)
+ {
+ fprintf(stderr, "Could not open file %s for writing\n", tmpfile);
+ exit(2);
+ }
+
+ initStringInfo(&linebuf);
+
+ while (pg_get_line_buf(s, &linebuf))
+ {
+ char *p1 = strstr(linebuf.data, "connection to server ");
+
+ if (p1)
+ {
+ char *p2 = strstr(p1, "failed: ");
+
+ if (p2)
+ {
+ memmove(p1 + 21, p2, strlen(p2) + 1);
+ /* we don't bother to fix up linebuf.len */
+ }
+ }
+ fputs(linebuf.data, t);
+ }
+
+ pfree(linebuf.data);
+ fclose(s);
+ fclose(t);
+ if (rename(tmpfile, resultfile) != 0)
+ {
+ fprintf(stderr, "Could not overwrite file %s with %s\n",
+ resultfile, tmpfile);
+ exit(2);
+ }
+}
+
+/*
+ * start an ecpg test process for specified file (including redirection),
+ * and return process ID
+ */
+
+static PID_TYPE
+ecpg_start_test(const char *testname,
+ _stringlist **resultfiles,
+ _stringlist **expectfiles,
+ _stringlist **tags)
+{
+ PID_TYPE pid;
+ char inprg[MAXPGPATH];
+ char insource[MAXPGPATH];
+ StringInfoData testname_dash;
+ char outfile_stdout[MAXPGPATH],
+ expectfile_stdout[MAXPGPATH];
+ char outfile_stderr[MAXPGPATH],
+ expectfile_stderr[MAXPGPATH];
+ char outfile_source[MAXPGPATH],
+ expectfile_source[MAXPGPATH];
+ char cmd[MAXPGPATH * 3];
+ char *appnameenv;
+
+ snprintf(inprg, sizeof(inprg), "%s/%s", inputdir, testname);
+ snprintf(insource, sizeof(insource), "%s.c", testname);
+
+ /* make a version of the test name that has dashes in place of slashes */
+ initStringInfo(&testname_dash);
+ appendStringInfoString(&testname_dash, testname);
+ for (char *c = testname_dash.data; *c != '\0'; c++)
+ {
+ if (*c == '/')
+ *c = '-';
+ }
+
+ snprintf(expectfile_stdout, sizeof(expectfile_stdout),
+ "%s/expected/%s.stdout",
+ outputdir, testname_dash.data);
+ snprintf(expectfile_stderr, sizeof(expectfile_stderr),
+ "%s/expected/%s.stderr",
+ outputdir, testname_dash.data);
+ snprintf(expectfile_source, sizeof(expectfile_source),
+ "%s/expected/%s.c",
+ outputdir, testname_dash.data);
+
+ snprintf(outfile_stdout, sizeof(outfile_stdout),
+ "%s/results/%s.stdout",
+ outputdir, testname_dash.data);
+ snprintf(outfile_stderr, sizeof(outfile_stderr),
+ "%s/results/%s.stderr",
+ outputdir, testname_dash.data);
+ snprintf(outfile_source, sizeof(outfile_source),
+ "%s/results/%s.c",
+ outputdir, testname_dash.data);
+
+ add_stringlist_item(resultfiles, outfile_stdout);
+ add_stringlist_item(expectfiles, expectfile_stdout);
+ add_stringlist_item(tags, "stdout");
+
+ add_stringlist_item(resultfiles, outfile_stderr);
+ add_stringlist_item(expectfiles, expectfile_stderr);
+ add_stringlist_item(tags, "stderr");
+
+ add_stringlist_item(resultfiles, outfile_source);
+ add_stringlist_item(expectfiles, expectfile_source);
+ add_stringlist_item(tags, "source");
+
+ ecpg_filter_source(insource, outfile_source);
+
+ snprintf(cmd, sizeof(cmd),
+ "\"%s\" >\"%s\" 2>\"%s\"",
+ inprg,
+ outfile_stdout,
+ outfile_stderr);
+
+ appnameenv = psprintf("ecpg/%s", testname_dash.data);
+ setenv("PGAPPNAME", appnameenv, 1);
+ free(appnameenv);
+
+ pid = spawn_process(cmd);
+
+ if (pid == INVALID_PID)
+ {
+ fprintf(stderr, _("could not start process for test %s\n"),
+ testname);
+ exit(2);
+ }
+
+ unsetenv("PGAPPNAME");
+
+ free(testname_dash.data);
+
+ return pid;
+}
+
+static void
+ecpg_postprocess_result(const char *filename)
+{
+ int nlen = strlen(filename);
+
+ /* Only stderr files require filtering, at the moment */
+ if (nlen > 7 && strcmp(filename + nlen - 7, ".stderr") == 0)
+ {
+ char *tmpfile = psprintf("%s.tmp", filename);
+
+ ecpg_filter_stderr(filename, tmpfile);
+ pfree(tmpfile);
+ }
+}
+
+static void
+ecpg_init(int argc, char *argv[])
+{
+ /* nothing to do here at the moment */
+}
+
+int
+main(int argc, char *argv[])
+{
+ return regression_main(argc, argv,
+ ecpg_init,
+ ecpg_start_test,
+ ecpg_postprocess_result);
+}
diff --git a/src/interfaces/ecpg/test/pgtypeslib/.gitignore b/src/interfaces/ecpg/test/pgtypeslib/.gitignore
new file mode 100644
index 0000000..2987fef
--- /dev/null
+++ b/src/interfaces/ecpg/test/pgtypeslib/.gitignore
@@ -0,0 +1,10 @@
+/dt_test
+/dt_test.c
+/dt_test2
+/dt_test2.c
+/nan_test
+/nan_test.c
+/num_test
+/num_test.c
+/num_test2
+/num_test2.c
diff --git a/src/interfaces/ecpg/test/pgtypeslib/Makefile b/src/interfaces/ecpg/test/pgtypeslib/Makefile
new file mode 100644
index 0000000..ee59691
--- /dev/null
+++ b/src/interfaces/ecpg/test/pgtypeslib/Makefile
@@ -0,0 +1,12 @@
+subdir = src/interfaces/ecpg/test/pgtypeslib
+top_builddir = ../../../../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/$(subdir)/../Makefile.regress
+
+TESTS = dt_test dt_test.c \
+ dt_test2 dt_test2.c \
+ num_test num_test.c \
+ num_test2 num_test2.c \
+ nan_test nan_test.c
+
+all: $(TESTS)
diff --git a/src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc b/src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc
new file mode 100644
index 0000000..f81a392
--- /dev/null
+++ b/src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc
@@ -0,0 +1,385 @@
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <pgtypes_date.h>
+#include <pgtypes_timestamp.h>
+#include <pgtypes_interval.h>
+
+exec sql include ../regression;
+
+int
+main(void)
+{
+ exec sql begin declare section;
+ date date1;
+ timestamp ts1;
+ interval *iv1, iv2;
+ char *text;
+ exec sql end declare section;
+ date date2;
+ int mdy[3] = { 4, 19, 1998 };
+ char *fmt, *out, *in;
+ char *d1 = "Mon Jan 17 1966";
+ char *t1 = "2000-7-12 17:34:29";
+ int i;
+
+ ECPGdebug(1, stderr);
+ exec sql whenever sqlerror do sqlprint();
+ exec sql connect to REGRESSDB1;
+ exec sql create table date_test (d date, ts timestamp);
+ exec sql set datestyle to iso;
+ exec sql set intervalstyle to postgres_verbose;
+
+ date1 = PGTYPESdate_from_asc(d1, NULL);
+ ts1 = PGTYPEStimestamp_from_asc(t1, NULL);
+
+ exec sql insert into date_test(d, ts) values (:date1, :ts1);
+
+ exec sql select * into :date1, :ts1 from date_test where d=:date1;
+
+ text = PGTYPESdate_to_asc(date1);
+ printf ("Date: %s\n", text);
+ PGTYPESchar_free(text);
+
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf ("timestamp: %s\n", text);
+ PGTYPESchar_free(text);
+
+ iv1 = PGTYPESinterval_from_asc("13556 days 12 hours 34 minutes 14 seconds ", NULL);
+ PGTYPESinterval_copy(iv1, &iv2);
+ text = PGTYPESinterval_to_asc(&iv2);
+ printf ("interval: %s\n", text);
+ PGTYPESinterval_free(iv1);
+ PGTYPESchar_free(text);
+
+ PGTYPESdate_mdyjul(mdy, &date2);
+ printf("m: %d, d: %d, y: %d\n", mdy[0], mdy[1], mdy[2]);
+ /* reset */
+ mdy[0] = mdy[1] = mdy[2] = 0;
+
+ printf("date seems to get encoded to julian %ld\n", date2);
+
+ PGTYPESdate_julmdy(date2, mdy);
+ printf("m: %d, d: %d, y: %d\n", mdy[0], mdy[1], mdy[2]);
+
+ ts1 = PGTYPEStimestamp_from_asc("2003-12-04 17:34:29", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ fmt = "(ddd), mmm. dd, yyyy, repeat: (ddd), mmm. dd, yyyy. end";
+ out = (char*) malloc(strlen(fmt) + 1);
+ date1 = PGTYPESdate_from_timestamp(ts1);
+ PGTYPESdate_fmt_asc(date1, fmt, out);
+ printf("date_day of %s is %d\n", text, PGTYPESdate_dayofweek(date1));
+ printf("Above date in format \"%s\" is \"%s\"\n", fmt, out);
+ PGTYPESchar_free(text);
+ free(out);
+
+ out = (char*) malloc(48);
+ i = PGTYPEStimestamp_fmt_asc(&ts1, out, 47, "Which is day number %j in %Y.");
+ printf("%s\n", out);
+ free(out);
+
+
+ /* rdate_defmt_asc() */
+
+ date1 = 0;
+ fmt = "yy/mm/dd";
+ in = "In the year 1995, the month of December, it is the 25th day";
+ /* 0123456789012345678901234567890123456789012345678901234567890
+ * 0 1 2 3 4 5 6
+ */
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc1: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mmmm. dd. yyyy";
+ in = "12/25/95";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc2: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "yy/mm/dd";
+ in = "95/12/25";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc3: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "yy/mm/dd";
+ in = "1995, December 25th";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc4: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "dd-mm-yy";
+ in = "This is 25th day of December, 1995";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc5: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mmddyy";
+ in = "Dec. 25th, 1995";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc6: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mmm. dd. yyyy";
+ in = "dec 25th 1995";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc7: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mmm. dd. yyyy";
+ in = "DEC-25-1995";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc8: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mm yy dd.";
+ in = "12199525";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc9: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "yyyy fierj mm dd.";
+ in = "19951225";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc10: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = 0;
+ fmt = "mm/dd/yy";
+ in = "122595";
+ PGTYPESdate_defmt_asc(&date1, fmt, in);
+ text = PGTYPESdate_to_asc(date1);
+ printf("date_defmt_asc12: %s\n", text);
+ PGTYPESchar_free(text);
+
+ PGTYPEStimestamp_current(&ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ /* can't output this in regression mode */
+ /* printf("timestamp_current: Now: %s\n", text); */
+ PGTYPESchar_free(text);
+
+ ts1 = PGTYPEStimestamp_from_asc("96-02-29", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_to_asc1: %s\n", text);
+ PGTYPESchar_free(text);
+
+ ts1 = PGTYPEStimestamp_from_asc("1994-02-11 3:10:35", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_to_asc2: %s\n", text);
+ PGTYPESchar_free(text);
+
+ ts1 = PGTYPEStimestamp_from_asc("1994-02-11 26:10:35", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_to_asc3: %s\n", text);
+ PGTYPESchar_free(text);
+
+/* abc-03:10:35-def-02/11/94-gh */
+/* 12345678901234567890123456789 */
+
+ out = (char*) malloc(32);
+ i = PGTYPEStimestamp_fmt_asc(&ts1, out, 31, "abc-%X-def-%x-ghi%%");
+ printf("timestamp_fmt_asc: %d: %s\n", i, out);
+ free(out);
+
+ fmt = "This is a %m/%d/%y %H-%Ml%Stest";
+ in = "This is a 4/12/80 3-39l12test";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Jul 22 17:28:44 +0200 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Feb 29 17:28:44 +0200 2000";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Feb 29 17:28:44 +0200 1900";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Feb 29 17:28:44 +0200 1996";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%b %d %H:%M:%S %z %Y";
+ in = " Jul 31 17:28:44 +0200 1996";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%b %d %H:%M:%S %z %Y";
+ in = " Jul 32 17:28:44 +0200 1996";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %d %H:%M:%S %z %Y";
+ in = "Tue Feb 29 17:28:44 +0200 1997";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%";
+ in = "Tue Jul 22 17:28:44 +0200 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "a %";
+ in = "Tue Jul 22 17:28:44 +0200 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%b, %d %H_%M`%S %z %Y";
+ in = " Jul, 22 17_28 `44 +0200 2003 ";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %%%d %H:%M:%S %Z %Y";
+ in = "Tue Jul %22 17:28:44 CEST 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%a %b %%%d %H:%M:%S %Z %Y";
+ in = "Tue Jul %22 17:28:44 CEST 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "abc%n %C %B %%%d %H:%M:%S %Z %Y";
+ in = "abc\n 19 October %22 17:28:44 CEST 2003";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "abc%n %C %B %%%d %H:%M:%S %Z %y";
+ in = "abc\n 18 October %34 17:28:44 CEST 80";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "";
+ in = "abc\n 18 October %34 17:28:44 CEST 80";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error (should be error!): %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = NULL;
+ in = "1980-04-12 3:49:44 ";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, NULL) = %s, error: %d\n", in, text, i);
+ PGTYPESchar_free(text);
+
+ fmt = "%B %d, %Y. Time: %I:%M%p";
+ in = "July 14, 1988. Time: 9:15am";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = "September 6 at 01:30 pm in the year 1983";
+ fmt = "%B %d at %I:%M %p in the year %Y";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = " 1976, July 14. Time: 9:15am";
+ fmt = "%Y, %B %d. Time: %I:%M %p";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = " 1976, July 14. Time: 9:15 am";
+ fmt = "%Y, %B %d. Time: %I:%M%p";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = " 1976, P.M. July 14. Time: 9:15";
+ fmt = "%Y, %P %B %d. Time: %I:%M";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ in = "1234567890";
+ fmt = "%s";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
+ PGTYPESchar_free(text);
+
+ out = (char*) malloc(64);
+ fmt = "%a %b %d %H:%M:%S %Y";
+ in = "Mon Dec 30 17:28:44 2019";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ i = PGTYPEStimestamp_fmt_asc(&ts1, out, 63, fmt);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, out, i);
+ free(out);
+
+ out = (char*) malloc(64);
+ fmt = "%a %b %d %H:%M:%S %Y";
+ in = "Mon December 30 17:28:44 2019";
+ i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
+ i = PGTYPEStimestamp_fmt_asc(&ts1, out, 63, fmt);
+ printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, out, i);
+ free(out);
+
+ exec sql rollback;
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc b/src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc
new file mode 100644
index 0000000..62b934b
--- /dev/null
+++ b/src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc
@@ -0,0 +1,151 @@
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <limits.h>
+#include <pgtypes_date.h>
+#include <pgtypes_timestamp.h>
+
+exec sql include ../regression;
+
+char *dates[] = { "19990108foobar",
+ "19990108 foobar",
+ "1999-01-08 foobar",
+ "January 8, 1999",
+ "1999-01-08",
+ "1/8/1999",
+ "1/18/1999",
+ "01/02/03",
+ "1999-Jan-08",
+ "Jan-08-1999",
+ "08-Jan-1999",
+ "99-Jan-08",
+ "08-Jan-99",
+ "08-Jan-06",
+ "Jan-08-99",
+ "19990108",
+ "990108",
+ "1999.008",
+ "J2451187",
+ "January 8, 99 BC",
+ /*
+ * Maximize space usage in ParseDateTime() with 25
+ * (MAXDATEFIELDS) fields and 128 (MAXDATELEN) total length.
+ */
+ "........................Xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ /* 26 fields */
+ ".........................aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ NULL };
+
+/* do not conflict with libc "times" symbol */
+static char *times[] = { "0:04",
+ "1:59 PDT",
+ "13:24:40 -8:00",
+ "13:24:40.495+3",
+ "13:24:40.123456123+3",
+ NULL };
+
+char *intervals[] = { "1 minute",
+ "1 12:59:10",
+ "2 day 12 hour 59 minute 10 second",
+ "1 days 12 hrs 59 mins 10 secs",
+ "1 days 1 hours 1 minutes 1 seconds",
+ "1 year 59 mins",
+ "1 year 59 mins foobar",
+ NULL };
+
+int
+main(void)
+{
+ exec sql begin declare section;
+ date date1;
+ timestamp ts1, ts2;
+ char *text;
+ interval *i1;
+ date *dc;
+ exec sql end declare section;
+
+ int i, j;
+ char *endptr;
+
+ ECPGdebug(1, stderr);
+
+ ts1 = PGTYPEStimestamp_from_asc("2003-12-04 17:34:29", NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+
+ printf("timestamp: %s\n", text);
+ PGTYPESchar_free(text);
+
+ date1 = PGTYPESdate_from_timestamp(ts1);
+ dc = PGTYPESdate_new();
+ *dc = date1;
+ text = PGTYPESdate_to_asc(*dc);
+ printf("Date of timestamp: %s\n", text);
+ PGTYPESchar_free(text);
+ PGTYPESdate_free(dc);
+
+ for (i = 0; dates[i]; i++)
+ {
+ bool err = false;
+ date1 = PGTYPESdate_from_asc(dates[i], &endptr);
+ if (date1 == INT_MIN) {
+ err = true;
+ }
+ text = PGTYPESdate_to_asc(date1);
+ printf("Date[%d]: %s (%c - %c)\n",
+ i, err ? "-" : text,
+ endptr ? 'N' : 'Y',
+ err ? 'T' : 'F');
+ PGTYPESchar_free(text);
+ if (!err)
+ {
+ for (j = 0; times[j]; j++)
+ {
+ int length = strlen(dates[i])
+ + 1
+ + strlen(times[j])
+ + 1;
+ char* t = malloc(length);
+ sprintf(t, "%s %s", dates[i], times[j]);
+ ts1 = PGTYPEStimestamp_from_asc(t, NULL);
+ text = PGTYPEStimestamp_to_asc(ts1);
+ printf("TS[%d,%d]: %s\n",
+ i, j, errno ? "-" : text);
+ PGTYPESchar_free(text);
+ free(t);
+ }
+ }
+ }
+
+ ts1 = PGTYPEStimestamp_from_asc("2004-04-04 23:23:23", NULL);
+
+ for (i = 0; intervals[i]; i++)
+ {
+ interval *ic;
+ i1 = PGTYPESinterval_from_asc(intervals[i], &endptr);
+ if (*endptr)
+ printf("endptr set to %s\n", endptr);
+ if (!i1)
+ {
+ printf("Error parsing interval %d\n", i);
+ continue;
+ }
+ j = PGTYPEStimestamp_add_interval(&ts1, i1, &ts2);
+ if (j < 0)
+ continue;
+ text = PGTYPESinterval_to_asc(i1);
+ printf("interval[%d]: %s\n", i, text ? text : "-");
+ PGTYPESchar_free(text);
+
+ ic = PGTYPESinterval_new();
+ PGTYPESinterval_copy(i1, ic);
+ text = PGTYPESinterval_to_asc(i1);
+ printf("interval_copy[%d]: %s\n", i, text ? text : "-");
+ PGTYPESchar_free(text);
+ PGTYPESinterval_free(ic);
+ PGTYPESinterval_free(i1);
+ }
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc b/src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc
new file mode 100644
index 0000000..04ddbde
--- /dev/null
+++ b/src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc
@@ -0,0 +1,87 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <float.h>
+#include <math.h>
+#include <pgtypes_numeric.h>
+#include <decimal.h>
+
+exec sql include ../regression;
+
+int
+main(void)
+{
+ exec sql begin declare section;
+ int id, loopcount;
+ double d;
+ numeric *num;
+ char val[16];
+ exec sql end declare section;
+
+ ECPGdebug(1, stderr);
+ exec sql whenever sqlerror do sqlprint();
+
+ exec sql connect to REGRESSDB1;
+
+ exec sql create table nantest1 (id int4, d float8);
+ exec sql insert into nantest1 (id, d) values (1, 'nan'::float8), (2, 'infinity'::float8), (3, '-infinity'::float8);
+
+ exec sql declare cur cursor for select id, d, d from nantest1;
+ exec sql open cur;
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ exec sql fetch from cur into :id, :d, :val;
+ if (sqlca.sqlcode)
+ break;
+ if (isnan(d))
+ printf("%d NaN '%s'\n", id, val);
+ else if (isinf(d))
+ printf("%d %sInf '%s'\n", id, (d < 0 ? "-" : "+"), val);
+
+ exec sql insert into nantest1 (id, d) values (:id + 3, :d);
+ exec sql insert into nantest1 (id, d) values (:id + 6, :val);
+ }
+ exec sql close cur;
+
+ exec sql open cur;
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ exec sql fetch from cur into :id, :d, :val;
+ if (sqlca.sqlcode)
+ break;
+ if (isinf(d))
+ printf("%d %sInf '%s'\n", id, (d < 0 ? "-" : "+"), val);
+ if (isnan(d))
+ printf("%d NaN '%s'\n", id, val);
+ }
+ exec sql close cur;
+
+ num = PGTYPESnumeric_new();
+
+ exec sql create table nantest2 (id int4, d numeric);
+ exec sql insert into nantest2 (id, d) values (4, 'nan'::numeric);
+
+ exec sql select id, d, d into :id, :num, :val from nantest2 where id = 4;
+
+ printf("%d %s '%s'\n", id, (num->sign == NUMERIC_NAN ? "NaN" : "not NaN"), val);
+
+ exec sql insert into nantest2 (id, d) values (5, :num);
+ exec sql insert into nantest2 (id, d) values (6, :val);
+
+ exec sql declare cur1 cursor for select id, d, d from nantest2;
+ exec sql open cur1;
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ exec sql fetch from cur1 into :id, :num, :val;
+ if (sqlca.sqlcode)
+ break;
+ printf("%d %s '%s'\n", id, (num->sign == NUMERIC_NAN ? "NaN" : "not NaN"), val);
+ }
+ exec sql close cur1;
+
+ PGTYPESnumeric_free(num);
+
+ exec sql rollback;
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/pgtypeslib/num_test.pgc b/src/interfaces/ecpg/test/pgtypeslib/num_test.pgc
new file mode 100644
index 0000000..c6c2858
--- /dev/null
+++ b/src/interfaces/ecpg/test/pgtypeslib/num_test.pgc
@@ -0,0 +1,105 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_numeric.h>
+#include <decimal.h>
+
+exec sql include ../regression;
+
+exec sql include ../printf_hack;
+
+
+int
+main(void)
+{
+ char *text="error\n";
+ numeric *value1, *value2, *res;
+ exec sql begin declare section;
+ numeric(14,7) *des;
+ /* = {0, 0, 0, 0, 0, NULL, NULL} ; */
+ exec sql end declare section;
+ double d;
+ long l1, l2;
+ int i, min, max;
+
+ ECPGdebug(1, stderr);
+ exec sql whenever sqlerror do sqlprint();
+
+ exec sql connect to REGRESSDB1;
+
+ exec sql set autocommit = off;
+ exec sql create table test (text char(5), num numeric(14,7));
+
+ value1 = PGTYPESnumeric_new();
+ PGTYPESnumeric_from_int(1407, value1);
+ text = PGTYPESnumeric_to_asc(value1, -1);
+ printf("from int = %s\n", text);
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(value1);
+
+ value1 = PGTYPESnumeric_from_asc("2369.7", NULL);
+ value2 = PGTYPESnumeric_from_asc("10.0", NULL);
+ res = PGTYPESnumeric_new();
+ PGTYPESnumeric_add(value1, value2, res);
+ text = PGTYPESnumeric_to_asc(res, -1);
+ printf("add = %s\n", text);
+ PGTYPESchar_free(text);
+
+ PGTYPESnumeric_sub(res, value2, res);
+ text = PGTYPESnumeric_to_asc(res, -1);
+ printf("sub = %s\n", text);
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(value2);
+
+ des = PGTYPESnumeric_new();
+ PGTYPESnumeric_copy(res, des);
+ exec sql insert into test (text, num) values ('test', :des);
+
+ value2 = PGTYPESnumeric_from_asc("2369.7", NULL);
+ PGTYPESnumeric_mul(value1, value2, res);
+ PGTYPESnumeric_free(value2);
+
+ exec sql select num into :des from test where text = 'test';
+
+ PGTYPESnumeric_mul(res, des, res);
+ text = PGTYPESnumeric_to_asc(res, -1);
+ printf("mul = %s\n", text);
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(des);
+
+ value2 = PGTYPESnumeric_from_asc("10000", NULL);
+ PGTYPESnumeric_div(res, value2, res);
+ text = PGTYPESnumeric_to_asc(res, -1);
+ PGTYPESnumeric_to_double(res, &d);
+ printf("div = %s ", text);
+ print_double(d);
+ printf("\n");
+
+ PGTYPESnumeric_free(value1);
+ PGTYPESnumeric_free(value2);
+
+ value1 = PGTYPESnumeric_from_asc("2E7", NULL);
+ value2 = PGTYPESnumeric_from_asc("14", NULL);
+ i = PGTYPESnumeric_to_long(value1, &l1) | PGTYPESnumeric_to_long(value2, &l2);
+ printf("to long(%d) = %ld %ld\n", i, l1, l2);
+
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(value1);
+ PGTYPESnumeric_free(value2);
+ PGTYPESnumeric_free(res);
+
+ /* check conversion of numeric to int */
+ value1 = PGTYPESnumeric_from_asc("-2147483648", NULL);
+ PGTYPESnumeric_to_int(value1, &min);
+ printf("min int = %d\n", min);
+ PGTYPESnumeric_free(value1);
+
+ value2 = PGTYPESnumeric_from_asc("2147483647", NULL);
+ PGTYPESnumeric_to_int(value2, &max);
+ printf("max int = %d\n", max);
+ PGTYPESnumeric_free(value2);
+
+ exec sql rollback;
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc b/src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc
new file mode 100644
index 0000000..8241d45
--- /dev/null
+++ b/src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc
@@ -0,0 +1,239 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <pgtypes_numeric.h>
+#include <pgtypes_error.h>
+#include <decimal.h>
+
+exec sql include ../regression;
+
+exec sql include ../printf_hack;
+
+
+char* nums[] = { "2E394", "-2", ".794", "3.44", "592.49E21", "-32.84e4",
+ "2E-394", ".1E-2", "+.0", "-592.49E-07", "+32.84e-4",
+ ".500001", "-.5000001",
+ "1234567890123456789012345678.91", /* 30 digits should fit
+ into decimal */
+ "1234567890123456789012345678.921", /* 31 digits should NOT
+ fit into decimal */
+ "not a number",
+ NULL};
+
+
+static void
+check_errno(void);
+
+int
+main(void)
+{
+ char *text="error\n";
+ char *endptr;
+ numeric *num, *nin;
+ decimal *dec;
+ long l;
+ int i, j, k, q, r, count = 0;
+ double d;
+ numeric **numarr = (numeric **) calloc(1, sizeof(numeric));
+
+ ECPGdebug(1, stderr);
+
+ for (i = 0; nums[i]; i++)
+ {
+ num = PGTYPESnumeric_from_asc(nums[i], &endptr);
+ if (!num) check_errno();
+ if (endptr != NULL)
+ {
+ printf("endptr of %d is not NULL\n", i);
+ if (*endptr != '\0')
+ printf("*endptr of %d is not \\0\n", i);
+ }
+ if (!num) continue;
+
+ numarr = realloc(numarr, sizeof(numeric *) * (count + 1));
+ numarr[count++] = num;
+
+ text = PGTYPESnumeric_to_asc(num, -1);
+ if (!text) check_errno();
+ printf("num[%d,1]: %s\n", i, text); PGTYPESchar_free(text);
+ text = PGTYPESnumeric_to_asc(num, 0);
+ if (!text) check_errno();
+ printf("num[%d,2]: %s\n", i, text); PGTYPESchar_free(text);
+ text = PGTYPESnumeric_to_asc(num, 1);
+ if (!text) check_errno();
+ printf("num[%d,3]: %s\n", i, text); PGTYPESchar_free(text);
+ text = PGTYPESnumeric_to_asc(num, 2);
+ if (!text) check_errno();
+ printf("num[%d,4]: %s\n", i, text); PGTYPESchar_free(text);
+
+ nin = PGTYPESnumeric_new();
+ text = PGTYPESnumeric_to_asc(nin, 2);
+ if (!text) check_errno();
+ printf("num[%d,5]: %s\n", i, text); PGTYPESchar_free(text);
+
+ r = PGTYPESnumeric_to_long(num, &l);
+ if (r) check_errno();
+ printf("num[%d,6]: %ld (r: %d)\n", i, r?0L:l, r);
+ if (r == 0)
+ {
+ r = PGTYPESnumeric_from_long(l, nin);
+ if (r) check_errno();
+ text = PGTYPESnumeric_to_asc(nin, 2);
+ q = PGTYPESnumeric_cmp(num, nin);
+ printf("num[%d,7]: %s (r: %d - cmp: %d)\n", i, text, r, q);
+ PGTYPESchar_free(text);
+ }
+
+ r = PGTYPESnumeric_to_int(num, &k);
+ if (r) check_errno();
+ printf("num[%d,8]: %d (r: %d)\n", i, r?0:k, r);
+ if (r == 0)
+ {
+ r = PGTYPESnumeric_from_int(k, nin);
+ if (r) check_errno();
+ text = PGTYPESnumeric_to_asc(nin, 2);
+ q = PGTYPESnumeric_cmp(num, nin);
+ printf("num[%d,9]: %s (r: %d - cmp: %d)\n", i, text, r, q);
+ PGTYPESchar_free(text);
+ }
+
+ if (i != 6)
+ {
+ /* underflow does not work reliable on several archs, so not testing it here */
+ /* this is a libc problem since we only call strtod() */
+
+ r = PGTYPESnumeric_to_double(num, &d);
+ if (r) check_errno();
+ printf("num[%d,10]: ", i);
+ print_double(r ? 0.0 : d);
+ printf(" (r: %d)\n", r);
+ }
+
+ /* do not test double to numeric because
+ * - extra digits are different on different architectures
+ * - PGTYPESnumeric_from_double internally calls PGTYPESnumeric_from_asc anyway
+ */
+
+ dec = PGTYPESdecimal_new();
+ r = PGTYPESnumeric_to_decimal(num, dec);
+ if (r) check_errno();
+ /* we have no special routine for outputting decimal, it would
+ * convert to a numeric anyway */
+ printf("num[%d,11]: - (r: %d)\n", i, r);
+ if (r == 0)
+ {
+ r = PGTYPESnumeric_from_decimal(dec, nin);
+ if (r) check_errno();
+ text = PGTYPESnumeric_to_asc(nin, 2);
+ q = PGTYPESnumeric_cmp(num, nin);
+ printf("num[%d,12]: %s (r: %d - cmp: %d)\n", i, text, r, q);
+ PGTYPESchar_free(text);
+ }
+
+ PGTYPESdecimal_free(dec);
+ PGTYPESnumeric_free(nin);
+ printf("\n");
+ }
+
+ for (i = 0; i < count; i++)
+ {
+ for (j = 0; j < count; j++)
+ {
+ numeric* a = PGTYPESnumeric_new();
+ numeric* s = PGTYPESnumeric_new();
+ numeric* m = PGTYPESnumeric_new();
+ numeric* d = PGTYPESnumeric_new();
+ r = PGTYPESnumeric_add(numarr[i], numarr[j], a);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ text = PGTYPESnumeric_to_asc(a, 10);
+ printf("num[a,%d,%d]: %s\n", i, j, text);
+ PGTYPESchar_free(text);
+ }
+ r = PGTYPESnumeric_sub(numarr[i], numarr[j], s);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ text = PGTYPESnumeric_to_asc(s, 10);
+ printf("num[s,%d,%d]: %s\n", i, j, text);
+ PGTYPESchar_free(text);
+ }
+ r = PGTYPESnumeric_mul(numarr[i], numarr[j], m);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ text = PGTYPESnumeric_to_asc(m, 10);
+ printf("num[m,%d,%d]: %s\n", i, j, text);
+ PGTYPESchar_free(text);
+ }
+ r = PGTYPESnumeric_div(numarr[i], numarr[j], d);
+ if (r)
+ {
+ check_errno();
+ printf("r: %d\n", r);
+ }
+ else
+ {
+ text = PGTYPESnumeric_to_asc(d, 10);
+ printf("num[d,%d,%d]: %s\n", i, j, text);
+ PGTYPESchar_free(text);
+ }
+
+ PGTYPESnumeric_free(a);
+ PGTYPESnumeric_free(s);
+ PGTYPESnumeric_free(m);
+ PGTYPESnumeric_free(d);
+ }
+ }
+
+ for (i = 0; i < count; i++)
+ {
+ text = PGTYPESnumeric_to_asc(numarr[i], -1);
+ printf("%d: %s\n", i, text);
+ PGTYPESchar_free(text);
+ PGTYPESnumeric_free(numarr[i]);
+ }
+ free(numarr);
+
+ return 0;
+}
+
+static void
+check_errno(void)
+{
+ switch(errno)
+ {
+ case 0:
+ printf("(no errno set) - ");
+ break;
+ case PGTYPES_NUM_OVERFLOW:
+ printf("(errno == PGTYPES_NUM_OVERFLOW) - ");
+ break;
+ case PGTYPES_NUM_UNDERFLOW:
+ printf("(errno == PGTYPES_NUM_UNDERFLOW) - ");
+ break;
+ case PGTYPES_NUM_BAD_NUMERIC:
+ printf("(errno == PGTYPES_NUM_BAD_NUMERIC) - ");
+ break;
+ case PGTYPES_NUM_DIVIDE_ZERO:
+ printf("(errno == PGTYPES_NUM_DIVIDE_ZERO) - ");
+ break;
+ default:
+ printf("(unknown errno (%d))\n", errno);
+ printf("(libc: (%s)) ", strerror(errno));
+ break;
+ }
+
+}
diff --git a/src/interfaces/ecpg/test/preproc/.gitignore b/src/interfaces/ecpg/test/preproc/.gitignore
new file mode 100644
index 0000000..fd63e64
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/.gitignore
@@ -0,0 +1,26 @@
+/array_of_struct
+/array_of_struct.c
+/autoprep
+/autoprep.c
+/comment
+/comment.c
+/cursor
+/cursor.c
+/define
+/define.c
+/init
+/init.c
+/outofscope
+/outofscope.c
+/pointer_to_struct
+/pointer_to_struct.c
+/strings
+/strings.c
+/type
+/type.c
+/variable
+/variable.c
+/whenever
+/whenever.c
+/whenever_do_continue
+/whenever_do_continue.c
diff --git a/src/interfaces/ecpg/test/preproc/Makefile b/src/interfaces/ecpg/test/preproc/Makefile
new file mode 100644
index 0000000..39b1974
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/Makefile
@@ -0,0 +1,33 @@
+subdir = src/interfaces/ecpg/test/preproc
+top_builddir = ../../../../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/$(subdir)/../Makefile.regress
+
+
+TESTS = array_of_struct array_of_struct.c \
+ autoprep autoprep.c \
+ comment comment.c \
+ cursor cursor.c \
+ define define.c \
+ init init.c \
+ strings strings.c \
+ outofscope outofscope.c \
+ type type.c \
+ variable variable.c \
+ whenever whenever.c \
+ whenever_do_continue whenever_do_continue.c \
+ pointer_to_struct pointer_to_struct.c
+
+all: $(TESTS)
+
+array_of_struct.c: array_of_struct.pgc $(ECPG_TEST_DEPENDENCIES)
+ $(ECPG) -c -o $@ $<
+
+pointer_to_struct.c: pointer_to_struct.pgc $(ECPG_TEST_DEPENDENCIES)
+ $(ECPG) -c -o $@ $<
+
+autoprep.c: autoprep.pgc $(ECPG_TEST_DEPENDENCIES)
+ $(ECPG) -r prepare -o $@ $<
+
+strings.c: strings.pgc strings.h $(ECPG_TEST_DEPENDENCIES)
+ $(ECPG) -i -o $@ $<
diff --git a/src/interfaces/ecpg/test/preproc/array_of_struct.pgc b/src/interfaces/ecpg/test/preproc/array_of_struct.pgc
new file mode 100644
index 0000000..69f5758
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/array_of_struct.pgc
@@ -0,0 +1,95 @@
+#include <stdio.h>
+
+exec sql include ../regression;
+
+EXEC SQL WHENEVER sqlerror sqlprint;
+EXEC SQL WHENEVER sqlwarning sqlprint;
+EXEC SQL WHENEVER not found sqlprint;
+
+EXEC SQL TYPE customer IS
+ struct
+ {
+ varchar name[50];
+ int phone;
+ };
+
+EXEC SQL TYPE cust_ind IS
+ struct ind
+ {
+ short name_ind;
+ short phone_ind;
+ };
+
+int main()
+{
+ EXEC SQL begin declare section;
+ customer custs1[10];
+ cust_ind inds[10];
+ typedef struct
+ {
+ varchar name[50];
+ int phone;
+ } customer2;
+ customer2 custs2[10];
+ struct customer3
+ {
+ varchar name[50];
+ int phone;
+ } custs3[10];
+ struct customer4
+ {
+ varchar name[50];
+ int phone;
+ } custs4;
+ int r;
+ varchar onlyname[2][50];
+ EXEC SQL end declare section;
+
+ ECPGdebug(1, stderr);
+
+ EXEC SQL connect to REGRESSDB1;
+
+ EXEC SQL create table customers (c varchar(50), p int);
+ EXEC SQL insert into customers values ('John Doe', '12345');
+ EXEC SQL insert into customers values ('Jane Doe', '67890');
+
+ EXEC SQL select * INTO :custs1:inds from customers limit 2;
+ printf("custs1:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs1[r].name.arr );
+ printf( "phone - %d\n", custs1[r].phone );
+ }
+
+ EXEC SQL select * INTO :custs2:inds from customers limit 2;
+ printf("\ncusts2:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs2[r].name.arr );
+ printf( "phone - %d\n", custs2[r].phone );
+ }
+
+ EXEC SQL select * INTO :custs3:inds from customers limit 2;
+ printf("\ncusts3:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs3[r].name.arr );
+ printf( "phone - %d\n", custs3[r].phone );
+ }
+
+ EXEC SQL select * INTO :custs4:inds[0] from customers limit 1;
+ printf("\ncusts4:\n");
+ printf( "name - %s\n", custs4.name.arr );
+ printf( "phone - %d\n", custs4.phone );
+
+ EXEC SQL select c INTO :onlyname from customers limit 2;
+ printf("\nname:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", onlyname[r].arr );
+ }
+
+ EXEC SQL disconnect all;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/preproc/autoprep.pgc b/src/interfaces/ecpg/test/preproc/autoprep.pgc
new file mode 100644
index 0000000..d3d9305
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/autoprep.pgc
@@ -0,0 +1,72 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+/* test automatic prepare for all statements */
+EXEC SQL INCLUDE ../regression;
+
+static void test(void) {
+ EXEC SQL BEGIN DECLARE SECTION;
+ int item[4], ind[4], i = 1;
+ int item1, ind1;
+ char sqlstr[64] = "SELECT item2 FROM T ORDER BY item2 NULLS LAST";
+ EXEC SQL END DECLARE SECTION;
+
+ ECPGdebug(1, stderr);
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL WHENEVER SQLWARNING SQLPRINT;
+ EXEC SQL WHENEVER SQLERROR SQLPRINT;
+
+ EXEC SQL CREATE TABLE T ( Item1 int, Item2 int );
+
+ EXEC SQL INSERT INTO T VALUES ( 1, null );
+ EXEC SQL INSERT INTO T VALUES ( 1, :i );
+ i++;
+ EXEC SQL INSERT INTO T VALUES ( 1, :i );
+ EXEC SQL PREPARE I AS INSERT INTO T VALUES ( 1, 2 );
+ EXEC SQL EXECUTE I;
+
+ EXEC SQL SELECT Item2 INTO :item:ind FROM T ORDER BY Item2 NULLS LAST;
+
+ for (i=0; i<4; i++)
+ printf("item[%d] = %d\n", i, ind[i] ? -1 : item[i]);
+
+ EXEC SQL DECLARE C CURSOR FOR SELECT Item1 FROM T;
+
+ EXEC SQL OPEN C;
+
+ EXEC SQL FETCH 1 IN C INTO :i;
+ printf("i = %d\n", i);
+
+ EXEC SQL CLOSE C;
+
+ EXEC SQL PREPARE stmt1 FROM :sqlstr;
+
+ EXEC SQL DECLARE cur1 CURSOR FOR stmt1;
+
+ EXEC SQL OPEN cur1;
+
+ EXEC SQL WHENEVER NOT FOUND DO BREAK;
+
+ i = 0;
+ while (i < 100)
+ {
+ EXEC SQL FETCH cur1 INTO :item1:ind1;
+ printf("item[%d] = %d\n", i, ind1 ? -1 : item1);
+ i++;
+ }
+
+ EXEC SQL CLOSE cur1;
+
+ EXEC SQL DROP TABLE T;
+
+ EXEC SQL DISCONNECT ALL;
+}
+
+int main() {
+ test();
+ test(); /* retry */
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/preproc/comment.pgc b/src/interfaces/ecpg/test/preproc/comment.pgc
new file mode 100644
index 0000000..c3ce20c
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/comment.pgc
@@ -0,0 +1,21 @@
+#include <stdlib.h>
+
+exec sql include ../regression;
+
+/* just a test comment */ int i;
+/* just a test comment int j*/;
+
+/****************************************************************************/
+/* Test comment */
+/*--------------------------------------------------------------------------*/
+
+int main(void)
+{
+ ECPGdebug(1, stderr);
+
+ exec sql --this is a comment too
+ connect to REGRESSDB1;
+
+ exec sql disconnect;
+ exit (0);
+}
diff --git a/src/interfaces/ecpg/test/preproc/cursor.pgc b/src/interfaces/ecpg/test/preproc/cursor.pgc
new file mode 100644
index 0000000..8a286ad
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/cursor.pgc
@@ -0,0 +1,256 @@
+#include <stdlib.h>
+#include <string.h>
+
+exec sql include ../regression;
+
+exec sql whenever sqlerror stop;
+
+exec sql type c is char reference;
+typedef char* c;
+
+exec sql type ind is union { int integer; short smallint; };
+typedef union { int integer; short smallint; } ind;
+
+#define BUFFERSIZ 8
+exec sql type str is varchar[BUFFERSIZ];
+
+#define CURNAME "mycur"
+
+int
+main (void)
+{
+exec sql begin declare section;
+ char *stmt1 = "SELECT id, t FROM t1";
+ char *curname1 = CURNAME;
+ char *curname2 = CURNAME;
+ char *curname3 = CURNAME;
+ varchar curname4[50];
+ char *curname5 = CURNAME;
+ int count;
+ int id;
+ char t[64];
+exec sql end declare section;
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ exec sql connect to REGRESSDB1 as test1;
+ exec sql connect to REGRESSDB2 as test2;
+
+ strcpy(msg, "set");
+ exec sql at test1 set datestyle to iso;
+
+ strcpy(msg, "create");
+ exec sql at test1 create table t1(id serial primary key, t text);
+ exec sql at test2 create table t1(id serial primary key, t text);
+
+ strcpy(msg, "insert");
+ exec sql at test1 insert into t1(id, t) values (default, 'a');
+ exec sql at test1 insert into t1(id, t) values (default, 'b');
+ exec sql at test1 insert into t1(id, t) values (default, 'c');
+ exec sql at test1 insert into t1(id, t) values (default, 'd');
+ exec sql at test2 insert into t1(id, t) values (default, 'e');
+
+ strcpy(msg, "commit");
+ exec sql at test1 commit;
+ exec sql at test2 commit;
+
+ /* Dynamic cursorname test with INTO list in FETCH stmts */
+
+ strcpy(msg, "declare");
+ exec sql at test1 declare :curname1 cursor for
+ select id, t from t1;
+
+ strcpy(msg, "open");
+ exec sql at test1 open :curname1;
+
+ strcpy(msg, "fetch from");
+ exec sql at test1 fetch forward from :curname1 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch");
+ exec sql at test1 fetch forward :curname1 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch 1 from");
+ exec sql at test1 fetch 1 from :curname1 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count from");
+ count = 1;
+ exec sql at test1 fetch :count from :curname1 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "move in");
+ exec sql at test1 move absolute 0 in :curname1;
+
+ strcpy(msg, "fetch 1");
+ exec sql at test1 fetch 1 :curname1 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count");
+ count = 1;
+ exec sql at test1 fetch :count :curname1 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "close");
+ exec sql at test1 close :curname1;
+
+ /* Dynamic cursorname test with INTO list in DECLARE stmt */
+
+ strcpy(msg, "declare");
+ exec sql at test1 declare :curname2 cursor for
+ select id, t into :id, :t from t1;
+
+ strcpy(msg, "open");
+ exec sql at test1 open :curname2;
+
+ strcpy(msg, "fetch from");
+ exec sql at test1 fetch from :curname2;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch");
+ exec sql at test1 fetch :curname2;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch 1 from");
+ exec sql at test1 fetch 1 from :curname2;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count from");
+ count = 1;
+ exec sql at test1 fetch :count from :curname2;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "move");
+ exec sql at test1 move absolute 0 :curname2;
+
+ strcpy(msg, "fetch 1");
+ exec sql at test1 fetch 1 :curname2;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count");
+ count = 1;
+ exec sql at test1 fetch :count :curname2;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "close");
+ exec sql at test1 close :curname2;
+
+ /* Dynamic cursorname test with PREPARED stmt */
+
+ strcpy(msg, "prepare");
+ exec sql at test1 prepare st_id1 from :stmt1;
+ exec sql at test2 prepare st_id1 from :stmt1;
+
+ strcpy(msg, "declare");
+ exec sql at test1 declare :curname3 cursor for st_id1;
+ exec sql at test2 declare :curname5 cursor for st_id1;
+
+ strcpy(msg, "open");
+ exec sql at test1 open :curname3;
+ exec sql at test2 open :curname5;
+
+ strcpy(msg, "fetch");
+ exec sql at test2 fetch :curname5 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch from");
+ exec sql at test1 fetch from :curname3 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch 1 from");
+ exec sql at test1 fetch 1 from :curname3 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count from");
+ count = 1;
+ exec sql at test1 fetch :count from :curname3 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "move");
+ exec sql at test1 move absolute 0 :curname3;
+
+ strcpy(msg, "fetch 1");
+ exec sql at test1 fetch 1 :curname3 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count");
+ count = 1;
+ exec sql at test1 fetch :count :curname3 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "close");
+ exec sql at test1 close :curname3;
+ exec sql at test2 close :curname5;
+
+ strcpy(msg, "deallocate prepare");
+ exec sql at test1 deallocate prepare st_id1;
+ exec sql at test2 deallocate prepare st_id1;
+
+ /* Dynamic cursorname test with PREPARED stmt,
+ cursor name in varchar */
+
+ curname4.len = strlen(CURNAME);
+ strcpy(curname4.arr, CURNAME);
+
+ strcpy(msg, "prepare");
+ exec sql at test1 prepare st_id2 from :stmt1;
+
+ strcpy(msg, "declare");
+ exec sql at test1 declare :curname4 cursor for st_id2;
+
+ strcpy(msg, "open");
+ exec sql at test1 open :curname4;
+
+ strcpy(msg, "fetch from");
+ exec sql at test1 fetch from :curname4 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch");
+ exec sql at test1 fetch :curname4 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch 1 from");
+ exec sql at test1 fetch 1 from :curname4 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count from");
+ count = 1;
+ exec sql at test1 fetch :count from :curname4 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "move");
+ exec sql at test1 move absolute 0 :curname4;
+
+ strcpy(msg, "fetch 1");
+ exec sql at test1 fetch 1 :curname4 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "fetch :count");
+ count = 1;
+ exec sql at test1 fetch :count :curname4 into :id, :t;
+ printf("%d %s\n", id, t);
+
+ strcpy(msg, "close");
+ exec sql at test1 close :curname4;
+
+ strcpy(msg, "deallocate prepare");
+ exec sql at test1 deallocate prepare st_id2;
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ exec sql at test1 drop table t1;
+ exec sql at test2 drop table t1;
+
+ strcpy(msg, "commit");
+ exec sql at test1 commit;
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect all;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/preproc/define.pgc b/src/interfaces/ecpg/test/preproc/define.pgc
new file mode 100644
index 0000000..90dc328
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/define.pgc
@@ -0,0 +1,78 @@
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+
+exec sql include ../regression;
+
+exec sql whenever sqlerror sqlprint;
+
+exec sql define AMOUNT 6;
+exec sql define NAMELEN 8;
+
+exec sql type intarray is int[AMOUNT];
+typedef int intarray[AMOUNT];
+
+int
+main(void)
+{
+exec sql begin declare section;
+
+exec sql ifdef NAMELEN;
+ typedef char string[NAMELEN];
+ intarray amount;
+ char name[AMOUNT][NAMELEN];
+exec sql elif AMOUNT;
+ should not get here;
+exec sql else;
+ should not get here either;
+exec sql endif;
+
+exec sql ifndef NAMELEN;
+ should not get here;
+exec sql elif AMOUNT;
+ exec sql ifdef NOSUCHNAME;
+ should not get here;
+ exec sql else;
+ char letter[AMOUNT][1];
+#if 0
+ int not_used;
+#endif
+ exec sql endif;
+exec sql elif AMOUNT;
+ should not get here;
+exec sql endif;
+
+exec sql end declare section;
+ int i,j;
+
+ ECPGdebug(1, stderr);
+
+ exec sql connect to REGRESSDB1;
+
+ exec sql create table test (name char(NAMELEN), amount int, letter char(1));
+ exec sql commit;
+
+ exec sql insert into Test (name, amount, letter) values ('false', 1, 'f');
+ exec sql insert into test (name, amount, letter) values ('true', 2, 't');
+ exec sql commit;
+
+ exec sql select * into :name, :amount, :letter from test;
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ exec sql begin declare section;
+ string n;
+ char l = letter[i][0];
+ int a = amount[i];
+ exec sql end declare section;
+
+ strncpy(n, name[i], NAMELEN);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ exec sql drop table test;
+ exec sql commit;
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/preproc/init.pgc b/src/interfaces/ecpg/test/preproc/init.pgc
new file mode 100644
index 0000000..b1f7199
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/init.pgc
@@ -0,0 +1,100 @@
+exec sql include sqlca;
+
+enum e { ENUM0, ENUM1 };
+struct sa { int member; };
+
+static int fa(void)
+{
+ printf("in fa\n");
+ return 2;
+}
+
+static int
+fb(int x)
+{
+ printf("in fb (%d)\n", x);
+ return x;
+}
+
+static int
+fc(const char *x)
+{
+ printf("in fc (%s)\n", x);
+ return *x;
+}
+
+static int fd(const char *x,int i)
+{
+ printf("in fd (%s, %d)\n", x, i);
+ return (*x)*i;
+}
+
+static int fe(enum e x)
+{
+ printf("in fe (%d)\n", (int) x);
+ return (int)x;
+}
+
+static void sqlnotice(const char *notice, short trans)
+{
+ if (!notice)
+ notice = "-empty-";
+ printf("in sqlnotice (%s, %d)\n", notice, trans);
+}
+
+exec sql define NONO 0;
+
+#define YES 1
+
+#ifdef _cplusplus
+namespace N
+{
+ static const int i=2;
+};
+#endif
+
+int main(void)
+{
+ struct sa x = { 14 },*y = &x;
+ exec sql begin declare section;
+ int a=(int)2;
+ int b=2+2;
+ int b2=(14*7);
+ int d=x.member;
+ int g=fb(2);
+ int i=3^1;
+ int j=1?1:2;
+
+ int e=y->member;
+ int c=10>>2;
+ bool h=2||1;
+ long iay /* = 1L */ ;
+ exec sql end declare section;
+
+ int f=fa();
+
+#ifdef _cplusplus
+ exec sql begin declare section;
+ int k=N::i; /* compile error */
+ exec sql end declare section;
+#endif
+
+ ECPGdebug(1, stderr);
+
+ printf("%d %d %d %d %d %d %d %d %d %d %d\n", a, b, b2, c, d, e, f, g, h, i, j);
+ iay = 0;
+ printf("%ld\n", iay);
+ exec sql whenever sqlerror do fa();
+ exec sql select now();
+ exec sql whenever sqlerror do fb(20);
+ exec sql select now();
+ exec sql whenever sqlerror do fc("50");
+ exec sql select now();
+ exec sql whenever sqlerror do fd("50",1);
+ exec sql select now();
+ exec sql whenever sqlerror do fe(ENUM0);
+ exec sql select now();
+ exec sql whenever sqlerror do sqlnotice(NULL, NONO);
+ exec sql select now();
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/preproc/outofscope.pgc b/src/interfaces/ecpg/test/preproc/outofscope.pgc
new file mode 100644
index 0000000..ed60782
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/outofscope.pgc
@@ -0,0 +1,116 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+
+exec sql include ../regression;
+
+exec sql include pgtypes_numeric.h;
+
+exec sql begin declare section;
+exec sql include struct.h;
+exec sql end declare section;
+
+exec sql whenever sqlerror stop;
+
+/* Functions for test 1 */
+
+static void
+get_var1(MYTYPE **myvar0, MYNULLTYPE **mynullvar0)
+{
+ exec sql begin declare section;
+ MYTYPE *myvar = malloc(sizeof(MYTYPE));
+ MYNULLTYPE *mynullvar = malloc(sizeof(MYNULLTYPE));
+ exec sql end declare section;
+
+ /* Test DECLARE ... SELECT ... INTO with pointers */
+
+ exec sql declare mycur cursor for select * INTO :myvar :mynullvar from a1;
+
+ if (sqlca.sqlcode != 0)
+ exit(1);
+
+ *myvar0 = myvar;
+ *mynullvar0 = mynullvar;
+}
+
+static void
+open_cur1(void)
+{
+ exec sql open mycur;
+}
+
+static void
+get_record1(void)
+{
+ exec sql fetch mycur;
+}
+
+static void
+close_cur1(void)
+{
+ exec sql close mycur;
+}
+
+int
+main (void)
+{
+ MYTYPE *myvar;
+ MYNULLTYPE *mynullvar;
+ int loopcount;
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ exec sql connect to REGRESSDB1;
+
+ strcpy(msg, "set");
+ exec sql set datestyle to iso;
+
+ strcpy(msg, "create");
+ exec sql create table a1(id serial primary key, t text, d1 numeric, d2 float8, c character(10));
+
+ strcpy(msg, "insert");
+ exec sql insert into a1(id, t, d1, d2, c) values (default, 'a', 1.0, 2, 'a');
+ exec sql insert into a1(id, t, d1, d2, c) values (default, null, null, null, null);
+ exec sql insert into a1(id, t, d1, d2, c) values (default, 'b', 2.0, 3, 'b');
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ /* Test out-of-scope DECLARE/OPEN/FETCH/CLOSE */
+
+ get_var1(&myvar, &mynullvar);
+ open_cur1();
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ memset(myvar, 0, sizeof(MYTYPE));
+ get_record1();
+ if (sqlca.sqlcode == ECPG_NOT_FOUND)
+ break;
+ printf("id=%d%s t='%s'%s d1=%f%s d2=%f%s c = '%s'%s\n",
+ myvar->id, mynullvar->id ? " (NULL)" : "",
+ myvar->t, mynullvar->t ? " (NULL)" : "",
+ myvar->d1, mynullvar->d1 ? " (NULL)" : "",
+ myvar->d2, mynullvar->d2 ? " (NULL)" : "",
+ myvar->c, mynullvar->c ? " (NULL)" : "");
+ }
+
+ close_cur1();
+
+ free(myvar);
+ free(mynullvar);
+
+ strcpy(msg, "drop");
+ exec sql drop table a1;
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/preproc/pointer_to_struct.pgc b/src/interfaces/ecpg/test/preproc/pointer_to_struct.pgc
new file mode 100644
index 0000000..1ec651e
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/pointer_to_struct.pgc
@@ -0,0 +1,100 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+exec sql include ../regression;
+
+EXEC SQL WHENEVER sqlerror sqlprint;
+EXEC SQL WHENEVER sqlwarning sqlprint;
+EXEC SQL WHENEVER not found sqlprint;
+
+EXEC SQL TYPE customer IS
+ struct
+ {
+ varchar name[50];
+ int phone;
+ };
+
+EXEC SQL TYPE cust_ind IS
+ struct ind
+ {
+ short name_ind;
+ short phone_ind;
+ };
+
+int main()
+{
+ EXEC SQL begin declare section;
+ customer *custs1 = (customer *) malloc(sizeof(customer) * 10);
+ cust_ind *inds = (cust_ind *) malloc(sizeof(cust_ind) * 10);
+ typedef struct
+ {
+ varchar name[50];
+ int phone;
+ } customer2;
+ customer2 *custs2 = (customer2 *) malloc(sizeof(customer2) * 10);
+
+ struct customer3
+ {
+ char name[50];
+ int phone;
+ } *custs3 = (struct customer3 *) malloc(sizeof(struct customer3) * 10);
+
+ struct customer4
+ {
+ varchar name[50];
+ int phone;
+ } *custs4 = (struct customer4 *) malloc(sizeof(struct customer4));
+
+ int r;
+ varchar onlyname[2][50];
+ EXEC SQL end declare section;
+
+ ECPGdebug(1, stderr);
+
+ EXEC SQL connect to REGRESSDB1;
+
+ EXEC SQL create table customers (c varchar(50), p int);
+ EXEC SQL insert into customers values ('John Doe', '12345');
+ EXEC SQL insert into customers values ('Jane Doe', '67890');
+
+ EXEC SQL select * INTO :custs1:inds from customers limit 2;
+ printf("custs1:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs1[r].name.arr );
+ printf( "phone - %d\n", custs1[r].phone );
+ }
+
+ EXEC SQL select * INTO :custs2:inds from customers limit 2;
+ printf("\ncusts2:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs2[r].name.arr );
+ printf( "phone - %d\n", custs2[r].phone );
+ }
+
+ EXEC SQL select * INTO :custs3:inds from customers limit 2;
+ printf("\ncusts3:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", custs3[r].name );
+ printf( "phone - %d\n", custs3[r].phone );
+ }
+
+ EXEC SQL select * INTO :custs4:inds from customers limit 1;
+ printf("\ncusts4:\n");
+ printf( "name - %s\n", custs4->name.arr );
+ printf( "phone - %d\n", custs4->phone );
+
+ EXEC SQL select c INTO :onlyname from customers limit 2;
+ printf("\nname:\n");
+ for (r = 0; r < 2; r++)
+ {
+ printf( "name - %s\n", onlyname[r].arr );
+ }
+
+ EXEC SQL disconnect all;
+
+ /* All the memory will anyway be freed at the end */
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/preproc/strings.h b/src/interfaces/ecpg/test/preproc/strings.h
new file mode 100644
index 0000000..edb5be5
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/strings.h
@@ -0,0 +1,8 @@
+char *s1,
+ *s2,
+ *s3,
+ *s4,
+ *s5,
+ *s6,
+ *s7,
+ *s8;
diff --git a/src/interfaces/ecpg/test/preproc/strings.pgc b/src/interfaces/ecpg/test/preproc/strings.pgc
new file mode 100644
index 0000000..f3b253e
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/strings.pgc
@@ -0,0 +1,32 @@
+#include <../regression.h>
+
+exec sql begin declare section;
+#include <strings.h>
+exec sql end declare section;
+
+int main(void)
+{
+ ECPGdebug(1, stderr);
+
+ exec sql connect to REGRESSDB1;
+
+ exec sql set standard_conforming_strings to on;
+
+ exec sql select 'abc''d\ef',
+ N'abc''d\ef' AS foo,
+ E'abc''d\\ef' AS "foo""bar",
+ U&'d\0061t\0061' AS U&"foo""bar",
+ U&'d!+000061t!+000061' uescape '!',
+ $foo$abc$def$foo$
+ into :s1, :s2, :s3, :s4, :s5, :s6;
+
+ printf("%s %s %s %s %s %s\n", s1, s2, s3, s4, s5, s6);
+
+ exec sql select b'0010', X'019ABcd'
+ into :s7, :s8;
+
+ printf("%s %s\n", s7, s8);
+
+ exec sql disconnect;
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/preproc/struct.h b/src/interfaces/ecpg/test/preproc/struct.h
new file mode 100644
index 0000000..19da316
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/struct.h
@@ -0,0 +1,19 @@
+struct mytype
+{
+ int id;
+ char t[64];
+ double d1; /* dec_t */
+ double d2;
+ char c[30];
+};
+typedef struct mytype MYTYPE;
+
+struct mynulltype
+{
+ int id;
+ int t;
+ int d1;
+ int d2;
+ int c;
+};
+typedef struct mynulltype MYNULLTYPE;
diff --git a/src/interfaces/ecpg/test/preproc/type.pgc b/src/interfaces/ecpg/test/preproc/type.pgc
new file mode 100644
index 0000000..3200c91
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/type.pgc
@@ -0,0 +1,80 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+EXEC SQL include ../regression;
+
+EXEC SQL typedef long mmInteger;
+EXEC SQL typedef char mmChar;
+EXEC SQL typedef short mmSmallInt;
+
+exec sql type string is char[11];
+typedef char string[11];
+
+exec sql type c is char reference;
+typedef char* c;
+
+EXEC SQL BEGIN DECLARE SECTION;
+struct TBempl
+{
+ mmInteger idnum;
+ mmChar name[21];
+ mmSmallInt accs;
+};
+EXEC SQL END DECLARE SECTION;
+
+int
+main (void)
+{
+ EXEC SQL BEGIN DECLARE SECTION;
+ struct TBempl empl;
+ string str;
+ c ptr = NULL;
+ struct varchar
+ {
+ int len;
+ char text[10];
+ } vc;
+ EXEC SQL END DECLARE SECTION;
+
+ EXEC SQL var vc is varchar[10];
+ ECPGdebug (1, stderr);
+
+ empl.idnum = 1;
+ EXEC SQL connect to REGRESSDB1;
+ if (sqlca.sqlcode)
+ {
+ printf ("connect error = %ld\n", sqlca.sqlcode);
+ exit (sqlca.sqlcode);
+ }
+
+ EXEC SQL create table empl
+ (idnum integer, name char(20), accs smallint, string1 char(10), string2 char(10), string3 char(10));
+ if (sqlca.sqlcode)
+ {
+ printf ("create error = %ld\n", sqlca.sqlcode);
+ exit (sqlca.sqlcode);
+ }
+
+ EXEC SQL insert into empl values (1, 'user name', 320, 'first str', 'second str', 'third str');
+ if (sqlca.sqlcode)
+ {
+ printf ("insert error = %ld\n", sqlca.sqlcode);
+ exit (sqlca.sqlcode);
+ }
+
+ EXEC SQL select idnum, name, accs, string1, string2, string3
+ into :empl, :str, :ptr, :vc
+ from empl
+ where idnum =:empl.idnum;
+ if (sqlca.sqlcode)
+ {
+ printf ("select error = %ld\n", sqlca.sqlcode);
+ exit (sqlca.sqlcode);
+ }
+ printf ("id=%ld name='%s' accs=%d str='%s' ptr='%s' vc='%10.10s'\n", empl.idnum, empl.name, empl.accs, str, ptr, vc.text);
+
+ EXEC SQL disconnect;
+
+ free(ptr);
+ exit (0);
+}
diff --git a/src/interfaces/ecpg/test/preproc/variable.pgc b/src/interfaces/ecpg/test/preproc/variable.pgc
new file mode 100644
index 0000000..032c2fe
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/variable.pgc
@@ -0,0 +1,110 @@
+#include <stdlib.h>
+#include <string.h>
+
+exec sql include ../regression;
+
+exec sql whenever sqlerror stop;
+
+exec sql type c is char reference;
+typedef char* c;
+
+exec sql type ind is union { int integer; short smallint; };
+typedef union { int integer; short smallint; } ind;
+
+#define BUFFERSIZ 8
+exec sql type str is varchar[BUFFERSIZ];
+
+exec sql declare cur cursor for
+ select name, born, age, married, children from family;
+
+int
+main (void)
+{
+ exec sql struct birthinfo { long born; short age; };
+exec sql begin declare section;
+ struct personal_struct { str name;
+ struct birthinfo birth;
+ } personal, *p;
+ struct personal_indicator { int ind_name;
+ struct birthinfo ind_birth;
+ } ind_personal, *i;
+ ind ind_children;
+ struct t1 { str name; }; struct t2 { str name; };
+ static varchar vc1[50], vc2[50], vc3[255];
+ static int i1, i2, i3;
+exec sql end declare section;
+
+ exec sql char *married = NULL;
+ exec sql long ind_married;
+ exec sql ind children;
+ int loopcount;
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ exec sql connect to REGRESSDB1;
+
+ strcpy(msg, "set");
+ exec sql set datestyle to iso;
+
+ strcpy(msg, "create");
+ exec sql create table family(name char(8), born integer, age smallint, married date, children integer);
+
+ strcpy(msg, "insert");
+ exec sql insert into family(name, married, children) values ('Mum', '19870714', 3);
+ exec sql insert into family(name, born, married, children) values ('Dad', '19610721', '19870714', 3);
+ exec sql insert into family(name, age) values ('Child 1', 16);
+ exec sql insert into family(name, age) values ('Child 2', 14);
+ exec sql insert into family(name, age) values ('Child 3', 9);
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ strcpy(msg, "open");
+ exec sql open cur;
+
+ exec sql whenever not found do break;
+
+ p=&personal;
+ i=&ind_personal;
+ memset(i, 0, sizeof(ind_personal));
+ for (loopcount = 0; loopcount < 100; loopcount++) {
+ strcpy(msg, "fetch");
+ exec sql fetch cur into :p:i, :married:ind_married, :children.integer:ind_children.smallint;
+ printf("%8.8s", personal.name.arr);
+ if (i->ind_birth.born >= 0)
+ printf(", born %ld", personal.birth.born);
+ if (i->ind_birth.age >= 0)
+ printf(", age = %d", personal.birth.age);
+ if (ind_married >= 0)
+ printf(", married %s", married);
+ if (ind_children.smallint >= 0)
+ printf(", children = %d", children.integer);
+ putchar('\n');
+
+ free(married);
+ married = NULL;
+ }
+
+ strcpy(msg, "close");
+ exec sql close cur;
+
+ strcpy(msg, "drop");
+ exec sql drop table family;
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect;
+
+ /* this just to silence unused-variable warnings: */
+ vc1.len = vc2.len = vc3.len = 0;
+ i1 = i2 = i3 = 0;
+ printf("%d %d %d %d %d %d\n",
+ vc1.len, vc2.len, vc3.len,
+ i1, i2, i3);
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/preproc/whenever.pgc b/src/interfaces/ecpg/test/preproc/whenever.pgc
new file mode 100644
index 0000000..6090e5f
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/whenever.pgc
@@ -0,0 +1,67 @@
+#include <stdlib.h>
+
+exec sql include ../regression;
+
+exec sql whenever sqlerror sqlprint;
+
+static void print(const char *msg)
+{
+ fprintf(stderr, "Error in statement '%s':\n", msg);
+ sqlprint();
+}
+
+static void print2(void)
+{
+ fprintf(stderr, "Found another error\n");
+ sqlprint();
+}
+
+static void warn(void)
+{
+ fprintf(stderr, "Warning: At least one column was truncated\n");
+}
+
+int main(void)
+{
+ exec sql int i;
+ exec sql char c[6];
+
+ ECPGdebug(1, stderr);
+
+ exec sql connect to REGRESSDB1;
+ exec sql create table test(i int, c char(10));
+ exec sql insert into test values(1, 'abcdefghij');
+
+ exec sql whenever sqlwarning do warn();
+ exec sql select * into :i, :c from test;
+ exec sql rollback;
+
+ exec sql select * into :i from nonexistent;
+ exec sql rollback;
+
+ exec sql whenever sqlerror do print("select");
+ exec sql select * into :i from nonexistent;
+ exec sql rollback;
+
+ exec sql whenever sqlerror call print2();
+ exec sql select * into :i from nonexistent;
+ exec sql rollback;
+
+ exec sql whenever sqlerror continue;
+ exec sql select * into :i from nonexistent;
+ exec sql rollback;
+
+ exec sql whenever sqlerror goto error;
+ exec sql select * into :i from nonexistent;
+ printf("Should not be reachable\n");
+
+ error:
+ exec sql rollback;
+
+ exec sql whenever sqlerror stop;
+ /* This cannot fail, thus we don't get an exit value not equal 0. */
+ /* However, it still test the precompiler output. */
+ exec sql select 1 into :i;
+ exec sql rollback;
+ exit (0);
+}
diff --git a/src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc b/src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc
new file mode 100644
index 0000000..025ac12
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc
@@ -0,0 +1,63 @@
+#include <stdlib.h>
+
+exec sql include ../regression;
+
+exec sql whenever sqlerror stop;
+
+int main(void)
+{
+ exec sql begin declare section;
+ struct
+ {
+ char ename[12];
+ float sal;
+ float comm;
+ } emp;
+ int loopcount;
+ char msg[128];
+ exec sql end declare section;
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ exec sql connect to REGRESSDB1;
+
+ strcpy(msg, "create");
+ exec sql create table emp(ename varchar,sal double precision, comm double precision);
+
+ strcpy(msg, "insert");
+ exec sql insert into emp values ('Ram',111100,21);
+ exec sql insert into emp values ('aryan',11110,null);
+ exec sql insert into emp values ('josh',10000,10);
+ exec sql insert into emp values ('tom',20000,null);
+
+ exec sql declare c cursor for select ename, sal, comm from emp order by ename collate "C" asc;
+
+ exec sql open c;
+
+ /* The 'BREAK' condition to exit the loop. */
+ exec sql whenever not found do break;
+
+ /* The DO CONTINUE makes the loop start at the next iteration when an error occurs.*/
+ exec sql whenever sqlerror do continue;
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ exec sql fetch c into :emp;
+ /* The employees with non-NULL commissions will be displayed. */
+ printf("%s %7.2f %9.2f\n", emp.ename, emp.sal, emp.comm);
+ }
+
+ /*
+ * This 'CONTINUE' shuts off the 'DO CONTINUE' and allow the program to
+ * proceed if any further errors do occur.
+ */
+ exec sql whenever sqlerror continue;
+
+ exec sql close c;
+
+ strcpy(msg, "drop");
+ exec sql drop table emp;
+
+ exit(0);
+}
diff --git a/src/interfaces/ecpg/test/printf_hack.h b/src/interfaces/ecpg/test/printf_hack.h
new file mode 100644
index 0000000..ef584c0
--- /dev/null
+++ b/src/interfaces/ecpg/test/printf_hack.h
@@ -0,0 +1,29 @@
+/*
+ * print_double(x) has the same effect as printf("%g", x), but is intended
+ * to produce the same formatting across all platforms.
+ */
+static void
+print_double(double x)
+{
+#ifdef WIN32
+ /* Change Windows' 3-digit exponents to look like everyone else's */
+ char convert[128];
+ int vallen;
+
+ sprintf(convert, "%g", x);
+ vallen = strlen(convert);
+
+ if (vallen >= 6 &&
+ convert[vallen - 5] == 'e' &&
+ convert[vallen - 3] == '0')
+ {
+ convert[vallen - 3] = convert[vallen - 2];
+ convert[vallen - 2] = convert[vallen - 1];
+ convert[vallen - 1] = '\0';
+ }
+
+ printf("%s", convert);
+#else
+ printf("%g", x);
+#endif
+}
diff --git a/src/interfaces/ecpg/test/regression.h b/src/interfaces/ecpg/test/regression.h
new file mode 100644
index 0000000..6b7fba1
--- /dev/null
+++ b/src/interfaces/ecpg/test/regression.h
@@ -0,0 +1,5 @@
+exec sql define REGRESSDB1 ecpg1_regression;
+exec sql define REGRESSDB2 ecpg2_regression;
+
+exec sql define REGRESSUSER1 regress_ecpg_user1;
+exec sql define REGRESSUSER2 regress_ecpg_user2;
diff --git a/src/interfaces/ecpg/test/sql/.gitignore b/src/interfaces/ecpg/test/sql/.gitignore
new file mode 100644
index 0000000..d3aaa62
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/.gitignore
@@ -0,0 +1,50 @@
+/array
+/array.c
+/binary
+/binary.c
+/bytea
+/bytea.c
+/code100
+/code100.c
+/copystdout
+/copystdout.c
+/createtableas
+/createtableas.c
+/declare
+/declare.c
+/define
+/define.c
+/desc
+/desc.c
+/describe
+/describe.c
+/dynalloc
+/dynalloc.c
+/dynalloc2
+/dynalloc2.c
+/dyntest
+/dyntest.c
+/execute
+/execute.c
+/fetch
+/fetch.c
+/func
+/func.c
+/indicators
+/indicators.c
+/insupd
+/insupd.c
+/oldexec
+/oldexec.c
+/parser
+/parser.c
+/prepareas
+/prepareas.c
+/quote
+/quote.c
+/show
+/show.c
+/sqlda
+/sqlda.c
+/twophase
+/twophase.c
diff --git a/src/interfaces/ecpg/test/sql/Makefile b/src/interfaces/ecpg/test/sql/Makefile
new file mode 100644
index 0000000..876ca8d
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/Makefile
@@ -0,0 +1,36 @@
+subdir = src/interfaces/ecpg/test/sql
+top_builddir = ../../../../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/$(subdir)/../Makefile.regress
+
+TESTS = array array.c \
+ binary binary.c \
+ code100 code100.c \
+ copystdout copystdout.c \
+ createtableas createtableas.c \
+ define define.c \
+ desc desc.c \
+ sqlda sqlda.c \
+ describe describe.c \
+ dyntest dyntest.c \
+ dynalloc dynalloc.c \
+ dynalloc2 dynalloc2.c \
+ execute execute.c \
+ fetch fetch.c \
+ func func.c \
+ indicators indicators.c \
+ oldexec oldexec.c \
+ parser parser.c \
+ quote quote.c \
+ show show.c \
+ insupd insupd.c \
+ twophase twophase.c \
+ insupd insupd.c \
+ declare declare.c \
+ bytea bytea.c \
+ prepareas prepareas.c
+
+all: $(TESTS)
+
+oldexec.c: oldexec.pgc $(ECPG_TEST_DEPENDENCIES)
+ $(ECPG) -r questionmarks -o $@ $<
diff --git a/src/interfaces/ecpg/test/sql/array.pgc b/src/interfaces/ecpg/test/sql/array.pgc
new file mode 100644
index 0000000..8ca9992
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/array.pgc
@@ -0,0 +1,111 @@
+#include <locale.h>
+#include <string.h>
+#include <stdlib.h>
+
+#include <pgtypes_date.h>
+#include <pgtypes_interval.h>
+#include <pgtypes_numeric.h>
+#include <pgtypes_timestamp.h>
+
+exec sql whenever sqlerror sqlprint;
+
+exec sql include sqlca;
+exec sql include ../regression;
+
+int
+main (void)
+{
+EXEC SQL BEGIN DECLARE SECTION;
+ int i = 1, j;
+ int *did = &i;
+ short a[10] = {9,8,7,6,5,4,3,2,1,0};
+ timestamp ts[10];
+ date d[10];
+ interval in[10];
+ numeric n[10];
+ char text[25] = "klmnopqrst";
+ char *t = (char *)malloc(11);
+ double f;
+EXEC SQL END DECLARE SECTION;
+
+ strcpy(t, "0123456789");
+ setlocale(LC_ALL, "C");
+
+ ECPGdebug(1, stderr);
+
+ for (j = 0; j < 10; j++) {
+ char str[28];
+ numeric *value;
+ interval *inter;
+
+ sprintf(str, "2000-1-1 0%d:00:00", j);
+ ts[j] = PGTYPEStimestamp_from_asc(str, NULL);
+ sprintf(str, "2000-1-1%d\n", j);
+ d[j] = PGTYPESdate_from_asc(str, NULL);
+ sprintf(str, "%d hours", j+10);
+ inter = PGTYPESinterval_from_asc(str, NULL);
+ in[j] = *inter;
+ value = PGTYPESnumeric_new();
+ PGTYPESnumeric_from_int(j, value);
+ n[j] = *value;
+ }
+
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL SET AUTOCOMMIT = ON;
+
+ EXEC SQL BEGIN WORK;
+
+ EXEC SQL CREATE TABLE test (f float, i int, a int[10], text char(10), ts timestamp[10], n numeric[10], d date[10], inter interval[10]);
+
+ EXEC SQL INSERT INTO test(f,i,a,text,ts,n,d,inter) VALUES(404.90,3,'{0,1,2,3,4,5,6,7,8,9}','abcdefghij',:ts,:n,:d,:in);
+
+ EXEC SQL INSERT INTO test(f,i,a,text,ts,n,d,inter) VALUES(140787.0,2,:a,:text,:ts,:n,:d,:in);
+
+ EXEC SQL INSERT INTO test(f,i,a,text,ts,n,d,inter) VALUES(14.07,:did,:a,:t,:ts,:n,:d,:in);
+
+ EXEC SQL COMMIT;
+
+ for (j = 0; j < 10; j++) {
+ ts[j] = PGTYPEStimestamp_from_asc("1900-01-01 00:00:00", NULL);
+ d[j] = PGTYPESdate_from_asc("1900-01-01", NULL);
+ in[j] = *PGTYPESinterval_new();
+ n[j] = *PGTYPESnumeric_new();
+ }
+ EXEC SQL BEGIN WORK;
+
+ EXEC SQL SELECT f,text
+ INTO :f,:text
+ FROM test
+ WHERE i = 1;
+
+ printf("Found f=%f text=%10.10s\n", f, text);
+
+ f=140787;
+ EXEC SQL SELECT a,text,ts,n,d,inter
+ INTO :a,:t,:ts,:n,:d,:in
+ FROM test
+ WHERE f = :f;
+
+ for (i = 0; i < 10; i++)
+ printf("Found a[%d] = %d ts[%d] = %s n[%d] = %s d[%d] = %s in[%d] = %s\n", i, a[i], i, PGTYPEStimestamp_to_asc(ts[i]), i, PGTYPESnumeric_to_asc(&(n[i]), -1), i, PGTYPESdate_to_asc(d[i]), i, PGTYPESinterval_to_asc(&(in[i])));
+
+ printf("Found text=%10.10s\n", t);
+
+ EXEC SQL SELECT a
+ INTO :text
+ FROM test
+ WHERE f = :f;
+
+ printf("Found text=%s\n", text);
+
+ EXEC SQL DROP TABLE test;
+
+ EXEC SQL COMMIT;
+
+ EXEC SQL DISCONNECT;
+
+ free(t);
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/binary.pgc b/src/interfaces/ecpg/test/sql/binary.pgc
new file mode 100644
index 0000000..1f6abd1
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/binary.pgc
@@ -0,0 +1,70 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+EXEC SQL include ../regression;
+
+EXEC SQL BEGIN DECLARE SECTION;
+struct TBempl
+{
+ long idnum;
+ char name[21];
+ short accs;
+ char byte[20];
+};
+EXEC SQL END DECLARE SECTION;
+
+EXEC SQL WHENEVER SQLERROR STOP;
+
+int
+main (void)
+{
+ EXEC SQL BEGIN DECLARE SECTION;
+ struct TBempl empl;
+ char *pointer = NULL;
+ char *data = "\\001\\155\\000\\212";
+ EXEC SQL END DECLARE SECTION;
+ int i;
+
+ ECPGdebug (1, stderr);
+
+ empl.idnum = 1;
+ EXEC SQL connect to REGRESSDB1;
+ EXEC SQL set bytea_output = escape;
+ EXEC SQL create table empl
+ (idnum integer, name char (20), accs smallint, byte bytea);
+ EXEC SQL insert into empl values (1, 'first user', 320, :data);
+ EXEC SQL DECLARE C CURSOR FOR select name, accs, byte from empl where idnum =:empl.idnum;
+ EXEC SQL OPEN C;
+ EXEC SQL FETCH C INTO:empl.name,:empl.accs,:empl.byte;
+ printf ("name=%s, accs=%d byte=%s\n", empl.name, empl.accs, empl.byte);
+
+ EXEC SQL CLOSE C;
+
+ memset(empl.name, 0, 21L);
+ EXEC SQL DECLARE B BINARY CURSOR FOR select name, accs, byte from empl where idnum =:empl.idnum;
+ EXEC SQL OPEN B;
+ EXEC SQL FETCH B INTO :empl.name,:empl.accs,:empl.byte;
+ EXEC SQL CLOSE B;
+
+ /* do not print a.accs because big/little endian will have different outputs here */
+ printf ("name=%s, byte=", empl.name);
+ for (i=0; i<4; i++)
+ printf("(%o)", (unsigned char)empl.byte[i]);
+ printf("\n");
+
+ EXEC SQL DECLARE A BINARY CURSOR FOR select byte from empl where idnum =:empl.idnum;
+ EXEC SQL OPEN A;
+ EXEC SQL FETCH A INTO :pointer;
+ EXEC SQL CLOSE A;
+
+ if (pointer) {
+ printf ("pointer=");
+ for (i=0; i<4; i++)
+ printf("(%o)", (unsigned char)pointer[i]);
+ printf("\n");
+ free(pointer);
+ }
+
+ EXEC SQL disconnect;
+ exit (0);
+}
diff --git a/src/interfaces/ecpg/test/sql/bytea.pgc b/src/interfaces/ecpg/test/sql/bytea.pgc
new file mode 100644
index 0000000..e874123
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/bytea.pgc
@@ -0,0 +1,120 @@
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include <time.h>
+
+exec sql include ../regression;
+exec sql whenever sqlerror sqlprint;
+
+static void
+dump_binary(char *buf, int len, int ind)
+{
+ int i;
+
+ printf("len=%d, ind=%d, data=0x", len, ind);
+ for (i = 0; i < len; ++i)
+ printf("%02x", 0xff & buf[i]);
+ printf("\n");
+}
+
+#define DATA_SIZE 0x200
+#define LACK_SIZE 13
+#
+int
+main(void)
+{
+exec sql begin declare section;
+ bytea send_buf[2][512];
+ bytea recv_buf[2][DATA_SIZE];
+ bytea recv_vlen_buf[][DATA_SIZE];
+ bytea recv_short_buf[DATA_SIZE - LACK_SIZE];
+ int ind[2];
+exec sql end declare section;
+ int i, j, c;
+
+#define init() { \
+ for (i = 0; i < 2; ++i) \
+ { \
+ memset(recv_buf[i].arr, 0x0, sizeof(recv_buf[i].arr)); \
+ recv_buf[i].len = 0; \
+ ind[i] = 0; \
+ } \
+ recv_vlen_buf = NULL, \
+ memset(recv_short_buf.arr, 0x0, sizeof(recv_short_buf.arr)); \
+} \
+while (0)
+
+ ECPGdebug(1, stderr);
+
+ for (i = 0; i < 2; ++i)
+ {
+ for (j = 0, c = 0xff; (c == -1 ? c = 0xff : 1), j < DATA_SIZE; ++j, --c)
+ send_buf[i].arr[j] = c;
+
+ send_buf[i].len = DATA_SIZE;
+ }
+
+ exec sql connect to REGRESSDB1;
+
+ exec sql create table if not exists test (data1 bytea, data2 bytea);
+
+ exec sql prepare ins_stmt from "insert into test values(?,?)";
+ exec sql prepare sel_stmt from "select data1,data2 from test";
+ exec sql allocate descriptor idesc;
+ exec sql allocate descriptor odesc;
+
+ /* Test for static sql statement with normal host variable, indicator */
+ init();
+ exec sql truncate test;
+ exec sql insert into test values(:send_buf[0], :send_buf[1]);
+ exec sql select data1,data2 into :recv_buf[0]:ind[0], :recv_short_buf:ind[1] from test;
+ dump_binary(recv_buf[0].arr, recv_buf[0].len, ind[0]);
+ dump_binary(recv_short_buf.arr, recv_short_buf.len, ind[1]);
+
+ /* Test for cursor */
+ init();
+ exec sql truncate test;
+ exec sql insert into test values(:send_buf[0], :send_buf[1]);
+ exec sql declare cursor1 cursor for select data1 from test where data1 = :send_buf[0];
+ exec sql open cursor1;
+ exec sql fetch from cursor1 INTO :recv_buf[0];
+ exec sql close cursor1;
+ exec sql free cursor1 ;
+ dump_binary(recv_buf[0].arr, recv_buf[0].len, 0);
+
+ /* Test for variable length array */
+ init();
+ exec sql truncate test;
+ exec sql insert into test values(:send_buf[0], :send_buf[1]);
+ exec sql insert into test values(:send_buf[0], :send_buf[1]);
+ exec sql select data1 into :recv_vlen_buf from test;
+ dump_binary(recv_vlen_buf[0].arr, recv_vlen_buf[0].len, 0);
+ dump_binary(recv_vlen_buf[1].arr, recv_vlen_buf[1].len, 0);
+ free(recv_vlen_buf);
+
+ /* Test for dynamic sql statement with normal host variable, indicator */
+ init();
+ exec sql truncate test;
+ exec sql execute ins_stmt using :send_buf[0], :send_buf[1];
+ exec sql execute sel_stmt into :recv_buf[0]:ind[0], :recv_short_buf:ind[1];
+ dump_binary(recv_buf[0].arr, recv_buf[0].len, ind[0]);
+ dump_binary(recv_short_buf.arr, recv_short_buf.len, ind[1]);
+
+ /* Test for dynamic sql statement with sql descriptor */
+ init();
+ exec sql truncate test;
+ exec sql set descriptor idesc value 1 data = :send_buf[0];
+ exec sql set descriptor idesc value 2 data = :send_buf[1];
+ exec sql execute ins_stmt using sql descriptor idesc;
+ exec sql execute sel_stmt into sql descriptor odesc;
+ exec sql get descriptor odesc value 1 :recv_buf[0] = data, :ind[0] = indicator;
+ exec sql get descriptor odesc value 2 :recv_short_buf = data, :ind[1] = indicator;
+ dump_binary(recv_buf[0].arr, recv_buf[0].len, ind[0]);
+ dump_binary(recv_short_buf.arr, recv_short_buf.len, ind[1]);
+
+ exec sql drop table test;
+ exec sql commit;
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/code100.pgc b/src/interfaces/ecpg/test/sql/code100.pgc
new file mode 100644
index 0000000..d9a5e52
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/code100.pgc
@@ -0,0 +1,52 @@
+exec sql include sqlca;
+#include <stdio.h>
+
+exec sql include ../regression;
+
+
+int main()
+{ exec sql begin declare section;
+ int index;
+ exec sql end declare section;
+
+
+ ECPGdebug(1,stderr);
+
+ exec sql connect to REGRESSDB1;
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ exec sql create table test (
+ "index" numeric(3) primary key,
+ "payload" int4 NOT NULL);
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+ exec sql commit work;
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ for (index=0;index<10;++index)
+ { exec sql insert into test
+ (payload, index)
+ values (0, :index);
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+ }
+ exec sql commit work;
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ exec sql update test
+ set payload=payload+1 where index=-1;
+ if (sqlca.sqlcode!=100) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ exec sql delete from test where index=-1;
+ if (sqlca.sqlcode!=100) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ exec sql insert into test (select * from test where index=-1);
+ if (sqlca.sqlcode!=100) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ exec sql drop table test;
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+ exec sql commit work;
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+
+ exec sql disconnect;
+ if (sqlca.sqlcode) printf("%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/copystdout.pgc b/src/interfaces/ecpg/test/sql/copystdout.pgc
new file mode 100644
index 0000000..9ecce7d
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/copystdout.pgc
@@ -0,0 +1,25 @@
+#include <stdio.h>
+
+EXEC SQL INCLUDE sqlca;
+exec sql include ../regression;
+
+EXEC SQL WHENEVER SQLERROR sqlprint;
+
+int
+main ()
+{
+ ECPGdebug (1, stderr);
+
+ EXEC SQL CONNECT TO REGRESSDB1;
+ EXEC SQL CREATE TABLE foo (a int, b varchar);
+ EXEC SQL INSERT INTO foo VALUES (5, 'abc');
+ EXEC SQL INSERT INTO foo VALUES (6, 'def');
+ EXEC SQL INSERT INTO foo VALUES (7, 'ghi');
+
+ EXEC SQL COPY foo TO STDOUT WITH DELIMITER ',';
+ printf ("copy to STDOUT : sqlca.sqlcode = %ld\n", sqlca.sqlcode);
+
+ EXEC SQL DISCONNECT;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/createtableas.pgc b/src/interfaces/ecpg/test/sql/createtableas.pgc
new file mode 100644
index 0000000..72f7077
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/createtableas.pgc
@@ -0,0 +1,41 @@
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+exec sql include ../regression;
+
+exec sql whenever sqlerror sqlprint;
+
+int
+main(void)
+{
+ EXEC SQL BEGIN DECLARE SECTION;
+ int id;
+ EXEC SQL END DECLARE SECTION;
+
+ ECPGdebug(1, stderr);
+ EXEC SQL connect to REGRESSDB1;
+
+ EXEC SQL SET AUTOCOMMIT TO ON;
+ EXEC SQL WHENEVER SQLWARNING SQLPRINT;
+ EXEC SQL WHENEVER SQLERROR SQLPRINT;
+
+ EXEC SQL CREATE TABLE cta_test (id int);
+ EXEC SQL INSERT INTO cta_test values (100);
+
+ EXEC SQL CREATE TABLE IF NOT EXISTS cta_test1 AS SELECT * FROM cta_test;
+ EXEC SQL SELECT id INTO :id FROM cta_test1;
+ printf("ID = %d\n", id);
+
+ EXEC SQL CREATE TABLE cta_test2 AS SELECT * FROM cta_test WITH NO DATA;
+ EXEC SQL SELECT count(id) INTO :id FROM cta_test2;
+ printf("ID = %d\n", id);
+
+ EXEC SQL DROP TABLE cta_test;
+ EXEC SQL DROP TABLE cta_test1;
+ EXEC SQL DROP TABLE cta_test2;
+ EXEC SQL DISCONNECT all;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/declare.pgc b/src/interfaces/ecpg/test/sql/declare.pgc
new file mode 100644
index 0000000..e7ee4aa
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/declare.pgc
@@ -0,0 +1,212 @@
+#include <locale.h>
+#include <string.h>
+#include <stdlib.h>
+
+EXEC SQL WHENEVER SQLERROR SQLPRINT;
+
+EXEC SQL INCLUDE sqlca;
+EXEC SQL INCLUDE ../regression;
+
+#define ARRAY_SIZE 2
+
+void execute_test(void);
+void commitTable(void);
+void reset(void);
+void printResult(char *tc_name, int loop);
+
+EXEC SQL BEGIN DECLARE SECTION;
+int f1[ARRAY_SIZE];
+int f2[ARRAY_SIZE];
+char f3[ARRAY_SIZE][20];
+EXEC SQL END DECLARE SECTION;
+
+int main(void)
+{
+ setlocale(LC_ALL, "C");
+
+ ECPGdebug(1, stderr);
+
+ EXEC SQL CONNECT TO REGRESSDB1 AS con1;
+ EXEC SQL CONNECT TO REGRESSDB2 AS con2;
+
+ EXEC SQL AT con1 CREATE TABLE source(f1 integer, f2 integer, f3 varchar(20));
+ EXEC SQL AT con2 CREATE TABLE source(f1 integer, f2 integer, f3 varchar(20));
+
+ EXEC SQL AT con1 INSERT INTO source VALUES(1, 10, 'db on con1');
+ EXEC SQL AT con1 INSERT INTO source VALUES(2, 20, 'db on con1');
+
+ EXEC SQL AT con2 INSERT INTO source VALUES(1, 10, 'db on con2');
+ EXEC SQL AT con2 INSERT INTO source VALUES(2, 20, 'db on con2');
+
+ commitTable();
+
+ execute_test();
+
+ EXEC SQL AT con1 DROP TABLE IF EXISTS source;
+ EXEC SQL AT con2 DROP TABLE IF EXISTS source;
+
+ commitTable();
+
+ EXEC SQL DISCONNECT ALL;
+
+ return 0;
+}
+
+/*
+ * default connection: con2
+ * Non-default connection: con1
+ *
+ */
+void execute_test(void)
+{
+ EXEC SQL BEGIN DECLARE SECTION;
+ int i, count, length;
+ char *selectString = "SELECT f1,f2,f3 FROM source";
+ EXEC SQL END DECLARE SECTION;
+
+ /*
+ * testcase1. using DECLARE STATEMENT without using AT clause,
+ * using PREPARE and CURSOR statement without using AT clause
+ */
+ reset();
+
+ EXEC SQL DECLARE stmt_1 STATEMENT;
+ EXEC SQL PREPARE stmt_1 FROM :selectString;
+ EXEC SQL DECLARE cur_1 CURSOR FOR stmt_1;
+ EXEC SQL OPEN cur_1;
+
+ EXEC SQL WHENEVER NOT FOUND DO BREAK;
+ i = 0;
+ while (1)
+ {
+ EXEC SQL FETCH cur_1 INTO :f1[i], :f2[i], :f3[i];
+ i++;
+ }
+ EXEC SQL CLOSE cur_1;
+ EXEC SQL DEALLOCATE PREPARE stmt_1;
+ EXEC SQL WHENEVER NOT FOUND CONTINUE;
+
+ printResult("testcase1", 2);
+
+
+ /*
+ * testcase2. using DECLARE STATEMENT at con1,
+ * using PREPARE and CURSOR statement without using AT clause
+ */
+ reset();
+
+ EXEC SQL AT con1 DECLARE stmt_2 STATEMENT;
+ EXEC SQL PREPARE stmt_2 FROM :selectString;
+ EXEC SQL DECLARE cur_2 CURSOR FOR stmt_2;
+ EXEC SQL OPEN cur_2;
+
+ EXEC SQL WHENEVER NOT FOUND DO BREAK;
+ i = 0;
+ while (1)
+ {
+ EXEC SQL FETCH cur_2 INTO :f1[i], :f2[i], :f3[i];
+ i++;
+ }
+ EXEC SQL CLOSE cur_2;
+ EXEC SQL DEALLOCATE PREPARE stmt_2;
+ EXEC SQL WHENEVER NOT FOUND CONTINUE;
+
+ printResult("testcase2", 2);
+
+ /*
+ * testcase3. using DECLARE STATEMENT without using AT clause,
+ * using PREPARE and EXECUTE statement without using AT clause
+ */
+ reset();
+
+ EXEC SQL DECLARE stmt_3 STATEMENT;
+ EXEC SQL PREPARE stmt_3 FROM :selectString;
+ EXEC SQL EXECUTE stmt_3 INTO :f1, :f2, :f3;
+
+ EXEC SQL DEALLOCATE PREPARE stmt_3;
+
+ printResult("testcase3", 2);
+
+ /*
+ * testcase4. using DECLARE STATEMENT without using AT clause,
+ * using PREPARE and CURSOR statement at con2
+ */
+ reset();
+
+ EXEC SQL DECLARE stmt_4 STATEMENT;
+ EXEC SQL AT con2 PREPARE stmt_4 FROM :selectString;
+ EXEC SQL AT con2 DECLARE cur_4 CURSOR FOR stmt_4;
+ EXEC SQL AT con2 OPEN cur_4;
+
+ EXEC SQL WHENEVER NOT FOUND DO BREAK;
+ i = 0;
+ while (1)
+ {
+ EXEC SQL AT con2 FETCH cur_4 INTO :f1[i], :f2[i], :f3[i];
+ i++;
+ }
+ EXEC SQL AT con2 CLOSE cur_4;
+ EXEC SQL AT con2 DEALLOCATE PREPARE stmt_4;
+ EXEC SQL WHENEVER NOT FOUND CONTINUE;
+
+ printResult("testcase4", 2);
+
+ /*
+ * DESCRIBE statement is also supported.
+ */
+ EXEC SQL AT con1 DECLARE stmt_desc STATEMENT;
+ EXEC SQL PREPARE stmt_desc FROM :selectString;
+ EXEC SQL DECLARE cur_desc CURSOR FOR stmt_desc;
+ EXEC SQL OPEN cur_desc;
+
+ /* descriptor can be used for describe statement */
+ EXEC SQL AT con1 ALLOCATE DESCRIPTOR desc_for_describe;
+ EXEC SQL DESCRIBE stmt_desc INTO SQL DESCRIPTOR desc_for_describe;
+
+ EXEC SQL AT con1 GET DESCRIPTOR desc_for_describe :count = COUNT;
+ EXEC SQL AT con1 GET DESCRIPTOR desc_for_describe VALUE 3 :length = LENGTH;
+
+ EXEC SQL AT con1 DEALLOCATE DESCRIPTOR desc_for_describe;
+
+ /* for fetch statement */
+ EXEC SQL AT con1 ALLOCATE DESCRIPTOR desc_for_fetch;
+ EXEC SQL FETCH cur_desc INTO SQL DESCRIPTOR desc_for_fetch;
+
+ EXEC SQL AT con1 GET DESCRIPTOR desc_for_fetch VALUE 3 :f3[0] = DATA;
+
+ EXEC SQL AT con1 DEALLOCATE DESCRIPTOR desc_for_fetch;
+ EXEC SQL CLOSE cur_desc;
+ EXEC SQL DEALLOCATE stmt_desc;
+
+ printf("****descriptor results****\n");
+ printf("count: %d, length: %d, data: %s\n", count, length, f3[0]);
+}
+
+void commitTable()
+{
+ EXEC SQL AT con1 COMMIT;
+ EXEC SQL AT con2 COMMIT;
+}
+
+/*
+ * reset all the output variables
+ */
+void reset()
+{
+ memset(f1, 0, sizeof(f1));
+ memset(f2, 0, sizeof(f2));
+ memset(f3, 0, sizeof(f3));
+}
+
+void printResult(char *tc_name, int loop)
+{
+ int i;
+
+ if (tc_name)
+ printf("****%s test results:****\n", tc_name);
+
+ for (i = 0; i < loop; i++)
+ printf("f1=%d, f2=%d, f3=%s\n", f1[i], f2[i], f3[i]);
+
+ printf("\n");
+}
diff --git a/src/interfaces/ecpg/test/sql/define.pgc b/src/interfaces/ecpg/test/sql/define.pgc
new file mode 100644
index 0000000..ed58a4b
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/define.pgc
@@ -0,0 +1,58 @@
+exec sql include sqlca;
+exec sql include ../regression;
+exec sql define STR 'abcdef';
+exec sql define INSERTNULL 1;
+exec sql define NUMBER 29;
+
+int main(void)
+{
+ exec sql begin declare section;
+ int i;
+ char s[200];
+ exec sql end declare section;
+
+ ECPGdebug(1, stderr);
+
+ exec sql whenever sqlerror do sqlprint();
+ exec sql connect to REGRESSDB1;
+
+ exec sql create table test (a int, b text);
+ exec sql insert into test values (NUMBER, STR);
+
+ exec sql ifdef INSERTNULL;
+ exec sql insert into test values (NULL, 'defined');
+ exec sql endif;
+
+ exec sql ifndef INSERTNULL;
+ exec sql insert into test values (NULL, 'not defined');
+ exec sql elif SOMEOTHERVAR;
+ exec sql insert into test values (NULL, 'someothervar defined');
+ exec sql else;
+ exec sql insert into test values (NULL, 'someothervar not defined');
+ exec sql endif;
+
+ exec sql define NUMBER 29;
+
+ exec sql select INSERTNULL, NUMBER::text || '-' || STR INTO :i, :s;
+
+ printf("i: %d, s: %s\n", i, s);
+
+ exec sql undef STR;
+ exec sql ifndef STR;
+ exec sql insert into test values (NUMBER, 'no string');
+ exec sql endif;
+
+ exec sql define TZVAR; /* no value */
+ exec sql define TZVAR 'UTC';
+
+ exec sql ifndef TZVAR;
+ exec sql SET TIMEZONE TO 'GMT';
+ exec sql elif TZNAME;
+ exec sql SET TIMEZONE TO TZNAME;
+ exec sql else;
+ exec sql SET TIMEZONE TO TZVAR;
+ exec sql endif;
+
+ exec sql disconnect;
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/desc.pgc b/src/interfaces/ecpg/test/sql/desc.pgc
new file mode 100644
index 0000000..abda771
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/desc.pgc
@@ -0,0 +1,89 @@
+EXEC SQL INCLUDE ../regression;
+EXEC SQL WHENEVER SQLERROR SQLPRINT;
+
+int
+main(void)
+{
+ EXEC SQL BEGIN DECLARE SECTION;
+ char *stmt1 = "INSERT INTO test1 VALUES ($1, $2)";
+ char *stmt2 = "SELECT * from test1 where a = $1 and b = $2";
+ char *stmt3 = "SELECT * from test1 where :var = a";
+
+ int val1 = 1;
+ char val2[4] = "one", val2output[] = "AAA";
+ int val1output = 2, val2i = 0;
+ int val2null = -1;
+ int ind1, ind2;
+ char desc1[8] = "outdesc";
+ EXEC SQL END DECLARE SECTION;
+
+ ECPGdebug(1, stderr);
+
+ EXEC SQL ALLOCATE DESCRIPTOR indesc;
+ EXEC SQL ALLOCATE DESCRIPTOR :desc1;
+
+ EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = :val1;
+ EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val2i, DATA = :val2;
+
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL CREATE TABLE test1 (a int, b text);
+ EXEC SQL PREPARE foo1 FROM :stmt1;
+ EXEC SQL PREPARE "Foo-1" FROM :stmt1;
+ EXEC SQL PREPARE foo2 FROM :stmt2;
+ EXEC SQL PREPARE foo3 FROM :stmt3;
+
+ EXEC SQL EXECUTE foo1 USING SQL DESCRIPTOR indesc;
+
+ EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = 2;
+ EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val2null, DATA = :val2;
+
+ EXEC SQL EXECUTE foo1 USING SQL DESCRIPTOR indesc;
+
+ EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = 3;
+ EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val1, DATA = 'this is a long test';
+
+ EXEC SQL EXECUTE "Foo-1" USING SQL DESCRIPTOR indesc;
+
+ EXEC SQL DEALLOCATE "Foo-1";
+
+ EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = :val1;
+ EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val2i, DATA = :val2;
+
+ EXEC SQL EXECUTE foo2 USING SQL DESCRIPTOR indesc INTO SQL DESCRIPTOR :desc1;
+
+ EXEC SQL GET DESCRIPTOR :desc1 VALUE 1 :val2output = DATA;
+ printf("output = %s\n", val2output);
+
+ EXEC SQL DECLARE c1 CURSOR FOR foo2;
+ EXEC SQL OPEN c1 USING SQL DESCRIPTOR indesc;
+
+ EXEC SQL FETCH next FROM c1 INTO :val1output:ind1, :val2output:ind2;
+ printf("val1=%d (ind1: %d) val2=%s (ind2: %d)\n",
+ val1output, ind1, val2output, ind2);
+
+ EXEC SQL CLOSE c1;
+
+ EXEC SQL SET DESCRIPTOR indesc COUNT = 1;
+ EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = 2;
+
+ EXEC SQL DECLARE c2 CURSOR FOR foo3;
+ EXEC SQL OPEN c2 USING SQL DESCRIPTOR indesc;
+
+ EXEC SQL FETCH next FROM c2 INTO :val1output, :val2output :val2i;
+ printf("val1=%d val2=%s\n", val1output, val2i ? "null" : val2output);
+
+ EXEC SQL CLOSE c2;
+
+ EXEC SQL SELECT * INTO :val1output, :val2output:val2i FROM test1 where a = 3;
+ printf("val1=%d val2=%c%c%c%c warn=%c truncate=%d\n", val1output, val2output[0], val2output[1], val2output[2], val2output[3], sqlca.sqlwarn[0], val2i);
+
+ EXEC SQL DROP TABLE test1;
+ EXEC SQL DEALLOCATE ALL;
+ EXEC SQL DISCONNECT;
+
+ EXEC SQL DEALLOCATE DESCRIPTOR indesc;
+ EXEC SQL DEALLOCATE DESCRIPTOR :desc1;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/describe.pgc b/src/interfaces/ecpg/test/sql/describe.pgc
new file mode 100644
index 0000000..87d6bd9
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/describe.pgc
@@ -0,0 +1,199 @@
+#include <stdlib.h>
+#include <string.h>
+
+exec sql include ../regression;
+exec sql include sqlda.h;
+
+exec sql whenever sqlerror stop;
+
+sqlda_t *sqlda1, *sqlda2, *sqlda3;
+
+int
+main (void)
+{
+exec sql begin declare section;
+ char *stmt1 = "SELECT id, t FROM descr_t2";
+ char *stmt2 = "SELECT id, t FROM descr_t2 WHERE id = -1";
+ int i, count1, count2;
+ char field_name1[30] = "not set";
+ char field_name2[30] = "not set";
+exec sql end declare section;
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ exec sql connect to REGRESSDB1;
+
+ strcpy(msg, "set");
+ exec sql set datestyle to iso;
+
+ strcpy(msg, "create");
+ exec sql create table descr_t2(id serial primary key, t text);
+
+ strcpy(msg, "insert");
+ exec sql insert into descr_t2(id, t) values (default, 'a');
+ exec sql insert into descr_t2(id, t) values (default, 'b');
+ exec sql insert into descr_t2(id, t) values (default, 'c');
+ exec sql insert into descr_t2(id, t) values (default, 'd');
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ /*
+ * Test DESCRIBE with a query producing tuples.
+ * DESCRIPTOR and SQL DESCRIPTOR are NOT the same in
+ * Informix-compat mode.
+ */
+
+ strcpy(msg, "allocate");
+ exec sql allocate descriptor desc1;
+ exec sql allocate descriptor desc2;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id1 FROM :stmt1;
+
+ sqlda1 = sqlda2 = sqlda3 = NULL;
+
+ strcpy(msg, "describe");
+ exec sql describe st_id1 into sql descriptor desc1;
+ exec sql describe st_id1 using sql descriptor desc2;
+
+ exec sql describe st_id1 into descriptor sqlda1;
+ exec sql describe st_id1 using descriptor sqlda2;
+ exec sql describe st_id1 into sqlda3;
+
+ if (sqlda1 == NULL)
+ {
+ printf("sqlda1 NULL\n");
+ exit(1);
+ }
+
+ if (sqlda2 == NULL)
+ {
+ printf("sqlda2 NULL\n");
+ exit(1);
+ }
+
+ if (sqlda3 == NULL)
+ {
+ printf("sqlda3 NULL\n");
+ exit(1);
+ }
+
+ strcpy(msg, "get descriptor");
+ exec sql get descriptor desc1 :count1 = count;
+ exec sql get descriptor desc1 :count2 = count;
+
+ if (count1 != count2)
+ {
+ printf("count1 (%d) != count2 (%d)\n", count1, count2);
+ exit(1);
+ }
+
+ if (count1 != sqlda1->sqld)
+ {
+ printf("count1 (%d) != sqlda1->sqld (%d)\n", count1, sqlda1->sqld);
+ exit(1);
+ }
+
+ if (count1 != sqlda2->sqld)
+ {
+ printf("count1 (%d) != sqlda2->sqld (%d)\n", count1, sqlda2->sqld);
+ exit(1);
+ }
+
+ if (count1 != sqlda3->sqld)
+ {
+ printf("count1 (%d) != sqlda3->sqld (%d)\n", count1, sqlda3->sqld);
+ exit(1);
+ }
+
+ for (i = 1; i <= count1; i++)
+ {
+ exec sql get descriptor desc1 value :i :field_name1 = name;
+ exec sql get descriptor desc2 value :i :field_name2 = name;
+ printf("%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
+ "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
+ i, field_name1, field_name2,
+ sqlda1->sqlvar[i-1].sqlname.data,
+ sqlda2->sqlvar[i-1].sqlname.data,
+ sqlda3->sqlvar[i-1].sqlname.data);
+ }
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate descriptor desc1;
+ exec sql deallocate descriptor desc2;
+ free(sqlda1);
+ free(sqlda2);
+ free(sqlda3);
+
+ exec sql deallocate prepare st_id1;
+
+ /* Test DESCRIBE with a query not producing tuples */
+
+ strcpy(msg, "allocate");
+ exec sql allocate descriptor desc1;
+ exec sql allocate descriptor desc2;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id2 FROM :stmt2;
+
+ sqlda1 = sqlda2 = sqlda3 = NULL;
+
+ strcpy(msg, "describe");
+ exec sql describe st_id2 into sql descriptor desc1;
+ exec sql describe st_id2 using sql descriptor desc2;
+
+ exec sql describe st_id2 into descriptor sqlda1;
+ exec sql describe st_id2 using descriptor sqlda2;
+ exec sql describe st_id2 into sqlda3;
+
+ if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
+ exit(1);
+
+ strcpy(msg, "get descriptor");
+ exec sql get descriptor desc1 :count1 = count;
+ exec sql get descriptor desc1 :count2 = count;
+
+ if (!( count1 == count2 &&
+ count1 == sqlda1->sqld &&
+ count1 == sqlda2->sqld &&
+ count1 == sqlda3->sqld))
+ exit(1);
+
+ for (i = 1; i <= count1; i++)
+ {
+ exec sql get descriptor desc1 value :i :field_name1 = name;
+ exec sql get descriptor desc2 value :i :field_name2 = name;
+ printf("%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
+ "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
+ i, field_name1, field_name2,
+ sqlda1->sqlvar[i-1].sqlname.data,
+ sqlda2->sqlvar[i-1].sqlname.data,
+ sqlda3->sqlvar[i-1].sqlname.data);
+ }
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate descriptor desc1;
+ exec sql deallocate descriptor desc2;
+ free(sqlda1);
+ free(sqlda2);
+ free(sqlda3);
+
+ exec sql deallocate prepare st_id2;
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ exec sql drop table descr_t2;
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/dynalloc.pgc b/src/interfaces/ecpg/test/sql/dynalloc.pgc
new file mode 100644
index 0000000..8aa810f
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/dynalloc.pgc
@@ -0,0 +1,89 @@
+#include <stdio.h>
+exec sql include sqlca;
+#include <stdlib.h>
+exec sql include ../regression;
+
+int main(void)
+{
+ exec sql begin declare section;
+ int *d1=0;
+ double *d2=0;
+ char **d3=0;
+ char **d4=0;
+ char **d5=0;
+ char **d6=0;
+ char **d7=0;
+/* char **d8=0; */
+ char **d9=0;
+ int *i1=0;
+ int *i2=0;
+ int *i3=0;
+ int *i4=0;
+ int *i5=0;
+ int *i6=0;
+ int *i7=0;
+/* int *i8=0; */
+ int *i9=0;
+ exec sql end declare section;
+ int i;
+
+ ECPGdebug(1, stderr);
+
+ exec sql whenever sqlerror do sqlprint();
+ exec sql connect to REGRESSDB1;
+
+ exec sql set datestyle to mdy;
+
+ exec sql create table test (a serial, b numeric(12,3), c varchar, d varchar(3), e char(4), f timestamptz, g boolean, h box, i inet);
+ exec sql insert into test (b, c, d, e, f, g, h, i) values (23.456, 'varchar', 'v', 'c', '2003-03-03 12:33:07 PDT', true, '(1,2,3,4)', '2001:4f8:3:ba:2e0:81ff:fe22:d1f1/128');
+ exec sql insert into test (b, c, d, e, f, g, h, i) values (2.446456, NULL, 'v', 'c', '2003-03-03 12:33:07 PDT', false, NULL, NULL);
+
+ exec sql allocate descriptor mydesc;
+ exec sql select a,b,c,d,e,f,g,h,i into sql descriptor mydesc from test order by a;
+ exec sql get descriptor mydesc value 1 :d1=DATA, :i1=INDICATOR;
+ exec sql get descriptor mydesc value 2 :d2=DATA, :i2=INDICATOR;
+ exec sql get descriptor mydesc value 3 :d3=DATA, :i3=INDICATOR;
+ exec sql get descriptor mydesc value 4 :d4=DATA, :i4=INDICATOR;
+ exec sql get descriptor mydesc value 5 :d5=DATA, :i5=INDICATOR;
+ exec sql get descriptor mydesc value 6 :d6=DATA, :i6=INDICATOR;
+ exec sql get descriptor mydesc value 7 :d7=DATA, :i7=INDICATOR;
+ /* skip box for now */
+ /* exec sql get descriptor mydesc value 8 :d8=DATA, :i8=INDICATOR; */
+ exec sql get descriptor mydesc value 9 :d9=DATA, :i9=INDICATOR;
+
+ printf("Result:\n");
+ for (i=0;i<sqlca.sqlerrd[2];++i)
+ {
+ if (i1[i]) printf("NULL, ");
+ else printf("%d, ",d1[i]);
+
+ if (i2[i]) printf("NULL, ");
+ else printf("%f, ",d2[i]);
+
+ if (i3[i]) printf("NULL, ");
+ else printf("'%s', ",d3[i]);
+
+ if (i4[i]) printf("NULL, ");
+ else printf("'%s', ",d4[i]);
+
+ if (i5[i]) printf("NULL, ");
+ else printf("'%s', ",d5[i]);
+
+ if (i6[i]) printf("NULL, ");
+ else printf("'%s', ",d6[i]);
+
+ if (i7[i]) printf("NULL, ");
+ else printf("'%s', ",d7[i]);
+
+ if (i9[i]) printf("NULL, ");
+ else printf("'%s', ",d9[i]);
+
+ printf("\n");
+ }
+ ECPGfree_auto_mem();
+ printf("\n");
+
+ exec sql deallocate descriptor mydesc;
+ exec sql disconnect;
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/dynalloc2.pgc b/src/interfaces/ecpg/test/sql/dynalloc2.pgc
new file mode 100644
index 0000000..67d9077
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/dynalloc2.pgc
@@ -0,0 +1,55 @@
+#include <stdio.h>
+exec sql include sqlca;
+#include <stdlib.h>
+exec sql include ../regression;
+
+int main(void)
+{
+ exec sql begin declare section;
+ int *ip1=0;
+ char **cp2=0;
+ int *ipointer1=0;
+ int *ipointer2=0;
+ int colnum;
+ exec sql end declare section;
+ int i;
+
+ ECPGdebug(1, stderr);
+
+ exec sql whenever sqlerror do sqlprint();
+ exec sql connect to REGRESSDB1;
+
+ exec sql set datestyle to postgres;
+
+ exec sql create table test (a int, b text);
+ exec sql insert into test values (1, 'one');
+ exec sql insert into test values (2, 'two');
+ exec sql insert into test values (NULL, 'three');
+ exec sql insert into test values (4, 'four');
+ exec sql insert into test values (5, NULL);
+ exec sql insert into test values (NULL, NULL);
+
+ exec sql allocate descriptor mydesc;
+ exec sql select * into sql descriptor mydesc from test;
+ exec sql get descriptor mydesc :colnum=COUNT;
+ exec sql get descriptor mydesc value 1 :ip1=DATA, :ipointer1=INDICATOR;
+ exec sql get descriptor mydesc value 2 :cp2=DATA, :ipointer2=INDICATOR;
+
+ printf("Result (%d columns):\n", colnum);
+ for (i=0;i < sqlca.sqlerrd[2];++i)
+ {
+ if (ipointer1[i]) printf("NULL, ");
+ else printf("%d, ",ip1[i]);
+
+ if (ipointer2[i]) printf("NULL, ");
+ else printf("'%s', ",cp2[i]);
+ printf("\n");
+ }
+ ECPGfree_auto_mem();
+ printf("\n");
+
+ exec sql deallocate descriptor mydesc;
+ exec sql rollback;
+ exec sql disconnect;
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/dyntest.pgc b/src/interfaces/ecpg/test/sql/dyntest.pgc
new file mode 100644
index 0000000..0222c89
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/dyntest.pgc
@@ -0,0 +1,199 @@
+/* dynamic SQL test program
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+exec sql include sql3types;
+exec sql include sqlca;
+exec sql include ../regression;
+
+static void
+error (void)
+{
+ printf ("\n#%ld:%s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
+ exit (1);
+}
+
+int
+main ()
+{
+ exec sql begin declare section;
+ int COUNT;
+ int INTVAR;
+ int INDEX;
+ int INDICATOR;
+ int TYPE, LENGTH, OCTET_LENGTH, PRECISION, SCALE, RETURNED_OCTET_LENGTH;
+ int DATETIME_INTERVAL_CODE;
+ char NAME[120], BOOLVAR;
+ char STRINGVAR[1024];
+ double DOUBLEVAR;
+ char *QUERY;
+ exec sql end declare section;
+ int done = 0;
+
+ exec sql var BOOLVAR is bool;
+
+ ECPGdebug (1, stderr);
+
+ QUERY = "select * from dyntest";
+
+ exec sql whenever sqlerror
+ do
+ error ();
+
+ exec sql allocate descriptor MYDESC;
+
+ exec sql connect to REGRESSDB1;
+
+ exec sql set datestyle to german;
+
+ exec sql create table dyntest (name char (14), d float8, i int,
+ bignumber int8, b boolean, comment text,
+ day date);
+ exec sql insert into dyntest values ('first entry', 14.7, 14, 123045607890, true, 'The world''s most advanced open source database.', '1987-07-14');
+ exec sql insert into dyntest values ('second entry', 1407.87, 1407, 987065403210, false, 'The elephant never forgets.', '1999-11-5');
+
+ exec sql prepare MYQUERY from :QUERY;
+ exec sql declare MYCURS cursor for MYQUERY;
+
+ exec sql open MYCURS;
+
+ while (1)
+ {
+ exec sql fetch in MYCURS into sql descriptor MYDESC;
+
+ if (sqlca.sqlcode)
+ break;
+
+ exec sql get descriptor MYDESC:COUNT = count;
+ if (!done)
+ {
+ printf ("Found %d columns\n", COUNT);
+ done = 1;
+ }
+
+ for (INDEX = 1; INDEX <= COUNT; ++INDEX)
+ {
+ exec sql get descriptor MYDESC value :INDEX
+ :TYPE = type,
+ :LENGTH = length,
+ :OCTET_LENGTH = octet_length,
+ :RETURNED_OCTET_LENGTH = returned_octet_length,
+ :PRECISION = precision,
+ :SCALE = scale,
+ :NAME = name,
+ :INDICATOR = indicator;
+ printf ("%2d\t%s (type: %d length: %d precision: %d scale: %d = " , INDEX, NAME, TYPE, LENGTH, PRECISION, SCALE);
+ switch (TYPE)
+ {
+ case SQL3_BOOLEAN:
+ printf ("bool");
+ break;
+ case SQL3_NUMERIC:
+ printf ("numeric(%d,%d)", PRECISION, SCALE);
+ break;
+ case SQL3_DECIMAL:
+ printf ("decimal(%d,%d)", PRECISION, SCALE);
+ break;
+ case SQL3_INTEGER:
+ printf ("integer");
+ break;
+ case SQL3_SMALLINT:
+ printf ("smallint");
+ break;
+ case SQL3_FLOAT:
+ printf ("float(%d,%d)", PRECISION, SCALE);
+ break;
+ case SQL3_REAL:
+ printf ("real");
+ break;
+ case SQL3_DOUBLE_PRECISION:
+ printf ("double precision");
+ break;
+ case SQL3_DATE_TIME_TIMESTAMP:
+ exec sql get descriptor MYDESC value :INDEX
+ :DATETIME_INTERVAL_CODE = datetime_interval_code;
+ switch (DATETIME_INTERVAL_CODE)
+ {
+ case SQL3_DDT_DATE:
+ printf ("date");
+ break;
+ case SQL3_DDT_TIME:
+ printf ("time");
+ break;
+ case SQL3_DDT_TIMESTAMP:
+ printf ("timestamp");
+ break;
+ case SQL3_DDT_TIME_WITH_TIME_ZONE:
+ printf ("time with time zone");
+ break;
+ case SQL3_DDT_TIMESTAMP_WITH_TIME_ZONE:
+ printf ("timestamp with time zone");
+ break;
+ }
+ break;
+ case SQL3_INTERVAL:
+ printf ("interval");
+ break;
+ case SQL3_CHARACTER:
+ if (LENGTH > 0)
+ printf ("char(%d)", LENGTH);
+ else
+ printf ("text");
+ break;
+ case SQL3_CHARACTER_VARYING:
+ if (LENGTH > 0)
+ printf ("varchar(%d)", LENGTH);
+ else
+ printf ("varchar()");
+ break;
+ default:
+ printf ("<SQL3 %d>", TYPE);
+ break;
+ }
+ printf (")\n\toctet_length: %d returned_octet_length: %d)\n\t= ",
+ OCTET_LENGTH, RETURNED_OCTET_LENGTH);
+ if (INDICATOR == -1)
+ printf ("NULL\n");
+ else
+ switch (TYPE)
+ {
+ case SQL3_BOOLEAN:
+ exec sql get descriptor MYDESC value :INDEX :BOOLVAR = data;
+ printf ("%s\n", BOOLVAR ? "true" : "false");
+ break;
+ case SQL3_INTEGER:
+ case SQL3_SMALLINT:
+ exec sql get descriptor MYDESC value :INDEX :INTVAR = data;
+ printf ("%d\n", INTVAR);
+ break;
+ case SQL3_DOUBLE_PRECISION:
+ exec sql get descriptor MYDESC value :INDEX :DOUBLEVAR = data;
+ printf ("%.*f\n", PRECISION, DOUBLEVAR);
+ break;
+ case SQL3_DATE_TIME_TIMESTAMP:
+ exec sql get descriptor MYDESC value :INDEX
+ :DATETIME_INTERVAL_CODE = datetime_interval_code,
+ :STRINGVAR = data;
+ printf ("%d \"%s\"\n", DATETIME_INTERVAL_CODE, STRINGVAR);
+ break;
+ case SQL3_CHARACTER:
+ case SQL3_CHARACTER_VARYING:
+ exec sql get descriptor MYDESC value :INDEX :STRINGVAR = data;
+ printf ("\"%s\"\n", STRINGVAR);
+ break;
+ default:
+ exec sql get descriptor MYDESC value :INDEX :STRINGVAR = data;
+ printf ("<\"%s\">\n", STRINGVAR);
+ break;
+ }
+ }
+ }
+
+ exec sql close MYCURS;
+
+ exec sql deallocate descriptor MYDESC;
+
+ return 0;
+ }
diff --git a/src/interfaces/ecpg/test/sql/execute.pgc b/src/interfaces/ecpg/test/sql/execute.pgc
new file mode 100644
index 0000000..43171bb
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/execute.pgc
@@ -0,0 +1,113 @@
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+exec sql include ../regression;
+
+exec sql whenever sqlerror sqlprint;
+
+int
+main(void)
+{
+exec sql begin declare section;
+ int amount[8];
+ int increment=100;
+ char name[8][8];
+ char letter[8][1];
+ char command[128];
+exec sql end declare section;
+ int i,j;
+
+ ECPGdebug(1, stderr);
+
+ exec sql connect to REGRESSDB1 as main;
+ exec sql create table test (name char(8), amount int, letter char(1));
+ exec sql commit;
+
+ /* test handling of embedded quotes in EXECUTE IMMEDIATE "literal" */
+ exec sql execute immediate "insert into test (name, \042amount\042, letter) values ('db: ''r1''', 1, 'f')";
+
+ sprintf(command, "insert into test (name, amount, letter) values ('db: ''r1''', 2, 't')");
+ exec sql execute immediate :command;
+
+ sprintf(command, "insert into test (name, amount, letter) select name, amount+10, letter from test");
+ exec sql execute immediate :command;
+
+ printf("Inserted %ld tuples via execute immediate\n", sqlca.sqlerrd[2]);
+
+ sprintf(command, "insert into test (name, amount, letter) select name, amount+$1, letter from test");
+ exec sql prepare I from :command;
+ exec sql execute I using :increment;
+
+ printf("Inserted %ld tuples via prepared execute\n", sqlca.sqlerrd[2]);
+
+ exec sql commit;
+
+ sprintf (command, "select * from test");
+
+ exec sql prepare f from :command;
+ exec sql declare CUR cursor for f;
+
+ exec sql open CUR;
+ exec sql fetch 8 in CUR into :name, :amount, :letter;
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ exec sql begin declare section;
+ char n[8], l = letter[i][0];
+ int a = amount[i];
+ exec sql end declare section;
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ exec sql close CUR;
+ exec sql deallocate f;
+
+ sprintf (command, "select * from test where amount = $1");
+
+ exec sql prepare f from :command;
+ exec sql declare CUR2 cursor for f;
+
+ exec sql open CUR2 using 1;
+ exec sql fetch in CUR2 into :name, :amount, :letter;
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ exec sql begin declare section;
+ char n[8], l = letter[i][0];
+ int a = amount[i];
+ exec sql end declare section;
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ exec sql close CUR2;
+ exec sql deallocate f;
+
+ sprintf (command, "select * from test where amount = $1");
+
+ exec sql prepare f from :command;
+ exec sql execute f using 2 into :name, :amount, :letter;
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ exec sql begin declare section;
+ char n[8], l = letter[i][0];
+ int a = amount[i];
+ exec sql end declare section;
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ exec sql deallocate f;
+ exec sql drop table test;
+ exec sql commit;
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/fetch.pgc b/src/interfaces/ecpg/test/sql/fetch.pgc
new file mode 100644
index 0000000..31e525e
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/fetch.pgc
@@ -0,0 +1,58 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+EXEC SQL INCLUDE ../regression;
+
+int main() {
+ EXEC SQL BEGIN DECLARE SECTION;
+ char str[25];
+ int i, count=1, loopcount;
+ EXEC SQL END DECLARE SECTION;
+
+ ECPGdebug(1, stderr);
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL WHENEVER SQLWARNING SQLPRINT;
+ EXEC SQL WHENEVER SQLERROR STOP;
+
+ EXEC SQL CREATE TABLE My_Table ( Item1 int, Item2 text );
+
+ EXEC SQL INSERT INTO My_Table VALUES ( 1, 'text1');
+ EXEC SQL INSERT INTO My_Table VALUES ( 2, 'text2');
+ EXEC SQL INSERT INTO My_Table VALUES ( 3, 'text3');
+ EXEC SQL INSERT INTO My_Table VALUES ( 4, 'text4');
+
+ EXEC SQL DECLARE C CURSOR FOR SELECT * FROM My_Table;
+
+ EXEC SQL OPEN C;
+
+ EXEC SQL WHENEVER NOT FOUND DO BREAK;
+ for (loopcount = 0; loopcount < 100; loopcount++) {
+ EXEC SQL FETCH 1 IN C INTO :i, :str;
+ printf("%d: %s\n", i, str);
+ }
+
+ EXEC SQL WHENEVER NOT FOUND CONTINUE;
+ EXEC SQL MOVE BACKWARD 2 IN C;
+
+ EXEC SQL FETCH :count IN C INTO :i, :str;
+ printf("%d: %s\n", i, str);
+
+ EXEC SQL CLOSE C;
+
+ EXEC SQL DECLARE D CURSOR FOR SELECT * FROM My_Table WHERE Item1 = $1;
+
+ EXEC SQL OPEN D using 1;
+
+ EXEC SQL FETCH 1 IN D INTO :i, :str;
+ printf("%d: %s\n", i, str);
+
+ EXEC SQL CLOSE D;
+
+ EXEC SQL DROP TABLE My_Table;
+
+ EXEC SQL DISCONNECT ALL;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/func.pgc b/src/interfaces/ecpg/test/sql/func.pgc
new file mode 100644
index 0000000..5ebcafa
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/func.pgc
@@ -0,0 +1,47 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+EXEC SQL INCLUDE ../regression;
+
+int main() {
+ EXEC SQL char text[25];
+
+ ECPGdebug(1, stderr);
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL SET AUTOCOMMIT TO ON;
+ EXEC SQL WHENEVER SQLWARNING SQLPRINT;
+ EXEC SQL WHENEVER SQLERROR SQLPRINT;
+
+ EXEC SQL CREATE TABLE My_Table ( Item1 int, Item2 text );
+ EXEC SQL CREATE TABLE Log (name text, w text);
+
+ EXEC SQL CREATE FUNCTION My_Table_Check() RETURNS trigger
+ AS $test$
+ BEGIN
+ INSERT INTO Log VALUES(TG_NAME, TG_WHEN);
+ RETURN NEW;
+ END; $test$
+ LANGUAGE plpgsql;
+
+ EXEC SQL CREATE TRIGGER My_Table_Check_Trigger
+ BEFORE INSERT
+ ON My_Table
+ FOR EACH ROW
+ EXECUTE PROCEDURE My_Table_Check();
+
+ EXEC SQL INSERT INTO My_Table VALUES (1234, 'Some random text');
+ EXEC SQL INSERT INTO My_Table VALUES (5678, 'The Quick Brown');
+ EXEC SQL SELECT name INTO :text FROM Log LIMIT 1;
+ printf("Trigger %s fired.\n", text);
+
+ EXEC SQL DROP TRIGGER My_Table_Check_Trigger ON My_Table;
+ EXEC SQL DROP FUNCTION My_Table_Check();
+ EXEC SQL DROP TABLE Log;
+ EXEC SQL DROP TABLE My_Table;
+
+ EXEC SQL DISCONNECT ALL;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/indicators.pgc b/src/interfaces/ecpg/test/sql/indicators.pgc
new file mode 100644
index 0000000..c1f26e3
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/indicators.pgc
@@ -0,0 +1,50 @@
+#include <stdio.h>
+
+exec sql include sqlca;
+exec sql include ../regression;
+
+int main()
+{
+ exec sql begin declare section;
+ int intvar = 5;
+ int nullind = -1;
+ exec sql end declare section;
+
+ ECPGdebug(1,stderr);
+
+ exec sql connect to REGRESSDB1;
+ exec sql set autocommit to off;
+
+ exec sql create table indicator_test (
+ "id" int primary key,
+ "str" text NOT NULL,
+ val int null);
+ exec sql commit work;
+
+ exec sql insert into indicator_test (id, str, val) values ( 1, 'Hello', 0);
+
+ /* use indicator in insert */
+ exec sql insert into indicator_test (id, str, val) values ( 2, 'Hi there', :intvar :nullind);
+ nullind = 0;
+ exec sql insert into indicator_test (id, str, val) values ( 3, 'Good evening', :intvar :nullind);
+ exec sql commit work;
+
+ /* use indicators to get information about selects */
+ exec sql select val into :intvar from indicator_test where id = 1;
+ exec sql select val into :intvar :nullind from indicator_test where id = 2;
+ printf("intvar: %d, nullind: %d\n", intvar, nullind);
+ exec sql select val into :intvar :nullind from indicator_test where id = 3;
+ printf("intvar: %d, nullind: %d\n", intvar, nullind);
+
+ /* use indicators for update */
+ intvar = 5; nullind = -1;
+ exec sql update indicator_test set val = :intvar :nullind where id = 1;
+ exec sql select val into :intvar :nullind from indicator_test where id = 1;
+ printf("intvar: %d, nullind: %d\n", intvar, nullind);
+
+ exec sql drop table indicator_test;
+ exec sql commit work;
+
+ exec sql disconnect;
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/insupd.pgc b/src/interfaces/ecpg/test/sql/insupd.pgc
new file mode 100644
index 0000000..b12f66f
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/insupd.pgc
@@ -0,0 +1,36 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+EXEC SQL INCLUDE ../regression;
+
+int main() {
+ EXEC SQL BEGIN DECLARE SECTION;
+ int i1[3], i2[3], i3[3], i4;
+ EXEC SQL END DECLARE SECTION;
+
+ ECPGdebug(1, stderr);
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL WHENEVER SQLWARNING SQLPRINT;
+ EXEC SQL WHENEVER SQLERROR SQLPRINT;
+
+ EXEC SQL CREATE TABLE insupd_test(a int, b int);
+
+ EXEC SQL INSERT INTO insupd_test (a,b) values (1, 1);
+ EXEC SQL INSERT INTO insupd_test (a,b) values (2, 2);
+ EXEC SQL INSERT INTO insupd_test (a,b) values (3, 3) returning a into :i4;
+
+ EXEC SQL UPDATE insupd_test set a=a+1 returning a into :i3;
+ EXEC SQL UPDATE insupd_test set (a,b)=(5,5) where a = 4;
+ EXEC SQL UPDATE insupd_test set a=4 where a=3;;
+
+ EXEC SQL SELECT a,b into :i1,:i2 from insupd_test order by a;
+
+ printf("changes\n%d %d %d %d\n", i3[0], i3[1], i3[2], i4);
+ printf("test\na b\n%d %d\n%d %d\n%d %d\n", i1[0], i2[0], i1[1], i2[1], i1[2], i2[2]);
+
+ EXEC SQL DISCONNECT ALL;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/oldexec.pgc b/src/interfaces/ecpg/test/sql/oldexec.pgc
new file mode 100644
index 0000000..4f94a18
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/oldexec.pgc
@@ -0,0 +1,90 @@
+#include <stdlib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+exec sql include ../regression;
+
+exec sql whenever sqlerror sqlprint;
+
+int
+main(void)
+{
+exec sql begin declare section;
+ int amount[8];
+ int increment=100;
+ char name[8][8];
+ char letter[8][1];
+ char command[128];
+exec sql end declare section;
+ int i,j;
+
+ ECPGdebug(1, stderr);
+
+ exec sql connect to REGRESSDB1 as main;
+
+ exec sql create table test (name char(8), amount int, letter char(1));
+ exec sql commit;
+
+ sprintf(command, "insert into test (name, amount, letter) values ('db: ''r1''', 1, 'f')");
+ exec sql execute immediate :command;
+
+ sprintf(command, "insert into test (name, amount, letter) values ('db: ''r1''', 2, 't')");
+ exec sql execute immediate :command;
+
+ sprintf(command, "insert into test (name, amount, letter) select name, amount+10, letter from test");
+ exec sql execute immediate :command;
+
+ printf("Inserted %ld tuples via execute immediate\n", sqlca.sqlerrd[2]);
+
+ sprintf(command, "insert into test (name, amount, letter) select name, amount+$1, letter from test");
+ exec sql prepare I from :command;
+ exec sql execute I using :increment;
+
+ printf("Inserted %ld tuples via prepared execute\n", sqlca.sqlerrd[2]);
+
+ exec sql commit;
+
+ sprintf (command, "select * from test");
+
+ exec sql prepare F from :command;
+ exec sql declare CUR cursor for F;
+
+ exec sql open CUR;
+ exec sql fetch 8 in CUR into :name, :amount, :letter;
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ char n[8], l = letter[i][0];
+ int a = amount[i];
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ exec sql close CUR;
+
+ sprintf (command, "select * from test where ? = amount");
+
+ exec sql prepare F from :command;
+ exec sql declare CUR3 cursor for F;
+
+ exec sql open CUR3 using 1;
+ exec sql fetch in CUR3 into :name, :amount, :letter;
+
+ for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
+ {
+ char n[8], l = letter[i][0];
+ int a = amount[i];
+
+ strncpy(n, name[i], 8);
+ printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l);
+ }
+
+ exec sql close CUR3;
+ exec sql drop table test;
+ exec sql commit;
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/parser.pgc b/src/interfaces/ecpg/test/sql/parser.pgc
new file mode 100644
index 0000000..6e15f13
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/parser.pgc
@@ -0,0 +1,39 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+/* test parser addition that merges two tokens into one */
+EXEC SQL INCLUDE ../regression;
+
+int main() {
+ EXEC SQL BEGIN DECLARE SECTION;
+ int item[3], ind[3], i;
+ EXEC SQL END DECLARE SECTION;
+
+ ECPGdebug(1, stderr);
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL SET AUTOCOMMIT TO ON;
+ EXEC SQL WHENEVER SQLWARNING SQLPRINT;
+ EXEC SQL WHENEVER SQLERROR SQLPRINT;
+
+ EXEC SQL CREATE TABLE T ( Item1 int, Item2 int );
+
+ EXEC SQL INSERT INTO t
+ SELECT 1,nullif(y-1,0)
+ FROM generate_series(1,3) WITH ORDINALITY AS series(x,y);
+
+ EXEC SQL SELECT Item2 INTO :item:ind FROM T ORDER BY Item2 NULLS LAST;
+
+ for (i=0; i<3; i++)
+ printf("item[%d] = %d\n", i, ind[i] ? -1 : item[i]);
+
+ EXEC SQL ALTER TABLE T ALTER Item1 TYPE bigint;
+ EXEC SQL ALTER TABLE T ALTER COLUMN Item2 SET DATA TYPE smallint;
+
+ EXEC SQL DROP TABLE T;
+
+ EXEC SQL DISCONNECT ALL;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/prepareas.pgc b/src/interfaces/ecpg/test/sql/prepareas.pgc
new file mode 100644
index 0000000..85f03d7
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/prepareas.pgc
@@ -0,0 +1,198 @@
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+
+exec sql include ../regression;
+exec sql whenever sqlerror sqlprint;
+
+static void
+check_result_of_insert(void)
+{
+ exec sql begin declare section;
+ int ivar1 = 0, ivar2 = 0;
+ exec sql end declare section;
+
+ exec sql select c1,c2 into :ivar1,:ivar2 from test;
+ printf("%d %d\n", ivar1, ivar2);
+}
+
+int main(void)
+{
+ exec sql begin declare section;
+ int ivar1 = 1, ivar2 = 2;
+ char v_include_dq_name[16], v_include_ws_name[16], v_normal_name[16], v_query[64];
+ exec sql end declare section;
+
+ strcpy(v_normal_name, "normal_name");
+ strcpy(v_include_dq_name, "include_\"_name");
+ strcpy(v_include_ws_name, "include_ _name");
+ strcpy(v_query, "insert into test values(?,?)");
+
+ /*
+ * preparing for test
+ */
+ exec sql connect to REGRESSDB1;
+ exec sql begin;
+ exec sql create table test (c1 int, c2 int);
+ exec sql commit work;
+ exec sql begin;
+
+ /*
+ * Non dynamic statement
+ */
+ exec sql truncate test;
+ printf("+++++ Test for prepnormal +++++\n");
+ printf("insert into test values(:ivar1,:ivar2)\n");
+ exec sql insert into test values(:ivar1,:ivar2);
+ check_result_of_insert();
+
+ exec sql truncate test;
+ printf("+++++ Test for execute immediate +++++\n");
+ printf("execute immediate \"insert into test values(1,2)\"\n");
+ exec sql execute immediate "insert into test values(1,2)";
+ check_result_of_insert();
+
+ /*
+ * PREPARE FROM
+ */
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE ident FROM CString +++++\n");
+ printf("prepare ident_name from \"insert into test values(?,?)\"\n");
+ exec sql prepare ident_name from "insert into test values(?,?)";
+ printf("execute ident_name using :ivar1,:ivar2\n");
+ exec sql execute ident_name using :ivar1,:ivar2;
+ check_result_of_insert();
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE char_variable_normal_name FROM char_variable +++++\n");
+ printf("prepare :v_normal_name from :v_query\n");
+ exec sql prepare :v_normal_name from :v_query;
+ printf("execute :v_normal_name using :ivar1,:ivar2\n");
+ exec sql execute :v_normal_name using :ivar1,:ivar2;
+ check_result_of_insert();
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE char_variable_inc_dq_name FROM char_variable +++++\n");
+ printf("prepare :v_include_dq_name from :v_query\n");
+ exec sql prepare :v_include_dq_name from :v_query;
+ printf("execute :v_include_dq_name using :ivar1,:ivar2\n");
+ exec sql execute :v_include_dq_name using :ivar1,:ivar2;
+ check_result_of_insert();
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE char_variable_inc_ws_name FROM char_variable +++++\n");
+ printf("prepare :v_include_ws_name from :v_query\n");
+ exec sql prepare :v_include_ws_name from :v_query;
+ printf("execute :v_include_ws_name using :ivar1,:ivar2\n");
+ exec sql execute :v_include_ws_name using :ivar1,:ivar2;
+ check_result_of_insert();
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE CString_inc_ws_name FROM char_variable +++++\n");
+ printf("prepare \"include_ _name\" from :v_query\n");
+ exec sql prepare "include_ _name" from :v_query;
+ printf("exec sql execute \"include_ _name\" using :ivar1,:ivar2\n");
+ exec sql execute "include_ _name" using :ivar1,:ivar2;
+ check_result_of_insert();
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE CString_normal_name FROM char_variable +++++\n");
+ printf("prepare \"norma_name\" from :v_query\n");
+ exec sql prepare "normal_name" from :v_query;
+ printf("exec sql execute \"normal_name\" using :ivar1,:ivar2\n");
+ exec sql execute "normal_name" using :ivar1,:ivar2;
+ check_result_of_insert();
+
+ /*
+ * PREPARE AS
+ */
+ exec sql deallocate "ident_name";
+ exec sql deallocate "normal_name";
+ exec sql deallocate "include_ _name";
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE ident(typelist) AS +++++\n");
+ printf("prepare ident_name(int,int) as insert into test values($1,$2)\n");
+ exec sql prepare ident_name(int,int) as insert into test values($1,$2);
+ printf("execute ident_name(:ivar1,:ivar2)\n");
+ exec sql execute ident_name(:ivar1,:ivar2);
+ check_result_of_insert();
+ exec sql deallocate "ident_name";
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE CString_normal_name(typelist) AS +++++\n");
+ printf("prepare \"normal_name\"(int,int) as insert into test values($1,$2)\n");
+ exec sql prepare "normal_name"(int,int) as insert into test values($1,$2);
+ printf("execute \"normal_name\"(:ivar1,:ivar2)\n");
+ exec sql execute "normal_name"(:ivar1,:ivar2);
+ check_result_of_insert();
+ exec sql deallocate "normal_name";
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE CString_include_ws_name(typelist) AS +++++\n");
+ printf("prepare \"include_ _name\"(int,int) as insert into test values($1,$2)\n");
+ exec sql prepare "include_ _name"(int,int) as insert into test values($1,$2);
+ printf("execute \"include_ _name\"(:ivar1,:ivar2)\n");
+ exec sql execute "include_ _name"(:ivar1,:ivar2);
+ check_result_of_insert();
+ exec sql deallocate "include_ _name";
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE char_variable_normal_name(typelist) AS +++++\n");
+ printf("prepare :v_normal_name(int,int) as insert into test values($1,$2)\n");
+ exec sql prepare :v_normal_name(int,int) as insert into test values($1,$2);
+ printf("execute :v_normal_name(:ivar1,:ivar2)\n");
+ exec sql execute :v_normal_name(:ivar1,:ivar2);
+ check_result_of_insert();
+ exec sql deallocate "normal_name";
+
+ exec sql truncate test;
+ printf("+++++ Test for PREPARE char_variable_include_ws_name(typelist) AS +++++\n");
+ printf("prepare :v_include_ws_name(int,int) as insert into test values($1,$2)\n");
+ exec sql prepare :v_include_ws_name(int,int) as insert into test values($1,$2);
+ printf("execute :v_include_ws_name(:ivar1,:ivar2)\n");
+ exec sql execute :v_include_ws_name(:ivar1,:ivar2);
+ check_result_of_insert();
+ exec sql deallocate "include_ _name";
+
+ exec sql truncate test;
+ printf("+++++ Test for EXECUTE :v_normal_name(const,const) +++++\n");
+ printf("prepare :v_normal_name from :v_query\n");
+ exec sql prepare :v_normal_name from :v_query;
+ printf("execute :v_normal_name(1,2)\n");
+ exec sql execute :v_normal_name(1,2);
+ check_result_of_insert();
+ exec sql deallocate "normal_name";
+
+ exec sql truncate test;
+ printf("+++++ Test for EXECUTE :v_normal_name(expr,expr) +++++\n");
+ printf("prepare :v_normal_name from :v_query\n");
+ exec sql prepare :v_normal_name from :v_query;
+ printf("execute :v_normal_name(0+1,1+1)\n");
+ exec sql execute :v_normal_name(0+1,1+1);
+ check_result_of_insert();
+ exec sql deallocate "normal_name";
+
+ exec sql truncate test;
+ printf("+++++ Test for combination PREPARE FROM and EXECUTE ident(typelist) +++++\n");
+ printf("prepare ident_name from :v_query\n");
+ exec sql prepare ident_name from :v_query;
+ printf("execute ident_name(:ivar1,:ivar2)\n");
+ exec sql execute ident_name(:ivar1,:ivar2);
+ check_result_of_insert();
+ exec sql deallocate "ident_name";
+
+ exec sql truncate test;
+ printf("+++++ Test for combination PREPARE FROM and EXECUTE CString_include_ws_name(typelist) +++++\n");
+ printf("prepare \"include_ _name\" from :v_query\n");
+ exec sql prepare "include_ _name" from :v_query;
+ printf("execute \"include_ _name\"(:ivar1,:ivar2)\n");
+ exec sql execute "include_ _name"(:ivar1,:ivar2);
+ check_result_of_insert();
+ exec sql deallocate "include_ _name";
+
+ exec sql drop table test;
+ exec sql commit work;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/quote.pgc b/src/interfaces/ecpg/test/sql/quote.pgc
new file mode 100644
index 0000000..9b62b7d
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/quote.pgc
@@ -0,0 +1,61 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+EXEC SQL INCLUDE ../regression;
+
+int main() {
+ EXEC SQL BEGIN DECLARE SECTION;
+ char var[25];
+ int i, loopcount;
+ EXEC SQL END DECLARE SECTION;
+
+ ECPGdebug(1, stderr);
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL SET AUTOCOMMIT TO ON;
+ EXEC SQL WHENEVER SQLWARNING SQLPRINT;
+ EXEC SQL WHENEVER SQLERROR STOP;
+
+ EXEC SQL CREATE TABLE "My_Table" ( Item1 int, Item2 text );
+
+ EXEC SQL SET standard_conforming_strings TO off;
+
+ EXEC SQL SHOW standard_conforming_strings INTO :var;
+ printf("Standard conforming strings: %s\n", var);
+
+ /* this is a\\b actually */
+ EXEC SQL INSERT INTO "My_Table" VALUES ( 1, 'a\\\\b' );
+ /* this is a\\b */
+ EXEC SQL INSERT INTO "My_Table" VALUES ( 1, E'a\\\\b' );
+
+ EXEC SQL SET standard_conforming_strings TO on;
+
+ EXEC SQL SHOW standard_conforming_strings INTO :var;
+ printf("Standard conforming strings: %s\n", var);
+
+ /* this is a\\\\b actually */
+ EXEC SQL INSERT INTO "My_Table" VALUES ( 2, 'a\\\\b' );
+ /* this is a\\b */
+ EXEC SQL INSERT INTO "My_Table" VALUES ( 2, E'a\\\\b' );
+
+ EXEC SQL BEGIN;
+ EXEC SQL DECLARE C CURSOR FOR SELECT * FROM "My_Table";
+
+ EXEC SQL OPEN C;
+
+ EXEC SQL WHENEVER NOT FOUND DO BREAK;
+
+ for (loopcount = 0; loopcount < 100; loopcount++)
+ {
+ EXEC SQL FETCH C INTO :i, :var;
+ printf("value: %d %s\n", i, var);
+ }
+
+ EXEC SQL ROLLBACK;
+ EXEC SQL DROP TABLE "My_Table";
+
+ EXEC SQL DISCONNECT ALL;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/show.pgc b/src/interfaces/ecpg/test/sql/show.pgc
new file mode 100644
index 0000000..339678a
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/show.pgc
@@ -0,0 +1,41 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+EXEC SQL INCLUDE ../regression;
+
+int main() {
+ EXEC SQL BEGIN DECLARE SECTION;
+ char var[25] = "public";
+ EXEC SQL END DECLARE SECTION;
+
+ ECPGdebug(1, stderr);
+ EXEC SQL CONNECT TO REGRESSDB1;
+
+ EXEC SQL WHENEVER SQLWARNING SQLPRINT;
+ EXEC SQL WHENEVER SQLERROR SQLPRINT;
+
+ EXEC SQL SET search_path TO :var;
+ EXEC SQL SHOW search_path INTO :var;
+ printf("Var: Search path: %s\n", var);
+
+ EXEC SQL SET search_path TO 'public';
+ EXEC SQL SHOW search_path INTO :var;
+ printf("Var: Search path: %s\n", var);
+
+ EXEC SQL SET standard_conforming_strings TO off;
+ EXEC SQL SHOW standard_conforming_strings INTO :var;
+ printf("Var: Standard conforming strings: %s\n", var);
+
+ EXEC SQL SET TIME ZONE PST8PDT;
+ EXEC SQL SHOW TIME ZONE INTO :var;
+ printf("Time Zone: %s\n", var);
+
+ EXEC SQL SET TRANSACTION ISOLATION LEVEL read committed;
+ EXEC SQL SHOW TRANSACTION ISOLATION LEVEL INTO :var;
+ printf("Transaction isolation level: %s\n", var);
+
+ EXEC SQL DISCONNECT ALL;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/sqlda.pgc b/src/interfaces/ecpg/test/sql/sqlda.pgc
new file mode 100644
index 0000000..e551385
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/sqlda.pgc
@@ -0,0 +1,266 @@
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+#include "ecpg_config.h"
+
+exec sql include ../regression;
+exec sql include sqlda.h;
+exec sql include pgtypes_numeric.h;
+
+exec sql whenever sqlerror stop;
+
+/* These shouldn't be under DECLARE SECTION */
+sqlda_t *inp_sqlda, *outp_sqlda, *outp_sqlda1;
+
+static void
+dump_sqlda(sqlda_t *sqlda)
+{
+ int i;
+
+ if (sqlda == NULL)
+ {
+ printf("dump_sqlda called with NULL sqlda\n");
+ return;
+ }
+
+ for (i = 0; i < sqlda->sqld; i++)
+ {
+ if (sqlda->sqlvar[i].sqlind && *(sqlda->sqlvar[i].sqlind) == -1)
+ printf("name sqlda descriptor: '%s' value NULL'\n", sqlda->sqlvar[i].sqlname.data);
+ else
+ switch (sqlda->sqlvar[i].sqltype)
+ {
+ case ECPGt_char:
+ printf("name sqlda descriptor: '%s' value '%s'\n", sqlda->sqlvar[i].sqlname.data, sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_int:
+ printf("name sqlda descriptor: '%s' value %d\n", sqlda->sqlvar[i].sqlname.data, *(int *)sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_long:
+ printf("name sqlda descriptor: '%s' value %ld\n", sqlda->sqlvar[i].sqlname.data, *(long int *)sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_long_long:
+ printf(
+#ifdef _WIN32
+ "name sqlda descriptor: '%s' value %I64d\n",
+#else
+ "name sqlda descriptor: '%s' value %lld\n",
+#endif
+ sqlda->sqlvar[i].sqlname.data, *(long long int *)sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_double:
+ printf("name sqlda descriptor: '%s' value %f\n", sqlda->sqlvar[i].sqlname.data, *(double *)sqlda->sqlvar[i].sqldata);
+ break;
+ case ECPGt_numeric:
+ {
+ char *val;
+
+ val = PGTYPESnumeric_to_asc((numeric*)sqlda->sqlvar[i].sqldata, -1);
+ printf("name sqlda descriptor: '%s' value NUMERIC '%s'\n", sqlda->sqlvar[i].sqlname.data, val);
+ PGTYPESchar_free(val);
+ break;
+ }
+ }
+ }
+}
+
+int
+main (void)
+{
+exec sql begin declare section;
+ char *stmt1 = "SELECT * FROM t1";
+ char *stmt2 = "SELECT * FROM t1 WHERE id = ?";
+ int rec;
+ int id;
+exec sql end declare section;
+
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ exec sql connect to REGRESSDB1 as regress1;
+
+ strcpy(msg, "set");
+ exec sql set datestyle to iso;
+
+ strcpy(msg, "create");
+ exec sql create table t1(
+ id integer,
+ t text,
+ d1 numeric,
+ d2 float8,
+ c char(10),
+ big bigint
+ );
+
+ strcpy(msg, "insert");
+ exec sql insert into t1 values
+ (1, 'a', 1.0, 1, 'a',1111111111111111111),
+ (2, null, null, null, null,null),
+ (3, 'c', 0.0, 3, 'c',3333333333333333333),
+ (4, 'd', 'NaN', 4, 'd',4444444444444444444),
+ (5, 'e', 0.001234, 5, 'e',5555555555555555555);
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ /* SQLDA test for getting all records from a table */
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id1 from :stmt1;
+
+ strcpy(msg, "declare");
+ exec sql declare mycur1 cursor for st_id1;
+
+ strcpy(msg, "open");
+ exec sql open mycur1;
+
+ exec sql whenever not found do break;
+
+ rec = 0;
+ while (1)
+ {
+ strcpy(msg, "fetch");
+ exec sql fetch 1 from mycur1 into descriptor outp_sqlda;
+
+ printf("FETCH RECORD %d\n", ++rec);
+ dump_sqlda(outp_sqlda);
+ }
+
+ exec sql whenever not found continue;
+
+ strcpy(msg, "close");
+ exec sql close mycur1;
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate prepare st_id1;
+
+ free(outp_sqlda);
+
+ /* SQLDA test for getting ALL records into the sqlda list */
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id2 from :stmt1;
+
+ strcpy(msg, "declare");
+ exec sql declare mycur2 cursor for st_id2;
+
+ strcpy(msg, "open");
+ exec sql open mycur2;
+
+ strcpy(msg, "fetch");
+ exec sql fetch all from mycur2 into descriptor outp_sqlda;
+
+ outp_sqlda1 = outp_sqlda;
+ rec = 0;
+ while (outp_sqlda1)
+ {
+ sqlda_t *ptr;
+ printf("FETCH RECORD %d\n", ++rec);
+ dump_sqlda(outp_sqlda1);
+
+ ptr = outp_sqlda1;
+ outp_sqlda1 = outp_sqlda1->desc_next;
+ free(ptr);
+ }
+
+ strcpy(msg, "close");
+ exec sql close mycur2;
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate prepare st_id2;
+
+ /* SQLDA test for getting one record using an input descriptor */
+
+ /*
+ * Input sqlda has to be built manually
+ * sqlda_t contains 1 sqlvar_t structure already.
+ */
+ inp_sqlda = (sqlda_t *)malloc(sizeof(sqlda_t));
+ memset(inp_sqlda, 0, sizeof(sqlda_t));
+ inp_sqlda->sqln = 1;
+
+ inp_sqlda->sqlvar[0].sqltype = ECPGt_int;
+ inp_sqlda->sqlvar[0].sqldata = (char *)&id;
+
+ printf("EXECUTE RECORD 4\n");
+
+ id = 4;
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ exec sql prepare st_id3 FROM :stmt2;
+
+ strcpy(msg, "execute");
+ exec sql execute st_id3 using descriptor inp_sqlda into descriptor outp_sqlda;
+
+ dump_sqlda(outp_sqlda);
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate prepare st_id3;
+
+ free(inp_sqlda);
+ free(outp_sqlda);
+
+ /* SQLDA test for getting one record using an input descriptor
+ * on a named connection
+ */
+
+ exec sql connect to REGRESSDB1 as con2;
+
+ /*
+ * Input sqlda has to be built manually
+ * sqlda_t contains 1 sqlvar_t structure already.
+ */
+ inp_sqlda = (sqlda_t *)malloc(sizeof(sqlda_t));
+ memset(inp_sqlda, 0, sizeof(sqlda_t));
+ inp_sqlda->sqln = 1;
+
+ inp_sqlda->sqlvar[0].sqltype = ECPGt_int;
+ inp_sqlda->sqlvar[0].sqldata = (char *)&id;
+
+ printf("EXECUTE RECORD 4\n");
+
+ id = 4;
+
+ outp_sqlda = NULL;
+
+ strcpy(msg, "prepare");
+ exec sql at con2 prepare st_id4 FROM :stmt2;
+
+ strcpy(msg, "execute");
+ exec sql at con2 execute st_id4 using descriptor inp_sqlda into descriptor outp_sqlda;
+
+ dump_sqlda(outp_sqlda);
+
+ strcpy(msg, "commit");
+ exec sql at con2 commit;
+
+ strcpy(msg, "deallocate");
+ exec sql deallocate prepare st_id4;
+
+ free(inp_sqlda);
+ free(outp_sqlda);
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect con2;
+
+ /* End test */
+
+ strcpy(msg, "drop");
+ exec sql drop table t1;
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/sql/twophase.pgc b/src/interfaces/ecpg/test/sql/twophase.pgc
new file mode 100644
index 0000000..38913d7
--- /dev/null
+++ b/src/interfaces/ecpg/test/sql/twophase.pgc
@@ -0,0 +1,44 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+exec sql include ../regression;
+
+exec sql whenever sqlerror sqlprint;
+
+int main(void)
+{
+ char msg[128];
+
+ ECPGdebug(1, stderr);
+
+ strcpy(msg, "connect");
+ exec sql connect to REGRESSDB1;
+ exec sql set autocommit to off;
+
+ strcpy(msg, "create");
+ exec sql create table t1(c int);
+
+ strcpy(msg, "commit");
+ exec sql commit;
+
+ strcpy(msg, "begin");
+ exec sql begin;
+
+ strcpy(msg, "insert");
+ exec sql insert into t1 values(1);
+
+ strcpy(msg, "prepare transaction");
+ exec sql prepare transaction 'gxid';
+
+ strcpy(msg, "commit prepared");
+ exec sql commit prepared 'gxid';
+
+ strcpy(msg, "drop");
+ exec sql drop table t1;
+
+ strcpy(msg, "disconnect");
+ exec sql disconnect current;
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/thread/.gitignore b/src/interfaces/ecpg/test/thread/.gitignore
new file mode 100644
index 0000000..12ff319
--- /dev/null
+++ b/src/interfaces/ecpg/test/thread/.gitignore
@@ -0,0 +1,10 @@
+/alloc
+/alloc.c
+/descriptor
+/descriptor.c
+/prep
+/prep.c
+/thread
+/thread.c
+/thread_implicit
+/thread_implicit.c
diff --git a/src/interfaces/ecpg/test/thread/Makefile b/src/interfaces/ecpg/test/thread/Makefile
new file mode 100644
index 0000000..1b4ddcf
--- /dev/null
+++ b/src/interfaces/ecpg/test/thread/Makefile
@@ -0,0 +1,13 @@
+subdir = src/interfaces/ecpg/test/thread
+top_builddir = ../../../../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/$(subdir)/../Makefile.regress
+
+
+TESTS = thread_implicit thread_implicit.c \
+ thread thread.c \
+ prep prep.c \
+ descriptor descriptor.c \
+ alloc alloc.c
+
+all: $(TESTS)
diff --git a/src/interfaces/ecpg/test/thread/alloc.pgc b/src/interfaces/ecpg/test/thread/alloc.pgc
new file mode 100644
index 0000000..c0021a7
--- /dev/null
+++ b/src/interfaces/ecpg/test/thread/alloc.pgc
@@ -0,0 +1,90 @@
+#include <stdint.h>
+#include <stdlib.h>
+#include "ecpg_config.h"
+
+#ifndef ENABLE_THREAD_SAFETY
+int
+main(void)
+{
+ printf("No threading enabled.\n");
+ return 0;
+}
+#else
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <process.h>
+#include <locale.h>
+#else
+#include <pthread.h>
+#endif
+#include <stdio.h>
+
+#define THREADS 16
+#define REPEATS 50
+
+exec sql include sqlca;
+exec sql include ../regression;
+
+exec sql whenever sqlerror sqlprint;
+exec sql whenever not found sqlprint;
+
+#ifdef WIN32
+static unsigned __stdcall fn(void* arg)
+#else
+static void* fn(void* arg)
+#endif
+{
+ int i;
+
+ EXEC SQL BEGIN DECLARE SECTION;
+ int value;
+ char name[100];
+ char **r = NULL;
+ EXEC SQL END DECLARE SECTION;
+
+ value = (intptr_t) arg;
+ sprintf(name, "Connection: %d", value);
+
+ EXEC SQL CONNECT TO REGRESSDB1 AS :name;
+ EXEC SQL SET AUTOCOMMIT TO ON;
+ for (i = 1; i <= REPEATS; ++i)
+ {
+ EXEC SQL SELECT relname INTO :r FROM pg_class WHERE relname = 'pg_class';
+ free(r);
+ r = NULL;
+ }
+ EXEC SQL DISCONNECT :name;
+
+ return 0;
+}
+
+int main ()
+{
+ intptr_t i;
+#ifdef WIN32
+ HANDLE threads[THREADS];
+#else
+ pthread_t threads[THREADS];
+#endif
+
+#ifdef WIN32
+ for (i = 0; i < THREADS; ++i)
+ {
+ unsigned id;
+ threads[i] = (HANDLE)_beginthreadex(NULL, 0, fn, (void*)i, 0, &id);
+ }
+
+ WaitForMultipleObjects(THREADS, threads, TRUE, INFINITE);
+ for (i = 0; i < THREADS; ++i)
+ CloseHandle(threads[i]);
+#else
+ for (i = 0; i < THREADS; ++i)
+ pthread_create(&threads[i], NULL, fn, (void *) i);
+ for (i = 0; i < THREADS; ++i)
+ pthread_join(threads[i], NULL);
+#endif
+
+ return 0;
+}
+#endif
diff --git a/src/interfaces/ecpg/test/thread/descriptor.pgc b/src/interfaces/ecpg/test/thread/descriptor.pgc
new file mode 100644
index 0000000..76a7a5d
--- /dev/null
+++ b/src/interfaces/ecpg/test/thread/descriptor.pgc
@@ -0,0 +1,68 @@
+#ifdef ENABLE_THREAD_SAFETY
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <process.h>
+#include <locale.h>
+#else
+#include <pthread.h>
+#endif
+#endif
+#include <stdio.h>
+
+#define THREADS 16
+#define REPEATS 50000
+
+EXEC SQL include sqlca;
+EXEC SQL whenever sqlerror sqlprint;
+EXEC SQL whenever not found sqlprint;
+
+#if defined(ENABLE_THREAD_SAFETY) && defined(WIN32)
+static unsigned __stdcall fn(void* arg)
+#else
+static void* fn(void* arg)
+#endif
+{
+ int i;
+
+ for (i = 1; i <= REPEATS; ++i)
+ {
+ EXEC SQL ALLOCATE DESCRIPTOR mydesc;
+ EXEC SQL DEALLOCATE DESCRIPTOR mydesc;
+ }
+
+ return 0;
+}
+
+int main ()
+{
+#ifdef ENABLE_THREAD_SAFETY
+ int i;
+#ifdef WIN32
+ HANDLE threads[THREADS];
+#else
+ pthread_t threads[THREADS];
+#endif
+
+#ifdef WIN32
+ for (i = 0; i < THREADS; ++i)
+ {
+ unsigned id;
+ threads[i] = (HANDLE)_beginthreadex(NULL, 0, fn, NULL, 0, &id);
+ }
+
+ WaitForMultipleObjects(THREADS, threads, TRUE, INFINITE);
+ for (i = 0; i < THREADS; ++i)
+ CloseHandle(threads[i]);
+#else
+ for (i = 0; i < THREADS; ++i)
+ pthread_create(&threads[i], NULL, fn, NULL);
+ for (i = 0; i < THREADS; ++i)
+ pthread_join(threads[i], NULL);
+#endif
+#else
+ fn(NULL);
+#endif
+
+ return 0;
+}
diff --git a/src/interfaces/ecpg/test/thread/prep.pgc b/src/interfaces/ecpg/test/thread/prep.pgc
new file mode 100644
index 0000000..d7ecfd4
--- /dev/null
+++ b/src/interfaces/ecpg/test/thread/prep.pgc
@@ -0,0 +1,96 @@
+#include <stdint.h>
+#include <stdlib.h>
+#include "ecpg_config.h"
+
+#ifndef ENABLE_THREAD_SAFETY
+int
+main(void)
+{
+ printf("No threading enabled.\n");
+ return 0;
+}
+#else
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <process.h>
+#include <locale.h>
+#else
+#include <pthread.h>
+#endif
+#include <stdio.h>
+
+#define THREADS 16
+#define REPEATS 50
+
+exec sql include sqlca;
+exec sql include ../regression;
+
+exec sql whenever sqlerror sqlprint;
+exec sql whenever not found sqlprint;
+
+#ifdef WIN32
+static unsigned __stdcall fn(void* arg)
+#else
+static void* fn(void* arg)
+#endif
+{
+ int i;
+
+ EXEC SQL BEGIN DECLARE SECTION;
+ int value;
+ char name[100];
+ char query[256] = "INSERT INTO T VALUES ( ? )";
+ EXEC SQL END DECLARE SECTION;
+
+ value = (intptr_t) arg;
+ sprintf(name, "Connection: %d", value);
+
+ EXEC SQL CONNECT TO REGRESSDB1 AS :name;
+ EXEC SQL SET AUTOCOMMIT TO ON;
+ for (i = 1; i <= REPEATS; ++i)
+ {
+ EXEC SQL PREPARE I FROM :query;
+ EXEC SQL EXECUTE I USING :value;
+ }
+ EXEC SQL DEALLOCATE I;
+ EXEC SQL DISCONNECT :name;
+
+ return 0;
+}
+
+int main ()
+{
+ intptr_t i;
+#ifdef WIN32
+ HANDLE threads[THREADS];
+#else
+ pthread_t threads[THREADS];
+#endif
+
+ EXEC SQL CONNECT TO REGRESSDB1;
+ EXEC SQL SET AUTOCOMMIT TO ON;
+ EXEC SQL DROP TABLE IF EXISTS T;
+ EXEC SQL CREATE TABLE T ( i int );
+ EXEC SQL DISCONNECT;
+
+#ifdef WIN32
+ for (i = 0; i < THREADS; ++i)
+ {
+ unsigned id;
+ threads[i] = (HANDLE)_beginthreadex(NULL, 0, fn, (void*)i, 0, &id);
+ }
+
+ WaitForMultipleObjects(THREADS, threads, TRUE, INFINITE);
+ for (i = 0; i < THREADS; ++i)
+ CloseHandle(threads[i]);
+#else
+ for (i = 0; i < THREADS; ++i)
+ pthread_create(&threads[i], NULL, fn, (void *) i);
+ for (i = 0; i < THREADS; ++i)
+ pthread_join(threads[i], NULL);
+#endif
+
+ return 0;
+}
+#endif
diff --git a/src/interfaces/ecpg/test/thread/thread.pgc b/src/interfaces/ecpg/test/thread/thread.pgc
new file mode 100644
index 0000000..e7d8c00
--- /dev/null
+++ b/src/interfaces/ecpg/test/thread/thread.pgc
@@ -0,0 +1,136 @@
+/*
+ * Thread test program
+ * by Philip Yarra & Lee Kindness.
+ */
+#include <stdint.h>
+#include <stdlib.h>
+#include "ecpg_config.h"
+
+#ifndef ENABLE_THREAD_SAFETY
+int
+main(void)
+{
+ printf("No threading enabled.\n");
+ return 0;
+}
+#else
+#ifndef WIN32
+#include <pthread.h>
+#else
+#include <windows.h>
+#include <locale.h>
+#endif
+
+exec sql include ../regression;
+
+void *test_thread(void *arg);
+
+int nthreads = 10;
+int iterations = 20;
+
+int main()
+{
+#ifndef WIN32
+ pthread_t *threads;
+#else
+ HANDLE *threads;
+#endif
+ intptr_t n;
+ EXEC SQL BEGIN DECLARE SECTION;
+ int l_rows;
+ EXEC SQL END DECLARE SECTION;
+
+ /* Do not switch on debug output for regression tests. The threads get executed in
+ * more or less random order */
+ /* ECPGdebug(1, stderr); */
+
+ /* setup test_thread table */
+ EXEC SQL CONNECT TO REGRESSDB1;
+ EXEC SQL DROP TABLE test_thread; /* DROP might fail */
+ EXEC SQL COMMIT;
+ EXEC SQL CREATE TABLE
+ test_thread(tstamp TIMESTAMP NOT NULL DEFAULT CAST(timeofday() AS TIMESTAMP),
+ thread TEXT NOT NULL,
+ iteration INTEGER NOT NULL,
+ PRIMARY KEY(thread, iteration));
+ EXEC SQL COMMIT;
+ EXEC SQL DISCONNECT;
+
+ /* create, and start, threads */
+ threads = calloc(nthreads, sizeof(threads[0]));
+ if( threads == NULL )
+ {
+ fprintf(stderr, "Cannot alloc memory\n");
+ return 1;
+ }
+ for( n = 0; n < nthreads; n++ )
+ {
+#ifndef WIN32
+ pthread_create(&threads[n], NULL, test_thread, (void *) (n + 1));
+#else
+ threads[n] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) (void (*) (void)) test_thread, (void *) (n + 1), 0, NULL);
+#endif
+ }
+
+ /* wait for thread completion */
+#ifndef WIN32
+ for( n = 0; n < nthreads; n++ )
+ {
+ pthread_join(threads[n], NULL);
+ }
+#else
+ WaitForMultipleObjects(nthreads, threads, TRUE, INFINITE);
+#endif
+ free(threads);
+
+ /* and check results */
+ EXEC SQL CONNECT TO REGRESSDB1;
+ EXEC SQL SELECT COUNT(*) INTO :l_rows FROM test_thread;
+ EXEC SQL COMMIT;
+ EXEC SQL DISCONNECT;
+ if( l_rows == (nthreads * iterations) )
+ printf("Success.\n");
+ else
+ printf("ERROR: Failure - expecting %d rows, got %d.\n", nthreads * iterations, l_rows);
+
+ return 0;
+}
+
+void *test_thread(void *arg)
+{
+ long threadnum = (intptr_t) arg;
+
+ EXEC SQL BEGIN DECLARE SECTION;
+ int l_i;
+ char l_connection[128];
+ EXEC SQL END DECLARE SECTION;
+
+ /* build up connection name, and connect to database */
+#ifndef _MSC_VER
+ snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
+#else
+ _snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
+#endif
+ EXEC SQL WHENEVER sqlerror sqlprint;
+ EXEC SQL CONNECT TO REGRESSDB1 AS :l_connection;
+ if( sqlca.sqlcode != 0 )
+ {
+ printf("%s: ERROR: cannot connect to database!\n", l_connection);
+ return NULL;
+ }
+ EXEC SQL AT :l_connection BEGIN;
+
+ /* insert into test_thread table */
+ for( l_i = 1; l_i <= iterations; l_i++ )
+ {
+ EXEC SQL AT :l_connection INSERT INTO test_thread(thread, iteration) VALUES(:l_connection, :l_i);
+ if( sqlca.sqlcode != 0 )
+ printf("%s: ERROR: insert failed!\n", l_connection);
+ }
+
+ /* all done */
+ EXEC SQL AT :l_connection COMMIT;
+ EXEC SQL DISCONNECT :l_connection;
+ return NULL;
+}
+#endif /* ENABLE_THREAD_SAFETY */
diff --git a/src/interfaces/ecpg/test/thread/thread_implicit.pgc b/src/interfaces/ecpg/test/thread/thread_implicit.pgc
new file mode 100644
index 0000000..b4cae7e
--- /dev/null
+++ b/src/interfaces/ecpg/test/thread/thread_implicit.pgc
@@ -0,0 +1,136 @@
+/*
+ * Thread test program
+ * by Lee Kindness.
+ */
+#include <stdint.h>
+#include <stdlib.h>
+#include "ecpg_config.h"
+
+#ifndef ENABLE_THREAD_SAFETY
+int
+main(void)
+{
+ printf("No threading enabled.\n");
+ return 0;
+}
+#else
+#ifndef WIN32
+#include <pthread.h>
+#else
+#include <windows.h>
+#include <locale.h>
+#endif
+
+exec sql include ../regression;
+
+void *test_thread(void *arg);
+
+int nthreads = 10;
+int iterations = 20;
+
+int main()
+{
+#ifndef WIN32
+ pthread_t *threads;
+#else
+ HANDLE *threads;
+#endif
+ intptr_t n;
+ EXEC SQL BEGIN DECLARE SECTION;
+ int l_rows;
+ EXEC SQL END DECLARE SECTION;
+
+ /* Do not switch on debug output for regression tests. The threads get executed in
+ * more or less random order */
+ /* ECPGdebug(1, stderr); */
+
+ /* setup test_thread table */
+ EXEC SQL CONNECT TO REGRESSDB1;
+ EXEC SQL DROP TABLE test_thread; /* DROP might fail */
+ EXEC SQL COMMIT;
+ EXEC SQL CREATE TABLE
+ test_thread(tstamp TIMESTAMP NOT NULL DEFAULT CAST(timeofday() AS TIMESTAMP),
+ thread TEXT NOT NULL,
+ iteration INTEGER NOT NULL,
+ PRIMARY KEY(thread, iteration));
+ EXEC SQL COMMIT;
+ EXEC SQL DISCONNECT;
+
+ /* create, and start, threads */
+ threads = calloc(nthreads, sizeof(threads[0]));
+ if( threads == NULL )
+ {
+ fprintf(stderr, "Cannot alloc memory\n");
+ return 1;
+ }
+ for( n = 0; n < nthreads; n++ )
+ {
+#ifndef WIN32
+ pthread_create(&threads[n], NULL, test_thread, (void *) (n + 1));
+#else
+ threads[n] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) (void (*) (void)) test_thread, (void *) (n+1), 0, NULL);
+#endif
+ }
+
+ /* wait for thread completion */
+#ifndef WIN32
+ for( n = 0; n < nthreads; n++ )
+ {
+ pthread_join(threads[n], NULL);
+ }
+#else
+ WaitForMultipleObjects(nthreads, threads, TRUE, INFINITE);
+#endif
+ free(threads);
+
+ /* and check results */
+ EXEC SQL CONNECT TO REGRESSDB1;
+ EXEC SQL SELECT COUNT(*) INTO :l_rows FROM test_thread;
+ EXEC SQL COMMIT;
+ EXEC SQL DISCONNECT;
+ if( l_rows == (nthreads * iterations) )
+ printf("Success.\n");
+ else
+ printf("ERROR: Failure - expecting %d rows, got %d.\n", nthreads * iterations, l_rows);
+
+ return 0;
+}
+
+void *test_thread(void *arg)
+{
+ long threadnum = (intptr_t) arg;
+
+ EXEC SQL BEGIN DECLARE SECTION;
+ int l_i;
+ char l_connection[128];
+ EXEC SQL END DECLARE SECTION;
+
+ /* build up connection name, and connect to database */
+#ifndef _MSC_VER
+ snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
+#else
+ _snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
+#endif
+ EXEC SQL WHENEVER sqlerror sqlprint;
+ EXEC SQL CONNECT TO REGRESSDB1 AS :l_connection;
+ if( sqlca.sqlcode != 0 )
+ {
+ printf("%s: ERROR: cannot connect to database!\n", l_connection);
+ return NULL;
+ }
+ EXEC SQL BEGIN;
+
+ /* insert into test_thread table */
+ for( l_i = 1; l_i <= iterations; l_i++ )
+ {
+ EXEC SQL INSERT INTO test_thread(thread, iteration) VALUES(:l_connection, :l_i);
+ if( sqlca.sqlcode != 0 )
+ printf("%s: ERROR: insert failed!\n", l_connection);
+ }
+
+ /* all done */
+ EXEC SQL COMMIT;
+ EXEC SQL DISCONNECT :l_connection;
+ return NULL;
+}
+#endif /* ENABLE_THREAD_SAFETY */