--- parser3/src/sql/mysql/Attic/parser3mysql.C 2001/05/17 17:10:12 1.20 +++ parser3/src/sql/mysql/Attic/parser3mysql.C 2001/06/29 08:35:26 1.24 @@ -4,9 +4,8 @@ Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: parser3mysql.C,v 1.20 2001/05/17 17:10:12 parser Exp $ */ +static const char *RCSId="$Id: parser3mysql.C,v 1.24 2001/06/29 08:35:26 parser Exp $"; #include "config_includes.h" @@ -51,7 +50,7 @@ public: } /** connect @param used_only_in_connect_url - format: @b user:pass@{host[:port]|[/unix/socket]}/database/charset + format: @b user:pass@host[:port]|[/unix/socket]/database/charset 3.23.22b Currently the only option for @b character_set_name is cp1251_koi8. WARNING: must be used only to connect, for buffer doesn't live long @@ -181,8 +180,11 @@ public: for(unsigned int i=0; i<(*column_count); i++){ size_t size=(size_t)lengths[i]; row[i].size=size; - row[i].ptr=services.malloc(size); - memcpy(row[i].ptr, mysql_row[i], size); + if(size) { + row[i].ptr=services.malloc(size); + memcpy(row[i].ptr, mysql_row[i], size); + } else + row[i].ptr=0; } } } else