Eng 6718 dr ddl

DR TABLE statement is processed after other H-SQL DDL statements like DROP
or ALTER. So if you drop or rename a table, the DR TABLE statement in the
DDL will fail because it can't find any definition for that table in the
catalog.


On Tue, Aug 19, 2014 at 3:51 PM, Mike Ismert <notifications@github.com>
wrote:

> In src/frontend/org/voltdb/utils/CatalogSchemaTools.java:
>
> > @@ -328,6 +328,10 @@ else if (defaultvalue.toLowerCase().equals("null") && nullable) {
> >              sb.append("EXPORT TABLE " + catalog_tbl.getTypeName() + ";\n");
> >          }
> >
> > +        if (catalog_tbl.getIsdred()) {
> > +            sb.append("DR TABLE " + catalog_tbl.getTypeName() + ";\n");
>
> On a related note: what happens if I DROP or ALTER a table that has a DR
> TABLE statement still in the DDL?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/VoltDB/voltdb/pull/1639/files#r16438897>.
>



-- 
*Yang Lu,* Software Engineer Intern
*VoltDB, Inc.*
*E:* yang@voltdb.com
www.voltdb.com <http://voltdb.com/>
Follow VoltDB on Twitter <https://twitter.com/voltdb>, Facebook
<https://www.facebook.com/VoltDB?sk=wall>, and LinkedIn
<http://www.linkedin.com/company/voltdb>