Label rows with the table name when printing db logs
cmr=v1.7.5:reviewer=rhc This commit was SVN r30410.
Этот коммит содержится в:
родитель
e496e348a4
Коммит
c6c10f47b8
@ -120,6 +120,8 @@ static int add_log(const char *table,
|
|||||||
/* record that we have it */
|
/* record that we have it */
|
||||||
vstr = strdup(table);
|
vstr = strdup(table);
|
||||||
opal_pointer_array_add(&tables, vstr);
|
opal_pointer_array_add(&tables, vstr);
|
||||||
|
/* start with the table name */
|
||||||
|
opal_argv_append_nosize(&cmdargs, table);
|
||||||
/* create and print the column headers */
|
/* create and print the column headers */
|
||||||
for (i=0; i < nkvs; i++) {
|
for (i=0; i < nkvs; i++) {
|
||||||
opal_argv_append_nosize(&cmdargs, kvs[i].key);
|
opal_argv_append_nosize(&cmdargs, kvs[i].key);
|
||||||
@ -131,6 +133,9 @@ static int add_log(const char *table,
|
|||||||
cmdargs = NULL;
|
cmdargs = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* put the table at the start */
|
||||||
|
opal_argv_append_nosize(&cmdargs, table);
|
||||||
|
|
||||||
/* cycle through the provided values and print them */
|
/* cycle through the provided values and print them */
|
||||||
for (i=0; i < nkvs; i++) {
|
for (i=0; i < nkvs; i++) {
|
||||||
switch (kvs[i].type) {
|
switch (kvs[i].type) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user