You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use php artisan ide-helper:models, the following query gives Incorrect syntax near ‘(’ error
Msg 102, Level 15, State 1, Line3
Incorrect syntax near '('.
selectfk.nameas name,
string_agg(lc.name, ',') within group (
order byfkc.constraint_column_id
) as columns,
fs.nameas foreign_schema,
ft.nameas foreign_table,
string_agg(fc.name, ',') within group (
order byfkc.constraint_column_id
) as foreign_columns,
fk.update_referential_action_descas on_update,
fk.delete_referential_action_descas on_delete
fromsys.foreign_keysas fk
joinsys.foreign_key_columnsas fkc onfkc.constraint_object_id=fk.object_idjoinsys.tablesas lt onlt.object_id=fk.parent_object_idjoinsys.schemasas ls onlt.schema_id=ls.schema_idjoinsys.columnsas lc onfkc.parent_object_id=lc.object_idandfkc.parent_column_id=lc.column_idjoinsys.tablesas ft onft.object_id=fk.referenced_object_idjoinsys.schemasas fs onft.schema_id=fs.schema_idjoinsys.columnsas fc onfkc.referenced_object_id=fc.object_idandfkc.referenced_column_id=fc.column_idwherelt.name= N 'TABLE_NAME'andls.name= schema_name()
group byfk.name,
fs.name,
ft.name,
fk.update_referential_action_desc,
fk.delete_referential_action_desc
The text was updated successfully, but these errors were encountered:
Versions:
Description:
When I use php artisan ide-helper:models, the following query gives Incorrect syntax near ‘(’ error
The text was updated successfully, but these errors were encountered: