1
Fork 0

added more values to SQL statement

This commit is contained in:
Jake Howard 2014-12-03 12:18:32 +00:00
parent 1ff94ff668
commit 5a9f75150d

View file

@ -124,11 +124,11 @@ namespace Saviour_Backup_System
cmd.Prepare(); cmd.Prepare();
cmd.Parameters["Name"].Value = backupNameInput.Text; cmd.Parameters["Name"].Value = backupNameInput.Text;
cmd.Parameters["Drive ID"].Value = tools.hash(drive.VolumeLabel + drive.TotalSize + drive.DriveFormat + USBTools.getDriveType(drive)); cmd.Parameters["Drive ID"].Value = tools.hash(drive.VolumeLabel + drive.TotalSize + drive.DriveFormat + USBTools.getDriveType(drive));
cmd.Parameters["Creation Date"].Value = cmd.Parameters["Creation Date"].Value = tools.getUnixTimeStamp();
cmd.Parameters["Backup Location"].Value = ""; 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["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["Compression"].Value = (unifiedFileSwitch.Value) ? 1 : 0;
cmd.Parameters["Previous Backups"].Value = ""; cmd.Parameters["Previous Backups"].Value = previousBackupInput.Value;
cmd.ExecuteNonQuery(); cmd.ExecuteNonQuery();
cmd.Parameters.Clear(); cmd.Parameters.Clear();