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
{{ message }}
Repository navigation
External storage SMB/CIFS share doesn't show in files app when using postgresql #2371
I had the same issue with mssql where empty strings have been converted to null by mdb2.
There is an option on mdb2.
Please have a look at db.php where the mssql connection is initialized.
In general we need to be more accurate in checking db errors.
I've added "$options['portability'] = $options['portability'] - MDB2_PORTABILITY_EMPTY_TO_NULL;" @ line 273 in db.php in the pgsql case block; copied from the mssql block as suggested - and now it's working.
Activity
LukasReschke commentedon Mar 16, 2013
@MTGap
sodnpoo commentedon Mar 16, 2013
Hi Lukas, thanks for responding - are you suggesting there might be a fix in MTGap's repo's/commits?
LukasReschke commentedon Mar 16, 2013
No - but MTGap is the responsible developer and with this comment he got notified of this issue :-)
DeepDiver1975 commentedon Mar 16, 2013
I had the same issue with mssql where empty strings have been converted to null by mdb2.
There is an option on mdb2.
Please have a look at db.php where the mssql connection is initialized.
In general we need to be more accurate in checking db errors.
@MTGap
sodnpoo commentedon Mar 16, 2013
Excellent - thanks DeepDiver1975 :)
I've added "$options['portability'] = $options['portability'] - MDB2_PORTABILITY_EMPTY_TO_NULL;" @ line 273 in db.php in the pgsql case block; copied from the mssql block as suggested - and now it's working.
MTGap commentedon Mar 16, 2013
@sodnpoo Could you please open a pull request?
Remove MDB2_PORTABILITY_EMPTY_TO_NULL for postgres
sodnpoo commentedon Mar 17, 2013
@MTGap done :)
sodnpoo commentedon Mar 19, 2013
I'll try and get a unit test together this week (sorry been unavailable for a few days).
butonic commentedon Jun 24, 2013
@sodnpoo this should be fixed in master and stable5. can you confirm?