mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Print out error position for CREATE DOMAIN
This is simply done by pushing down the ParseState available in
ProcessUtility() to DefineDomain(), giving more information about the
position of an error when running a CREATE DOMAIN query.
Most of the queries impacted by this change have been added previously
in 0172b4c944.
Author: Kirill Reshke, Jian He
Reviewed-by: Álvaro Herrera, Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/CALdSSPhqfvKbDwqJaY=yEePi_aq61GmMpW88i6ZH7CMG_2Z4Cg@mail.gmail.com
This commit is contained in:
@@ -1712,7 +1712,7 @@ ProcessUtilitySlow(ParseState *pstate,
|
||||
break;
|
||||
|
||||
case T_CreateDomainStmt:
|
||||
address = DefineDomain((CreateDomainStmt *) parsetree);
|
||||
address = DefineDomain(pstate, (CreateDomainStmt *) parsetree);
|
||||
break;
|
||||
|
||||
case T_CreateConversionStmt:
|
||||
|
||||
Reference in New Issue
Block a user