Ticket #3234: rel_off_smalint_limit.diff

File rel_off_smalint_limit.diff, 1.3 KB (added by medi@…, 9 years ago)
  • middle-pgsql.c

     
    9999        //table: t_rel,
    100100         name: "%s_rels",
    101101        start: "BEGIN;\n",
    102        create: "CREATE TABLE %s_rels(id int4 PRIMARY KEY, way_off int2, rel_off int2, parts int4[], members text[], tags text[], pending boolean not null);\n",
     102       create: "CREATE TABLE %s_rels(id int4 PRIMARY KEY, way_off int4, rel_off int4, parts int4[], members text[], tags text[], pending boolean not null);\n",
    103103 create_index: "CREATE INDEX %s_rels_idx ON %s_rels (id) TABLESPACE %s WHERE pending;\n",
    104104array_indexes: "CREATE INDEX %s_rels_parts ON %s_rels USING gin (parts gin__int_ops) TABLESPACE %s;\n",
    105       prepare: "PREPARE insert_rel (int4, int2, int2, int[], text[], text[]) AS INSERT INTO %s_rels VALUES ($1,$2,$3,$4,$5,$6,false);\n"
     105      prepare: "PREPARE insert_rel (int4, int4, int4, int[], text[], text[]) AS INSERT INTO %s_rels VALUES ($1,$2,$3,$4,$5,$6,false);\n"
    106106               "PREPARE get_rel (int4) AS SELECT members, tags, array_upper(members,1)/2 FROM %s_rels WHERE id = $1;\n"
    107107               "PREPARE rel_done(int4) AS UPDATE %s_rels SET pending = false WHERE id = $1;\n"
    108108               "PREPARE pending_rels AS SELECT id FROM %s_rels WHERE pending;\n"