Skip to content

Commit 9a3786c

Browse files
committed
changed numbers from int to decimal(20,10)
1 parent 99f4bce commit 9a3786c

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

NSF2SQL.v12.suo

1 KB
Binary file not shown.

NSF2SQL/Form1.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ private void bExportDocuments_Click(object sender, EventArgs ea)
365365
{
366366
//get form
367367
string form = (string)doc.GetItemValue("Form")[0];
368-
368+
369369
if (!tables.ContainsKey(form))
370370
{
371371
tables.Add(form, new Table(form));
@@ -391,7 +391,7 @@ private void bExportDocuments_Click(object sender, EventArgs ea)
391391
switch (item.type)
392392
{//TODO: get more types
393393
case IT_TYPE.NUMBERS:
394-
type = "int";
394+
type = "decimal(20,10)";
395395
break;
396396
case IT_TYPE.DATETIMES:
397397
type = "datetime";
@@ -787,19 +787,19 @@ private List<string> insertTableRows(Table table)
787787
string value = column.Values[i + 1].ToString();
788788
switch (column.Type)
789789
{
790-
case "int":
790+
case "decimal(20,10)":
791791
if (value == "")
792792
{
793793
value = "NULL";
794794
}
795795
else if (value == "Infinity")
796796
{
797-
value = int.MaxValue.ToString();
797+
value = "9999999999.9999999999";
798798
}
799799
else
800800
{
801-
int temp;
802-
if (!int.TryParse(value, out temp))
801+
double temp;
802+
if (!double.TryParse(value, out temp))
803803
{
804804
value = "NULL";
805805
}

NSF2SQL/bin/Debug/NSF2SQL.exe

0 Bytes
Binary file not shown.

NSF2SQL/bin/Debug/NSF2SQL.pdb

0 Bytes
Binary file not shown.

NSF2SQL/obj/Debug/NSF2SQL.exe

0 Bytes
Binary file not shown.

NSF2SQL/obj/Debug/NSF2SQL.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)