[GRASS-git] [OSGeo/grass] 3f7bd7: v.to.db: fix option=query (#2085)

Markus Metz noreply at github.com
Fri Jan 28 02:24:01 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 3f7bd7eb5ec4c69a4c15d72bfb205693f3e747bc
  Author: Markus Metz <33666869+metzm at users.noreply.github.com>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    M vector/v.to.db/main.c

  Log Message:
  v.to.db: fix option=query (#2085)

With `option=query`, query columns can not only be columns, but also SQL expressions like `count(x)` or `avg(x)`. In these cases the check for column type fails, and it is up to the user to first create a new column of the appropriate type for storing results, before running `v.to.db`.

More information about the grass-commit mailing list