Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

More PostgreSQL Madness

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    More PostgreSQL Madness

    It seems that A5 V9 does not correctly support time type fields in PostgreSQL. If I define time type field in a native DBF table, and export the table to PostgeSQL, the correct type, timestamp, is created in PostgreSQL, but when linked, the link field definition in A5 changes to date, striping off the time.

    I thought A5 V9 was certified as PostgreSQL compatible!!

    This is the second A5-PostgreSQL anomaly I've discovered in to days, and I've just started!!!
    See my post about auto increment fields. http://msgboard.alphasoftware.com/al...ad.php?t=78882

    Can someone please point out what other PostgreSQL bugs exist so I don't waste any more time banging my head against Alpha Software's wall.

    #2
    Re: More PostgreSQL Madness

    I haven't used PostgreSQL but I haven't experienced your problems using MySQL.
    When you created the active link table, did you override the default field types to make the linked field into an Alpha Five Time field?

    Comment


      #3
      Re: More PostgreSQL Madness

      No I didn't. During the link process, the PostgreSQL time stamp field was defined as a time type when I looked at the A5 override dialog of the export utility . After the link process, the field type in the A5 field rules dialog is shown as date! In the field rules dialog, you can't change the field type ... is there some way to change this?

      Comment


        #4
        Re: More PostgreSQL Madness

        Right click on the active link table, then choose Active Link, Edit Link Definition. After you define the connection string there is a link in the lower left hand corner of the dialog to "Override field definitions". Choose that, select the field, choose Edit Field Definition, and change the field type to Time.

        Comment


          #5
          Re: More PostgreSQL Madness

          The field type in the link definition IS time, but when you open a browse or default form, only date data is shown and only date data can be entered!!! I can enter time data into the field using the PostgreSQL admin tool, but it appear as date in A5 Right clicking on the linked table icon and opening properties shows the field type as date!!!

          Comment


            #6
            Re: More PostgreSQL Madness

            As I said, I don't have PostgreSQL. The DateTime field type works fine with MySQL -- when I created an active link table against it, the field type was Time. The default browse shows an Alpha Five Time field, as does the default form for the active link table.
            I created a simple table in MySQL:
            Code:
            create table timeTest (
            id integer auto_increment primary key,
            dt datetime);
            Then I created an active link table against the MySQL table. I simply accepted the defaults and A5 made it into an Alpha Five Time field, which shows up that way in the default form.
            If you can't get this to work in PostgreSQL, you should report it as a bug. Alpha generally fixes any reproducible bug within days.

            Comment


              #7
              Re: More PostgreSQL Madness

              The PostgreSQL syntax and semantics are different, but have the same effect.


              CREATE TABLE t3
              (
              "C1" SERIAL NOT NULL, -- this will automatically create a sequence generator
              "C2" timestamp without time zone, -- date-time type
              CONSTRAINT t3_pkey PRIMARY KEY ("C1")
              )
              WITH (OIDS=FALSE);
              ALTER TABLE t3 OWNER TO postgres;

              -- add the sequence as default value to column C1

              ALTER TABLE t3 ALTER COLUMN "C1" SET STORAGE PLAIN;
              ALTER TABLE t3 ALTER COLUMN "C1" SET DEFAULT nextval('"t3_C1_seq"'::regclass);

              -- the sequence generator DDL

              CREATE SEQUENCE "t3_C1_seq"
              INCREMENT 1
              MINVALUE 1
              MAXVALUE 9223372036854775807
              START 1
              CACHE 1;
              ALTER TABLE "t3_C1_seq" OWNER TO postgres;


              I create this table which behaves at it should when I access it directly using the PostgreSQL admin tool. C1 auto increments, and c2 will accept MM/DD/YY HH:NN:SS input

              When I link it, C1 is type number 11,0 and does not auto increment, and c2 ends up as type date and will only accept date data e.g. MM/DD/YYYY . Note: C1 is defined as 11 digits in the link definition, which is less than the automatically created max size of the sequence generator. This is also an "anomaly" ... I don't think it will ever cause real-world problem , but it should be fixed.

              As I indicated in post http://msgboard.alphasoftware.com/al...ad.php?t=78882 I can get auto increment link table fields to work by following a silly sequence of steps.

              I have not figured out how to “work around” the time type link issue. It looks to me like something is hosed in the link table definitions. Is there someway to examine and edit the link definition data? Where is this kept, and what is the format? I guess I can find this data and reverse engineer it, but don't want to reinvent the wheel if it's been done.

              Thanks for your feedback.

              I'll report my findings as a possible bug.
              Last edited by Occam49; 03-29-2009, 03:39 PM.

              Comment


                #8
                Re: More PostgreSQL Madness

                I don't know about the timestamp, and I know nothing about PostgreSQL, but this comment is, I think, wrong:

                Note: C1 is defined as 11 digits in the link definition, which is less than the automatically created max size of the sequence generator. This is also an "anomaly" ... I don't think it will ever cause real-world problem , but it should be fixed.

                You defined C1 as "serial", which is a four-byte integer. The range is 1 to 2147483647, which fits in N 11,0.

                As for the timestamp issue, you should report it as a bug.
                Last edited by Peter.Wayne; 03-29-2009, 04:20 PM. Reason: clarity

                Comment


                  #9
                  Re: More PostgreSQL Madness

                  In actuality, the original PostgreSQL DDL [that I cut and pasted to create t3] was created when I used the A5 export tool to export a native DBF table (t2) that had C1 as an auto increment integer field, and C2 as a time field so ... Alpha created the DDL, and Alpha needs to fix it. I didn't make that clear previously.

                  So, the A5 export utility is creating the correct data types in PostgreSQL, but the link utility is failing.

                  Comment


                    #10
                    Re: More PostgreSQL Madness

                    Bump ... Anyone from Alpha Software have anything to say on this ?

                    Comment


                      #11
                      Re: More PostgreSQL Madness

                      Originally posted by Occam49 View Post
                      Anyone from Alpha Software have anything to say on this ?
                      Since this is a user supported forum and Alpha employees don't respond much here, it would be best to report this as a bug and give them specifics on how to recreate the problem. They will respond to this much quicker.

                      Comment


                        #12
                        Re: More PostgreSQL Madness

                        Doug,

                        Thanks, I did that. I do see that Alpha employees have chimed in on issues.

                        There don't seem to be too many (any?) Alpha 5/PostgreSQL users.

                        Comment


                          #13
                          Re: More PostgreSQL Madness

                          Originally posted by Peter.Wayne View Post
                          I haven't used PostgreSQL but I haven't experienced your problems using MySQL.
                          When you created the active link table, did you override the default field types to make the linked field into an Alpha Five Time field?
                          I suspect that is because Postgres and Oracle use similar date/time fields, I have had the same sort of issue with Oracle "Time" fields (they are called Date in Oracle but contain a time component as well), but not had the same problem with mySQL.

                          Comment

                          Working...
                          X