493{
499
501 ok(rec != 0,
"Expected a valid handle\n");
502
505
511 ok(sz == 0,
"Expected 0, got %lu\n", sz);
512
514 ok(
r ==
TRUE,
"Expected TRUE, got %d\n",
r);
515
518
521
524
530 ok(sz == 0,
"Expected 0, got %lu\n", sz);
531
533 ok(
r ==
TRUE,
"Expected TRUE, got %d\n",
r);
534
536 ok(
r == 42,
"Expected 42, got %d\n",
r);
537
540
543
549 ok(sz == 0,
"Expected 0, got %lu\n", sz);
550
552 ok(
r ==
TRUE,
"Expected TRUE, got %d\n",
r);
553
559 ok(sz == 7,
"Expected 7, got %lu\n", sz);
560
562
565
566 query =
"CREATE TABLE `drone` ( "
567 "`id` INT, `name` CHAR(32), `number` CHAR(32) "
568 "PRIMARY KEY `id`)";
577
578 query =
"INSERT INTO `drone` ( `id`, `name`, `number` )"
579 "VALUES('1', 'Abe', '8675309')";
588
591
594
600 ok(sz == 5,
"Expected 5, got %lu\n", sz);
601
603 ok(
r ==
FALSE,
"Expected FALSE, got %d\n",
r);
604
606
609
610 query =
"SELECT * FROM `drone` WHERE `id` = 1";
617
620
622 ok(
r ==
FALSE,
"Expected FALSE, got %d\n",
r);
623
629}
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
int WINAPI lstrcmpA(LPCSTR str1, LPCSTR str2)
UINT WINAPI MsiOpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIHANDLE *phDB)
UINT WINAPI MsiCloseHandle(MSIHANDLE handle)
int WINAPI MsiRecordGetInteger(MSIHANDLE handle, UINT iField)
UINT WINAPI MsiRecordGetStringA(MSIHANDLE handle, UINT iField, char *szValue, DWORD *pcchValue)
MSIHANDLE WINAPI MsiCreateRecord(UINT cParams)
BOOL WINAPI MsiRecordIsNull(MSIHANDLE handle, UINT iField)
UINT WINAPI MsiRecordSetInteger(MSIHANDLE handle, UINT iField, int iVal)
UINT WINAPI MsiRecordSetStringA(MSIHANDLE handle, UINT iField, const char *szValue)
GLenum GLuint GLenum GLsizei const GLchar * buf
LPSTR WINAPI lstrcpyA(LPSTR lpString1, LPCSTR lpString2)
static const WCHAR msifileW[]
static const char * msifile
UINT WINAPI MsiViewClose(MSIHANDLE hView)
UINT WINAPI MsiViewExecute(MSIHANDLE hView, MSIHANDLE hRec)
UINT WINAPI MsiDatabaseGetPrimaryKeysA(MSIHANDLE hdb, const char *table, MSIHANDLE *phRec)
UINT WINAPI MsiDatabaseOpenViewA(MSIHANDLE hdb, const char *szQuery, MSIHANDLE *phView)
UINT WINAPI MsiViewFetch(MSIHANDLE hView, MSIHANDLE *record)
#define ERROR_INVALID_TABLE