[Mono-bugs] [Bug 53056][Wis] New - Mono.CSharp.yyParser.yyException: irrecoverable syntax error
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 19 Jan 2004 13:10:05 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by aschain@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=53056
--- shadow/53056 2004-01-19 13:10:05.000000000 -0500
+++ shadow/53056.tmp.7514 2004-01-19 13:10:05.000000000 -0500
@@ -0,0 +1,93 @@
+Bug#: 53056
+Product: Mono/Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: aschain@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mono.CSharp.yyParser.yyException: irrecoverable syntax error
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1 In Mono-0.28 on windows xp and Redhat 8.0 i want to run the test for
+connection to MySql data base, with System.Data.dll.
+2. i'm make a cs file with code:
+using System;
+ using System.Data;
+ using Mono.Data.MySql;
+
+ public class Test
+ {
+ public static void Main(string[] args)
+ {
+ string connectionString =
+ "Server=localhost;" +
+ "Database=test;" +
+ "User ID=myuserid;" +
+ "Password=mypassword;";
+ IDbConnection dbcon;
+ dbcon = new MySqlConnection(connectionString);
+ dbcon.Open();
+ IDbCommand dbcmd = dbcon.CreateCommand();
+ // requires a table to be created named employee
+ // with columns firstname and lastname
+ // such as,
+ // CREATE TABLE employee (
+ // firstname varchar(32),
+ // lastname varchar(32));
+ string sql =
+ "SELECT firstname, lastname " +
+ "FROM employee";
+ dbcmd.CommandText = sql;
+ IDataReader reader = dbcmd.ExecuteReader();
+ while(reader.Read()) {
+ string FirstName = (string) reader["firstname"];
+ string LastName = (string) reader["lastname"];
+ Console.WriteLine("Name: " +
+ FirstName + " " + LastName);
+ }
+ // clean up
+ reader.Close();
+ reader = null;
+ dbcmd.Dispose();
+ dbcmd = null;
+ dbcon.Close();
+ dbcon = null;
+ }
+ }
+
+3. and compile the code whit mcs Test.cs -r System.Data.dll,
+Mono.Data.MySql.dll
+
+Actual Results:
+syntax error, expecting end-of-file EOF ABSTRAC CLASS DELEGATE ENUM
+EXTERN INTERFACE INTERNAL NAMESPACE NEW OVERRIDE PRIVATE PROTECTED PUBLIC
+READONLY SEALED STATIC STRUCT UNSAFE USING VIRTUAL VOLATILE OPEN_BRACKET
+Mono.CSharp.yyParser.yyException: irrecoverable syntax error
+in <0x00875> Mono.CSharp.CSharpParser:yyparse
+(Mono.CSharp.yyParser.yyInput)
+in <0x00077> Mono.CSharp.CSharpParser: ()
+ByteFX.Data.dll(1) error CS8025: Parsing error
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+conection with mysql data base
+
+How often does this happen?
+
+
+Additional Information: