SuperKaioken / odbc2kml

Automatically exported from code.google.com/p/odbc2kml
0 stars 0 forks source link

Parse description not perfect? #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Click Edit Connection
2.Click save and edit
3.Copy this into the description

[FIELD][TBL]msustudentdatalocks[/TBL][COL] INSTALLATION_NAME [/COL][/FIELD]

4.Click Save
5.Click connections
6.Click generate KML
7.Breaks

What is the expected output? What do you see instead?
Shouldn't let me save,  Should throw error message.

Please use labels and text to provide additional information.

Server Error in '/' Application.
Column ' INSTALLATION_NAME ' does not belong to table .
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.ArgumentException: Column ' INSTALLATION_NAME '
does not belong to table .

Source Error:

Line 303:                        colString = colString.Replace("[COL]", "");
Line 304:                        colString = colString.Replace("[/COL]", "");
Line 305:                        fieldString = (String)row[colString];
Line 306:                        descString = descString1 + fieldString +
descString2;
Line 307:                    }

Source File: C:\Documents and Settings\David\My
Documents\ODBC2KML\hci\HCI\Description.cs    Line: 305

Stack Trace:

[ArgumentException: Column ' INSTALLATION_NAME ' does not belong to table .]
   System.Data.DataRow.GetDataColumn(String columnName) +1775301
   System.Data.DataRow.get_Item(String columnName) +13
   HCI.Description.parseDesc(DataTable inTable, String descString, String
tableName) in C:\Documents and Settings\David\My
Documents\ODBC2KML\hci\HCI\Description.cs:305
   HCI.KMLGenerator.generateKMLFromConnection(Connection connection) in
C:\Documents and Settings\David\My
Documents\ODBC2KML\hci\HCI\KMLGenerator.cs:127
   HCI.KMLGenerator.generateKML(Int32 connID) in C:\Documents and
Settings\David\My Documents\ODBC2KML\hci\HCI\KMLGenerator.cs:51
   HCI.Main.genKMLFunction(Object sender, EventArgs e) in C:\Documents and
Settings\David\My Documents\ODBC2KML\hci\HCI\Main.aspx.cs:459
   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String
eventArgument) +118

System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaiseP
ostBackEvent(String
eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Version Information: Microsoft .NET Framework Version:2.0.50727.3603;
ASP.NET Version:2.0.50727.3082 

Original issue reported on code.google.com by Spoofed...@gmail.com on 10 Apr 2010 at 6:20

GoogleCodeExporter commented 9 years ago
This is an issue with parseDescription. I will work on fixing it.

Original comment by sweenr...@gmail.com on 10 Apr 2010 at 8:18

GoogleCodeExporter commented 9 years ago

Original comment by sweenr...@gmail.com on 10 Apr 2010 at 8:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r581.

Original comment by sweenr...@gmail.com on 10 Apr 2010 at 9:06

GoogleCodeExporter commented 9 years ago

Original comment by Spoofed...@gmail.com on 10 Apr 2010 at 9:51

GoogleCodeExporter commented 9 years ago
fixed in r585

Original comment by sweenr...@gmail.com on 10 Apr 2010 at 10:25

GoogleCodeExporter commented 9 years ago

Original comment by Spoofed...@gmail.com on 11 Apr 2010 at 7:19