Changeset: a4f492ce2da9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a4f492ce2da9
Modified Files:
        sql/backends/monet5/vaults/lidar/lidar.c
Branch: data-vaults
Log Message:

Use the API correctly

When loading a table we first need to check if it is attached and only load the
data if it is. Checking was not working correctly because the function
column_find_row was not called in the correct manner.


diffs (12 lines):

diff --git a/sql/backends/monet5/vaults/lidar/lidar.c 
b/sql/backends/monet5/vaults/lidar/lidar.c
--- a/sql/backends/monet5/vaults/lidar/lidar.c
+++ b/sql/backends/monet5/vaults/lidar/lidar.c
@@ -1830,7 +1830,7 @@ str LIDARloadTable(Client cntxt, MalBlkP
 
        /* Search for the requested table in the LiDAR catalog */
        col = mvc_bind_column(m, lidar_tbl, "name");
-       rid = table_funcs.column_find_row(m->session->tr, col, tname, NULL);
+       rid = table_funcs.column_find_row(m->session->tr, col, &tname, NULL);
        if (rid == oid_nil) {
                msg = createException(MAL, "lidar.loadtable", "Table %s has not 
been attached.\n", tname);
                goto loadtable_cleanup;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to