Closed nibsirahsieu closed 12 years ago
i found another issue, propel generate $stmt = $con->query('SELECT nextval(edelivery.application_user_id_seq)'); (in the doInsert() function)
$stmt = $con->query('SELECT nextval(edelivery.application_user_id_seq)');
doInsert()
SQLSTATE[42P01]: Undefined table: 7 ERROR: missing FROM-clause entry for table "edelivery" LINE 1: SELECT nextval(edelivery.application_user_id_seq)
Expected : $stmt = $con->query("SELECT nextval('edelivery.application_user_id_seq')");
$stmt = $con->query("SELECT nextval('edelivery.application_user_id_seq')");
Quick fix:
$snippet = " \$stmt = %s->query(\"SELECT nextval(%s)\"); \$row = \$stmt->fetch(PDO::FETCH_NUM); %s = \$row[0];"; $script = sprintf($snippet, $connectionVariableName, $this->quote($sequenceName), $columnValueMutator );
See https://github.com/propelorm/Propel/pull/123 for a fix
ok :). Thanks
Great.. it work.. thank francoiz
Should i close this issue?
no, it's not in master yet
Merged.
i found another issue, propel generate
$stmt = $con->query('SELECT nextval(edelivery.application_user_id_seq)');
(in thedoInsert()
function)SQLSTATE[42P01]: Undefined table: 7 ERROR: missing FROM-clause entry for table "edelivery" LINE 1: SELECT nextval(edelivery.application_user_id_seq)
Expected :
$stmt = $con->query("SELECT nextval('edelivery.application_user_id_seq')");
Quick fix: