 -- internal function to check
 
 DROP FUNCTION IF EXISTS _has_column  //
-CREATE FUNCTION _has_column (dbname TEXT, tname TEXT, cname TEXT )
+CREATE FUNCTION _has_column( dbname TEXT, tname TEXT, cname TEXT)
 RETURNS BOOLEAN
 BEGIN
 	DECLARE b_result boolean;

    RETURN coalesce(ret, false);
END //

-- col_has_pos_in_named_index ( schema, table, column, keyname, position )
DROP FUNCTION IF EXISTS col_has_pos_in_named_index //
CREATE FUNCTION col_has_pos_in_named_index ( dbname TEXT, tname TEXT, cname TEXT, kname TEXT, position INT, description TEXT )

    RETURN ok( _col_default_is( dbname, tname, cname, cdefault ), description );
END //


/****************************************************************************/
-- XXX FIX THIS XXX
-- _col_extra_is ( schema, table, column, extra )

-- note: in MySQL 5.5x 'extra' default to ''
