NeoEloquent icon indicating copy to clipboard operation
NeoEloquent copied to clipboard

ParameterMissing error when try to set empty array to any property

Open iyhunko opened this issue 4 years ago • 6 comments

in Connection.php in public function prepareBindings(array $bindings) $bindings with empty array values will be missing in $prepared, thus we will have ParameterMissing exception.

iyhunko avatar Apr 06 '20 12:04 iyhunko

Example:

if we try to do this update:

"MATCH (external_socialdata_datasource:`External`:`SocialData`:`DataSource`) WHERE external_socialdata_datasource.uuid = {uuid} SET external_socialdata_datasource.phones = {phones_update}, external_socialdata_datasource.updated_at = {updated_at_update} RETURN count(external_socialdata_datasource), external_socialdata_datasource"
array:3 [
  "uuid" => "a8bf564e-4aaa-4c7a-974f-771a4d284eda"
  "phones_update" => []
  "updated_at_update" => "2020-04-06 11:16:57"
]

we will get this error:

GraphAware\Bolt\Exception\MessageFailureException {#1062
  #statusCode: "Neo.ClientError.Statement.ParameterMissing"
  #message: "Expected parameter(s): phones_update"

iyhunko avatar Apr 06 '20 12:04 iyhunko

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 04 '21 21:01 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 14 '21 20:08 stale[bot]

Hello, i connect to Neo4j Aura Db that uri is neo4j+s://6397445c.databases.neo4j.io and not working

vaix-dungpx avatar Oct 26 '22 03:10 vaix-dungpx

@vaix-dungpx did you solve your connection error with Aura Db ?

engsamar avatar Mar 01 '24 01:03 engsamar

@vaix-dungpx did you solve your connection error with Aura Db ?

Thanh you, it's done. I tested it and it's working fine.

vaix-dungpx avatar Mar 01 '24 02:03 vaix-dungpx