Tdd create

From TaskDepender
Jump to: navigation, search
(Function prototype)
(Implementation)
 
Line 44: Line 44:
 
   if(rc)
 
   if(rc)
 
   {
 
   {
    tdd_handle_error(rc);
 
    errorMsg = AnsiString(sqlite3_errmsg(db));
 
 
     sqlite3_close(db);
 
     sqlite3_close(db);
    db = NULL;
 
 
     return &db;     
 
     return &db;     
 
   }
 
   }
  
 
   // -- Create tasks table --
 
   // -- Create tasks table --
 
+
  rc = sqlite3_exec(db, TDD_CREATE_TASKS_TABLE, NULL, NULL, &dbError );
 +
 
 
   // -- Create deliverables table --
 
   // -- Create deliverables table --
 +
  rc = sqlite3_exec(db, TDD_CREATE_DELIVERABLES_TABLE, NULL, NULL, &dbError );
  
 
   // -- Create the connections table --
 
   // -- Create the connections table --
 +
  rc = sqlite3_exec(db, TDD_CREATE_CONNECTIONS_TABLE, NULL, NULL, &dbError );
  
 
   // -- Create the temporary task-list table --
 
   // -- Create the temporary task-list table --
 +
  rc = sqlite3_exec(db, TDD_CREATE_TASKLIST_TABLE, NULL, NULL, &dbError );
  
 
   // -- Create the temporary deliverable-list table --
 
   // -- Create the temporary deliverable-list table --
 +
  rc = sqlite3_exec(db, TDD_CREATE_TASKS_TABLE, NULL, NULL, &dbError );
  
 
   // -- Create the temporary connection-list table --
 
   // -- Create the temporary connection-list table --
 +
  rc = sqlite3_exec(db, TDD_CREATE_TASKS_TABLE, NULL, NULL, &dbError );
  
  
Line 67: Line 70:
  
 
   return &db;  
 
   return &db;  
 +
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 10:31, 22 October 2011

Personal tools