>>>>> On Wed, 26 May 2004 11:22:44 +0200, Thomas Stiegler <[EMAIL PROTECTED]> said:

[SNIPPED]

> InputStream is = fc.retrieveFileStream(sFile); if (logReply() >=
> 500) return -1; if (is == null) return -1;

> long lStart = System.currentTimeMillis(); int iBytesRead;
> while((iBytesRead = is.read(b, 0, 4000)) > -1) { pstmt.setInt(1,
> iID); pstmt.setInt(2, iSeq++); pstmt.setString(3, new String(b, 0,
> iBytesRead)); pstmt.executeUpdate(); iBytes += iBytesRead;
> }
> pstmt.close(); is.close(); fc.completePendingCommand(); if
> (logReply() >= 500) return -1; return iID;
> }
> }

I thought the completePendingCommand() should be done before the
closes, definitly before the is.close() call.

-- 
=====================================================================
Jeffrey D. Brekke                                   [EMAIL PROTECTED]
Wisconsin,  USA                                     [EMAIL PROTECTED]
                                                    [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to