Changeset 19152
- Timestamp:
- 08/11/18 20:31:15 (6 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fits2sql.cc
r19151 r19152 513 513 query += " `"+name; 514 514 if (N>1) 515 query += "["+to_string( (long long int)i)+"]";515 query += "["+to_string(i)+"]"; 516 516 query += "` "+sqltype; 517 517 if (col.type=='A') 518 query += '('+to_string( (long long int)col.num)+')';518 query += '('+to_string(col.num)+')'; 519 519 query += " NOT NULL COMMENT '"+ic->first; 520 520 if (!col.unit.empty()) … … 549 549 Database connection(uri); 550 550 551 try 552 { 553 if (!force) 554 connection.connected(); 555 } 556 catch (const exception &e) 557 { 558 cerr << "SQL connection failed: " << e.what() << '\n' << endl; 559 return 4; 560 } 561 551 562 if (verbose>0) 552 563 { … … 571 582 return 6; 572 583 } 573 }574 575 try576 {577 if (!force)578 connection.connected();579 }580 catch (const exception &e)581 {582 cerr << "SQL connection failed: " << e.what() << '\n' << endl;583 return 4;584 584 } 585 585 … … 714 714 query += " `"+c->column+"`"; 715 715 else 716 query += " `"+c->column+"["+to_string( (long long int)i)+"]`";716 query += " `"+c->column+"["+to_string(i)+"]`"; 717 717 718 718 if (N>1 && i!=N-1) -
trunk/FACT++/src/root2sql.cc
r19151 r19152 545 545 query += " `"+name; 546 546 if (N>1) 547 query += "["+to_string( (long long int)i)+"]";547 query += "["+to_string(i)+"]"; 548 548 query += "` "+sqltype+" NOT NULL COMMENT '"+o->GetTitle()+"'"; 549 549 if (N>1 && i!=N-1) … … 750 750 query += " `"+c->column+"`"; 751 751 else 752 query += " `"+c->column+"["+to_string( (long long int)i)+"]`";752 query += " `"+c->column+"["+to_string(i)+"]`"; 753 753 754 754 if (N>1 && i!=N-1)
Note:
See TracChangeset
for help on using the changeset viewer.