From 5a9f75150d61b0cd34c0aea9c5282959776a48ef Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 3 Dec 2014 12:18:32 +0000 Subject: [PATCH] added more values to SQL statement --- Saviour Backup System/addBackupWizard.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Saviour Backup System/addBackupWizard.cs b/Saviour Backup System/addBackupWizard.cs index 85d6b3d..34d710e 100644 --- a/Saviour Backup System/addBackupWizard.cs +++ b/Saviour Backup System/addBackupWizard.cs @@ -124,11 +124,11 @@ namespace Saviour_Backup_System cmd.Prepare(); cmd.Parameters["Name"].Value = backupNameInput.Text; cmd.Parameters["Drive ID"].Value = tools.hash(drive.VolumeLabel + drive.TotalSize + drive.DriveFormat + USBTools.getDriveType(drive)); - cmd.Parameters["Creation Date"].Value = - cmd.Parameters["Backup Location"].Value = ""; + cmd.Parameters["Creation Date"].Value = tools.getUnixTimeStamp(); + cmd.Parameters["Backup Location"].Value = folderPath.Text; cmd.Parameters["Automatic"].Value = (insertionSwitch.Value) ? 1 : 0; //hopefully this is converted to a bit properly by SQLCE! cmd.Parameters["Compression"].Value = (unifiedFileSwitch.Value) ? 1 : 0; - cmd.Parameters["Previous Backups"].Value = ""; + cmd.Parameters["Previous Backups"].Value = previousBackupInput.Value; cmd.ExecuteNonQuery(); cmd.Parameters.Clear();