Changeset 19084 for trunk


Ignore:
Timestamp:
07/24/18 20:20:29 (6 years ago)
Author:
tbretz
Message:
Do not print overly long insert queries if not allowed by the user explicitly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/root2sql.cc

    r19083 r19084  
    162162        "are marked as (-ignored-).\n"
    163163        "\n"
     164        "If a query failed, the query is printed to stderr together with the error message. "
     165        "For the main INSERT query, this is only true if the verbosity level is at least 2 "
     166        "or the query has less than 80*25 bytes.\n"
     167        "\n"
    164168        "In case of succes, 0 is returned, a value>0 otherwise.\n"
    165169        "\n"
     
    582586    catch (const exception &e)
    583587    {
    584         cerr << query << "\n\n";
     588        if (verbose>1 || query.length()<80*25)
     589            cerr << query << "\n\n";
    585590        cerr << "SQL query failed (" << query.length() << " bytes):\n" << e.what() << endl;
    586591        return 6;
Note: See TracChangeset for help on using the changeset viewer.