Advertisement
Guest User

Untitled

a guest
Jan 9th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 0 0
  1. Below are the error message and the dumps of the query objects from the two attempts to set access in the node_access table.
  2.  
  3. ERROR MESSAGE:
  4. PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '17-4-nodeaccess_userreference' for key 'PRIMARY': INSERT INTO {node_access} (nid, realm, gid, grant_view, grant_update, grant_delete) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5), (:db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11), (:db_insert_placeholder_12, :db_insert_placeholder_13, :db_insert_placeholder_14, :db_insert_placeholder_15, :db_insert_placeholder_16, :db_insert_placeholder_17); Array ( [:db_insert_placeholder_0] => 17 [:db_insert_placeholder_1] => nodeaccess_userreference [:db_insert_placeholder_2] => 4 [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => 0 [:db_insert_placeholder_6] => 17 [:db_insert_placeholder_7] => nodeaccess_userreference [:db_insert_placeholder_8] => 1 [:db_insert_placeholder_9] => 1 [:db_insert_placeholder_10] => 0 [:db_insert_placeholder_11] => 0 [:db_insert_placeholder_12] => 17 [:db_insert_placeholder_13] => nodeaccess_userreference_author [:db_insert_placeholder_14] => 2 [:db_insert_placeholder_15] => 1 [:db_insert_placeholder_16] => 1 [:db_insert_placeholder_17] => 1 ) in node_access_write_grants() (line 3440 of /Users/ghostlyTrickster/Sites/drupal3/modules/node/node.module).
  5.  
  6. Dump of query object:
  7. InsertQuery_mysql Object
  8. (
  9. [table:protected] => node_access
  10. [insertFields:protected] => Array
  11. (
  12. [0] => nid
  13. [1] => realm
  14. [2] => gid
  15. [3] => grant_view
  16. [4] => grant_update
  17. [5] => grant_delete
  18. )
  19.  
  20. [defaultFields:protected] => Array
  21. (
  22. )
  23.  
  24. [insertValues:protected] => Array
  25. (
  26. [0] => Array
  27. (
  28. [0] => 23
  29. [1] => nodeaccess_userreference
  30. [2] => 4
  31. [3] => 1
  32. [4] => 0
  33. [5] => 0
  34. )
  35.  
  36. [1] => Array
  37. (
  38. [0] => 23
  39. [1] => nodeaccess_userreference
  40. [2] => 1
  41. [3] => 1
  42. [4] => 0
  43. [5] => 0
  44. )
  45.  
  46. [2] => Array
  47. (
  48. [0] => 23
  49. [1] => nodeaccess_userreference_author
  50. [2] => 2
  51. [3] => 1
  52. [4] => 1
  53. [5] => 1
  54. )
  55.  
  56. )
  57.  
  58. [fromQuery:protected] =>
  59. [connection:protected] => DatabaseConnection_mysql Object
  60. (
  61. [shutdownRegistered:protected] =>
  62. [target:protected] => default
  63. [key:protected] => default
  64. [logger:protected] =>
  65. [transactionLayers:protected] => Array
  66. (
  67. [drupal_transaction] => drupal_transaction
  68. [savepoint_1] => savepoint_1
  69. )
  70.  
  71. [driverClasses:protected] => Array
  72. (
  73. [SelectQuery] => SelectQuery
  74. [DatabaseTransaction] => DatabaseTransaction
  75. [InsertQuery] => InsertQuery_mysql
  76. [UpdateQuery] => UpdateQuery
  77. [MergeQuery] => MergeQuery
  78. [DeleteQuery] => DeleteQuery
  79. )
  80.  
  81. [statementClass:protected] => DatabaseStatementBase
  82. [transactionSupport:protected] => 1
  83. [transactionalDDLSupport:protected] =>
  84. [temporaryNameIndex:protected] => 0
  85. [connectionOptions:protected] => Array
  86. (
  87. [database] => lilacpro_drupwlk
  88. [username] => drupal3
  89. [password] => wl0wl0wl000
  90. [host] => localhost
  91. [port] =>
  92. [driver] => mysql
  93. [prefix] => Array
  94. (
  95. [default] =>
  96. )
  97.  
  98. )
  99.  
  100. [schema:protected] =>
  101. [prefixes:protected] => Array
  102. (
  103. [default] =>
  104. )
  105.  
  106. [prefixSearch:protected] => Array
  107. (
  108. [0] => {
  109. [1] => }
  110. )
  111.  
  112. [prefixReplace:protected] => Array
  113. (
  114. [0] =>
  115. [1] =>
  116. )
  117.  
  118. )
  119.  
  120. [connectionTarget:protected] => default
  121. [connectionKey:protected] => default
  122. [queryOptions:protected] => Array
  123. (
  124. [target] => default
  125. [return] => 3
  126. )
  127.  
  128. [uniqueIdentifier:protected] => 50edab60008ef7.00761431
  129. [nextPlaceholder:protected] => 0
  130. [comments:protected] => Array
  131. (
  132. )
  133.  
  134. )
  135.  
  136.  
  137. NOTE: The second query is exactly the same as the first, except that the uniqueIdentifier is different, and connection->transactionlayers['savepoint1'] is missing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement