Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/commonal.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.14 by youi, Sat Nov 27 01:07:31 2004 UTC revision 1.15 by aga, Sat Nov 27 02:22:22 2004 UTC
# Line 2  Line 2 
2   *   *
3   * $Revision$   * $Revision$
4   * $Log$   * $Log$
5     * Revision 1.15  2004/11/27 02:22:22  aga
6     * ・initializeDB前にaddSlashes()を呼ぶと落ちるのを修正.
7     *
8   * Revision 1.14  2004/11/27 01:07:31  youi   * Revision 1.14  2004/11/27 01:07:31  youi
9   * criteria2str: LIMITとORDER BYの順番を入れ替えた.   * criteria2str: LIMITとORDER BYの順番を入れ替えた.
10   *   *
# Line 80  static string dbprefix; //!< XOOPSデータ Line 83  static string dbprefix; //!< XOOPSデータ
83   */   */
84  string addSlashes( const char *str )  string addSlashes( const char *str )
85  {  {
86            if ( mysql == NULL ){
87                    string s;
88                    return s;
89            }
90          int len = strlen(str);          int len = strlen(str);
91          char *buf = new char[len*2+1];          char *buf = new char[len*2+1];
92          int bufLen = mysql_real_escape_string( mysql, buf, str, len );          int bufLen = mysql_real_escape_string( mysql, buf, str, len );

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26