[display_sql]

Description

Link: [display_sql]
Author: Alex Pilson
Category: Database
Version: 8.x
License: Public Domain
Posted: Jan. 21, 2006
Updated: Jan. 21, 2006
More by this author...
Simple tag to view action_statements for debugging SQL.

Parameters

-show string, required required to use the tag. Show/Hide output basically.

Sample Usage

Inline:
			$connection,
			-inlineName='shopBySize',
			-sql=$sql;

				display_sql:'y';

			/inline;
						

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
define_tag:'sql',
	-nameSpace='display_',
	-priority='replace',
	-required='show', -type='string';
	
	local:'result'='';

	if(#show =='y');

		#result +='<pre>';
		#result += (encode_break(action_statement));
		#result +='</pre>';
		
	/if;
	
	return: @#result;

/define_tag;

 

Comments

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net