[gnome-db] Patch: Oracle Provider - Variable width strings



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:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]