mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
More commented code for possible change
This commit is contained in:
@@ -72,6 +72,8 @@ namespace SabreTools
|
|||||||
if (_systems != "")
|
if (_systems != "")
|
||||||
{
|
{
|
||||||
string query = "SELECT manufacturer, system FROM systems WHERE id in (" + _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))
|
using (SqliteConnection dbc = new SqliteConnection(_connectionString))
|
||||||
{
|
{
|
||||||
dbc.Open();
|
dbc.Open();
|
||||||
@@ -114,6 +116,7 @@ namespace SabreTools
|
|||||||
if (_sources != "")
|
if (_sources != "")
|
||||||
{
|
{
|
||||||
string query = "SELECT name FROM sources WHERE id in (" + _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))
|
using (SqliteConnection dbc = new SqliteConnection(_connectionString))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -631,6 +631,7 @@ COMMIT;";
|
|||||||
INSERT OR IGNORE INTO hashdata (hashid, key, value) VALUES " +
|
INSERT OR IGNORE INTO hashdata (hashid, key, value) VALUES " +
|
||||||
"(" + hashid + ", 'name', '" + rom.Name.Replace("'", "''") + "'), " +
|
"(" + hashid + ", 'name', '" + rom.Name.Replace("'", "''") + "'), " +
|
||||||
"(" + hashid + ", 'game', '" + rom.Game.Replace("'", "''") + "'), " +
|
"(" + hashid + ", 'game', '" + rom.Game.Replace("'", "''") + "'), " +
|
||||||
|
"(" + hashid + ", 'type', '" + rom.Type + "'), " +
|
||||||
"(" + hashid + ", 'lastupdated', '" + date + @"');
|
"(" + hashid + ", 'lastupdated', '" + date + @"');
|
||||||
INSERT OR IGNORE INTO gamesystem (game, systemid) VALUES ('" + rom.Game.Replace("'", "''") + "', " + sysid + @");
|
INSERT OR IGNORE INTO gamesystem (game, systemid) VALUES ('" + rom.Game.Replace("'", "''") + "', " + sysid + @");
|
||||||
INSERT OR IGNORE INTO gamesource (game, sourceid) VALUES ('" + rom.Game.Replace("'", "''") + "', " + srcid + @");
|
INSERT OR IGNORE INTO gamesource (game, sourceid) VALUES ('" + rom.Game.Replace("'", "''") + "', " + srcid + @");
|
||||||
|
|||||||
Reference in New Issue
Block a user