[Mono-dev] ODBC GetSchema failing

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Tue Apr 28 05:49:08 UTC 2015


If you haven't, you might want to try the latest mono master which 
replaced System.Data implementation with Microsoft's referencesource.

System.Data.Odbc implementation depends on native ODBC, and on 
non-Windows platform it relies on libodbc which might bring 
implementation glitch. That applies to any of mono versions (even with 
referencesource).

Atsushi Eno

On 2015年04月28日 11:16, discofire wrote:
> Ok, so it looks as though there is a problem with the System.Data.Odbc
> library... a pretty major and glaring problem that I can't believe was even
> allowed to be checked into the repository.
>
> Here is the code for the GetSchema calls:
>
>
> 		public override DataTable GetSchema ()
> 		{
> 			if (State == ConnectionState.Closed)
> 				throw ExceptionHelper.ConnectionClosed ();
> 			return MetaDataCollections.Instance;
> 		}
>
> 		public override DataTable GetSchema (string collectionName)
> 		{
> 			return GetSchema (collectionName, null);
> 		}
>
> 		public override DataTable GetSchema (string collectionName, string []
> restrictionValues)
> 		{
> 			if (State == ConnectionState.Closed)
> 				throw ExceptionHelper.ConnectionClosed ();
> 			return GetSchema (collectionName, null);
> 		}
>
>
> Seems pretty obvious to me that GetSchema(string, string[]) is designed
> specifically to blow up memory until the VM decides to stop it.  It would
> have been more useful if it just threw a not implemented exception and not
> actually pretend to do something... It would have been even more useful if
> any of the resources associated with this library would have even indicated
> in the slightest that these functions not only do nothing, they actually
> kill your call stack.  Maybe they were testing the StackOverflowException?
> Does anyone know how to go about fixing this?  Is there any way to either
> contribute to the project, or contact someone who is contributing?  Also,
> does anyone know how to find the dev that checked in this crap so I can
> punch him in the throat? :)
>
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/ODBC-GetSchema-failing-tp4665832p4665833.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>



More information about the Mono-devel-list mailing list