List:MySQL and .NET« Previous MessageNext Message »
From:Julien Boulay Date:April 16 2007 3:13pm
Subject:issue with reservedwords resource
View as plain text  
Hi,

I use the last version of the connector .net and when I execute the 
command "CREATE DATABASE "nameOfMyBase" that throw a NullArgumentException.
After looking into the source, the problem seems to come from the method 
"SchemaProvider.GetReservedWords()". this method can't get the 
ReservedWords.txt file so "str" is null.

Stream str = Assembly.GetExecutingAssembly().GetManifestResourceStream(
                "MySql.Data.MySqlClient.ReservedWords.txt");
StreamReader sr = new StreamReader(str);

Under reflector the resource is named 
"MySql.Data.MySqlClient*.Source.*ReservedWords.txt"

please advise

regards

          Julien Boulay

Thread
issue with reservedwords resourceJulien Boulay16 Apr