Re: [gnome-db] PostgreSQL provider segfault and patch



2005/8/12, Juan Manuel Mouriz <jmouriz gmail com>:
> I get a segfault when I call gda_connection_get_schema () for
> GDA_CONNECTION_GET_SCHEMA_FIELDS:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1083972288 (LWP 16853)]
> 0x40ad3b2a in get_postgres_fields_metadata (cnc=0x0,
> params=0x40ad9149) at gda-postgres-provider.c:2075
> 2075                    if (arr == NULL || arr[0][0] == '\0') {
> 
> This happens when a index have a function instead of  column name:
> 
> create unique index alumnos_idx on alumnos (lower (nombre));
> 
> I attach a simple patch to avoid this.
> --

Thanks for the patch, I'll commit it soon.

Vivien



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