@@ -173,7 +173,7 @@ public void createDatabase() throws SQLException {
173173 @ Override
174174 public void dropDatabase () throws SQLException {
175175 try {
176- checkConnected ();
176+ checkAttached ();
177177 try (LockCloseable ignored = withLock ()) {
178178 try {
179179 clientLibrary .isc_drop_database (statusVector , handle );
@@ -211,7 +211,7 @@ public void cancelOperation(int kind) throws SQLException {
211211 @ Override
212212 public JnaTransaction startTransaction (final TransactionParameterBuffer tpb ) throws SQLException {
213213 try {
214- checkConnected ();
214+ checkAttached ();
215215 var transactionHandle = new IntByReference (0 );
216216 byte [] tpbArray = tpb .toBytesWithType ();
217217 try (LockCloseable ignored = withLock ()) {
@@ -232,7 +232,7 @@ public JnaTransaction startTransaction(final TransactionParameterBuffer tpb) thr
232232 @ Override
233233 public FbTransaction startTransaction (String statementText ) throws SQLException {
234234 try {
235- checkConnected ();
235+ checkAttached ();
236236 var transactionHandle = new IntByReference (0 );
237237 byte [] statementArray = getEncoding ().encodeToCharset (statementText );
238238 try (LockCloseable ignored = withLock ()) {
@@ -253,7 +253,7 @@ public FbTransaction startTransaction(String statementText) throws SQLException
253253 @ Override
254254 public FbTransaction reconnectTransaction (long transactionId ) throws SQLException {
255255 try {
256- checkConnected ();
256+ checkAttached ();
257257 final byte [] transactionIdBuffer = getTransactionIdBuffer (transactionId );
258258
259259 final IntByReference transactionHandle = new IntByReference (0 );
@@ -276,7 +276,7 @@ public FbTransaction reconnectTransaction(long transactionId) throws SQLExceptio
276276 @ Override
277277 public JnaStatement createStatement (@ Nullable FbTransaction transaction ) throws SQLException {
278278 try {
279- checkConnected ();
279+ checkAttached ();
280280 final JnaStatement stmt = new JnaStatement (this );
281281 stmt .addExceptionListener (exceptionListenerDispatcher );
282282 stmt .setTransaction (transaction );
@@ -423,7 +423,7 @@ public void countEvents(EventHandle eventHandle) throws SQLException {
423423 @ Override
424424 public void queueEvent (EventHandle eventHandle ) throws SQLException {
425425 try {
426- checkConnected ();
426+ checkAttached ();
427427 final JnaEventHandle jnaEventHandle = validateEventHandle (eventHandle );
428428
429429 try (LockCloseable ignored = withLock ()) {
@@ -451,7 +451,7 @@ public void queueEvent(EventHandle eventHandle) throws SQLException {
451451 @ Override
452452 public void cancelEvent (EventHandle eventHandle ) throws SQLException {
453453 try {
454- checkConnected ();
454+ checkAttached ();
455455 final JnaEventHandle jnaEventHandle = validateEventHandle (eventHandle );
456456
457457 try (LockCloseable ignored = withLock ()) {
0 commit comments