Carefully test your sensitive code(blog.andrei.rinea.ro)

submitted by AndreiR23AndreiR23(75) 2 years, 5 months ago

am also working on a site that will handle real money. I was having a little hard time determining why the users don’t get their money back if the bet (a bets site) is cancelled In the CancelBet stored procedure (T-SQL) : .. UPDATE Account SET Amount = Account.Amount + BB.Amount FROM BetBettings BB INNER JOIN BetOutcomes BO ON BB.BetOutcomesId = BO.BetsId WHERE BO.BetsId = @BetId AND Account.UserId = BB.UserId … The bold-underlined text fragment should have been "BO.Id". A very small slip-up but enough to not trigger any automatic checking in Microsoft SQL Server Management Studio 2008 and enough to have the users cry out loud : “FRAUUUD”. The site is not live yet, so no user has been hurt during the experiment. However anyone wouldn’t have believed me that this error in favor of the site was not intentional … they would have said something like “how convenient…”.

add a comment |category: |Views: 5

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story