NULL value being passed as 0

28 views
Skip to first unread message

Tim Straub

unread,
Nov 13, 2012, 5:03:18 PM11/13/12
to simpl...@googlegroups.com
I am using v0.18.2.1 and when I try to receive a NULL value from a stored procedure call (MS SQL), it is being returned as a 0.  I saw the other thread where someone had a similar issue with a date value and that prompted me to get the latest version, but still no luck.

    public class HireInfographicLicensingTest : LicensingTest
    {
        public decimal? PassPercentage { get; set; }

        public List<HireInfographicLicensingTest> GetHireInfographicLicensingTests(int accountId)
        {
            //return Database.Open().GetHireInfographicLicensingTests(accountId);
            List<HireInfographicLicensingTest> hireInfographicLicensingTests;
            hireInfographicLicensingTests = Database.Open().GetHireInfographicLicensingTests(accountId);
            return hireInfographicLicensingTests;

        }

Is there any way around this?

Thanks,
-Tim

Mark Rendle

unread,
Nov 13, 2012, 5:59:02 PM11/13/12
to simpl...@googlegroups.com
Hi Tim,

I'm a bit stretched right now, but I will take a look at this as soon as I get the chance.

Cheers,
Mark

Tim Straub

unread,
Nov 14, 2012, 8:51:15 AM11/14/12
to simpl...@googlegroups.com
Thanks Mark, I appreciate it.
-Tim
Reply all
Reply to author
Forward
0 new messages