Kouhei Sutou
null+****@clear*****
Sun Feb 15 14:49:44 JST 2015
Kouhei Sutou 2015-02-15 14:49:44 +0900 (Sun, 15 Feb 2015) New Revision: 9fe0c425bdd5f45930a371b94e577b3ea327047e https://github.com/pgroonga/pgroonga/commit/9fe0c425bdd5f45930a371b94e577b3ea327047e Message: Remove needless checks Modified files: pgroonga.c Modified: pgroonga.c (+0 -14) =================================================================== --- pgroonga.c 2015-02-15 14:49:06 +0900 (b374986) +++ pgroonga.c 2015-02-15 14:49:44 +0900 (aa30331) @@ -412,13 +412,6 @@ PGrnGetType(Relation index, AttrNumber n, unsigned char *flags) break; case VARCHAROID: maxLength = type_maximum_size(attr->atttypid, attr->atttypmod); - if (maxLength < 0) - { - ereport(ERROR, - (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("pgroonga: " - "use text instead of unlimited size varchar"))); - } if (maxLength > 4096) { ereport(ERROR, @@ -436,13 +429,6 @@ PGrnGetType(Relation index, AttrNumber n, unsigned char *flags) #endif case VARCHARARRAYOID: maxLength = type_maximum_size(VARCHAROID, attr->atttypmod); - if (maxLength < 0) - { - ereport(ERROR, - (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("pgroonga: " - "array of unlimited size varchar isn't supported"))); - } if (maxLength > 4096) { ereport(ERROR, -------------- next part -------------- HTML����������������������������...Download