Version 5.4 commercial on Linux

Weird problem with setDatabaseName() is there a maximum length for local file name?

If I try to setDatabaseName() to /media/mmcblk1p1/.config/Somebody Corp/history.db the open fails with the ubiquitous "out of memory Error opening database"
If I use /.config/Somebody Corp/history.db everything works.

Yes, both directories exist. In fact there are other non QSqlDatabase things in the same method writing to the same /media path successfully. It is just the database which has issue trying to open a file there. Since a space in the path name works with the shorter name I would tend to rule it out as being the problem.

Does anybody know if there is a max length for a local path name or if QSqlDatabase using QSQLITE has a problem with /media/mmcblk type paths? We need to put our history database on the card due to storage limitations on the target. Before I change this around completely to thump in a link after verifying the directory exists I would like to hear from someone else who has been down this path.