Changeset: 75ab70dc252d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=75ab70dc252d
Modified Files:
        sql/backends/monet5/sql.c
Branch: default
Log Message:

Indent.


diffs (121 lines):

diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -399,20 +399,20 @@ create_table_from_emit(Client cntxt, cha
        }
 
        for(i = 0; i < ncols; i++) {
-       BAT *b = columns[i].b;
-       sql_subtype *tpe = sql_bind_localtype(ATOMname(b->ttype));
-       sql_column *col = NULL;
-
-       if (!tpe) {
+               BAT *b = columns[i].b;
+               sql_subtype *tpe = sql_bind_localtype(ATOMname(b->ttype));
+               sql_column *col = NULL;
+
+               if (!tpe) {
                        msg = sql_error(sql, 02, "3F000!CREATE TABLE: could not 
find type for column");
                        goto cleanup;
-       }
-
-       col = mvc_create_column(sql, t, columns[i].name, tpe);
-       if (!col) {
+               }
+
+               col = mvc_create_column(sql, t, columns[i].name, tpe);
+               if (!col) {
                        msg = sql_error(sql, 02, "3F000!CREATE TABLE: could not 
create column %s", columns[i].name);
                        goto cleanup;
-       }
+               }
        }
        msg = create_table_or_view(sql, sname, t->base.name, t, 0);
        if (msg != MAL_SUCCEED) {
@@ -424,24 +424,24 @@ create_table_from_emit(Client cntxt, cha
                goto cleanup;
        }
        for(i = 0; i < ncols; i++) {
-       BAT *b = columns[i].b;
-       sql_column *col = NULL;
-
-       col = mvc_bind_column(sql,t, columns[i].name);
-       if (!col) {
+               BAT *b = columns[i].b;
+               sql_column *col = NULL;
+
+               col = mvc_bind_column(sql,t, columns[i].name);
+               if (!col) {
                        msg = sql_error(sql, 02, "3F000!CREATE TABLE: could not 
bind column %s", columns[i].name);
                        goto cleanup;
-       }
-       msg = mvc_append_column(sql->session->tr, col, b);
-       if (msg != MAL_SUCCEED) {
-               goto cleanup;
-       }
+               }
+               msg = mvc_append_column(sql->session->tr, col, b);
+               if (msg != MAL_SUCCEED) {
+                       goto cleanup;
+               }
        }
 
-cleanup:
-    sa_destroy(sql->sa);
-    sql->sa = NULL;
-    return msg;
+  cleanup:
+       sa_destroy(sql->sa);
+       sql->sa = NULL;
+       return msg;
 }
 
 str 
@@ -461,7 +461,7 @@ append_to_table_from_emit(Client cntxt, 
        /* for some reason we don't have an allocator here, so make one */
        sql->sa = sa_create();
 
-    if (!sname) 
+       if (!sname) 
                sname = "sys";
        if (!(s = mvc_bind_schema(sql, sname))) {
                msg = sql_error(sql, 02, "3F000!CREATE TABLE: no such schema 
'%s'", sname);
@@ -473,24 +473,24 @@ append_to_table_from_emit(Client cntxt, 
                goto cleanup;
        }
        for(i = 0; i < ncols; i++) {
-       BAT *b = columns[i].b;
-       sql_column *col = NULL;
-
-       col = mvc_bind_column(sql,t, columns[i].name);
-       if (!col) {
+               BAT *b = columns[i].b;
+               sql_column *col = NULL;
+
+               col = mvc_bind_column(sql,t, columns[i].name);
+               if (!col) {
                        msg = sql_error(sql, 02, "3F000!CREATE TABLE: could not 
bind column %s", columns[i].name);
                        goto cleanup;
-       }
-       msg = mvc_append_column(sql->session->tr, col, b);
-       if (msg != MAL_SUCCEED) {
-               goto cleanup;
-       }
+               }
+               msg = mvc_append_column(sql->session->tr, col, b);
+               if (msg != MAL_SUCCEED) {
+                       goto cleanup;
+               }
        }
 
-cleanup:
-    sa_destroy(sql->sa);
-    sql->sa = NULL;
-    return msg;
+  cleanup:
+       sa_destroy(sql->sa);
+       sql->sa = NULL;
+       return msg;
 }
 
 BAT *
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to