Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ ISQL/bin/Release/
ISQL/obj/Release/ISQL.csproj.FileListAbsolute.txt
SqlDbSharpMacUI/bin
SqlDbSharpMacUI/obj
*.userprefs
packages/*
**/bin/*
**/obj/*
16 changes: 0 additions & 16 deletions BinaryReaderPlay.userprefs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CommandParser
//string strDatabaseLoc = null;
private DatabaseContext _database;
private bool _logSql = false;
private string _logLoc = string.Empty;
//private string _logLoc = string.Empty;

// TODO: So, obviously, make a base ICommand or CommandBase that everything can implement/extend.
// ????: What's the advantage of scoping these at object level, anyhow? <<< What he said. For now, lemming it up, boah.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ class CreateTableCommand
{
private DatabaseContext _database;
private TableContext _table;
private string _strDbLoc;
//private string _strDbLoc;
private List<byte> _lstByteDataTypeRow = new List<byte>();
private List<byte> _lstByteColNames = new List<byte>();

public CreateTableCommand (DatabaseContext database)
{
_database = database;
_strDbLoc = _database.strDbLoc;
//_strDbLoc = _database.strDbLoc;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ CommandParts commandParts
foreach (Column mCol in table.getColumns())
{
Column colToPullValueFrom = null;
string strUpdateValueModifier = string.Empty;
//string strUpdateValueModifier = string.Empty;

if (dictLaunderedUpdateVals.ContainsKey(mCol.strColName))
{
Expand Down
15 changes: 14 additions & 1 deletion ISQL/org/rufwork/mooresDb/clients/Isql.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ namespace org.rufwork.mooresDb.clients
{
class Isql
{
public static bool IsLinux
{
get
{
int p = (int) Environment.OSVersion.Platform;
return (p == 4) || (p == 6) || (p == 128);
}
}

static void Main(string[] args)
{
string strInput = "";
Expand All @@ -38,7 +47,11 @@ static void Main(string[] args)

DatabaseContext dbTemp = null;

Console.SetIn(new StreamReader(Console.OpenStandardInput(4096)));
if (!IsLinux)
{
Console.SetIn (new StreamReader (Console.OpenStandardInput (4096)));
}

Console.WriteLine(@"SqlDb# ISQL client.
SqlDb# version: " + MainClass.version + @"

Expand Down