⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resumeresultset.c

📁 适合于Unix/Linux下的一个持久数据库连接池
💻 C
字号:
// Copyright (c) 1999-2001  David Muse// See the file COPYING for more information#include <sqlrconnection.h>bool sqlrconnection_svr::resumeResultSetCommand(sqlrcursor_svr *cursor) {	#ifdef SERVER_DEBUG	debugPrint("connection",1,"resume result set");	#endif	resumeResultSet(cursor);	if (!returnResultSetData(cursor)) {		endSession();		return false;	}	return true;}void sqlrconnection_svr::resumeResultSet(sqlrcursor_svr *cursor) {	#ifdef SERVER_DEBUG	debugPrint("connection",1,"resume result set...");	#endif	if (cursor->suspendresultset) {		#ifdef SERVER_DEBUG		debugPrint("connection",2,"previous result set was suspended");		#endif		// indicate that no error has occurred		clientsock->write((uint16_t)NO_ERROR);		// send the client the id of the 		// cursor that it's going to use		clientsock->write(cursor->id);		clientsock->write((uint16_t)SUSPENDED_RESULT_SET);		// if the requested cursor really had a suspended		// result set, send the lastrow of it to the client		// then send the result set header		clientsock->write(lastrow);		returnResultSetHeader(cursor);	} else {		#ifdef 	SERVER_DEBUG		debugPrint("connection",2,				"previous result set was not suspended");		#endif		// indicate that an error has occurred		clientsock->write((uint16_t)ERROR);		// send the error itself		clientsock->write((uint16_t)43);		clientsock->write("The requested result set was not suspended.",					43);	}	#ifdef SERVER_DEBUG	debugPrint("connection",1,"done resuming result set");	#endif}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -