505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
|
sqlite3_snprintf(sizeof(zCode),zCode,"error code %d",iCode);
}
}
return zCode;
}
static void update_cmd_usage_stats(char const * zCommand){
if(!g.zLocalRoot) return /* we need a checkout */;
db_multi_exec("CREATE TABLE IF NOT EXISTS cmd_usage (name,mtime FLOAT);"
"INSERT INTO cmd_usage (name,mtime) VALUES (%Q,julianday('now'));",
zCommand);
}
/*
|
|
>
>
|
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
|
sqlite3_snprintf(sizeof(zCode),zCode,"error code %d",iCode);
}
}
return zCode;
}
static void update_cmd_usage_stats(char const * zCommand){
if(g.isHTTP || !g.zLocalRoot) return
/* we need a checkout and do not want to log the 'ui' bits forked
by local ui mode.*/;
db_multi_exec("CREATE TABLE IF NOT EXISTS cmd_usage (name,mtime FLOAT);"
"INSERT INTO cmd_usage (name,mtime) VALUES (%Q,julianday('now'));",
zCommand);
}
/*
|