Go to the SVN repository for this file.
22 #include <freetds/convert.h> 32fprintf(stderr,
"%s\n",
msg);
42 char*all_res =
strdup(possible_results);
62 for(res = strtok(all_res,
"-"); res; res = strtok(
NULL,
"-"))
67sprintf(
msg,
"flags:%s\nexpected: %s\nwrong column %d flags",
flags, possible_results,
n+ 1);
77fprintf(stdout,
"%s: Testing query\n",
cmd);
117fprintf(stdout,
"%s: Testing flags from server\n", __FILE__);
119fprintf(stderr,
"try_tds_login() failed\n");
123 if(
run_query(
tds,
"create table #tmp1 (i numeric(10,0) identity primary key, b varchar(20) null, c int not null)") !=
133 if(
info->num_cols != 3) {
134sprintf(mymsg,
"wrong number of columns returned expected 3 got %d",
info->num_cols);
147 test_begin(
"select c, b from #tmp1 for browse");
150 if(
info->num_cols != 3)
151 fatal_error(
"wrong number of columns returned");
161 check_flags(
info->columns[2], 2,
"writable identity key hidden-writable key hidden");
static void check_flags(TDSCOLUMN *curcol, int n, const char *possible_results)
int main(int argc, char **argv)
static void fatal_error(const char *msg)
static void test_end(void)
static void test_begin(const char *cmd)
#define TDS_ROWFMT_RESULT
tds_sysdep_int32_type TDS_INT
#define TDS_NO_MORE_RESULTS
@ TDS_DONE_ERROR
error occurred
int run_query(TDSSOCKET *tds, const char *query)
int try_tds_logout(TDSLOGIN *login, TDSSOCKET *tds, int verbose)
int try_tds_login(TDSLOGIN **login, TDSSOCKET **tds, const char *appname, int verbose)
#define tds_process_tokens
int strcmp(const char *str1, const char *str2)
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
Metadata about columns in regular and compute rows.
unsigned int column_writeable
unsigned int column_identity
unsigned int column_nullable
unsigned int column_hidden
Hold information for any results.
Information for a server connection.
TDSRESULTINFO * current_results
Current query information.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4