mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
reference: SqlIdOpt
git-svn-id: svn://ultimatepp.org/upp/trunk@7252 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c64db5b4b1
commit
3eb11e246a
3 changed files with 35 additions and 0 deletions
18
reference/SqlIdOpt/SqlIdOpt.cpp
Normal file
18
reference/SqlIdOpt/SqlIdOpt.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include <Sql/Sql.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
SQLID(COLUMN)
|
||||
SQLID(TABLE)
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
StdLogSetup(LOG_COUT|LOG_FILE);
|
||||
|
||||
SqlStatement s = Select(COLUMN).From(TABLE);
|
||||
LOG(s.Get(PGSQL));
|
||||
SqlId::UseQuotes();
|
||||
LOG(s.Get(PGSQL));
|
||||
SqlId::ToLowerCase();
|
||||
LOG(s.Get(PGSQL));
|
||||
}
|
||||
12
reference/SqlIdOpt/SqlIdOpt.upp
Normal file
12
reference/SqlIdOpt/SqlIdOpt.upp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
description "Demonstrates SqlId::UseQuotes, SqlId::ToLowerCase\377";
|
||||
|
||||
uses
|
||||
Core,
|
||||
Sql;
|
||||
|
||||
file
|
||||
SqlIdOpt.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "SSE2";
|
||||
|
||||
5
reference/SqlIdOpt/init
Normal file
5
reference/SqlIdOpt/init
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#ifndef _SqlIdOpt_icpp_init_stub
|
||||
#define _SqlIdOpt_icpp_init_stub
|
||||
#include "Core/init"
|
||||
#include "Sql/init"
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue