Produced by Araxis Merge on 12/7/2018 11:36:15 AM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\SCRUB\MHED\MHED\VATS 2.3.0\var-utility-web-2.3.0@19406cb7810\acceptance-tests\watir-ruby\module | DBUtility.rb | Thu Sep 13 18:55:48 2018 UTC |
| 2 | C:\MHED-scrubbed\MHED\MHED\VATS 2.3.0\var-utility-web-2.3.0@19406cb7810\acceptance-tests\watir-ruby\module | DBUtility.rb | Fri Dec 7 13:27:26 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 6 | 84 |
| Changed | 5 | 10 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | require "o ci8" | |
| 2 | ||
| 3 | module DBU tility | |
| 4 | DBVsID PW_R edacted " | |
| 5 | USER = "VARD B" | |
| 6 | HOST = " IP " | |
| 7 | ||
| 8 | def dele teStaffUse rDisclaime r(userId) | |
| 9 | conn_strin g = "(DESC RIPTION=(A DDRESS=(PR OTOCOL=TCP )(HOST= IP )(PORT= PORT ))(CONNECT _DATA=(SER VER=DEDICA TED)(SID=x e)))" | |
| 10 | puts U SER+"/"+DB PASSWORD+" @"+conn_st ring | |
| 11 | conn = OCI8.new( USER+"/"+D BPASSWORD+ "@"+conn_s tring) | |
| 12 | conn.e xec("DELET E from HAD B.STAFF_US ER_DISCLAI MER where USER_ID='" + userId + "'") | |
| 13 | conn.e xec("COMMI T") | |
| 14 | puts " Deleted DS U for User ID=" + use rId | |
| 15 | end | |
| 16 | ||
| 17 | def upda teStaffUse rDisclaime rDate(user Id, date) | |
| 18 | conn_strin g = "(DESC RIPTION=(A DDRESS=(PR OTOCOL=TCP )(HOST= IP )(PORT= PORT ))(CONNECT _DATA=(SER VER=DEDICA TED)(SID=x e)))" | |
| 19 | puts U SER+"/"+DB PASSWORD+" @"+conn_st ring | |
| 20 | conn = OCI8.new( USER+"/"+D BPASSWORD+ "@"+conn_s tring) | |
| 21 | conn.e xec("UPDAT E HADB.ST AFF_USER_D ISCLAIMER set SUD_DA TE= '"+ da te + "' wh ere USER_I D = '" + u serId + "' ") | |
| 22 | conn.e xec("COMMI T") | |
| 23 | puts " Updated SU D for User ID=" + use rId | |
| 24 | end | |
| 25 | ||
| 26 | def setS taffUserDi sclaimer(u serId, vis taLocation ) | |
| 27 | puts " Start [set StaffUserD isclamimer Date]" | |
| 28 | conn_strin g = "(DESC RIPTION=(A DDRESS=(PR OTOCOL=TCP )(HOST= IP )(PORT= PORT ))(CONNECT _DATA=(SER VER=DEDICA TED)(SID=x e)))" | |
| 29 | puts U SER+"/"+DB PASSWORD+" @"+conn_st ring | |
| 30 | conn = OCI8.new( USER+"/"+D BPASSWORD+ "@"+conn_s tring) | |
| 31 | ||
| 32 | num_ro ws = conn. exec("SELE CT * FROM HADB.STAFF _USER_DISC LAIMER WHE RE USER_ID ='" + user Id + "' an d VISTA_LO CATION='" + vistaLoc ation + "' " ) do |r | | |
| 33 | puts r.join(', ') | |
| 34 | end | |
| 35 | ||
| 36 | if num _rows == n il || num _rows == 0 then | |
| 37 | sqlS tring = "I NSERT INTO HADB.STAF F_USER_DIS CLAIMER (U SER_ID, VI STA_LOCATI ON, SUD_ST ATE, SUD_D ATE ) VALU ES ('" + u serId + "' " + ", '" + vistaLoc ation + "' , TO_NUMBE R(1), TO_D ATE('2017/ 02/01', 'Y YYY/MM/DD' ))" | |
| 38 | ||
| 39 | conn .exec(sqlS tring) | |
| 40 | conn .commit | |
| 41 | end | |
| 42 | ||
| 43 | conn.l ogoff | |
| 44 | puts " End [setSt affUserDis clamimerDa te]" | |
| 45 | end | |
| 46 | ||
| 47 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.