@@ -4541,7 +4541,7 @@ binary_upgrade_set_type_oids_by_type_oid(Archive *fout,
4541
4541
*/
4542
4542
if (include_multirange_type)
4543
4543
{
4544
- if (fout->remoteVersion >= 130000 )
4544
+ if (fout->remoteVersion >= 140000 )
4545
4545
{
4546
4546
appendPQExpBuffer(upgrade_query,
4547
4547
"SELECT t.oid, t.typarray "
@@ -8402,7 +8402,7 @@ getCasts(Archive *fout, int *numCasts)
8402
8402
int i_castcontext;
8403
8403
int i_castmethod;
8404
8404
8405
- if (fout->remoteVersion >= 130000 )
8405
+ if (fout->remoteVersion >= 140000 )
8406
8406
{
8407
8407
appendPQExpBufferStr(query, "SELECT tableoid, oid, "
8408
8408
"castsource, casttarget, castfunc, castcontext, "
@@ -10709,7 +10709,7 @@ dumpRangeType(Archive *fout, TypeInfo *tyinfo)
10709
10709
appendPQExpBuffer(q, "\n subtype = %s",
10710
10710
PQgetvalue(res, 0, PQfnumber(res, "rngsubtype")));
10711
10711
10712
- if (PQgetvalue (res, 0, PQfnumber(res, "rngmultitype")))
10712
+ if (!PQgetisnull (res, 0, PQfnumber(res, "rngmultitype")))
10713
10713
appendPQExpBuffer(q, ",\n multirange_type_name = %s",
10714
10714
PQgetvalue(res, 0, PQfnumber(res, "rngmultitype")));
10715
10715
0 commit comments