mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-21 03:57:55 +08:00
Fix bug in creating temp tables
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
Thu Aug 26 21:06:35 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
|
Thu Aug 26 21:06:35 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
|
||||||
* src/libmdb/write.c: Documentation fix
|
* src/libmdb/write.c: Documentation fix
|
||||||
* src/sql/lexer.l: Add SQL quote escaping
|
* src/sql/lexer.l: Add SQL quote escaping
|
||||||
|
* src/libmdb/worktable.c: Fix bug in creating temp tables
|
||||||
|
|
||||||
Tue Aug 24 21:04:17 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
|
Tue Aug 24 21:04:17 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
|
||||||
* include/mdbsql.h:
|
* include/mdbsql.h:
|
||||||
|
@@ -70,5 +70,7 @@ mdb_temp_table_add_col(MdbTableDef *table, MdbColumn *col)
|
|||||||
{
|
{
|
||||||
col->col_num = table->num_cols;
|
col->col_num = table->num_cols;
|
||||||
g_ptr_array_add(table->columns, g_memdup(col, sizeof(MdbColumn)));
|
g_ptr_array_add(table->columns, g_memdup(col, sizeof(MdbColumn)));
|
||||||
|
if (!col->is_fixed)
|
||||||
|
table->num_var_cols++;
|
||||||
table->num_cols++;
|
table->num_cols++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user