* errtablecolname --- stores schema_name, table_name and column_name * of a table column within the current errordata, where the column name is * given directly rather than extracted from the relation's catalog data. * * Don't use this directly unless errtablecol() is inconvenient for some * reason. This might possibly be needed during intermediate states in ALTER * TABLE, for instance. */
| 6044 | * TABLE, for instance. |
| 6045 | */ |
| 6046 | int |
| 6047 | errtablecolname(Relation rel, const char *colname) |
| 6048 | { |
| 6049 | errtable(rel); |
| 6050 | err_generic_string(PG_DIAG_COLUMN_NAME, colname); |
| 6051 | |
| 6052 | return 0; /* return value does not matter */ |
| 6053 | } |
| 6054 | |
| 6055 | /* |
| 6056 | * errtableconstraint --- stores schema_name, table_name and constraint_name |
no test coverage detected