@@ -530,7 +530,7 @@ int output_flex_t::table_tostring()
530530 auto const &table = get_table_from_param ();
531531
532532 std::string const str{fmt::format (" osm2pgsql.Table[{}]" , table.name ())};
533- lua_pushstring (lua_state (), str. c_str () );
533+ luaX_pushstring (lua_state (), str);
534534
535535 return 1 ;
536536}
@@ -689,8 +689,8 @@ int output_flex_t::table_insert()
689689 } catch (not_null_exception const &e) {
690690 copy_mgr->rollback_line ();
691691 lua_pushboolean (lua_state (), false );
692- lua_pushstring (lua_state (), " null value in not null column." );
693- lua_pushstring (lua_state (), e.column ().name (). c_str ());
692+ lua_pushliteral (lua_state (), " null value in not null column." );
693+ luaX_pushstring (lua_state (), e.column ().name ());
694694 push_osm_object_to_lua_stack (lua_state (), object);
695695 table_connection.increment_not_null_error_counter ();
696696 return 4 ;
@@ -730,14 +730,14 @@ int output_flex_t::table_columns()
730730int output_flex_t::table_name ()
731731{
732732 auto const &table = get_table_from_param ();
733- lua_pushstring (lua_state (), table.name (). c_str ());
733+ luaX_pushstring (lua_state (), table.name ());
734734 return 1 ;
735735}
736736
737737int output_flex_t::table_schema ()
738738{
739739 auto const &table = get_table_from_param ();
740- lua_pushstring (lua_state (), table.schema (). c_str ());
740+ luaX_pushstring (lua_state (), table.schema ());
741741 return 1 ;
742742}
743743
@@ -758,7 +758,7 @@ int output_flex_t::expire_output_tostring()
758758 expire_output.minzoom (), expire_output.maxzoom (),
759759 expire_output.filename (), expire_output.schema (),
760760 expire_output.table ());
761- lua_pushstring (lua_state (), str. c_str () );
761+ luaX_pushstring (lua_state (), str);
762762
763763 return 1 ;
764764}
@@ -783,23 +783,23 @@ int output_flex_t::expire_output_filename()
783783{
784784 auto const &expire_output = get_expire_output_from_param ();
785785
786- lua_pushstring (lua_state (), expire_output.filename (). c_str ());
786+ luaX_pushstring (lua_state (), expire_output.filename ());
787787 return 1 ;
788788}
789789
790790int output_flex_t::expire_output_schema ()
791791{
792792 auto const &expire_output = get_expire_output_from_param ();
793793
794- lua_pushstring (lua_state (), expire_output.schema (). c_str ());
794+ luaX_pushstring (lua_state (), expire_output.schema ());
795795 return 1 ;
796796}
797797
798798int output_flex_t::expire_output_table ()
799799{
800800 auto const &expire_output = get_expire_output_from_param ();
801801
802- lua_pushstring (lua_state (), expire_output.table (). c_str ());
802+ luaX_pushstring (lua_state (), expire_output.table ());
803803 return 1 ;
804804}
805805
@@ -1338,7 +1338,7 @@ void output_flex_t::init_lua(std::string const &filename,
13381338
13391339 luaX_add_table_int (lua_state (), " stage" , 1 );
13401340
1341- lua_pushstring (lua_state (), " properties" );
1341+ lua_pushliteral (lua_state (), " properties" );
13421342 lua_createtable (lua_state (), 0 , (int )properties.size ());
13431343 for (auto const &property : properties) {
13441344 luaX_add_table_str (lua_state (), property.first .c_str (),
0 commit comments