Sunday, December 13, 2009

Better data type handling mechanism landed on cvs

Hi all!

Yesterday, 2009-12-12, Josh Cooley committed a better datatype handling mechanism to Npgsql. This will allow Npgsql to be more consistent when handling types because it is now much better defined when to return specific (or provider specific) datatypes and when to return CLR datatypes.

What does all this mean?

Well, Npgsql now implements the methods DbDataReader.GetProviderSpecificValue(), DbDataReader.GetproviderSpecificValues() and GetProviderSpecificDataType().

With those methods implemented, users will have a defined way of getting the specific types provided by Npgsql. The other methods will now always return the CLR types.

This modification will also enable Npgsql to work better with the ado.net library. For example, we have reports that NpgsqlInet data wasn't being rendered in a DataGrid.
By inspecting the test case, the dataset was correctly filled, but Datagrid seemed to not like NpgsqlInet and didn't render its value. With this type handling modification, the data would be returned as an CLR type, maybe an IPAddress or a String which, according to my tests, showed up correctly.

Another solution this modification enable is about support for "interval" npgsql datatype. We have a bug report about that and this modification will fix it too.

This is a big change in the way Npgsql handles data types. We would like you to test it and send us feedback about problems and solutions this change brought. Thanks in advance.

10 comments:

dan said...

This is great news, thanks Josh and Francisco!

pedro said...

Today I tried to run edmgen, at no luck. When I tried to post a detailed comment to http://npgsql.com/wp-comments-post.php
I received a Service Unavaiiable error.
I would like to know if the postgresql and npgsql.dll are willing to give support for free or are they expecting an income from.

Francisco Figueiredo Jr. said...

Hi, Pedro.

Did you try our user forums?

forums.npgsql.org

What error are you getting?

I hope it helps.

btw, service unavailable errors can appear on any site. Be it npgsql.com or google.com.

And answering your question, Npgsql and Postgresql already give support for free since the beginning.

rr8004 said...

This article was extremely interesting, especially since I was searching for thoughts on this subject last Thursday. Please come visit my site Directory Memphis City when you got time.

rr8004 said...

I really liked your post on home financing! if you have more information elsewhere let me know. Please come visit my site Directory El Paso City when you got time.

rr8004 said...

I really liked your post on home financing! if you have more information elsewhere let me know. Please come visit my site El Paso Business Services And Classifieds when you got time.

LucianoLWoodell said...

性感女劍士av台南視訊av無碼情色遊戲高雄寂寞小站彩虹成人avdvda片18成人免費影視免費視訊a片商77p2p影片網愛田無碼av女優台灣成人網免費a長片線上看av969免費影片0204movie成人影城cf視訊聊天室辣妹視訊辣妹視訊美女交友

rr8004 said...

What a facinating article. I’m looking for a marketing expert to help with a project, could you help? Please come visit my site Chicago Phone Book when you got time.

rr8004 said...

What a facinating article. I’m looking for a marketing expert to help with a project, could you help? Please come visit my site Chicago Business Directory Forum Blog Classifieds when you got time.

rr8004 said...

I really liked your blog! Please come visit my site City Guide Louisville when you got time.