• Post Reply Bookmark Topic Watch Topic
  • New Topic

when does an SQLWarning occurs ?

 
Johnson David
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I know that SQLWarnings are not exceptions, and they have to be explicitly retrieved . But i dont know when does they occure.

Has anybody received an SQLWarning, please tell me when and where they occure.


thanks in advance

johnson
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One situation that may cause a warning is truncation of a string on an insert/update when the string is too long for the column.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!