|
SQL0418N - CLI
|
|||
---|---|---|---|
#18+
CLI program - char connect_time[] = "2003-08-05-01.24.00.00"; static SQLCHAR *stmt_val = (SQLCHAR *) "values date(timestamp(?))"; (also tried as tatic SQLCHAR *stmt_val = (SQLCHAR *) "values date(?)"; with the same result) // Bind parameter sqlret = SQLBindParameter(hstmt_val, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, 22, 0, connect_time, strlen(connect_time), NULL); // Execute sqlret = SQLExecute(hstmt_val); It's always return - Error: SQLSTATE = 42610 Error: Native Error Code = -418 [IBM][CLI Driver][DB2/LINUX] SQL0418N A statement contains a use of a parameter marker that is not valid. SQLSTATE=42610 Может, кто что знает/видел ? Спасбо ... |
|||
:
Нравится:
Не нравится:
|
|||
05.08.2003, 19:45 |
|
SQL0418N - CLI
|
|||
---|---|---|---|
#18+
such hren] moget vozvratit prepate a u tebia v kode net prepare i am in doubt chto-to i am ne pomnu chob immediate mogno bilo sdelat s parameter marker k tomu ge values date nelzia napisat v proge. napishi values into ... |
|||
:
Нравится:
Не нравится:
|
|||
05.08.2003, 20:06 |
|
SQL0418N - CLI
|
|||
---|---|---|---|
#18+
I have Prepare. Actually, it is an example only, what I want is to use date() and timestamp() in WHERE statement in CLI programm. Like - ELECT start_date from table where date(?) > start_date jr something like this. So - I did a SELECT and got a timestamp into a variable, let call it connect_time. SO I whant to bind connect_time to the SELECT ... |
|||
:
Нравится:
Не нравится:
|
|||
05.08.2003, 20:14 |
|
SQL0418N - CLI
|
|||
---|---|---|---|
#18+
Trying VALUES INTO , thanks. Actually I can in russian, but when I see translit I start to use english automaticaly :) ... |
|||
:
Нравится:
Не нравится:
|
|||
05.08.2003, 20:15 |
|
SQL0418N - CLI
|
|||
---|---|---|---|
#18+
VALUES INTO - This statement can be embedded only in an application program. It is an executable statement that cannot be dynamically prepared. ... |
|||
:
Нравится:
Не нравится:
|
|||
05.08.2003, 20:18 |
|
|
start [/forum/topic.php?fid=43&fpage=162&tid=1606546]: |
0ms |
get settings: |
11ms |
get forum list: |
13ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
34ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
2ms |
others: | 248ms |
total: | 365ms |
0 / 0 |