Skip to content

Commit

Permalink
avpops: document the returned value in case of NULL
Browse files Browse the repository at this point in the history
Due to the fact that an AVP cannot contain `NULL` values, we cannot
store `NULL` database values in AVPs. Hence, we store the `<null>` value
This commit simply documents the behavior, as reported in #3027

(cherry picked from commit fc35f73)
  • Loading branch information
razvancrainea committed Mar 7, 2023
1 parent 8342f35 commit 91592bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/avpops/doc/avpops_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ avp_db_delete("$ru", "$avp(1)", 3);
<quote>$avp(1);$avp(2);...</quote>. If the result consists of
multiple rows, then multiple AVPs with corresponding names will
be added. The value type of the AVP (string or integer) will
be derived from the type of the columns.
be derived from the type of the columns. If the value in the
database is <emphasis>NULL</emphasis>, the returned avp will
be a string with the <emphasis>&lt;null&gt;</emphasis> value.
</para>
</listitem>
<listitem>
Expand Down

0 comments on commit 91592bb

Please sign in to comment.