Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Bug of the day

Bug of the day

Scheduled Pinned Locked Moved The Lounge
c++databasearchitecturehelpquestion
42 Posts 32 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Chris Maunder

    I've been banging my head against a wall trying to work out why a class in a stored procedure was being skipped.

    DECLARE @SuppressionMethod varchar(20)

    -- ... lots of code...

    SET @SuppressionMethod = 'SkipSuppressedMembers'
    If lower(@SuppressionMethod) = 'skipsuppressedmembers'
    Begin
    ...

    No matter what, the if clause was never entered. Can anyone see the head slapper? It's a groaner.

    cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

    E Offline
    E Offline
    Earl Truss
    wrote on last edited by
    #41

    Yes, I can. It took about thirty seconds.

    1 Reply Last reply
    0
    • C Chris Maunder

      I've been banging my head against a wall trying to work out why a class in a stored procedure was being skipped.

      DECLARE @SuppressionMethod varchar(20)

      -- ... lots of code...

      SET @SuppressionMethod = 'SkipSuppressedMembers'
      If lower(@SuppressionMethod) = 'skipsuppressedmembers'
      Begin
      ...

      No matter what, the if clause was never entered. Can anyone see the head slapper? It's a groaner.

      cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

      V Offline
      V Offline
      Virendra Deshmukh
      wrote on last edited by
      #42

      first line varchar(21) becoz string contains 21 chars

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups