newquery.c

来自「适合于Unix/Linux下的一个持久数据库连接池」· C语言 代码 · 共 34 行

C
34
字号
// Copyright (c) 1999-2001  David Muse// See the file COPYING for more information#include <sqlrconnection.h>bool sqlrconnection_svr::newQueryCommand(sqlrcursor_svr *cursor) {	#ifdef SERVER_DEBUG	debugPrint("connection",1,"new query");	#endif	// handleQuery() will return:	//	1 for success,	//	0 for network error	//	-1 for a bad query	int32_t	querystatus=handleQuery(cursor,false,false,true);	if (querystatus==1) {		// reinit lastrow		lastrowvalid=false;		if (!returnResultSetData(cursor)) {			endSession();			return false;		}		return true;	} else if (!querystatus) {		endSession();		return false;	} else {		return true;	}}

⌨️ 快捷键说明

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