Home  Contents

sql:sql

Sql Core4 Lua Commands

SYNOPSIS

text = query:sql()

DESCRIPTION

Returns the original SQL text that is currently prepared or executing inside the query.

This is the exact same string as was passed to sql:prepare() or sql:exec() before.

RETURN VALUE

If a query has an SQL statement loaded, returns the original string, otherwise returns nil.