Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Switching cast from Int64 to Int32
Browse files Browse the repository at this point in the history
Not sure why we were originally casting it to an Int64 in the first place,
although I seem to remember that MySQL stored a lot of things as Int64
where MSSQL didn't. Anyways, it was throwing cast errors and now it's not.
  • Loading branch information
Clayton Pence committed Feb 3, 2014
1 parent b2c6635 commit 94897f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TeslaSQL/DataUtils/MySQLDataUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,9 +1094,10 @@ WHERE c.TABLE_NAME IN ( {0} )
{
fields[tc] = new List<TColumn>();
}

fields[tc].Add(new TColumn(
(String)row["COLUMN_NAME"],
(Int64)row["InPrimaryKey"] > 0 ? true : false,
(Int32)row["InPrimaryKey"] > 0 ? true : false,
DataType.ParseDataType(row),
//for some reason IS_NULLABLE is a varchar(3) rather than a bool or bit
(String)row["IS_NULLABLE"] == "YES" ? true : false));
Expand Down

0 comments on commit 94897f1

Please sign in to comment.