Opened 15 years ago
Closed 15 years ago
#1055 closed defect (invalid)
db.select can´t found columns generated by v.rast.stats with dbf driver
Reported by: | jeleniste | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.4.0 |
Component: | Database | Version: | 6.4.0 RCs |
Keywords: | dbf, db.select | Cc: | |
CPU: | Unspecified | Platform: | MSWindows XP |
Description
if I try to use in sql parameter in where clausule column generated by v.rast.stats it return me error, column cant be found, but is presented in table output (if not used in where clausule), using in list of columns for select returns me error to
Change History (6)
comment:1 by , 15 years ago
Component: | default → Database |
---|
follow-up: 3 comment:2 by , 15 years ago
follow-up: 4 comment:3 by , 15 years ago
Seems to work... Did I understood well?
Martin
No
Try db.select sql = "Select cat,elev_n,elev_min from geo where=elev_n not NULL"
this return me error
comment:4 by , 15 years ago
Replying to jeleniste:
Try db.select sql = "Select cat,elev_n,elev_min from geo where=elev_n not NULL"
it should be
db.select sql="select cat,elev_n,elev_min from geo where elev_n not NULL"
so without =
after where
keyword.
Martin
comment:5 by , 15 years ago
of coururse, but
db.select sql="select cat,elev_n,elev_min from geo where elev_n not NULL"
don´t work on my distribution
GRASS 6.4> db.select sql="select cat, slope_n from vvp_plochy where elev_n not NULL" DBMI-DBF driver error: Column 'slope_n' not found Error in db_open_select_cursor() GRASS 6.4> GRASS 6.4> db.columns vvp_plochy cat CISLO_VVP ID NAZEV slope__n slope__min slope__max slope__ran slope__mea slope__std slope__var slope__cf_ slope__sum GRASS 6.4> slope__var slope__cf_ slope__sum
Oh. I'm so sorry, my columns have two in prefix. My fault
comment:6 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
As far as I understand, user error. Closing.
Replying to jeleniste:
Seems to work... Did I understood well?
Martin