🕸Fergus Duniho wrote on Mon, May 14, 2018 12:24 AM UTC:
The problem with valid_column_name() is that it was returning false if it could not connect to the database. I replaced it with a function that has all the column names hardcoded into it. The one drawback to this is that it will have to be updated when columns in the database are updated. Although I didn't notice any problems with valid_table_name(), I also replaced it with one that has the table names hardcoded into it.
The problem with valid_column_name() is that it was returning false if it could not connect to the database. I replaced it with a function that has all the column names hardcoded into it. The one drawback to this is that it will have to be updated when columns in the database are updated. Although I didn't notice any problems with valid_table_name(), I also replaced it with one that has the table names hardcoded into it.