#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "wine/debug.h"
#include "msi.h"
#include "msiquery.h"
#include "objbase.h"
#include "objidl.h"
#include "msipriv.h"
#include "winnls.h"
#include "query.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (msidb) |
|
static UINT | INSERT_fetch_int (struct tagMSIVIEW *view, UINT row, UINT col, UINT *val) |
|
MSIRECORD * | msi_query_merge_record (UINT fields, const column_info *vl, MSIRECORD *rec) |
|
static BOOL | msi_columns_in_order (MSIINSERTVIEW *iv, UINT col_count) |
|
static UINT | msi_arrange_record (MSIINSERTVIEW *iv, MSIRECORD **values) |
|
static BOOL | row_has_null_primary_keys (MSIINSERTVIEW *iv, MSIRECORD *row) |
|
static UINT | INSERT_execute (struct tagMSIVIEW *view, MSIRECORD *record) |
|
static UINT | INSERT_close (struct tagMSIVIEW *view) |
|
static UINT | INSERT_get_dimensions (struct tagMSIVIEW *view, UINT *rows, UINT *cols) |
|
static UINT | INSERT_get_column_info (struct tagMSIVIEW *view, UINT n, LPCWSTR *name, UINT *type, BOOL *temporary, LPCWSTR *table_name) |
|
static UINT | INSERT_modify (struct tagMSIVIEW *view, MSIMODIFY eModifyMode, MSIRECORD *rec, UINT row) |
|
static UINT | INSERT_delete (struct tagMSIVIEW *view) |
|
static UINT | count_column_info (const column_info *ci) |
|
UINT | INSERT_CreateView (MSIDATABASE *db, MSIVIEW **view, LPCWSTR table, column_info *columns, column_info *values, BOOL temp) |
|
◆ MSIINSERTVIEW
◆ count_column_info()
◆ INSERT_close()
Definition at line 252 of file insert.c.
253{
256
258
260 if( !sv )
262
264}
UINT(* close)(struct tagMSIVIEW *view)
#define ERROR_FUNCTION_FAILED
◆ INSERT_CreateView()
Definition at line 351 of file insert.c.
353{
357
359
360
363
367
370 {
371 if( tv )
374 }
375
377 if( !iv )
379
380
389
391}
void msiobj_addref(MSIOBJECTHDR *info)
GLdouble GLdouble GLdouble r
GLboolean GLenum GLenum GLvoid * values
static UINT count_column_info(const column_info *ci)
static const MSIVIEWOPS insert_ops
static void * msi_alloc_zero(size_t len) __WINE_ALLOC_SIZE(1)
UINT TABLE_CreateView(MSIDATABASE *db, LPCWSTR name, MSIVIEW **view) DECLSPEC_HIDDEN
UINT SELECT_CreateView(MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table, const column_info *columns) DECLSPEC_HIDDEN
UINT(* delete)(struct tagMSIVIEW *)
#define ERROR_BAD_QUERY_SYNTAX
◆ INSERT_delete()
Definition at line 304 of file insert.c.
305{
308
310
312 if( sv )
316
318}
int msiobj_release(MSIOBJECTHDR *info)
static void msi_free(void *mem)
◆ INSERT_execute()
Definition at line 204 of file insert.c.
205{
210
212
214 if( !sv )
216
218 TRACE(
"sv execute returned %x\n",
r);
221
225
226
227
228
229
233
237
238
241
243
247
249}
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
static BOOL row_has_null_primary_keys(MSIINSERTVIEW *iv, MSIRECORD *row)
static UINT msi_arrange_record(MSIINSERTVIEW *iv, MSIRECORD **values)
MSIRECORD * msi_query_merge_record(UINT fields, const column_info *vl, MSIRECORD *rec)
UINT(* insert_row)(struct tagMSIVIEW *view, MSIRECORD *record, UINT row, BOOL temporary)
UINT(* get_dimensions)(struct tagMSIVIEW *view, UINT *rows, UINT *cols)
UINT(* execute)(struct tagMSIVIEW *view, MSIRECORD *record)
◆ INSERT_fetch_int()
◆ INSERT_get_column_info()
Definition at line 280 of file insert.c.
282{
285
286 TRACE(
"%p %d %p %p %p %p\n", iv,
n,
name,
type, temporary, table_name );
287
289 if( !sv )
291
293}
GLuint GLuint GLsizei GLenum type
UINT(* get_column_info)(struct tagMSIVIEW *view, UINT n, LPCWSTR *name, UINT *type, BOOL *temporary, LPCWSTR *table_name)
◆ INSERT_get_dimensions()
Definition at line 266 of file insert.c.
267{
270
271 TRACE(
"%p %p %p\n", iv, rows, cols );
272
274 if( !sv )
276
278}
◆ INSERT_modify()
Definition at line 295 of file insert.c.
296{
298
299 TRACE(
"%p %d %p\n", iv, eModifyMode, rec );
300
302}
◆ msi_arrange_record()
Definition at line 127 of file insert.c.
128{
130 UINT col_count, val_count;
133
137
139
140
141
142
145
147 if (!padded)
149
150 for (colidx = 1; colidx <= val_count; colidx++)
151 {
155
156 for (
i = 1;
i <= col_count;
i++)
157 {
162
164 {
166 break;
167 }
168 }
169 }
173
177}
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static BOOL msi_columns_in_order(MSIINSERTVIEW *iv, UINT col_count)
UINT MSI_RecordGetFieldCount(const MSIRECORD *rec) DECLSPEC_HIDDEN
MSIRECORD * MSI_CreateRecord(UINT) DECLSPEC_HIDDEN
UINT MSI_RecordCopyField(MSIRECORD *, UINT, MSIRECORD *, UINT) DECLSPEC_HIDDEN
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
Referenced by INSERT_execute().
◆ msi_columns_in_order()
◆ msi_query_merge_record()
Definition at line 66 of file insert.c.
67{
69 DWORD wildcard_count = 1,
i;
70
73 {
74 if( !vl )
75 {
76 TRACE(
"Not enough elements in the list to insert\n");
78 }
79 switch( vl->
val->type )
80 {
84 break;
87 break;
89 if( !rec )
92 wildcard_count++;
93 break;
94 default:
95 ERR(
"Unknown expression type %d\n", vl->
val->type);
96 }
98 }
99
100 return merged;
104}
UINT MSI_RecordSetInteger(MSIRECORD *, UINT, int) DECLSPEC_HIDDEN
UINT MSI_RecordSetStringW(MSIRECORD *, UINT, LPCWSTR) DECLSPEC_HIDDEN
Referenced by INSERT_execute(), and UPDATE_execute().
◆ row_has_null_primary_keys()
Definition at line 179 of file insert.c.
180{
182
186
187 for (
i = 1;
i <= col_count;
i++)
188 {
193
195 continue;
196
199 }
200
202}
BOOL MSI_RecordIsNull(MSIRECORD *, UINT) DECLSPEC_HIDDEN
Referenced by INSERT_execute().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
msidb |
| ) |
|
◆ insert_ops
Initial value:=
{
}
static UINT INSERT_fetch_int(struct tagMSIVIEW *view, UINT row, UINT col, UINT *val)
static UINT INSERT_close(struct tagMSIVIEW *view)
static UINT INSERT_modify(struct tagMSIVIEW *view, MSIMODIFY eModifyMode, MSIRECORD *rec, UINT row)
static UINT INSERT_get_column_info(struct tagMSIVIEW *view, UINT n, LPCWSTR *name, UINT *type, BOOL *temporary, LPCWSTR *table_name)
static UINT INSERT_delete(struct tagMSIVIEW *view)
static UINT INSERT_get_dimensions(struct tagMSIVIEW *view, UINT *rows, UINT *cols)
static UINT INSERT_execute(struct tagMSIVIEW *view, MSIRECORD *record)
Definition at line 320 of file insert.c.
Referenced by INSERT_CreateView().