Commits

tbrugz committed 4ee571a

processor: SchemaModelTransformer: changes in '.remove-views-definitions'

  • Participants
  • Parent commits b077b27

Comments (0)

Files changed (1)

File src/tbrugz/sqldump/processors/SchemaModelTransformer.java

 import tbrugz.sqldump.dbmodel.Column;
 import tbrugz.sqldump.dbmodel.DBIdentifiable;
 import tbrugz.sqldump.dbmodel.FK;
+import tbrugz.sqldump.dbmodel.Query;
 import tbrugz.sqldump.dbmodel.Table;
 import tbrugz.sqldump.dbmodel.View;
 import tbrugz.sqldump.def.AbstractSchemaProcessor;
 		if(doRemoveViewsDefinitions) {
 			removeViewsDefinitions();
 		}
-		//XXX prop to remove parameterCount, parameterValues?
 		
 		//fks
 		removeFKs();
 		int count = 0;
 		for(View v: views) {
 			v.setQuery(null);
+			//XXX prop to remove parameterCount, parameterValues?
+			v.setParameterCount(null);
+			if(v instanceof Query) {
+				Query q = (Query) v;
+				q.setParameterValues(null);
+			}
 			count++;
 		}
 		if(count>0) {