 		connection.open()
 		defer { connection.server.close() }
 		connection.statement = statement
+
+		printDebug(statement, params)
 		let result = connection.server.exec(statement: statement, params: params)
 
 		// set exec message

		connection.open()
		defer { connection.server.close() }
		connection.statement = statement
		let result = connection.server.exec(statement: statement, params: params)
		// set exec message
		errorMsg = connection.server.errorMessage().trimmingCharacters(in: .whitespacesAndNewlines)
		if isError() {

		self.connection = connect
	}

	private func printDebug(_ statement: String, _ params: [String]) {
		if StORMdebug { print("StORM Debug: \(statement) : \(params.joined(separator: ", "))") }
	}

	// Internal function which executes statements, with parameter binding
	// Returns raw result
	@discardableResult
