More commented code for possible change

This commit is contained in:
Matt Nadareski
2016-04-22 00:39:46 -07:00
parent c576a4bc9b
commit b600af5780
2 changed files with 4 additions and 0 deletions

View File

@@ -72,6 +72,8 @@ namespace SabreTools
if (_systems != "")
{
string query = "SELECT manufacturer, system FROM systems WHERE id in (" + _systems + ")";
//string query = "SELECT manufacturer, name FROM system WHERE id in (" + _systems + ")";
using (SqliteConnection dbc = new SqliteConnection(_connectionString))
{
dbc.Open();
@@ -114,6 +116,7 @@ namespace SabreTools
if (_sources != "")
{
string query = "SELECT name FROM sources WHERE id in (" + _sources + ")";
//string query = "SELECT name FROM source WHERE id in (" + _sources + ")";
using (SqliteConnection dbc = new SqliteConnection(_connectionString))
{

View File

@@ -631,6 +631,7 @@ COMMIT;";
INSERT OR IGNORE INTO hashdata (hashid, key, value) VALUES " +
"(" + hashid + ", 'name', '" + rom.Name.Replace("'", "''") + "'), " +
"(" + hashid + ", 'game', '" + rom.Game.Replace("'", "''") + "'), " +
"(" + hashid + ", 'type', '" + rom.Type + "'), " +
"(" + hashid + ", 'lastupdated', '" + date + @"');
INSERT OR IGNORE INTO gamesystem (game, systemid) VALUES ('" + rom.Game.Replace("'", "''") + "', " + sysid + @");
INSERT OR IGNORE INTO gamesource (game, sourceid) VALUES ('" + rom.Game.Replace("'", "''") + "', " + srcid + @");