Function abnormalities encountered no time to close the cursor, thrown to the caller handle. cursor is a local variable, not after the exit function, cursor will automatically shut down?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
No, you want to ensure that even if an exception occurs also called cursor.close ()
Reply:
Thank you, cursor.close () does not perform, then, is not very serious consequences? I tested the demo there are missing close
Reply:
Look at this article http://zhifeiji512.iteye.com/blog/963925
No comments:
Post a Comment