[Swift-commit] r2693 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Mar 16 13:17:21 CDT 2009


Author: benc
Date: 2009-03-16 13:17:20 -0500 (Mon, 16 Mar 2009)
New Revision: 2693

Modified:
   provenancedb/swift-prov-import-all-logs
Log:
change $SQLCMD invocation syntax to something that works with sqlite3 as well as postgres

Modified: provenancedb/swift-prov-import-all-logs
===================================================================
--- provenancedb/swift-prov-import-all-logs	2009-03-16 13:20:33 UTC (rev 2692)
+++ provenancedb/swift-prov-import-all-logs	2009-03-16 18:17:20 UTC (rev 2693)
@@ -39,10 +39,10 @@
      prepare-for-import $filename
      import-run-to-sql $filename
 #     import-run-to-xml $filename
-     $SQLCMD -c "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','imported');"
+     echo "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','imported');" | $SQLCMD
    else
      echo SKIP: Workflow does not report successful end.
-     $SQLCMD -c "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','skipped - workflow did not end sucessfully');"
+     echo "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','skipped - workflow did not end sucessfully');" | $SQLCMD
    fi
 else
 echo SKIP: Already known in workflow




More information about the Swift-commit mailing list