#include <QApplication>
#include <QtSql>
#include <iostream>
Go to the source code of this file.
Defines | |
#define | HOST "127.0.0.1" |
#define | DB "xe" |
#define | PORT 1521 |
#define | USER "testbed" |
#define | PASSWD "secret" |
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
const char | create_sql [] |
const char | insert_sql_1 [] |
const char | insert_sql_2 [] |
const char | select_sql [] |
const char | random_data [] = {43, 242, 13, 01, 00, 123, 2, 4} |
#define DB "xe" |
#define HOST "127.0.0.1" |
#define PASSWD "secret" |
#define PORT 1521 |
#define USER "testbed" |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 44 of file occi_datatypes.cpp.
const char create_sql[] |
Initial value:
"create table occi_datatype_example_tb ( \ name varchar(25), \ age number, \ letter char(2), \ some_date date, \ some_time timestamp, \ bin_data blob)"
Definition at line 14 of file occi_datatypes.cpp.
Referenced by main(), and test_create_table().
const char insert_sql_1[] |
Initial value:
"insert into occi_datatype_example_tb \ (name, age, letter, some_date, some_time) \ values \ ('foobar', 25, 'jg', sysdate, sysdate)"
Definition at line 24 of file occi_datatypes.cpp.
Referenced by main().
const char insert_sql_2[] |
Initial value:
"insert into occi_datatype_example_tb \ (name, age, letter, some_date, some_time, bin_data) \ values \ (:1, :2, :3, :4, :5, :6)"
Definition at line 31 of file occi_datatypes.cpp.
Referenced by main().
const char random_data[] = {43, 242, 13, 01, 00, 123, 2, 4} |
const char select_sql[] |
Initial value:
"select name, age, letter, some_date, some_time, bin_data \ from occi_datatype_example_tb \ where name = 'joe'"
Definition at line 37 of file occi_datatypes.cpp.
Referenced by main(), and test_blobs().