Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ISqlMapper.QueryForObject<T> sometimes returns null
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ralph Möritz  
View profile  
 More options Apr 25 2012, 5:52 am
From: Ralph Möritz <ralmor...@gmail.com>
Date: Wed, 25 Apr 2012 02:52:00 -0700 (PDT)
Subject: ISqlMapper.QueryForObject<T> sometimes returns null

Hi,

we're using v1.6.2 of the DataMapper & are currently experiencing an issue
where QueryForObject<T> *occasionally* returns null without executing the
query at all (we've verified this via logging on the db), returning null
instead. I would expect ISqlMapper to throw if it encountered an error; so
I'd like to ask: Under what circumstances would QueryForObject<T> return
null?

TIA,
Ralph


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael McCurrey  
View profile  
 More options Apr 25 2012, 10:25 am
From: Michael McCurrey <mmccur...@gmail.com>
Date: Wed, 25 Apr 2012 07:25:43 -0700
Local: Wed, Apr 25 2012 10:25 am
Subject: Re: ISqlMapper.QueryForObject<T> sometimes returns null

Are you using caching?

On Wed, Apr 25, 2012 at 2:52 AM, Ralph Möritz <ralmor...@gmail.com> wrote:
> Hi,

> we're using v1.6.2 of the DataMapper & are currently experiencing an issue
> where QueryForObject<T> *occasionally* returns null without executing the
> query at all (we've verified this via logging on the db), returning null
> instead. I would expect ISqlMapper to throw if it encountered an error; so
> I'd like to ask: Under what circumstances would QueryForObject<T> return
> null?

> TIA,
> Ralph

--
Michael J. McCurrey
Read with me at http://www.mccurrey.com
http://chaoticmindramblings.blogspot.com/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ralph Möritz  
View profile  
 More options Apr 25 2012, 10:51 am
From: Ralph Möritz <ralmor...@gmail.com>
Date: Wed, 25 Apr 2012 16:51:49 +0200
Local: Wed, Apr 25 2012 10:51 am
Subject: Re: ISqlMapper.QueryForObject<T> sometimes returns null

No, there's no cache model defined.

On 25 April 2012 16:25, Michael McCurrey <mmccur...@gmail.com> wrote:

--
Ralph Möritz
Cell: +27 726 164 485
Skype: ralmoritz

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael McCurrey  
View profile  
 More options Apr 25 2012, 10:53 am
From: Michael McCurrey <mmccur...@gmail.com>
Date: Wed, 25 Apr 2012 07:53:19 -0700
Local: Wed, Apr 25 2012 10:53 am
Subject: Re: ISqlMapper.QueryForObject<T> sometimes returns null

are you using namespaces?   Is it possible that you can attach a failing
sample.  I've never encountered that before

--
Michael J. McCurrey
Read with me at http://www.mccurrey.com
http://chaoticmindramblings.blogspot.com/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ralph Möritz  
View profile  
 More options May 2 2012, 5:04 am
From: Ralph Möritz <ralmor...@gmail.com>
Date: Wed, 2 May 2012 11:04:30 +0200
Local: Wed, May 2 2012 5:04 am
Subject: Re: ISqlMapper.QueryForObject<T> sometimes returns null

Unfortunately the problem is intermittent & I'll get fired if I shared any
code on a public forum. However, it seems the problem may in fact lie with
the DB rolling back transactions and not with the DataMapper.

On 25 April 2012 16:53, Michael McCurrey <mmccur...@gmail.com> wrote:

--
Ralph Möritz
Cell: +27 726 164 485
Skype: ralmoritz

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris B  
View profile  
 More options May 2 2012, 7:15 am
From: Chris B <chris.blaszczyn...@gmail.com>
Date: Wed, 2 May 2012 07:15:15 -0400
Local: Wed, May 2 2012 7:15 am
Subject: Re: ISqlMapper.QueryForObject<T> sometimes returns null

This may seem unrelated but I've addressed strange issues like this
sometimes by making sure that I'm using the latest database driver to talk
to the database. Often times software ends up not updating their driver
DLLs and I've seen a good range of strange behavior under load.

If for any reason you can't recompile with an updated driver, you can
configure your .Net application to for it to use a different version in the
app/web.config.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »