Re: SqlParameters anomoly

Tech-Archive recommends: Fix windows errors by optimizing your registry

stewartmclean_at_supanet.com
Date: 12/10/04


Date: 10 Dec 2004 01:39:31 -0800

Hi Joel,

>>From what Ive tried, its only ' 0 ' that gets interpretted as null. The
code:

cmd.Parameters.Add("@myintparam", 0);
acts exactly as
cmd.Parameters.Add("@myintparam", null);

any other int gets treat as an int, as you'd expect. The second
parameter of .Add takes an object, so its either something I dont
understand about boxing, or a bug. I cant imagine its by design.



Relevant Pages

  • [PATCH] Memory management livelock
    ... Here is a patch for MM livelock. ... The original bug report follows after the ... I declared a mutex starvation_barrier in struct ... int nr_pages; ...
    (Linux-Kernel)
  • Re: More CChildFrame questions
    ... DisplayInfo info; ... Note that if you "know UML" then why didn't UML tell you that your design was bad? ...
    (microsoft.public.vc.mfc)
  • Re: exe error, works on some pcs but doesnt on others
    ... Make sure you have a .msi file to install it; create this using the install project ... the "wizard" is crippled (another piece of irresponsible design) ... int GetScreeny ... GdiplusStartupInput gdiplusStartupInput; ...
    (microsoft.public.vc.mfc)
  • Re: Test Driven Development Sample
    ... "Isaac Gouy" wrote in message ... > scores for a possibly incomplete sequence of valid throws - update the ... "how" aspect of the design. ... int FrameNum; ...
    (comp.object)
  • Re: Inheritance
    ... Yes I think you are right, it is a bad design. ... int wheels; ... class glider: public monoplane { ... Given this hierarchy, I can probably come up with actual planes that don't fit it. ...
    (microsoft.public.vc.mfc)