Ticket #87: routing_core_031207.patch

File routing_core_031207.patch, 1.3 KB (added by rodj59, 3 years ago)
  • usr/share/postgresql/routing_core.sql

    old new  
    9191       RETURNS void AS 
    9292$$ 
    9393BEGIN 
    94                 EXECUTE 'SELECT create_graph_tables('''||quote_ident(geom_table)||''',''int4'',' || '''gid'' ,''source_id'',''target_id'')'; 
     94                EXECUTE 'SELECT create_graph_tables('||quote_literal(geom_table)||',''int4'',' || '''gid'' ,''source_id'',''target_id'')'; 
    9595END; 
    9696$$ 
    9797LANGUAGE 'plpgsql' VOLATILE STRICT; 
     
    101101       RETURNS void AS 
    102102$$ 
    103103BEGIN 
    104                 EXECUTE 'SELECT create_graph_tables('''||quote_ident(geom_table)||''','''||quote_ident(column_type)||''',' || '''gid'' ,''source_id'',''target_id'')'; 
     104                EXECUTE 'SELECT create_graph_tables('||quote_literal(geom_table)||','||quote_literal(column_type)||',' || '''gid'' ,''source_id'',''target_id'')'; 
    105105END; 
    106106$$ 
    107107LANGUAGE 'plpgsql' VOLATILE STRICT; 
     
    111111       RETURNS void AS 
    112112$$ 
    113113BEGIN 
    114                 EXECUTE 'SELECT create_graph_tables('''||quote_literal(geom_table)||''','''||quote_literal(column_type)||''',''' || quote_literal(id_name) || ''' ,''source_id'',''target_id'')'; 
     114                EXECUTE 'SELECT create_graph_tables('||quote_literal(geom_table)||','||quote_literal(column_type)||',' || quote_literal(id_name) || ' ,''source_id'',''target_id'')'; 
    115115        RETURN; 
    116116END; 
    117117$$