DECLARE
number1 NUMBER(2);
number2 NUMBER(2) := 17; -- value default
text1 VARCHAR2(12) := 'Hello world';
text2 DATE := SYSDATE; -- current date and time
BEGIN
SELECT street_number
INTO number1
FROM address
WHERE name = 'INU';
END;
while the other side looked like this:
DECLARE
number1 NUMBER(2);
number2 NUMBER(2) := 17; -- value default
text1 VARCHAR2(12) := 'Hello world';
text2 DATE := SYSDATE; -- current date and time
BEGIN
SELECT street_number INTO number1 FROM address WHERE name = 'INU';
END;
Note that the lines of the text1 and text2 variable declarations have small alignment differences between the two sides, and that the SQL SELECT statement is multiline in the first case, but only 1 line in the second case. These two snippets are identical PL SQL programmings (produce the same AST), but are different textually.
The TextDiffor will, by default, see these two snippets as identical. It uses a very simple text normalization before performing the String comparison.
1) replace all tabs and newlines ([\t\r\n]) with a single space character
2) compress all multi-character whitespace runs to a single space character
3) trim all whitespace from both ends
Have you had a look at google-diff-match-patch/? It has a Java version too. Just FYI.
ReplyDeleteCheers!
Thanks for pointing that out Ashwin. I'll see if it makes sense to plug that in instead of rolling my own. One requirement that has been posed is to be able to ignore comments in stored procedures. My initial thinking is to simply implement this as a list of regexes to be ignored, but perhaps google-diff-match-patch can already handle it.
ReplyDeletethanks,
Joe
tory burch outlet
ReplyDeletenfl jerseys
ray ban eyeglasses
michael kors outlet online
christian louboutin outlet
nike blazer low
chaussures louboutin
michael kors handbags
polo outlet
cheap nike shoes
20161124caiyan
michael kors handbags
ReplyDeleteugg outlet
canada goose
gucci handbags
coach factory outlet
nike air max
gucci handbags
cheap ray ban sunglasses
rolex replica watches
michael kors outlet
20170109
true religion jeans
ReplyDeleteadidas yeezy boost 350
snapbacks wholesale
michael kors handbags
hollister shirts
burberry outlet
omega replica watches
nike air max 2016
oakley sunglasses wholesale
christian louboutin outlet
2017.3.21xukaimin
20181030 junda
ReplyDeletegrizzlies jerseys
five fingers shoes
gucci outlet
ralph lauren polo
michael kors handbags
merrell shoes
columbia sportswear
mizuno running shoes
ray ban outlet
supra shoes
The first thing you should do is talk with your friend or family member about the potential Fast bail bonding services in Dallas TX they would like to use. If you can’t reach them, then go online and look for reviews on the various companies in the area. The best way to find a good bail bond company is through word of mouth, so ask around!
ReplyDeletereplica bags hermes site link u4m77a2y92 replica bags manila replica bags london replica gucci y7v71n3o09 replica bags thailand hop over to this site o9e71t8j65 best replica designer zeal replica bags reviews
ReplyDeletewebsite link q3u74g5k57 louis vuitton fake replica bags turkey replica bags chicago look at this now a2r07f6o60 joy replica bags review replica bags from china free shipping hermes fake q9x23b5n77 replica bags supplier
ReplyDelete