Skip to content

Commit

Permalink
Add support for postgres 9.3
Browse files Browse the repository at this point in the history
This commit maintains backward compatibility for Postgres 9.3
  • Loading branch information
onderkalaci committed Jun 9, 2015
1 parent 623cd9c commit 6982c82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pg_shard.c
Expand Up @@ -1569,11 +1569,15 @@ ColumnDefinitionList(List *columnNameList, List *columnTypeList)
*/
Oid columnTypeId = InvalidOid;
int32 columnTypeMod = -1;
bool missingOK = false;
TypeName *typeName = NULL;
ColumnDef *columnDefinition = NULL;

#if PG_VERSION_NUM <= 90300
parseTypeString(columnType, &columnTypeId, &columnTypeMod);
#else
bool missingOK = false;
parseTypeString(columnType, &columnTypeId, &columnTypeMod, missingOK);
#endif
typeName = makeTypeNameFromOid(columnTypeId, columnTypeMod);

/* we then create the column definition */
Expand Down

0 comments on commit 6982c82

Please sign in to comment.