Details Ticket 3337


Comment | Reply | Take | Open


Serial Number 3337
Subject Table created by MySQL driver is not usable by GRASS
Area grass6
Queue grass
Requestors harri.kiiskinen@utu.fi
Owner none
Status resolved
Last User Contact Sun Dec 3 21:44:18 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sun Dec 3 21:44:18 2006 (2 yr ago)
Created Thu Jun 9 14:32:50 2005 (3 yr ago)

Transaction History Ticket 3337


Thu, Jun 9 2005 14:32:50    Request created by guest  
Subject: Table created by MySQL driver is not usable by GRASS

Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.1.cvs_src_snapshot_2005_06_04

The varchar() and integer fields have a default value of [NULL] when a new table
has been created by GRASS. However, for example the v.digit cannot open a table
where the fields have NULL values, so the fields cannot be edited. Each table
has to be corrected manually by opening them with some other program and replacing
the NULL values either with spaces or zeros; after that, everything works, but
this is not the way it should be: a zero value has a meaning different from a
NULL value.

Greetings,

Harri K.
Sat, Aug 13 2005 13:06:47    Area changed to grass6.1 by msieczka  
Wed, Aug 31 2005 20:52:28    Area changed to grass6 by mneteler  
Mon, Dec 12 2005 23:40:53    Mail sent by guest  
i get DBMI errors when connected MySQL tables contain 'NULL' values.

GRASS6.1-CVS 12-12-2005
MySQL 4.1.15-Debian

Altering my tables with 'not NULL' is a temporary fix- but you are correct
about this causing problems later on when 'NULL' values are important for
statistics and such...

Thoughts?
Tue, Oct 3 2006 13:43:08    Mail sent by mneteler  
Harri,

could you verify this bug with GRASS 6.3?

thanks
Markus
Sun, Dec 3 2006 21:44:18    Status changed to resolved by mneteler  
Sun, Dec 3 2006 21:44:18    Mail sent by mneteler  
The MySQL driver Changelog says:

2006-01-24 11:47  radim
        * Makefile, create_table.c, cursor.c, db.c, dbdriver.h, describe.c,
driver.c, error.c, execute.c, fetch.c, globals.h, index.c,
          listtab.c, main.c, mysql.html, parse.c, proto.h, select.c: driver
rewritten

I assume that it now works.
Closing, feel free to reopen if needed.

Markus
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request