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

📄 skiprows.c

📁 适合于Unix/Linux下的一个持久数据库连接池
💻 C
字号:
// Copyright (c) 1999-2001  David Muse// See the file COPYING for more information#include <sqlrconnection.h>bool sqlrconnection_svr::skipRows(sqlrcursor_svr *cursor, uint64_t rows) {	#ifdef SERVER_DEBUG	debugstr=new stringbuffer();	debugstr->append("skipping ");	debugstr->append(rows);	debugstr->append(" rows...");	debugPrint("connection",2,debugstr->getString());	delete debugstr;	#endif	for (uint64_t i=0; i<rows; i++) {		#ifdef SERVER_DEBUG		debugPrint("connection",3,"skip...");		#endif		if (lastrowvalid) {			lastrow++;		} else {			lastrowvalid=true;			lastrow=0;		}		if (!cursor->skipRow()) {			#ifdef SERVER_DEBUG			debugPrint("connection",2,				"skipping rows hit the end of the result set");			#endif			return false;		}	}	#ifdef SERVER_DEBUG	debugPrint("connection",2,"done skipping rows");	#endif	return true;}

⌨️ 快捷键说明

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