@@ -1176,9 +1176,10 @@ def ping(self) -> None:
1176
1176
self ._check ()
1177
1177
def detach (self ) -> None :
1178
1178
"Replaces `isc_detach_database()`. On success releases interface."
1179
- self .vtable .deprecatedDetach (self , self .status )
1180
- self ._check ()
1181
- self ._refcnt -= 1
1179
+ if self ._refcnt :
1180
+ self .vtable .deprecatedDetach (self , self .status )
1181
+ self ._check ()
1182
+ self ._refcnt -= 1
1182
1183
def drop_database (self ) -> None :
1183
1184
"Replaces `isc_drop_database()`. On success releases interface."
1184
1185
self .vtable .deprecatedDropDatabase (self , self .status )
@@ -1223,7 +1224,7 @@ def create_batch(self, transaction: iTransaction, stmt: str, dialect: int,
1223
1224
1224
1225
# IAttachment(5) : IAttachment(4)
1225
1226
class iAttachment (iAttachment_v4 ):
1226
- "Class that wraps IAttachment v4 interface for use from Python"
1227
+ "Class that wraps IAttachment v5 interface for use from Python"
1227
1228
VERSION = 5
1228
1229
def detach (self ) -> None :
1229
1230
"Replaces `isc_detach_database()`. On success releases interface."
@@ -1238,7 +1239,7 @@ def drop_database(self) -> None:
1238
1239
1239
1240
# IService(3) : ReferenceCounted
1240
1241
class iService_v3 (iReferenceCounted ):
1241
- "Class that wraps IService interface for use from Python"
1242
+ "Class that wraps IService v3 interface for use from Python"
1242
1243
VERSION = 3
1243
1244
def detach (self ) -> None :
1244
1245
"""Close attachment to services manager, on success releases interface.
@@ -1262,7 +1263,7 @@ def start(self, spb: bytes) -> None:
1262
1263
1263
1264
# IService(4) : IService(3)
1264
1265
class iService_v4 (iService_v3 ):
1265
- "Class that wraps IService interface for use from Python"
1266
+ "Class that wraps IService v4 interface for use from Python"
1266
1267
VERSION = 4
1267
1268
def detach (self ) -> None :
1268
1269
"""Close attachment to services manager, on success releases interface.
@@ -1274,7 +1275,7 @@ def detach(self) -> None:
1274
1275
1275
1276
# IService(5) : IService(4)
1276
1277
class iService (iService_v4 ):
1277
- "Class that wraps IService interface for use from Python"
1278
+ "Class that wraps IService v5 interface for use from Python"
1278
1279
VERSION = 5
1279
1280
def cancel (self ) -> None :
1280
1281
"""Cancel wait of current `query()` call. Supported only for embedded connections.
0 commit comments