--- a/src/main/scala/SQL.scala Sun Feb 28 09:09:00 2010 -0500
+++ b/src/main/scala/SQL.scala Sun Feb 28 11:37:28 2010 -0500
@@ -169,7 +169,9 @@
sealed abstract class KeyDeclaration extends FieldDescOrKeyDeclaration
case class PrimaryKeyDeclaration(attr:Attribute) extends KeyDeclaration
case class ForeignKeyDeclaration(fk:Attribute, rel:Relation, pk:Attribute) extends KeyDeclaration
-case class View(rel:Relation, defn:SelectORUnion) // sibling of RelationDesc
+case class View(rel:Relation, defn:SelectORUnion) { // sibling of RelationDesc
+ override def toString = "CREATE VIEW " + rel + " AS\n" + defn
+}
case class Sql() extends JavaTokenParsers {