Professional Web Applications Themes

#25757 [Opn->Fbk]: odbc_primarykeys error - PHP Development

ID: 25757 Updated by: [email]kalowskyphp.net[/email] Reported By: dlaroche at nobug dot lu -Status: Open +Status: Feedback Bug Type: ODBC related Operating System: Windows XP Professional PHP Version: 4.3.3 New Comment: Try using a NULL value instead of "" for the empty slots. That should solve the problem you're seeing. Previous Comments: ------------------------------------------------------------------------ [2003-10-05 17:12:12] dlaroche at nobug dot lu Description: ------------ I'm trying to write a script to convert tables from a Microsoft Access (version from 97 to 2002) to MySQL. The first step is that I just want the structure of the tables, so I need several functions from ...

  1. #1

    Default #25757 [Opn->Fbk]: odbc_primarykeys error

    ID: 25757
    Updated by: [email]kalowskyphp.net[/email]
    Reported By: dlaroche at nobug dot lu
    -Status: Open
    +Status: Feedback
    Bug Type: ODBC related
    Operating System: Windows XP Professional
    PHP Version: 4.3.3
    New Comment:

    Try using a NULL value instead of "" for the empty
    slots. That should solve the problem you're seeing.


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-10-05 17:12:12] dlaroche at nobug dot lu

    Description:
    ------------
    I'm trying to write a script to convert tables from a Microsoft Access
    (version from 97 to 2002) to MySQL. The first step is that I just want
    the structure of the tables, so I need several functions from odbc.

    But for the primary keys, the function odbc_primarykeys doesn't work.

    I read that I can get the key information of a table using the
    odbc_statistics function but this function doesn't work aswell.

    Reproduce code:
    ---------------
    $resAccessPrimaryKeyList = odbc_primarykeys($resAccessConnection, "",
    "", "tblManif");
    echo(odbc_result_all($resAccessPrimaryKeyList));

    Expected result:
    ----------------
    don't know the result but I want to get a list with the primary keys of
    the table.

    Actual result:
    --------------
    Warning: odbc_primarykeys(): SQL error: , SQL state 00000 in
    SQLPrimaryKeys in E:\htdocs\ltam\odbc.php on line 65

    Warning: odbc_result_all(): supplied argument is not a valid ODBC
    result resource in E:\htdocs\ltam\odbc.php on line 66


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=25757&edit=1[/url]
    kalowsky@php.net Guest

  2. #2

    Default #25757 [Opn->Fbk]: odbc_primarykeys error

    ID: 25757
    Updated by: [email]sniperphp.net[/email]
    Reported By: dlaroche at nobug dot lu
    -Status: Open
    +Status: Feedback
    Bug Type: ODBC related
    Operating System: Windows XP Professional
    PHP Version: 4.3.3
    New Comment:

    Not enough information was provided for us to be able
    to handle this bug. Please re-read the instructions at
    [url]http://bugs.php.net/how-to-report.php[/url]

    If you can provide more information, feel free to add it
    to this bug and change the status back to "Open".

    Thank you for your interest in PHP.





    Previous Comments:
    ------------------------------------------------------------------------

    [2003-11-07 07:57:41] dlaroche at nobug dot lu

    It doesn't work with NULL values ...

    ------------------------------------------------------------------------

    [2003-11-05 00:34:57] [email]sniperphp.net[/email]

    No feedback was provided. The bug is being suspended because
    we assume that you are no longer experiencing the problem.
    If this is not the case and you are able to provide the
    information that was requested earlier, please do so and
    change the status of the bug back to "Open". Thank you.



    ------------------------------------------------------------------------

    [2003-10-31 09:51:23] [email]kalowskyphp.net[/email]

    Try using a NULL value instead of "" for the empty
    slots. That should solve the problem you're seeing.

    ------------------------------------------------------------------------

    [2003-10-05 17:12:12] dlaroche at nobug dot lu

    Description:
    ------------
    I'm trying to write a script to convert tables from a Microsoft Access
    (version from 97 to 2002) to MySQL. The first step is that I just want
    the structure of the tables, so I need several functions from odbc.

    But for the primary keys, the function odbc_primarykeys doesn't work.

    I read that I can get the key information of a table using the
    odbc_statistics function but this function doesn't work aswell.

    Reproduce code:
    ---------------
    $resAccessPrimaryKeyList = odbc_primarykeys($resAccessConnection, "",
    "", "tblManif");
    echo(odbc_result_all($resAccessPrimaryKeyList));

    Expected result:
    ----------------
    don't know the result but I want to get a list with the primary keys of
    the table.

    Actual result:
    --------------
    Warning: odbc_primarykeys(): SQL error: , SQL state 00000 in
    SQLPrimaryKeys in E:\htdocs\ltam\odbc.php on line 65

    Warning: odbc_result_all(): supplied argument is not a valid ODBC
    result resource in E:\htdocs\ltam\odbc.php on line 66


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=25757&edit=1[/url]
    sniper@php.net Guest

Similar Threads

  1. #25757 [NoF->Opn]: odbc_primarykeys error
    By dlaroche at nobug dot lu in forum PHP Development
    Replies: 0
    Last Post: November 7th, 12:59 PM
  2. #25757 [NEW]: odbc_primarykeys error
    By dlaroche at nobug dot lu in forum PHP Development
    Replies: 0
    Last Post: October 5th, 09:15 PM
  3. #21082 [Com]: odbc_primarykeys Access
    By dlaroche at nobug dot lu in forum PHP Development
    Replies: 0
    Last Post: October 5th, 09:01 PM
  4. #13604 [Com]: odbc_primarykeys with Access
    By sa_kelkar at yahoo dot com in forum PHP Development
    Replies: 0
    Last Post: July 12th, 08:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139