📄 bindformat.c
字号:
// Copyright (c) 2007 David Muse// See the file COPYING for more information#include <sqlrelay/sqlrclient.h>#include <defines.h>const char *sqlrconnection::bindFormat() { if (!openSession()) { return false; } if (debug) { debugPreStart(); debugPrint("bind format..."); debugPrint("\n"); debugPreEnd(); } cs->write((uint16_t)BINDFORMAT); flushWriteBuffer(); // get the bindformat uint16_t size; if (cs->read(&size)==sizeof(uint16_t)) { delete[] bindformat; bindformat=new char[size+1]; if (cs->read(bindformat,size)!=size) { setError("Failed to get bind format.\n A network error may have ocurred."); delete[] bindformat; bindformat=NULL; return NULL; } bindformat[size]=(char)NULL; if (debug) { debugPreStart(); debugPrint(bindformat); debugPrint("\n"); debugPreEnd(); } } else { setError("Failed to get bind format.\n A network error may have ocurred."); return NULL; } return bindformat;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -