piranna/AntiORM — Issue #6: Special SELECT_multiple optimized function
Author: piranna
Created: 2012-03-03 20:22:11+00:00
State: open

Add an optimized function for when a multiple statement script have a SELECT one as its first one.

It must store and return its result value and exec the others as normally. Since SELECT return data directly that can't be used after that by the script elements, there would be no conflicts. It would be useful for example to do a check and do some operation with it, and later return the value of the check (the check will be exec twice because it's on different statements, but internally would be optimized. It's main purpose is to isolate SQL code and have some feedback to do some operations outside).