• The function wpsql_fetch_field was not implemented in driver_pgsql.php:

    	function wpsql_fetch_field($result)
    		{ return 'tablename'; }

    This is required, among other things, for the plug-in “wp-db-table-editor”

    The following Q&D adjustment works for me:

    class pg4fetch_field
        {
            public $name='empty';
            public $type='';
        }
    	function wpsql_fetch_field($result, $num)
    	{
            $objekt=new pg4fetch_field();
            $object->name = pg_field_name($result, $num);
            $object->type = pg_field_type($result, $num);
            return $object; 
        }

    Note:
    The type conversion is probably not correct, since (mysql/pg)_field_type returns a text and mysql_fetch_field returns a number

    • This topic was modified 3 years, 4 months ago by ezusoft.
    • This topic was modified 3 years, 4 months ago by ezusoft.
  • The topic ‘Missing function wpsql_fetch_field’ is closed to new replies.