[GRASS-SVN] r66773 - grass/trunk/lib/db/stubs
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 9 04:06:44 PST 2015
Author: glynn
Date: 2015-11-09 04:06:44 -0800 (Mon, 09 Nov 2015)
New Revision: 66773
Modified:
grass/trunk/lib/db/stubs/add_col.c
grass/trunk/lib/db/stubs/bindupdate.c
grass/trunk/lib/db/stubs/close_cursor.c
grass/trunk/lib/db/stubs/closedb.c
grass/trunk/lib/db/stubs/create_index.c
grass/trunk/lib/db/stubs/create_table.c
grass/trunk/lib/db/stubs/createdb.c
grass/trunk/lib/db/stubs/delete.c
grass/trunk/lib/db/stubs/deletedb.c
grass/trunk/lib/db/stubs/desc_table.c
grass/trunk/lib/db/stubs/drop_col.c
grass/trunk/lib/db/stubs/drop_index.c
grass/trunk/lib/db/stubs/drop_table.c
grass/trunk/lib/db/stubs/execute.c
grass/trunk/lib/db/stubs/fetch.c
grass/trunk/lib/db/stubs/finddb.c
grass/trunk/lib/db/stubs/finish.c
grass/trunk/lib/db/stubs/init.c
grass/trunk/lib/db/stubs/insert.c
grass/trunk/lib/db/stubs/list_index.c
grass/trunk/lib/db/stubs/list_tables.c
grass/trunk/lib/db/stubs/listdb.c
grass/trunk/lib/db/stubs/open_insert.c
grass/trunk/lib/db/stubs/open_select.c
grass/trunk/lib/db/stubs/open_update.c
grass/trunk/lib/db/stubs/opendb.c
grass/trunk/lib/db/stubs/priv.c
grass/trunk/lib/db/stubs/rows.c
grass/trunk/lib/db/stubs/transaction.c
grass/trunk/lib/db/stubs/update.c
Log:
Include dbstubs.h, fix prototypes for open_select_cursor and describe_table
Modified: grass/trunk/lib/db/stubs/add_col.c
===================================================================
--- grass/trunk/lib/db/stubs/add_col.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/add_col.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
/*!
This function calls db_procedure_not_implemented().
Modified: grass/trunk/lib/db/stubs/bindupdate.c
===================================================================
--- grass/trunk/lib/db/stubs/bindupdate.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/bindupdate.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
/*!
\fn int db__driver_bind_update (cursor)
Modified: grass/trunk/lib/db/stubs/close_cursor.c
===================================================================
--- grass/trunk/lib/db/stubs/close_cursor.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/close_cursor.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
/*!
This function calls db_procedure_not_implemented().
Modified: grass/trunk/lib/db/stubs/closedb.c
===================================================================
--- grass/trunk/lib/db/stubs/closedb.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/closedb.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_close_database(void)
{
Modified: grass/trunk/lib/db/stubs/create_index.c
===================================================================
--- grass/trunk/lib/db/stubs/create_index.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/create_index.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_create_index(dbIndex * index)
{
Modified: grass/trunk/lib/db/stubs/create_table.c
===================================================================
--- grass/trunk/lib/db/stubs/create_table.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/create_table.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_create_table(dbTable * table)
{
Modified: grass/trunk/lib/db/stubs/createdb.c
===================================================================
--- grass/trunk/lib/db/stubs/createdb.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/createdb.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_create_database(dbHandle * handle)
{
Modified: grass/trunk/lib/db/stubs/delete.c
===================================================================
--- grass/trunk/lib/db/stubs/delete.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/delete.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_delete(dbCursor * cursor)
{
Modified: grass/trunk/lib/db/stubs/deletedb.c
===================================================================
--- grass/trunk/lib/db/stubs/deletedb.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/deletedb.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_delete_database(dbHandle * handle)
{
Modified: grass/trunk/lib/db/stubs/desc_table.c
===================================================================
--- grass/trunk/lib/db/stubs/desc_table.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/desc_table.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,6 +1,7 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
-int db__driver_describe_table(dbString * name, dbTable * table)
+int db__driver_describe_table(dbString * name, dbTable ** table)
{
db_procedure_not_implemented("db_describe_table");
return DB_FAILED;
Modified: grass/trunk/lib/db/stubs/drop_col.c
===================================================================
--- grass/trunk/lib/db/stubs/drop_col.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/drop_col.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_drop_column(dbString * tableName, dbString * columnName)
{
Modified: grass/trunk/lib/db/stubs/drop_index.c
===================================================================
--- grass/trunk/lib/db/stubs/drop_index.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/drop_index.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_drop_index(dbString * name)
{
Modified: grass/trunk/lib/db/stubs/drop_table.c
===================================================================
--- grass/trunk/lib/db/stubs/drop_table.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/drop_table.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_drop_table(dbString * name)
{
Modified: grass/trunk/lib/db/stubs/execute.c
===================================================================
--- grass/trunk/lib/db/stubs/execute.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/execute.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_execute_immediate(dbString * SQLstatement)
{
Modified: grass/trunk/lib/db/stubs/fetch.c
===================================================================
--- grass/trunk/lib/db/stubs/fetch.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/fetch.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_fetch(dbCursor * cursor, int position, int *more)
{
Modified: grass/trunk/lib/db/stubs/finddb.c
===================================================================
--- grass/trunk/lib/db/stubs/finddb.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/finddb.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_find_database(dbHandle * handle, int *found)
{
Modified: grass/trunk/lib/db/stubs/finish.c
===================================================================
--- grass/trunk/lib/db/stubs/finish.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/finish.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_finish(void)
{
Modified: grass/trunk/lib/db/stubs/init.c
===================================================================
--- grass/trunk/lib/db/stubs/init.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/init.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_init(int argc, char *argv[])
{
Modified: grass/trunk/lib/db/stubs/insert.c
===================================================================
--- grass/trunk/lib/db/stubs/insert.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/insert.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_insert(dbCursor * cursor)
{
Modified: grass/trunk/lib/db/stubs/list_index.c
===================================================================
--- grass/trunk/lib/db/stubs/list_index.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/list_index.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int
db__driver_list_indexes(dbString * tableName, dbIndex ** indexes, int *count)
Modified: grass/trunk/lib/db/stubs/list_tables.c
===================================================================
--- grass/trunk/lib/db/stubs/list_tables.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/list_tables.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_list_tables(dbString ** names, int *count, int system)
{
Modified: grass/trunk/lib/db/stubs/listdb.c
===================================================================
--- grass/trunk/lib/db/stubs/listdb.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/listdb.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int
db__driver_list_databases(dbString * path, int npaths, dbHandle ** handles,
Modified: grass/trunk/lib/db/stubs/open_insert.c
===================================================================
--- grass/trunk/lib/db/stubs/open_insert.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/open_insert.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_open_insert_cursor(dbCursor * cursor)
{
Modified: grass/trunk/lib/db/stubs/open_select.c
===================================================================
--- grass/trunk/lib/db/stubs/open_select.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/open_select.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,7 +1,8 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int
-db__driver_open_select_cursor(dbString * select, dbCursor * cursor, int *mode)
+db__driver_open_select_cursor(dbString * select, dbCursor * cursor, int mode)
{
db_procedure_not_implemented("db_open_select_cursor");
return DB_FAILED;
Modified: grass/trunk/lib/db/stubs/open_update.c
===================================================================
--- grass/trunk/lib/db/stubs/open_update.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/open_update.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int
db__driver_open_update_cursor(dbString * name, dbString * select,
Modified: grass/trunk/lib/db/stubs/opendb.c
===================================================================
--- grass/trunk/lib/db/stubs/opendb.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/opendb.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_open_database(dbHandle * handle)
{
Modified: grass/trunk/lib/db/stubs/priv.c
===================================================================
--- grass/trunk/lib/db/stubs/priv.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/priv.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_grant_on_table(dbString * tableName, int priv, int to)
{
Modified: grass/trunk/lib/db/stubs/rows.c
===================================================================
--- grass/trunk/lib/db/stubs/rows.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/rows.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_get_num_rows(dbCursor * cursor)
{
Modified: grass/trunk/lib/db/stubs/transaction.c
===================================================================
--- grass/trunk/lib/db/stubs/transaction.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/transaction.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
/* Implemented only in some drivers */
int db__driver_begin_transaction(void)
Modified: grass/trunk/lib/db/stubs/update.c
===================================================================
--- grass/trunk/lib/db/stubs/update.c 2015-11-09 11:47:38 UTC (rev 66772)
+++ grass/trunk/lib/db/stubs/update.c 2015-11-09 12:06:44 UTC (rev 66773)
@@ -1,4 +1,5 @@
#include <grass/dbmi.h>
+#include <grass/dbstubs.h>
int db__driver_update(dbCursor * cursor)
{
More information about the grass-commit
mailing list