You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug db.tables module doesn't see vector map table if table was created with ODBC DB (tested with MySQL/PostgreSQL DB backend) connection.
To Reproduce
Steps to reproduce the behavior:
Download shapefiles e.g.
mkdir /tmp/shp && cd /tmp/shp && wget https://data.hydrosheds.org/file/hydrobasins/customized_with_lakes/hybas_lake_eu_lev01-12_v1c.zip
Extract archive with cd /tmp/shp && unzip hybas_lake_eu_lev01-12_v1c.zip
Create new location (project) according shapefile grass -c /tmp/shp/hybas_lake_eu_lev01_v1c.shp hybas
Set ODBC DB connection (MySQL, PostgreSQL DB backend) setting via unixODBC, under Gentoo GNU/Linux distro I have installed:
dev-db/unixODBC,
dev-db/postgresql,
dev-db/psqlodbc,
dev-db/mysql,
dev-db/myodbc
unixODBC DB driver settings
$ cat /etc/unixODBC/odbcinst.ini
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib64/psqlodbcw.so
Setup =
FileUsage =
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib64/myodbc-8.0/libmyodbc8w.so
Setup =
FileUsage =
Create DB backend new DB with test name and new user with test name
unixODBC DB connection settings
cat /etc/unixODBC/odbc.ini
[test_pg]
Description = PostgreSQL
Driver = PostgreSQL
Trace = No
TraceFile =
Database = test
Servername = localhost
UserName = test
Password = test
Port = 5432
Protocol =
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
ConnSettings =
[test_mysql]
Description = MySQL
Driver = MySQL
Trace = No
TraceFile =
Database = test
Servername = localhost
UserName = test
Password = test
Port = 3306
Protocol =
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
ConnSettings =
Describe the bug
db.tables
module doesn't see vector map table if table was created with ODBC DB (tested with MySQL/PostgreSQL DB backend) connection.To Reproduce
Steps to reproduce the behavior:
cd /tmp/shp && unzip hybas_lake_eu_lev01-12_v1c.zip
grass -c /tmp/shp/hybas_lake_eu_lev01_v1c.shp hybas
db.tables -p
module (table is not founded)mysql
cli program (table exists)Expected behavior
db.tables
module should see vector map table if table was created with ODBC DB connection.System description (please complete the following information):
The text was updated successfully, but these errors were encountered: