Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

column does not belong to referenced table firebird example [CORE3850] #4191

Open
firebird-automations opened this issue May 21, 2012 · 1 comment

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: pankdev (pankdev22)

I am facing a problem with Firebird,

i m using Interbase SDK(API) for Firebird and Interbse to create and insert the data in Database file

char *create_tbl = "CREATE TABLE tm_1(C1 TIME)";
insert_data = "INSERT INTO tm_1(C1)VALUES('01:03:07')";

if (isc_dsql_execute_immediate(status, &handle, &trans, 0, insert_data, 1, NULL))
{
char msg[512];
memset(msg,0,sizeof(msg));
long errorCode=0;
if (status[0] == 1 && status[1] > 0)
{
errorCode=isc_sqlcode(status);
isc_sql_interprete(errorCode,msg, 512);
int y=90;
}
}
isc_commit_transaction(status, &trans);

this shown following error:
column does not belong to referenced table firebird example

what will i do for this.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

With fresh build of 2.5 it's not reproduced in isql:
fbs2 bin #⁠ ./isql employee
Database: employee
SQL> CREATE TABLE tm_1(C1 TIME);
SQL> INSERT INTO tm_1(C1)VALUES('01:03:07');
SQL> commit;
SQL>

So I suggest you:
1. Try with fresh build of 2.5. Checking both 2.5.1 and current snapshot will be good idea.
2. If does not help - add FULL COMPILABLE test case to your ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant