2016-08-10 20:12 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)

* contrib/rddads/ads.ch
    + 64bit server type constants included

  * include/dbinfo.ch
  * contrib/rddsql/hbrddsql.h
  * contrib/rddsql/rddsql.hbc
  - contrib/rddsql/hbrddsql.ch
    * definitions of SQL related RDDI_*, DBI_* constants moved from RDDSQL
      to core code
  * include/dbinfo.ch
  * contrib/rddsql/sqlbase.c
    * RDDI_NEWID renamed to more informative RDDI_INSERTID

  * contrib/rddads/ads1.c
  * contrib/rddads/adsfunc.c
  * contrib/rddads/rddads.h
    + RDDI_CONNECT, RDDI_DISCONNECT implemented. RDDINFO() can be used instead
      of RDD specific AdsConnect*() calls
    + other SQL related RDDINFO(), DBINFO() capabilities implemented
    + DBUSEAREA() accepts prefixes "SQL:" and "TABLE:" to indicate if
      given table name should be treated as SQL query or table file name.
      If these prefixes are omitted, function parameter is treated as table
      file name except in case it begins with "SELECT " (compatibility).
This commit is contained in:
Mindaugas Kavaliauskas
2016-08-10 20:13:37 +03:00
parent 4cce9c8403
commit 6a6f4d962d
10 changed files with 254 additions and 75 deletions

View File

@@ -107,6 +107,16 @@
#define RDDI_DECIMALS 46 /* Get/Set default number of decimal places for numeric fields if it's undefined */
#define RDDI_SETHEADER 47 /* DBF header updating modes */
/* SQL */
#define RDDI_CONNECT 61 /* connect to database */
#define RDDI_DISCONNECT 62 /* disconnect from database */
#define RDDI_EXECUTE 63 /* execute SQL statement */
#define RDDI_ERROR 64 /* error number */
#define RDDI_ERRORNO 65 /* error description */
#define RDDI_INSERTID 66 /* last auto insert ID */
#define RDDI_AFFECTEDROWS 67 /* number of affected rows after UPDATE */
#define RDDI_QUERY 68 /* last executed query */
/*
Constants for SELF_ORDINFO ()
*/
@@ -306,6 +316,8 @@
#define DBI_RM_COUNT 158 /* number of records set in record map */
#define DBI_RM_HANDLE 159 /* get/set record map filter handle */
#define DBI_QUERY 170 /* if area represents result of a query, obtain expression of this query */
/* BLOB support - definitions for internal use by blob.ch */
#define DBI_BLOB_DIRECT_EXPORT 201
#define DBI_BLOB_DIRECT_GET 202