Forum
Show product page of program "Universal Code Lines Counter"
Table of contents: Bug if Code Lines Counter reading PL/SQL file, Sven, 2010-04-12 16:25:16
Re: Bug if Code Lines Counter reading PL/SQL file, Sven, 2010-04-12 16:27:12
Re: Re: Bug if Code Lines Counter reading PL/SQL file, Andreas Breitschopp (
Webmaster), 2010-04-16 23:30:50
Bug if Code Lines Counter reading PL/SQL file Sven, 2010-04-12 16:25:16 |
If I use mySQL language then the count reports wrong since my code has line comment inside block comment
Example:
>>>>>>>>>>>>>>
CREATE OR REPLACE TRIGGER y
BEFORE INSERT OR UPDATE ON x
FOR EACH ROW
/*-----------------------------------------------------------------------------
History:
When: Who: What:
-------- ---- ---------------------------------------------------------------
20100101 SVB Initial version
-------------------------------------------------------------------------------
Copyright © 2010 Company. All Rights Reserved.
-----------------------------------------------------------------------------*/
DECLARE
ll_tmp PLS_INTEGER;
BEGIN
if INSERTING then
if ( :new.y_id IS NULL ) OR ( :new.y_id < 1 ) then
ll_tmp := 1;
:new.y_id := ll_PKId;
end if;
:new.createddate := TRUNC( SYSDATE );
:new.updateddate := TRUNC( SYSDATE );
else
:new.createdbyid := :old.createdbyid;
:new.createddate := :old.createddate;
:new.updateddate := TRUNC( SYSDATE );
end if;
:new.xvalue := LOWER( REPLACE( :new.xvalue, ' ' ) );
:new.xdesc := functionyyy( :new.xdesc );
END;
/
|
Reply | Goto top |
Re: Bug if Code Lines Counter reading PL/SQL file Sven, 2010-04-12 16:27:12 |
The result was:
File name "Total
lines" "Source code
lines" "Source code
lines (%)" "Blank
lines" "Blank
lines (%)" "Comment
lines" "Comment
lines (%)" "Mixed
lines" "Mixed
lines (%)" "File size
(in bytes)"
\test.sql 34 3 8,82 4 11,76 27 79,41 0 0 1�017
TOTAL COUNT FOR ALL 1,00 FILES 34 3 8,82 27 79,41 4 11,76 0 0 1�017,00
|
Reply | Goto top |
Re: Re: Bug if Code Lines Counter reading PL/SQL file Andreas Breitschopp (Webmaster), 2010-04-16 23:30:50 |
Hello Sven,
thank you for your message.
This issue has been fixed in current version 1.1.1 now.
Best regards
Andreas |
Reply | Goto top |