2003-11-11 Pedro Mart�nez Juli� <yoros@wanadoo.es>
authorPedro Martínez Juliá <pedro@mono-cvs.ximian.com>
Tue, 11 Nov 2003 01:32:05 +0000 (01:32 -0000)
committerPedro Martínez Juliá <pedro@mono-cvs.ximian.com>
Tue, 11 Nov 2003 01:32:05 +0000 (01:32 -0000)
    * Npgsql/NpgsqlDataReader.cs: GetSchemaTable has nothing to do with
    CanRead because the schema can be readed with or without result
    rows.

svn path=/trunk/mcs/; revision=19810

mcs/class/Npgsql/ChangeLog
mcs/class/Npgsql/Npgsql/NpgsqlDataReader.cs

index 7d06d739fdc99e469d6ac8e8bad51d4b9ed68cd1..bdb52300a8d28b6eb5db6dea9418fc73a18013ba 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-11  Pedro Martínez Juliá  <yoros@wanadoo.es>
+
+       * Npgsql/NpgsqlDataReader.cs: GetSchemaTable has nothing to do with
+       CanRead because the schema can be readed with or without result
+       rows.
+
 2003-11-10  Pedro Martínez Juliá  <yoros@wanadoo.es>
 
        * Npgsql/NpgsqlDataAdapter.cs: Best use "if" instead of try-catch.
index 05faed2f08c5c821fd52e577dd54cdc71780d302..5b6318282147cce74b9b265e015c36c4d4c9fab6 100755 (executable)
@@ -163,10 +163,6 @@ namespace Npgsql
          public DataTable GetSchemaTable()
          {
                NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, "GetSchemaTable");
-           //throw new NotImplementedException();
-               
-               if (!CanRead())
-                       return null; //[FIXME] Should we return null or throw an exception??
                
                if(_currentResultsetSchema == null)
                        _currentResultsetSchema = GetResultsetSchema();