달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

2008 08 fs ~ http://suite.tistory.com/

windows 오라클 10G 에서`~~ 테스트

Connection.setAutoCommit(false) < -  commit 을 내가 함~~지정하고

insert , delete 후
executeUpdate() 실행 다음
commit() 하지 안했는데  그냥 입력 처리가 된다 ~.~

살짝 테스트를 해보니

소스에서  Connection.close()
            => close()를 해줘서 그랬다~~  이유 관심 없음 ~.~

setAutoCommit(false) 로 하고 commit 안해줘도 들어 갈수 있으니 조금 주의?를 해야겠다~~
어쨌든 소스에는

setAutoCommit(false)
executeUpdate()
commit()

예외 상황 없이 실행되는 finally에 ~
close()



다해주자~~~ commit()에서 에러나면 예외로 갈테니~~




:
Posted by mastar