[GRASS-git] [OSGeo/grass] a2686a: v.db.update: Use case insensitive comparison for c...

Vaclav Petras noreply at github.com
Sun Feb 28 20:06:21 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: a2686a361e291cfb74017375c8a08ad09eefadbd
      https://github.com/OSGeo/grass/commit/a2686a361e291cfb74017375c8a08ad09eefadbd
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2021-02-28 (Sun, 28 Feb 2021)

  Changed paths:
    M scripts/v.db.update/v.db.update.py

  Log Message:
  -----------
  v.db.update: Use case insensitive comparison for columns (#1413)

Returned column names are with case as present in the table, but since unqoted column names in SQL are case insensitive,
the constructed UPDATE statement works in any case.

Without this PR, the following fails for column called ABC:
...column=abc where='abc IS NULL'...
although the where part as well as rest of the UPDATE statement would work.




More information about the grass-commit mailing list