Closed dynamobi-build closed 12 years ago
[author="jvs", created="Sun, 30 Sep 2007 20:31:11 -0500 (GMT-05:00)"]
Confirmed: this is a bug. It doesn't seem to be passing down the schema from the CREATE TYPE as it should. You should not need any of the qualifiers inside of the METHOD definition (nor are they legal).
[author="jvs", created="Sat, 6 Oct 2007 19:12:06 -0500 (GMT-05:00)"]
I'm fixing this, and will add unit tests in unitsql/ddl/udt.sql. Where is allTypes.sql?
For the RETURNS clause, I'm not sure whether a qualifier should be required on the type. The spec says for a constructor, it must match the type name, but doesn't say whether the schema should be implied if none is specified. I'm assuming not, since the set path notion is well-defined; so either set path has to have been issued, or an explicit qualifier has to be supplied.
[author="jhyde", created="Sat, 6 Oct 2007 22:53:57 -0500 (GMT-05:00)"]
I checked in allTypes.sql under a different name - farrago/unitsql/ddl/ddlgen.sql.
Since I logged that bug, I changed the DDL generator to not generate a RETURNS clause for a constructor method. So the return type of a constructor doesn't matter too much.
I am still fixing some problems with that test and FarragoDdlGeneratorTest - the test passes, but the catalog leak check is failing. So don't integrate to //open/dev yet.
[author="jvs", created="Sun, 7 Oct 2007 17:18:44 -0500 (GMT-05:00)"]
Fix checked in on lu/dev in eigenchange 9966.
[reporter="jhyde", created="Sat, 29 Sep 2007 23:39:03 -0500 (GMT-05:00)"] Cannot create method within a user-defined type you have not called SET SCHEMA first.
For example,