Mysql function not work o_O

12 views
Skip to first unread message

stefano cerbioni

unread,
Jul 28, 2022, 9:27:23 AMJul 28
to The Ring Programming Language
Hi guys  yesterday my  function work but  today no , but i not modify nothing and S.O. don do update?? very strange   anyone can help me ? ??

is possible insert  somthing fo debug ?


DuplicateTableNoData1("Bin_Cross_History1D_1K","Bin_YOYOBTC_History1D_1K")


func DuplicateTableNoData1(sOldeTableName,sNewTableName){
con = mysql_init()
if mysql_connect(con, "127.0.0.1", "terminal", "Terminal123@","app_terminal") = 0
system_error(con)
ok
// Cancel all data inside of table
//CREATE TABLE new_table LIKE original_table;
mysql_query(con, "CREATE TABLE "+sNewTableName+" LIKE "+sOldeTableName)
infoTable = mysql_result(con)
mysql_close(con)
return infoTable
}

MsgInfo("Info","primo inserimento ")
Reply all
Reply to author
Forward
0 new messages