Commits

tbrugz committed d103b87

datadump: small fixes

  • Participants
  • Parent commits 3927ec2

Comments (0)

Files changed (3)

File src/tbrugz/sqldump/SQLUtils.java

 		List<Object> ls = new ArrayList<Object>();
 		for(int i=1;i<=numCol;i++) {
 			Object value = null;
-			Class<?> coltype = colTypes.get(i-1);
+			Class<?> coltype = null;
+			try {
+				coltype = colTypes.get(i-1);
+			}
+			catch(IndexOutOfBoundsException e) {
+				e.printStackTrace();
+				coltype = String.class;
+			}
+			
 			if(coltype.equals(Blob.class)) {
 				//XXX: do not dump Blobs this way
 				//value = null; //Blob and ResultSet should be tested first? yes!

File src/tbrugz/sqldump/datadump/JSONDataDump.java

 		if(usePK) {
 			this.pkCols = pkCols;
 		}
+		if(lsColNames.size()!=lsColTypes.size()) {
+			log.warn("diff lsColNames/lsColTypes sizes: "+lsColNames.size()+" ; "+lsColTypes.size());
+		}
 		//if(pkCols==null) { usePK = false; } else { usePK = true; }
 	}
 	

File src/tbrugz/sqldump/dbmodel/SchemaModel.java

 	Set<Synonym> synonyms = new TreeSet<Synonym>();
 	Set<Index> indexes = new TreeSet<Index>();
 	Set<Sequence> sequences = new TreeSet<Sequence>();
+	
+	//XXX: add List<String>(?) schemasGrabbed? may be used by Schema2GraphML
 
 	@XmlElement(name="table")
 	public Set<Table> getTables() {