Handle CreateSchemaCommand changes

Now expects a statement location and length, though passing -1 for both
preserves existing behavior.
pull/1439/head
Jason Petersen 2017-04-20 19:08:31 -06:00
parent 3ca189ce08
commit c0e2a25d92
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
1 changed files with 5 additions and 0 deletions

View File

@ -295,7 +295,12 @@ CreateJobSchema(StringInfo schemaName)
createSchemaStmt->schemaElts = NIL; createSchemaStmt->schemaElts = NIL;
/* actually create schema with the current user as owner */ /* actually create schema with the current user as owner */
#if (PG_VERSION_NUM >= 100000)
CreateSchemaCommand(createSchemaStmt, queryString, -1, -1);
#else
CreateSchemaCommand(createSchemaStmt, queryString); CreateSchemaCommand(createSchemaStmt, queryString);
#endif
CommandCounterIncrement(); CommandCounterIncrement();
/* and reset environment */ /* and reset environment */