Re: [gnome-db] Patch: Oracle Provider - Variable width strings
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: Steve Fosdick <fozzy pelvoux demon co uk>
- Cc: GDA <gnome-db-list gnome org>
- Subject: Re: [gnome-db] Patch: Oracle Provider - Variable width strings
- Date: 31 Jan 2003 12:44:16 +0100
On Fri, 2003-01-31 at 01:22, Steve Fosdick wrote:
> The following patch to the oracle provider causes strings returned from the database to have the trailing spaces trimmed off. In mergeant this generally results in more text on the display.
>
> --- libgda-0.10.0/providers/oracle/utils.c Thu Jan 16 00:13:26 2003
> +++ libgda-0.10.0-sjf1/providers/oracle/utils.c Thu Jan 30 11:54:55 2003
> @@ -378,6 +378,7 @@
> string_buffer = g_malloc0 (ora_value->defined_size+1);
> memcpy (string_buffer, ora_value->value, ora_value->defined_size);
> string_buffer[ora_value->defined_size] = '\0';
> + g_strchomp(string_buffer);
> gda_value_set_string (value, string_buffer);
> break;
> case GDA_VALUE_TYPE_BIGINT:
this was easy to apply, no need for the patch command :-) Anyway, Steve,
please attach the patches to the mail, and, also, add a ChangeLog entry
for every change you do.
This, as I said, is already in CVS.
cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]